syzbot


KCSAN: data-race in delete_from_page_cache_batch / page_mapping (5)

Status: auto-closed as invalid on 2021/12/06 07:47
Reported-by: syzbot+69278bb91f6152a3c417@syzkaller.appspotmail.com
First crash: 551d, last: 328d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in delete_from_page_cache_batch / page_mapping (3) 1 692d 657d 0/24 auto-closed as invalid on 2020/12/21 11:15
upstream KCSAN: data-race in delete_from_page_cache_batch / page_mapping 28 888d 1061d 0/24 auto-closed as invalid on 2020/06/18 13:43
upstream KCSAN: data-race in delete_from_page_cache_batch / page_mapping (4) 3 628d 640d 0/24 auto-closed as invalid on 2021/02/08 17:09
upstream KCSAN: data-race in delete_from_page_cache_batch / page_mapping (2) 2 743d 774d 0/24 auto-closed as invalid on 2020/10/17 07:02

Sample crash report:
==================================================================
BUG: KCSAN: data-race in delete_from_page_cache_batch / page_mapping

write to 0xffffea0004b30798 of 8 bytes by task 2981 on cpu 1:
 page_cache_delete_batch mm/filemap.c:319 [inline]
 delete_from_page_cache_batch+0x30c/0x6c0 mm/filemap.c:349
 truncate_inode_pages_range+0x1d5/0xad0 mm/truncate.c:326
 truncate_inode_pages+0x20/0x30 mm/truncate.c:425
 kill_bdev block/bdev.c:77 [inline]
 set_blocksize+0x24e/0x270 block/bdev.c:157
 sb_set_blocksize+0x2c/0xa0 block/bdev.c:166
 ext4_fill_super+0x2287/0x7830 fs/ext4/super.c:4327
 mount_bdev+0x1e8/0x290 fs/super.c:1368
 ext4_mount+0x2d/0x40 fs/ext4/super.c:6515
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1498
 do_new_mount fs/namespace.c:2988 [inline]
 path_mount+0x11ec/0x1d20 fs/namespace.c:3318
 do_mount fs/namespace.c:3331 [inline]
 __do_sys_mount fs/namespace.c:3539 [inline]
 __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3516
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3516
 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 0xffffea0004b30798 of 8 bytes by task 566 on cpu 0:
 page_mapping+0x111/0x1c0 mm/util.c:725
 page_evictable mm/internal.h:83 [inline]
 __pagevec_lru_add_fn+0x82/0x490 mm/swap.c:1024
 __pagevec_lru_add+0x189/0x240 mm/swap.c:1052
 lru_add_drain_cpu+0x6a/0x270 mm/swap.c:597
 lru_add_drain mm/swap.c:701 [inline]
 __pagevec_release+0x57/0xa0 mm/swap.c:980
 pagevec_release include/linux/pagevec.h:81 [inline]
 __invalidate_mapping_pages+0x2b4/0x340 mm/truncate.c:509
 invalidate_mapping_pages+0x23/0x30 mm/truncate.c:533
 invalidate_bdev+0x67/0x80 block/bdev.c:88
 ext4_put_super+0x620/0x910 fs/ext4/super.c:1239
 generic_shutdown_super+0xe1/0x230 fs/super.c:465
 kill_block_super+0x4a/0x90 fs/super.c:1395
 deactivate_locked_super+0x65/0xd0 fs/super.c:335
 deactivate_super+0x85/0x90 fs/super.c:366
 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1137
 __cleanup_mnt+0x15/0x20 fs/namespace.c:1144
 task_work_run+0xae/0x130 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 do_syscall_64+0x50/0xa0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xffff888104bbcd28 -> 0x0000000000000000

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

Crashes (192):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/11/01 07:46 upstream 8bb7eca972ad 098b5d53 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/31 05:09 upstream 119c85055d86 098b5d53 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/30 05:34 upstream a379fbbcb88b 098b5d53 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/28 21:37 upstream 411a44c24a56 be531bb4 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/28 10:58 upstream 1fc596a56b33 be531bb4 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/27 12:17 upstream d25f27432f80 d50eb50a .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/26 23:42 upstream 3906fe9bb7f1 d50eb50a .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/22 18:20 upstream 64222515138e 282f03fb .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/21 05:56 upstream 2f111a6fd5b5 f111d03b .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/19 01:39 upstream 519d81956ee2 24dc29db .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/18 04:31 upstream cf52ad5ff16c 0c5d9412 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/16 01:21 upstream 8fe31e0995f0 0c5d9412 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/14 16:01 upstream 26d657410983 5462d470 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/14 01:19 upstream 348949d9a444 5462d470 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/13 14:04 upstream f4d0cc426f77 9d56e7dd .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/13 02:56 upstream f4d0cc426f77 08362356 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/12 07:01 upstream fa5878760579 838e7e2c .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/11 09:31 upstream 64570fbc14f8 838e7e2c .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/09 01:48 upstream 741668ef7832 efe0f24d .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/08 16:11 upstream 1da38549dd64 efe0f24d .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/07 22:15 upstream 4a16df549d23 efe0f24d .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/06 09:40 upstream 60a9483534ed 0a63fd36 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/05 17:02 upstream f6274b06e326 8a6b1a8d .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/05 08:03 upstream 84b3e42564ac ce697b49 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/03 17:52 upstream 7b66f4393ad4 db0f5787 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/03 02:22 upstream ab2a7a35c4e7 db0f5787 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/02 09:09 upstream 53d5fc89d66a db0f5787 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/02 01:32 upstream 24f67d82c43c cc80db95 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/01 15:09 upstream 4de593fb965f cc80db95 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/10/01 04:26 upstream 4de593fb965f 1d849ab4 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/09/30 20:11 upstream 02d5e016800d 0f01403d .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/09/30 08:28 upstream 02d5e016800d be530f6c .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/09/29 19:02 upstream a4e6f95a891a e08fe937 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/09/29 09:15 upstream a4e6f95a891a d82cb927 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/09/28 18:40 upstream d33bec7b3dfa d82cb927 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/09/28 11:15 upstream 0513e464f900 78494d16 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/09/27 13:05 upstream 5816b3e6577e 78494d16 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/09/27 09:24 upstream 996148ee05d0 78494d16 .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/09/26 14:08 upstream a3b397b4fffb 8cac236e .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/09/26 03:32 upstream 85736168463d 8cac236e .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/09/25 03:18 upstream 7d42e9818258 8cac236e .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/09/24 10:59 upstream f9e36107ec70 8cac236e .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/09/24 05:51 upstream f10f0481a5b5 8cac236e .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/06/21 11:35 upstream 13311e74253f aba2b2fb .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/06/19 07:31 upstream b1edae0d5f2e aba2b2fb .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
ci2-upstream-kcsan-gce 2021/03/23 08:54 upstream 84196390620a 8092f30d .config log report info KCSAN: data-race in delete_from_page_cache_batch / page_mapping
* Struck through repros no longer work on HEAD.