syzbot


KCSAN: data-race in bitmap_list_string / data_push_tail

Status: auto-obsoleted due to no activity on 2025/01/20 15:04
Subsystems: bpf net
[Documentation on labels]
First crash: 56d, last: 56d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in bitmap_list_string / data_push_tail

write to 0xffffffff88bd81f7 of 1 bytes by task 8644 on cpu 0:
 string_nocheck lib/vsprintf.c:650 [inline]
 error_string lib/vsprintf.c:688 [inline]
 check_pointer lib/vsprintf.c:714 [inline]
 bitmap_list_string+0xf1/0x290 lib/vsprintf.c:1281
 pointer+0x59c/0xd20 lib/vsprintf.c:2455
 vsnprintf+0x861/0xe30 lib/vsprintf.c:2852
 vscnprintf+0x42/0x90 lib/vsprintf.c:2954
 printk_sprint+0x30/0x2d0 kernel/printk/printk.c:2216
 vprintk_store+0x589/0x870 kernel/printk/printk.c:2336
 vprintk_emit+0x15e/0x680 kernel/printk/printk.c:2408
 vprintk_default+0x26/0x30 kernel/printk/printk.c:2447
 vprintk+0x75/0x80 kernel/printk/printk_safe.c:86
 _printk+0x7a/0xa0 kernel/printk/printk.c:2457
 warn_alloc+0x12b/0x1b0 mm/page_alloc.c:3541
 __vmalloc_node_range_noprof+0xaa/0xe80 mm/vmalloc.c:3780
 vmalloc_user_noprof+0x59/0x70 mm/vmalloc.c:3998
 xskq_create+0x79/0xd0 net/xdp/xsk_queue.c:49
 xsk_init_queue+0x82/0xd0 net/xdp/xsk.c:1018
 xsk_setsockopt+0x409/0x520 net/xdp/xsk.c:1352
 do_sock_setsockopt net/socket.c:2313 [inline]
 __sys_setsockopt+0x187/0x200 net/socket.c:2338
 __do_sys_setsockopt net/socket.c:2344 [inline]
 __se_sys_setsockopt net/socket.c:2341 [inline]
 __x64_sys_setsockopt+0x66/0x80 net/socket.c:2341
 x64_sys_call+0x282e/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:55
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffffffff88bd81f0 of 8 bytes by task 29 on cpu 1:
 data_make_reusable kernel/printk/printk_ringbuffer.c:594 [inline]
 data_push_tail+0x102/0x430 kernel/printk/printk_ringbuffer.c:679
 data_alloc+0xbe/0x2c0 kernel/printk/printk_ringbuffer.c:1054
 prb_reserve+0x85e/0xb60 kernel/printk/printk_ringbuffer.c:1669
 vprintk_store+0x558/0x870 kernel/printk/printk.c:2326
 vprintk_emit+0x15e/0x680 kernel/printk/printk.c:2408
 vprintk_default+0x26/0x30 kernel/printk/printk.c:2447
 vprintk+0x75/0x80 kernel/printk/printk_safe.c:86
 _printk+0x7a/0xa0 kernel/printk/printk.c:2457
 kauditd_printk_skb kernel/audit.c:546 [inline]
 kauditd_hold_skb+0x1a3/0x1b0 kernel/audit.c:581
 kauditd_send_queue+0x288/0x2e0 kernel/audit.c:766
 kauditd_thread+0x42a/0x650 kernel/audit.c:890
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0x00000000ffffe913 -> 0x756e283d6b73616d

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 29 Comm: kauditd Tainted: G        W          6.12.0-syzkaller-09073-g9f16d5e6f220 #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/25 15:03 upstream 9f16d5e6f220 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bitmap_list_string / data_push_tail
* Struck through repros no longer work on HEAD.