syzbot


KCSAN: data-race in generic_write_end / next_uptodate_page

Status: auto-closed as invalid on 2021/12/04 21:58
Reported-by: syzbot+babe32eed987db4bbbd8@syzkaller.appspotmail.com
First crash: 644d, last: 393d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_write_end / next_uptodate_page (2) 330 5d10h 313d 0/24 moderation: reported on 2022/01/19 09:37

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

write to 0xffff888104be5bc8 of 8 bytes by task 20782 on cpu 0:
 i_size_write include/linux/fs.h:916 [inline]
 generic_write_end+0x96/0x180 fs/buffer.c:2186
 ext4_da_write_end+0x4cc/0x5e0 fs/ext4/inode.c:3062
 generic_perform_write+0x251/0x3e0 mm/filemap.c:3781
 ext4_buffered_write_iter+0x305/0x400 fs/ext4/file.c:269
 ext4_file_write_iter+0x2e7/0x11f0
 call_write_iter include/linux/fs.h:2163 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x7bc/0x900 fs/read_write.c:594
 ksys_write+0xd9/0x190 fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:656
 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 0xffff888104be5bc8 of 8 bytes by task 20790 on cpu 1:
 i_size_read include/linux/fs.h:894 [inline]
 next_uptodate_page+0x323/0x670 mm/filemap.c:3256
 next_map_page mm/filemap.c:3281 [inline]
 filemap_map_pages+0x771/0x880 mm/filemap.c:3337
 do_fault_around mm/memory.c:4161 [inline]
 do_read_fault mm/memory.c:4176 [inline]
 do_fault mm/memory.c:4310 [inline]
 handle_pte_fault mm/memory.c:4568 [inline]
 __handle_mm_fault mm/memory.c:4703 [inline]
 handle_mm_fault+0xb08/0x1580 mm/memory.c:4801
 faultin_page mm/gup.c:937 [inline]
 __get_user_pages+0x381/0xc50 mm/gup.c:1158
 populate_vma_page_range mm/gup.c:1490 [inline]
 __mm_populate+0x24d/0x370 mm/gup.c:1599
 mm_populate include/linux/mm.h:2624 [inline]
 vm_mmap_pgoff+0x160/0x1f0 mm/util.c:524
 ksys_mmap_pgoff+0x284/0x350 mm/mmap.c:1624
 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: 0x0000000000bc6000 -> 0x0000000000bc9000

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

Crashes (70):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/10/30 21:57 upstream 119c85055d86 098b5d53 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/10/28 18:10 upstream 411a44c24a56 be531bb4 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/10/26 12:15 upstream 3906fe9bb7f1 d50eb50a .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/10/25 18:34 upstream 87066fdd2e30 c1132b49 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/10/22 15:51 upstream 64222515138e 282f03fb .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/10/21 13:33 upstream 2f111a6fd5b5 c5cb7da8 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/10/15 08:01 upstream ec681c53f8d2 aab7690b .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/10/12 22:27 upstream f4d0cc426f77 08362356 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/10/06 00:41 upstream 60a9483534ed 0a63fd36 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/10/04 21:12 upstream 84b3e42564ac ce697b49 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/10/02 03:05 upstream 53d5fc89d66a db0f5787 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/10/01 18:20 upstream 24f67d82c43c cc80db95 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/09/21 12:47 upstream d9fb678414c0 169724fe .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/08/27 17:02 upstream 77dd11439b86 57b01c6e .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/08/26 19:43 upstream 1a6d80ff2419 b318694d .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/08/13 18:27 upstream f8e6dfc64f61 2489ab88 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/08/06 19:01 upstream 894d6f401b21 6972b106 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/08/06 16:44 upstream 902e7f373fff 6972b106 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/08/04 15:59 upstream d5ad8ec3cfb5 b97d64c9 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/07/29 04:08 upstream 4010a528219e b44001ce .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/07/28 16:24 upstream 7d549995d4e0 9a4781d4 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/07/27 21:46 upstream 7d549995d4e0 17d6ab15 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/07/24 03:48 upstream f0fddcec6b62 bc5f1d88 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/07/23 00:03 upstream 9bead1b58c4c bc5f1d88 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/07/22 09:50 upstream 3d5895cd3517 29c3f20f .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/07/20 13:07 upstream 8cae8cd89f05 1b201b48 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/07/20 11:57 upstream 2734d6c1b1a0 1b201b48 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/07/14 12:25 upstream 40226a3d96ef 94e0b707 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/07/06 06:41 upstream 3dbdb38e2869 6c4484eb .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/07/01 08:44 upstream dbe69e433722 658ebc66 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/06/30 08:41 upstream 007b350a5875 84fd4c77 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/06/26 20:00 upstream 625acffd7ae2 9d2ab5df .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/06/25 14:37 upstream 44db63d1ad8d ae6bf8dd .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/06/25 10:42 upstream 44db63d1ad8d 0edbbe31 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/06/21 09:44 upstream 13311e74253f aba2b2fb .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/06/20 18:36 upstream cba5e97280f5 aba2b2fb .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/06/17 11:25 upstream 70585216fe77 aba2b2fb .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/06/04 21:27 upstream 16f0596fc1d7 500c2339 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/05/30 23:49 upstream 8124c8a6b353 325a8dab .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/05/29 08:35 upstream 6799d4f2da49 858ea628 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/05/28 01:34 upstream 97e5bf604b7a 858ea628 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/05/26 10:08 upstream ad9f25d33860 750ce164 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/05/16 15:05 upstream 63d1cb53e26a f54a5c09 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/05/14 18:21 upstream bd3c9cdb21a2 8bdd5343 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/05/13 08:05 upstream c06a2ba62fc4 ed7d41c5 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/05/08 23:32 upstream b741596468b0 bc5434be .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/05/07 08:25 upstream e48661230cc3 f6da8120 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/05/06 14:56 upstream 8404c9fbc84b 06585184 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/05/03 13:17 upstream 9ccce092fc64 ad61f371 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/04/30 20:02 upstream 65c61de9d090 77e2b668 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/04/29 23:35 upstream 8ca5297e7e38 77e2b668 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/04/27 09:59 upstream 4a0225c3d208 805b5003 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/04/25 19:17 upstream d2d09fbe33f8 2a82f1b3 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/04/22 23:41 upstream 90c911ad7445 590921a5 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/04/14 22:37 upstream 7f75285ca572 fcdb12ba .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/04/08 21:59 upstream 3fb4f979b4fa 6a81331a .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/04/05 18:28 upstream 0a50438c8436 6a81331a .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/04/04 03:16 upstream 2023a53bdf41 6a81331a .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/04/04 03:13 upstream 2023a53bdf41 6a81331a .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/03/31 19:18 upstream d19cc4bfbff1 6a81331a .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/03/31 05:46 upstream 5e46d1b78a03 6a81331a .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/03/21 13:59 upstream 812da4d39463 4c9a64da .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/03/20 21:43 upstream 812da4d39463 17810eae .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/03/19 09:38 upstream 8b12a62a4e3e 2af9d324 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/03/18 08:40 upstream 6417f03132a6 7216542e .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/03/13 07:11 upstream f296bfd5cd04 4a003785 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/03/11 19:55 upstream 28806e4d9b97 c2ca1f2a .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/03/07 08:18 upstream a38fd8748464 c599ed12 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/03/05 17:58 upstream 280d542f6ffa 4a024a9b .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/02/22 07:43 upstream 31caf8b2a847 a659b3f1 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
* Struck through repros no longer work on HEAD.