syzbot


BUG: bad usercopy in fpa_set

Status: upstream: reported C repro on 2023/05/05 12:53
Subsystems: arm
[Documentation on labels]
Reported-by: syzbot+cb76c2983557a07cdb14@syzkaller.appspotmail.com
First crash: 441d, last: 1h37m
Discussions (9)
Title Replies (including bot) Last reply
[syzbot] Monthly arm report (Apr 2024) 0 (1) 2024/04/30 07:12
Re: [syzbot] [hardening?] [mm?] BUG: bad usercopy in fpa_set 5 (5) 2024/04/15 17:02
[syzbot] [hardening?] [mm?] BUG: bad usercopy in fpa_set 9 (15) 2024/04/15 09:38
[syzbot] Monthly arm report (Mar 2024) 0 (1) 2024/03/27 09:21
[syzbot] Monthly mm report (Feb 2024) 0 (1) 2024/02/17 20:23
[syzbot] Monthly mm report (Jan 2024) 0 (1) 2024/01/17 09:21
[syzbot] Monthly mm report (Dec 2023) 0 (1) 2023/12/18 10:47
[syzbot] Monthly mm report (Nov 2023) 0 (1) 2023/11/15 03:00
[syzbot] Monthly mm report (Jun 2023) 0 (1) 2023/06/07 22:37
Last patch testing requests (8)
Created Duration User Patch Repo Result
2024/05/16 16:05 5m retest repro upstream report log
2024/05/16 16:05 5m retest repro upstream report log
2024/05/16 16:05 35m retest repro upstream report log
2024/04/05 14:02 21m penguin-kernel@i-love.sakura.ne.jp patch upstream OK log
2024/04/05 11:43 0m penguin-kernel@i-love.sakura.ne.jp patch upstream error
2024/03/05 10:55 7m penguin-kernel@i-love.sakura.ne.jp patch upstream report log
2024/03/05 10:17 8m penguin-kernel@i-love.sakura.ne.jp patch upstream report log
2023/08/21 16:23 4m retest repro upstream error

