memory: usage 307200kB, limit 307200kB, failcnt 188 ================================================================== BUG: KCSAN: data-race in _prb_read_valid / prb_reserve write to 0xffffffff866ac6c0 of 8 bytes by task 22727 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 set_capacity_and_notify+0xff/0x160 block/genhd.c:86 loop_set_size+0x2e/0x70 drivers/block/loop.c:232 loop_configure+0x8a6/0xa30 drivers/block/loop.c:1101 lo_ioctl+0x5f6/0x11c0 blkdev_ioctl+0x359/0x450 block/ioctl.c:693 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:892 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:892 x64_sys_call+0x1690/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:17 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 0xffffffff866ac6c0 of 8 bytes by task 22703 on cpu 0: desc_read kernel/printk/printk_ringbuffer.c:486 [inline] prb_first_seq kernel/printk/printk_ringbuffer.c:1957 [inline] _prb_read_valid+0x3bb/0xba0 kernel/printk/printk_ringbuffer.c:2114 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 vprintk_emit+0x3f4/0x680 kernel/printk/printk.c:2432 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 mem_cgroup_print_oom_meminfo+0x71/0x230 mm/memcontrol.c:1555 dump_header+0xa5/0x2d0 mm/oom_kill.c:463 oom_kill_process+0x341/0x4c0 mm/oom_kill.c:1034 out_of_memory+0x9af/0xbe0 mm/oom_kill.c:1172 mem_cgroup_out_of_memory+0x13e/0x190 mm/memcontrol.c:1630 mem_cgroup_oom mm/memcontrol.c:1653 [inline] try_charge_memcg+0x508/0x7f0 mm/memcontrol.c:2280 obj_cgroup_charge_pages+0xbd/0x1a0 mm/memcontrol.c:2646 __memcg_kmem_charge_page+0x9d/0x170 mm/memcontrol.c:2673 __alloc_pages_noprof+0x1bc/0x340 mm/page_alloc.c:4770 alloc_pages_mpol_noprof+0xb1/0x1e0 mm/mempolicy.c:2269 alloc_pages_noprof+0xe1/0x100 mm/mempolicy.c:2348 vm_area_alloc_pages mm/vmalloc.c:3591 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0x6eb/0xe80 mm/vmalloc.c:3846 __kvmalloc_node_noprof+0x121/0x170 mm/util.c:672 ip_set_alloc+0x1f/0x30 net/netfilter/ipset/ip_set_core.c:261 hash_netiface_create+0x273/0x730 net/netfilter/ipset/ip_set_hash_gen.h:1568 ip_set_create+0x359/0x8a0 net/netfilter/ipset/ip_set_core.c:1109 nfnetlink_rcv_msg+0x4a9/0x570 net/netfilter/nfnetlink.c:302 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2542 nfnetlink_rcv+0x16c/0x15d0 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x599/0x670 net/netlink/af_netlink.c:1347 netlink_sendmsg+0x5cc/0x6e0 net/netlink/af_netlink.c:1891 sock_sendmsg_nosec net/socket.c:711 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:726 ____sys_sendmsg+0x312/0x410 net/socket.c:2583 ___sys_sendmsg net/socket.c:2637 [inline] __sys_sendmsg+0x19d/0x230 net/socket.c:2669 __do_sys_sendmsg net/socket.c:2674 [inline] __se_sys_sendmsg net/socket.c:2672 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2672 x64_sys_call+0x2734/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:47 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: 0x0000000000002470 -> 0x0000000000004470 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 22703 Comm: syz.1.7430 Not tainted 6.13.0-rc4-syzkaller-00069-g8379578b11d5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ================================================================== memory+swap: usage 307380kB, limit 9007199254740988kB, failcnt 0 kmem: usage 307188kB, limit 9007199254740988kB, failcnt 0 Memory cgroup stats for /syz1: cache 0 rss 0 shmem 0 mapped_file 0 dirty 0 writeback 0 workingset_refault_anon 98 workingset_refault_file 2538 swap 184320 swapcached 12288 pgpgin 300399 pgpgout 300396 pgfault 302328 pgmajfault 53 inactive_anon 12288 active_anon 0 inactive_file 0 active_file 0 unevictable 0 hierarchical_memory_limit 314572800 hierarchical_memsw_limit 9223372036854771712 total_cache 0 total_rss 0 total_shmem 0 total_mapped_file 0 total_dirty 0 total_writeback 0 total_workingset_refault_anon 98 total_workingset_refault_file 2538 total_swap 184320 total_swapcached 12288 total_pgpgin 300399 total_pgpgout 300396 total_pgfault 302328 total_pgmajfault 53 total_inactive_anon 12288 total_active_anon 0 total_inactive_file 0 total_active_file 0 total_unevictable 0 oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=/,mems_allowed=0,oom_memcg=/syz1,task_memcg=/syz1,task=syz.1.7430,pid=22702,uid=0 Memory cgroup out of memory: Killed process 22702 (syz.1.7430) total-vm:95432kB, anon-rss:788kB, file-rss:22340kB, shmem-rss:0kB, UID:0 pgtables:124kB oom_score_adj:1000