syzbot


BUG: soft lockup in br_multicast_group_expired

Status: premoderation: reported on 2024/08/07 04:04
Reported-by: syzbot+7fb11805d930faefd2ab@syzkaller.appspotmail.com
First crash: 64d, last: 64d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 BUG: soft lockup in br_multicast_group_expired 1 52d 52d 0/2 premoderation: reported on 2024/08/19 00:45
upstream BUG: soft lockup in br_multicast_group_expired net 1 1775d 1775d 0/28 closed as invalid on 2019/11/30 16:54

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 122s! [syz.1.234:1989]
Modules linked in:
CPU: 1 PID: 1989 Comm: syz.1.234 Tainted: G        W         5.10.222-syzkaller-01494-gfd58936f3c1f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:br_multicast_group_expired+0x1/0x5e0 net/bridge/br_multicast.c:532
Code: 00 4c 89 f7 e8 70 49 13 fd eb 05 e8 e9 cd 26 fd 5b 41 5e 41 5f 5d c3 e8 dd cd 26 fd 0f 0b eb 99 e8 d4 cd 26 fd 0f 0b eb bc 55 <48> 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 28 49 89 fd 49 be 00
RSP: 0018:ffffc90000170d70 EFLAGS: 00000202
RAX: ffffffff815ade0e RBX: ffff8881f7147840 RCX: ffff88810ceaa780
RDX: 0000000000000102 RSI: ffffffff8443db30 RDI: ffff88810ed22e40
RBP: ffffc90000170db0 R08: ffffffff815adacf R09: 0000000000000003
R10: fffff5200002e1a8 R11: dffffc0000000001 R12: 0000000100018200
R13: 0000000000000102 R14: ffffffff8443db30 R15: ffff88810ed22e40
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fceb3242018 CR3: 000000010c0b9000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 expire_timers kernel/time/timer.c:1495 [inline]
 __run_timers+0x72a/0xa10 kernel/time/timer.c:1789
 run_timer_softirq+0x69/0xf0 kernel/time/timer.c:1802
 __do_softirq+0x268/0x5bb kernel/softirq.c:309
 asm_call_irq_on_stack+0xf/0x20
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
 do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:405 [inline]
 __irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
 sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1094
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:preempt_count_sub+0x6/0x160 kernel/sched/core.c:4481
Code: e1 07 80 c1 03 38 c1 0f 8c 78 ff ff ff 48 c7 c7 08 d2 e3 86 e8 6b 31 5f 00 e9 67 ff ff ff 66 0f 1f 44 00 00 55 48 89 e5 41 56 <53> 89 fb 48 c7 c0 00 b9 08 87 48 c1 e8 03 49 be 00 00 00 00 00 fc
RSP: 0018:ffffc90000f47010 EFLAGS: 00000246
RAX: 0000000000000001 RBX: ffff8881f7155fc0 RCX: dffffc0000000000
RDX: 0000000040000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc90000f47018 R08: ffffffff8188e0a9 R09: fffffbfff0dc753b
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881f7155fc0
R13: ffff88810ceaa780 R14: dffffc0000000000 R15: 0000000000000000
 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline]
 _raw_spin_unlock_irq+0x4e/0x70 kernel/locking/spinlock.c:199
 finish_lock_switch kernel/sched/core.c:3784 [inline]
 finish_task_switch+0x130/0x5a0 kernel/sched/core.c:3884
 context_switch kernel/sched/core.c:4049 [inline]
 __schedule+0xbee/0x1330 kernel/sched/core.c:4804
 preempt_schedule_irq+0xc7/0x140 kernel/sched/core.c:5065
 irqentry_exit_cond_resched kernel/entry/common.c:365 [inline]
 irqentry_exit+0x4f/0x60 kernel/entry/common.c:395
 sysvec_apic_timer_interrupt+0xcb/0xe0 arch/x86/kernel/apic/apic.c:1094
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:last_frame arch/x86/kernel/unwind_frame.c:82 [inline]
RIP: 0010:is_last_frame arch/x86/kernel/unwind_frame.c:87 [inline]
RIP: 0010:is_last_task_frame arch/x86/kernel/unwind_frame.c:156 [inline]
RIP: 0010:unwind_next_frame+0xfd/0x700 arch/x86/kernel/unwind_frame.c:266
Code: 8d 5e 28 48 89 d8 48 c1 e8 03 48 89 45 90 80 3c 10 00 74 12 48 89 df e8 61 2d 76 00 48 ba 00 00 00 00 00 fc ff df 48 89 5d 88 <48> 8b 03 48 89 45 98 48 8d 58 18 48 89 d8 48 c1 e8 03 80 3c 10 00
RSP: 0018:ffffc90000f47318 EFLAGS: 00000246
RAX: 1ffff920001e8e89 RBX: ffffc90000f47448 RCX: 1ffff920001e8e8b
RDX: dffffc0000000000 RSI: ffffc90000f47410 RDI: ffffc90000f47420
RBP: ffffc90000f47390 R08: dffffc0000000001 R09: ffffc90000f47420
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffffc90000f40000 R14: ffffc90000f47420 R15: 1ffff920001e8e84
 __unwind_start+0x318/0x3a0 arch/x86/kernel/unwind_frame.c:407
 unwind_start arch/x86/include/asm/unwind.h:60 [inline]
 arch_stack_walk+0xdb/0x140 arch/x86/kernel/stacktrace.c:24
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:121
 save_stack+0x97/0x240 mm/page_owner.c:146
 __reset_page_owner+0x36/0x150 mm/page_owner.c:174
 reset_page_owner include/linux/page_owner.h:28 [inline]
 free_pages_prepare mm/page_alloc.c:1349 [inline]
 free_pcp_prepare mm/page_alloc.c:1421 [inline]
 free_unref_page_prepare+0x2ae/0x2d0 mm/page_alloc.c:3336
 free_unref_page mm/page_alloc.c:3391 [inline]
 free_the_page+0x9e/0x370 mm/page_alloc.c:5407
 __free_pages+0x67/0xc0 mm/page_alloc.c:5418
 __vunmap+0x7bc/0x8f0 mm/vmalloc.c:2301
 __vfree mm/vmalloc.c:2349 [inline]
 vfree+0x5c/0x80 mm/vmalloc.c:2380
 kcov_put kernel/kcov.c:408 [inline]
 kcov_close+0x2b/0x50 kernel/kcov.c:510
 __fput+0x33d/0x7b0 fs/file_table.c:281
 ____fput+0x15/0x20 fs/file_table.c:314
 task_work_run+0x129/0x190 kernel/task_work.c:165
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xc83/0x2a50 kernel/exit.c:863
 do_group_exit+0x141/0x310 kernel/exit.c:985
 get_signal+0x10a0/0x1410 kernel/signal.c:2782
 arch_do_signal_or_restart+0xbd/0x17c0 arch/x86/kernel/signal.c:805
 handle_signal_work kernel/entry/common.c:145 [inline]
 exit_to_user_mode_loop+0x9b/0xd0 kernel/entry/common.c:169
 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline]
 syscall_exit_to_user_mode+0xa2/0x1a0 kernel/entry/common.c:274
 do_syscall_64+0x40/0x70 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fa19dcda9f9
