syzbot


kernel BUG in iput

Status: fixed on 2022/03/29 10:01
Reported-by: syzbot+2cfd2a4fc18e40303fb2@syzkaller.appspotmail.com
Fix commit: 9eeaa2d7d58a exfat: avoid incorrectly releasing for root inode
First crash: 799d, last: 799d
Cause bisection: failed (error log, bisect log)
  
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG in iput C error 42 604d 1091d 0/1 upstream: reported C repro on 2021/06/01 01:19
linux-4.19 kernel BUG at fs/inode.c:LINE! (2) C done 5 1126d 1265d 1/1 fixed on 2021/05/29 15:40
linux-4.19 kernel BUG at fs/inode.c:LINE! syz done 2 1364d 1393d 1/1 fixed on 2020/10/01 20:29
linux-4.14 kernel BUG at fs/inode.c:LINE! 1 1478d 1478d 0/1 auto-closed as invalid on 2020/09/07 09:12
android-54 kernel BUG at fs/inode.c:LINE! C 5 1360d 1369d 0/2 auto-obsoleted due to no activity on 2023/04/15 08:56
upstream kernel BUG at fs/inode.c:LINE! autofs C done 2 1989d 1988d 12/26 fixed on 2019/04/12 21:13
upstream kernel BUG at fs/inode.c:LINE! (2) fs C done unreliable 322 20d 1368d 26/26 fixed on 2024/05/21 07:00
Last patch testing requests (1)
Created Duration User Patch Repo Result
2022/03/21 16:17 12m tadeusz.struk@linaro.org patch https://android.googlesource.com/kernel/common android12-5.10 OK

Sample crash report:
RSP: 002b:00007fffb6f086d8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fffb6f08730 RCX: 00007fc1f62f16aa
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fffb6f086f0
RBP: 00007fffb6f086f0 R08: 00007fffb6f08730 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000020000338
R13: 0000000000000004 R14: 0000000000000005 R15: 000000000000000d
exFAT-fs (loop0): failed to get the root dentry
------------[ cut here ]------------
kernel BUG at fs/inode.c:1672!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 675 Comm: syz-executor332 Not tainted 5.10.106-syzkaller-00514-g5287773dba0d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:iput+0x7d1/0x7e0 fs/inode.c:1672
Code: f1 ff e9 f0 fb ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c cb fe ff ff 4c 89 ff e8 d9 33 f1 ff e9 be fe ff ff e8 5f 32 b7 ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 48 89 e5 41 57 41
RSP: 0018:ffffc90000ff79f0 EFLAGS: 00010293
RAX: ffffffff81b5bc21 RBX: 0000000000000040 RCX: ffff88810b3b13c0
RDX: 0000000000000000 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffffc90000ff7a50 R08: ffffffff81b5b4b1 R09: ffffed103ee2a5d8
R10: ffffed103ee2a5d8 R11: 0000000000000000 R12: ffff88811dd9fa90
R13: dffffc0000000000 R14: ffff88811dd9fa90 R15: 00000000fffffff4
FS:  00005555568f3300(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc1f62c4e80 CR3: 000000010ca45000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 exfat_fill_super+0x1fe1/0x2a20 fs/exfat/super.c:699
 get_tree_bdev+0x41d/0x640 fs/super.c:1344
 exfat_get_tree+0x1c/0x20 fs/exfat/super.c:717
 vfs_get_tree+0x89/0x270 fs/super.c:1549
 do_new_mount fs/namespace.c:2899 [inline]
 path_mount+0x1975/0x2ab0 fs/namespace.c:3229
 do_mount fs/namespace.c:3242 [inline]
 __do_sys_mount fs/namespace.c:3450 [inline]
 __se_sys_mount+0x2f7/0x3b0 fs/namespace.c:3427
 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3427
 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fc1f62f16aa
Code: 48 c7 c2 c0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 a8 00 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffb6f086d8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fffb6f08730 RCX: 00007fc1f62f16aa
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fffb6f086f0
RBP: 00007fffb6f086f0 R08: 00007fffb6f08730 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000020000338
R13: 0000000000000004 R14: 0000000000000005 R15: 000000000000000d
Modules linked in:
---[ end trace b5370d0babd45bb4 ]---
RIP: 0010:iput+0x7d1/0x7e0 fs/inode.c:1672
Code: f1 ff e9 f0 fb ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c cb fe ff ff 4c 89 ff e8 d9 33 f1 ff e9 be fe ff ff e8 5f 32 b7 ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 48 89 e5 41 57 41
RSP: 0018:ffffc90000ff79f0 EFLAGS: 00010293
RAX: ffffffff81b5bc21 RBX: 0000000000000040 RCX: ffff88810b3b13c0
RDX: 0000000000000000 RSI: 0000000000000040 RDI: 0000000000000000
RBP: ffffc90000ff7a50 R08: ffffffff81b5b4b1 R09: ffffed103ee2a5d8
R10: ffffed103ee2a5d8 R11: 0000000000000000 R12: ffff88811dd9fa90
R13: dffffc0000000000 R14: ffff88811dd9fa90 R15: 00000000fffffff4
FS:  00005555568f3300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc1f63200c0 CR3: 000000010ca45000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/20 08:57 android12-5.10-lts 5287773dba0d e2d91b1d .config console log report syz C ci2-android-5-10 kernel BUG in iput
2022/03/20 07:14 android12-5.10-lts 5287773dba0d e2d91b1d .config console log report info ci2-android-5-10 kernel BUG in iput
* Struck through repros no longer work on HEAD.