================================================================== BUG: KCSAN: data-race in _prb_read_valid / prb_reserve write to 0xffffffff867191c8 of 8 bytes by task 16727 on cpu 1: prb_reserve+0x740/0xb60 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 fail_dump lib/fault-inject.c:46 [inline] should_fail_ex+0x20b/0x230 lib/fault-inject.c:154 should_fail+0xb/0x10 lib/fault-inject.c:164 should_fail_usercopy+0x1a/0x20 lib/fault-inject-usercopy.c:37 _inline_copy_from_user include/linux/uaccess.h:163 [inline] _copy_from_user+0x1e/0xb0 lib/usercopy.c:18 copy_from_user include/linux/uaccess.h:212 [inline] move_addr_to_kernel+0x82/0x120 net/socket.c:252 __sys_connect+0x67/0x1b0 net/socket.c:2070 __do_sys_connect net/socket.c:2080 [inline] __se_sys_connect net/socket.c:2077 [inline] __x64_sys_connect+0x41/0x50 net/socket.c:2077 x64_sys_call+0x22a7/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:43 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 0xffffffff867191c8 of 8 bytes by task 16725 on cpu 0: desc_read kernel/printk/printk_ringbuffer.c:486 [inline] desc_read_finalized_seq kernel/printk/printk_ringbuffer.c:1874 [inline] prb_read kernel/printk/printk_ringbuffer.c:1922 [inline] _prb_read_valid+0x1ec/0xba0 kernel/printk/printk_ringbuffer.c:2113 prb_read_valid+0x3d/0x60 kernel/printk/printk_ringbuffer.c:2182 printk_get_next_message+0xd4/0x710 kernel/printk/printk.c:2989 console_emit_next_record kernel/printk/printk.c:3076 [inline] console_flush_all+0x28a/0x770 kernel/printk/printk.c:3210 __console_flush_and_unlock kernel/printk/printk.c:3269 [inline] console_unlock+0xab/0x330 kernel/printk/printk.c:3309 do_con_write+0x2582/0x25f0 con_put_char+0x39/0x60 drivers/tty/vt/vt.c:3442 tty_put_char+0x67/0xc0 drivers/tty/tty_io.c:3167 do_output_char+0x4de/0x500 drivers/tty/n_tty.c:469 process_output drivers/tty/n_tty.c:494 [inline] n_tty_write+0x8c6/0xb80 drivers/tty/n_tty.c:2400 iterate_tty_write drivers/tty/tty_io.c:1015 [inline] file_tty_write+0x37a/0x680 drivers/tty/tty_io.c:1090 tty_write+0x28/0x30 drivers/tty/tty_io.c:1111 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x77f/0x920 fs/read_write.c:679 ksys_write+0xe8/0x1b0 fs/read_write.c:731 __do_sys_write fs/read_write.c:742 [inline] __se_sys_write fs/read_write.c:739 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:739 x64_sys_call+0x287e/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:2 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 value changed: 0x0000000000007833 -> 0x0000000000009833 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 16725 Comm: syz.3.16251 Not tainted 6.13.0-rc4-syzkaller-00071-gfd0584d220fe #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================