syzbot


KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range

Status: auto-obsoleted due to no activity on 2023/05/27 02:10
Subsystems: mm
[Documentation on labels]
First crash: 931d, last: 403d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range (5) mm 7 24d 97d 0/26 moderation: reported on 2024/02/21 10:43
upstream KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range (3) mm 4 182d 171d 0/26 auto-obsoleted due to no activity on 2024/01/02 05:06
upstream KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range (4) fs mm 2 142d 140d 0/26 auto-obsoleted due to no activity on 2024/02/11 21:27
upstream KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range (2) ext4 4 270d 281d 0/26 auto-obsoleted due to no activity on 2023/10/06 06:01

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range

read-write to 0xffff8881381f64e0 of 8 bytes by task 712 on cpu 1:
 __filemap_add_folio+0x38c/0x720 mm/filemap.c:904
 filemap_add_folio+0x6f/0x150 mm/filemap.c:939
 page_cache_ra_unbounded+0x15e/0x2e0 mm/readahead.c:251
 do_page_cache_ra mm/readahead.c:300 [inline]
 page_cache_ra_order mm/readahead.c:560 [inline]
 ondemand_readahead+0x550/0x6c0 mm/readahead.c:682
 page_cache_async_ra+0x9d/0xb0 mm/readahead.c:731
 filemap_readahead mm/filemap.c:2573 [inline]
 filemap_get_pages+0x38c/0xea0 mm/filemap.c:2614
 filemap_read+0x223/0x680 mm/filemap.c:2693
 generic_file_read_iter+0x76/0x320 mm/filemap.c:2840
 ext4_file_read_iter+0x1cc/0x290
 call_read_iter include/linux/fs.h:1845 [inline]
 generic_file_splice_read+0xe3/0x290 fs/splice.c:402
 do_splice_to fs/splice.c:885 [inline]
 splice_direct_to_actor+0x25a/0x5f0 fs/splice.c:956
 do_splice_direct+0x104/0x180 fs/splice.c:1065
 do_sendfile+0x3b8/0x950 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1309
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff8881381f64e0 of 8 bytes by task 724 on cpu 0:
 mapping_needs_writeback mm/filemap.c:628 [inline]
 file_write_and_wait_range+0x6a/0x190 mm/filemap.c:780
 ext4_sync_file+0x10d/0x720 fs/ext4/fsync.c:151
 vfs_fsync_range+0x10b/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2452 [inline]
 ext4_buffered_write_iter+0x397/0x3e0 fs/ext4/file.c:296
 ext4_file_write_iter+0xd7/0x10e0
 do_iter_write+0x418/0x700 fs/read_write.c:861
 vfs_iter_write+0x50/0x70 fs/read_write.c:902
 iter_file_splice_write+0x456/0x7d0 fs/splice.c:778
 do_splice_from fs/splice.c:856 [inline]
 direct_splice_actor+0x84/0xa0 fs/splice.c:1022
 splice_direct_to_actor+0x2ee/0x5f0 fs/splice.c:977
 do_splice_direct+0x104/0x180 fs/splice.c:1065
 do_sendfile+0x3b8/0x950 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1309
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000000000014e -> 0x0000000000000151

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 724 Comm: syz-executor.5 Not tainted 6.3.0-rc7-syzkaller-00181-g8e41e0a57566 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
==================================================================

