syzbot


KASAN: null-ptr-deref Read in do_journal_end (2)
Status: moderation: reported on 2022/03/23 20:54
Reported-by: syzbot+92af49b0f6845b22c64f@syzkaller.appspotmail.com
First crash: 68d, last: 41d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: null-ptr-deref Read in do_journal_end 1 215d 211d 0/22 auto-closed as invalid on 2022/02/20 18:03

Sample crash report:
==================================================================
BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:71 [inline]
BUG: KASAN: null-ptr-deref in test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline]
BUG: KASAN: null-ptr-deref in set_buffer_uptodate include/linux/buffer_head.h:120 [inline]
BUG: KASAN: null-ptr-deref in do_journal_end+0x135f/0x4b00 fs/reiserfs/journal.c:4080
Read of size 8 at addr 0000000000000000 by task syz-executor.0/12113

CPU: 0 PID: 12113 Comm: syz-executor.0 Not tainted 5.18.0-rc2-syzkaller-00275-g59250f8a7f3a #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 print_report mm/kasan/report.c:432 [inline]
 kasan_report.cold+0x61/0x1c6 mm/kasan/report.c:491
 check_region_inline mm/kasan/generic.c:183 [inline]
 kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189
 instrument_atomic_read include/linux/instrumented.h:71 [inline]
 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline]
 set_buffer_uptodate include/linux/buffer_head.h:120 [inline]
 do_journal_end+0x135f/0x4b00 fs/reiserfs/journal.c:4080
 reiserfs_sync_fs+0xf8/0x120 fs/reiserfs/super.c:78
 sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
 sync_filesystem+0x8b/0xc0 fs/sync.c:43
 generic_shutdown_super+0x70/0x400 fs/super.c:445
 kill_block_super+0x97/0xf0 fs/super.c:1394
 deactivate_locked_super+0x94/0x160 fs/super.c:332
 deactivate_super+0xad/0xd0 fs/super.c:363
 cleanup_mnt+0x3a2/0x540 fs/namespace.c:1186
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:169 [inline]
 exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:201
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:294
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f01ccc8a557
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 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:00007ffcb79bdbe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f01ccc8a557
RDX: 00007ffcb79bdcbb RSI: 000000000000000a RDI: 00007ffcb79bdcb0
RBP: 00007ffcb79bdcb0 R08: 00000000ffffffff R09: 00007ffcb79bda80
R10: 00005555572278b3 R11: 0000000000000246 R12: 00007f01ccce21f8
R13: 00007ffcb79bed70 R14: 0000555557227810 R15: 00007ffcb79bedb0
 </TASK>
==================================================================

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu-upstream 2022/04/16 01:20 upstream 59250f8a7f3a 8bcc32a6 .config log report info KASAN: null-ptr-deref Read in do_journal_end
ci-upstream-kasan-gce-selinux-root 2022/04/01 14:12 upstream e8b767f5e040 20955a24 .config log report info KASAN: null-ptr-deref Read in do_journal_end
ci-upstream-kasan-gce-selinux-root 2022/03/19 20:50 upstream 97e9c8eb4bb1 e2d91b1d .config log report info KASAN: null-ptr-deref Read in do_journal_end