syzbot


KASAN: null-ptr-deref Read in txBegin

Status: upstream: reported syz repro on 2023/02/18 19:59
Subsystems: jfs (incorrect?)
Reported-by: syzbot+f1faa20eec55e0c8644c@syzkaller.appspotmail.com
First crash: 35d, last: 1d12h

Cause bisection: failed (error log, bisect log)
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: unable to handle kernel paging request in txBegin syz 1 1d08h 1d08h 0/3 upstream: reported syz repro on 2023/03/21 08:56
linux-4.14 general protection fault in txBegin jfs 1 81d 81d 0/1 upstream: reported on 2022/12/30 21:46
linux-5.15 BUG: unable to handle kernel paging request in txBegin C 1 1d07h 1d07h 0/3 upstream: reported C repro on 2023/03/21 10:23
Last patch testing requests:
Created Duration User Patch Repo Result
2023/03/21 17:14 20m mirimmad17@gmail.com patch upstream report log
2023/03/21 16:28 22m mirimmad17@gmail.com patch upstream report log
2023/03/22 10:40 mirimmad17@gmail.com patch upstream pending

Sample crash report:
==================================================================
BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:72 [inline]
BUG: KASAN: null-ptr-deref in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
BUG: KASAN: null-ptr-deref in txBegin+0x131/0x6c0 fs/jfs/jfs_txnmgr.c:366
Read of size 8 at addr 0000000000000040 by task syz-executor.0/5098

CPU: 0 PID: 5098 Comm: syz-executor.0 Not tainted 6.3.0-rc3-syzkaller-00005-g7d31677bb7b1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 print_report+0xe6/0x540 mm/kasan/report.c:433
 kasan_report+0x176/0x1b0 mm/kasan/report.c:536
 kasan_check_range+0x283/0x290 mm/kasan/generic.c:187
 instrument_atomic_read include/linux/instrumented.h:72 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 txBegin+0x131/0x6c0 fs/jfs/jfs_txnmgr.c:366
 jfs_link+0x1ac/0x5e0 fs/jfs/namei.c:802
 vfs_link+0x4ed/0x680 fs/namei.c:4522
 do_linkat+0x5cc/0x9e0 fs/namei.c:4593
 __do_sys_linkat fs/namei.c:4621 [inline]
 __se_sys_linkat fs/namei.c:4618 [inline]
 __x64_sys_linkat+0xdd/0xf0 fs/namei.c:4618
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f4899e8c0f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f489acb4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000109
RAX: ffffffffffffffda RBX: 00007f4899fabf80 RCX: 00007f4899e8c0f9
RDX: 0000000000000004 RSI: 0000000020000040 RDI: 0000000000000004
RBP: 00007f4899ee7b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020000080 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe81a5663f R14: 00007f489acb4300 R15: 0000000000022000
 </TASK>
==================================================================

Crashes (9):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-fs 2023/03/21 05:22 upstream 7d31677bb7b1 7939252e .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] KASAN: null-ptr-deref Read in txBegin
ci2-upstream-fs 2023/02/14 21:21 upstream 82eac0c830b7 e62ba3c1 .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] KASAN: null-ptr-deref Read in txBegin
ci-upstream-gce-arm64 2023/03/21 01:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] BUG: unable to handle kernel paging request in txBegin
ci-upstream-gce-arm64 2023/02/15 00:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 1d6b4af7 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] BUG: unable to handle kernel NULL pointer dereference in txBegin
ci2-upstream-fs 2023/03/04 08:30 upstream 0a3f9a6b0265 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] KASAN: null-ptr-deref Read in txBegin
ci2-upstream-fs 2023/02/14 19:56 upstream 82eac0c830b7 e62ba3c1 .config console log report info [disk image] [vmlinux] [kernel image] KASAN: null-ptr-deref Read in txBegin
ci-upstream-linux-next-kasan-gce-root 2023/03/04 07:02 linux-next 1acf39ef8f14 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] KASAN: null-ptr-deref Read in txBegin
ci-upstream-gce-arm64 2023/03/21 00:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] BUG: unable to handle kernel paging request in txBegin
ci-upstream-gce-arm64 2023/02/26 22:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] BUG: unable to handle kernel paging request in txBegin
* Struck through repros no longer work on HEAD.