syzbot


BUG: soft lockup in br_multicast_port_group_expired

Status: premoderation: reported on 2024/08/16 17:45
Reported-by: syzbot+b22a067ccaa408dbecdd@syzkaller.appspotmail.com
First crash: 31d, last: 31d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 BUG: soft lockup in br_multicast_port_group_expired 2 6d17h 93d 0/2 premoderation: reported on 2024/06/15 09:56
android-54 BUG: soft lockup in br_multicast_port_group_expired 1 103d 103d 0/2 auto-obsoleted due to no activity on 2024/09/03 00:58
android-5-10 BUG: soft lockup in br_multicast_port_group_expired 1 23d 23d 0/2 premoderation: reported on 2024/08/23 20:07
linux-5.15 INFO: rcu detected stall in br_multicast_port_group_expired 1 74d 74d 0/3 upstream: reported on 2024/07/03 20:33

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 224s! [syz.3.2664:8449]
Modules linked in:
CPU: 1 PID: 8449 Comm: syz.3.2664 Tainted: G        W         5.15.153-syzkaller-00623-gda92e689a0c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:skb_is_nonlinear include/linux/skbuff.h:2232 [inline]
RIP: 0010:skb_put+0x80/0x210 net/core/skbuff.c:2043
Code: 4c 89 e0 4c 89 65 d0 49 c1 ec 03 41 0f b6 04 14 84 c0 0f 85 e3 00 00 00 41 8b 86 d0 00 00 00 48 89 45 c0 49 8d 5e 74 48 89 d8 <48> c1 e8 03 0f b6 04 10 84 c0 0f 85 e7 00 00 00 8b 1b 31 ff 89 de
RSP: 0018:ffffc900001d0aa8 EFLAGS: 00000246
RAX: ffff8881215f77f4 RBX: ffff8881215f77f4 RCX: ffff8881152113c0
RDX: dffffc0000000000 RSI: 0000000000000004 RDI: ffff8881215f7858
RBP: ffffc900001d0ae8 R08: ffffffff828223e5 R09: ffff8881135bac1c
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff110242bef0a
R13: 0000000000000004 R14: ffff8881215f7780 R15: ffff8881135bac00
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd50e097857 CR3: 0000000006a0f000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __nla_reserve lib/nlattr.c:862 [inline]
 __nla_put lib/nlattr.c:996 [inline]
 nla_put+0xcd/0x1f0 lib/nlattr.c:1055
 nla_nest_start_noflag include/net/netlink.h:1767 [inline]
 nlmsg_populate_mdb_fill net/bridge/br_mdb.c:482 [inline]
 br_mdb_notify+0x6ef/0xca0 net/bridge/br_mdb.c:806
 br_multicast_del_pg+0x4e2/0xb50 net/bridge/br_multicast.c:691
 br_multicast_find_del_pg net/bridge/br_multicast.c:723 [inline]
 br_multicast_port_group_expired+0x716/0x870 net/bridge/br_multicast.c:753
 call_timer_fn+0x3b/0x2d0 kernel/time/timer.c:1457
 expire_timers kernel/time/timer.c:1502 [inline]
 __run_timers+0x72a/0xa10 kernel/time/timer.c:1773
 run_timer_softirq+0x69/0xf0 kernel/time/timer.c:1786
 __do_softirq+0x26d/0x5bf kernel/softirq.c:565
 invoke_softirq kernel/softirq.c:425 [inline]
 __irq_exit_rcu+0x50/0xf0 kernel/softirq.c:648
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:660
 sysvec_apic_timer_interrupt+0x9a/0xc0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:__schedule+0xcd4/0x1590
