================================================================== BUG: KCSAN: data-race in _prb_read_valid / prb_reserve write to 0xffffffff866f0ea0 of 8 bytes by task 4527 on cpu 1: prb_reserve+0x740/0xb60 vprintk_store+0x53f/0x810 kernel/printk/printk.c:2301 vprintk_emit+0x15e/0x680 kernel/printk/printk.c:2383 vprintk_default+0x26/0x30 kernel/printk/printk.c:2422 vprintk+0x75/0x80 kernel/printk/printk_safe.c:68 _printk+0x7a/0xa0 kernel/printk/printk.c:2432 seq_buf_do_printk+0xf2/0x190 lib/seq_buf.c:126 mem_cgroup_print_oom_meminfo+0x156/0x230 mm/memcontrol.c:1547 dump_header+0xa5/0x2d0 mm/oom_kill.c:464 oom_kill_process+0x341/0x4c0 mm/oom_kill.c:1035 out_of_memory+0x9af/0xbe0 mm/oom_kill.c:1173 mem_cgroup_out_of_memory+0x13e/0x190 mm/memcontrol.c:1599 mem_cgroup_oom mm/memcontrol.c:1622 [inline] try_charge_memcg+0x51b/0x810 mm/memcontrol.c:2255 try_charge mm/memcontrol-v1.h:19 [inline] charge_memcg+0x50/0xc0 mm/memcontrol.c:4468 mem_cgroup_swapin_charge_folio+0xd0/0x150 mm/memcontrol.c:4553 __read_swap_cache_async+0x236/0x480 mm/swap_state.c:518 swap_cluster_readahead+0x276/0x3f0 mm/swap_state.c:684 swapin_readahead+0xe4/0x6f0 mm/swap_state.c:882 do_swap_page+0x31e/0x2550 mm/memory.c:4324 handle_pte_fault mm/memory.c:5769 [inline] __handle_mm_fault mm/memory.c:5909 [inline] handle_mm_fault+0x8c5/0x2aa0 mm/memory.c:6077 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x3b9/0x650 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 read to 0xffffffff866f0ea0 of 8 bytes by task 3003 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 syslog_print+0x26f/0x760 kernel/printk/printk.c:1631 do_syslog+0x397/0x7e0 kernel/printk/printk.c:1766 __do_sys_syslog kernel/printk/printk.c:1858 [inline] __se_sys_syslog kernel/printk/printk.c:1856 [inline] __x64_sys_syslog+0x43/0x50 kernel/printk/printk.c:1856 x64_sys_call+0x1677/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:104 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: 0x00000000000010e0 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3003 Comm: klogd Not tainted 6.12.0-rc6-syzkaller-00169-g906bd684e4b1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================