syzbot


KASAN: use-after-free Read in do_page_fault

Status: upstream: reported C repro on 2024/04/25 07:38
Reported-by: syzbot+07fb765afb817a7def53@syzkaller.appspotmail.com
First crash: 354d, last: 6d22h
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: global-out-of-bounds Read in do_page_fault riscv 1 953d 949d 0/28 auto-obsoleted due to no activity on 2022/11/28 23:54
upstream KASAN: stack-out-of-bounds Read in do_page_fault net 1 816d 812d 0/28 auto-obsoleted due to no activity on 2023/04/15 09:50
Last patch testing requests (6)
Created Duration User Patch Repo Result
2025/04/01 06:14 15m retest repro android12-5.4 report log
2025/04/01 06:14 1h04m retest repro android12-5.4 report log
2025/01/04 01:07 2m retest repro android12-5.4 error
2024/10/19 17:26 8m retest repro android12-5.4 report log
2024/08/10 09:48 8m retest repro android12-5.4 report log
2024/06/01 09:05 6m retest repro android12-5.4 report log

Sample crash report:
==================================================================
BUG: KASAN: slab-out-of-bounds in user_mode arch/x86/include/asm/ptrace.h:131 [inline]
BUG: KASAN: slab-out-of-bounds in trace_page_fault_entries arch/x86/mm/fault.c:1516 [inline]
BUG: KASAN: slab-out-of-bounds in do_page_fault+0x66/0x330 arch/x86/mm/fault.c:1528
Read of size 8 at addr ffff8881f5d87ee0 by task kworker/u4:0/7

CPU: 1 PID: 7 Comm: kworker/u4:0 Not tainted 5.4.289-syzkaller-00030-gcb850525fc3e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
------------[ cut here ]------------
Bad or missing usercopy whitelist? Kernel memory overwrite attempt detected to SLUB object 'signal_cache' (offset 288, size 8)!
WARNING: CPU: 1 PID: 7 at mm/usercopy.c:80 usercopy_warn+0xaf/0xc0 mm/usercopy.c:75
Modules linked in:
CPU: 1 PID: 7 Comm: kworker/u4:0 Not tainted 5.4.289-syzkaller-00030-gcb850525fc3e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:usercopy_warn+0xaf/0xc0 mm/usercopy.c:75
Code: c6 05 30 f5 b0 04 01 48 c7 c5 80 92 e3 84 48 0f 44 e8 48 c7 c7 00 91 e3 84 4d 89 e1 41 57 41 56 55 e8 c5 74 a1 ff 48 83 c4 18 <0f> 0b e9 73 ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 41 56 53 4d 89
RSP: 0018:ffff8881f5d87940 EFLAGS: 00010092
RAX: 37d178857fd60c00 RBX: ffffffff855a6f73 RCX: ffff8881f5d60000
RDX: 0000000080000199 RSI: 0000000080000199 RDI: 0000000000000000
RBP: ffffffff84e39280 R08: ffffffff814d6d92 R09: ffffed103ede5262
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff84a73dc0
R13: dffffc0000000000 R14: 0000000000000120 R15: 0000000000000008
FS:  0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffe8ffffb00288 CR3: 00000001f5c2a000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
---[ end trace 28355765957b1aa8 ]---
Workqueue: events_unbound toggle_allocation_gate
Call Trace:

