BUG: soft lockup in sys_setsockopt

13 views
Skip to first unread message

syzbot

unread,
Mar 28, 2021, 5:22:22 AM3/28/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 78fec161 Linux 4.19.183
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1329514ad00000
kernel config: https://syzkaller.appspot.com/x/.config?x=8b2beec637df5f52
dashboard link: https://syzkaller.appspot.com/bug?extid=01139a82fdd1e6141f5f

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+01139a...@syzkaller.appspotmail.com

watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.5:28887]
Modules linked in:
irq event stamp: 2691092
hardirqs last enabled at (2691091): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (2691092): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (78752): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (78459): [<ffffffff81392675>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (78459): [<ffffffff81392675>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 28887 Comm: syz-executor.5 Not tainted 4.19.183-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:435 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x3a6/0xae0 kernel/locking/qspinlock.c:474
Code: eb c6 45 01 01 41 bc 00 80 00 00 48 c1 e9 03 83 e3 07 41 be 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 2c 01 eb 0c f3 90 <41> 83 ec 01 0f 84 38 04 00 00 41 0f b6 45 00 38 d8 7f 08 84 c0 0f
RSP: 0018:ffff88804c88f418 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 1ffffffff140e050
RDX: 0000000000000001 RSI: ffffffff81678615 RDI: 0000000000000286
RBP: ffffffff8a070280 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000003c7a
R13: fffffbfff140e050 R14: 0000000000000001 R15: ffff8880ba02bd80
FS: 00007f183fd23700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ee21000 CR3: 00000000974b0000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:679 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:53 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:88 [inline]
do_raw_spin_lock+0x189/0x220 kernel/locking/spinlock_debug.c:113
spin_lock include/linux/spinlock.h:329 [inline]
__kernfs_new_node+0xf9/0x680 fs/kernfs/dir.c:638
kernfs_new_node+0x92/0x120 fs/kernfs/dir.c:693
__kernfs_create_file+0x51/0x340 fs/kernfs/file.c:992
sysfs_add_file_mode_ns+0x226/0x540 fs/sysfs/file.c:307
sysfs_create_file_ns+0x131/0x1b0 fs/sysfs/file.c:332
sysfs_create_file include/linux/sysfs.h:529 [inline]
idletimer_tg_create net/netfilter/xt_IDLETIMER.c:158 [inline]
idletimer_tg_checkentry+0x53f/0xbf0 net/netfilter/xt_IDLETIMER.c:236
xt_check_target+0x26c/0x650 net/netfilter/x_tables.c:1026
check_target net/ipv4/netfilter/arp_tables.c:399 [inline]
find_check_entry net/ipv4/netfilter/arp_tables.c:423 [inline]
translate_table+0xf69/0x1a50 net/ipv4/netfilter/arp_tables.c:576
do_replace net/ipv4/netfilter/arp_tables.c:981 [inline]
do_arpt_set_ctl+0x2a5/0x430 net/ipv4/netfilter/arp_tables.c:1461
nf_sockopt net/netfilter/nf_sockopt.c:106 [inline]
nf_setsockopt+0x6f/0xc0 net/netfilter/nf_sockopt.c:115
ip_setsockopt net/ipv4/ip_sockglue.c:1258 [inline]
ip_setsockopt+0xd8/0xf0 net/ipv4/ip_sockglue.c:1238
sctp_setsockopt+0x14b/0x4b40 net/sctp/socket.c:4319
__sys_setsockopt+0x14d/0x240 net/socket.c:1901
__do_sys_setsockopt net/socket.c:1912 [inline]
__se_sys_setsockopt net/socket.c:1909 [inline]
__x64_sys_setsockopt+0xba/0x150 net/socket.c:1909
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x466459
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f183fd23188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459
RDX: 0000000000000060 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00000000004bf9fb R08: 0000000000000450 R09: 0000000000000000
R10: 0000000020000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007fff5f12b1df R14: 00007f183fd23300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 28871 Comm: syz-executor.4 Not tainted 4.19.183-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:261 [inline]
RIP: 0010:trace_hrtimer_start include/trace/events/timer.h:191 [inline]
RIP: 0010:debug_activate kernel/time/hrtimer.c:466 [inline]
RIP: 0010:enqueue_hrtimer+0x27e/0x3d0 kernel/time/hrtimer.c:972
Code: 89 de e8 c5 79 0e 00 84 db 0f 84 ce fd ff ff e8 88 78 0e 00 e8 55 58 ac ff e9 bf fd ff ff e8 79 78 0e 00 65 ff 05 22 fa ad 7e <48> c7 c0 28 ca 0e 8b 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80
RSP: 0018:ffff8880ba1074f8 EFLAGS: 00000006
RAX: ffff888038c72000 RBX: 0000000000000001 RCX: ffffffff8153e2dd
RDX: 0000000000010100 RSI: ffffffff8153e4e7 RDI: 0000000000000001
RBP: ffff8880ba124d00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: ffffffff8c65f05b R12: ffff88809c882558
R13: ffff88809c882558 R14: 0000000000000000 R15: dffffc0000000000
FS: 00007f7334506700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000568000 CR3: 00000000383ee000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
__run_hrtimer kernel/time/hrtimer.c:1434 [inline]
__hrtimer_run_queues+0xae6/0xe60 kernel/time/hrtimer.c:1481
hrtimer_interrupt+0x326/0x9e0 kernel/time/hrtimer.c:1539
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1071 [inline]
smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1096
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:lock_acquire+0x1ec/0x3c0 kernel/locking/lockdep.c:3910
Code: 08 00 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 0f 85 b7 01 00 00 48 83 3d c9 4e a6 08 00 0f 84 2a 01 00 00 48 8b 7c 24 08 57 9d <0f> 1f 44 00 00 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 65 8b
RSP: 0018:ffff8880ba1077e0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3049 RBX: ffff888038c72000 RCX: 998194e7e3c2bca5
RDX: dffffc0000000000 RSI: 00000000a132e139 RDI: 0000000000000286
RBP: ffffffff89f85ea0 R08: 0000000000378548 R09: 0000000000000004
R10: ffff888038c72928 R11: 0000000000074071 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000
rcu_lock_acquire include/linux/rcupdate.h:242 [inline]
rcu_read_lock include/linux/rcupdate.h:627 [inline]
is_bpf_text_address+0x36/0x1b0 kernel/bpf/core.c:545
kernel_text_address kernel/extable.c:152 [inline]
kernel_text_address+0xbd/0xf0 kernel/extable.c:122
__kernel_text_address+0x9/0x30 kernel/extable.c:107
unwind_get_return_address arch/x86/kernel/unwind_orc.c:297 [inline]
unwind_get_return_address+0x51/0x90 arch/x86/kernel/unwind_orc.c:292
__save_stack_trace+0xaf/0x190 arch/x86/kernel/stacktrace.c:45
save_stack mm/kasan/kasan.c:448 [inline]
set_track mm/kasan/kasan.c:460 [inline]
kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
__do_kmalloc_node mm/slab.c:3689 [inline]
__kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3703
__kmalloc_reserve net/core/skbuff.c:137 [inline]
__alloc_skb+0xae/0x560 net/core/skbuff.c:205
skb_copy+0x139/0x2f0 net/core/skbuff.c:1358
mac80211_hwsim_tx_frame_no_nl.isra.0+0xb8a/0x1330 drivers/net/wireless/mac80211_hwsim.c:1353
mac80211_hwsim_tx_frame+0x12b/0x210 drivers/net/wireless/mac80211_hwsim.c:1556
mac80211_hwsim_beacon_tx+0x3f8/0x680 drivers/net/wireless/mac80211_hwsim.c:1595
__iterate_interfaces+0x2e1/0x4a0 net/mac80211/util.c:614
ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650
mac80211_hwsim_beacon+0xc9/0x190 drivers/net/wireless/mac80211_hwsim.c:1615
__tasklet_hrtimer_trampoline+0x29/0xa0 kernel/softirq.c:601
tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522
__do_softirq+0x265/0x980 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x215/0x260 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:535 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
</IRQ>
RIP: 0010:unwind_next_frame+0x759/0x1400 arch/x86/kernel/unwind_orc.c:437
Code: e8 cc 9a 6e 00 4c 8b 44 24 30 48 8b 4c 24 28 e9 06 ff ff ff 48 b8 00 00 00 00 00 fc ff df 48 8b 14 24 48 c1 ea 03 80 3c 02 00 <0f> 85 c4 09 00 00 4c 89 f8 49 8b 4e 38 48 ba 00 00 00 00 00 fc ff
RSP: 0018:ffff88808d907258 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: dffffc0000000000 RBX: 1ffff11011b20e54 RCX: ffffffff8bf54f05
RDX: 1ffff11011b20e78 RSI: 0000000000000001 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffff8bf54f04 R09: ffffffff8bf54f00
R10: ffff88808d9073e7 R11: 0000000000074071 R12: ffff88808d9073d0
R13: ffff88808d9073bd R14: ffff88808d907388 R15: ffffffff8bf54f00
__save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44
save_stack mm/kasan/kasan.c:448 [inline]
set_track mm/kasan/kasan.c:460 [inline]
kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
kmem_cache_alloc+0x122/0x370 mm/slab.c:3559
radix_tree_node_alloc.constprop.0+0x1e4/0x320 lib/radix-tree.c:398
idr_get_free+0x50e/0xa10 lib/radix-tree.c:2158
idr_alloc_u32+0x1a5/0x320 lib/idr.c:49
idr_alloc_cyclic+0x102/0x230 lib/idr.c:128
__kernfs_new_node+0x11a/0x680 fs/kernfs/dir.c:639
kernfs_new_node+0x92/0x120 fs/kernfs/dir.c:693
__kernfs_create_file+0x51/0x340 fs/kernfs/file.c:992
sysfs_add_file_mode_ns+0x226/0x540 fs/sysfs/file.c:307
sysfs_create_file_ns+0x131/0x1b0 fs/sysfs/file.c:332
class_create_file_ns+0x4a/0x70 drivers/base/class.c:93
bond_create_sysfs+0x138/0x1f0 drivers/net/bonding/bond_sysfs.c:781
bond_net_init+0x1d5/0x2f0 drivers/net/bonding/bond_main.c:4899
ops_init+0xb3/0x410 net/core/net_namespace.c:129
setup_net+0x2c2/0x720 net/core/net_namespace.c:315
copy_net_ns+0x1f7/0x340 net/core/net_namespace.c:438
create_new_namespaces+0x3f6/0x7b0 kernel/nsproxy.c:107
unshare_nsproxy_namespaces+0xbd/0x1f0 kernel/nsproxy.c:206
ksys_unshare+0x36c/0x9a0 kernel/fork.c:2541
__do_sys_unshare kernel/fork.c:2609 [inline]
__se_sys_unshare kernel/fork.c:2607 [inline]
__x64_sys_unshare+0x2d/0x40 kernel/fork.c:2607
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x466459
Code: ff ff c3 66 2e 0f 1f 84
Lost 7 message(s)!


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Aug 23, 2021, 3:10:20 AM8/23/21
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages