[moderation] [kernel?] KCSAN: data-race in data_push_tail / symbol_string (13)

1 view
Skip to first unread message

syzbot

unread,
May 26, 2026, 9:43:26 AM (18 hours ago) May 26
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e8c2f9fdadee Merge tag 'for-7.1/hpfs-fixes' of git://git.k..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=16ce7aec580000
kernel config: https://syzkaller.appspot.com/x/.config?x=d830408e2d151f21
dashboard link: https://syzkaller.appspot.com/bug?extid=87ceb230e13b905151cb
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
CC: [b...@alien8.de dave....@linux.intel.com h...@zytor.com jpoi...@kernel.org linux-...@vger.kernel.org mi...@redhat.com pet...@infradead.org tg...@kernel.org x...@kernel.org]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/b9b29ac20c94/disk-e8c2f9fd.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/c387e5ec8602/vmlinux-e8c2f9fd.xz
kernel image: https://storage.googleapis.com/syzbot-assets/397c556af037/bzImage-e8c2f9fd.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+87ceb2...@syzkaller.appspotmail.com

BUG: KCSAN: data-race in data_push_tail / symbol_string

write to 0xffffffff89398bb8 of 1 bytes by task 18568 on cpu 1:
string_nocheck lib/vsprintf.c:659 [inline]
symbol_string+0x1ce/0x250 lib/vsprintf.c:1015
pointer+0x60c/0xcb0 lib/vsprintf.c:2536
vsnprintf+0x491/0x860 lib/vsprintf.c:2952
vscnprintf+0x41/0x90 lib/vsprintf.c:3013
printk_sprint+0x30/0x2b0 kernel/printk/printk.c:2222
vprintk_store+0x57b/0x910 kernel/printk/printk.c:2364
vprintk_emit+0x1a4/0x600 kernel/printk/printk.c:2455
vprintk_default+0x26/0x30 kernel/printk/printk.c:2494
vprintk+0x1d/0x30 kernel/printk/printk_safe.c:82
_printk+0x79/0xa0 kernel/printk/printk.c:2504
printk_stack_address arch/x86/kernel/dumpstack.c:70 [inline]
__show_trace_log_lvl+0x460/0x560 arch/x86/kernel/dumpstack.c:282
__dump_stack+0x1d/0x30 lib/dump_stack.c:94
dump_stack_lvl+0x95/0xd0 lib/dump_stack.c:120
dump_stack+0x15/0x1b lib/dump_stack.c:129
fail_dump lib/fault-inject.c:73 [inline]
should_fail_ex+0x263/0x280 lib/fault-inject.c:174
should_fail+0xb/0x20 lib/fault-inject.c:184
should_fail_usercopy+0x1a/0x20 lib/fault-inject-usercopy.c:35
_inline_copy_from_user include/linux/uaccess.h:170 [inline]
_copy_from_user+0x1c/0xb0 lib/usercopy.c:18
copy_from_user include/linux/uaccess.h:223 [inline]
copy_from_sockptr_offset include/linux/sockptr.h:48 [inline]
copy_from_sockptr include/linux/sockptr.h:61 [inline]
copy_group_source_from_sockptr net/ipv4/ip_sockglue.c:714 [inline]
do_mcast_group_source+0x123/0x420 net/ipv4/ip_sockglue.c:729
do_ip_setsockopt+0x175a/0x2290 net/ipv4/ip_sockglue.c:1334
ip_setsockopt+0x58/0x110 net/ipv4/ip_sockglue.c:1417
udp_setsockopt+0x89/0xa0 net/ipv4/udp.c:2986
sock_common_setsockopt+0x69/0x80 net/core/sock.c:3989
do_sock_setsockopt net/socket.c:2381 [inline]
__sys_setsockopt+0x184/0x200 net/socket.c:2406
__do_sys_setsockopt net/socket.c:2412 [inline]
__se_sys_setsockopt net/socket.c:2409 [inline]
__x64_sys_setsockopt+0x64/0x80 net/socket.c:2409
x64_sys_call+0x2327/0x3020 arch/x86/include/generated/asm/syscalls_64.h:55
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x12c/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffffffff89398bb8 of 8 bytes by task 18540 on cpu 0:
data_make_reusable kernel/printk/printk_ringbuffer.c:608 [inline]
data_push_tail+0x100/0x470 kernel/printk/printk_ringbuffer.c:693
data_alloc+0x11b/0x390 kernel/printk/printk_ringbuffer.c:1089
prb_reserve+0x8d6/0xad0 kernel/printk/printk_ringbuffer.c:1727
vprintk_store+0x54a/0x910 kernel/printk/printk.c:2354
vprintk_emit+0x1a4/0x600 kernel/printk/printk.c:2455
vprintk_default+0x26/0x30 kernel/printk/printk.c:2494
vprintk+0x1d/0x30 kernel/printk/printk_safe.c:82
_printk+0x79/0xa0 kernel/printk/printk.c:2504
set_capacity_and_notify+0x1dd/0x230 block/genhd.c:93
loop_set_size+0x2e/0x70 drivers/block/loop.c:220
loop_configure+0x828/0x9c0 drivers/block/loop.c:1079
lo_ioctl+0x1e1/0x13a0 drivers/block/loop.c:1534
blkdev_ioctl+0x387/0x460 block/ioctl.c:797
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:597 [inline]
__se_sys_ioctl+0xce/0x140 fs/ioctl.c:583
__x64_sys_ioctl+0x43/0x50 fs/ioctl.c:583
x64_sys_call+0x1563/0x3020 arch/x86/include/generated/asm/syscalls_64.h:17
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x12c/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x3ffffffffffff49e -> 0x6863735f6b736174

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 18540 Comm: syz.9.3805 Tainted: G W syzkaller #0 PREEMPT(full)
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
==================================================================
EXT4-fs (loop9): encrypted files will use data=ordered instead of data journaling mode
EXT4-fs (loop9): 1 orphan inode deleted
EXT4-fs (loop9): 1 truncate cleaned up
EXT4-fs (loop9): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback.
EXT4-fs (loop9): unmounting filesystem 00000000-0000-0000-0000-000000000000.


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages