syzbot


INFO: rcu detected stall in bpf_link_release (3)

Status: auto-obsoleted due to no activity on 2025/01/25 11:31
Subsystems: mm
[Documentation on labels]
First crash: 94d, last: 94d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in bpf_link_release (2) kernel 1 809d 809d 0/28 auto-obsoleted due to no activity on 2023/02/13 11:46
upstream INFO: rcu detected stall in bpf_link_release kernel 1 1124d 1124d 0/28 closed as invalid on 2022/02/08 10:10
android-5-15 BUG: soft lockup in bpf_link_release 18 177d 296d 0/2 auto-obsoleted due to no activity on 2024/11/03 19:01
android-6-1 BUG: soft lockup in bpf_link_release 2 1d18h 84d 0/2 premoderation: reported on 2024/11/05 21:37

Sample crash report:
bridge0: received packet on bridge_slave_0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1):
 P5248/1:b..l P4689/1:b..l P5491/1:b..l P5502/1:b..l
rcu: 	(detected by 1, t=10502 jiffies, g=6797, q=1398 ncpus=2)
task:syz.1.52        state:R  running task     stack:23512 pid:5502  tgid:5495  ppid:5231   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5322 [inline]
 __schedule+0x1895/0x4b30 kernel/sched/core.c:6682
 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7004
 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5829
Code: 2b 00 74 08 4c 89 f7 e8 8a 3f 8e 00 f6 44 24 61 02 0f 85 85 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc900099d71a0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff9200133ae40 RCX: d486a9a5fdf87200
RDX: dffffc0000000000 RSI: ffffffff8c0adc40 RDI: ffffffff8c60fb20
RBP: ffffc900099d72e8 R08: ffffffff942cc807 R09: 1ffffffff2859900
R10: dffffc0000000000 R11: fffffbfff2859901 R12: 1ffff9200133ae3c
R13: dffffc0000000000 R14: ffffc900099d7200 R15: 0000000000000246
 rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 rcu_read_lock include/linux/rcupdate.h:849 [inline]
 __pte_offset_map+0x9e/0x380 mm/pgtable-generic.c:287
 __pte_offset_map_lock+0xc7/0x300 mm/pgtable-generic.c:371
 get_locked_pte include/linux/mm.h:2727 [inline]
 __text_poke+0x2c5/0xd30 arch/x86/kernel/alternative.c:1899
 text_poke arch/x86/kernel/alternative.c:1984 [inline]
 text_poke_bp_batch+0x265/0xb30 arch/x86/kernel/alternative.c:2292
 text_poke_flush arch/x86/kernel/alternative.c:2486 [inline]
 text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2493
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 static_key_disable_cpuslocked+0xd2/0x1c0 kernel/jump_label.c:240
 static_key_disable+0x1a/0x20 kernel/jump_label.c:248
 tracepoint_remove_func kernel/tracepoint.c:417 [inline]
 tracepoint_probe_unregister+0x6f2/0x990 kernel/tracepoint.c:551
 bpf_raw_tp_link_release+0x45/0x70 kernel/bpf/syscall.c:3475
 bpf_link_free+0xf5/0x250 kernel/bpf/syscall.c:3005
 bpf_link_put_direct kernel/bpf/syscall.c:3045 [inline]
 bpf_link_release+0x78/0x90 kernel/bpf/syscall.c:3052
 __fput+0x23f/0x880 fs/file_table.c:431
 task_work_run+0x24f/0x310 kernel/task_work.c:228
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0xa2f/0x28e0 kernel/exit.c:939
 do_group_exit+0x207/0x2c0 kernel/exit.c:1088
 get_signal+0x16a3/0x1740 kernel/signal.c:2917
 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0xc9/0x370 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe58037e719
RSP: 002b:00007fe5811250e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000001 RBX: 00007fe580536060 RCX: 00007fe58037e719
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007fe580536064
RBP: 00007fe580536058 R08: 7fffffffffffffff R09: 0000000000000000
R10: 0000000000000008 R11: 0000000000000246 R12: 00007fe580536064
R13: 0000000000000000 R14: 00007ffcae6c9270 R15: 00007ffcae6c9358
 </TASK>