Code: 44 24 48 42 0f b6 04 28 84 c0 0f 85 7f 02 00 00 41 80 24 24 fc 4c 89 f7 48 8b 74 24 08 e8 84 93 1c fc 48 89 c7 e8 dc 54 69 fc <48> 8b 44 24 50 48 c7 44 24 60 0e 36 e0 45 49 c7 44 05 00 00 00 00
RSP: 0018:ffffc90000d8f360 EFLAGS: 00000282
RAX: 0000000080000001 RBX: 1ffff1103ee27081 RCX: 0000000000000002
RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001
RBP: ffffc90000d8f450 R08: dffffc0000000000 R09: ffffed1022a42279
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881152113c0
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881f7138408
 preempt_schedule_irq+0xc7/0x140 kernel/sched/core.c:6916
 irqentry_exit_cond_resched+0x2a/0x30 kernel/entry/common.c:398
 irqentry_exit+0x30/0x40 kernel/entry/common.c:432
 sysvec_apic_timer_interrupt+0x55/0xc0 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:check_kcov_mode kernel/kcov.c:174 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:218 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp8+0x34/0x80 kernel/kcov.c:291
Code: 8b 0d 50 1e 92 7e 65 8b 05 51 1e 92 7e a9 00 01 ff 00 74 10 a9 00 01 00 00 74 57 83 b9 5c 0b 00 00 00 74 4e 8b 81 38 0b 00 00 <83> f8 03 75 43 48 8b 91 40 0b 00 00 44 8b 89 3c 0b 00 00 49 c1 e1
RSP: 0018:ffffc90000d8f5e8 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 00000000055c0dc0 RCX: ffff8881152113c0
RDX: 0000000000000000 RSI: 00000000055c0dc0 RDI: 000000ffffffffc0
RBP: ffffc90000d8f5e8 R08: ffffffff81b816eb R09: 0000000000000010
R10: ffffc90000d8f450 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffea00055c0dc0 R14: 000000ffffffffc0 R15: 0000000000157037
 __nr_to_section include/linux/mmzone.h:1587 [inline]
 __pfn_to_section include/linux/mmzone.h:1676 [inline]
 lookup_page_ext mm/page_ext.c:265 [inline]
 page_ext_get+0x4b/0x140 mm/page_ext.c:148
 __reset_page_owner+0x41/0x190 mm/page_owner.c:157
 reset_page_owner include/linux/page_owner.h:26 [inline]
 free_pages_prepare mm/page_alloc.c:1472 [inline]
 free_pcp_prepare mm/page_alloc.c:1544 [inline]
 free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3534
 free_unref_page+0xe8/0x750 mm/page_alloc.c:3616
 free_the_page mm/page_alloc.c:805 [inline]
 __free_pages+0x61/0xf0 mm/page_alloc.c:5853
 __vunmap+0x7bc/0x8f0 mm/vmalloc.c:2652
 __vfree mm/vmalloc.c:2700 [inline]
 vfree+0x7f/0xb0 mm/vmalloc.c:2731
 kcov_put kernel/kcov.c:408 [inline]
 kcov_close+0x2b/0x50 kernel/kcov.c:510
 __fput+0x3fe/0x910 fs/file_table.c:280
 ____fput+0x15/0x20 fs/file_table.c:308
 task_work_run+0x129/0x190 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xc48/0x2ca0 kernel/exit.c:878
 do_group_exit+0x141/0x310 kernel/exit.c:1000
 get_signal+0x7a3/0x1630 kernel/signal.c:2896
 arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:867
 handle_signal_work kernel/entry/common.c:154 [inline]
 exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:178
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:214
 irqentry_exit_to_user_mode+0x9/0x10 kernel/entry/common.c:320
 irqentry_exit+0x12/0x40 kernel/entry/common.c:411
 sysvec_apic_timer_interrupt+0x55/0xc0 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0033:0x7f423f6359b9
