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: 565d, last: 6h27m
Discussions (11)
Title Replies (including bot) Last reply
[syzbot] Monthly arm report (Nov 2024) 0 (1) 2024/11/04 08:49
[syzbot] Monthly arm report (Sep 2024) 0 (1) 2024/09/02 13:03
[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: 0 UID: 0 PID: 3117 Comm: syz-executor362 Not tainted 6.12.0-rc2-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:4495
pc : [<8199f388>]    lr : [<802bc97c>]    psr: 60000013
sp : df971d90  ip : df971cd0  fp : df971db4
r10: 81a0056c  r9 : 00000078  r8 : 83e7d450
r7 : dde858e0  r6 : 00000000  r5 : 00000074  r4 : 00000050
r3 : 83e78c00  r2 : 00000000  r1 : 00000000  r0 : 00000066
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 30c5387d  Table: 842c2b00  DAC: fffffffd
Register r0 information: non-paged memory
Register r1 information: NULL pointer
Register r2 information: NULL pointer
Register r3 information: slab task_struct start 83e78c00 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 83e7d400 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 0xdf970000 allocated at kernel_clone+0xac/0x3e4 kernel/fork.c:2784
Register r12 information: 2-page vmalloc region starting at 0xdf970000 allocated at kernel_clone+0xac/0x3e4 kernel/fork.c:2784
Process syz-executor362 (pid: 3117, stack limit = 0xdf970000)
Stack: (0xdf971d90 to 0xdf972000)
1d80:                                     8205b3b8 8202ce48 8204248c 00000050
1da0: 00000074 00000078 df971de4 df971db8 804cec50 8199f2fc 00000074 df971dc8
1dc0: 802147c0 83e7d450 00000074 00000000 83e7d4c4 dde858e0 df971e1c df971de8
1de0: 8050d758 804ceb84 00000074 20000084 df971e0c 83e7d450 00000074 20000084
1e00: 00000074 81a005a4 00000078 81a0056c df971e4c df971e20 80209d94 8050d4dc
1e20: 804f4750 819b8988 df971e54 df971e38 8048c544 80209d04 83e7d400 20000084
1e40: df971ef4 df971e50 80252e9c 80209d10 00000000 20000000 20000000 81a00580
1e60: 819c4264 00000000 df971eb4 df971e78 8020d090 8020c014 8020c02c 00000000
1e80: 8027eb28 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1ea0: 00000000 83e78c00 df971edc df971eb8 8027d354 802ae4b4 8028035c 00000000
1ec0: 00000000 8e27da55 83e7d400 20000080 00004202 00000002 00000000 20000080
1ee0: 83e78c00 0000001a df971f6c df971ef8 8020a1c4 80252b94 83e7d400 83e7dc84
1f00: df971f1c df971f10 819c4710 8027b8d0 df971f6c df971f20 802804bc 819c46ec
1f20: df971f54 00000000 8027d354 60000013 81971270 819884d4 df971f54 8e27da55
1f40: 83e7d400 00004205 83e7d400 8e27da55 00004205 83e7d400 00000002 00000000
1f60: df971fa4 df971f70 80252840 8020a120 80214688 8e27da55 00000000 00000000
1f80: 00000000 0008e050 0000001a 8020029c 83e78c00 0000001a 00000000 df971fa8
1fa0: 80200060 80252614 00000000 00000000 00004205 00000c2e 00000002 20000080
1fc0: 00000000 00000000 0008e050 0000001a 7eedfe0c 00000000 00000001 00000000
1fe0: 7eedfc70 7eedfc60 00010650 0002e7a0 00000010 00004205 00000000 00000000
Call trace: 
[<8199f2f0>] (usercopy_abort) from [<804cec50>] (__check_heap_object+0xd8/0xf4 mm/slub.c:5651)
[<804ceb78>] (__check_heap_object) from [<8050d758>] (check_heap_object mm/usercopy.c:196 [inline])
[<804ceb78>] (__check_heap_object) from [<8050d758>] (__check_object_size mm/usercopy.c:251 [inline])
[<804ceb78>] (__check_heap_object) from [<8050d758>] (__check_object_size+0x288/0x304 mm/usercopy.c:213)
 r8:dde858e0 r7:83e7d4c4 r6:00000000 r5:00000074 r4:83e7d450
[<8050d4d0>] (__check_object_size) from [<80209d94>] (check_object_size include/linux/thread_info.h:215 [inline])
[<8050d4d0>] (__check_object_size) from [<80209d94>] (__copy_from_user include/linux/uaccess.h:109 [inline])
[<8050d4d0>] (__check_object_size) from [<80209d94>] (user_regset_copyin include/linux/regset.h:268 [inline])
[<8050d4d0>] (__check_object_size) from [<80209d94>] (fpa_set+0x90/0x118 arch/arm/kernel/ptrace.c:587)
 r10:81a0056c r9:00000078 r8:81a005a4 r7:00000074 r6:20000084 r5:00000074
 r4:83e7d450
[<80209d04>] (fpa_set) from [<80252e9c>] (copy_regset_from_user include/linux/regset.h:337 [inline])
[<80209d04>] (fpa_set) from [<80252e9c>] (ptrace_regset kernel/ptrace.c:906 [inline])
[<80209d04>] (fpa_set) from [<80252e9c>] (ptrace_request+0x314/0xa70 kernel/ptrace.c:1218)
 r6:20000084 r5:83e7d400 r4:80209d04
[<80252b88>] (ptrace_request) from [<8020a1c4>] (arch_ptrace+0xb0/0x424 arch/arm/kernel/ptrace.c:818)
 r10:0000001a r9:83e78c00 r8:20000080 r7:00000000 r6:00000002 r5:00004202
 r4:20000080
[<8020a114>] (arch_ptrace) from [<80252840>] (__do_sys_ptrace kernel/ptrace.c:1285 [inline])
[<8020a114>] (arch_ptrace) from [<80252840>] (sys_ptrace+0x238/0x4e0 kernel/ptrace.c:1258)
 r7:00000000 r6:00000002 r5:83e7d400 r4:00004205
[<80252608>] (sys_ptrace) from [<80200060>] (ret_fast_syscall+0x0/0x1c arch/arm/mm/proc-v7.S:67)
Exception stack(0xdf971fa8 to 0xdf971ff0)
1fa0:                   00000000 00000000 00004205 00000c2e 00000002 20000080
1fc0: 00000000 00000000 0008e050 0000001a 7eedfe0c 00000000 00000001 00000000
1fe0: 7eedfc70 7eedfc60 00010650 0002e7a0
 r10:0000001a r9:83e78c00 r8:8020029c r7:0000001a r6:0008e050 r5:00000000
 r4:00000000
Code: e30b03bc e3480205 e58dc000 ebfff273 (e7f001f2) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	e30b03bc 	movw	r0, #46012	@ 0xb3bc
   4:	e3480205 	movt	r0, #33285	@ 0x8205
   8:	e58dc000 	str	ip, [sp]
   c:	ebfff273 	bl	0xffffc9e0
* 10:	e7f001f2 	udf	#18 <-- trapping instruction

Crashes (3364):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/08 09:25 upstream 87d6aab2389e 402f1df0 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
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/11/21 00:20 upstream bf9aa14fc523 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/20 22:39 upstream bf9aa14fc523 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/20 18:48 upstream bf9aa14fc523 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/20 18:44 upstream bf9aa14fc523 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/20 07:41 upstream d8d78a90e7fc 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/20 05:33 upstream d8d78a90e7fc 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/20 04:59 upstream d8d78a90e7fc 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/19 21:07 upstream 158f238aa69d 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/19 19:57 upstream 158f238aa69d 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/19 18:36 upstream 158f238aa69d 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/19 17:15 upstream 158f238aa69d 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/19 16:20 upstream 158f238aa69d 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/19 06:17 upstream 23acd177540d 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/19 02:59 upstream 23acd177540d 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/18 15:09 upstream adc218676eef 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/18 13:16 upstream adc218676eef 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/18 11:15 upstream adc218676eef 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/18 08:34 upstream adc218676eef 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/18 07:27 upstream adc218676eef 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/17 21:58 upstream 4a5df3796467 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/17 19:52 upstream 4a5df3796467 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/17 18:42 upstream 4a5df3796467 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/17 08:25 upstream b5a24181e461 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/17 05:42 upstream b5a24181e461 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/17 04:15 upstream b5a24181e461 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/17 04:02 upstream b5a24181e461 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/16 20:43 upstream e8bdb3c8be08 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/16 17:59 upstream e8bdb3c8be08 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/16 05:50 upstream f868cd251776 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/16 04:48 upstream f868cd251776 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/16 04:22 upstream f868cd251776 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/15 13:45 upstream cfaaa7d010d1 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/15 08:50 upstream cfaaa7d010d1 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/15 07:08 upstream cfaaa7d010d1 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/15 06:02 upstream cfaaa7d010d1 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/15 03:23 upstream cfaaa7d010d1 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/14 19:07 upstream 0a9b9d17f3a7 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/14 15:08 upstream 0a9b9d17f3a7 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/14 12:47 upstream 0a9b9d17f3a7 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/13 23:05 upstream f1b785f4c787 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/13 19:38 upstream f1b785f4c787 4dfba277 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/13 09:08 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/13 09:04 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 BUG: bad usercopy in fpa_set
2024/11/13 07:02 upstream 3022e9d00ebe 62026c85 .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.