syzbot


BUG: unable to handle kernel paging request in prepare_for_delete_or_cut

Status: upstream: reported C repro on 2024/04/20 01:57
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+26cc546e8c4db4945f38@syzkaller.appspotmail.com
First crash: 245d, last: 3d07h
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2024/12/03 linux-5.15.y (ToT) 0a51d2d4527b C [report] BUG: unable to handle kernel paging request in prepare_for_delete_or_cut
2024/04/20 upstream (ToT) 13a2e429f644 C [report] BUG: unable to handle kernel paging request in prepare_for_delete_or_cut
2024/12/03 upstream (ToT) cdd30ebb1b9f C Didn't crash
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in prepare_for_delete_or_cut reiserfs C error done 71 330d 714d 0/28 auto-obsoleted due to no activity on 2024/05/03 14:06
linux-6.1 BUG: unable to handle kernel paging request in prepare_for_delete_or_cut origin:upstream missing-backport C error 2 6d10h 294d 0/3 upstream: reported C repro on 2024/03/02 01:50
linux-4.19 general protection fault in prepare_for_delete_or_cut fat reiserfs C error 3 690d 719d 0/1 upstream: reported C repro on 2023/01/01 21:41
linux-4.14 general protection fault in prepare_for_delete_or_cut reiserfs fat C 2 675d 722d 0/1 upstream: reported C repro on 2022/12/30 06:10
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/12/18 04:35 12m retest repro linux-5.15.y report log
2024/10/06 20:39 10m retest repro linux-5.15.y report log
2024/10/06 20:39 10m retest repro linux-5.15.y report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/12/13 18:06 14m fix candidate upstream error job log
2024/05/20 15:19 1m bisect fix linux-5.15.y error job log

Sample crash report:
REISERFS warning: reiserfs-5093 is_leaf: item entry count seems wrong *3.5*[2 1 0(1) DIR], item_len 35, item_location 4029, free_space(entry_count) 2
REISERFS error (device loop0): vs-5150 search_by_key: invalid format found in block 533. Fsck?
Unable to handle kernel paging request at virtual address dfff800000000005
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
[dfff800000000005] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 3961 Comm: syz-executor100 Not tainted 5.15.156-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 80401005 (Nzcv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--)
pc : reiserfs_node_data fs/reiserfs/reiserfs.h:2184 [inline]
pc : item_head fs/reiserfs/reiserfs.h:2200 [inline]
pc : tp_item_head fs/reiserfs/reiserfs.h:2226 [inline]
pc : prepare_for_delete_or_cut+0x130/0x1a34 fs/reiserfs/stree.c:1050
lr : tp_item_head fs/reiserfs/reiserfs.h:2226 [inline]
lr : prepare_for_delete_or_cut+0xf0/0x1a34 fs/reiserfs/stree.c:1050
sp : ffff80001cb86e40
x29: ffff80001cb86f80 x28: 1ffff00003970ec8 x27: ffff700003970de0
x26: ffff80001cb87648 x25: ffff80001cb87640 x24: dfff800000000000
x23: dfff800000000000 x22: ffff80001cb876e0 x21: 0000000000000000
x20: 0000000000000028 x19: ffff80001cb87660 x18: 0000000000000000
x17: 0000000000000000 x16: ffff800008cdccb0 x15: 00000000fffffffe
x14: ffff0000c2fe3680 x13: 0000000000ff0100 x12: ffff80001cb86f00
x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000c2fe3680
x8 : 0000000000000005 x7 : 0000000000000001 x6 : 0000000000000000
x5 : ffff80001cb874b0 x4 : ffff80001cb874c0 x3 : ffff80001cb876e0
x2 : ffff80001cb87640 x1 : 0000000000000001 x0 : 0000000000000008
Call trace:
 reiserfs_node_data fs/reiserfs/reiserfs.h:2184 [inline]
 item_head fs/reiserfs/reiserfs.h:2200 [inline]
 tp_item_head fs/reiserfs/reiserfs.h:2226 [inline]
 prepare_for_delete_or_cut+0x130/0x1a34 fs/reiserfs/stree.c:1050
 reiserfs_cut_from_item+0x2ac/0x1c84 fs/reiserfs/stree.c:1682
 reiserfs_do_truncate+0x89c/0x11c8 fs/reiserfs/stree.c:1973
 reiserfs_truncate_file+0x3ac/0x6f0 fs/reiserfs/inode.c:2318
 reiserfs_file_release+0x710/0x884 fs/reiserfs/file.c:109
 __fput+0x30c/0x7f0 fs/file_table.c:280
 ____fput+0x20/0x30 fs/file_table.c:308
 task_work_run+0x130/0x1e4 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
 el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: 35008b48 9100a294 b9800275 d343fe88 (38786908) 
---[ end trace 0607b4a582eb8e7f ]---
----------------
Code disassembly (best guess):
   0:	35008b48 	cbnz	w8, 0x1168
   4:	9100a294 	add	x20, x20, #0x28
   8:	b9800275 	ldrsw	x21, [x19]
   c:	d343fe88 	lsr	x8, x20, #3
* 10:	38786908 	ldrb	w8, [x8, x24] <-- trapping instruction

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/20 01:57 linux-5.15.y c52b9710c83d af24b050 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in prepare_for_delete_or_cut
2024/09/08 13:10 linux-5.15.y 14e468424d3e 9750182a .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan general protection fault in prepare_for_delete_or_cut
2024/11/08 09:58 linux-5.15.y 72244eab0dad 179b040e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in prepare_for_delete_or_cut
2024/09/08 12:07 linux-5.15.y 14e468424d3e 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in prepare_for_delete_or_cut
2024/07/15 02:20 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in prepare_for_delete_or_cut
* Struck through repros no longer work on HEAD.