syzbot


KASAN: stack-out-of-bounds Read in profile_pc

Status: upstream: reported C repro on 2021/05/27 02:31
Reported-by: syzbot+0ca27feeb396418459ae@syzkaller.appspotmail.com
First crash: 1274d, last: 98d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 KASAN: stack-out-of-bounds Read in profile_pc C error 775 139d 611d 0/3 auto-obsoleted due to no activity on 2024/09/13 06:51
linux-6.1 KASAN: stack-out-of-bounds Read in profile_pc C done 690 139d 556d 3/3 fixed on 2024/08/15 03:06
upstream KASAN: stack-out-of-bounds Read in profile_pc kernel C error done 9302 145d 1270d 28/28 fixed on 2024/10/31 09:35
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/10/24 10:53 1h06m retest repro android12-5.4 OK log
2024/10/24 10:53 1h08m retest repro android12-5.4 OK log
2024/10/24 10:53 21m retest repro android12-5.4 OK log
2024/10/24 10:53 24m retest repro android12-5.4 OK log
2024/10/24 10:53 14m retest repro android12-5.4 OK log
2024/10/10 18:09 1h11m retest repro android12-5.4 OK log
2024/10/10 18:09 14m retest repro android12-5.4 OK log
2024/10/10 18:09 13m retest repro android12-5.4 OK log
2024/10/10 18:09 14m retest repro android12-5.4 OK log
2024/10/10 18:09 18m retest repro android12-5.4 OK log

Sample crash report:
==================================================================
BUG: KASAN: stack-out-of-bounds in profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42
Read of size 8 at addr ffff8881dbb57660 by task syz-executor690/356

CPU: 0 PID: 356 Comm: syz-executor690 Not tainted 5.4.268-syzkaller-00012-g51cf29fc2bfc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1d8/0x241 lib/dump_stack.c:118
 print_address_description+0x8c/0x600 mm/kasan/report.c:384
 __kasan_report+0xf3/0x120 mm/kasan/report.c:516
 kasan_report+0x30/0x60 mm/kasan/common.c:653
 profile_pc+0xa4/0xe0 arch/x86/kernel/time.c:42
 profile_tick+0xb9/0x100 kernel/profile.c:416
 tick_sched_handle kernel/time/tick-sched.c:206 [inline]
 tick_sched_timer+0x237/0x3c0 kernel/time/tick-sched.c:1342
 __run_hrtimer kernel/time/hrtimer.c:1581 [inline]
 __hrtimer_run_queues+0x3e9/0xb90 kernel/time/hrtimer.c:1643
 hrtimer_interrupt+0x38a/0x890 kernel/time/hrtimer.c:1705
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1122 [inline]
 smp_apic_timer_interrupt+0x110/0x460 arch/x86/kernel/apic/apic.c:1147
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834
 </IRQ>

The buggy address belongs to the page:
page:ffffea00076ed5c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0
flags: 0x8000000000000000()
raw: 8000000000000000 ffffea00076ed5c8 ffffea00076ed5c8 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0x400dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO)
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook mm/page_alloc.c:2165 [inline]
 prep_new_page+0x18f/0x370 mm/page_alloc.c:2171
 get_page_from_freelist+0x2d13/0x2d90 mm/page_alloc.c:3794
 __alloc_pages_nodemask+0x393/0x840 mm/page_alloc.c:4891
 __alloc_pages include/linux/gfp.h:503 [inline]
 __alloc_pages_node include/linux/gfp.h:516 [inline]
 alloc_pages_node include/linux/gfp.h:530 [inline]
 alloc_thread_stack_node kernel/fork.c:259 [inline]
 dup_task_struct+0x85/0x600 kernel/fork.c:886
 copy_process+0x56d/0x3230 kernel/fork.c:1889
 _do_fork+0x197/0x900 kernel/fork.c:2399
 __do_sys_clone kernel/fork.c:2557 [inline]
 __se_sys_clone kernel/fork.c:2538 [inline]
 __x64_sys_clone+0x26b/0x2c0 kernel/fork.c:2538
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1176 [inline]
 __free_pages_ok+0x847/0x950 mm/page_alloc.c:1438
 free_the_page mm/page_alloc.c:4953 [inline]
 __free_pages+0x91/0x140 mm/page_alloc.c:4959
 free_thread_stack kernel/fork.c:299 [inline]
 release_task_stack kernel/fork.c:439 [inline]
 put_task_stack+0x212/0x260 kernel/fork.c:450
 finish_task_switch+0x24a/0x590 kernel/sched/core.c:3479
 context_switch kernel/sched/core.c:3611 [inline]
 __schedule+0xb0d/0x1320 kernel/sched/core.c:4307
 schedule_idle+0x50/0x80 kernel/sched/core.c:4403
 do_idle+0x609/0x660 kernel/sched/idle.c:288
 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:356
 start_secondary+0x3a5/0x460 arch/x86/kernel/smpboot.c:277
 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:241