task:syz.0.51        state:R  running task     stack:23808 pid:5491  tgid:5491  ppid:5235   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5322 [inline]
 __schedule+0x1895/0x4b30 kernel/sched/core.c:6682
 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6861
 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6885
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12
 __local_bh_enable_ip+0x179/0x200 kernel/softirq.c:389
 spin_unlock_bh include/linux/spinlock.h:396 [inline]
 nl80211_netlink_notify+0x6e6/0x840 net/wireless/nl80211.c:20145
 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93
 blocking_notifier_call_chain+0x69/0x90 kernel/notifier.c:388
 netlink_release+0x11a6/0x1b10 net/netlink/af_netlink.c:787
 __sock_release net/socket.c:658 [inline]
 sock_close+0xbc/0x240 net/socket.c:1426
 __fput+0x23f/0x880 fs/file_table.c:431
 task_work_run+0x24f/0x310 kernel/task_work.c:228
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0xa2f/0x28e0 kernel/exit.c:939
 do_group_exit+0x207/0x2c0 kernel/exit.c:1088
 __do_sys_exit_group kernel/exit.c:1099 [inline]
 __se_sys_exit_group kernel/exit.c:1097 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1097
 x64_sys_call+0x2634/0x2640 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fefc377e719
RSP: 002b:00007ffd15ebbfb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 000000000000000b RCX: 00007fefc377e719
RDX: 00007fefc3735a47 RSI: 0000000000000000 RDI: 000000000000000b
RBP: 00007fefc3936214 R08: 00007ffd15ebc437 R09: 000000000000000b
R10: 00007fefc3935f80 R11: 0000000000000246 R12: 0000000000000003
R13: 00007fefc3936208 R14: 0000000000000005 R15: 0000000000001273
 </TASK>
task:udevd           state:R  running task     stack:23872 pid:4689  tgid:4689  ppid:1      flags:0x00000002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5322 [inline]
 __schedule+0x1895/0x4b30 kernel/sched/core.c:6682
 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6861
 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6885
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12
 unwind_next_frame+0x18f8/0x22d0 arch/x86/kernel/unwind_orc.c:672
 arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122
 save_stack+0xfb/0x1f0 mm/page_owner.c:156
 __reset_page_owner+0x76/0x430 mm/page_owner.c:297
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1108 [inline]
 free_unref_page+0xcfb/0xf20 mm/page_alloc.c:2638
 discard_slab mm/slub.c:2677 [inline]
 __put_partials+0xeb/0x130 mm/slub.c:3145
 put_cpu_partial+0x17c/0x250 mm/slub.c:3220
 __slab_free+0x2ea/0x3d0 mm/slub.c:4449
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329
 kasan_slab_alloc include/linux/kasan.h:247 [inline]
 slab_post_alloc_hook mm/slub.c:4085 [inline]
 slab_alloc_node mm/slub.c:4134 [inline]
 kmem_cache_alloc_noprof+0x135/0x2a0 mm/slub.c:4141
 getname_flags+0xb7/0x540 fs/namei.c:139
 do_readlinkat+0xd8/0x3a0 fs/stat.c:536
 __do_sys_readlink fs/stat.c:574 [inline]
 __se_sys_readlink fs/stat.c:571 [inline]
 __x64_sys_readlink+0x7f/0x90 fs/stat.c:571
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd4b3717d47
RSP: 002b:00007ffe0df7d268 EFLAGS: 00000246 ORIG_RAX: 0000000000000059
RAX: ffffffffffffffda RBX: 00007ffe0df7d278 RCX: 00007fd4b3717d47
RDX: 0000000000000400 RSI: 00007ffe0df7d278 RDI: 00007ffe0df7d758
RBP: 0000000000000400 R08: 00005629b77f0054 R09: 0000000000000000
R10: 0000000000000812 R11: 0000000000000246 R12: 00007ffe0df7d758
R13: 00007ffe0df7d6c8 R14: 00005629b77db910 R15: 0000000000000000
 </TASK>