Code: Unable to access opcode bytes at RIP 0x7f423f63598f.
RSP: 002b:00007f423e292038 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 00007f423f7d2058 RCX: 00007f423f6359b9
RDX: 00000000200006c0 RSI: 0000000000005452 RDI: 0000000000000005
RBP: 00007f423f6a38d8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f423f7d2058 R15: 00007ffd0daf5368
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 835 Comm: kworker/u4:5 Tainted: G        W         5.15.153-syzkaller-00623-gda92e689a0c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:__sanitizer_cov_trace_pc+0x5d/0x60 kernel/kcov.c:207
Code: 0b 00 00 83 fa 02 75 21 48 8b 91 40 0b 00 00 48 8b 32 48 8d 7e 01 8b 89 3c 0b 00 00 48 39 cf 73 08 48 89 44 f2 08 48 89 3a 5d <c3> 66 90 55 48 89 e5 4c 8b 45 08 65 48 8b 15 30 22 92 7e 65 8b 05
RSP: 0018:ffffc900010ef838 EFLAGS: 00000293
RAX: ffffffff8165a5cb RBX: 1ffff1103ee2784d RCX: ffff88810f2f0000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900010ef958 R08: ffffffff8165a59a R09: ffffed103ee071d3
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: ffff8881f713c268 R14: ffff8881f7038e80 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd50cde5000 CR3: 0000000006a0f000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 on_each_cpu_cond_mask+0x40/0x80 kernel/smp.c:1135
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1207 [inline]
 text_poke_bp_batch+0x1db/0x720 arch/x86/kernel/alternative.c:1407
 text_poke_flush arch/x86/kernel/alternative.c:1598 [inline]
 text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:1605
 arch_jump_label_transform_apply+0x15/0x30 arch/x86/kernel/jump_label.c:146
 __jump_label_update+0x36a/0x380 kernel/jump_label.c:459
 jump_label_update+0x3af/0x450 kernel/jump_label.c:830
 static_key_enable_cpuslocked+0x12f/0x250 kernel/jump_label.c:177
 static_key_enable+0x1a/0x30 kernel/jump_label.c:190
 toggle_allocation_gate+0xbf/0x460 mm/kfence/core.c:729
 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2325
 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472
 kthread+0x421/0x510 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:299
 </TASK>
NMI backtrace for cpu 0
CPU: 0 PID: 8449 Comm: syz.3.2664 Tainted: G        W    L    5.15.153-syzkaller-00623-gda92e689a0c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x0/0x90 kernel/kcov.c:283
Code: 08 03 00 00 00 48 89 44 0a 10 48 89 74 0a 18 4c 89 44 0a 20 49 ff c1 4c 89 09 5d c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 <55> 48 89 e5 4c 8b 45 08 65 48 8b 15 e0 1e 92 7e 65 8b 05 e1 1e 92
RSP: 0018:ffffc90000007b48 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000838
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000007b80 R08: ffffffff8163b61b R09: ffffffff8163b50d
R10: 0000000000000002 R11: ffff8881152113c0 R12: 0000000000000020
R13: dffffc0000000000 R14: 000000000000010f R15: ffff8881f7026e80
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffef1931bd8 CR3: 000000010bd18000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 tick_program_event+0x9f/0x120 kernel/time/tick-oneshot.c:44
 hrtimer_interrupt+0x625/0xaa0 kernel/time/hrtimer.c:1824
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0xfd/0x3c0 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x44/0xc0 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:rebalance_domains+0x204/0xa80
Code: 08 0f 83 07 08 00 00 48 8d 1c c5 10 b8 25 86 48 89 d8 48 c1 e8 03 48 89 44 24 68 42 80 3c 30 00 74 08 48 89 df e8 ac 69 62 00 <48> 89 d8 48 c7 c3 f0 83 03 00 48 89 44 24 70 48 03 18 48 89 d8 48
RSP: 0018:ffffc90000007de0 EFLAGS: 00000246
RAX: 1ffffffff0c4b702 RBX: ffffffff8625b810 RCX: ffffc90000007e03
RDX: 1ffff92000000fcc RSI: 1ffff92000000fd0 RDI: ffff8881f70378c4
RBP: ffffc90000007ef8 R08: 0000000000000001 R09: ffff8881f7037b40
R10: 00000000000025f7 R11: ffffffff874cb010 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: dffffc0000000000
 run_rebalance_domains+0xfa/0x1b0 kernel/sched/fair.c:11286
 __do_softirq+0x26d/0x5bf kernel/softirq.c:565
 invoke_softirq kernel/softirq.c:425 [inline]
 __irq_exit_rcu+0x50/0xf0 kernel/softirq.c:648
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:660
 sysvec_apic_timer_interrupt+0x9a/0xc0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:unwind_get_return_address+0x56/0x90 arch/x86/kernel/unwind_frame.c:19
