syzbot


BUG: bad usercopy in io_openat2_prep (2)

Status: closed as invalid on 2023/02/17 14:07
Subsystems: hardening mm
[Documentation on labels]
First crash: 495d, last: 491d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: bad usercopy in io_openat2_prep hardening mm C 81 495d 497d 0/27 closed as invalid on 2023/02/13 11:27
upstream BUG: bad usercopy in io_openat2_prep (3) io-uring C 12 488d 487d 0/27 auto-obsoleted due to no activity on 2023/05/21 16:30

Sample crash report:
usercopy: Kernel memory overwrite attempt detected to SLUB object 'pid' (offset 24, size 24)!
------------[ cut here ]------------
kernel BUG at mm/usercopy.c:102!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4409 Comm: syz-executor388 Not tainted 6.2.0-rc7-syzkaller-17907-g2d3827b3f393 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : usercopy_abort+0x90/0x94 mm/usercopy.c:90
lr : usercopy_abort+0x90/0x94 mm/usercopy.c:90
sp : ffff80000ff3bb90
x29: ffff80000ff3bba0 x28: 000000000000001c x27: ffff0000c7078000
x26: 0000000020000200 x25: ffff80000cf52000 x24: fffffc0000000000
x23: 05ffc00000000200 x22: fffffc00031a54c0 x21: ffff0000c6953418
x20: 0000000000000000 x19: 0000000000000018 x18: 0000000000002ccf
x17: 63656a626f204255 x16: ffff0000c70789f8 x15: ffff80000dbd2118
x14: ffff0000c7078000 x13: 00000000ffffffff x12: ffff0000c7078000
x11: ff808000081bbb4c x10: 0000000000000000 x9 : fd547d28495b9900
x8 : fd547d28495b9900 x7 : ffff80000bf650d4 x6 : 0000000000000000
x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000
x2 : ffff0001fefdef08 x1 : 0000000100000000 x0 : 000000000000005d
Call trace:
 usercopy_abort+0x90/0x94 mm/usercopy.c:90
 __check_heap_object+0xa8/0x100 mm/slub.c:4761
 check_heap_object mm/usercopy.c:196 [inline]
 __check_object_size+0x208/0x6b8 mm/usercopy.c:251
 check_object_size include/linux/thread_info.h:199 [inline]
 check_copy_size include/linux/thread_info.h:235 [inline]
 copy_from_user include/linux/uaccess.h:160 [inline]
 copy_struct_from_user include/linux/uaccess.h:341 [inline]
 io_openat2_prep+0xcc/0x2b8 io_uring/openclose.c:89
 io_init_req io_uring/io_uring.c:2194 [inline]
 io_submit_sqe io_uring/io_uring.c:2241 [inline]
 io_submit_sqes+0x338/0xbb8 io_uring/io_uring.c:2395
 __do_sys_io_uring_enter io_uring/io_uring.c:3343 [inline]
 __se_sys_io_uring_enter io_uring/io_uring.c:3275 [inline]
 __arm64_sys_io_uring_enter+0x168/0x1308 io_uring/io_uring.c:3275
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x64/0x178 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0xbc/0x180 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x110 arch/arm64/kernel/syscall.c:193
 el0_svc+0x58/0x14c 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:591
Code: 91388800 aa0903e1 f90003e8 94e6d752 (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/13 14:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 4d66ad72 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/17 13:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 3e7039f4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/17 11:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 3e7039f4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/17 00:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 851bc19a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/16 21:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 7338e3c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/16 20:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 7338e3c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/16 20:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 7338e3c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/16 20:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 7338e3c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/16 20:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 7338e3c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/16 12:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 7338e3c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/16 11:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 7338e3c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/16 05:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 6be0f1f5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/16 02:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 6be0f1f5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/15 19:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 6be0f1f5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/15 17:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 6be0f1f5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/15 12:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 6be0f1f5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/15 12:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 6be0f1f5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/15 05:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 1d6b4af7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/15 00:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 1d6b4af7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/14 13:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 1d6b4af7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/14 12:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 1d6b4af7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/14 08:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 93ae7e0a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/14 01:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 93ae7e0a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/14 00:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 93ae7e0a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/13 16:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 4d66ad72 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
2023/02/13 12:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 4d66ad72 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: bad usercopy in io_openat2_prep
* Struck through repros no longer work on HEAD.