syzbot


android-4.4 boot error: KASAN: stack-out-of-bounds Write in reserve_bootmem_region

Status: closed as invalid on 2018/12/16 15:30
First crash: 2303d, last: 2303d

Sample crash report:
Kernel command line: BOOT_IMAGE=/vmlinuz root=/dev/sda1 console=ttyS0 earlyprintk=serial vsyscall=native rodata=n ftrace_dump_on_oops=orig_cpu oops=panic panic_on_warn=1 nmi_watchdog=panic panic=86400 workqueue.watchdog_thresh=120
PID hash table entries: 4096 (order: 3, 32768 bytes)
Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
==================================================================
BUG: KASAN: stack-out-of-bounds in INIT_LIST_HEAD include/linux/list.h:27 [inline]
BUG: KASAN: stack-out-of-bounds in reserve_bootmem_region+0xdf/0x130 mm/page_alloc.c:1014
Write of size 8 at addr ffffea0000047ce0 by task swapper/0

CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.109-g8cbe01c #10
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 0000000000000000 7ffefc9291064b12 ffffffff84207ce8 ffffffff81d0289d
 ffffea0000047ce0 ffffea0000047ce0 0000000000000001 ffffea0000047ce0
 ffffea0000047ce0 ffffffff84207d20 ffffffff814fad79 ffffea0000047ce0
Call Trace:
 [<ffffffff81d0289d>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d0289d>] dump_stack+0xc1/0x124 lib/dump_stack.c:51
 [<ffffffff814fad79>] print_address_description+0x189/0x260 mm/kasan/report.c:252
 [<ffffffff814fb175>] kasan_report_error mm/kasan/report.c:351 [inline]
 [<ffffffff814fb175>] kasan_report+0x285/0x370 mm/kasan/report.c:408
 [<ffffffff814fb377>] __asan_report_store8_noabort+0x17/0x20 mm/kasan/report.c:434
 [<ffffffff848fa03b>] INIT_LIST_HEAD include/linux/list.h:27 [inline]
 [<ffffffff848fa03b>] reserve_bootmem_region+0xdf/0x130 mm/page_alloc.c:1014
 [<ffffffff8486ce8e>] free_low_memory_core_early mm/nobootmem.c:134 [inline]
 [<ffffffff8486ce8e>] free_all_bootmem+0xf2/0x24d mm/nobootmem.c:198
 [<ffffffff8484fb27>] mem_init+0x13/0x74 arch/x86/mm/init_64.c:1055
 [<ffffffff8481b475>] mm_init init/main.c:486 [inline]
 [<ffffffff8481b475>] start_kernel+0x31d/0x6e9 init/main.c:556
 [<ffffffff8481a312>] x86_64_start_reservations+0x2a/0x2c arch/x86/kernel/head64.c:196
 [<ffffffff8481a454>] x86_64_start_kernel+0x140/0x163 arch/x86/kernel/head64.c:185


Memory state around the buggy address:
 ffffea0000047b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffffea0000047c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffea0000047c80: 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 00 00
                                                       ^
 ffffea0000047d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffffea0000047d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 0 Comm: swapper Tainted: G    B           4.4.109-g8cbe01c #10
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 0000000000000000 7ffefc9291064b12 ffffffff84207c40 ffffffff81d0289d
 ffffffff83fb3615 ffffffff84207d18 0000000000000001 ffffea0000047ce0
 ffffea0000047ce0 ffffffff84207d08 ffffffff814176ca 0000000041b58ab3
