syzbot


BUG: unable to handle kernel paging request in tracefs_apply_options

Status: auto-obsoleted due to no activity on 2024/03/14 17:19
Subsystems: fs trace
[Documentation on labels]
Reported-by: syzbot+f8a023e0c6beabe2371a@syzkaller.appspotmail.com
First crash: 137d, last: 132d
Cause bisection: introduced by (bisect log) :
commit 7e8358edf503e87236c8d07f69ef0ed846dd5112
Author: Steven Rostedt (Google) <rostedt@goodmis.org>
Date: Fri Dec 22 00:07:57 2023 +0000

  eventfs: Fix file and directory uid and gid ownership

Crash: BUG: unable to handle kernel paging request in tracefs_apply_options (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit ad579864637af46447208254719943179b69d41a
Author: Steven Rostedt (Google) <rostedt@goodmis.org>
Date: Tue Jan 2 20:12:49 2024 +0000

  tracefs: Check for dentry->d_inode exists in set_gid()

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [fs?] [trace?] BUG: unable to handle kernel paging request in tracefs_apply_options 2 (5) 2024/02/12 17:10
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/01/18 17:48 20m retest repro upstream OK log
2024/01/18 17:48 20m retest repro upstream OK log
2024/01/18 17:20 22m retest repro upstream OK log
2024/01/04 13:44 16m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 453f5db0619e OK log

Sample crash report:
BUG: unable to handle page fault for address: fffffffffffffff0
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD d734067 P4D d734067 PUD d736067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5056 Comm: syz-executor170 Not tainted 6.7.0-rc7-syzkaller-00049-g453f5db0619e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:set_gid fs/tracefs/inode.c:224 [inline]
RIP: 0010:tracefs_apply_options+0x4d0/0xa40 fs/tracefs/inode.c:337
Code: 24 10 49 8b 1e 48 83 c3 f0 74 3d 48 89 d8 48 c1 e8 03 48 bd 00 00 00 00 00 fc ff df 80 3c 28 00 74 08 48 89 df e8 70 ff 88 fe <48> 8b 1b 48 89 de 48 83 e6 02 31 ff e8 bf fe 2c fe 48 83 e3 02 75
RSP: 0018:ffffc900040ffca8 EFLAGS: 00010246
RAX: 1ffffffffffffffe RBX: fffffffffffffff0 RCX: ffff888014bf5940
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc900040ffc20
RBP: dffffc0000000000 R08: 0000000000000003 R09: fffff5200081ff84
R10: dffffc0000000000 R11: fffff5200081ff84 R12: ffff88801d743888
R13: ffff88801b0c3710 R14: ffff88801d7437e8 R15: ffff88801d743810
FS:  00005555557dd480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffff0 CR3: 000000001ec48000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 tracefs_remount+0x78/0x80 fs/tracefs/inode.c:353
 reconfigure_super+0x440/0x870 fs/super.c:1143
 do_remount fs/namespace.c:2884 [inline]
 path_mount+0xc24/0xfa0 fs/namespace.c:3656
 do_mount fs/namespace.c:3677 [inline]
 __do_sys_mount fs/namespace.c:3886 [inline]
 __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3863
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fec326e8d99
Code: 48 83 c4 28 c3 e8 67 17 00 00 0f 1f 80 00 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc8103ddf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffc8103de00 RCX: 00007fec326e8d99
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000000
RBP: 00007ffc8103de08 R08: 0000000020000140 R09: 00007fec326b5b80
R10: 0000000002200022 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc8103e068 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
CR2: fffffffffffffff0
---[ end trace 0000000000000000 ]---
RIP: 0010:set_gid fs/tracefs/inode.c:224 [inline]
RIP: 0010:tracefs_apply_options+0x4d0/0xa40 fs/tracefs/inode.c:337
Code: 24 10 49 8b 1e 48 83 c3 f0 74 3d 48 89 d8 48 c1 e8 03 48 bd 00 00 00 00 00 fc ff df 80 3c 28 00 74 08 48 89 df e8 70 ff 88 fe <48> 8b 1b 48 89 de 48 83 e6 02 31 ff e8 bf fe 2c fe 48 83 e3 02 75
RSP: 0018:ffffc900040ffca8 EFLAGS: 00010246
RAX: 1ffffffffffffffe RBX: fffffffffffffff0 RCX: ffff888014bf5940
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc900040ffc20
RBP: dffffc0000000000 R08: 0000000000000003 R09: fffff5200081ff84
R10: dffffc0000000000 R11: fffff5200081ff84 R12: ffff88801d743888
R13: ffff88801b0c3710 R14: ffff88801d7437e8 R15: ffff88801d743810
FS:  00005555557dd480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffff0 CR3: 000000001ec48000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	24 10                	and    $0x10,%al
   2:	49 8b 1e             	mov    (%r14),%rbx
   5:	48 83 c3 f0          	add    $0xfffffffffffffff0,%rbx
   9:	74 3d                	je     0x48
   b:	48 89 d8             	mov    %rbx,%rax
   e:	48 c1 e8 03          	shr    $0x3,%rax
  12:	48 bd 00 00 00 00 00 	movabs $0xdffffc0000000000,%rbp
  19:	fc ff df
  1c:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1)
  20:	74 08                	je     0x2a
  22:	48 89 df             	mov    %rbx,%rdi
  25:	e8 70 ff 88 fe       	call   0xfe88ff9a
* 2a:	48 8b 1b             	mov    (%rbx),%rbx <-- trapping instruction
  2d:	48 89 de             	mov    %rbx,%rsi
  30:	48 83 e6 02          	and    $0x2,%rsi
  34:	31 ff                	xor    %edi,%edi
  36:	e8 bf fe 2c fe       	call   0xfe2cfefa
  3b:	48 83 e3 02          	and    $0x2,%rbx
  3f:	75                   	.byte 0x75

Crashes (45):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/31 00:51 upstream 453f5db0619e fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/30 23:14 upstream 453f5db0619e fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 00:17 upstream 453f5db0619e fb427a07 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 23:46 upstream 2639772a11c8 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 21:59 upstream 2639772a11c8 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 17:37 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 17:21 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 17:05 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 16:59 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 16:52 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 14:45 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 13:49 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 13:11 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 13:10 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 05:08 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 02:46 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 02:25 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 02:18 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 02:10 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 01:54 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 01:45 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 01:41 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 01:23 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 01:16 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 00:34 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 00:17 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 00:14 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/30 22:44 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/30 22:38 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/30 22:32 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/30 21:53 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/30 21:45 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/30 21:39 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 13:11 upstream 453f5db0619e fb427a07 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 02:38 upstream 453f5db0619e fb427a07 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/30 23:11 upstream 453f5db0619e fb427a07 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/30 22:34 upstream 453f5db0619e fb427a07 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 22:12 upstream 2639772a11c8 fb427a07 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 20:09 upstream 2639772a11c8 fb427a07 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/31 02:59 upstream 453f5db0619e fb427a07 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: unable to handle kernel paging request in tracefs_apply_options
2023/12/30 23:40 upstream 453f5db0619e fb427a07 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: unable to handle kernel paging request in tracefs_apply_options
2024/01/02 13:27 linux-next ab0b3e6ef50d fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in tracefs_apply_options
2024/01/02 09:02 linux-next ab0b3e6ef50d fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in tracefs_apply_options
2024/01/04 17:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in tracefs_apply_options
2024/01/04 16:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in tracefs_apply_options
* Struck through repros no longer work on HEAD.