syzbot


KCSAN: data-race in __lru_add_drain_all / lru_cache_add

Status: auto-closed as invalid on 2021/12/05 21:43
Reported-by: syzbot+0501784df97bc679a010@syzkaller.appspotmail.com
First crash: 467d, last: 289d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __lru_add_drain_all / lru_cache_add

write to 0xffff888237d22528 of 1 bytes by task 7124 on cpu 1:
 pagevec_add include/linux/pagevec.h:74 [inline]
 pagevec_add_and_need_flush mm/swap.c:222 [inline]
 lru_cache_add+0x75/0x150 mm/swap.c:452
 add_to_page_cache_lru+0x150/0x1b0 mm/filemap.c:1000
 pagecache_get_page+0x6ad/0x910 mm/filemap.c:1951
 grab_cache_page_write_begin+0x3f/0x70 mm/filemap.c:3724
 ext4_da_write_begin+0x323/0x570 fs/ext4/inode.c:2961
 generic_perform_write+0x1b8/0x3e0 mm/filemap.c:3770
 ext4_buffered_write_iter+0x305/0x400 fs/ext4/file.c:269
 ext4_file_write_iter+0x2e7/0x11f0
 call_write_iter include/linux/fs.h:2163 [inline]
 aio_write+0x2b4/0x390 fs/aio.c:1578
 io_submit_one+0x86f/0x13b0 fs/aio.c:1880
 __do_sys_io_submit fs/aio.c:1939 [inline]
 __se_sys_io_submit+0x105/0x270 fs/aio.c:1909
 __x64_sys_io_submit+0x3f/0x50 fs/aio.c:1909
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888237d22528 of 1 bytes by task 7121 on cpu 0:
 pagevec_count include/linux/pagevec.h:61 [inline]
 __lru_add_drain_all+0x12c/0x3e0 mm/swap.c:819
 lru_add_drain_all+0xc/0x10 mm/swap.c:841
 invalidate_bdev+0x56/0x80 block/bdev.c:87
 __loop_clr_fd+0x521/0x850 drivers/block/loop.c:1399
 loop_clr_fd drivers/block/loop.c:1494 [inline]
 lo_ioctl+0xac5/0x13e0 drivers/block/loop.c:1850
 blkdev_ioctl+0x1d0/0x3f0 block/ioctl.c:589
 block_ioctl+0x6e/0x80 block/fops.c:478
 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+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x02 -> 0x04

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7121 Comm: syz-executor.3 Not tainted 5.15.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
loop3: detected capacity change from 0 to 1054
EXT4-fs (loop3): blocks per group (149504) and clusters per group (8192) inconsistent

Crashes (117):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/10/31 21:43 upstream 180eca540ae0 098b5d53 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/10/31 00:03 upstream 119c85055d86 098b5d53 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/10/20 12:28 upstream d9abdee5fd5a 418a00eb .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/10/18 09:51 upstream cf52ad5ff16c 0c5d9412 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/10/16 20:29 upstream 304040fb4909 0c5d9412 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/10/15 13:22 upstream ec681c53f8d2 aab7690b .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/10/12 23:52 upstream f4d0cc426f77 08362356 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/10/11 07:03 upstream 64570fbc14f8 838e7e2c .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/10/09 14:29 upstream 5d6ab0bb408f 838e7e2c .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/10/08 05:11 upstream 4a16df549d23 efe0f24d .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/10/05 00:06 upstream 84b3e42564ac ce697b49 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/10/04 00:20 upstream 6761a0ae9895 db0f5787 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/10/03 10:30 upstream 7b66f4393ad4 db0f5787 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/10/01 20:31 upstream 24f67d82c43c cc80db95 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/28 19:44 upstream d33bec7b3dfa d82cb927 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/27 11:03 upstream 5816b3e6577e 78494d16 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/24 03:44 upstream f10f0481a5b5 8cac236e .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/23 13:06 upstream 58e2cf5d7946 8cac236e .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/22 19:44 upstream cf1d2c3e7e2f 8cac236e .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/20 12:55 upstream e4e737bb5c17 3d9c9a2a .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/20 04:10 upstream 20621d2f27a0 70b76c1d .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/19 12:50 upstream d4d016caa4b8 70b76c1d .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/19 09:01 upstream 93ff9f13be91 70b76c1d .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/18 10:48 upstream 4357f03d6611 70b76c1d .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/17 20:20 upstream ddf21bd8ab98 70b76c1d .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/15 09:00 upstream 3ca706c189db 07e953c1 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/14 11:46 upstream d0ee23f9d78b 58d09404 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/13 18:37 upstream 6880fa6c5660 58d09404 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/13 03:38 upstream 6880fa6c5660 3ce60af8 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/10 12:39 upstream bf9f243f23e6 5ae8508a .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/10 04:01 upstream bf9f243f23e6 e2776ee4 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/08 01:11 upstream 0bcfe68b8767 064c9eb7 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/03 11:53 upstream a9c9a6f741cd d236a457 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/09/01 18:18 upstream 835d31d319d9 7eb7e152 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/30 22:58 upstream 8596e589b787 8f58a0ef .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/30 01:27 upstream 537b57bd5a20 be2c130d .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/27 19:55 upstream 1a6436f37512 57b01c6e .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/27 00:05 upstream 1a6d80ff2419 b318694d .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/24 20:19 upstream 6e764bcd1cf7 b599f2fc .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/23 13:11 upstream e22ce8eb631b b599f2fc .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/21 21:27 upstream 002c0aef1090 b599f2fc .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/21 04:24 upstream d992fe5318d8 b599f2fc .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/20 02:33 upstream f87d64319e6f b599f2fc .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/19 23:21 upstream f87d64319e6f e2da378b .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/18 08:11 upstream 614cb2751d31 a2fe1cb5 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/16 11:54 upstream 7c60610d4767 6652437d .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/15 08:10 upstream 0aa78d17099b 2489ab88 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/08/14 02:56 upstream dfa377c35d70 2489ab88 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/07/18 21:04 upstream f0eb870a8422 f115ae98 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/07/18 04:56 upstream 1d67c8d993ba f115ae98 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add
ci2-upstream-kcsan-gce 2021/05/06 13:44 upstream 8404c9fbc84b 06c27ff5 .config log report info KCSAN: data-race in __lru_add_drain_all / lru_cache_add