syzbot


general protection fault in inode_permission (2)

Status: upstream: reported C repro on 2023/08/31 15:12
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+f5b965c58efb9c510227@syzkaller.appspotmail.com
First crash: 190d, last: 75d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ext4?] general protection fault in inode_permission (2) 0 (1) 2023/08/31 15:12
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in inode_permission fs 1 1292d 1288d 0/26 auto-closed as invalid on 2020/11/18 06:21
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/09/12 18:43 20m retest repro upstream report log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2024/01/20 11:22 12h10m bisect fix upstream error job log (0)
2023/12/20 11:06 3h47m bisect fix upstream job log (0) log
2023/11/18 17:19 4h54m bisect fix upstream job log (0) log
2023/10/15 06:24 2h32m bisect fix upstream job log (0) log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2023/09/11 00:47 12h13m bisect upstream error job log (0)
2023/08/27 19:30 12h55m bisect upstream error job log (0)
marked invalid by nogikh@google.com

Sample crash report:
general protection fault, probably for non-canonical address 0xeeb017db1ffff112: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x7580ded8ffff8890-0x7580ded8ffff8897]
CPU: 0 PID: 5055 Comm: syz-executor397 Not tainted 6.5.0-rc7-syzkaller-00185-g28f20a19294d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:do_inode_permission fs/namei.c:460 [inline]
RIP: 0010:inode_permission fs/namei.c:528 [inline]
RIP: 0010:inode_permission+0x35d/0x5e0 fs/namei.c:503
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 5d 02 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 73 20 49 8d 7e 10 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 30 02 00 00 4d 8b 76 10 4d 85 f6 0f 84 ab 01 00
RSP: 0000:ffffc90003caf5a0 EFLAGS: 00010216
RAX: dffffc0000000000 RBX: ffff88807580dcb0 RCX: 0000000000000000
RDX: 0eb01bdb1ffff112 RSI: ffffffff81ec15b5 RDI: 7580ded8ffff8890
RBP: 0000000000000081 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffffff8cb84420
R13: 0000000000000000 R14: 7580ded8ffff8880 R15: ffff88807580dcb2
FS:  0000555555f8d3c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffc7 CR3: 000000002a981000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 may_lookup fs/namei.c:1716 [inline]
 link_path_walk.part.0.constprop.0+0x26f/0xce0 fs/namei.c:2267
 link_path_walk fs/namei.c:2250 [inline]
 path_parentat+0xaa/0x1b0 fs/namei.c:2526
 __filename_parentat+0x1f2/0x640 fs/namei.c:2550
 filename_parentat fs/namei.c:2568 [inline]
 do_unlinkat+0x109/0x6d0 fs/namei.c:4368
 do_coredump+0x18bd/0x3fc0 fs/coredump.c:675
 get_signal+0x2464/0x2770 kernel/signal.c:2867
 arch_do_signal_or_restart+0x89/0x5f0 arch/x86/kernel/signal.c:308
 exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
 exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
 irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:310
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0033:0x7f96f653c143
Code: e8 46 45 00 00 66 0f 1f 44 00 00 48 83 ec 08 48 89 fa 48 89 f1 31 ff 31 f6 e8 4d 01 03 00 85 c0 75 09 48 83 c4 08 c3 0f 1f 40 <00> 48 c7 c2 b0 ff ff ff 64 89 02 b8 ff ff ff ff eb e6 66 2e 0f 1f
RSP: 002b:00007ffc5e7c7220 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 000000000006cd02 RCX: 00007f96f656c2b3
RDX: 00007ffc5e7c7230 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000066 R08: 00000000000001be R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffc5e7c7300
R13: 0000000000000025 R14: 431bde82d7b634db R15: 00007ffc5e7c7284
 </TASK>
Modules linked in:
----------------
Code disassembly (best guess):
   0:	48 89 fa             	mov    %rdi,%rdx
   3:	48 c1 ea 03          	shr    $0x3,%rdx
   7:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   b:	0f 85 5d 02 00 00    	jne    0x26e
  11:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  18:	fc ff df
  1b:	4c 8b 73 20          	mov    0x20(%rbx),%r14
  1f:	49 8d 7e 10          	lea    0x10(%r14),%rdi
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 30 02 00 00    	jne    0x264
  34:	4d 8b 76 10          	mov    0x10(%r14),%r14
  38:	4d 85 f6             	test   %r14,%r14
  3b:	0f                   	.byte 0xf
  3c:	84                   	.byte 0x84
  3d:	ab                   	stos   %eax,%es:(%rdi)
  3e:	01 00                	add    %eax,(%rax)

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/27 14:59 upstream 28f20a19294d 03d9c195 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root general protection fault in inode_permission
* Struck through repros no longer work on HEAD.