syzbot


BUG: unable to handle kernel paging request in nilfs_btree_insert

Status: upstream: reported C repro on 2024/08/26 10:25
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+5d6d379f958b4cf2bea5@syzkaller.appspotmail.com
First crash: 50d, last: 50d
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2024/08/26 upstream (ToT) 5be63fc19fca C [report] BUG: unable to handle kernel paging request in nilfs_btree_insert
2024/10/15 upstream (ToT) eca631b8fe80 C Failed due to an error; will retry later
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in nilfs_btree_insert nilfs2 C 1 591d 653d 0/1 upstream: reported C repro on 2022/12/31 23:33
upstream general protection fault in nilfs_btree_insert nilfs C error 2 660d 657d 22/28 fixed on 2023/06/08 14:41
upstream general protection fault in nilfs_btree_insert (2) nilfs C inconclusive 1 33d 44d 27/28 upstream: reported C repro on 2024/09/01 20:39
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/10/14 22:57 0m retest repro linux-5.15.y error

Sample crash report:
loop0: detected capacity change from 0 to 2048
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: 4024 Comm: syz-executor191 Not tainted 5.15.165-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : nilfs_btree_get_nonroot_node fs/nilfs2/btree.c:418 [inline]
pc : nilfs_btree_prepare_insert fs/nilfs2/btree.c:1091 [inline]
pc : nilfs_btree_insert+0x8c4/0x1b70 fs/nilfs2/btree.c:1252
lr : nilfs_btree_prepare_insert fs/nilfs2/btree.c:1089 [inline]
lr : nilfs_btree_insert+0x898/0x1b70 fs/nilfs2/btree.c:1252
sp : ffff80001af97180
x29: ffff80001af972e0 x28: dfff800000000000 x27: 0000000000000000
x26: ffff0000cab225b8 x25: ffff0000e182b358 x24: ffff0000e1828158
x23: ffff0000cab22600 x22: 0000000000000028 x21: ffff0000e182b359
x20: 0000000000000002 x19: ffff0000cab22580 x18: 0000000000000000
x17: 0000000000000000 x16: ffff80000824ec14 x15: 00000000ffffffef
x14: 1ffff0000295806a x13: dfff800000000000 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000ca721b40
x8 : 0000000000000005 x7 : ffff800009d14d68 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800008305934
x2 : 0000000000000001 x1 : 0000000000000002 x0 : 0000000000000001
Call trace:
 nilfs_btree_get_nonroot_node fs/nilfs2/btree.c:418 [inline]
 nilfs_btree_prepare_insert fs/nilfs2/btree.c:1091 [inline]
 nilfs_btree_insert+0x8c4/0x1b70 fs/nilfs2/btree.c:1252
 nilfs_bmap_do_insert fs/nilfs2/bmap.c:129 [inline]
 nilfs_bmap_insert+0x1f8/0x35c fs/nilfs2/bmap.c:155
 nilfs_get_block+0x340/0x83c fs/nilfs2/inode.c:101
 __block_write_begin_int+0x3ec/0x1608 fs/buffer.c:2012
 __block_write_begin fs/buffer.c:2062 [inline]
 block_write_begin+0x60/0xdc fs/buffer.c:2122
 nilfs_write_begin+0xb4/0x124 fs/nilfs2/inode.c:263
 generic_perform_write+0x24c/0x520 mm/filemap.c:3785
 __generic_file_write_iter+0x230/0x454 mm/filemap.c:3912
 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3944
 call_write_iter include/linux/fs.h:2172 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x884/0xb44 fs/read_write.c:594
 ksys_write+0x15c/0x26c fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __arm64_sys_write+0x7c/0x90 fs/read_write.c:656
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 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: 97b007d8 f94002e8 9100a116 d343fec8 (387c6908) 
---[ end trace 43fb72f7d9903977 ]---
----------------
Code disassembly (best guess):
   0:	97b007d8 	bl	0xfffffffffec01f60
   4:	f94002e8 	ldr	x8, [x23]
   8:	9100a116 	add	x22, x8, #0x28
   c:	d343fec8 	lsr	x8, x22, #3
* 10:	387c6908 	ldrb	w8, [x8, x28] <-- trapping instruction

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/26 13:10 linux-5.15.y fa93fa65db6e d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in nilfs_btree_insert
2024/08/26 11:49 linux-5.15.y fa93fa65db6e d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in nilfs_btree_insert
2024/08/26 10:24 linux-5.15.y fa93fa65db6e d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in nilfs_btree_insert
* Struck through repros no longer work on HEAD.