syzbot


KCSAN: data-race in __filemap_remove_folio / folio_mapping

Status: auto-closed as invalid on 2022/04/21 14:11
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 328d, last: 265d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __filemap_remove_folio / folio_mapping

write to 0xffffea0004c35118 of 8 bytes by task 20202 on cpu 0:
 page_cache_delete mm/filemap.c:143 [inline]
 __filemap_remove_folio+0x1b7/0x2c0 mm/filemap.c:219
 filemap_remove_folio+0x69/0x210 mm/filemap.c:251
 truncate_inode_folio+0x14c/0x160 mm/truncate.c:223
 truncate_inode_pages_range+0x6a2/0x8b0 mm/truncate.c:435
 truncate_inode_pages+0x20/0x30 mm/truncate.c:461
 kill_bdev block/bdev.c:77 [inline]
 set_blocksize+0x24e/0x270 block/bdev.c:153
 sb_set_blocksize+0x2c/0xa0 block/bdev.c:162
 fat_fill_super+0x135e/0x2af0 fs/fat/inode.c:1678
 msdos_fill_super+0x29/0x30 fs/fat/namei_msdos.c:655
 mount_bdev+0x1e8/0x290 fs/super.c:1367
 msdos_mount+0x2d/0x40 fs/fat/namei_msdos.c:662
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1497
 do_new_mount fs/namespace.c:3024 [inline]
 path_mount+0x11cf/0x1c40 fs/namespace.c:3354
 do_mount fs/namespace.c:3367 [inline]
 __do_sys_mount fs/namespace.c:3575 [inline]
 __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3552
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3552
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffffea0004c35118 of 8 bytes by task 2138 on cpu 1:
 folio_mapping+0x92/0x120 mm/util.c:717
 folio_evictable mm/internal.h:121 [inline]
 __pagevec_lru_add_fn+0x81/0x380 mm/swap.c:1043
 __pagevec_lru_add+0x1c3/0x270 mm/swap.c:1071
 folio_add_lru+0x11a/0x160 mm/swap.c:469
 filemap_add_folio+0xf8/0x150 mm/filemap.c:965
 page_cache_ra_unbounded+0x274/0x400 mm/readahead.c:221
 do_page_cache_ra mm/readahead.c:268 [inline]
 force_page_cache_ra+0x1e6/0x220 mm/readahead.c:300
 page_cache_sync_ra+0xcc/0xe0 mm/readahead.c:574
 page_cache_sync_readahead include/linux/pagemap.h:1056 [inline]
 filemap_get_pages mm/filemap.c:2589 [inline]
 filemap_read+0x3ed/0x1430 mm/filemap.c:2676
 blkdev_read_iter+0x2cc/0x380 block/fops.c:616
 call_read_iter include/linux/fs.h:2068 [inline]
 new_sync_read fs/read_write.c:400 [inline]
 vfs_read+0x66c/0x750 fs/read_write.c:481
 ksys_read+0xd9/0x190 fs/read_write.c:619
 __do_sys_read fs/read_write.c:629 [inline]
 __se_sys_read fs/read_write.c:627 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:627
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xffff888101b98bf0 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2138 Comm: udevd Not tainted 5.17.0-rc8-syzkaller-00003-g56e337f2cf13-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (42):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/03/17 14:05 upstream 56e337f2cf13 dfa9a8ed .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/03/16 08:53 upstream 56e337f2cf13 9e8eaa75 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/03/10 01:06 upstream 330f4c53d3c2 9e8eaa75 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/03/09 03:30 upstream 92f90cc9fe0e 9e8eaa75 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/03/07 10:53 upstream ffb217a13a2e 7bdd8b2c .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/03/06 17:17 upstream dcde98da9970 7bdd8b2c .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/03/05 06:49 upstream 07ebd38a0da2 45a13a73 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/03/04 03:15 upstream 38f80f42147f 45a13a73 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/03/02 23:50 upstream 92ebf5f91b4d 45a13a73 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/03/02 09:00 upstream 575115360652 45a13a73 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/27 01:24 upstream 2293be58d6a1 45a13a73 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/25 18:17 upstream 53ab78cd6d5a 45a13a73 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/25 12:27 upstream 53ab78cd6d5a 7c337266 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/23 16:05 upstream 5c1ee569660d 6e821dbf .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/22 18:39 upstream 038101e6b2cd 6e821dbf .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/21 00:06 upstream 7f25f0412c9e 3cd800e4 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/19 09:43 upstream 4f12b742eb2b 3cd800e4 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/19 09:23 upstream 4f12b742eb2b 3cd800e4 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/18 22:26 upstream 7993e65fdd0f 3cd800e4 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/17 10:19 upstream f71077a4d84b 2bea8a27 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/16 23:07 upstream 359303076163 50221962 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/16 07:32 upstream c5d9ae265b10 8b9ca619 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/15 17:33 upstream 705d84a366cf 8b9ca619 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/15 05:58 upstream d567f5db412e 8b9ca619 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/11 22:24 upstream 1d41d2e82623 8b9ca619 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/06 01:41 upstream 90c9e950c0de a7dab638 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/02/05 23:54 upstream 0457e5153e0e a7dab638 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/28 11:37 upstream 23a46422c561 495e00c5 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/27 14:35 upstream 626b2dda7651 2cbffd88 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/23 23:07 upstream e783362eb54c 214351e1 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/23 05:13 upstream 1c52283265a4 214351e1 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/21 14:50 upstream 2c271fe77d52 ab3d9f17 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/20 20:28 upstream fa2e1ba3e9e3 b838eb76 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/20 10:50 upstream 1d1df41c5a33 5da9499f .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/19 07:09 upstream 99613159ad74 731a2d23 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/18 11:17 upstream e3a8b6a1e70c 731a2d23 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/17 11:40 upstream 0c947b893d69 731a2d23 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/17 06:47 upstream 79e06c4c4950 723cfaf0 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/15 07:55 upstream 112450df61b7 723cfaf0 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/14 19:47 upstream 871bfa02d08d 53e00b45 .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/13 23:16 upstream 455e73a07f6e b8d780ab .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
ci2-upstream-kcsan-gce 2022/01/13 06:22 upstream f079ab01b560 44d1319a .config log report info KCSAN: data-race in __filemap_remove_folio / folio_mapping
* Struck through repros no longer work on HEAD.