loop0: detected capacity change from 0 to 16382 ================================================================== BUG: KCSAN: data-race in shmem_add_to_page_cache / shmem_getattr write to 0xffff888107762940 of 8 bytes by task 1850 on cpu 1: shmem_add_to_page_cache+0x52d/0x650 mm/shmem.c:743 shmem_getpage_gfp+0xb95/0x13c0 mm/shmem.c:1935 shmem_getpage mm/shmem.c:151 [inline] shmem_file_read_iter+0x1b2/0x5d0 mm/shmem.c:2546 call_read_iter include/linux/fs.h:2157 [inline] do_iter_readv_writev+0x2ea/0x370 fs/read_write.c:727 do_iter_read+0x192/0x5d0 fs/read_write.c:790 vfs_iter_read+0x4c/0x70 fs/read_write.c:832 lo_read_simple drivers/block/loop.c:404 [inline] do_req_filebacked drivers/block/loop.c:675 [inline] loop_handle_cmd drivers/block/loop.c:2201 [inline] loop_process_work+0x110b/0x1850 drivers/block/loop.c:2241 loop_rootcg_workfn+0x1b/0x20 drivers/block/loop.c:2272 process_one_work+0x402/0x910 kernel/workqueue.c:2297 worker_thread+0x636/0xae0 kernel/workqueue.c:2444 kthread+0x262/0x280 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 read to 0xffff888107762940 of 8 bytes by task 27352 on cpu 0: shmem_getattr+0x71/0x260 mm/shmem.c:1070 vfs_getattr_nosec+0x152/0x2f0 fs/stat.c:123 vfs_getattr+0x4d/0x60 fs/stat.c:160 loop_get_status+0x23e/0x310 drivers/block/loop.c:1613 loop_get_status64 drivers/block/loop.c:1721 [inline] lo_ioctl+0x1b5/0x1370 drivers/block/loop.c:1866 blkdev_ioctl+0x1d0/0x3e0 block/ioctl.c:589 block_ioctl+0x6d/0x80 fs/block_dev.c:1421 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:860 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x0000000000000005 -> 0x0000000000000006 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 27352 Comm: syz-executor.0 Not tainted 5.14.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== loop0: detected capacity change from 0 to 16382