syzbot


KMSAN: uninit-value in unwind_dump

Status: fixed on 2024/06/05 13:52
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+355c5bb8c1445c871ee8@syzkaller.appspotmail.com
Fix commit: 90d1f14cbb9d kmsan: compiler_types: declare __no_sanitize_or_inline
First crash: 234d, last: 234d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2] kmsan: compiler_types: declare __no_sanitize_or_inline 1 (1) 2024/04/26 09:16
[PATCH] kmsan: compiler_types: declare __no_sanitize_or_inline 4 (4) 2024/04/26 09:09
[syzbot] [net?] KMSAN: uninit-value in unwind_dump 1 (2) 2024/04/22 08:39

Sample crash report:
WARNING: kernel stack frame pointer at ffff88813fd05fe8 in kworker/1:1:42 has bad value ffff888103513fe8
unwind stack type:0 next_sp:ffff888103513fd8 mask:0x4 graph_idx:0
=====================================================
BUG: KMSAN: uninit-value in unwind_dump+0x5a0/0x730 arch/x86/kernel/unwind_frame.c:60
 unwind_dump+0x5a0/0x730 arch/x86/kernel/unwind_frame.c:60
 unwind_next_frame+0x2d6/0x470
 arch_stack_walk+0x1ec/0x2d0 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0xaa/0xe0 kernel/stacktrace.c:122
 ref_tracker_free+0x103/0xec0 lib/ref_tracker.c:239
 __netns_tracker_free include/net/net_namespace.h:348 [inline]
 put_net_track include/net/net_namespace.h:363 [inline]
 __sk_destruct+0x5aa/0xb70 net/core/sock.c:2204
 sk_destruct net/core/sock.c:2223 [inline]
 __sk_free+0x6de/0x760 net/core/sock.c:2234
 sk_free+0x70/0xc0 net/core/sock.c:2245
 deferred_put_nlk_sk+0x243/0x270 net/netlink/af_netlink.c:744
 rcu_do_batch kernel/rcu/tree.c:2196 [inline]
 rcu_core+0xa59/0x1e70 kernel/rcu/tree.c:2471
 rcu_core_si+0x12/0x20 kernel/rcu/tree.c:2488
 __do_softirq+0x1c0/0x7d7 kernel/softirq.c:554
 invoke_softirq kernel/softirq.c:428 [inline]
 __irq_exit_rcu kernel/softirq.c:633 [inline]
 irq_exit_rcu+0x6a/0x130 kernel/softirq.c:645
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
 sysvec_apic_timer_interrupt+0x83/0x90 arch/x86/kernel/apic/apic.c:1043

Local variable tx created at:
 ieee80211_get_buffered_bc+0x44/0x970 net/mac80211/tx.c:5886
 mac80211_hwsim_beacon_tx+0x63b/0xb40 drivers/net/wireless/virtual/mac80211_hwsim.c:2303

CPU: 1 PID: 42 Comm: kworker/1:1 Not tainted 6.9.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: usb_hub_wq hub_event
=====================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/15 16:25 upstream 0bbac3facb5d c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in unwind_dump
* Struck through repros no longer work on HEAD.