syzbot


BUG: unable to handle kernel paging request in lookup_open

Status: upstream: reported C repro on 2022/12/15 09:59
Subsystems: ntfs
[Documentation on labels]
Reported-by: syzbot+4acbb046a8632405ae80@syzkaller.appspotmail.com
First crash: 722d, last: 717d
Fix bisection: failed (error log, bisect log)
  
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 359d 504d 25/28 fixed on 2024/01/30 15:47
linux-4.14 BUG: unable to handle kernel paging request in lookup_open ntfs C 1 643d 713d 0/1 upstream: reported C repro on 2022/12/24 09:43

Sample crash report:
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
PGD 9e6e067 P4D 9e6e067 PUD 9e70067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8109 Comm: syz-executor419 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:lookup_open+0x70a/0x1a20 fs/namei.c:3228
Code: 85 ed 0f 85 39 0f 00 00 e8 03 d1 bc ff 48 8b 54 24 20 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 b4 10 00 00 <48> 83 7d 58 00 0f 85 1c fc ff ff e8 d6 d0 bc ff 44 8b 6c 24 18 31
RSP: 0018:ffff8880b33a79b8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8880b33a7ce0 RCX: 1ffff11015f8a136
RDX: 1fffffffffe00013 RSI: ffffffff81a5b46d RDI: 0000000000000286
RBP: ffffffffff000043 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 00000000ffffffe2
R13: ffffffffff000043 R14: ffff8880b548e760 R15: ffff8880b33a7e90
FS:  00005555560b3300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff00009b CR3: 00000000aa4db000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 do_last fs/namei.c:3327 [inline]
 path_openat+0x1094/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f2ba5880759
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd7cf8b198 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f2ba5880759
RDX: 00007f2ba583edd3 RSI: 0000000000000000 RDI: 0000000020000080
RBP: 00007f2ba583fff0 R08: 000000000001ee42 R09: 0000000000000000
R10: 00007ffd7cf8b060 R11: 0000000000000246 R12: 00007f2ba5840080
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: ffffffffff00009b
---[ end trace 4e2e2dceb6471752 ]---
RIP: 0010:lookup_open+0x70a/0x1a20 fs/namei.c:3228
Code: 85 ed 0f 85 39 0f 00 00 e8 03 d1 bc ff 48 8b 54 24 20 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 b4 10 00 00 <48> 83 7d 58 00 0f 85 1c fc ff ff e8 d6 d0 bc ff 44 8b 6c 24 18 31
RSP: 0018:ffff8880b33a79b8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8880b33a7ce0 RCX: 1ffff11015f8a136
RDX: 1fffffffffe00013 RSI: ffffffff81a5b46d RDI: 0000000000000286
RBP: ffffffffff000043 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 00000000ffffffe2
R13: ffffffffff000043 R14: ffff8880b548e760 R15: ffff8880b33a7e90
FS:  00005555560b3300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff00009b CR3: 00000000aa4db000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	85 ed                	test   %ebp,%ebp
   2:	0f 85 39 0f 00 00    	jne    0xf41
   8:	e8 03 d1 bc ff       	callq  0xffbcd110
   d:	48 8b 54 24 20       	mov    0x20(%rsp),%rdx
  12:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  19:	fc ff df
  1c:	48 c1 ea 03          	shr    $0x3,%rdx
  20:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
  24:	0f 85 b4 10 00 00    	jne    0x10de
* 2a:	48 83 7d 58 00       	cmpq   $0x0,0x58(%rbp) <-- trapping instruction
  2f:	0f 85 1c fc ff ff    	jne    0xfffffc51
  35:	e8 d6 d0 bc ff       	callq  0xffbcd110
  3a:	44 8b 6c 24 18       	mov    0x18(%rsp),%r13d
  3f:	31                   	.byte 0x31

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/20 01:21 linux-4.19.y 3f8a27f9e27b c52b2efb .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 BUG: unable to handle kernel paging request in lookup_open
2022/12/15 10:11 linux-4.19.y 3f8a27f9e27b b18f0a64 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 BUG: unable to handle kernel paging request in lookup_open
2022/12/15 09:59 linux-4.19.y 3f8a27f9e27b b18f0a64 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 BUG: unable to handle kernel paging request in lookup_open
* Struck through repros no longer work on HEAD.