syzbot


KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time (3)

Status: auto-closed as invalid on 2021/09/18 02:16
Subsystems: ext4
[Documentation on labels]
First crash: 1068d, last: 984d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time ext4 9 1201d 1234d 0/26 auto-closed as invalid on 2021/02/13 03:24
upstream KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time (4) ext4 3 925d 945d 0/26 auto-closed as invalid on 2021/11/16 07:48
upstream KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time (2) ext4 2 1114d 1137d 0/26 auto-closed as invalid on 2021/05/17 11:36

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time

write to 0xffff88812d8d56f0 of 8 bytes by task 1767 on cpu 1:
 __ext4_unlink+0x310/0x4c0 fs/ext4/namei.c:3368
 ext4_unlink+0x1eb/0x340 fs/ext4/namei.c:3403
 vfs_unlink+0x24a/0x400 fs/namei.c:4035
 do_unlinkat+0x238/0x4f0 fs/namei.c:4102
 __do_sys_unlink fs/namei.c:4149 [inline]
 __se_sys_unlink fs/namei.c:4147 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:4147
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812d8d56f0 of 8 bytes by task 3969 on cpu 0:
 ext4_encode_extra_time fs/ext4/ext4.h:896 [inline]
 __ext4_update_other_inode_time+0x18b/0x5c0 fs/ext4/inode.c:4974
 ext4_update_other_inodes_time fs/ext4/inode.c:5006 [inline]
 ext4_do_update_inode fs/ext4/inode.c:5135 [inline]
 ext4_mark_iloc_dirty+0x12b6/0x1750 fs/ext4/inode.c:5724
 ext4_xattr_set_handle+0xf6e/0x1110 fs/ext4/xattr.c:2395
 ext4_initxattrs+0x66/0xb0 fs/ext4/xattr_security.c:44
 security_inode_init_security+0x1a9/0x260 security/security.c:1099
 ext4_init_security+0x30/0x40 fs/ext4/xattr_security.c:58
 __ext4_new_inode+0x29a1/0x2f70 fs/ext4/ialloc.c:1320
 ext4_symlink+0x2c3/0x700 fs/ext4/namei.c:3465
 vfs_symlink+0x23a/0x300 fs/namei.c:4182
 do_symlinkat+0xeb/0x280 fs/namei.c:4212
 __do_sys_symlink fs/namei.c:4233 [inline]
 __se_sys_symlink fs/namei.c:4231 [inline]
 __x64_sys_symlink+0x32/0x40 fs/namei.c:4231
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000363960b0 -> 0x000000003b0221b8

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

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/14 02:12 upstream dfa377c35d70 2489ab88 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time
2021/08/11 03:54 upstream 9e723c5380c6 6972b106 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time
2021/08/01 07:14 upstream f3438b4c4e69 6c236867 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time
2021/07/31 08:43 upstream c7d102232649 6c236867 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time
2021/07/30 06:21 upstream 764a5bc89b12 c585c7b0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time
2021/07/24 05:06 upstream f0fddcec6b62 bc5f1d88 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time
2021/07/17 12:07 upstream d980cc0620ae f115ae98 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time
2021/06/30 17:48 upstream 007b350a5875 84fd4c77 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time
2021/06/29 02:23 upstream 122fa8c58831 9d2ab5df .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time
2021/06/16 12:49 upstream 94f0b2d4a1d0 c06f97ad .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time
2021/06/12 12:42 upstream ad347abe4a98 1ba81399 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time
2021/06/03 22:29 upstream f88cd3fb9df2 0740de69 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time
2021/05/22 19:51 upstream 23d729263037 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / __ext4_update_other_inode_time
* Struck through repros no longer work on HEAD.