================================================================== BUG: KCSAN: data-race in data_push_tail / number write to 0xffffffff86da1f23 of 1 bytes by task 19752 on cpu 0: number+0x846/0xb60 lib/vsprintf.c:556 vsnprintf+0xb6d/0xed0 lib/vsprintf.c:2861 vscnprintf+0x29/0x80 lib/vsprintf.c:2898 printk_sprint kernel/printk/printk.c:2076 [inline] vprintk_store+0x638/0xbb0 kernel/printk/printk.c:2186 vprintk_emit+0xac/0x3c0 kernel/printk/printk.c:2229 vprintk_default+0x22/0x30 kernel/printk/printk.c:2256 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50 _printk+0x76/0x97 kernel/printk/printk.c:2266 fail_dump lib/fault-inject.c:45 [inline] should_fail+0x223/0x250 lib/fault-inject.c:146 should_fail_usercopy+0x16/0x20 lib/fault-inject-usercopy.c:37 _copy_to_user+0x1c/0x90 lib/usercopy.c:29 copy_to_user include/linux/uaccess.h:200 [inline] simple_read_from_buffer+0xab/0x120 fs/libfs.c:768 proc_fail_nth_read+0x10d/0x150 fs/proc/base.c:1426 vfs_read+0x1e6/0x750 fs/read_write.c:479 ksys_read+0xd9/0x190 fs/read_write.c:619 __do_sys_read fs/read_write.c:629 [inline] __se_sys_read fs/read_write.c:627 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:627 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffffff86da1f20 of 8 bytes by task 19756 on cpu 1: data_make_reusable kernel/printk/printk_ringbuffer.c:587 [inline] data_push_tail+0x138/0x470 kernel/printk/printk_ringbuffer.c:672 data_alloc+0xbc/0x2b0 kernel/printk/printk_ringbuffer.c:1043 prb_reserve+0x920/0xbf0 kernel/printk/printk_ringbuffer.c:1549 vprintk_store+0x560/0xbb0 kernel/printk/printk.c:2176 vprintk_emit+0xac/0x3c0 kernel/printk/printk.c:2229 vprintk_default+0x22/0x30 kernel/printk/printk.c:2256 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50 _printk+0x76/0x97 kernel/printk/printk.c:2266 fail_dump lib/fault-inject.c:45 [inline] should_fail+0x223/0x250 lib/fault-inject.c:146 __should_failslab+0x81/0x90 mm/failslab.c:33 should_failslab+0x5/0x20 mm/slab_common.c:1304 slab_pre_alloc_hook mm/slab.h:707 [inline] slab_alloc mm/slab.c:3298 [inline] kmem_cache_alloc+0x4f/0x320 mm/slab.c:3499 sock_alloc_inode+0x23/0x90 net/socket.c:304 alloc_inode fs/inode.c:260 [inline] new_inode_pseudo+0x38/0x190 fs/inode.c:1018 sock_alloc net/socket.c:627 [inline] __sock_create+0x122/0x4e0 net/socket.c:1432 sock_create net/socket.c:1519 [inline] __sys_socket+0xb8/0x200 net/socket.c:1561 __do_sys_socket net/socket.c:1570 [inline] __se_sys_socket net/socket.c:1568 [inline] __x64_sys_socket+0x3b/0x50 net/socket.c:1568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x0000000100004b25 -> 0x0000000100206c61 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 19756 Comm: syz-executor.4 Not tainted 5.17.0-rc7-syzkaller-00235-gaad611a868d1-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== CPU: 1 PID: 19756 Comm: syz-executor.4 Not tainted 5.17.0-rc7-syzkaller-00235-gaad611a868d1-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd6/0x122 lib/dump_stack.c:106 dump_stack+0x11/0x1b lib/dump_stack.c:113 fail_dump lib/fault-inject.c:52 [inline] should_fail+0x23c/0x250 lib/fault-inject.c:146 __should_failslab+0x81/0x90 mm/failslab.c:33 should_failslab+0x5/0x20 mm/slab_common.c:1304 slab_pre_alloc_hook mm/slab.h:707 [inline] slab_alloc mm/slab.c:3298 [inline] kmem_cache_alloc+0x4f/0x320 mm/slab.c:3499 sock_alloc_inode+0x23/0x90 net/socket.c:304 alloc_inode fs/inode.c:260 [inline] new_inode_pseudo+0x38/0x190 fs/inode.c:1018 sock_alloc net/socket.c:627 [inline] __sock_create+0x122/0x4e0 net/socket.c:1432 sock_create net/socket.c:1519 [inline] __sys_socket+0xb8/0x200 net/socket.c:1561 __do_sys_socket net/socket.c:1570 [inline] __se_sys_socket net/socket.c:1568 [inline] __x64_sys_socket+0x3b/0x50 net/socket.c:1568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fda682b0049 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fda67426168 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00007fda683c2f60 RCX: 00007fda682b0049 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 000000000000001e RBP: 00007fda674261d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffcee293d8f R14: 00007fda67426300 R15: 0000000000022000 socket: no more sockets