================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:68 [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+0x186/0xa10 fs/jfs/jfs_txnmgr.c:366 Read of size 8 at addr 0000000000000040 by task syz-executor840/5004 CPU: 1 PID: 5004 Comm: syz-executor840 Not tainted 6.4.0-rc5-syzkaller-00016-ga4d7d7011219 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_report mm/kasan/report.c:465 [inline] kasan_report+0xec/0x130 mm/kasan/report.c:572 check_region_inline mm/kasan/generic.c:181 [inline] kasan_check_range+0x141/0x190 mm/kasan/generic.c:187 instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] txBegin+0x186/0xa10 fs/jfs/jfs_txnmgr.c:366 jfs_link+0x201/0x520 fs/jfs/namei.c:802 vfs_link+0x5c7/0xa90 fs/namei.c:4599 do_linkat+0x448/0x5e0 fs/namei.c:4670 __do_sys_linkat fs/namei.c:4698 [inline] __se_sys_linkat fs/namei.c:4695 [inline] __x64_sys_linkat+0xf4/0x130 fs/namei.c:4695 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f6584016259 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 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:00007f6583fc22f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000109 RAX: ffffffffffffffda RBX: 00007f65840a07a0 RCX: 00007f6584016259 RDX: 0000000000000003 RSI: 0000000020000040 RDI: 0000000000000003 RBP: 00007f658406d024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000080 R11: 0000000000000246 R12: 0030656c69662f2e R13: 0031656c69662f2e R14: 2c33363870633d74 R15: 00007f65840a07a8 ==================================================================