syzbot


KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (2)

Status: auto-closed as invalid on 2021/07/20 20:13
Reported-by: syzbot+d98998b6cacef9fecc92@syzkaller.appspotmail.com
First crash: 959d, last: 598d
similar bugs (9):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (5) 1 418d 418d 0/24 auto-closed as invalid on 2022/01/16 16:04
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes 38 971d 1191d 0/24 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (3) 2 531d 533d 0/24 auto-closed as invalid on 2021/09/25 11:37
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (7) 2 260d 292d 0/24 auto-closed as invalid on 2022/06/23 15:49
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (4) 2 471d 492d 0/24 auto-closed as invalid on 2021/11/25 03:42
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (8) 2 215d 224d 0/24 auto-closed as invalid on 2022/08/07 13:58
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (10) 1 118d 118d 0/24 auto-obsoleted due to no activity on 2022/11/12 17:32
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (9) 1 177d 177d 0/24 auto-closed as invalid on 2022/09/14 22:08
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (6) 1 347d 347d 0/24 auto-closed as invalid on 2022/03/28 07:47

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes

write to 0xffff8881069df298 of 8 bytes by task 1783 on cpu 0:
 writeback_sb_inodes+0x3cc/0xf10 fs/fs-writeback.c:1721
 wb_writeback+0x28e/0x700 fs/fs-writeback.c:1905
 wb_do_writeback+0x101/0x510 fs/fs-writeback.c:2050
 wb_workfn+0xc8/0x520 fs/fs-writeback.c:2091
 process_one_work+0x3e9/0x8f0 kernel/workqueue.c:2276
 worker_thread+0x636/0xae0 kernel/workqueue.c:2422
 kthread+0x1d0/0x1f0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff8881069df298 of 8 bytes by task 16245 on cpu 1:
 __mark_inode_dirty+0xda/0x6c0 fs/fs-writeback.c:2295
 mark_inode_dirty_sync include/linux/fs.h:2409 [inline]
 dquot_free_space include/linux/quotaops.h:382 [inline]
 dquot_free_block include/linux/quotaops.h:392 [inline]
 ext4_mb_new_blocks+0x16cc/0x1f90 fs/ext4/mballoc.c:5562
 ext4_ext_map_blocks+0x1569/0x1f00 fs/ext4/extents.c:4241
 ext4_map_blocks+0x70d/0xef0 fs/ext4/inode.c:638
 ext4_alloc_file_blocks+0x271/0x720 fs/ext4/extents.c:4428
 ext4_fallocate+0x2a7/0x4d0 fs/ext4/extents.c:4708
 vfs_fallocate+0x463/0x660 fs/open.c:311
 file_ioctl fs/ioctl.c:497 [inline]
 do_vfs_ioctl+0x1322/0x1410 fs/ioctl.c:1048
 __do_sys_ioctl fs/ioctl.c:1067 [inline]
 __se_sys_ioctl+0x83/0x140 fs/ioctl.c:1055
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000020007 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 16245 Comm: syz-executor.4 Not tainted 5.13.0-rc6-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 Assets Title
ci2-upstream-kcsan-gce 2021/06/15 20:13 upstream 94f0b2d4a1d0 8022d7e3 .config console log report info KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/06/15 10:30 upstream 009c9aa5be65 8022d7e3 .config console log report info KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/06/08 06:09 upstream 614124bea77e b718257f .config console log report info KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/06/02 20:36 upstream 324c92e5e0ee 0740de69 .config console log report info KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/05/25 17:42 upstream a050a6d2b7e8 93d3a9f6 .config console log report info KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/05/04 02:48 upstream 5e321ded302d 09efdd63 .config console log report info KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/04/15 16:42 upstream 7f75285ca572 c59079a6 .config console log report info KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/04/11 19:47 upstream 7d900724913c 6a81331a .config console log report info KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/03/12 10:20 upstream f78d76e72a46 429d8a6b .config console log report info KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/02/15 02:26 upstream f40ddce88593 98682e5e .config console log report info KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/02/14 01:09 upstream ac30d8ce28d6 98682e5e .config console log report info KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/02/10 22:14 upstream 291009f656e8 a52ee10a .config console log report info KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/01/09 02:17 upstream 6279d812eab6 c104d4a3 .config console log report info
ci2-upstream-kcsan-gce 2021/01/05 21:18 upstream 6207214a70bf a0234d98 .config console log report info
ci2-upstream-kcsan-gce 2020/12/17 22:37 upstream d64c6f96ba86 04201c06 .config console log report info
ci2-upstream-kcsan-gce 2020/12/17 10:04 upstream accefff5b547 04201c06 .config console log report info
ci2-upstream-kcsan-gce 2020/12/13 09:14 upstream 6bff9bb8a292 bca53db9 .config console log report info
ci2-upstream-kcsan-gce 2020/12/08 08:55 upstream cd796ed33450 9af51e31 .config console log report info
ci2-upstream-kcsan-gce 2020/11/14 16:28 upstream f01c30de86f1 1bf9a662 .config console log report info
ci2-upstream-kcsan-gce 2020/11/08 20:27 upstream 9dbc1c03eeb5 cba33199 .config console log report info
ci2-upstream-kcsan-gce 2020/10/29 18:16 upstream 23859ae44402 a0c7169a .config console log report info
ci2-upstream-kcsan-gce 2020/10/14 11:00 upstream b5fc7a89e58b fc7735a2 .config console log report info
ci2-upstream-kcsan-gce 2020/10/11 21:59 upstream 3dd0130f2430 4a77ae0b .config console log report info
ci2-upstream-kcsan-gce 2020/10/10 22:58 upstream 6f2f486d57c4 4a77ae0b .config console log report info
ci2-upstream-kcsan-gce 2020/10/01 21:26 upstream fcadab740480 9602ddf4 .config console log report info
ci2-upstream-kcsan-gce 2020/10/01 11:31 upstream 60e720931556 4103fce0 .config console log report info
ci2-upstream-kcsan-gce 2020/09/28 02:39 upstream a1b8638ba132 5dd8aee8 .config console log report info
ci2-upstream-kcsan-gce 2020/09/24 17:45 upstream 171d4ff79f96 54289b08 .config console log report info
ci2-upstream-kcsan-gce 2020/09/20 19:30 upstream bdcf11de8f77 9564d2e9 .config console log report info
ci2-upstream-kcsan-gce 2020/09/19 19:59 upstream eb5f95f1593f 53ce8104 .config console log report info
ci2-upstream-kcsan-gce 2020/09/19 13:43 upstream eb5f95f1593f 53ce8104 .config console log report info
ci2-upstream-kcsan-gce 2020/09/19 00:07 upstream 92ab97adeefc 53ce8104 .config console log report info
ci2-upstream-kcsan-gce 2020/09/17 03:23 upstream 5925fa68fe82 8247808b .config console log report info
ci2-upstream-kcsan-gce 2020/09/16 12:38 upstream fc4f28bb3daf 18d7d030 .config console log report info
ci2-upstream-kcsan-gce 2020/09/15 12:14 upstream fc4f28bb3daf 9e681632 .config console log report info
ci2-upstream-kcsan-gce 2020/09/09 21:37 upstream 34d4ddd359db ac7ca78e .config console log report
ci2-upstream-kcsan-gce 2020/08/28 18:25 upstream 15bc20c6af4c d5a3ae1f .config console log report
ci2-upstream-kcsan-gce 2020/08/24 00:46 upstream cb95712138ec cef5ae68 .config console log report
ci2-upstream-kcsan-gce 2020/08/20 06:26 upstream 7eac66d0456f ed282a3a .config console log report
ci2-upstream-kcsan-gce 2020/08/16 19:48 upstream 2cc3c4b3c2e9 5ce13532 .config console log report
ci2-upstream-kcsan-gce 2020/08/15 06:56 upstream c9c9735c46f5 5ce13532 .config console log report
ci2-upstream-kcsan-gce 2020/08/14 02:01 upstream 990f227371a4 54ce1ed6 .config console log report
ci2-upstream-kcsan-gce 2020/08/13 01:03 upstream fb893de323e2 bc15f7db .config console log report
ci2-upstream-kcsan-gce 2020/08/12 14:18 upstream fb893de323e2 0d7bd2e0 .config console log report
ci2-upstream-kcsan-gce 2020/08/11 23:43 upstream bb5baaa9238e bb3e5fe6 .config console log report
ci2-upstream-kcsan-gce 2020/08/07 02:22 upstream d6efb3ac3e6c cb436c69 .config console log report
ci2-upstream-kcsan-gce 2020/07/30 09:10 upstream 83bdc7275e62 233283a1 .config console log report
ci2-upstream-kcsan-gce 2020/07/29 06:50 upstream 6ba1b005ffc3 19a8de55 .config console log report
ci2-upstream-kcsan-gce 2020/07/26 20:48 upstream 1ada9010e578 51265195 .config console log report
ci2-upstream-kcsan-gce 2020/07/26 11:44 upstream 04300d66f0a0 51265195 .config console log report
ci2-upstream-kcsan-gce 2020/07/22 22:53 upstream 8c26c87b0532 128cd85f .config console log report
ci2-upstream-kcsan-gce 2020/07/21 01:15 upstream 4fa640dc5230 8caeeeb7 .config console log report
ci2-upstream-kcsan-gce 2020/07/18 05:06 upstream 6a70f89cc58f 9c812472 .config console log report
ci2-upstream-kcsan-gce 2020/07/16 11:55 upstream f8456690ba8e b090c643 .config console log report
ci2-upstream-kcsan-gce 2020/07/10 23:06 upstream a581387e415b 18d18b59 .config console log report
ci2-upstream-kcsan-gce 2020/07/09 09:38 upstream 0bddd227f3dc bc238812 .config console log report
ci2-upstream-kcsan-gce 2020/07/07 22:46 upstream aa27b32b76d0 08fc4ef1 .config console log report
ci2-upstream-kcsan-gce 2020/07/05 13:40 upstream 35e884f89df4 22f87567 .config console log report
ci2-upstream-kcsan-gce 2020/07/02 07:52 upstream cd77006e01b3 bed10395 .config console log report
ci2-upstream-kcsan-gce 2020/07/01 19:15 upstream 7c30b859a947 39acb39d .config console log report
ci2-upstream-kcsan-gce 2020/07/01 09:36 upstream 7c30b859a947 c0383ebe .config console log report
ci2-upstream-kcsan-gce 2020/07/01 03:53 upstream 7c30b859a947 c0383ebe .config console log report
ci2-upstream-kcsan-gce 2020/06/30 03:51 upstream 7c30b859a947 917afeaa .config console log report
ci2-upstream-kcsan-gce 2020/06/26 20:38 upstream 1590a2e1c681 349959fb .config console log report
ci2-upstream-kcsan-gce 2020/06/26 15:25 upstream 4a21185cda0f 9506ea6d .config console log report
ci2-upstream-kcsan-gce 2020/06/26 11:56 upstream 4a21185cda0f b202c7a8 .config console log report
ci2-upstream-kcsan-gce 2020/06/26 01:26 upstream 908f7d12d3ba aea82c00 .config console log report
ci2-upstream-kcsan-gce 2020/06/24 20:30 upstream 26e122e97a3d 9d60b18e .config console log report
ci2-upstream-kcsan-gce 2020/06/21 15:34 upstream 64677779e896 4f2acff9 .config console log report
ci2-upstream-kcsan-gce 2020/06/19 22:48 upstream 672f9255a727 123cf502 .config console log report
* Struck through repros no longer work on HEAD.