syzbot


KCSAN: data-race in lru_add_drain_all / lru_cache_add

Status: auto-closed as invalid on 2021/06/07 22:52
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+162cca5cc31cf478f683@syzkaller.appspotmail.com
First crash: 1616d, last: 1297d

Sample crash report:
EXT4-fs (loop3): Invalid log block size: 10289664
==================================================================
BUG: KCSAN: data-race in lru_add_drain_all / lru_cache_add

write to 0xffff888237d264a8 of 1 bytes by task 19844 on cpu 1:
 pagevec_add include/linux/pagevec.h:74 [inline]
 lru_cache_add+0x74/0x130 mm/swap.c:461
 shmem_getpage_gfp+0xcf8/0x1410 mm/shmem.c:1934
 shmem_getpage mm/shmem.c:155 [inline]
 shmem_write_begin+0x7e/0x100 mm/shmem.c:2530
 generic_perform_write+0x196/0x3a0 mm/filemap.c:3676
 __generic_file_write_iter+0x161/0x300 mm/filemap.c:3805
 generic_file_write_iter+0x75/0x130 mm/filemap.c:3837
 call_write_iter include/linux/fs.h:2116 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x69d/0x770 fs/read_write.c:605
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888237d264a8 of 1 bytes by task 20310 on cpu 0:
 pagevec_count include/linux/pagevec.h:61 [inline]
 lru_add_drain_all+0x108/0x3b0 mm/swap.c:813
 invalidate_bdev+0x50/0x70 fs/block_dev.c:96
 __loop_clr_fd+0x2e2/0x650 drivers/block/loop.c:1241
 loop_clr_fd drivers/block/loop.c:1336 [inline]
 lo_ioctl+0x9eb/0x11f0 drivers/block/loop.c:1694
 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:585
 block_ioctl+0x6d/0x80 fs/block_dev.c:1664
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:1069 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:1055
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 20310 Comm: syz-executor.3 Tainted: G        W         5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (259):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/03 22:51 upstream 6f8ee8d36d07 ad61f371 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/05/03 10:46 upstream 9ccce092fc64 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/05/02 13:11 upstream 17ae69aba89d 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/05/01 23:08 upstream 10a3efd0fee5 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/30 22:33 upstream 65c61de9d090 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/30 01:48 upstream 8ca5297e7e38 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/29 17:12 upstream d72cd4ad4174 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/27 10:53 upstream 4a0225c3d208 805b5003 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/26 13:33 upstream 9f4ad9e425a1 805b5003 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/25 20:45 upstream d2d09fbe33f8 2a82f1b3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/23 02:24 upstream 90c911ad7445 590921a5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/22 03:03 upstream 16fc44d6387e 2bc8999a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/20 01:34 upstream 7af08140979a 4285c989 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/19 21:40 upstream bf05bf16c76b 4285c989 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/19 14:30 upstream bf05bf16c76b 50f523d7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/18 14:43 upstream c98ff1d013d2 7e2b734b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/16 19:08 upstream 2f7b98d1e55c 7e2b734b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/16 14:03 upstream 7e25f40eab52 7e2b734b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/13 00:33 upstream 89698becf06d 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/12 12:03 upstream d434405aaab7 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/12 04:26 upstream 7d900724913c 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/11 16:45 upstream 52e44129fba5 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/10 21:58 upstream d4961772226d 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/09 15:28 upstream 17e7124aad76 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/08 20:09 upstream 454859c552da 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/08 02:33 upstream 3a22981230f9 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/05 23:43 upstream 0a50438c8436 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/05 00:15 upstream e49d033bddf5 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/04 03:34 upstream 2023a53bdf41 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/04/03 01:09 upstream 0a84c2e440f7 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/31 20:21 upstream d19cc4bfbff1 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/29 10:45 upstream a5e13c6df0e4 a8529b82 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/27 22:03 upstream 0f4498cef9f5 a8529b82 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/26 20:12 upstream db24726bfefa a8529b82 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/26 06:32 upstream 002322402daf 6a383ecf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/25 09:15 upstream e138138003eb 6a383ecf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/24 22:22 upstream 4ee998b0ef8b 607e3baf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/23 22:28 upstream 7acac4b3196c e613994b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/23 17:07 upstream 84196390620a e613994b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/23 12:53 upstream 84196390620a 8092f30d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/22 03:35 upstream 5ee96fa9dd78 bea32f74 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/20 22:48 upstream 812da4d39463 17810eae .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/20 00:17 upstream 8b12a62a4e3e 3d01c4de .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/18 10:54 upstream 6417f03132a6 7216542e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/16 20:59 upstream 1df27313f50a fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/16 07:05 upstream 1a4431a5db2b fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/15 15:17 upstream 1e28eed17697 fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/15 13:23 upstream 1e28eed17697 cc1cff8f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/15 06:41 upstream 75013c6c52d8 cc1cff8f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/03/13 09:15 upstream f296bfd5cd04 4a003785 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lru_add_drain_all / lru_cache_add
2021/01/16 21:12 upstream 54c6247d06f1 65a7a854 .config console log report info ci2-upstream-kcsan-gce
2020/09/21 03:41 upstream bdcf11de8f77 9564d2e9 .config console log report info ci2-upstream-kcsan-gce
2020/06/18 14:33 upstream 1b5044021070 3ea11d3f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.