syzbot


KCSAN: data-race in __delete_from_page_cache / page_mapping (2)

Status: auto-closed as invalid on 2021/12/06 06:09
Reported-by: syzbot+f8460ec03e7576b674d7@syzkaller.appspotmail.com
First crash: 892d, last: 404d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __delete_from_page_cache / page_mapping 22 920d 1106d 0/24 closed as invalid on 2020/06/18 14:24

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

write to 0xffffea0004dcfed8 of 8 bytes by task 31153 on cpu 0:
 page_cache_delete mm/filemap.c:145 [inline]
 __delete_from_page_cache+0x1b4/0x280 mm/filemap.c:232
 delete_from_page_cache+0x82/0x160 mm/filemap.c:266
 truncate_inode_page mm/truncate.c:219 [inline]
 truncate_inode_pages_range+0x9a3/0xad0 mm/truncate.c:397
 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 block/bdev.c:166 [inline]
 sb_min_blocksize+0x9d/0x120 block/bdev.c:182
 ext4_fill_super+0x3a5/0x7830 fs/ext4/super.c:3924
 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 0xffffea0004dcfed8 of 8 bytes by task 3496 on cpu 1:
 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_cache_add+0x121/0x150 mm/swap.c:453
 add_to_page_cache_lru+0x150/0x1b0 mm/filemap.c:1000
 page_cache_ra_unbounded+0x274/0x430 mm/readahead.c:222
 do_page_cache_ra mm/readahead.c:269 [inline]
 force_page_cache_ra+0x256/0x290 mm/readahead.c:301
 page_cache_sync_ra+0xcc/0xe0 mm/readahead.c:575
 page_cache_sync_readahead include/linux/pagemap.h:883 [inline]
 filemap_get_pages mm/filemap.c:2545 [inline]
 filemap_read+0x3ad/0x1220 mm/filemap.c:2628
 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2779
 blkdev_read_iter+0xb9/0xf0 block/fops.c:545
 call_read_iter include/linux/fs.h:2157 [inline]
 new_sync_read fs/read_write.c:404 [inline]
 vfs_read+0x66c/0x750 fs/read_write.c:485
 ksys_read+0xd9/0x190 fs/read_write.c:623
 __do_sys_read fs/read_write.c:633 [inline]
 __se_sys_read fs/read_write.c:631 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:631
 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: 0xffff8881010b25e8 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3496 Comm: udevd Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (292):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/11/01 06:09 upstream 8bb7eca972ad 098b5d53 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/31 13:27 upstream 180eca540ae0 098b5d53 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/29 12:59 upstream f25a5481af12 2353a3ec .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/27 05:42 upstream d25f27432f80 d50eb50a .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/25 10:00 upstream 6c62666d8879 4f0000ee .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/19 22:13 upstream d9abdee5fd5a 466b7db1 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/18 21:02 upstream 519d81956ee2 24dc29db .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/18 07:47 upstream cf52ad5ff16c 0c5d9412 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/17 06:33 upstream d999ade1cc86 0c5d9412 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/17 01:44 upstream 304040fb4909 0c5d9412 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/15 10:35 upstream ec681c53f8d2 aab7690b .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/11 14:52 upstream 64570fbc14f8 838e7e2c .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/10 19:17 upstream efb52a7d9511 838e7e2c .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/10 08:59 upstream 7fd2bf83d59a 838e7e2c .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/09 00:30 upstream 741668ef7832 efe0f24d .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/08 08:50 upstream 1da38549dd64 efe0f24d .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/07 04:14 upstream 5af4055fa813 62ee0987 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/06 23:18 upstream 60a9483534ed 62ee0987 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/05 14:40 upstream f6274b06e326 8a6b1a8d .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/05 00:14 upstream 84b3e42564ac ce697b49 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/04 15:02 upstream 9e1ff307c779 ce697b49 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/04 05:46 upstream 6761a0ae9895 db0f5787 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/03 00:07 upstream ab2a7a35c4e7 db0f5787 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/02 09:38 upstream 53d5fc89d66a db0f5787 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/01 20:17 upstream 24f67d82c43c cc80db95 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/10/01 17:14 upstream 4de593fb965f cc80db95 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/30 06:14 upstream 02d5e016800d be530f6c .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/29 16:19 upstream a4e6f95a891a e08fe937 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/28 22:30 upstream d33bec7b3dfa d82cb927 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/28 01:55 upstream 0513e464f900 78494d16 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/27 12:50 upstream 5816b3e6577e 78494d16 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/25 23:27 upstream 85736168463d 8cac236e .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/25 05:31 upstream 7d42e9818258 8cac236e .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/24 13:56 upstream f9e36107ec70 8cac236e .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/24 02:49 upstream f10f0481a5b5 8cac236e .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/22 18:45 upstream cf1d2c3e7e2f 8cac236e .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/21 22:48 upstream d9fb678414c0 169724fe .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/20 21:36 upstream e8f71f89236e af796c18 .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/20 18:29 upstream e4e737bb5c17 3d9c9a2a .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/20 01:44 upstream 20621d2f27a0 70b76c1d .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/19 15:58 upstream d4d016caa4b8 70b76c1d .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/19 04:46 upstream 93ff9f13be91 70b76c1d .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/09/17 22:49 upstream ddf21bd8ab98 70b76c1d .config log report info KCSAN: data-race in __delete_from_page_cache / page_mapping
ci2-upstream-kcsan-gce 2021/01/14 15:54 upstream 65f0d2414b70 468dbb55 .config log report info
ci2-upstream-kcsan-gce 2020/11/02 11:21 upstream 3cea11cd5e3b 8bc4594f .config log report info
ci2-upstream-kcsan-gce 2020/11/01 19:02 upstream 31f020064f9d 8bc4594f .config log report info
ci2-upstream-kcsan-gce 2020/07/01 05:53 upstream 7c30b859a947 c0383ebe .config log report
* Struck through repros no longer work on HEAD.