==================================================================
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 set_buffer_uptodate include/linux/buffer_head.h:149 [inline]
BUG: KASAN: null-ptr-deref in do_journal_end+0x1412/0x4f10 fs/reiserfs/journal.c:4080
Read of size 8 at addr 0000000000000000 by task syz-executor.2/5809
CPU: 1 PID: 5809 Comm: syz-executor.2 Not tainted 6.7.0-rc5-syzkaller-00134-g3f7168591ebf #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
kasan_report+0xda/0x110 mm/kasan/report.c:588
check_region_inline mm/kasan/generic.c:181 [inline]
kasan_check_range+0xef/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]
set_buffer_uptodate include/linux/buffer_head.h:149 [inline]
do_journal_end+0x1412/0x4f10 fs/reiserfs/journal.c:4080
reiserfs_sync_fs+0x10e/0x140 fs/reiserfs/super.c:78
sync_fs_one_sb fs/sync.c:84 [inline]
sync_fs_one_sb+0x10c/0x150 fs/sync.c:80
iterate_supers+0xfb/0x230 fs/super.c:971
ksys_sync+0x9b/0x150 fs/sync.c:103
__do_sys_sync+0xe/0x20 fs/sync.c:113
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fba3547cba9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fba362460c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007fba3559bf80 RCX: 00007fba3547cba9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fba354c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fba3559bf80 R15: 00007ffc2edcba58
==================================================================
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 5809 Comm: syz-executor.2 Tainted: G B 6.7.0-rc5-syzkaller-00134-g3f7168591ebf #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:206 [inline]
RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:238 [inline]
RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline]
RIP: 0010:set_buffer_uptodate include/linux/buffer_head.h:149 [inline]
RIP: 0010:do_journal_end+0x1423/0x4f10 fs/reiserfs/journal.c:4080
Code: ff be 08 00 00 00 48 89 c3 48 89 c7 48 89 84 24 80 00 00 00 e8 1e 50 b2 ff 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 d2 37 00 00 4c 8b bc 24 80 00 00 00 31 ff 49 8b
RSP: 0018:ffffc90003167bb0 EFLAGS: 00010256
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000b4c7000
RDX: 0000000000000000 RSI: ffffffff81de1c77 RDI: 0000000000000007
RBP: ffff88801b628878 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: fffffffffffd2048 R12: 000000000000001e
R13: 0000000000000001 R14: ffffc90003167da0 R15: ffffc90014dd3000
FS: 00007fba362466c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200bb030 CR3: 000000007f4de000 CR4: 0000000000350ef0
Call Trace:
reiserfs_sync_fs+0x10e/0x140 fs/reiserfs/super.c:78
sync_fs_one_sb fs/sync.c:84 [inline]
sync_fs_one_sb+0x10c/0x150 fs/sync.c:80
iterate_supers+0xfb/0x230 fs/super.c:971
ksys_sync+0x9b/0x150 fs/sync.c:103
__do_sys_sync+0xe/0x20 fs/sync.c:113
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fba3547cba9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fba362460c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007fba3559bf80 RCX: 00007fba3547cba9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fba354c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fba3559bf80 R15: 00007ffc2edcba58
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:206 [inline]
RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:238 [inline]
RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline]
RIP: 0010:set_buffer_uptodate include/linux/buffer_head.h:149 [inline]
RIP: 0010:do_journal_end+0x1423/0x4f10 fs/reiserfs/journal.c:4080
Code: ff be 08 00 00 00 48 89 c3 48 89 c7 48 89 84 24 80 00 00 00 e8 1e 50 b2 ff 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 d2 37 00 00 4c 8b bc 24 80 00 00 00 31 ff 49 8b
RSP: 0018:ffffc90003167bb0 EFLAGS: 00010256
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000b4c7000
RDX: 0000000000000000 RSI: ffffffff81de1c77 RDI: 0000000000000007
RBP: ffff88801b628878 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: fffffffffffd2048 R12: 000000000000001e
R13: 0000000000000001 R14: ffffc90003167da0 R15: ffffc90014dd3000
FS: 00007fba362466c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020055030 CR3: 000000007f4de000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess), 1 bytes skipped:
0: be 08 00 00 00 mov $0x8,%esi
5: 48 89 c3 mov %rax,%rbx
8: 48 89 c7 mov %rax,%rdi
b: 48 89 84 24 80 00 00 mov %rax,0x80(%rsp)
12: 00
13: e8 1e 50 b2 ff call 0xffb25036
18: 48 89 da mov %rbx,%rdx
1b: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
22: fc ff df
25: 48 c1 ea 03 shr $0x3,%rdx
* 29: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2d: 0f 85 d2 37 00 00 jne 0x3805
33: 4c 8b bc 24 80 00 00 mov 0x80(%rsp),%r15
3a: 00
3b: 31 ff xor %edi,%edi
3d: 49 rex.WB
3e: 8b .byte 0x8b