syzbot


BUG: unable to handle kernel paging request in __register_sysctl_table

Status: closed as invalid on 2023/02/17 17:35
Subsystems: fs
[Documentation on labels]
First crash: 902d, last: 902d

Sample crash report:
Unable to handle kernel paging request at virtual address 9f995f902013faac
Mem abort info:
  ESR = 0x0000000096000004
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x04: level 0 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000004
  CM = 0, WnR = 0
[9f995f902013faac] address between user and kernel address ranges
Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 27364 Comm: syz-executor.0 Not tainted 6.1.0-rc6-syzkaller-32651-ga77d28d13789 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : find_entry fs/proc/proc_sysctl.c:136 [inline]
pc : find_subdir fs/proc/proc_sysctl.c:955 [inline]
pc : get_subdir fs/proc/proc_sysctl.c:1008 [inline]
pc : __register_sysctl_table+0x490/0x948 fs/proc/proc_sysctl.c:1366
lr : find_entry fs/proc/proc_sysctl.c:127 [inline]
lr : find_subdir fs/proc/proc_sysctl.c:955 [inline]
lr : get_subdir fs/proc/proc_sysctl.c:1008 [inline]
lr : __register_sysctl_table+0x524/0x948 fs/proc/proc_sysctl.c:1366
sp : ffff8000143f3a40
x29: ffff8000143f3a60 x28: 0000000000000005 x27: ffff00011011fd00
x26: 00000000ffffffff x25: 000000000000000a x24: cfccafc81009fd56
x23: 0000000000000005 x22: 0000000000000000 x21: 9f995f902013faac
x20: ffff8000143f3b06 x19: ffff00011011fd58 x18: 0000000000000058
x17: 0000000000000000 x16: ffff80000dc18158 x15: ffff0000f1b43480
x14: 0000000000000000 x13: 00000000ffffffff x12: 0000000000040000
x11: 0000000000016b4e x10: ffff800012f45000 x9 : ffff8000086f9960
x8 : 3032503900080002 x7 : ffff7f7fff7f7f7f x6 : fefdfefff42f1057
x5 : 7465616d00000000 x4 : 0000000000000028 x3 : 73797a6b00000000
x2 : 0000000000000001 x1 : 00000000ffffffff x0 : 0000000000000000
Call trace:
 find_entry fs/proc/proc_sysctl.c:135 [inline]
 find_subdir fs/proc/proc_sysctl.c:955 [inline]
 get_subdir fs/proc/proc_sysctl.c:1008 [inline]
 __register_sysctl_table+0x490/0x948 fs/proc/proc_sysctl.c:1366
 register_net_sysctl+0x60/0x74 net/sysctl_net.c:169
 mpls_dev_sysctl_register+0xa4/0x114 net/mpls/af_mpls.c:1421
 mpls_add_dev net/mpls/af_mpls.c:1472 [inline]
 mpls_dev_notify+0x178/0x524 net/mpls/af_mpls.c:1612
 notifier_call_chain kernel/notifier.c:87 [inline]
 raw_notifier_call_chain+0x7c/0x108 kernel/notifier.c:455
 call_netdevice_notifiers_info net/core/dev.c:1945 [inline]
 call_netdevice_notifiers_extack net/core/dev.c:1983 [inline]
 call_netdevice_notifiers+0x9c/0x108 net/core/dev.c:1997
 register_netdevice+0x8cc/0xa0c net/core/dev.c:10090
 tun_set_iff+0x2e8/0x4e8 drivers/net/tun.c:2829
 __tun_chr_ioctl+0x4f4/0x1808 drivers/net/tun.c:3091
 tun_chr_ioctl+0x38/0x4c drivers/net/tun.c:3376
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __arm64_sys_ioctl+0xd0/0x140 fs/ioctl.c:856
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584
Code: f9402368 f9400376 cb080278 8b1806d5 (f94002ba) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	f9402368 	ldr	x8, [x27, #64]
   4:	f9400376 	ldr	x22, [x27]
   8:	cb080278 	sub	x24, x19, x8
   c:	8b1806d5 	add	x21, x22, x24, lsl #1
* 10:	f94002ba 	ldr	x26, [x21] <-- trapping instruction

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/21 20:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a77d28d13789 1c576c23 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in __register_sysctl_table
* Struck through repros no longer work on HEAD.