syzbot


BUG: unable to handle kernel paging request in lookup_open

Status: upstream: reported C repro on 2022/12/24 09:43
Subsystems: ntfs
[Documentation on labels]
Reported-by: syzbot+a1f935f55c2cf6e0a1c4@syzkaller.appspotmail.com
First crash: 482d, last: 412d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in lookup_open ntfs3 C error done 1 128d 274d 26/26 fixed on 2024/01/30 15:47
linux-4.19 BUG: unable to handle kernel paging request in lookup_open ntfs C error 3 486d 491d 0/1 upstream: reported C repro on 2022/12/15 09:59
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/03/03 19:26 22m bisect fix linux-4.14.y job log (0) log
2023/02/01 15:02 24m bisect fix linux-4.14.y job log (0) log

Sample crash report:
ntfs: volume version 3.1.
ntfs: (device loop0): ntfs_lookup_inode_by_name(): Index entry out of bounds in directory inode 0x5.
ntfs: (device loop0): check_windows_hibernation_status(): Failed to find inode number for hiberfil.sys.
ntfs: (device loop0): load_system_files(): Failed to determine if Windows is hibernated.  Mounting read-only.  Run chkdsk.
ntfs: (device loop0): ntfs_lookup(): ntfs_lookup_ino_by_name() failed with error code 16777149.
BUG: unable to handle kernel paging request at ffffffffff00009b
IP: lookup_open+0x625/0x1750 fs/namei.c:3234
PGD 8e6b067 P4D 8e6b067 PUD 8e6d067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7983 Comm: syz-executor293 Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff8880959d6200 task.stack: ffff888093638000
RIP: 0010:lookup_open+0x625/0x1750 fs/namei.c:3234
RSP: 0018:ffff88809363fa38 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88809363fcf8 RCX: 1ffff11012b3ad56
RDX: 1fffffffffe00013 RSI: 0000000000000002 RDI: 0000000000000282
RBP: ffffffffff000043 R08: ffffffff8b9cf650 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880959d6200 R12: 00000000ffffffe2
R13: ffffffffff000043 R14: ffff8880941c1d20 R15: ffff88809363fe88
FS:  00005555566cc300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff00009b CR3: 00000000a1d93000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 do_last fs/namei.c:3334 [inline]
 path_openat+0xe08/0x2970 fs/namei.c:3571
 do_filp_open+0x179/0x3c0 fs/namei.c:3605
 do_sys_open+0x296/0x410 fs/open.c:1081
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fb1bba07759
RSP: 002b:00007ffcc06064e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007fb1bba07759
RDX: 00007fb1bb9c5dd3 RSI: 0000000000000000 RDI: 0000000020000080
RBP: 00007fb1bb9c6ff0 R08: 000000000001ee42 R09: 0000000000000000
R10: 00007ffcc06063b0 R11: 0000000000000246 R12: 00007fb1bb9c7080
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Code: 4d 85 ed 0f 85 45 0d 00 00 e8 28 c0 cb ff 48 8b 54 24 40 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 a6 0e 00 00 <48> 83 7d 58 00 0f 85 b5 fc ff ff e8 fb bf cb ff f6 44 24 1c 40 
RIP: lookup_open+0x625/0x1750 fs/namei.c:3234 RSP: ffff88809363fa38
CR2: ffffffffff00009b
---[ end trace 3424647b4596ea4b ]---
----------------
Code disassembly (best guess):
   0:	4d 85 ed             	test   %r13,%r13
   3:	0f 85 45 0d 00 00    	jne    0xd4e
   9:	e8 28 c0 cb ff       	callq  0xffcbc036
   e:	48 8b 54 24 40       	mov    0x40(%rsp),%rdx
  13:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1a:	fc ff df
  1d:	48 c1 ea 03          	shr    $0x3,%rdx
  21:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
  25:	0f 85 a6 0e 00 00    	jne    0xed1
* 2b:	48 83 7d 58 00       	cmpq   $0x0,0x58(%rbp) <-- trapping instruction
  30:	0f 85 b5 fc ff ff    	jne    0xfffffceb
  36:	e8 fb bf cb ff       	callq  0xffcbc036
  3b:	f6 44 24 1c 40       	testb  $0x40,0x1c(%rsp)

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/24 09:43 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 BUG: unable to handle kernel paging request in lookup_open
* Struck through repros no longer work on HEAD.