net:udpgro_frglist.sh in ubuntu_kernel_selftests cause soft lockup on K-5.19 P9
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Kinetic |
New
|
Undecided
|
Unassigned |
Bug Description
Issue found while debugging bug 2015745
This net:udpgro_
The test itself can pass without any issue:
$ sudo ./udpgro_frglist.sh
ipv6
tcp - over veth touching data
-l 4 -6 -D 2001:db8::1 -t rx -4 -t
-4 -t
tcp tx: 525 MB/s 8908 calls/s 8908 msg/s
tcp rx: 525 MB/s 13895 calls/s
tcp tx: 543 MB/s 9223 calls/s 9223 msg/s
tcp rx: 544 MB/s 19994 calls/s
tcp tx: 544 MB/s 9230 calls/s 9230 msg/s
tcp rx: 544 MB/s 26196 calls/s
tcp tx: 566 MB/s 9601 calls/s 9601 msg/s
udp gso - over veth touching data
-l 4 -6 -D 2001:db8::1 -u -S 0 rx -4 -v
-4 -v
udp rx: 0 MB/s 7 calls/s
udp tx: 0 MB/s 1 calls/s 1 msg/s
udp gso and gro - over veth touching data
-l 4 -6 -D 2001:db8::1 -S 0 rx -4 -G
-4 -G
udp rx: 0 MB/s 8 calls/s
udp tx: 0 MB/s 1 calls/s 1 msg/s
$ echo $?
0
But it will cause soft lockup and thus tainting the kernel.
dmesg output:
[ 444.086079] watchdog: BUG: soft lockup - CPU#49 stuck for 26s! [udpgso_
[ 444.086148] Modules linked in: cls_bpf sch_ingress algif_hash af_alg veth cfg80211 joydev input_leds mac_hid binfmt_misc ofpart cmdlinepart powernv_flash opal_prd ipmi_powernv ipmi_devintf ipmi_msghandler ibmpowernv mtd vmx_crypto at24 uio_pdrv_genirq uio dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua pstore_blk ramoops reed_solomon pstore_zone ip_tables x_tables autofs4 btrfs blake2b_generic raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic usbhid hid ses enclosure scsi_transport_sas ast i2c_algo_bit drm_vram_helper drm_ttm_helper ttm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm crct10dif_vpmsum crc32c_vpmsum i40e aacraid xhci_pci drm_panel_
[ 444.086281] CPU: 49 PID: 7963 Comm: udpgso_bench_tx Not tainted 5.19.0-38-generic #39-Ubuntu
[ 444.086287] NIP: c0000000012e5d74 LR: c00000000135c628 CTR: 000000001355bc49
[ 444.086291] REGS: c000000fffdfb6d0 TRAP: 0900 Not tainted (5.19.0-38-generic)
[ 444.086294] MSR: 9000000002009033 <SF,HV,
[ 444.086313] CFAR: 0000000000000000 IRQMASK: 0
[ 444.086376] NIP [c0000000012e5d74] ip_send_
[ 444.086385] LR [c00000000135c628] inet_gso_
[ 444.086390] Call Trace:
[ 444.086392] [c000000fffdfb970] [c00000000135c570] inet_gso_
[ 444.086399] [c000000fffdfb9e0] [c00000000121dde8] skb_mac_
[ 444.086406] [c000000fffdfba20] [c0000000011bd650] __skb_gso_
[ 444.086413] [c000000fffdfba60] [c0000000013454bc] udp_queue_
[ 444.086419] [c000000fffdfbaa0] [c000000001345c68] udp_unicast_
[ 444.086425] [c000000fffdfbac0] [c000000001347838] __udp4_
[ 444.086431] [c000000fffdfbb90] [c0000000012e10a0] ip_protocol_
[ 444.086438] [c000000fffdfbbe0] [c0000000012e14d4] ip_local_
[ 444.086445] [c000000fffdfbc20] [c0000000012e0df0] ip_rcv_
[ 444.086451] [c000000fffdfbc60] [c0000000011cb914] __netif_
[ 444.086458] [c000000fffdfbcb0] [c0000000011cbd1c] process_
[ 444.086464] [c000000fffdfbd00] [c0000000011ccda8] __napi_
[ 444.086471] [c000000fffdfbd90] [c0000000011cd5ac] net_rx_
[ 444.086477] [c000000fffdfbe80] [c0000000014e922c] __do_softirq+
[ 444.086484] [c000000fffdfbf90] [c0000000000180ec] do_softirq_
[ 444.086490] [c00000002499b5f0] [c0000000011dcb54] __neigh_
[ 444.086496] [c00000002499b630] [c000000000196624] do_softirq+
[ 444.086503] [c00000002499b660] [c0000000001966f8] __local_
[ 444.086509] [c00000002499b680] [c0000000013deddc] ip6_finish_
[ 444.086516] [c00000002499b730] [c0000000013e2db8] ip6_finish_
[ 444.086522] [c00000002499b790] [c000000001469c4c] ip6_local_
[ 444.086528] [c00000002499b7d0] [c0000000013e3af8] ip6_send_
[ 444.086534] [c00000002499b810] [c0000000014218dc] udp_v6_
[ 444.086541] [c00000002499b870] [c000000001422a44] udpv6_sendmsg+
[ 444.086546] [c00000002499ba80] [c0000000013d8df8] inet6_sendmsg+
[ 444.086553] [c00000002499bac0] [c00000000117ed10] sock_sendmsg+
[ 444.086559] [c00000002499baf0] [c00000000117f21c] ____sys_
[ 444.086566] [c00000002499bb90] [c0000000011840e0] ___sys_
[ 444.086571] [c00000002499bd00] [c0000000011841f4] sys_sendmsg+
[ 444.086577] [c00000002499bdb0] [c000000000031b3c] system_
[ 444.086583] [c00000002499be10] [c00000000000c0e8] system_
[ 444.086590] --- interrupt: 3000 at 0x717d0396cf98
[ 444.086595] NIP: 0000717d0396cf98 LR: 0000000000000000 CTR: 0000000000000000
[ 444.086598] REGS: c00000002499be80 TRAP: 3000 Not tainted (5.19.0-38-generic)
[ 444.086601] MSR: 900000000000f033 <SF,HV,
[ 444.086619] IRQMASK: 0
[ 444.086680] NIP [0000717d0396cf98] 0x717d0396cf98
[ 444.086683] LR [0000000000000000] 0x0
[ 444.086686] --- interrupt: 3000
[ 444.086688] Instruction dump:
[ 444.086691] 394affff 7d292a14 2c2a0001 85480004 7d295214 41820030 78caf082 7d4903a6
[ 444.086703] 80880004 80a80008 80c8000c 85480010 <7d292214> 7ce72a14 7d293214 7ce75214
Changed in linux (Ubuntu): | |
status: | New → Invalid |