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: 5283 Comm: syz.0.329 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:4495 pc : [<819ab1c8>] lr : [<802bcb54>] psr: 60000013 sp : dfcb9e38 ip : dfcb9d78 fp : dfcb9e5c r10: 0000001a r9 : 842d6c00 r8 : 8532e050 r7 : ddeb41a0 r6 : 00000000 r5 : 00000074 r4 : 00000050 r3 : 842d6c00 r2 : 00000000 r1 : 00000000 r0 : 00000066 Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none Control: 30c5387d Table: 8505a640 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 842d6c00 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 8532e000 pointer offset 80 size 3072 Register r9 information: slab task_struct start 842d6c00 pointer offset 0 size 3072 Register r10 information: non-paged memory Register r11 information: 2-page vmalloc region starting at 0xdfcb8000 allocated at kernel_clone+0xac/0x3e4 kernel/fork.c:2786 Register r12 information: 2-page vmalloc region starting at 0xdfcb8000 allocated at kernel_clone+0xac/0x3e4 kernel/fork.c:2786 Process syz.0.329 (pid: 5283, stack limit = 0xdfcb8000) Stack: (0xdfcb9e38 to 0xdfcba000) 9e20: 8205d6cc 8202efb0 9e40: 820445d4 00000050 00000074 842d6c00 dfcb9e8c dfcb9e60 804d0190 819ab13c 9e60: 00000074 dfcb9e70 802147e0 8532e050 00000074 00000000 8532e0c4 ddeb41a0 9e80: dfcb9ec4 dfcb9e90 8050ef5c 804d00c4 00000074 000000ff dfcb9eb4 8532e050 9ea0: 00000074 000000ff 00000000 20000040 842d6c00 0000001a dfcb9ef4 dfcb9ec8 9ec0: 80209d94 8050ece0 8532e000 dddd0400 dfcb9ef4 dfcb9ee0 819d0304 20000040 9ee0: 0000000c 000000ff dfcb9f6c dfcb9ef8 8020a448 80209d10 00000000 20000040 9f00: dfcb9f1c dfcb9f10 819d01d0 8027b9c0 dfcb9f6c dfcb9f20 802805d4 819d01ac 9f20: dfcb9f54 00000000 8027d444 60000013 8197d090 81994314 dfcb9f54 d9dfdd9f 9f40: 8532e000 0000000f 8532e000 d9dfdd9f 0000000f 8532e000 000000ff 00000000 9f60: dfcb9fa4 dfcb9f70 80252860 8020a120 80202cc0 d9dfdd9f dfcb9fac 00000000 9f80: 00000000 002862f4 0000001a 8020029c 842d6c00 0000001a 00000000 dfcb9fa8 9fa0: 80200060 80252634 00000000 00000000 0000000f 00000186 000000ff 20000040 9fc0: 00000000 00000000 002862f4 0000001a 00000000 00006364 003d0f00 76b650bc 9fe0: 76b64ec0 76b64eb0 00018af0 00133450 60000010 0000000f 00000000 00000000 Call trace: [<819ab130>] (usercopy_abort) from [<804d0190>] (__check_heap_object+0xd8/0xf4 mm/slub.c:5651) [<804d00b8>] (__check_heap_object) from [<8050ef5c>] (check_heap_object mm/usercopy.c:196 [inline]) [<804d00b8>] (__check_heap_object) from [<8050ef5c>] (__check_object_size mm/usercopy.c:251 [inline]) [<804d00b8>] (__check_heap_object) from [<8050ef5c>] (__check_object_size+0x288/0x304 mm/usercopy.c:213) r8:ddeb41a0 r7:8532e0c4 r6:00000000 r5:00000074 r4:8532e050 [<8050ecd4>] (__check_object_size) from [<80209d94>] (check_object_size include/linux/thread_info.h:215 [inline]) [<8050ecd4>] (__check_object_size) from [<80209d94>] (__copy_from_user include/linux/uaccess.h:110 [inline]) [<8050ecd4>] (__check_object_size) from [<80209d94>] (user_regset_copyin include/linux/regset.h:268 [inline]) [<8050ecd4>] (__check_object_size) from [<80209d94>] (fpa_set+0x90/0x118 arch/arm/kernel/ptrace.c:587) r10:0000001a r9:842d6c00 r8:20000040 r7:00000000 r6:000000ff r5:00000074 r4:8532e050 [<80209d04>] (fpa_set) from [<8020a448>] (copy_regset_from_user include/linux/regset.h:337 [inline]) [<80209d04>] (fpa_set) from [<8020a448>] (arch_ptrace+0x334/0x424 arch/arm/kernel/ptrace.c:762) r6:000000ff r5:0000000c r4:20000040 [<8020a114>] (arch_ptrace) from [<80252860>] (__do_sys_ptrace kernel/ptrace.c:1285 [inline]) [<8020a114>] (arch_ptrace) from [<80252860>] (sys_ptrace+0x238/0x4e0 kernel/ptrace.c:1258) r7:00000000 r6:000000ff r5:8532e000 r4:0000000f [<80252628>] (sys_ptrace) from [<80200060>] (ret_fast_syscall+0x0/0x1c arch/arm/mm/proc-v7.S:67) Exception stack(0xdfcb9fa8 to 0xdfcb9ff0) 9fa0: 00000000 00000000 0000000f 00000186 000000ff 20000040 9fc0: 00000000 00000000 002862f4 0000001a 00000000 00006364 003d0f00 76b650bc 9fe0: 76b64ec0 76b64eb0 00018af0 00133450 r10:0000001a r9:842d6c00 r8:8020029c r7:0000001a r6:002862f4 r5:00000000 r4:00000000 Code: e30d06d0 e3480205 e58dc000 ebfff273 (e7f001f2) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: e30d06d0 movw r0, #54992 @ 0xd6d0 4: e3480205 movt r0, #33285 @ 0x8205 8: e58dc000 str ip, [sp] c: ebfff273 bl 0xffffc9e0 * 10: e7f001f2 udf #18 <-- trapping instruction