syzbot


KCSAN: data-race in data_push_tail / dentry_name (4)

Status: auto-obsoleted due to no activity on 2025/06/15 17:29
Subsystems: net
[Documentation on labels]
First crash: 112d, last: 112d
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in data_push_tail / dentry_name fs 6 2 1405d 1417d 0/29 auto-closed as invalid on 2021/11/10 04:07
upstream KCSAN: data-race in data_push_tail / dentry_name (3) mm 6 1 277d 277d 0/29 auto-obsoleted due to no activity on 2025/01/01 13:21
upstream KCSAN: data-race in data_push_tail / dentry_name (2) mm 6 1 582d 579d 0/29 auto-obsoleted due to no activity on 2024/02/11 06:34

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

write to 0xffffffff88e49a70 of 1 bytes by task 6849 on cpu 1:
 dentry_name+0x2c9/0x3c0 lib/vsprintf.c:935
 pointer+0x267/0xcf0 lib/vsprintf.c:2484
 vsnprintf+0x48f/0x8a0 lib/vsprintf.c:2856
 vscnprintf+0x42/0x90 lib/vsprintf.c:2917
 printk_sprint+0x30/0x2d0 kernel/printk/printk.c:2216
 vprintk_store+0x583/0x860 kernel/printk/printk.c:2336
 vprintk_emit+0x1a0/0x6c0 kernel/printk/printk.c:2426
 vprintk_default+0x26/0x30 kernel/printk/printk.c:2465
 vprintk+0x1d/0x30 kernel/printk/printk_safe.c:82
 _printk+0x7f/0xb0 kernel/printk/printk.c:2475
 fail_dump lib/fault-inject.c:66 [inline]
 should_fail_ex+0x249/0x270 lib/fault-inject.c:174
 should_fail+0xb/0x10 lib/fault-inject.c:184
 should_fail_usercopy+0x1a/0x20 lib/fault-inject-usercopy.c:37
 _inline_copy_from_user include/linux/uaccess.h:163 [inline]
 _copy_from_user+0x1c/0xa0 lib/usercopy.c:18
 copy_from_user include/linux/uaccess.h:212 [inline]
 copy_msghdr_from_user+0x54/0x2b0 net/socket.c:2496
 sendmsg_copy_msghdr net/socket.c:2597 [inline]
 ___sys_sendmsg net/socket.c:2616 [inline]
 __sys_sendmsg+0x141/0x240 net/socket.c:2652
 __do_sys_sendmsg net/socket.c:2657 [inline]
 __se_sys_sendmsg net/socket.c:2655 [inline]
 __x64_sys_sendmsg+0x46/0x50 net/socket.c:2655
 x64_sys_call+0x26f3/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:47
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc9/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffffffff88e49a70 of 8 bytes by task 6855 on cpu 0:
 data_make_reusable kernel/printk/printk_ringbuffer.c:594 [inline]
 data_push_tail+0x107/0x440 kernel/printk/printk_ringbuffer.c:679
 data_alloc+0xbd/0x2c0 kernel/printk/printk_ringbuffer.c:1054
 prb_reserve+0x86a/0xb80 kernel/printk/printk_ringbuffer.c:1669
 vprintk_store+0x552/0x860 kernel/printk/printk.c:2326
 vprintk_emit+0x1a0/0x6c0 kernel/printk/printk.c:2426
 vprintk_default+0x26/0x30 kernel/printk/printk.c:2465
 vprintk+0x1d/0x30 kernel/printk/printk_safe.c:82
 _printk+0x7f/0xb0 kernel/printk/printk.c:2475
 __ext4_msg+0x198/0x1b0 fs/ext4/super.c:985
 ext4_fill_super+0x17d1/0x3580 fs/ext4/super.c:5741
 get_tree_bdev_flags+0x2b4/0x330 fs/super.c:1636
 get_tree_bdev+0x1f/0x30 fs/super.c:1659
 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5758
 vfs_get_tree+0x56/0x1e0 fs/super.c:1759
 do_new_mount+0x246/0x6b0 fs/namespace.c:3881
 path_mount+0x49b/0xb30 fs/namespace.c:4208
 do_mount fs/namespace.c:4221 [inline]
 __do_sys_mount fs/namespace.c:4432 [inline]
 __se_sys_mount+0x28f/0x2e0 fs/namespace.c:4409
 __x64_sys_mount+0x67/0x80 fs/namespace.c:4409
 x64_sys_call+0xd11/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc9/0x1a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000000ffffe5b0 -> 0x202c79706f637265

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 6855 Comm: syz.0.1178 Not tainted 6.15.0-rc2-syzkaller-00471-g119009db2674 #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
==================================================================
EXT4-fs (loop0): Delayed block allocation failed for inode 18 at logical offset 1 with max blocks 1 with error 28
EXT4-fs (loop0): This should not happen!! Data will be lost

EXT4-fs (loop0): Total free blocks count 0
EXT4-fs (loop0): Free/Dirty block details
EXT4-fs (loop0): free_blocks=0
EXT4-fs (loop0): dirty_blocks=0
EXT4-fs (loop0): Block reservation details
EXT4-fs (loop0): i_reserved_data_blocks=0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/20 17:25 upstream 119009db2674 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_push_tail / dentry_name
* Struck through repros no longer work on HEAD.