syzbot


KCSAN: data-race in __mpage_writepage / generic_write_end (9)

Status: auto-obsoleted due to no activity on 2024/03/08 15:44
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+c736c1c2eaf6e7e4fce2@syzkaller.appspotmail.com
First crash: 288d, last: 105d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mpage_writepage / generic_write_end exfat 7 1432d 1463d 0/26 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (8) exfat 1 327d 327d 0/26 auto-obsoleted due to no activity on 2023/07/30 18:33
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (2) exfat 9 1351d 1416d 0/26 auto-closed as invalid on 2020/10/09 21:50
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (5) exfat 1 741d 741d 0/26 auto-closed as invalid on 2022/06/11 23:17
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (7) exfat 1 368d 368d 0/26 auto-obsoleted due to no activity on 2023/06/19 15:13
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (6) exfat 4 425d 503d 0/26 auto-obsoleted due to no activity on 2023/04/23 23:08
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (3) exfat 1 1261d 1257d 0/26 auto-closed as invalid on 2021/01/07 12:23
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (4) exfat 2 798d 832d 0/26 auto-closed as invalid on 2022/04/16 04:47

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __mpage_writepage / generic_write_end

write to 0xffff8881069e1c30 of 8 bytes by task 3372 on cpu 1:
 i_size_write include/linux/fs.h:932 [inline]
 generic_write_end+0x94/0x230 fs/buffer.c:2275
 fat_write_end+0x4e/0x160 fs/fat/inode.c:244
 cont_expand_zero fs/buffer.c:2497 [inline]
 cont_write_begin+0x2c0/0x690 fs/buffer.c:2555
 fat_write_begin+0x61/0xf0 fs/fat/inode.c:230
 generic_cont_expand_simple+0xa7/0x140 fs/buffer.c:2456
 fat_cont_expand+0x3a/0x160 fs/fat/file.c:223
 fat_setattr+0x2a9/0x840 fs/fat/file.c:513
 notify_change+0x866/0x8e0 fs/attr.c:499
 do_truncate+0x116/0x150 fs/open.c:66
 do_sys_ftruncate+0x2ba/0x3b0 fs/open.c:194
 __do_sys_ftruncate fs/open.c:205 [inline]
 __se_sys_ftruncate fs/open.c:203 [inline]
 __x64_sys_ftruncate+0x33/0x40 fs/open.c:203
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff8881069e1c30 of 8 bytes by task 3379 on cpu 0:
 i_size_read include/linux/fs.h:910 [inline]
 __mpage_writepage+0xa6/0xdc0 fs/mpage.c:478
 write_cache_pages+0x38d/0x740 mm/page-writeback.c:2474
 mpage_writepages+0x72/0xe0 fs/mpage.c:672
 fat_writepages+0x24/0x30 fs/fat/inode.c:200
 do_writepages+0x1c2/0x340 mm/page-writeback.c:2553
 filemap_fdatawrite_wbc+0xdb/0xf0 mm/filemap.c:388
 __filemap_fdatawrite_range+0xa1/0xd0 mm/filemap.c:421
 sync_file_range+0x1b3/0x220 fs/sync.c:292
 ksys_sync_file_range fs/sync.c:364 [inline]
 __do_sys_sync_file_range fs/sync.c:373 [inline]
 __se_sys_sync_file_range fs/sync.c:370 [inline]
 __x64_sys_sync_file_range+0x80/0xd0 fs/sync.c:370
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x000000000038b000 -> 0x000000000038c000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3379 Comm: syz-executor.0 Not tainted 6.8.0-rc2-syzkaller-00199-g021533194476 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
==================================================================
syz-executor.0 (3379) used greatest stack depth: 11560 bytes left

Crashes (47):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/02 15:43 upstream 021533194476 60bf9982 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2024/02/02 00:34 upstream 5c24e4e9e708 d61103fc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2024/01/30 16:08 upstream 861c0981648f 7f400fcb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2024/01/28 07:42 upstream 8a696a29c690 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2024/01/24 18:48 upstream 615d30064886 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2024/01/24 07:28 upstream 615d30064886 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2024/01/23 04:27 upstream 5d9248eed480 1c0ecc51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2024/01/19 23:15 upstream 9d1694dc91ce 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2024/01/19 06:14 upstream 86c4d58a99ab 21772ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2024/01/17 22:56 upstream 1b1934dbbdcf 915053c7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2024/01/16 08:44 upstream 052d534373b7 2a7bcc7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2024/01/11 06:48 upstream de927f6c0b07 00f3cc59 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2024/01/11 05:36 upstream de927f6c0b07 04815ef1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2024/01/01 13:55 upstream 610a9b8f49fb fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/12/28 03:43 upstream f5837722ffec fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/12/10 02:18 upstream b10a3ccaf6e3 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/12/09 02:23 upstream f2e8a57ee903 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/12/08 00:49 upstream 9ace34a8e446 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/12/07 22:53 upstream 9ace34a8e446 0a02ce36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/11/18 03:59 upstream 6bc40e44f1dd cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/11/09 04:03 upstream 6bc986ab839c 4862372a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/27 19:53 upstream 750b95887e56 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/21 05:42 upstream c8045b4a33a5 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/20 03:38 upstream ce55c22ec8b2 a42250d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/19 13:46 upstream dd72f9c7e512 42e1d524 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/19 03:17 upstream dd72f9c7e512 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/10 22:50 upstream 1c8b86a3799f 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/10 02:16 upstream 94f6f0550c62 c9be5398 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/08 22:31 upstream 94f6f0550c62 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/07 22:21 upstream 59f3fd30af35 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/06 17:11 upstream 7de25c855b63 ea12a918 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/05 22:32 upstream 3006adf3be79 db17ad9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/05 13:43 upstream 3006adf3be79 b7d7ff54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/05 01:31 upstream ba7d997a2a29 b7d7ff54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/04 09:02 upstream cbf3a2cb156a 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/02 21:13 upstream 8a749fd1a872 50b20e75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/02 11:46 upstream 8a749fd1a872 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/10/02 03:49 upstream e81a2dabc3f3 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/09/16 17:35 upstream 57d88e8a5974 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/09/13 01:45 upstream a747acc0b752 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/09/08 04:40 upstream 4a0fc73da97e 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/09/07 09:18 upstream 7ba2090ca64e 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/09/07 04:21 upstream 744a759492b5 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/09/04 22:07 upstream 708283abf896 db3306a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/09/03 18:41 upstream 6e32dfcccfcc 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/08/30 11:35 upstream 6c1b980a7e79 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
2023/08/03 18:45 upstream 7bafbd4027ae 74621247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
* Struck through repros no longer work on HEAD.