syzbot


KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add

Status: auto-obsoleted due to no activity on 2022/09/07 04:32
Reported-by: syzbot+a5ff8b97fcf389a296c4@syzkaller.appspotmail.com
First crash: 579d, last: 128d

Sample crash report:
EXT4-fs (loop5): unmounting filesystem.
==================================================================
BUG: KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add

write to 0xffff888237d27968 of 1 bytes by task 5251 on cpu 1:
 pagevec_reinit include/linux/pagevec.h:57 [inline]
 __pagevec_lru_add+0x2f5/0x320 mm/swap.c:1065
 folio_add_lru+0x112/0x160 mm/swap.c:467
 filemap_add_folio+0xf8/0x150 mm/filemap.c:974
 page_cache_ra_unbounded+0x19e/0x2e0 mm/readahead.c:245
 do_page_cache_ra mm/readahead.c:293 [inline]
 force_page_cache_ra+0x1c6/0x200 mm/readahead.c:324
 page_cache_sync_ra+0xc8/0xf0 mm/readahead.c:695
 page_cache_sync_readahead include/linux/pagemap.h:1234 [inline]
 filemap_get_pages mm/filemap.c:2594 [inline]
 filemap_read+0x3ef/0x1410 mm/filemap.c:2688
 blkdev_read_iter+0x2c6/0x370 block/fops.c:594
 call_read_iter include/linux/fs.h:2180 [inline]
 new_sync_read fs/read_write.c:401 [inline]
 vfs_read+0x5a5/0x6a0 fs/read_write.c:482
 ksys_read+0xe8/0x1a0 fs/read_write.c:620
 __do_sys_read fs/read_write.c:630 [inline]
 __se_sys_read fs/read_write.c:628 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:628
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888237d27968 of 1 bytes by task 17623 on cpu 0:
 pagevec_count include/linux/pagevec.h:62 [inline]
 __lru_add_drain_all+0x118/0x3e0 mm/swap.c:826
 lru_add_drain_all+0xc/0x10 mm/swap.c:849
 invalidate_bdev+0x56/0x80 block/bdev.c:87
 ext4_put_super+0x510/0x810 fs/ext4/super.c:1279
 generic_shutdown_super+0xd5/0x240 fs/super.c:462
 kill_block_super+0x4a/0x90 fs/super.c:1394
 deactivate_locked_super+0x6a/0xb0 fs/super.c:332
 deactivate_super+0x85/0x90 fs/super.c:363
 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1186
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1193
 task_work_run+0x8e/0x110 kernel/task_work.c:177
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:169
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0f -> 0x03

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 17623 Comm: syz-executor.5 Not tainted 5.19.0-syzkaller-01583-g7d0d3fa7339e-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================

Crashes (88):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/08/03 04:31 upstream 7d0d3fa7339e 1c9013ac .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/08/01 11:46 upstream 3d7cb6b04c3f fef302b1 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/07/29 18:34 upstream 6e2c0490769e fef302b1 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/07/29 03:08 upstream 33ea1340bafe fb95c74d .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/07/25 14:17 upstream e0dccc3b76fb 664c519c .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/07/18 18:25 upstream ff6992735ade ff988920 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/07/14 01:58 upstream 4a57a8400075 5d921b08 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/07/09 01:04 upstream a471da3100ef b5765a15 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/07/06 23:15 upstream 9f09069cde34 bff65f44 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/06/15 13:26 upstream 018ab4fabddd 1719ee24 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/06/12 00:59 upstream 0885eacdc81f 0d5abf15 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/06/03 17:17 upstream 50fd82b3a9a9 eee80d3c .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/05/30 11:31 upstream b00ed48bb0a7 a46af346 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/05/15 06:47 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/05/02 15:51 upstream 672c0c517342 2df221f6 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/04/24 01:57 upstream 13bc32bad705 131df97d .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/04/23 04:42 upstream d569e86915b7 131df97d .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/04/20 01:19 upstream b7f73403a3e9 33fc6ed6 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/04/13 09:49 upstream a19944809fe9 faabdb86 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/04/10 06:57 upstream e1f700ebd6be e22c3da3 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/04/02 05:28 upstream d0d642a5d365 79a2a8fc .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/03/16 23:45 upstream 56e337f2cf13 46cc3b21 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/03/15 22:54 upstream 56e337f2cf13 9e8eaa75 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/03/05 08:21 upstream 07ebd38a0da2 45a13a73 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/03/03 09:00 upstream 92ebf5f91b4d 45a13a73 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/03/02 15:25 upstream fb184c4af9b9 45a13a73 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/03/01 14:30 upstream 719fce7539cd 45a13a73 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/02/25 14:27 upstream 53ab78cd6d5a 7c337266 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/01/31 16:53 upstream 26291c54e111 a491ad2d .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/01/28 20:51 upstream df0001545b27 495e00c5 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/01/25 10:57 upstream dd81e1c7d5fb 2cbffd88 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/01/19 22:25 upstream 1d1df41c5a33 5da9499f .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/01/14 17:57 upstream 871bfa02d08d 53e00b45 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/29 10:32 upstream e7c124bd0463 76c8cf06 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/26 00:01 upstream e2ae0d4a6b0b 6caa12e4 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/25 04:16 upstream b927dfc67d05 6caa12e4 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/20 12:13 upstream a7904a538933 021b36cb .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/16 23:31 upstream fa36bbe6d43f 8dd6a5e3 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/12 21:49 upstream 90d9fbc16b69 49ca1f59 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/11 18:13 upstream 6f513529296f 49ca1f59 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/07 01:54 upstream f80ef9e49fdf 0230ba3e .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/29 23:49 upstream d58071a8a76d d0830353 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/28 13:25 upstream 3498e7f2bb41 63eeac02 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/26 08:51 upstream a4849f6000e2 63eeac02 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/21 19:21 upstream 923dcc5eb0c1 4eb20a4e .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/08 22:06 upstream e851dfae4371 d29682f1 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/07 12:13 upstream b5013d084e03 4c1be0be .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/03 09:12 upstream 56d33754481f 17f3edd2 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/01 23:24 upstream e66435936756 098b5d53 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/10/14 02:03 upstream 348949d9a444 5462d470 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/08/12 09:11 upstream 1746f4db5135 6972b106 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/08/06 01:48 upstream e04480920d1e d2d6e680 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/08/04 22:57 upstream 251a1524293d b97d64c9 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/07/31 00:29 upstream 4669e13cd67f 6c236867 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/07/27 18:50 upstream ff1176468d36 17d6ab15 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/07/15 21:56 upstream dd9c7df94c1b f115ae98 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/07/02 15:25 upstream 3dbdb38e2869 658ebc66 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/07/02 02:44 upstream e058a84bfddc 658ebc66 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/06/29 15:43 upstream c54b245d0118 9d2ab5df .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/06/29 15:31 upstream c54b245d0118 9d2ab5df .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/06/20 21:53 upstream cba5e97280f5 aba2b2fb .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/06/19 02:07 upstream b1edae0d5f2e aba2b2fb .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/06/11 10:05 upstream 06af8679449d 1ba81399 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/06/09 04:22 upstream 4c8684fe555e 5c2fe346 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/05/21 04:14 upstream ba816d3c265c 3c7fef33 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/05/17 11:55 upstream d07f6ca923ea a2eb125d .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/05/12 17:57 upstream 88b06399c9c7 86294427 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/05/10 00:52 upstream 9819f682e48c bc5434be .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
* Struck through repros no longer work on HEAD.