Call Trace:
 [<ffffffff81d0289d>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d0289d>] dump_stack+0xc1/0x124 lib/dump_stack.c:51
 [<ffffffff814176ca>] panic+0x1aa/0x388 kernel/panic.c:112
 [<ffffffff814fabd0>] kasan_end_report+0x50/0x50 mm/kasan/report.c:176
 [<ffffffff814fb04c>] kasan_report_error mm/kasan/report.c:356 [inline]
 [<ffffffff814fb04c>] kasan_report+0x15c/0x370 mm/kasan/report.c:408
 [<ffffffff814fb377>] __asan_report_store8_noabort+0x17/0x20 mm/kasan/report.c:434
 [<ffffffff848fa03b>] INIT_LIST_HEAD include/linux/list.h:27 [inline]
 [<ffffffff848fa03b>] reserve_bootmem_region+0xdf/0x130 mm/page_alloc.c:1014
 [<ffffffff8486ce8e>] free_low_memory_core_early mm/nobootmem.c:134 [inline]
 [<ffffffff8486ce8e>] free_all_bootmem+0xf2/0x24d mm/nobootmem.c:198
 [<ffffffff8484fb27>] mem_init+0x13/0x74 arch/x86/mm/init_64.c:1055
 [<ffffffff8481b475>] mm_init init/main.c:486 [inline]
 [<ffffffff8481b475>] start_kernel+0x31d/0x6e9 init/main.c:556
 [<ffffffff8481a312>] x86_64_start_reservations+0x2a/0x2c arch/x86/kernel/head64.c:196
 [<ffffffff8481a454>] x86_64_start_kernel+0x140/0x163 arch/x86/kernel/head64.c:185
Rebooting in 86400 seconds..
ACPI MEMORY or I/O RESET_REG.
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Initializing cgroup subsys schedtune
Linux version 4.4.109-g8cbe01c (syzkaller@ci) (gcc version 7.1.1 20170620 (GCC) ) #10 SMP PREEMPT Tue Jan 2 20:37:39 UTC 2018
Command line: BOOT_IMAGE=/vmlinuz root=/dev/sda1 console=ttyS0 earlyprintk=serial vsyscall=native rodata=n ftrace_dump_on_oops=orig_cpu oops=panic panic_on_warn=1 nmi_watchdog=panic panic=86400 workqueue.watchdog_thresh=120
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
x86/fpu: Supporting XSAVE feature 0x01: 'x87 floating point registers'
x86/fpu: Supporting XSAVE feature 0x02: 'SSE registers'
x86/fpu: Supporting XSAVE feature 0x04: 'AVX registers'
x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
x86/fpu: Using 'eager' FPU context switches.
e820: BIOS-provided physical RAM map:
BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
BIOS-e820: [mem 0x0000000000100000-0x00000000bfffcfff] usable
BIOS-e820: [mem 0x00000000bfffd000-0x00000000bfffffff] reserved
BIOS-e820: [mem 0x00000000fffbc000-0x00000000ffffffff] reserved
BIOS-e820: [mem 0x0000000100000000-0x000000021fffffff] usable
bootconsole [earlyser0] enabled
NX (Execute Disable) protection: active
SMBIOS 2.4 present.
Hypervisor detected: KVM
e820: last_pfn = 0x220000 max_arch_pfn = 0x400000000
x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WC  UC- WT  
e820: last_pfn = 0xbfffd max_arch_pfn = 0x400000000
found SMP MP-table at [mem 0x000f32c0-0x000f32cf] mapped at [ffff8800000f32c0]
Scanning 1 areas for low memory corruption
Using GB pages for direct mapping
ACPI: Early table checksum verification disabled
ACPI: RSDP 0x00000000000F3090 000014 (v00 Google)
ACPI: RSDT 0x00000000BFFFDC70 000034 (v01 Google GOOGRSDT 00000001 GOOG 00000001)
ACPI: FACP 0x00000000BFFFFF00 0000F4 (v02 Google GOOGFACP 00000001 GOOG 00000001)
ACPI: DSDT 0x00000000BFFFDCB0 0017B2 (v01 Google GOOGDSDT 00000001 GOOG 00000001)
ACPI: FACS 0x00000000BFFFFEC0 000040
ACPI: FACS 0x00000000BFFFFEC0 000040
ACPI: SSDT 0x00000000BFFFF590 000930 (v01 Google GOOGSSDT 00000001 GOOG 00000001)
ACPI: APIC 0x00000000BFFFF4A0 000076 (v01 Google GOOGAPIC 00000001 GOOG 00000001)
ACPI: WAET 0x00000000BFFFF470 000028 (v01 Google GOOGWAET 00000001 GOOG 00000001)
kvm-clock: Using msrs 4b564d01 and 4b564d00
kvm-clock: cpu 0, msr 2:1fffd001, primary cpu clock
kvm-clock: using sched offset of 1298781290 cycles
clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
Zone ranges:
  DMA      [mem 0x0000000000001000-0x0000000000ffffff]
  DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
  Normal   [mem 0x0000000100000000-0x000000021fffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000000001000-0x000000000009efff]
  node   0: [mem 0x0000000000100000-0x00000000bfffcfff]
  node   0: [mem 0x0000000100000000-0x000000021fffffff]
