syzbot


KCSAN: data-race in __delete_from_page_cache / folio_mapping

Status: auto-closed as invalid on 2022/02/14 23:11
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 396d, last: 326d

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

write to 0xffffea000421bc58 of 8 bytes by task 31812 on cpu 0:
 page_cache_delete mm/filemap.c:144 [inline]
 __delete_from_page_cache+0x1b7/0x2c0 mm/filemap.c:231
 delete_from_page_cache+0x97/0x1e0 mm/filemap.c:266
 truncate_inode_page mm/truncate.c:229 [inline]
 truncate_inode_pages_range+0x8d7/0xa00 mm/truncate.c:407
 truncate_inode_pages+0x20/0x30 mm/truncate.c:435
 kill_bdev block/bdev.c:78 [inline]
 set_blocksize+0x24e/0x270 block/bdev.c:158
 sb_set_blocksize block/bdev.c:167 [inline]
 sb_min_blocksize+0x92/0x110 block/bdev.c:183
 fat_fill_super+0xe95/0x2af0 fs/fat/inode.c:1646
 msdos_fill_super+0x29/0x30 fs/fat/namei_msdos.c:655
 mount_bdev+0x1e8/0x290 fs/super.c:1370
 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:1500
 do_new_mount fs/namespace.c:2988 [inline]
 path_mount+0x11cf/0x1c40 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/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffffea000421bc58 of 8 bytes by task 3271 on cpu 1:
 folio_mapping+0x92/0x120 mm/util.c:722
 folio_evictable mm/internal.h:112 [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:1014
 add_to_page_cache_lru+0x4e/0x70 mm/folio-compat.c:115
 page_cache_ra_unbounded+0x274/0x430 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:1028 [inline]
 filemap_get_pages mm/filemap.c:2556 [inline]
 filemap_read+0x3eb/0x16d0 mm/filemap.c:2642
 generic_file_read_iter+0x72/0x2a0 mm/filemap.c:2792
 blkdev_read_iter+0x96/0x140 block/fops.c:583
 call_read_iter include/linux/fs.h:2156 [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: 0xffff88810134fb78 -> 0x0000000000000000

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

Crashes (50):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/01/10 23:06 upstream 133d9c53c9dc ddb0ab8c .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2022/01/10 18:56 upstream df0cc57e057f ddb0ab8c .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2022/01/10 03:10 upstream df0cc57e057f 2ca0d385 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2022/01/09 13:56 upstream 4634129ad9fd 2ca0d385 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2022/01/09 03:55 upstream 21f35d2ca83e 2ca0d385 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2022/01/07 01:05 upstream b2b436ec0205 6acc789a .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2022/01/06 11:13 upstream 75acfdb6fd92 6acc789a .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/28 17:50 upstream a8ad9a2434dc 76c8cf06 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/26 13:50 upstream 438645193e59 e4f103c4 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/22 10:50 upstream 2f47a9a4dfa3 6caa12e4 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/20 10:10 upstream a7904a538933 021b36cb .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/19 11:08 upstream 3f667b5d4053 44068e19 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/14 12:53 upstream 5472f14a3742 d018dd31 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/12 09:47 upstream a763d5a5abd6 49ca1f59 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/11 22:30 upstream 6f513529296f 49ca1f59 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/11 11:01 upstream 9e65da135b39 49ca1f59 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/10 04:24 upstream ded746bfc943 4d4ce9bc .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/09 23:36 upstream ded746bfc943 b54aa474 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/09 23:04 upstream ded746bfc943 b54aa474 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/08 12:45 upstream 2a987e65025e a4a2a501 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/06 13:09 upstream 0fcfb00b28c0 579a8754 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/05 21:25 upstream 944207047ca4 a617004c .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/03 14:49 upstream 5f58da2befa5 c7c20675 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/03 04:25 upstream a51e3ac43ddb 61f86278 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/02 09:52 upstream 58e1100fdc59 61f86278 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/12/01 00:04 upstream f080815fdb3e 80270552 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/30 13:21 upstream d58071a8a76d 80270552 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/29 16:49 upstream d58071a8a76d d0830353 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/28 22:05 upstream d06c942efea4 63eeac02 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/27 19:58 upstream 741392771338 63eeac02 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/23 23:19 upstream 5d9f4cf36721 545ab074 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/21 23:12 upstream 40c93d7fff6f 4eb20a4e .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/21 15:06 upstream 923dcc5eb0c1 4eb20a4e .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/20 22:34 upstream 61564e7b3abc 4eb20a4e .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/18 21:31 upstream 6fdf886424cf 31a30fc0 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/16 17:28 upstream 8ab774587903 600426bd .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/14 09:00 upstream c8c109546a19 75b04091 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/14 05:19 upstream a9b9669d9822 75b04091 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/12 21:21 upstream 5833291ab6de 75b04091 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/12 00:18 upstream ca2ef2d9f2aa 75b04091 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/10 18:44 upstream 89d714ab6043 75b04091 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/10 10:30 upstream cb690f5238d7 55fa030c .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/09 08:23 upstream e851dfae4371 8ab17e57 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/08 16:40 upstream 6b75d88fa81b d29682f1 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/08 09:54 upstream 6b75d88fa81b 4c1be0be .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/07 12:54 upstream b5013d084e03 4c1be0be .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/05 14:40 upstream d4439a1189f9 4c1be0be .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/04 17:03 upstream 7ddb58cb0eca 4c1be0be .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/03 14:17 upstream dcd68326d29b 4c1be0be .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
ci2-upstream-kcsan-gce 2021/11/01 23:53 upstream e66435936756 098b5d53 .config log report info KCSAN: data-race in __delete_from_page_cache / folio_mapping
* Struck through repros no longer work on HEAD.