addr ffff8881dbb57660 is located in stack of task syz-executor690/356 at offset 0 in frame:
 _raw_spin_lock+0x0/0x1b0

this frame has 1 object:
 [32, 36) 'val.i.i.i'

Memory state around the buggy address:
 ffff8881dbb57500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881dbb57580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8881dbb57600: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
                                                       ^
 ffff8881dbb57680: 04 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881dbb57700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (1799):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/08 19:54 android12-5.4 51cf29fc2bfc 20bf80e1 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2022/11/26 18:58 android12-5.4 c80a5b2e7f63 f4470a7b .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2022/11/15 01:16 android12-5.4 5a34019eb955 97de9cfc .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2021/05/27 04:00 android12-5.4 1d3dcc209600 858ea628 .config console log report syz C ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2023/10/16 10:27 android12-5.4 5f1cbd78af59 f757a323 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/03 17:49 android12-5.4 58de09405d1e 1ecfa2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/03 16:03 android12-5.4 58de09405d1e 1ecfa2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/03 09:36 android12-5.4 58de09405d1e 1ecfa2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/03 07:36 android12-5.4 58de09405d1e 1ecfa2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/03 05:12 android12-5.4 58de09405d1e 1ecfa2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/02 15:26 android12-5.4 58de09405d1e 07f0a0a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/02 11:14 android12-5.4 58de09405d1e 07f0a0a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/02 07:54 android12-5.4 58de09405d1e b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/02 07:53 android12-5.4 58de09405d1e b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/02 04:19 android12-5.4 58de09405d1e b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/02 02:44 android12-5.4 58de09405d1e b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/01 23:56 android12-5.4 58de09405d1e b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/01 22:51 android12-5.4 58de09405d1e b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/01 16:59 android12-5.4 4275fce9fe94 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/01 15:09 android12-5.4 4275fce9fe94 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/01 14:09 android12-5.4 4275fce9fe94 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/01 10:59 android12-5.4 4275fce9fe94 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/07/01 09:54 android12-5.4 4275fce9fe94 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/30 21:41 android12-5.4 4275fce9fe94 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/30 19:25 android12-5.4 4275fce9fe94 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/30 18:11 android12-5.4 4275fce9fe94 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/30 15:06 android12-5.4 4275fce9fe94 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/30 13:55 android12-5.4 4275fce9fe94 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/30 02:30 android12-5.4 4275fce9fe94 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/29 22:34 android12-5.4 4275fce9fe94 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/29 20:03 android12-5.4 4275fce9fe94 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/29 11:29 android12-5.4 4275fce9fe94 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/29 09:33 android12-5.4 4275fce9fe94 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/29 07:08 android12-5.4 4275fce9fe94 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/29 03:03 android12-5.4 51e9abf68baf 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/29 01:49 android12-5.4 51e9abf68baf 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/28 19:02 android12-5.4 51e9abf68baf 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/28 18:47 android12-5.4 51e9abf68baf 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/28 17:22 android12-5.4 51e9abf68baf 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/28 16:06 android12-5.4 6f97bd951d82 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/28 14:55 android12-5.4 6f97bd951d82 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/28 12:09 android12-5.4 6f97bd951d82 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/28 11:51 android12-5.4 6f97bd951d82 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/28 10:51 android12-5.4 6f97bd951d82 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/28 10:40 android12-5.4 6f97bd951d82 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/28 09:37 android12-5.4 6f97bd951d82 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/28 08:34 android12-5.4 6f97bd951d82 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/28 08:06 android12-5.4 6f97bd951d82 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/28 07:49 android12-5.4 6f97bd951d82 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/06/27 11:35 android12-5.4 6f97bd951d82 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/05/07 15:32 android12-5.4 51cf29fc2bfc cb2dcc0e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/05/03 07:49 android12-5.4 51cf29fc2bfc ddfc15a1 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/05/03 07:31 android12-5.4 51cf29fc2bfc ddfc15a1 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/04/04 21:48 android12-5.4 d0d34dcb02cc 0ee3535e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/04/03 14:28 android12-5.4 d0d34dcb02cc 7925100d .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/02/22 22:42 android12-5.4 1b3143b9b166 8d446f15 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2024/01/16 18:40 android12-5.4 57a39998c138 2a7bcc7f .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2023/12/10 08:22 android12-5.4 1303f659c2b1 28b24332 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2023/08/29 02:28 android12-5.4 c83e2462239e 7ba13a15 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2023/08/28 22:38 android12-5.4 c83e2462239e 7ba13a15 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2023/08/26 21:57 android12-5.4 c83e2462239e 7ba13a15 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2023/07/07 09:32 android12-5.4 6d5c2c1877e5 22ae5830 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2023/03/21 16:08 android12-5.4 07edbcca3d39 7939252e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2023/02/23 12:57 android12-5.4 66c3e3ab77a2 9e2ebb3c .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
2021/05/27 02:30 android12-5.4 1d3dcc209600 858ea628 .config console log report info ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in profile_pc
* Struck through repros no longer work on HEAD.