syzbot


BUG: using smp_processor_id() in preemptible code in rcu_is_watching

Status: auto-obsoleted due to no activity on 2024/07/02 12:29
Reported-by: syzbot+f474d3a7de4080e16385@syzkaller.appspotmail.com
First crash: 258d, last: 244d

Sample crash report:
BUG: using smp_processor_id() in preemptible [00000000] code: syz-executor.1/31294
caller is debug_smp_processor_id+0x17/0x20 lib/smp_processor_id.c:60
CPU: 1 PID: 31294 Comm: syz-executor.1 Tainted: G        W          6.1.75-syzkaller-00108-g3ca4271578e1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x1b lib/dump_stack.c:113
 check_preemption_disabled+0x109/0x110 lib/smp_processor_id.c:49
 debug_smp_processor_id+0x17/0x20 lib/smp_processor_id.c:60
 rcu_dynticks_curr_cpu_in_eqs include/linux/context_tracking.h:122 [inline]
 rcu_is_watching+0x15/0xb0 kernel/rcu/tree.c:721
 kernel_text_address+0x83/0xe0 kernel/extable.c:113
 __kernel_text_address+0xd/0x40 kernel/extable.c:79
 unwind_get_return_address+0x4d/0x90 arch/x86/kernel/unwind_frame.c:19
 arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505
 ____kasan_kmalloc mm/kasan/common.c:379 [inline]
 __kasan_kmalloc+0x9c/0xb0 mm/kasan/common.c:388
 kasan_kmalloc include/linux/kasan.h:212 [inline]
 __do_kmalloc_node mm/slab_common.c:957 [inline]
 __kmalloc_node+0xb4/0x1e0 mm/slab_common.c:964
 kmalloc_node include/linux/slab.h:579 [inline]
 __bpf_map_area_alloc kernel/bpf/syscall.c:328 [inline]
 bpf_map_area_alloc+0x4f/0xf0 kernel/bpf/syscall.c:341
 dev_map_alloc+0x3a/0x770 kernel/bpf/devmap.c:166
 find_and_alloc_map kernel/bpf/syscall.c:133 [inline]
 map_create+0x44a/0xcf0 kernel/bpf/syscall.c:1108
 __sys_bpf+0x2e6/0x7f0 kernel/bpf/syscall.c:4963
 __do_sys_bpf kernel/bpf/syscall.c:5085 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5083 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5083
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f935a67dde9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f935b4850c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f935a7ac120 RCX: 00007f935a67dde9
RDX: 0000000000000048 RSI: 0000000020000000 RDI: 0000000000000000
RBP: 00007f935a6ca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f935a7ac120 R15: 00007ffca18eddb8
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/03 12:26 android14-6.1 3ca4271578e1 7925100d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: using smp_processor_id() in preemptible code in rcu_is_watching
2024/03/20 22:11 android14-6.1 3f5807c586a6 5b7d42ae .config console log report info ci2-android-6-1-perf BUG: using smp_processor_id() in preemptible code in rcu_is_watching
* Struck through repros no longer work on HEAD.