syzbot


KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle

Status: auto-closed as invalid on 2022/01/25 10:45
Subsystems: ext4
[Documentation on labels]
First crash: 1088d, last: 1023d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle (3) ext4 1 883d 883d 0/28 closed as invalid on 2022/05/13 11:20
upstream KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle (2) ext4 1 978d 978d 0/28 auto-closed as invalid on 2022/03/10 18:26

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle

write to 0xffff8881032dd078 of 8 bytes by task 1833 on cpu 1:
 jbd2_get_transaction fs/jbd2/transaction.c:125 [inline]
 start_this_handle+0xd37/0x1050 fs/jbd2/transaction.c:416
 jbd2__journal_start+0x1fc/0x3f0 fs/jbd2/transaction.c:525
 __ext4_journal_start_sb+0x159/0x310 fs/ext4/ext4_jbd2.c:105
 __ext4_journal_start fs/ext4/ext4_jbd2.h:326 [inline]
 ext4_dirty_inode+0x58/0xa0 fs/ext4/inode.c:5916
 __mark_inode_dirty+0x72/0x6c0 fs/fs-writeback.c:2399
 generic_update_time fs/inode.c:1782 [inline]
 inode_update_time fs/inode.c:1795 [inline]
 touch_atime+0x1c4/0x2e0 fs/inode.c:1867
 file_accessed include/linux/fs.h:2505 [inline]
 iterate_dir+0x36d/0x3c0 fs/readdir.c:70
 __do_sys_getdents64 fs/readdir.c:369 [inline]
 __se_sys_getdents64+0x8e/0x1a0 fs/readdir.c:354
 __x64_sys_getdents64+0x3f/0x50 fs/readdir.c:354
 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 0xffff8881032dd078 of 8 bytes by task 1402 on cpu 0:
 __jbd2_journal_drop_transaction+0x1f0/0x2f0 fs/jbd2/checkpoint.c:803
 __jbd2_journal_remove_checkpoint+0x2d5/0x3a0 fs/jbd2/checkpoint.c:734
 jbd2_journal_commit_transaction+0x23f1/0x3460 fs/jbd2/commit.c:1019
 kjournald2+0x263/0x480 fs/jbd2/journal.c:213
 kthread+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

value changed: 0x0000000000000000 -> 0xffff88815170e300

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1402 Comm: jbd2/sda1-8 Not tainted 5.16.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (47):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/21 10:42 upstream 6e0567b73052 a938f0b8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/12/17 15:58 upstream 6441998e2e37 44068e19 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/12/16 02:36 upstream 2b14864acbaa 572bcb40 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/12/13 23:25 upstream 2585cf9dfaad 0304899b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/12/10 21:59 upstream c741e49150db fc17c959 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/12/10 07:52 upstream ded746bfc943 4d4ce9bc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/12/09 15:17 upstream 2a987e65025e b54aa474 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/12/08 22:08 upstream 2a987e65025e a4a2a501 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/12/07 09:28 upstream f80ef9e49fdf 0230ba3e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/12/06 11:04 upstream 0fcfb00b28c0 579a8754 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/12/05 23:27 upstream 944207047ca4 a617004c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/12/02 08:50 upstream 58e1100fdc59 61f86278 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/12/01 15:20 upstream 58e1100fdc59 5fa3eacc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/30 08:28 upstream d58071a8a76d d0830353 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/27 16:00 upstream c5c17547b778 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/26 20:39 upstream a4849f6000e2 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/25 16:04 upstream 5f53fa508db0 545ab074 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/21 13:35 upstream 923dcc5eb0c1 4eb20a4e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/20 23:04 upstream 61564e7b3abc 4eb20a4e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/20 04:20 upstream a90af8f15bdc 4eb20a4e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/19 03:03 upstream 6fdf886424cf 31a30fc0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/17 12:36 upstream 8ab774587903 cafff8b6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/16 13:11 upstream 8ab774587903 600426bd .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/15 19:36 upstream 8ab774587903 75b04091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/14 05:53 upstream a9b9669d9822 75b04091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/11 13:32 upstream debe436e77c7 75b04091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/10 23:35 upstream 89d714ab6043 75b04091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/10 14:10 upstream cb690f5238d7 75b04091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/10 10:24 upstream cb690f5238d7 55fa030c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/09 12:15 upstream e851dfae4371 8ab17e57 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/08 17:48 upstream 6b75d88fa81b d29682f1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/07 05:21 upstream 512b7931ad05 4c1be0be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/06 01:27 upstream fe91c4725aee 4c1be0be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/04 23:14 upstream 7ddb58cb0eca 4c1be0be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/02 14:02 upstream bfc484fe6abb 098b5d53 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/11/01 20:51 upstream 8bb7eca972ad 098b5d53 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/10/31 13:31 upstream 180eca540ae0 098b5d53 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/10/31 02:26 upstream 119c85055d86 098b5d53 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/10/30 20:39 upstream a379fbbcb88b 098b5d53 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/10/29 14:12 upstream f25a5481af12 2353a3ec .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/10/27 21:36 upstream d25f27432f80 be531bb4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/10/26 01:55 upstream 87066fdd2e30 c1132b49 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/10/25 05:38 upstream 6c62666d8879 4f0000ee .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/10/23 13:46 upstream 9c0c4d24ac00 282f03fb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/10/22 00:55 upstream 2f111a6fd5b5 55f90bc6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/10/19 20:29 upstream d9abdee5fd5a 466b7db1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
2021/10/16 23:39 upstream 304040fb4909 0c5d9412 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __jbd2_journal_drop_transaction / start_this_handle
* Struck through repros no longer work on HEAD.