Allocated by task 2144734208:
================================================================================
UBSAN: array-index-out-of-bounds in lib/stackdepot.c:205:15
index 1144965 is out of range for type 'void *[8192]'
CPU: 1 PID: 7 Comm: kworker/u4:0 Tainted: G        W         5.4.289-syzkaller-00030-gcb850525fc3e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Workqueue: events_unbound toggle_allocation_gate
Call Trace:
================================================================================
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7 Comm: kworker/u4:0 Tainted: G        W         5.4.289-syzkaller-00030-gcb850525fc3e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:stack_depot_fetch+0x61/0x70 lib/stackdepot.c:205
Code: 48 8d 4c 18 18 49 89 0e 8b 44 18 0c 5b 41 5e 41 5f c3 48 c7 c7 80 ca 07 86 4c 89 fe e8 a8 3a 00 00 41 81 ff ff 1f 00 00 76 c5 <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 41 57 41 56 41 55
RSP: 0018:ffff8881f5d87cc0 EFLAGS: 00010012
RAX: ffffffff8248d4bf RBX: 0000000037d17885 RCX: ffff8881f5d60000
RDX: 0000000080000199 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881f5d87d78 R08: ffffffff8248d4b6 R09: ffffed103ede5262
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881f5cf1180
R13: ffff8881f5d87d40 R14: ffff8881f5d87d00 R15: 0000000000117885
FS:  0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffe8ffffb00288 CR3: 00000001f5c2a000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
Modules linked in:
---[ end trace 28355765957b1aa9 ]---
RIP: 0010:stack_depot_fetch+0x61/0x70 lib/stackdepot.c:205
Code: 48 8d 4c 18 18 49 89 0e 8b 44 18 0c 5b 41 5e 41 5f c3 48 c7 c7 80 ca 07 86 4c 89 fe e8 a8 3a 00 00 41 81 ff ff 1f 00 00 76 c5 <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 41 57 41 56 41 55
RSP: 0018:ffff8881f5d87cc0 EFLAGS: 00010012
RAX: ffffffff8248d4bf RBX: 0000000037d17885 RCX: ffff8881f5d60000
RDX: 0000000080000199 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881f5d87d78 R08: ffffffff8248d4b6 R09: ffffed103ede5262
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881f5cf1180
R13: ffff8881f5d87d40 R14: ffff8881f5d87d00 R15: 0000000000117885
FS:  0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffe8ffffb00288 CR3: 00000001f5c2a000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/08 07:26 android12-5.4 cb850525fc3e ef44b750 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: slab-out-of-bounds Read in do_page_fault
2024/04/25 07:31 android12-5.4 2d5d8240a7cb 8bdc0f22 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: slab-out-of-bounds Read in do_page_fault
2025/03/17 09:15 android12-5.4 6b07fcd94a6a 948c34e4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2025/03/14 12:30 android12-5.4 6b07fcd94a6a e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2025/03/12 21:33 android12-5.4 6b07fcd94a6a 1a5d9317 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2025/03/02 10:35 android12-5.4 6b07fcd94a6a c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2025/02/28 10:48 android12-5.4 6b07fcd94a6a 6a8fcbc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2025/02/18 04:44 android12-5.4 39762b7a60e9 429ea007 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2025/02/13 06:56 android12-5.4 39762b7a60e9 b27c2402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2025/02/08 06:44 android12-5.4 cb850525fc3e ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2024/05/18 09:02 android12-5.4 51cf29fc2bfc c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2024/05/15 10:04 android12-5.4 51cf29fc2bfc 94b087b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2024/05/15 06:43 android12-5.4 51cf29fc2bfc fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2024/05/08 11:04 android12-5.4 51cf29fc2bfc 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2024/05/03 16:32 android12-5.4 51cf29fc2bfc dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2024/04/25 07:03 android12-5.4 2d5d8240a7cb 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2024/04/21 01:17 android12-5.4 2d5d8240a7cb af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: use-after-free Read in do_page_fault
2025/04/03 23:45 android12-5.4 41adfeb3d639 d7ae3a11 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: slab-out-of-bounds Read in do_page_fault
2025/03/11 05:42 android12-5.4 6b07fcd94a6a 16256247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: stack-out-of-bounds Read in do_page_fault
2025/03/02 04:28 android12-5.4 6b07fcd94a6a c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: stack-out-of-bounds Read in do_page_fault
2024/05/12 07:30 android12-5.4 51cf29fc2bfc 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: stack-out-of-bounds Read in do_page_fault
2024/04/28 02:58 android12-5.4 2d5d8240a7cb 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan KASAN: stack-out-of-bounds Read in do_page_fault
* Struck through repros no longer work on HEAD.