syzbot


BUG: unable to handle kernel paging request in do_journal_end

Status: upstream: reported C repro on 2023/08/21 09:50
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+c8acbc5a3fb5c52d587f@syzkaller.appspotmail.com
First crash: 254d, last: 3h20m
Bug presence (1)
Date Name Commit Repro Result
2023/08/29 upstream (ToT) 1c59d383390f C [report] BUG: unable to handle kernel paging request in do_journal_end
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: null-ptr-deref Read in do_journal_end (2) reiserfs C error done 40699 114d 640d 0/26 auto-obsoleted due to no activity on 2024/03/18 13:22
linux-5.15 KASAN: null-ptr-deref Read in do_journal_end origin:upstream C error 6 197d 391d 0/3 upstream: reported C repro on 2023/04/06 14:35
linux-4.19 general protection fault in do_journal_end reiserfs C error 3 469d 518d 0/1 upstream: reported C repro on 2022/11/30 04:17
linux-4.14 general protection fault in do_journal_end reiserfs C 2 445d 482d 0/1 upstream: reported C repro on 2023/01/05 12:44
upstream KASAN: null-ptr-deref Read in do_journal_end reiserfs 1 920d 916d 0/26 auto-closed as invalid on 2022/02/20 18:03
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2024/05/01 10:59 1h50m bisect fix linux-6.1.y job log (0) log
2024/03/29 21:38 3h34m bisect fix linux-6.1.y job log (0) log
2024/02/28 13:42 1h35m bisect fix linux-6.1.y job log (0) log
2024/01/20 19:08 1h30m bisect fix linux-6.1.y job log (0) log
2023/12/13 22:04 1h26m bisect fix linux-6.1.y job log (0) log
2023/11/13 18:16 2h41m bisect fix linux-6.1.y job log (0) log
2023/10/11 00:28 1h23m bisect fix linux-6.1.y job log (0) log

Sample crash report:
Unable to handle kernel paging request at virtual address dfff800000000000
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
Mem abort info:
  ESR = 0x0000000096000006
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x06: level 2 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000006
  CM = 0, WnR = 0
[dfff800000000000] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4219 Comm: syz-executor369 Not tainted 6.1.46-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : generic_test_bit include/asm-generic/bitops/generic-non-atomic.h:128 [inline]
pc : set_buffer_uptodate include/linux/buffer_head.h:148 [inline]
pc : do_journal_end+0x10cc/0x3c6c fs/reiserfs/journal.c:4081
lr : __getblk include/linux/buffer_head.h:411 [inline]
lr : do_journal_end+0x10c4/0x3c6c fs/reiserfs/journal.c:4078
sp : ffff80001dcd74c0
x29: ffff80001dcd76d0 x28: ffff80001dcd77b8 x27: ffff0000d2ef2678
x26: ffff0000d2ef2678 x25: ffff80001dcd77a8 x24: ffff0000d2ef2018
x23: ffff80001ddd9040 x22: ffff0000d2ef2000 x21: 0000000000000000
x20: ffff0000c0486e00 x19: dfff800000000000 x18: ffff80001dcd6740
x17: ffff8000158ad000 x16: ffff80000825f190 x15: ffff800008ad3590
x14: 1ffff00002b160b0 x13: dfff800000000000 x12: 0000000000000001
x11: ff80800008b327d0 x10: 0000000000000000 x9 : ffff800008b327d0
x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000008 x3 : ffff800008b32550
x2 : 0000000000000001 x1 : 0000000000000003 x0 : 0000000000000000
Call trace:
 __getblk include/linux/buffer_head.h:411 [inline]
 do_journal_end+0x10cc/0x3c6c fs/reiserfs/journal.c:4078
 journal_end_sync+0x164/0x1d0 fs/reiserfs/journal.c:3537
 reiserfs_sync_fs+0xd4/0x150 fs/reiserfs/super.c:78
 sync_filesystem+0xe8/0x218 fs/sync.c:56
 generic_shutdown_super+0x70/0x328 fs/super.c:474
 kill_block_super+0x70/0xdc fs/super.c:1459
 reiserfs_kill_sb+0x134/0x14c fs/reiserfs/super.c:570
 deactivate_locked_super+0xac/0x124 fs/super.c:332
 deactivate_super+0xf0/0x110 fs/super.c:363
 cleanup_mnt+0x394/0x41c fs/namespace.c:1186
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193
 task_work_run+0x240/0x2f0 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
 el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: 52800103 97f5f5b0 d343fc08 aa0003f5 (38736908) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	52800103 	mov	w3, #0x8                   	// #8
   4:	97f5f5b0 	bl	0xffffffffffd7d6c4
   8:	d343fc08 	lsr	x8, x0, #3
   c:	aa0003f5 	mov	x21, x0
* 10:	38736908 	ldrb	w8, [x8, x19] <-- trapping instruction

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/21 09:50 linux-6.1.y 6c44e13dc284 d216d8a0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in do_journal_end
2024/04/01 02:12 linux-6.1.y e5cd595e23c1 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: null-ptr-deref Read in do_journal_end
2023/12/21 12:46 linux-6.1.y 4aa6747d9352 4f9530a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: null-ptr-deref Read in do_journal_end
* Struck through repros no longer work on HEAD.