syzbot


kernel BUG in jfs_destroy_inode

Status: upstream: reported C repro on 2022/09/25 22:54
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+18028a7fa59ecdcf4eeb@syzkaller.appspotmail.com
First crash: 638d, last: 480d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG in jfs_destroy_inode jfs C 15 490d 638d 0/1 upstream: reported C repro on 2022/09/26 01:02
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2023/03/02 14:53 29m bisect fix linux-4.14.y job log (0) log
2023/01/21 12:32 23m bisect fix linux-4.14.y job log (0) log
2022/11/04 16:53 22m bisect fix linux-4.14.y job log (0) log

Sample crash report:
audit: type=1804 audit(1675062885.009:2): pid=8042 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor247" name="/root/syzkaller.2ebktB/0/file0/bus" dev="loop3" ino=7 res=1
ERROR: (device loop2): diRead: i_ino != di_number
------------[ cut here ]------------
kernel BUG at fs/jfs/super.c:138!
audit: type=1800 audit(1675062885.039:3): pid=8042 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor247" name="bus" dev="loop3" ino=7 res=0
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 8006 Comm: syz-executor247 Not tainted 4.14.304-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
task: ffff888095512080 task.stack: ffff8880a2f98000
RIP: 0010:jfs_destroy_inode+0x16f/0x1c0 fs/jfs/super.c:138
RSP: 0018:ffff8880a2f9fc60 EFLAGS: 00010297
RAX: ffff888095512080 RBX: ffff88808dfe87a8 RCX: 1ffff11012aa2526
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88808dfe87a8
RBP: ffff88808dfe8470 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: ffff888095512080 R12: ffff8880a2f9fd40
R13: ffff88808dfe8950 R14: ffffed10145f3fa8 R15: ffff88808dfe87a8
FS:  00005555556d9300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055984c3b9228 CR3: 000000009a22d000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 destroy_inode+0xb9/0x110 fs/inode.c:266
 dispose_list+0x109/0x1e0 fs/inode.c:589
 evict_inodes+0x2cd/0x3a0 fs/inode.c:639
 generic_shutdown_super+0xb3/0x370 fs/super.c:438
 kill_block_super+0x95/0xe0 fs/super.c:1161
 deactivate_locked_super+0x6c/0xd0 fs/super.c:319
 deactivate_super+0x7f/0xa0 fs/super.c:350
 cleanup_mnt+0x186/0x2c0 fs/namespace.c:1183
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:191 [inline]
 exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
 do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f0286443aa7
RSP: 002b:00007fff15a88cf8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f0286443aa7
ERROR: (device loop1): diRead: i_ino != di_number

RDX: 00007fff15a88db9 RSI: 000000000000000a RDI: 00007fff15a88db0
RBP: 00007fff15a88db0 R08: 00000000ffffffff R09: 00007fff15a88b90
R10: 00005555556da683 R11: 0000000000000202 R12: 00007fff15a89e70
R13: 00005555556da5f0 R14: 00007fff15a88d20 R15: 00007fff15a89e90
Code: d4 1c ff 4c 89 ef e8 31 73 ec 04 48 8d bb d0 01 00 00 5b 48 c7 c6 50 80 38 82 5d 41 5c 41 5d 41 5e e9 86 
ERROR: (device loop4): diRead: i_ino != di_number

80 0e ff e8 81 d4 1c ff <0f> 0b 4c 89 e7 e8 67 95 46 ff e9 06 ff ff ff 4c 89 e7 e8 0a 98 
ERROR: (device loop5): diRead: i_ino != di_number

RIP: jfs_destroy_inode+0x16f/0x1c0 fs/jfs/super.c:138 RSP: ffff8880a2f9fc60
---[ end trace 7713d16ba7d575e5 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/30 07:16 linux-4.14.y 3949d1610004 9dfcf09c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 kernel BUG in jfs_destroy_inode
2022/10/03 17:41 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 kernel BUG in jfs_destroy_inode
2022/09/25 22:54 linux-4.14.y 4edbf74132a4 0042f2b4 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 kernel BUG in jfs_destroy_inode
* Struck through repros no longer work on HEAD.