task:syz-executor    state:R  running task     stack:19968 pid:5248  tgid:5248  ppid:5230   flags:0x00000000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5322 [inline]
 __schedule+0x1895/0x4b30 kernel/sched/core.c:6682
 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7004
 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:preempt_count_add+0x121/0x190 kernel/sched/core.c:5785
Code: 0e 00 75 19 90 48 c7 c7 c0 59 0a 8c 48 c7 c6 00 5a 0a 8c e8 51 a4 f2 ff 90 0f 0b 90 90 90 e9 5c ff ff ff 48 c7 c1 40 39 3d 9a <80> e1 07 80 c1 03 38 c1 0f 8c fe fe ff ff 48 c7 c7 40 39 3d 9a e8
RSP: 0018:ffffc90003b0edb0 EFLAGS: 00000202
RAX: 0000000000000004 RBX: 0000000000000001 RCX: ffffffff9a3d3940
RDX: dffffc0000000000 RSI: ffffffff8a283f13 RDI: 0000000000000001
RBP: ffffc90003b0eed8 R08: 000000000000000e R09: ffffc90003b0ef90
R10: ffffc90003b0eef0 R11: ffffffff8180a0e0 R12: dffffc0000000000
R13: ffffc90003b0eea0 R14: ffffffff8a283f13 R15: dffffc0000000000
 unwind_next_frame+0xb0/0x22d0 arch/x86/kernel/unwind_orc.c:479
 arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122
 save_stack+0xfb/0x1f0 mm/page_owner.c:156
 __reset_page_owner+0x76/0x430 mm/page_owner.c:297
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1108 [inline]
 free_unref_page+0xcfb/0xf20 mm/page_alloc.c:2638
 discard_slab mm/slub.c:2677 [inline]
 __put_partials+0xeb/0x130 mm/slub.c:3145
 put_cpu_partial+0x17c/0x250 mm/slub.c:3220
 __slab_free+0x2ea/0x3d0 mm/slub.c:4449
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286
 __kasan_kmalloc+0x23/0xb0 mm/kasan/common.c:385
 kasan_kmalloc include/linux/kasan.h:257 [inline]
 __do_kmalloc_node mm/slub.c:4264 [inline]
 __kmalloc_node_noprof+0x22a/0x440 mm/slub.c:4270
 kmalloc_node_noprof include/linux/slab.h:905 [inline]
 __vmalloc_area_node mm/vmalloc.c:3624 [inline]
 __vmalloc_node_range_noprof+0x5c3/0x13f0 mm/vmalloc.c:3828
 __vmalloc_node_noprof mm/vmalloc.c:3893 [inline]
 vzalloc_noprof+0x79/0x90 mm/vmalloc.c:3966
 alloc_counters+0xd7/0x740 net/ipv4/netfilter/ip_tables.c:799
 copy_entries_to_user net/ipv4/netfilter/arp_tables.c:681 [inline]
 get_entries net/ipv4/netfilter/arp_tables.c:867 [inline]
 do_arpt_get_ctl+0xe7c/0x16b0 net/ipv4/netfilter/arp_tables.c:1461
 nf_getsockopt+0x299/0x2c0 net/netfilter/nf_sockopt.c:116
 ip_getsockopt+0x222/0x2e0 net/ipv4/ip_sockglue.c:1777
 tcp_getsockopt+0x163/0x1c0 net/ipv4/tcp.c:4671
 do_sock_getsockopt+0x3c4/0x7e0 net/socket.c:2396
 __sys_getsockopt+0x267/0x330 net/socket.c:2425
 __do_sys_getsockopt net/socket.c:2435 [inline]
 __se_sys_getsockopt net/socket.c:2432 [inline]
 __x64_sys_getsockopt+0xb5/0xd0 net/socket.c:2432
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7eff5db8045a
RSP: 002b:00007fffb78f5ff8 EFLAGS: 00000212 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007eff5db8045a
RDX: 0000000000000061 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007fffb78f6060 R08: 00007fffb78f600c R09: 00007fffb78f63f7
R10: 00007fffb78f6060 R11: 0000000000000212 R12: 00007fffb78f600c
R13: 000000000000fd8d R14: 000000000000fafb R15: 00007fffb78f6730
 </TASK>
