================================================================== BUG: KCSAN: data-race in data_push_tail / number write to 0xffffffff86e04098 of 1 bytes by task 22533 on cpu 1: number+0x85f/0xa90 lib/vsprintf.c:562 vsnprintf+0xa44/0xe20 lib/vsprintf.c:2862 vscnprintf+0x42/0x80 lib/vsprintf.c:2902 printk_sprint+0x30/0x330 kernel/printk/printk.c:2180 vprintk_store+0x56e/0x800 kernel/printk/printk.c:2294 vprintk_emit+0xd0/0x430 kernel/printk/printk.c:2340 vprintk_default+0x26/0x30 kernel/printk/printk.c:2370 vprintk+0x83/0x90 kernel/printk/printk_safe.c:50 _printk+0x7a/0xa0 kernel/printk/printk.c:2380 __show_free_areas+0x1d5/0xbc0 mm/page_alloc.c:6103 __show_mem+0x32/0x1e0 lib/show_mem.c:17 warn_alloc_show_mem mm/page_alloc.c:4332 [inline] warn_alloc+0x19e/0x1b0 mm/page_alloc.c:4357 __vmalloc_node_range+0x2e4/0xe70 mm/vmalloc.c:3192 __vmalloc_node mm/vmalloc.c:3292 [inline] __vmalloc+0x5e/0x70 mm/vmalloc.c:3306 bpf_prog_alloc_no_stats+0x37/0x1d0 kernel/bpf/core.c:95 bpf_prog_alloc+0x1a/0xf0 kernel/bpf/core.c:133 bpf_prog_load+0x626/0xf70 kernel/bpf/syscall.c:2555 __sys_bpf+0x4c4/0x810 kernel/bpf/syscall.c:4969 __do_sys_bpf kernel/bpf/syscall.c:5073 [inline] __se_sys_bpf kernel/bpf/syscall.c:5071 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5071 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffffff86e04098 of 8 bytes by task 22547 on cpu 0: data_make_reusable kernel/printk/printk_ringbuffer.c:590 [inline] data_push_tail+0x102/0x430 kernel/printk/printk_ringbuffer.c:675 data_alloc+0xbe/0x2c0 kernel/printk/printk_ringbuffer.c:1046 prb_reserve+0x893/0xbc0 kernel/printk/printk_ringbuffer.c:1555 vprintk_store+0x53d/0x800 kernel/printk/printk.c:2284 vprintk_emit+0xd0/0x430 kernel/printk/printk.c:2340 vprintk_default+0x26/0x30 kernel/printk/printk.c:2370 vprintk+0x83/0x90 kernel/printk/printk_safe.c:50 _printk+0x7a/0xa0 kernel/printk/printk.c:2380 dump_stack_print_info+0xb4/0x120 lib/dump_stack.c:57 __dump_stack lib/dump_stack.c:87 [inline] dump_stack_lvl+0xce/0x130 lib/dump_stack.c:106 dump_stack+0x15/0x20 lib/dump_stack.c:113 fail_dump lib/fault-inject.c:52 [inline] should_fail_ex+0x21f/0x230 lib/fault-inject.c:153 should_fail+0xb/0x10 lib/fault-inject.c:163 should_fail_usercopy+0x1a/0x20 lib/fault-inject-usercopy.c:37 _copy_to_user+0x1e/0x90 lib/usercopy.c:30 copy_to_user include/linux/uaccess.h:169 [inline] simple_read_from_buffer+0xa0/0x110 fs/libfs.c:769 proc_fail_nth_read+0xf6/0x140 fs/proc/base.c:1425 vfs_read+0x192/0x560 fs/read_write.c:468 ksys_read+0xeb/0x1a0 fs/read_write.c:613 __do_sys_read fs/read_write.c:623 [inline] __se_sys_read fs/read_write.c:621 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:621 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000001000083fb -> 0x6f73692034373137 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 22547 Comm: syz-executor.4 Not tainted 6.2.0-rc8-syzkaller-00027-g033c40a89f55-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 ================================================================== Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xda/0x130 lib/dump_stack.c:106 dump_stack+0x15/0x20 lib/dump_stack.c:113 fail_dump lib/fault-inject.c:52 [inline] should_fail_ex+0x21f/0x230 lib/fault-inject.c:153 should_fail+0xb/0x10 lib/fault-inject.c:163 should_fail_usercopy+0x1a/0x20 lib/fault-inject-usercopy.c:37 _copy_to_user+0x1e/0x90 lib/usercopy.c:30 copy_to_user include/linux/uaccess.h:169 [inline] simple_read_from_buffer+0xa0/0x110 fs/libfs.c:769 proc_fail_nth_read+0xf6/0x140 fs/proc/base.c:1425 vfs_read+0x192/0x560 fs/read_write.c:468 ksys_read+0xeb/0x1a0 fs/read_write.c:613 __do_sys_read fs/read_write.c:623 [inline] __se_sys_read fs/read_write.c:621 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:621 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f189ff79f1c Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 fc ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 2f fd ff ff 48 RSP: 002b:00007f189f33b160 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f18a00e7f80 RCX: 00007f189ff79f1c RDX: 000000000000000f RSI: 00007f189f33b1e0 RDI: 0000000000000004 RBP: 00007f189f33b1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffe9ddd304f R14: 00007f189f33b300 R15: 0000000000022000