syzbot


kernel BUG at fs/inode.c:LINE! (2)

Status: fixed on 2021/05/29 15:40
Reported-by: syzbot+8aaca03c6970ef831f3e@syzkaller.appspotmail.com
Fix commit: 006270aa8f9c erofs: add unsupported inode i_format check
First crash: 1443d, last: 1304d
Fix bisection: fixed by (bisect log) :
commit 006270aa8f9c32c8fc723b0b2874b91fd10c1290
Author: Gao Xiang <hsiangkao@redhat.com>
Date: Mon Mar 29 00:36:14 2021 +0000

  erofs: add unsupported inode i_format check

  
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 kernel BUG in iput C error 2 977d 977d 2/2 fixed on 2022/03/29 10:01
linux-4.19 kernel BUG in iput C error 42 782d 1269d 0/1 upstream: reported C repro on 2021/06/01 01:19
linux-4.19 kernel BUG at fs/inode.c:LINE! syz done 2 1542d 1571d 1/1 fixed on 2020/10/01 20:29
linux-4.14 kernel BUG at fs/inode.c:LINE! 1 1656d 1656d 0/1 auto-closed as invalid on 2020/09/07 09:12
android-54 kernel BUG at fs/inode.c:LINE! C 5 1538d 1547d 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 2167d 2166d 12/28 fixed on 2019/04/12 21:13
upstream kernel BUG at fs/inode.c:LINE! (2) fs C done unreliable 322 198d 1546d 25/28 fixed on 2024/05/21 07:00
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2021/05/27 01:54 3h32m bisect fix linux-4.19.y OK (1) job log
2021/04/27 01:25 29m bisect fix linux-4.19.y OK (0) job log log
2021/03/14 05:50 30m bisect fix linux-4.19.y OK (0) job log log
2021/01/24 06:05 23m bisect fix linux-4.19.y OK (0) job log log

Sample crash report:
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffed0dcd790
RBP: 0000000000000006 R08: 00007ffed0dcd7d0 R09: ffffffffffffffff
R10: 0000000000000000 R11: 0000000000000297 R12: 0000000000000005
R13: 00007ffed0dcd790 R14: 0000000000000000 R15: 0000000020000258
------------[ cut here ]------------
kernel BUG at fs/inode.c:1571!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8166 Comm: syz-executor488 Not tainted 4.19.163-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:iput+0x727/0x860 fs/inode.c:1571
Code: b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 84 18 fd ff ff 48 8b 3c 24 e8 93 be ee ff e9 0a fd ff ff e8 c9 95 b8 ff <0f> 0b e8 c2 95 b8 ff 48 89 ef e8 1a f7 ff ff 4c 89 f7 e8 42 9d 69
RSP: 0018:ffff888098cafa80 EFLAGS: 00010293
RAX: ffff8880934ac500 RBX: 0000000000000040 RCX: ffffffff81ac337e
RDX: 0000000000000000 RSI: ffffffff81ac3a47 RDI: 0000000000000007
RBP: ffff88808b0289d8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: ffff8880ab7dbd40
R13: ffff88808b0289d8 R14: 0000000000000000 R15: 00000000fffffff4
FS:  0000000000b3a940(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005562c43f4720 CR3: 000000009a9fc000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 erofs_read_super drivers/staging/erofs/super.c:439 [inline]
 erofs_fill_super+0x1205/0x12cc drivers/staging/erofs/super.c:499
 mount_bdev+0x2fc/0x3b0 fs/super.c:1158
 erofs_mount+0x8c/0xc0 drivers/staging/erofs/super.c:512
 mount_fs+0xa3/0x30c fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2469 [inline]
 do_mount+0x113c/0x2f10 fs/namespace.c:2799
 ksys_mount+0xcf/0x130 fs/namespace.c:3015
 __do_sys_mount fs/namespace.c:3029 [inline]
 __se_sys_mount fs/namespace.c:3026 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3026
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x448cca
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd a0 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da a0 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007ffed0dcd778 EFLAGS: 00000297 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffed0dcd7d0 RCX: 0000000000448cca
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffed0dcd790
RBP: 0000000000000006 R08: 00007ffed0dcd7d0 R09: ffffffffffffffff
R10: 0000000000000000 R11: 0000000000000297 R12: 0000000000000005
R13: 00007ffed0dcd790 R14: 0000000000000000 R15: 0000000020000258
Modules linked in:
---[ end trace fa58874dfeb1611c ]---
RIP: 0010:iput+0x727/0x860 fs/inode.c:1571
Code: b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 84 18 fd ff ff 48 8b 3c 24 e8 93 be ee ff e9 0a fd ff ff e8 c9 95 b8 ff <0f> 0b e8 c2 95 b8 ff 48 89 ef e8 1a f7 ff ff 4c 89 f7 e8 42 9d 69
RSP: 0018:ffff888098cafa80 EFLAGS: 00010293
RAX: ffff8880934ac500 RBX: 0000000000000040 RCX: ffffffff81ac337e
RDX: 0000000000000000 RSI: ffffffff81ac3a47 RDI: 0000000000000007
RBP: ffff88808b0289d8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: ffff8880ab7dbd40
R13: ffff88808b0289d8 R14: 0000000000000000 R15: 00000000fffffff4
FS:  0000000000b3a940(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005562c43f4720 CR3: 000000009a9fc000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/25 06:05 linux-4.19.y 13d2ce42de8c c2c1d1dd .config console log report syz C ci2-linux-4-19
2020/12/17 19:20 linux-4.19.y 13d2ce42de8c 04201c06 .config console log report syz C ci2-linux-4-19
2021/03/27 23:11 linux-4.19.y 78fec1611cbf a8529b82 .config console log report info ci2-linux-4-19 kernel BUG in iput
2021/02/12 05:49 linux-4.19.y 811218eceeaa a5f86b15 .config console log report info ci2-linux-4-19 kernel BUG in iput
2020/12/09 03:26 linux-4.19.y 4abf26854aad 40cc414d .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.