Code: Unable to access opcode bytes at RIP 0x7fa19dcda9cf.
RSP: 002b:00007fa19c95a0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000001 RBX: 00007fa19de68f88 RCX: 00007fa19dcda9f9
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007fa19de68f8c
RBP: 00007fa19de68f80 R08: 00007ffcc8db60b0 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 00007fa19de68f8c
R13: 0000000000000000 R14: 00007ffcc8d57e50 R15: 00007ffcc8d57f38
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 2912 Comm: syz.2.357 Tainted: G        W         5.10.222-syzkaller-01494-gfd58936f3c1f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:perf_swevent_hrtimer+0x3e8/0x560 kernel/events/core.c:10461
Code: df 0f b6 04 08 84 c0 0f 85 70 01 00 00 8b 1b 89 de 83 e6 02 31 ff e8 47 e6 dd ff 83 e3 02 75 35 e8 8d e2 dd ff 48 8b 7c 24 30 <be> 01 00 00 00 48 8d 94 24 80 00 00 00 4c 89 e1 e8 73 32 fd ff 89
RSP: 0018:ffffc900000072c0 EFLAGS: 00000046
RAX: ffffffff818cc630 RBX: 0000000000000000 RCX: ffff88811b6abb40
RDX: 0000000000010101 RSI: 0000000000000000 RDI: ffff88810fd5d000
RBP: ffffc900000074d0 R08: ffffffff818cc626 R09: ffffc90000007340
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000007788
R13: 1ffff92000000e60 R14: 0000000000000000 R15: ffff88810fd5d158
FS:  00007f080eb6f6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020034000 CR3: 0000000130d14000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __run_hrtimer kernel/time/hrtimer.c:1583 [inline]
 __hrtimer_run_queues+0x3d7/0xa50 kernel/time/hrtimer.c:1647
 hrtimer_interrupt+0x39a/0x8b0 kernel/time/hrtimer.c:1709
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1083 [inline]
 __sysvec_apic_timer_interrupt+0xfd/0x3c0 arch/x86/kernel/apic/apic.c:1100
 run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:91 [inline]
 sysvec_apic_timer_interrupt+0xba/0xe0 arch/x86/kernel/apic/apic.c:1094
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:ip6_mtu+0x0/0x130 net/ipv6/route.c:3090
Code: fd e9 a3 fe ff ff 48 8b 4d c8 80 e1 07 80 c1 03 38 c1 0f 8c c3 fe ff ff 48 8b 7d c8 89 d3 e8 37 09 7d fd 89 da e9 b1 fe ff ff <55> 48 89 e5 41 57 41 56 53 49 89 fe 49 bf 00 00 00 00 00 fc ff df
RSP: 0018:ffffc90000007838 EFLAGS: 00000246
RAX: 1ffff110263ef36c RBX: ffff888131f79b60 RCX: ffff88811b6abb40
RDX: 0000000000000101 RSI: 0000000000000008 RDI: ffff88810abe1500
RBP: ffffc900000078b0 R08: ffffffff8424f007 R09: ffffffff8423be7e
R10: 0000000000000002 R11: ffff88811b6abb40 R12: ffff888135d4f3c0
R13: dffffc0000000000 R14: ffff88810abe1500 R15: dffffc0000000000
 ip6_finish_output+0x34/0x1e0 net/ipv6/ip6_output.c:226
 NF_HOOK_COND include/linux/netfilter.h:288 [inline]
 ip6_output+0x1f7/0x4c0 net/ipv6/ip6_output.c:249
 dst_output include/net/dst.h:437 [inline]
 NF_HOOK include/linux/netfilter.h:299 [inline]
 ndisc_send_skb+0x6e9/0xc00 net/ipv6/ndisc.c:509
 ndisc_send_rs+0x532/0x6a0 net/ipv6/ndisc.c:703
 addrconf_rs_timer+0x2d1/0x600 net/ipv6/addrconf.c:3963
 call_timer_fn+0x3b/0x2d0 kernel/time/timer.c:1450
 expire_timers kernel/time/timer.c:1495 [inline]
 __run_timers+0x72a/0xa10 kernel/time/timer.c:1789
 run_timer_softirq+0x69/0xf0 kernel/time/timer.c:1802
 __do_softirq+0x268/0x5bb kernel/softirq.c:309
 asm_call_irq_on_stack+0xf/0x20
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
 do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:405 [inline]
 __irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
 sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1094
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:finish_task_switch+0x143/0x5a0 kernel/sched/core.c:3886
Code: 30 84 c0 0f 85 9f 01 00 00 c7 03 00 00 00 00 4c 89 e7 e8 10 db 68 03 49 8d 9d b8 0a 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 30 <84> c0 0f 85 93 01 00 00 80 63 03 bf 0f 1f 44 00 00 4d 85 ff 74 69
RSP: 0018:ffffc90000db6320 EFLAGS: 00000a02
RAX: 0000000000000000 RBX: ffff88811b6ac5f8 RCX: 0000000000000002
RDX: 0000000040000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc90000db6370 R08: ffffffff8188e0a9 R09: fffffbfff0dc753b
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881f7055fc0
R13: ffff88811b6abb40 R14: dffffc0000000000 R15: 0000000000000000
 context_switch kernel/sched/core.c:4049 [inline]
 __schedule+0xbee/0x1330 kernel/sched/core.c:4804
 preempt_schedule_irq+0xc7/0x140 kernel/sched/core.c:5065
 irqentry_exit_cond_resched kernel/entry/common.c:365 [inline]
 irqentry_exit+0x4f/0x60 kernel/entry/common.c:395
 sysvec_apic_timer_interrupt+0xcb/0xe0 arch/x86/kernel/apic/apic.c:1094
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:arch_stack_walk+0x114/0x140 arch/x86/kernel/stacktrace.c:24
Code: ff 48 89 df e8 bd df 05 00 48 85 c0 74 1e 4c 89 f7 48 89 c6 41 ff d5 84 c0 74 11 48 89 df e8 d3 e0 05 00 83 bd 70 ff ff ff 00 <75> d5 65 48 8b 04 25 28 00 00 00 48 3b 45 d0 75 0f 48 83 c4 68 5b
RSP: 0018:ffffc90000db6600 EFLAGS: 00000202
RAX: 0000000000db6601 RBX: ffffc90000db6600 RCX: 0000000000db6601
RDX: 1ffff920001b6cc2 RSI: ffffc90000db6770 RDI: ffffc90000db6658
RBP: ffffc90000db6690 R08: ffffc90000db66e8 R09: 0000000000000000
R10: ffffc90000db66f0 R11: dffffc0000000001 R12: ffff88811b6abb40
R13: ffffffff8159b260 R14: ffffc90000db66e0 R15: 0000000000000000
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:121
 save_stack+0x97/0x240 mm/page_owner.c:146
 __set_page_owner+0x3b/0x2d0 mm/page_owner.c:219
 set_page_owner include/linux/page_owner.h:35 [inline]
 post_alloc_hook mm/page_alloc.c:2456 [inline]
 prep_new_page+0x166/0x180 mm/page_alloc.c:2462
 get_page_from_freelist+0x2d8c/0x2f30 mm/page_alloc.c:4254
 __alloc_pages_nodemask+0x435/0xaf0 mm/page_alloc.c:5348
 __alloc_pages include/linux/gfp.h:544 [inline]
 __alloc_pages_node include/linux/gfp.h:557 [inline]
 alloc_pages_node include/linux/gfp.h:571 [inline]
 alloc_pages include/linux/gfp.h:590 [inline]
 wp_page_copy+0x201/0x1940 mm/memory.c:3138
 do_wp_page+0x71b/0xca0
 handle_pte_fault+0xd59/0x3e30 mm/memory.c:4782
 __handle_mm_fault mm/memory.c:4916 [inline]
 handle_mm_fault+0x11d6/0x1a10 mm/memory.c:5330
 do_user_addr_fault arch/x86/mm/fault.c:1362 [inline]
 handle_page_fault arch/x86/mm/fault.c:1428 [inline]
 exc_page_fault+0x2a6/0x5b0 arch/x86/mm/fault.c:1484
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x40 arch/x86/lib/copy_user_64.S:206
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 0f 1f 80 00 00 00 00 0f 01 cb 83 fa 40 0f 82 70 ff ff ff 89 d1 <f3> a4 31 c0 0f 01 ca c3 66 2e 0f 1f 84 00 00 00 00 00 89 d1 83 f8
RSP: 0018:ffffc90000db7498 EFLAGS: 00050206
RAX: ffffffff82511f01 RBX: 0000000000001000 RCX: 00000000000006a0
RDX: 0000000000001000 RSI: ffff888117022960 RDI: 0000000020034000
RBP: ffffc90000db75e8 R08: dffffc0000000000 R09: ffffed1022e04600
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888117022000
R13: 00007ffffffff000 R14: 00000000200336a0 R15: ffffc90000db7e88
 copy_to_iter include/linux/uio.h:151 [inline]
 simple_copy_to_iter+0x50/0x70 net/core/datagram.c:519
 __skb_datagram_iter+0x2e5/0x780 net/core/datagram.c:448
 skb_copy_datagram_iter+0x46/0x180 net/core/datagram.c:533
 skb_copy_datagram_msg include/linux/skbuff.h:3613 [inline]
 unix_stream_read_actor+0x70/0xb0 net/unix/af_unix.c:2510
 unix_stream_read_generic+0xafa/0x2090 net/unix/af_unix.c:2429
 unix_stream_recvmsg+0x166/0x1e0 net/unix/af_unix.c:2526
 ____sys_recvmsg+0x286/0x530
 ___sys_recvmsg+0x1ec/0x690 net/socket.c:2637
 __sys_recvmsg net/socket.c:2667 [inline]
 __do_sys_recvmsg net/socket.c:2677 [inline]
 __se_sys_recvmsg net/socket.c:2674 [inline]
 __x64_sys_recvmsg+0x1ee/0x2c0 net/socket.c:2674
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f080feef9f9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f080eb6f038 EFLAGS: 00000246 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00007f081007df80 RCX: 00007f080feef9f9
RDX: 0000000000000000 RSI: 00000000200004c0 RDI: 000000000000000b
RBP: 00007f080ff5d8ee R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f081007df80 R15: 00007ffc9bad07a8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/07 04:04 android13-5.10-lts fd58936f3c1f 1ef9fe42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf BUG: soft lockup in br_multicast_group_expired
* Struck through repros no longer work on HEAD.