Sample crash report:
usercopy: Kernel memory overwrite attempt detected to SLUB object 'task_struct' (offset 80, size 116)!
------------[ cut here ]------------
kernel BUG at mm/usercopy.c:102!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 1 PID: 3010 Comm: syz-executor574 Not tainted 6.10.0-rc5-syzkaller #0
Hardware name: ARM-Versatile Express
PC is at usercopy_abort+0x98/0x9c mm/usercopy.c:102
LR is at __wake_up_klogd.part.0+0x7c/0xac kernel/printk/printk.c:3953
pc : [<818db348>]    lr : [<802bc47c>]    psr: 60000013
sp : df985d90  ip : df985cd8  fp : df985db4
r10: 81a00568  r9 : 00000078  r8 : 83dc1850
r7 : dde83f00  r6 : 00000000  r5 : 00000074  r4 : 00000050
r3 : 8416d400  r2 : 00000000  r1 : 00000000  r0 : 00000066
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
Control: 30c5387d  Table: 843ce280  DAC: 00000000
Register r0 information: non-paged memory
Register r1 information: NULL pointer
Register r2 information: NULL pointer
Register r3 information: slab task_struct start 8416d400 pointer offset 0 size 3072
Register r4 information: non-paged memory
Register r5 information: non-paged memory
Register r6 information: NULL pointer
Register r7 information: non-slab/vmalloc memory
Register r8 information: slab task_struct start 83dc1800 pointer offset 80 size 3072
Register r9 information: non-paged memory
Register r10 information: non-slab/vmalloc memory
Register r11 information: 2-page vmalloc region starting at 0xdf984000 allocated at kernel_clone+0xac/0x3e4 kernel/fork.c:2797
Register r12 information: 2-page vmalloc region starting at 0xdf984000 allocated at kernel_clone+0xac/0x3e4 kernel/fork.c:2797
Process syz-executor574 (pid: 3010, stack limit = 0xdf984000)
Stack: (0xdf985d90 to 0xdf986000)
5d80:                                     81fff420 81fd1ad8 81fe61b8 00000050
5da0: 00000074 00000078 df985de4 df985db8 804c0c00 818db2bc 00000074 df985dc8
5dc0: 802161c0 83dc1850 00000074 00000000 83dc18c4 dde83f00 df985e1c df985de8
5de0: 804f91e4 804c0b34 00000074 20000084 df985e0c 83dc1850 00000074 20000084
5e00: 00000074 81a005a0 00000078 81a00568 df985e4c df985e20 80209d80 804f8f5c
5e20: 804e3ba8 818f3e08 df985e54 df985e38 80480f00 80209cf0 83dc1800 20000084
5e40: df985ef4 df985e50 8025455c 80209cfc 00000000 20000000 20000000 81a0057c
5e60: 818ff8e0 00000000 df985eb4 df985e78 8020d074 8020bfec 8020c004 00000000
5e80: 80280128 00000000 00000000 00000000 00000000 00000000 00000000 00000000
5ea0: 00000000 8416d400 df985edc df985eb8 8027e6bc 802ae26c 80282830 00000000
5ec0: 00000000 4c35cf55 83dc1800 20000080 00004202 00000002 00000000 20000080
5ee0: 8416d400 0000001a df985f6c df985ef8 8020a1b4 80254254 83dc1800 83dc2084
5f00: df985f1c df985f10 818ffd8c 8027ccbc df985f6c df985f20 80282990 818ffd68
5f20: df985f54 00000000 8027e6bc 60000013 818ad610 818c48c4 df985f54 4c35cf55
5f40: 83dc1800 00004205 83dc1800 4c35cf55 00004205 83dc1800 00000002 00000000
5f60: df985fa4 df985f70 80253f00 8020a110 80216088 4c35cf55 00000000 00000000
5f80: 00000000 0008e050 0000001a 8020029c 8416d400 0000001a 00000000 df985fa8
5fa0: 80200060 80253cd4 00000000 00000000 00004205 00000bc3 00000002 20000080
5fc0: 00000000 00000000 0008e050 0000001a 00000000 7e941c84 00002710 00000000
5fe0: 7e941c70 7e941c60 00010650 0002e7a0 00000010 00004205 00000000 00000000
Call trace: 
[<818db2b0>] (usercopy_abort) from [<804c0c00>] (__check_heap_object+0xd8/0xf4 mm/slub.c:5533)
[<804c0b28>] (__check_heap_object) from [<804f91e4>] (check_heap_object mm/usercopy.c:196 [inline])
[<804c0b28>] (__check_heap_object) from [<804f91e4>] (__check_object_size mm/usercopy.c:251 [inline])
[<804c0b28>] (__check_heap_object) from [<804f91e4>] (__check_object_size+0x294/0x310 mm/usercopy.c:213)
 r8:dde83f00 r7:83dc18c4 r6:00000000 r5:00000074 r4:83dc1850
[<804f8f50>] (__check_object_size) from [<80209d80>] (check_object_size include/linux/thread_info.h:215 [inline])
[<804f8f50>] (__check_object_size) from [<80209d80>] (__copy_from_user include/linux/uaccess.h:101 [inline])
[<804f8f50>] (__check_object_size) from [<80209d80>] (user_regset_copyin include/linux/regset.h:268 [inline])
[<804f8f50>] (__check_object_size) from [<80209d80>] (fpa_set+0x90/0x118 arch/arm/kernel/ptrace.c:587)
 r10:81a00568 r9:00000078 r8:81a005a0 r7:00000074 r6:20000084 r5:00000074
 r4:83dc1850
[<80209cf0>] (fpa_set) from [<8025455c>] (copy_regset_from_user include/linux/regset.h:337 [inline])
[<80209cf0>] (fpa_set) from [<8025455c>] (ptrace_regset kernel/ptrace.c:906 [inline])
[<80209cf0>] (fpa_set) from [<8025455c>] (ptrace_request+0x314/0xa70 kernel/ptrace.c:1218)
 r6:20000084 r5:83dc1800 r4:80209cf0
[<80254248>] (ptrace_request) from [<8020a1b4>] (arch_ptrace+0xb0/0x424 arch/arm/kernel/ptrace.c:818)
 r10:0000001a r9:8416d400 r8:20000080 r7:00000000 r6:00000002 r5:00004202
 r4:20000080
[<8020a104>] (arch_ptrace) from [<80253f00>] (__do_sys_ptrace kernel/ptrace.c:1285 [inline])
[<8020a104>] (arch_ptrace) from [<80253f00>] (sys_ptrace+0x238/0x4e0 kernel/ptrace.c:1258)
 r7:00000000 r6:00000002 r5:83dc1800 r4:00004205