Initmem setup node 0 [mem 0x0000000000001000-0x000000021fffffff]
kasan: KernelAddressSanitizer initialized
ACPI: PM-Timer IO Port: 0xb008
ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
Using ACPI (MADT) for SMP configuration information
smpboot: Allowing 2 CPUs, 0 hotplug CPUs
PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
PM: Registered nosave memory: [mem 0xbfffd000-0xbfffffff]
PM: Registered nosave memory: [mem 0xc0000000-0xfffbbfff]
PM: Registered nosave memory: [mem 0xfffbc000-0xffffffff]
e820: [mem 0xc0000000-0xfffbbfff] available for PCI devices
Booting paravirtualized kernel on KVM
clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 42 pages/cpu @ffff8801db200000 s132680 r8192 d31160 u1048576
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 1935238
Kernel command line: BOOT_IMAGE=/vmlinuz root=/dev/sda1 console=ttyS0 earlyprintk=serial vsyscall=native rodata=n ftrace_dump_on_oops=orig_cpu oops=panic panic_on_warn=1 nmi_watchdog=panic panic=86400 workqueue.watchdog_thresh=120
PID hash table entries: 4096 (order: 3, 32768 bytes)
Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
==================================================================
BUG: KASAN: stack-out-of-bounds in INIT_LIST_HEAD include/linux/list.h:27 [inline]
BUG: KASAN: stack-out-of-bounds in reserve_bootmem_region+0xdf/0x130 mm/page_alloc.c:1014
Write of size 8 at addr ffffea0000047ce0 by task swapper/0

CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.109-g8cbe01c #10
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 0000000000000000 763fb0f68746ff76 ffffffff84207ce8 ffffffff81d0289d
 ffffea0000047ce0 ffffea0000047ce0 0000000000000001 ffffea0000047ce0
 ffffea0000047ce0 ffffffff84207d20 ffffffff814fad79 ffffea0000047ce0
Call Trace:
 [<ffffffff81d0289d>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d0289d>] dump_stack+0xc1/0x124 lib/dump_stack.c:51
 [<ffffffff814fad79>] print_address_description+0x189/0x260 mm/kasan/report.c:252
 [<ffffffff814fb175>] kasan_report_error mm/kasan/report.c:351 [inline]
 [<ffffffff814fb175>] kasan_report+0x285/0x370 mm/kasan/report.c:408
 [<ffffffff814fb377>] __asan_report_store8_noabort+0x17/0x20 mm/kasan/report.c:434
 [<ffffffff848fa03b>] INIT_LIST_HEAD include/linux/list.h:27 [inline]
 [<ffffffff848fa03b>] reserve_bootmem_region+0xdf/0x130 mm/page_alloc.c:1014
 [<ffffffff8486ce8e>] free_low_memory_core_early mm/nobootmem.c:134 [inline]
 [<ffffffff8486ce8e>] free_all_bootmem+0xf2/0x24d mm/nobootmem.c:198
 [<ffffffff8484fb27>] mem_init+0x13/0x74 arch/x86/mm/init_64.c:1055
 [<ffffffff8481b475>] mm_init init/main.c:486 [inline]
 [<ffffffff8481b475>] start_kernel+0x31d/0x6e9 init/main.c:556
 [<ffffffff8481a312>] x86_64_start_reservations+0x2a/0x2c arch/x86/kernel/head64.c:196
 [<ffffffff8481a454>] x86_64_start_kernel+0x140/0x163 arch/x86/kernel/head64.c:185


Memory state around the buggy address:
 ffffea0000047b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffffea0000047c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffea0000047c80: 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 00 00
                                                       ^
 ffffea0000047d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffffea0000047d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/01/02 20:23 https://android.googlesource.com/kernel/common android-4.4 8cbe01c651bb 00193447 .config console log report ci-android-44-kasan-gce-386
* Struck through repros no longer work on HEAD.