Code: 83 c3 48 49 89 df 49 c1 ef 03 43 80 3c 37 00 74 08 48 89 df e8 1b b0 7d 00 48 8b 3b e8 53 ae 14 00 85 c0 74 14 43 80 3c 37 00 <74> 08 48 89 df e8 00 b0 7d 00 48 8b 03 eb 02 31 c0 5b 41 5e 41 5f
RSP: 0018:ffffc90000d8f338 EFLAGS: 00000246
RAX: 0000000000000001 RBX: ffffc90000d8f3a8 RCX: 0000000000d8f301
RDX: 1ffff920001b1e6e RSI: ffffc90000d8f8d0 RDI: ffffffff817061db
RBP: ffffc90000d8f350 R08: ffffc90000d8f448 R09: 0000000000000004
R10: ffffc90000d8f450 R11: dffffc0000000001 R12: ffff8881152113c0
R13: ffffffff815f65d0 R14: dffffc0000000000 R15: 1ffff920001b1e75
 arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 save_stack+0xf6/0x1e0 mm/page_owner.c:139
 __reset_page_owner+0x36/0x190 mm/page_owner.c:156
 reset_page_owner include/linux/page_owner.h:26 [inline]
 free_pages_prepare mm/page_alloc.c:1472 [inline]
 free_pcp_prepare mm/page_alloc.c:1544 [inline]
 free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3534
 free_unref_page+0xe8/0x750 mm/page_alloc.c:3616
 free_the_page mm/page_alloc.c:805 [inline]
 __free_pages+0x61/0xf0 mm/page_alloc.c:5853
 __vunmap+0x7bc/0x8f0 mm/vmalloc.c:2652
 __vfree mm/vmalloc.c:2700 [inline]
 vfree+0x7f/0xb0 mm/vmalloc.c:2731
 kcov_put kernel/kcov.c:408 [inline]
 kcov_close+0x2b/0x50 kernel/kcov.c:510
 __fput+0x3fe/0x910 fs/file_table.c:280
 ____fput+0x15/0x20 fs/file_table.c:308
 task_work_run+0x129/0x190 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xc48/0x2ca0 kernel/exit.c:878
 do_group_exit+0x141/0x310 kernel/exit.c:1000
 get_signal+0x7a3/0x1630 kernel/signal.c:2896
 arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:867
 handle_signal_work kernel/entry/common.c:154 [inline]
 exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:178
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:214
 irqentry_exit_to_user_mode+0x9/0x10 kernel/entry/common.c:320
 irqentry_exit+0x12/0x40 kernel/entry/common.c:411
 sysvec_apic_timer_interrupt+0x55/0xc0 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0033:0x7f423f6359b9
Code: Unable to access opcode bytes at RIP 0x7f423f63598f.
RSP: 002b:00007f423e292038 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 00007f423f7d2058 RCX: 00007f423f6359b9
RDX: 00000000200006c0 RSI: 0000000000005452 RDI: 0000000000000005
RBP: 00007f423f6a38d8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f423f7d2058 R15: 00007ffd0daf5368
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/16 17:44 android13-5.15-lts da92e689a0c3 e1c76ab2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in br_multicast_port_group_expired
* Struck through repros no longer work on HEAD.