rcu: rcu_preempt kthread starved for 10503 jiffies! g6797 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:R  running task     stack:26144 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5322 [inline]
 __schedule+0x1895/0x4b30 kernel/sched/core.c:6682
 __schedule_loop kernel/sched/core.c:6759 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6774
 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615
 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2045
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2247
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 UID: 0 PID: 5283 Comm: kworker/1:4 Not tainted 6.12.0-rc2-syzkaller-00631-g6d858708d465 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: wg-crypt-wg2 wg_packet_decrypt_worker
RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2042 [inline]
RIP: 0010:vprintk_emit+0x700/0xa10 kernel/printk/printk.c:2406
Code: 00 e8 84 c1 20 00 4c 8d bc 24 a0 00 00 00 4d 85 e4 75 07 e8 72 c1 20 00 eb 06 e8 6b c1 20 00 fb 49 bc 00 00 00 00 00 fc ff df <48> c7 c7 c0 33 81 8e 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00
RSP: 0018:ffffc90000a17dc0 EFLAGS: 00000246
RAX: ffffffff817425e5 RBX: 0000000000000000 RCX: ffff88802db2bc00
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000a17ed0 R08: ffffffff817425be R09: 1ffffffff285991e
R10: dffffc0000000000 R11: fffffbfff285991f R12: dffffc0000000000
R13: 1ffff92000142fbc R14: ffffffff81742420 R15: ffffc90000a17e60
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdda5a27a03 CR3: 00000000284ae000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 _printk+0xd5/0x120 kernel/printk/printk.c:2432
 br_fdb_update+0x6ce/0x740 net/bridge/br_fdb.c:897
 br_handle_frame_finish+0x739/0x1fe0 net/bridge/br_input.c:141
 br_nf_hook_thresh+0x472/0x590
 br_nf_pre_routing_finish_ipv6+0xaa0/0xdd0
 NF_HOOK include/linux/netfilter.h:314 [inline]
 br_nf_pre_routing_ipv6+0x379/0x770 net/bridge/br_netfilter_ipv6.c:184
 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline]
 nf_hook_bridge_pre net/bridge/br_input.c:277 [inline]
 br_handle_frame+0x9fd/0x1530 net/bridge/br_input.c:424
 __netif_receive_skb_core+0x13e8/0x4570 net/core/dev.c:5562
 __netif_receive_skb_one_core net/core/dev.c:5666 [inline]
 __netif_receive_skb+0x12f/0x650 net/core/dev.c:5781
 process_backlog+0x662/0x15b0 net/core/dev.c:6113
 __napi_poll+0xcb/0x490 net/core/dev.c:6834
 napi_poll net/core/dev.c:6903 [inline]
 net_rx_action+0x89b/0x1240 net/core/dev.c:7025
 handle_softirqs+0x2c5/0x980 kernel/softirq.c:554
 do_softirq+0x11b/0x1e0 kernel/softirq.c:455
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x1bb/0x200 kernel/softirq.c:382
 spin_unlock_bh include/linux/spinlock.h:396 [inline]
 ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline]
 wg_packet_decrypt_worker+0x2a9/0xd80 drivers/net/wireguard/receive.c:499
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310
 worker_thread+0x870/0xd30 kernel/workqueue.c:3391
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
bridge0: received packet on bridge_slave_0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on bridge_slave_0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
net_ratelimit: 23510 callbacks suppressed
bridge0: received packet on bridge_slave_0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:d2:7b:4d:a1:5e:9c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:d2:7b:4d:a1:5e:9c, vlan:0)

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/27 11:22 net-next 6d858708d465 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in bpf_link_release
* Struck through repros no longer work on HEAD.