syzbot


kernel BUG in jfs_destroy_inode

Status: upstream: reported C repro on 2022/09/26 01:02
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+919f232ff79b15f48913@syzkaller.appspotmail.com
First crash: 805d, last: 657d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in jfs_destroy_inode jfs C 3 648d 805d 0/1 upstream: reported C repro on 2022/09/25 22:54

Sample crash report:
ERROR: (device loop3): diRead: i_ino != di_number
ERROR: (device loop0): diRead: i_ino != di_number
audit: type=1804 audit(1675061015.338:2): pid=8134 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor854" name="/root/syzkaller.b0rUcs/0/file0/bus" dev="loop2" ino=7 res=1
ERROR: (device loop1): diRead: i_ino != di_number
------------[ cut here ]------------
kernel BUG at fs/jfs/super.c:138!
ERROR: (device loop5): diRead: i_ino != di_number

ERROR: (device loop4): diRead: i_ino != di_number

invalid opcode: 0000 [#1] PREEMPT SMP KASAN
audit: type=1800 audit(1675061015.338:3): pid=8134 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor854" name="bus" dev="loop2" ino=7 res=0
CPU: 0 PID: 8097 Comm: syz-executor854 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:jfs_destroy_inode+0x18d/0x1e0 fs/jfs/super.c:138
Code: 4c 89 e2 48 c1 ea 03 0f b6 04 02 4c 89 e2 83 e2 07 38 d0 7f 04 84 c0 75 37 c6 83 83 fc ff ff ff e9 16 ff ff ff e8 93 12 f0 fe <0f> 0b 4c 89 e7 e8 29 ed 25 ff e9 e8 fe ff ff 48 89 ef e8 6c ef 25
RSP: 0018:ffff888094c37bf0 EFLAGS: 00010293
RAX: ffff8880b50aa080 RBX: ffff88808df6d968 RCX: ffffffff81a93820
RDX: 0000000000000000 RSI: ffffffff827272dd RDI: ffff88808df6d968
RBP: ffff88808df6d630 R08: 00000000be4dce73 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff888094c37cd0 R14: ffff88808df6db08 R15: ffff88808df6d968
FS:  00005555570a1300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557d077cbd90 CR3: 00000000ab638000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 destroy_inode+0xb9/0x110 fs/inode.c:268
 dispose_list+0x124/0x1f0 fs/inode.c:594
 evict_inodes+0x341/0x430 fs/inode.c:644
 generic_shutdown_super+0xb3/0x370 fs/super.c:448
 kill_block_super+0x97/0xf0 fs/super.c:1185
 deactivate_locked_super+0x94/0x160 fs/super.c:329
 deactivate_super+0x174/0x1a0 fs/super.c:360
 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f1c8fd8ea87
Code: ff d0 48 89 c7 b8 3c 00 00 00 0f 05 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcb38d7da8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f1c8fd8ea87
RDX: 00007ffcb38d7e69 RSI: 000000000000000a RDI: 00007ffcb38d7e60
RBP: 00007ffcb38d7e60 R08: 00000000ffffffff R09: 00007ffcb38d7c40
R10: 00005555570a2683 R11: 0000000000000202 R12: 00007ffcb38d8f20
R13: 00005555570a25f0 R14: 00007ffcb38d7dd0 R15: 00007ffcb38d8f40
Modules linked in:
---[ end trace 0b85d53b1cc43496 ]---
RIP: 0010:jfs_destroy_inode+0x18d/0x1e0 fs/jfs/super.c:138
Code: 4c 89 e2 48 c1 ea 03 0f b6 04 02 4c 89 e2 83 e2 07 38 d0 7f 04 84 c0 75 37 c6 83 83 fc ff ff ff e9 16 ff ff ff e8 93 12 f0 fe <0f> 0b 4c 89 e7 e8 29 ed 25 ff e9 e8 fe ff ff 48 89 ef e8 6c ef 25
RSP: 0018:ffff888094c37bf0 EFLAGS: 00010293
RAX: ffff8880b50aa080 RBX: ffff88808df6d968 RCX: ffffffff81a93820
RDX: 0000000000000000 RSI: ffffffff827272dd RDI: ffff88808df6d968
RBP: ffff88808df6d630 R08: 00000000be4dce73 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff888094c37cd0 R14: ffff88808df6db08 R15: ffff88808df6d968
FS:  00005555570a1300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555570aa628 CR3: 00000000ab638000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/30 06:45 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2022/10/03 07:21 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2022/09/26 01:01 linux-4.19.y 3f8a27f9e27b 0042f2b4 .config console log report syz C ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2023/02/21 01:52 linux-4.19.y 3f8a27f9e27b 2414209c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2023/01/30 06:20 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2023/01/10 16:10 linux-4.19.y 3f8a27f9e27b 48bc529a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2022/12/17 12:36 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2022/12/05 07:54 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2022/12/02 00:09 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2022/11/12 06:15 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2022/10/31 21:15 linux-4.19.y 3f8a27f9e27b 2a71366b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2022/10/29 06:30 linux-4.19.y 3f8a27f9e27b 899d812a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2022/10/27 00:47 linux-4.19.y 3f8a27f9e27b 86777b7f .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2022/10/04 03:44 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
2022/10/02 15:16 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in jfs_destroy_inode
* Struck through repros no longer work on HEAD.