================================================================== BUG: KCSAN: data-race in data_alloc / prb_reserve write to 0xffffffff86089cb8 of 8 bytes by task 26984 on cpu 0: data_alloc+0x291/0x2c0 kernel/printk/printk_ringbuffer.c:1096 prb_reserve+0x85e/0xb60 kernel/printk/printk_ringbuffer.c:1669 vprintk_store+0x53f/0x810 kernel/printk/printk.c:2269 vprintk_emit+0x10c/0x5e0 kernel/printk/printk.c:2329 vprintk_default+0x26/0x30 kernel/printk/printk.c:2363 vprintk+0x75/0x80 kernel/printk/printk_safe.c:45 _printk+0x7a/0xa0 kernel/printk/printk.c:2373 xt_check_target+0x424/0x480 check_target net/ipv6/netfilter/ip6_tables.c:528 [inline] find_check_entry net/ipv6/netfilter/ip6_tables.c:571 [inline] translate_table+0xcde/0x1040 net/ipv6/netfilter/ip6_tables.c:733 do_replace net/ipv6/netfilter/ip6_tables.c:1154 [inline] do_ip6t_set_ctl+0x7cc/0x8c0 net/ipv6/netfilter/ip6_tables.c:1644 nf_setsockopt+0x195/0x1b0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x126/0x140 net/ipv6/ipv6_sockglue.c:999 tcp_setsockopt+0x93/0xb0 net/ipv4/tcp.c:3758 sock_common_setsockopt+0x64/0x80 net/core/sock.c:3726 do_sock_setsockopt net/socket.c:2312 [inline] __sys_setsockopt+0x1d8/0x250 net/socket.c:2335 __do_sys_setsockopt net/socket.c:2344 [inline] __se_sys_setsockopt net/socket.c:2341 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2341 x64_sys_call+0x1159/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:55 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff86089cb8 of 8 bytes by task 26960 on cpu 1: desc_read kernel/printk/printk_ringbuffer.c:482 [inline] desc_push_tail kernel/printk/printk_ringbuffer.c:778 [inline] desc_reserve kernel/printk/printk_ringbuffer.c:924 [inline] prb_reserve+0x235/0xb60 kernel/printk/printk_ringbuffer.c:1619 vprintk_store+0x53f/0x810 kernel/printk/printk.c:2269 vprintk_emit+0x10c/0x5e0 kernel/printk/printk.c:2329 vprintk_default+0x26/0x30 kernel/printk/printk.c:2363 vprintk+0x75/0x80 kernel/printk/printk_safe.c:45 _printk+0x7a/0xa0 kernel/printk/printk.c:2373 blk_add_partition block/partitions/core.c:532 [inline] blk_add_partitions block/partitions/core.c:623 [inline] bdev_disk_changed+0x83c/0xbe0 block/partitions/core.c:683 loop_reread_partitions drivers/block/loop.c:514 [inline] loop_set_status+0x4ab/0x550 drivers/block/loop.c:1316 lo_ioctl+0x892/0x1330 blkdev_ioctl+0x37f/0x470 block/ioctl.c:672 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xd3/0x150 fs/ioctl.c:893 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:893 x64_sys_call+0x155d/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000000000168c68 -> 0x000000000020df40 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 26960 Comm: syz-executor.3 Tainted: G W 6.9.0-syzkaller-09429-g61307b7be41a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 ================================================================== loop3: p79 start 16908800 is beyond EOD, truncated loop3: p81 start 16908800 is beyond EOD, truncated loop3: p83 start 16908800 is beyond EOD, truncated loop3: p85 start 16908800 is beyond EOD, truncated loop3: p87 start 16908800 is beyond EOD, truncated loop3: p89 start 16908800 is beyond EOD, truncated loop3: p91 start 16908800 is beyond EOD, truncated loop3: p93 start 16908800 is beyond EOD, truncated loop3: p95 start 16908800 is beyond EOD, truncated loop3: p97 start 16908800 is beyond EOD, truncated loop3: p99 start 16908800 is beyond EOD, truncated loop3: p101 start 16908800 is beyond EOD, truncated loop3: p103 start 16908800 is beyond EOD, truncated loop3: p105 start 16908800 is beyond EOD, truncated loop3: p107 start 16908800 is beyond EOD, truncated loop3: p109 start 16908800 is beyond EOD, truncated loop3: p111 start 16908800 is beyond EOD, truncated loop3: p113 start 16908800 is beyond EOD, truncated loop3: p115 start 16908800 is beyond EOD, truncated loop3: p117 start 16908800 is beyond EOD, truncated loop3: p119 start 16908800 is beyond EOD, truncated loop3: p121 start 16908800 is beyond EOD, truncated loop3: p123 start 16908800 is beyond EOD, truncated loop3: p125 start 16908800 is beyond EOD, truncated loop3: p127 start 16908800 is beyond EOD, truncated loop3: p129 start 16908800 is beyond EOD, truncated loop3: p131 start 16908800 is beyond EOD, truncated loop3: p133 start 16908800 is beyond EOD, truncated loop3: p135 start 16908800 is beyond EOD, truncated loop3: p137 start 16908800 is beyond EOD, truncated loop3: p139 start 16908800 is beyond EOD, truncated loop3: p141 start 16908800 is beyond EOD, truncated loop3: p143 start 16908800 is beyond EOD, truncated loop3: p145 start 16908800 is beyond EOD, truncated loop3: p147 start 16908800 is beyond EOD, truncated loop3: p149 start 16908800 is beyond EOD, truncated loop3: p151 start 16908800 is beyond EOD, truncated loop3: p153 start 16908800 is beyond EOD, truncated loop3: p155 start 16908800 is beyond EOD, truncated loop3: p157 start 16908800 is beyond EOD, truncated loop3: p159 start 16908800 is beyond EOD, truncated loop3: p161 start 16908800 is beyond EOD, truncated loop3: p163 start 16908800 is beyond EOD, truncated loop3: p165 start 16908800 is beyond EOD, truncated loop3: p167 start 16908800 is beyond EOD, truncated loop3: p169 start 16908800 is beyond EOD, truncated loop3: p171 start 16908800 is beyond EOD, truncated loop3: p173 start 16908800 is beyond EOD, truncated loop3: p175 start 16908800 is beyond EOD, truncated loop3: p177 start 16908800 is beyond EOD, truncated loop3: p179 start 16908800 is beyond EOD, truncated loop3: p181 start 16908800 is beyond EOD, truncated loop3: p183 start 16908800 is beyond EOD, truncated loop3: p185 start 16908800 is beyond EOD, truncated loop3: p187 start 16908800 is beyond EOD, truncated loop3: p189 start 16908800 is beyond EOD, truncated loop3: p191 start 16908800 is beyond EOD, truncated loop3: p193 start 16908800 is beyond EOD, truncated loop3: p195 start 16908800 is beyond EOD, truncated loop3: p197 start 16908800 is beyond EOD, truncated loop3: p199 start 16908800 is beyond EOD, truncated loop3: p201 start 16908800 is beyond EOD, truncated loop3: p203 start 16908800 is beyond EOD, truncated loop3: p205 start 16908800 is beyond EOD, truncated loop3: p207 start 16908800 is beyond EOD, truncated loop3: p209 start 16908800 is beyond EOD, truncated loop3: p211 start 16908800 is beyond EOD, truncated loop3: p213 start 16908800 is beyond EOD, truncated loop3: p215 start 16908800 is beyond EOD, truncated loop3: p217 start 16908800 is beyond EOD, truncated loop3: p219 start 16908800 is beyond EOD, truncated loop3: p221 start 16908800 is beyond EOD, truncated loop3: p223 start 16908800 is beyond EOD, truncated loop3: p225 start 16908800 is beyond EOD, truncated loop3: p227 start 16908800 is beyond EOD, truncated loop3: p229 start 16908800 is beyond EOD, truncated loop3: p231 start 16908800 is beyond EOD, truncated loop3: p233 start 16908800 is beyond EOD, truncated loop3: p235 start 16908800 is beyond EOD, truncated loop3: p237 start 16908800 is beyond EOD, truncated loop3: p239 start 16908800 is beyond EOD, truncated loop3: p241 start 16908800 is beyond EOD, truncated loop3: p243 start 16908800 is beyond EOD, truncated loop3: p245 start 16908800 is beyond EOD, truncated loop3: p247 start 16908800 is beyond EOD, truncated loop3: p249 start 16908800 is beyond EOD, truncated loop3: p251 start 16908800 is beyond EOD, truncated loop3: p253 start 16908800 is beyond EOD, truncated loop3: p255 start 16908800 is beyond EOD, truncated