syzbot


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

Status: closed as invalid on 2018/07/05 16:25
Subsystems: mm
[Documentation on labels]
First crash: 2602d, last: 2602d

Sample crash report:
==================================================================
PANIC: double fault, error_code: 0x0
BUG: KASAN: stack-out-of-bounds in vma_interval_tree_compute_subtree_last mm/interval_tree.c:24 [inline]
BUG: KASAN: stack-out-of-bounds in vma_interval_tree_augment_propagate mm/interval_tree.c:24 [inline]
BUG: KASAN: stack-out-of-bounds in __rb_erase_augmented include/linux/rbtree_augmented.h:267 [inline]
BUG: KASAN: stack-out-of-bounds in rb_erase_augmented_cached include/linux/rbtree_augmented.h:285 [inline]
BUG: KASAN: stack-out-of-bounds in vma_interval_tree_remove+0x10ac/0x13f0 mm/interval_tree.c:24
CPU: 1 PID: 15692 Comm: syz-executor2 Not tainted 4.18.0-rc3+ #46
Read of size 8 at addr ffff8801aad790b0 by task udevd/15699
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x2e/0x5020 kernel/locking/lockdep.c:3294

Code: 41 
CPU: 0 PID: 15699 Comm: udevd Not tainted 4.18.0-rc3+ #46
57 41 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
89 cf 
Call Trace:
41 56 
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113
41 55 
49 89 
fd 41 
54 45 
89 cc 
 print_address_description+0x6c/0x20b mm/kasan/report.c:256
53 65 
4c 8b 
 kasan_report_error mm/kasan/report.c:354 [inline]
 kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412
34 25 
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433
40 ee 
 vma_interval_tree_compute_subtree_last mm/interval_tree.c:24 [inline]
 vma_interval_tree_augment_propagate mm/interval_tree.c:24 [inline]
 __rb_erase_augmented include/linux/rbtree_augmented.h:267 [inline]
 rb_erase_augmented_cached include/linux/rbtree_augmented.h:285 [inline]
 vma_interval_tree_remove+0x10ac/0x13f0 mm/interval_tree.c:24
01 
00 48 
83 
e4 f0 
48 81 
ec 60 
03 00 
00 
48 8b 
45 10 
<89> 94 
24 
80 
00 00 
00 
48 
ba 00 
00 
00 00 
00 fc 
ff df 
48 89 
84 24 
98 
RSP: 0018:ffff8801aa958e00 EFLAGS: 00010086
RAX: 0000000000000000 RBX: 1ffff1003552b23d RCX: 0000000000000002
 __remove_shared_vm_struct+0x89/0x140 mm/mmap.c:152
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff88f92620
RBP: ffff8801aa959190 R08: 0000000000000000 R09: 0000000000000000
 unlink_file_vma+0x83/0xb0 mm/mmap.c:167
R10: ffff8801aadef1b8 R11: ffff8801daf236b3 R12: 0000000000000000
R13: ffffffff88f92620 R14: ffff8801c53441c0 R15: 0000000000000002
 free_pgtables+0x279/0x380 mm/memory.c:642
FS:  00007f366c835700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
 exit_mmap+0x2d1/0x5b0 mm/mmap.c:3106
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff8801aa958df8 CR3: 00000001a0c55000 CR4: 00000000001406e0
DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000
 __mmput kernel/fork.c:970 [inline]
 mmput+0x265/0x620 kernel/fork.c:991
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:

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