[<80253cc8>] (sys_ptrace) from [<80200060>] (ret_fast_syscall+0x0/0x1c arch/arm/mm/proc-v7.S:67)
Exception stack(0xdf985fa8 to 0xdf985ff0)
5fa0:                   00000000 00000000 00004205 00000bc3 00000002 20000080
5fc0: 00000000 00000000 0008e050 0000001a 00000000 7e941c84 00002710 00000000
5fe0: 7e941c70 7e941c60 00010650 0002e7a0
 r10:0000001a r9:8416d400 r8:8020029c r7:0000001a r6:0008e050 r5:00000000
 r4:00000000
Code: e30f0424 e34801ff e58dc000 ebfff359 (e7f001f2) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	e30f0424 	movw	r0, #62500	@ 0xf424
   4:	e34801ff 	movt	r0, #33279	@ 0x81ff
   8:	e58dc000 	str	ip, [sp]
   c:	ebfff359 	bl	0xffffcd78
* 10:	e7f001f2 	udf	#18 <-- trapping instruction

Crashes (2128):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/29 19:26 upstream de0a9f448633 757f06b1 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/01/26 00:19 upstream 6098d87eaf31 cc4a4020 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2023/10/17 19:33 upstream 213f891525c2 342b9c55 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2023/05/07 11:02 upstream 457391b03803 90c93c40 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/20 02:06 upstream 720261cfc732 890ce4f3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/20 00:55 upstream 720261cfc732 890ce4f3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/19 23:54 upstream 720261cfc732 890ce4f3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/19 23:30 upstream 720261cfc732 890ce4f3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/19 09:27 upstream 68b59730459e ee4e11c8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/19 08:05 upstream 68b59730459e ee4e11c8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/19 07:01 upstream 68b59730459e ee4e11c8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/19 06:41 upstream 68b59730459e ee4e11c8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/18 20:58 upstream b1bc554e009e bbc40cc8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/18 17:56 upstream b1bc554e009e bbc40cc8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/18 08:33 upstream e2f710f97f35 0f902625 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/18 07:50 upstream e2f710f97f35 0f902625 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/17 20:31 upstream 51835949dda3 0e62b432 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/17 19:03 upstream 51835949dda3 0e62b432 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/17 07:12 upstream 408323581b72 215bec2d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/17 06:46 upstream 408323581b72 215bec2d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/17 05:03 upstream 408323581b72 215bec2d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/16 15:51 upstream d67978318827 b66b37bd .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/15 16:26 upstream 0c3836482481 252f67bd .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/15 14:57 upstream 0c3836482481 252f67bd .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/15 14:34 upstream 0c3836482481 252f67bd .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/14 17:08 upstream 4d145e3f830b eaeb5c15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/14 13:25 upstream 4d145e3f830b eaeb5c15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/14 12:36 upstream 4d145e3f830b eaeb5c15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/13 23:18 upstream 528dd46d0fc3 eaeb5c15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/13 12:03 upstream 975f3b6da180 eaeb5c15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/13 09:59 upstream 975f3b6da180 eaeb5c15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/12 22:21 upstream 43db1e03c086 eaeb5c15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/12 20:35 upstream 43db1e03c086 eaeb5c15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/12 09:12 upstream 8a18fda0febb eaeb5c15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/12 07:57 upstream 8a18fda0febb eaeb5c15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/12 07:56 upstream 8a18fda0febb eaeb5c15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/11 19:16 upstream 9d9a2f29aefd 6ca1eb5a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/11 08:02 upstream a19ea421490d c699c2eb .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/10 09:03 upstream 34afb82a3c67 bc144f9a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/10 07:04 upstream 34afb82a3c67 bc144f9a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/10 06:57 upstream 34afb82a3c67 bc144f9a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/10 05:50 upstream 34afb82a3c67 bc144f9a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/08 17:39 upstream 256abd8e550c 7ca8bbea .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/08 16:50 upstream 256abd8e550c 7ca8bbea .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/08 01:36 upstream c6653f49e4fd bc4ebbb5 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/08 00:57 upstream c6653f49e4fd bc4ebbb5 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/07 23:34 upstream c6653f49e4fd bc4ebbb5 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/07/07 10:06 upstream 22f902dfc51e bc4ebbb5 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2023/05/05 10:50 upstream 457391b03803 518a39a6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2023/05/05 08:20 upstream 457391b03803 518a39a6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
* Struck through repros no longer work on HEAD.