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 UID: 0 PID: 6511 Comm: syz.2.517 Not tainted 6.12.0-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:4525 pc : [<819be580>] lr : [<802be434>] psr: 60000013 sp : e0361d90 ip : e0361cd0 fp : e0361db4 r10: 81a00568 r9 : 00000078 r8 : 85192450 r7 : ddeb0840 r6 : 00000000 r5 : 00000074 r4 : 00000050 r3 : 85194800 r2 : 00000000 r1 : 00000000 r0 : 00000066 Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none Control: 30c5387d Table: 85e8ccc0 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 85194800 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 85192400 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 0xe0360000 allocated at kernel_clone+0xac/0x3e4 kernel/fork.c:2787 Register r12 information: 2-page vmalloc region starting at 0xe0360000 allocated at kernel_clone+0xac/0x3e4 kernel/fork.c:2787 Process syz.2.517 (pid: 6511, stack limit = 0xe0360000) Stack: (0xe0361d90 to 0xe0362000) 1d80: 8205f678 82030fcc 820464dc 00000050 1da0: 00000074 00000078 e0361de4 e0361db8 804d5d54 819be4f4 00000074 e0361dc8 1dc0: 80214800 85192450 00000074 00000000 851924c4 ddeb0840 e0361e1c e0361de8 1de0: 80514b34 804d5c88 00000074 20000084 e0361e0c 85192450 00000074 20000084 1e00: 00000074 81a005a0 00000078 81a00568 e0361e4c e0361e20 80209db4 805148b8 1e20: 00000000 82eea280 00000064 e0361e2c e0361e2c 80209d24 85192400 20000084 1e40: e0361ef4 e0361e50 80253634 80209d30 00000000 20000000 20000000 81a0057c 1e60: 819e3204 00000000 e0361eb4 e0361e78 8020d0cc 8020c034 e0361e94 00000000 1e80: 8027fa10 00000000 00000000 00000000 00000000 00000000 00000000 00000000 1ea0: 00000000 85194800 e0361edc e0361eb8 8027e354 802af5ec 00000000 00000000 1ec0: e0361eec f409c014 85192400 20000080 00004202 00000002 00000000 20000080 1ee0: 85194800 0000001a e0361f6c e0361ef8 8020a1e4 8025332c 85192400 85192c84 1f00: e0361f1c e0361f10 819e36b0 8027c778 e0361f6c e0361f20 802813ec 819e368c 1f20: e0361f54 00000000 8027e354 60000013 81990410 819a7694 e0361f54 f409c014 1f40: 00004205 85192400 00004205 f409c014 85192400 00004205 00000002 00000000 1f60: e0361fa4 e0361f70 80252fdc 8020a140 80202cc0 f409c014 e0361fac 00000000 1f80: 00000000 002862f4 0000001a 8020029c 85194800 0000001a 00000000 e0361fa8 1fa0: 80200060 80252db0 00000000 00000000 00004205 00000064 00000002 20000080 1fc0: 00000000 00000000 002862f4 0000001a 00000000 00006364 003d0f00 76b470bc 1fe0: 76b46ec0 76b46eb0 00018af0 00133450 60000010 00004205 00000000 00000000 Call trace: [<819be4e8>] (usercopy_abort) from [<804d5d54>] (__check_heap_object+0xd8/0xf4 mm/slub.c:5651) [<804d5c7c>] (__check_heap_object) from [<80514b34>] (check_heap_object mm/usercopy.c:196 [inline]) [<804d5c7c>] (__check_heap_object) from [<80514b34>] (__check_object_size mm/usercopy.c:251 [inline]) [<804d5c7c>] (__check_heap_object) from [<80514b34>] (__check_object_size+0x288/0x304 mm/usercopy.c:213) r8:ddeb0840 r7:851924c4 r6:00000000 r5:00000074 r4:85192450 [<805148ac>] (__check_object_size) from [<80209db4>] (check_object_size include/linux/thread_info.h:228 [inline]) [<805148ac>] (__check_object_size) from [<80209db4>] (__copy_from_user include/linux/uaccess.h:110 [inline]) [<805148ac>] (__check_object_size) from [<80209db4>] (user_regset_copyin include/linux/regset.h:268 [inline]) [<805148ac>] (__check_object_size) from [<80209db4>] (fpa_set+0x90/0x118 arch/arm/kernel/ptrace.c:587) r10:81a00568 r9:00000078 r8:81a005a0 r7:00000074 r6:20000084 r5:00000074 r4:85192450 [<80209d24>] (fpa_set) from [<80253634>] (copy_regset_from_user include/linux/regset.h:337 [inline]) [<80209d24>] (fpa_set) from [<80253634>] (ptrace_regset kernel/ptrace.c:906 [inline]) [<80209d24>] (fpa_set) from [<80253634>] (ptrace_request+0x314/0xa78 kernel/ptrace.c:1218) r6:20000084 r5:85192400 r4:80209d24 [<80253320>] (ptrace_request) from [<8020a1e4>] (arch_ptrace+0xb0/0x424 arch/arm/kernel/ptrace.c:818) r10:0000001a r9:85194800 r8:20000080 r7:00000000 r6:00000002 r5:00004202 r4:20000080 [<8020a134>] (arch_ptrace) from [<80252fdc>] (__do_sys_ptrace kernel/ptrace.c:1285 [inline]) [<8020a134>] (arch_ptrace) from [<80252fdc>] (sys_ptrace+0x238/0x4dc kernel/ptrace.c:1258) r7:00000000 r6:00000002 r5:00004205 r4:85192400 [<80252da4>] (sys_ptrace) from [<80200060>] (ret_fast_syscall+0x0/0x1c arch/arm/mm/proc-v7.S:67) Exception stack(0xe0361fa8 to 0xe0361ff0) 1fa0: 00000000 00000000 00004205 00000064 00000002 20000080 1fc0: 00000000 00000000 002862f4 0000001a 00000000 00006364 003d0f00 76b470bc 1fe0: 76b46ec0 76b46eb0 00018af0 00133450 r10:0000001a r9:85194800 r8:8020029c r7:0000001a r6:002862f4 r5:00000000 r4:00000000 Code: e30f067c e3480205 e58dc000 ebfff265 (e7f001f2) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: e30f067c movw r0, #63100 @ 0xf67c 4: e3480205 movt r0, #33285 @ 0x8205 8: e58dc000 str ip, [sp] c: ebfff265 bl 0xffffc9a8 * 10: e7f001f2 udf #18 <-- trapping instruction