syzbot


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

Status: closed as invalid on 2018/07/08 10:08
Subsystems: mm
[Documentation on labels]
First crash: 2600d, last: 2600d

Sample crash report:
==================================================================
BUG: KASAN: stack-out-of-bounds in unmap_vmas+0x1ab/0x1f0 mm/memory.c:1582
Read of size 8 at addr ffff8801ae157988 by task udevd/5889
BUG: unable to handle kernel paging request at ffff8801cba9b540

CPU: 0 PID: 5889 Comm: udevd Not tainted 4.18.0-rc3+ #48
PGD b4e1067 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
P4D b4e1067 
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113
PUD 1d9bb3063 
PMD 1acb52063 
PTE ffff8801acb525f8
Oops: 0002 [#1] SMP KASAN
 print_address_description+0x6c/0x20b mm/kasan/report.c:256
CPU: 1 PID: 5885 Comm: syz-executor6 Not tainted 4.18.0-rc3+ #48
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:arch_atomic64_add arch/x86/include/asm/atomic64_64.h:46 [inline]
RIP: 0010:atomic64_add include/asm-generic/atomic-instrumented.h:133 [inline]
RIP: 0010:atomic_long_add include/asm-generic/atomic-long.h:198 [inline]
RIP: 0010:update_tg_load_avg kernel/sched/fair.c:3400 [inline]
RIP: 0010:update_blocked_averages+0xb7b/0x1770 kernel/sched/fair.c:7665
 kasan_report_error mm/kasan/report.c:354 [inline]
 kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412
Code: 89 
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433
fe 48 
 unmap_vmas+0x1ab/0x1f0 mm/memory.c:1582
31 
 exit_mmap+0x2c2/0x5b0 mm/mmap.c:3105
c6 
48 
 __mmput kernel/fork.c:970 [inline]
 mmput+0x265/0x620 kernel/fork.c:991
29 fe 
48 39 
d6 
0f 86 
c8 f8 
ff 
 exec_mmap fs/exec.c:1044 [inline]
 flush_old_exec+0xbaf/0x2100 fs/exec.c:1276
ff 49 
8d 
bc 24 
80 
01 
00 00 
be 08 
00 00 
00 
e8 0c 
db 62 
00 
48 
 load_elf_binary+0xa33/0x5610 fs/binfmt_elf.c:869
8b 
85 
f8 
fc 
 search_binary_handler+0x17d/0x570 fs/exec.c:1653
ff 
 exec_binprm fs/exec.c:1695 [inline]
 __do_execve_file.isra.36+0x171d/0x2730 fs/exec.c:1819
ff <f0> 
49 
01 
84 24 
80 
01 
00 
00 48 
8b 85 
30 fd 
ff 
ff 
4c 8b 
85 
f0 
fc 
 do_execveat_common fs/exec.c:1866 [inline]
 do_execve fs/exec.c:1883 [inline]
 __do_sys_execve fs/exec.c:1964 [inline]
 __se_sys_execve fs/exec.c:1959 [inline]
 __x64_sys_execve+0x8f/0xc0 fs/exec.c:1959
ff 
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
RSP: 0018:ffff8801daf07838 EFLAGS: 00010046
RAX: 00000000000001a9 RBX: ffff8801daf07b60 RCX: ffffffff8156f9b4
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8801cba9b540
RBP: ffff8801daf07b88 R08: ffffed00397536a9 R09: ffffed00397536a8
R10: ffffed00397536a8 R11: ffff8801cba9b547 R12: ffff8801cba9b3c0
R13: ffff8801ab3a9d00 R14: ffff8801d8482a00 R15: dffffc0000000000
FS:  00007fb6f6255700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff8801cba9b540 CR3: 000000019ea34000 CR4: 00000000001406e0
DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
RIP: 0033:0x7ff16ecce207
 <IRQ>
Code: 
Bad RIP value.
RSP: 002b:00007ffcba7d85a8 EFLAGS: 00000202
 ORIG_RAX: 000000000000003b
RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007ff16ecce207
RDX: 00000000007d6630 RSI: 00007ffcba7d86a0 RDI: 00007ffcba7d96b0
RBP: 0000000000625500 R08: 0000000000005ed7 R09: 0000000000005ed7
R10: 0000000000000000 R11: 0000000000000202 R12: 00000000007d6630
R13: 0000000000000007 R14: 00000000007cf250 R15: 0000000000000005

Allocated by task 901951312:
 run_rebalance_domains+0x350/0x4c0 kernel/sched/fair.c:9883
 __do_softirq+0x2e8/0xb17 kernel/softirq.c:288
 invoke_softirq kernel/softirq.c:368 [inline]
 irq_exit+0x1d1/0x200 kernel/softirq.c:408
 exiting_irq arch/x86/include/asm/apic.h:527 [inline]
 smp_apic_timer_interrupt+0x186/0x730 arch/x86/kernel/apic/apic.c:1052
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:863
 </IRQ>
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
CR2: ffff8801cba9b540
---[ end trace 6bf89fb6f5cb894f ]---
BUG: unable to handle kernel paging request at ffffffff8c42b160
RIP: 0010:arch_atomic64_add arch/x86/include/asm/atomic64_64.h:46 [inline]
RIP: 0010:atomic64_add include/asm-generic/atomic-instrumented.h:133 [inline]
RIP: 0010:atomic_long_add include/asm-generic/atomic-long.h:198 [inline]
RIP: 0010:update_tg_load_avg kernel/sched/fair.c:3400 [inline]
RIP: 0010:update_blocked_averages+0xb7b/0x1770 kernel/sched/fair.c:7665
PGD 8e6d067 
Code: 
P4D 8e6d067 
89 
PUD 8e6e063 
fe 
PMD 0 
48 31 
c6 48 
Oops: 0000 [#2] SMP KASAN
29 
CPU: 0 PID: 5889 Comm: udevd Tainted: G      D           4.18.0-rc3+ #48
fe 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
48 39 
RIP: 0010:depot_fetch_stack+0x10/0x30 lib/stackdepot.c:201
d6 0f 
Code: 
86 c8 
e8 
f8 ff 
c5 2e 
ff 49 
47 fe 
8d bc 
e9 b3 
24 80 
fd ff 
01 
ff e8 
00 
bb 2e 
00 be 
47 
08 00 
fe 
00 
e9 55 
00 
fd ff 
e8 
ff 90 
0c 
90 90 
db 62 
90 90 
00 48 
90 89 
8b 85 
f8 c1 
f8 
ef 11 
fc ff 
25 ff 
ff 
ff 1f 
<f0> 49 
00 81 
01 84 
e7 f0 
24 
3f 00 
80 01 
00 <48> 
00 
03 3c 
00 48 
c5 60 
8b 85 
29 
30 fd 
43 8b 
ff 
8b 47 
ff 4c 
0c 
8b 
48 83 
85 f0 
c7 
fc ff 
18 
RSP: 0018:ffff8801daf07838 EFLAGS: 00010046
c7 
46 
RAX: 00000000000001a9 RBX: ffff8801daf07b60 RCX: ffffffff8156f9b4
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8801cba9b540
10 
RBP: ffff8801daf07b88 R08: ffffed00397536a9 R09: ffffed00397536a8
00 00 
R10: ffffed00397536a8 R11: ffff8801cba9b547 R12: ffff8801cba9b3c0
R13: ffff8801ab3a9d00 R14: ffff8801d8482a00 R15: dffffc0000000000
00 00 
FS:  00007fb6f6255700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff8801cba9b540 CR3: 000000019ea34000 CR4: 00000000001406e0
RSP: 0018:ffff88019a75f250 EFLAGS: 00010006
DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000
RAX: 00000000001ff100 RBX: ffff8801ae157a54 RCX: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/08 03:31 bpf-next d90c936fb318 c9a7a4dc .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.