Crashes (90):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/22 02:00 upstream 8e41e0a57566 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/04/19 20:16 upstream 789b4a41c247 a219f34e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/04/19 15:45 upstream 789b4a41c247 94b4184e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/04/14 13:55 upstream 44149752e998 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/04/12 16:23 upstream e62252bc55b6 1a1596b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/04/08 21:42 upstream a79d5c76f705 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/04/07 22:16 upstream aa318c48808c 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/04/03 22:20 upstream 148341f0a2f5 41147e3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/03/31 09:17 upstream 62bad54b26db f325deb0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/03/25 14:04 upstream 65aca32efdcb fbf0499a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/03/24 17:50 upstream 1e760fa3596e 9700afae .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/03/13 01:09 upstream 134231664868 5205ef30 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/03/01 15:17 upstream c0927a7a5391 ef65e6cb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/02/21 00:11 upstream 91bc559d8d3a 2414209c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/02/10 11:32 upstream 38c1e0c65865 07980f9d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/01/30 13:47 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/01/28 00:35 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/01/26 06:51 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/01/20 03:20 upstream 081edded9b38 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/01/16 03:28 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/01/09 08:50 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2023/01/06 18:55 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/12/23 22:21 upstream 51094a24b85e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/12/06 23:08 upstream 8ed710da2873 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/11/20 16:19 upstream 77c51ba552a1 5bb70014 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/11/10 23:48 upstream 1767a722a708 3ead01ad .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/11/10 16:04 upstream f67dd6ce0723 3ead01ad .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/11/05 05:54 upstream 64c3dd0b98f5 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/10/25 13:56 upstream 337a0a0b63f1 45645420 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/10/18 11:48 upstream bb1a1146467a b31320fc .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/10/13 02:25 upstream a185a0995518 3f6b40a1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/09/26 03:14 upstream 5e049663f678 0042f2b4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/09/22 16:07 upstream dc164f4fb00a 0042f2b4 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/09/21 23:06 upstream 06f7db949993 60af5050 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/09/18 17:57 upstream 38eddeedbbea dd9a85ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/09/12 11:14 upstream 80e78fcce86d 356d8217 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/09/09 07:38 upstream 506357871c18 f3027468 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/09/02 06:08 upstream 42e66b1cc3a0 a805568e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/08/12 21:43 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/08/11 23:52 upstream 2ae08b36c06e 21724cb2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/07/19 12:09 upstream ca85855bdcae 72a3cc0c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/07/11 12:01 upstream 32346491ddf2 f3f217ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/07/10 00:19 upstream b1c428b6c368 b5765a15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/07/09 12:03 upstream e5524c2a1fc4 b5765a15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/07/04 10:27 upstream 88084a3df167 1434eec0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/06/26 19:24 upstream 82708bb1eb9e a371c43c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/06/12 19:29 upstream 997952851843 0d5abf15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/05/31 13:38 upstream 8ab2afa23bd1 af70c3a9 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/05/30 12:27 upstream b00ed48bb0a7 a46af346 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/05/25 12:08 upstream fdaf9a5840ac 647c0e27 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/05/12 19:51 upstream 0ac824f379fb 9ad6612a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/04/26 00:33 upstream af2d861d4cd2 152baedd .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/01/16 08:12 upstream d0a231f01e5b 723cfaf0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/01/14 11:51 upstream fb3b0673b7d5 b8d780ab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2022/01/11 18:30 upstream fe8152b38d3a 1884f55a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/12/27 08:24 upstream fc74e0a40e4f e4f103c4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/12/26 00:14 upstream e2ae0d4a6b0b 6caa12e4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/12/20 15:37 upstream a7904a538933 021b36cb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/12/16 22:47 upstream fa36bbe6d43f 8dd6a5e3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/12/08 09:44 upstream 2a987e65025e a4a2a501 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/11/28 10:20 upstream 3498e7f2bb41 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/11/28 01:19 upstream 741392771338 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/11/22 13:28 upstream 136057256686 545ab074 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/11/21 09:49 upstream 923dcc5eb0c1 4eb20a4e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/11/14 09:18 upstream c8c109546a19 75b04091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/11/13 16:59 upstream 66f4beaa6c1d 75b04091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/11/12 16:00 upstream 5833291ab6de 75b04091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/11/11 10:39 upstream debe436e77c7 75b04091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
2021/11/09 14:15 upstream d2f38a3c6507 59bcaf9a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / file_write_and_wait_range
* Struck through repros no longer work on HEAD.