================================================================== BUG: KCSAN: data-race in data_alloc / prb_reserve write to 0xffffffff8607ad70 of 8 bytes by task 16564 on cpu 1: 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 set_capacity_and_notify+0xff/0x160 block/genhd.c:86 loop_set_size+0x2e/0x70 drivers/block/loop.c:235 loop_configure+0xae8/0xc80 drivers/block/loop.c:1121 lo_ioctl+0x682/0x1330 blkdev_ioctl+0x35f/0x450 block/ioctl.c:676 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+0x1581/0x2d70 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 0xffffffff8607ad70 of 8 bytes by task 16550 on cpu 0: 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 set_capacity_and_notify+0xff/0x160 block/genhd.c:86 loop_set_size+0x2e/0x70 drivers/block/loop.c:235 loop_configure+0xae8/0xc80 drivers/block/loop.c:1121 lo_ioctl+0x682/0x1330 blkdev_ioctl+0x35f/0x450 block/ioctl.c:676 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+0x1581/0x2d70 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 value changed: 0x000000000000cdd0 -> 0x00000000000ad5c0 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 16550 Comm: syz.4.4112 Not tainted 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 ================================================================== loop4: detected capacity change from 0 to 8192 loop4: p1 p2 p3 < p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30 p31 p32 p33 p34 p35 p36 p37 p38 p39 p40 p41 p42 p43 p44 p45 p46 p47 p48 p49 p50 p51 p52 p53 p54 p55 p56 p57 p58 p59 p60 p61 p62 p63 p64 p65 p66 p67 p68 p69 p70 p71 p72 p73 p74 p75 p76 p77 p78 p79 p80 p81 p82 p83 p84 p85 p86 p87 p88 p89 p90 p91 p92 p93 p94 p95 p96 p97 p98 p99 p100 p101 p102 p103 p104 p105 p106 p107 p108 p109 p110 p111 p112 p113 p114 p115 p116 p117 p118 p119 p120 p121 p122 p123 p124 p125 p126 p127 p128 p129 p130 p131 p132 p133 p134 p135 p136 p137 p138 p139 p140 p141 p142 p143 p144 p145 p146 p147 p148 p149 p150 p151 p152 p153 p154 p155 p156 p157 p158 p159 p160 p161 p162 p163 p164 p165 p166 p167 p168 p169 p170 p171 p172 p173 p174 p175 p176 p177 p178 p179 p180 p181 p182 p183 p184 p185 p186 p187 p188 p189 p190 p191 p192 p193 p194 p195 p196 p197 p198 p199 p200 p201 p202 p203 p204 p205 p206 p207 p208 p209 p210 p211 p212 p213 p214 p215 p216 p217 p218 p219 p220 p221 p222 p223 p224 p2 loop4: p1 start 4177526784 is beyond EOD, truncated loop4: p2 start 8388612 is beyond EOD, truncated loop4: p4 size 32937 extends beyond EOD, truncated loop4: p5 start 4177526784 is beyond EOD, truncated loop4: p6 start 8388612 is beyond EOD, truncated loop4: p7 size 32937 extends beyond EOD, truncated loop4: p8 start 4177526784 is beyond EOD, truncated loop4: p9 start 8388612 is beyond EOD, truncated loop4: p10 size 32937 extends beyond EOD, truncated loop4: p11 start 4177526784 is beyond EOD, truncated loop4: p12 start 8388612 is beyond EOD, truncated loop4: p13 size 32937 extends beyond EOD, truncated loop4: p14 start 4177526784 is beyond EOD, truncated loop4: p15 start 8388612 is beyond EOD, truncated loop4: p16 size 32937 extends beyond EOD, truncated loop4: p17 start 4177526784 is beyond EOD, truncated loop4: p18 start 8388612 is beyond EOD, truncated loop4: p19 size 32937 extends beyond EOD, truncated loop4: p20 start 4177526784 is beyond EOD, truncated loop4: p21 start 8388612 is beyond EOD, truncated loop4: p22 size 32937 extends beyond EOD, truncated loop4: p23 start 4177526784 is beyond EOD, truncated loop4: p24 start 8388612 is beyond EOD, truncated loop4: p25 size 32937 extends beyond EOD, truncated loop4: p26 start 4177526784 is beyond EOD, truncated loop4: p27 start 8388612 is beyond EOD, truncated loop4: p28 size 32937 extends beyond EOD, truncated loop4: p29 start 4177526784 is beyond EOD, truncated loop4: p30 start 8388612 is beyond EOD, truncated loop4: p31 size 32937 extends beyond EOD, truncated loop4: p32 start 4177526784 is beyond EOD, truncated loop4: p33 start 8388612 is beyond EOD, truncated loop4: p34 size 32937 extends beyond EOD, truncated loop4: p35 start 4177526784 is beyond EOD, truncated loop4: p36 start 8388612 is beyond EOD, truncated loop4: p37 size 32937 extends beyond EOD, truncated loop4: p38 start 4177526784 is beyond EOD, truncated loop4: p39 start 8388612 is beyond EOD, truncated loop4: p40 size 32937 extends beyond EOD, truncated loop4: p41 start 4177526784 is beyond EOD, truncated loop4: p42 start 8388612 is beyond EOD, truncated loop4: p43 size 32937 extends beyond EOD, truncated loop4: p44 start 4177526784 is beyond EOD, truncated loop4: p45 start 8388612 is beyond EOD, truncated loop4: p46 size 32937 extends beyond EOD, truncated loop4: p47 start 4177526784 is beyond EOD, truncated loop4: p48 start 8388612 is beyond EOD, truncated loop4: p49 size 32937 extends beyond EOD, truncated loop4: p50 start 4177526784 is beyond EOD, truncated loop4: p51 start 8388612 is beyond EOD, truncated loop4: p52 size 32937 extends beyond EOD, truncated loop4: p53 start 4177526784 is beyond EOD, truncated loop4: p54 start 8388612 is beyond EOD, truncated loop4: p55 size 32937 extends beyond EOD, truncated loop4: p56 start 4177526784 is beyond EOD, truncated loop4: p57 start 8388612 is beyond EOD, truncated loop4: p58 size 32937 extends beyond EOD, truncated loop4: p59 start 4177526784 is beyond EOD, truncated loop4: p60 start 8388612 is beyond EOD, truncated loop4: p61 size 32937 extends beyond EOD, truncated loop4: p62 start 4177526784 is beyond EOD, truncated loop4: p63 start 8388612 is beyond EOD, truncated loop4: p64 size 32937 extends beyond EOD, truncated loop4: p65 start 4177526784 is beyond EOD, truncated loop4: p66 start 8388612 is beyond EOD, truncated loop4: p67 size 32937 extends beyond EOD, truncated loop4: p68 start 4177526784 is beyond EOD, truncated loop4: p69 start 8388612 is beyond EOD, truncated loop4: p70 size 32937 extends beyond EOD, truncated loop4: p71 start 4177526784 is beyond EOD, truncated loop4: p72 start 8388612 is beyond EOD, truncated loop4: p73 size 32937 extends beyond EOD, truncated loop4: p74 start 4177526784 is beyond EOD, truncated loop4: p75 start 8388612 is beyond EOD, truncated loop4: p76 size 32937 extends beyond EOD, truncated loop4: p77 start 4177526784 is beyond EOD, truncated loop4: p78 start 8388612 is beyond EOD, truncated loop4: p79 size 32937 extends beyond EOD, truncated loop4: p80 start 4177526784 is beyond EOD, truncated loop4: p81 start 8388612 is beyond EOD, truncated loop4: p82 size 32937 extends beyond EOD, truncated loop4: p83 start 4177526784 is beyond EOD, truncated loop4: p84 start 8388612 is beyond EOD, truncated loop4: p85 size 32937 extends beyond EOD, truncated loop4: p86 start 4177526784 is beyond EOD, truncated loop4: p87 start 8388612 is beyond EOD, truncated loop4: p88 size 32937 extends beyond EOD, truncated loop4: p89 start 4177526784 is beyond EOD, truncated loop4: p90 start 8388612 is beyond EOD, truncated loop4: p91 size 32937 extends beyond EOD, truncated loop4: p92 start 4177526784 is beyond EOD, truncated loop4: p93 start 8388612 is beyond EOD, truncated loop4: p94 size 32937 extends beyond EOD, truncated loop4: p95 start 4177526784 is beyond EOD, truncated loop4: p96 start 8388612 is beyond EOD, truncated loop4: p97 size 32937 extends beyond EOD, truncated loop4: p98 start 4177526784 is beyond EOD, truncated loop4: p99 start 8388612 is beyond EOD, truncated loop4: p100 size 32937 extends beyond EOD, truncated loop4: p101 start 4177526784 is beyond EOD, truncated loop4: p102 start 8388612 is beyond EOD, truncated loop4: p103 size 32937 extends beyond EOD, truncated loop4: p104 start 4177526784 is beyond EOD, truncated loop4: p105 start 8388612 is beyond EOD, truncated loop4: p106 size 32937 extends beyond EOD, truncated loop4: p107 start 4177526784 is beyond EOD, truncated loop4: p108 start 8388612 is beyond EOD, truncated loop4: p109 size 32937 extends beyond EOD, truncated loop4: p110 start 4177526784 is beyond EOD, truncated loop4: p111 start 8388612 is beyond EOD, truncated loop4: p112 size 32937 extends beyond EOD, truncated loop4: p113 start 4177526784 is beyond EOD, truncated loop4: p114 start 8388612 is beyond EOD, truncated loop4: p115 size 32937 extends beyond EOD, truncated loop4: p116 start 4177526784 is beyond EOD, truncated loop4: p117 start 8388612 is beyond EOD, truncated loop4: p118 size 32937 extends beyond EOD, truncated loop4: p119 start 4177526784 is beyond EOD, truncated loop4: p120 start 8388612 is beyond EOD, truncated loop4: p121 size 32937 extends beyond EOD, truncated loop4: p122 start 4177526784 is beyond EOD, truncated loop4: p123 start 8388612 is beyond EOD, truncated loop4: p124 size 32937 extends beyond EOD, truncated loop4: p125 start 4177526784 is beyond EOD, truncated loop4: p126 start 8388612 is beyond EOD, truncated loop4: p127 size 32937 extends beyond EOD, truncated loop4: p128 start 4177526784 is beyond EOD, truncated loop4: p129 start 8388612 is beyond EOD, truncated loop4: p130 size 32937 extends beyond EOD, truncated loop4: p131 start 4177526784 is beyond EOD, truncated loop4: p132 start 8388612 is beyond EOD, truncated loop4: p133 size 32937 extends beyond EOD, truncated loop4: p134 start 4177526784 is beyond EOD, truncated loop4: p135 start 8388612 is beyond EOD, truncated loop4: p136 size 32937 extends beyond EOD, truncated loop4: p137 start 4177526784 is beyond EOD, truncated loop4: p138 start 8388612 is beyond EOD, truncated loop4: p139 size 32937 extends beyond EOD, truncated loop4: p140 start 4177526784 is beyond EOD, truncated loop4: p141 start 8388612 is beyond EOD, truncated loop4: p142 size 32937 extends beyond EOD, truncated loop4: p143 start 4177526784 is beyond EOD, truncated loop4: p144 start 8388612 is beyond EOD, truncated loop4: p145 size 32937 extends beyond EOD, truncated loop4: p146 start 4177526784 is beyond EOD, truncated loop4: p147 start 8388612 is beyond EOD, truncated loop4: p148 size 32937 extends beyond EOD, truncated loop4: p149 start 4177526784 is beyond EOD, truncated loop4: p150 start 8388612 is beyond EOD, truncated loop4: p151 size 32937 extends beyond EOD, truncated loop4: p152 start 4177526784 is beyond EOD, truncated loop4: p153 start 8388612 is beyond EOD, truncated loop4: p154 size 32937 extends beyond EOD, truncated loop4: p155 start 4177526784 is beyond EOD, truncated loop4: p156 start 8388612 is beyond EOD, truncated loop4: p157 size 32937 extends beyond EOD, truncated loop4: p158 start 4177526784 is beyond EOD, truncated loop4: p159 start 8388612 is beyond EOD, truncated loop4: p160 size 32937 extends beyond EOD, truncated loop4: p161 start 4177526784 is beyond EOD, truncated loop4: p162 start 8388612 is beyond EOD, truncated loop4: p163 size 32937 extends beyond EOD, truncated loop4: p164 start 4177526784 is beyond EOD, truncated loop4: p165 start 8388612 is beyond EOD, truncated loop4: p166 size 32937 extends beyond EOD, truncated loop4: p167 start 4177526784 is beyond EOD, truncated loop4: p168 start 8388612 is beyond EOD, truncated loop4: p169 size 32937 extends beyond EOD, truncated loop4: p170 start 4177526784 is beyond EOD, truncated loop4: p171 start 8388612 is beyond EOD, truncated loop4: p172 size 32937 extends beyond EOD, truncated loop4: p173 start 4177526784 is beyond EOD, truncated loop4: p174 start 8388612 is beyond EOD, truncated loop4: p175 size 32937 extends beyond EOD, truncated loop4: p176 start 4177526784 is beyond EOD, truncated loop4: p177 start 8388612 is beyond EOD, truncated loop4: p178 size 32937 extends beyond EOD, truncated loop4: p179 start 4177526784 is beyond EOD, truncated loop4: p180 start 8388612 is beyond EOD, truncated loop4: p181 size 32937 extends beyond EOD, truncated loop4: p182 start 4177526784 is beyond EOD, truncated loop4: p183 start 8388612 is beyond EOD, truncated loop4: p184 size 32937 extends beyond EOD, truncated loop4: p185 start 4177526784 is beyond EOD, truncated loop4: p186 start 8388612 is beyond EOD, truncated loop4: p187 size 32937 extends beyond EOD, truncated loop4: p188 start 4177526784 is beyond EOD, truncated loop4: p189 start 8388612 is beyond EOD, truncated loop4: p190 size 32937 extends beyond EOD, truncated loop4: p191 start 4177526784 is beyond EOD, truncated loop4: p192 start 8388612 is beyond EOD, truncated loop4: p193 size 32937 extends beyond EOD, truncated loop4: p194 start 4177526784 is beyond EOD, truncated loop4: p195 start 8388612 is beyond EOD, truncated loop4: p196 size 32937 extends beyond EOD, truncated loop4: p197 start 4177526784 is beyond EOD, truncated loop4: p198 start 8388612 is beyond EOD, truncated loop4: p199 size 32937 extends beyond EOD, truncated loop4: p200 start 4177526784 is beyond EOD, truncated loop4: p201 start 8388612 is beyond EOD, truncated loop4: p202 size 32937 extends beyond EOD, truncated loop4: p203 start 4177526784 is beyond EOD, truncated loop4: p204 start 8388612 is beyond EOD, truncated loop4: p205 size 32937 extends beyond EOD, truncated loop4: p206 start 4177526784 is beyond EOD, truncated loop4: p207 start 8388612 is beyond EOD, truncated loop4: p208 size 32937 extends beyond EOD, truncated loop4: p209 start 4177526784 is beyond EOD, truncated loop4: p210 start 8388612 is beyond EOD, truncated loop4: p211 size 32937 extends beyond EOD, truncated loop4: p212 start 4177526784 is beyond EOD, truncated loop4: p213 start 8388612 is beyond EOD, truncated loop4: p214 size 32937 extends beyond EOD, truncated loop4: p215 start 4177526784 is beyond EOD, truncated loop4: p216 start 8388612 is beyond EOD, truncated loop4: p217 size 32937 extends beyond EOD, truncated loop4: p218 start 4177526784 is beyond EOD, truncated loop4: p219 start 8388612 is beyond EOD, truncated loop4: p220 size 32937 extends beyond EOD, truncated loop4: p221 start 4177526784 is beyond EOD, truncated loop4: p222 start 8388612 is beyond EOD, truncated loop4: p223 size 32937 extends beyond EOD, truncated loop4: p224 start 4177526784 is beyond EOD, truncated loop4: p225 start 8388612 is beyond EOD, truncated loop4: p226 size 32937 extends beyond EOD, truncated loop4: p227 start 4177526784 is beyond EOD, truncated loop4: p228 start 8388612 is beyond EOD, truncated loop4: p229 size 32937 extends beyond EOD, truncated loop4: p230 start 4177526784 is beyond EOD, truncated loop4: p231 start 8388612 is beyond EOD, truncated loop4: p232 size 32937 extends beyond EOD, truncated loop4: p233 start 4177526784 is beyond EOD, truncated loop4: p234 start 8388612 is beyond EOD, truncated loop4: p235 size 32937 extends beyond EOD, truncated loop4: p236 start 4177526784 is beyond EOD, truncated loop4: p237 start 8388612 is beyond EOD, truncated loop4: p238 size 32937 extends beyond EOD, truncated loop4: p239 start 4177526784 is beyond EOD, truncated loop4: p240 start 8388612 is beyond EOD, truncated loop4: p241 size 32937 extends beyond EOD, truncated loop4: p242 start 4177526784 is beyond EOD, truncated loop4: p243 start 8388612 is beyond EOD, truncated loop4: p244 size 32937 extends beyond EOD, truncated loop4: p245 start 4177526784 is beyond EOD, truncated loop4: p246 start 8388612 is beyond EOD, truncated loop4: p247 size 32937 extends beyond EOD, truncated loop4: p248 start 4177526784 is beyond EOD, truncated loop4: p249 start 8388612 is beyond EOD, truncated loop4: p250 size 32937 extends beyond EOD, truncated loop4: p251 start 4177526784 is beyond EOD, truncated loop4: p252 start 8388612 is beyond EOD, truncated loop4: p253 size 32937 extends beyond EOD, truncated loop4: p254 start 4177526784 is beyond EOD, truncated loop4: p255 start 8388612 is beyond EOD, truncated