syzbot


BUG: unable to handle kernel paging request in ni_write_inode

Status: upstream: reported C repro on 2023/03/10 22:20
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+c6d855cd72c708070dc5@syzkaller.appspotmail.com
First crash: 383d, last: 311d
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2023/05/07 linux-5.15.y (ToT) 8a7f2a5c5aa1 C [report] BUG: unable to handle kernel paging request in ni_write_inode
2023/05/07 upstream (ToT) fc4354c6e5c2 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: unable to handle kernel paging request in ni_write_inode origin:lts-only C inconclusive 206 24d 383d 0/3 upstream: reported C repro on 2023/03/10 21:38
upstream BUG: unable to handle kernel NULL pointer dereference in ni_write_inode ntfs3 C error 596 320d 552d 22/26 fixed on 2023/06/08 14:41
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2024/03/20 20:28 1m fix candidate upstream error job log (0)
2024/01/24 09:46 0m fix candidate upstream error job log (0)
2023/12/23 12:09 1m fix candidate upstream error job log (0)
2023/10/25 05:20 0m fix candidate upstream error job log (0)
2023/09/04 04:42 4m fix candidate upstream error job log (0)
2023/06/22 21:16 1m bisect fix linux-5.15.y error job log (0)

Sample crash report:
 __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:596
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
 el0t_64_sync+0x1a0/0x1a4 <unknown>:584
Unable to handle kernel paging request at virtual address dfff800000000002
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
[dfff800000000002] address between user and kernel address ranges
Internal error: Oops: 96000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4054 Comm: syz-executor362 Not tainted 5.15.99-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : is_rec_inuse fs/ntfs3/ntfs.h:313 [inline]
pc : ni_write_inode+0x178/0xfb4 fs/ntfs3/frecord.c:3192
lr : ni_write_inode+0x144/0xfb4 fs/ntfs3/frecord.c:3186
sp : ffff80001cc571c0
x29: ffff80001cc572c0 x28: 1fffe0001ae6080a x27: ffff0000d7304050
x26: ffff80001cc57240 x25: 0000000000000016 x24: ffff0000dc62eec0
x23: 0000000000000000 x22: dfff800000000000 x21: ffff0000d7304000
x20: ffff0000dc62f0f0 x19: ffff70000398ae44 x18: 0000000000000001
x17: ff808000083386a0 x16: ffff800011a09634 x15: ffff8000083386a0
x14: 1ffff0000293806a x13: ffffffffffffffff x12: 0000000000000000
x11: ff808000095ac0d8 x10: 0000000000000000 x9 : ffff0000dc62eea0
x8 : 0000000000000002 x7 : ffff8000095ac0c8 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000008 x1 : 0000000000000001 x0 : 0000000000000000
Call trace:
 is_rec_inuse fs/ntfs3/ntfs.h:313 [inline]
 ni_write_inode+0x178/0xfb4 fs/ntfs3/frecord.c:3192
 ntfs_evict_inode+0x70/0xc8 fs/ntfs3/inode.c:1775
 evict+0x260/0x68c fs/inode.c:587
 iput_final fs/inode.c:1663 [inline]
 iput+0x8ec/0x9cc fs/inode.c:1689
 ntfs_new_inode+0x98/0x110 fs/ntfs3/fsntfs.c:1689
 ntfs_create_inode+0x3d0/0x2ab0 fs/ntfs3/inode.c:1297
 ntfs_create+0x54/0x74 fs/ntfs3/namei.c:100
 lookup_open fs/namei.c:3334 [inline]
 open_last_lookups fs/namei.c:3404 [inline]
 path_openat+0xea0/0x26cc fs/namei.c:3612
 do_filp_open+0x1a8/0x3b4 fs/namei.c:3642
 do_sys_openat2+0x128/0x3d8 fs/open.c:1211
 do_sys_open fs/open.c:1227 [inline]
 __do_sys_openat fs/open.c:1243 [inline]
 __se_sys_openat fs/open.c:1238 [inline]
 __arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
 __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:596
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
 el0t_64_sync+0x1a0/0x1a4 <unknown>:584
Code: d1094289 91005919 f9001fe9 d343ff28 (38f66908) 
---[ end trace 7d17cc05c8feea48 ]---
----------------
Code disassembly (best guess):
   0:	d1094289 	sub	x9, x20, #0x250
   4:	91005919 	add	x25, x8, #0x16
   8:	f9001fe9 	str	x9, [sp, #56]
   c:	d343ff28 	lsr	x8, x25, #3
* 10:	38f66908 	ldrsb	w8, [x8, x22] <-- trapping instruction

Crashes (29):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/10 22:20 linux-5.15.y abddfcf701a5 5205ef30 .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 ni_write_inode
2023/03/20 09:38 linux-5.15.y 8020ae3c051d 7939252e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan general protection fault in ni_write_inode
2023/05/22 06:23 linux-5.15.y 9d6bde853685 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/05/01 15:34 linux-5.15.y 8a7f2a5c5aa1 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/27 20:24 linux-5.15.y f48aeeaaa64c 6f3d6fa7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/26 09:26 linux-5.15.y 3299fb36854f 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/25 22:10 linux-5.15.y 3299fb36854f 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/25 08:34 linux-5.15.y 3299fb36854f 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/22 09:23 linux-5.15.y 3299fb36854f 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/22 02:35 linux-5.15.y 3299fb36854f 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/21 07:53 linux-5.15.y 3299fb36854f 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/20 08:36 linux-5.15.y 4fdad925aa1a a219f34e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/16 15:52 linux-5.15.y 4fdad925aa1a ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/16 09:29 linux-5.15.y 4fdad925aa1a ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/14 07:04 linux-5.15.y 4fdad925aa1a 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/12 19:14 linux-5.15.y d86dfc4d95cd 1a1596b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/08 11:58 linux-5.15.y d86dfc4d95cd 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/08 08:15 linux-5.15.y d86dfc4d95cd 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/07 18:54 linux-5.15.y d86dfc4d95cd f7ba566d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/05 09:19 linux-5.15.y c957cbb87315 831373d3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/04 04:58 linux-5.15.y c957cbb87315 41147e3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/03/24 10:46 linux-5.15.y 115472395b0a f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/03/20 10:42 linux-5.15.y 8020ae3c051d 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/03/15 08:05 linux-5.15.y 2ddbd0f967b3 0d5c4377 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/03/10 23:03 linux-5.15.y abddfcf701a5 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ni_write_inode
2023/04/23 09:29 linux-5.15.y 3299fb36854f 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in ni_write_inode
2023/04/16 18:32 linux-5.15.y 4fdad925aa1a ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in ni_write_inode
2023/04/11 06:18 linux-5.15.y d86dfc4d95cd 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in ni_write_inode
2023/04/09 08:56 linux-5.15.y d86dfc4d95cd 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in ni_write_inode
* Struck through repros no longer work on HEAD.