syzbot


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

Status: closed as invalid on 2018/07/08 13:28
Subsystems: mm
[Documentation on labels]
First crash: 2407d, last: 2407d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: stack-out-of-bounds Read in __handle_mm_fault (2) kernel C 3 2394d 2396d 8/28 fixed on 2018/08/07 13:43

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
IPVS: ftp: loaded support on port[0] = 21
==================================================================
BUG: KASAN: stack-out-of-bounds in __get_fault_gfp_mask mm/memory.c:2357 [inline]
BUG: KASAN: stack-out-of-bounds in __handle_mm_fault+0x1adb/0x4460 mm/memory.c:4024
Read of size 4 at addr ffff8801a7b03c80 by task syz-executor003/4438

CPU: 0 PID: 4438 Comm: syz-executor003 Not tainted 4.18.0-rc3+ #48
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113
 print_address_description+0x6c/0x20b mm/kasan/report.c:256
 kasan_report_error mm/kasan/report.c:354 [inline]
 kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412
 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432
 __get_fault_gfp_mask mm/memory.c:2357 [inline]
 __handle_mm_fault+0x1adb/0x4460 mm/memory.c:4024
 handle_mm_fault+0x53e/0xc80 mm/memory.c:4133
 __do_page_fault+0x620/0xe50 arch/x86/mm/fault.c:1396
 do_page_fault+0xf6/0x8c0 arch/x86/mm/fault.c:1471
 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1160
RIP: 0033:0x472c90
Code: Bad RIP value.
RSP: 002b:00007ffdf455e058 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000299 RCX: 0000000000472c90
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffdf455e060
RBP: 0000000000000299 R08: 0000000000000001 R09: 0000000001e1d880
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000000dd
R13: 0000000000019f36 R14: 0000000000000000 R15: 0000000000000000

Allocated by task 3093156384:
BUG: unable to handle kernel paging request at ffffffff8c3f6968
PGD 8e6d067 P4D 8e6d067 PUD 8e6e063 PMD 0 
Oops: 0000 [#1] SMP KASAN
CPU: 0 PID: 4438 Comm: syz-executor003 Not tainted 4.18.0-rc3+ #48
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:depot_fetch_stack+0x10/0x30 lib/stackdepot.c:201
Code: e8 c5 2e 47 fe e9 b3 fd ff ff e8 bb 2e 47 fe e9 55 fd ff ff 90 90 90 90 90 90 89 f8 c1 ef 11 25 ff ff 1f 00 81 e7 f0 3f 00 00 <48> 03 3c c5 60 29 43 8b 8b 47 0c 48 83 c7 18 c7 46 10 00 00 00 00 
RSP: 0000:ffff8801acbaf948 EFLAGS: 00010006
RAX: 00000000001f8801 RBX: ffff8801a7b03ef4 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8801acbaf950 RDI: 0000000000003ff0
RBP: ffff8801acbaf978 R08: ffff8801ac74a100 R09: ffffed003b5c3ec2
R10: ffffed003b5c3ec2 R11: ffff8801dae1f617 R12: ffff8801a7b03740
R13: ffff8801a7b03c80 R14: ffff8801d3ebde40 R15: ffff8801a7b03ef0
FS:  0000000001e1d880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff8c3f6968 CR3: 00000001c03f7000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 describe_object mm/kasan/report.c:243 [inline]
 print_address_description+0xfb/0x20b mm/kasan/report.c:263
 kasan_report_error mm/kasan/report.c:354 [inline]
 kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412
 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432
 __get_fault_gfp_mask mm/memory.c:2357 [inline]
 __handle_mm_fault+0x1adb/0x4460 mm/memory.c:4024
 handle_mm_fault+0x53e/0xc80 mm/memory.c:4133
 __do_page_fault+0x620/0xe50 arch/x86/mm/fault.c:1396
 do_page_fault+0xf6/0x8c0 arch/x86/mm/fault.c:1471
 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1160
RIP: 0033:0x472c90
Code: Bad RIP value.
RSP: 002b:00007ffdf455e058 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000299 RCX: 0000000000472c90
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffdf455e060
RBP: 0000000000000299 R08: 0000000000000001 R09: 0000000001e1d880
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000000dd
R13: 0000000000019f36 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
CR2: ffffffff8c3f6968
---[ end trace 3dec94d54e68182e ]---
RIP: 0010:depot_fetch_stack+0x10/0x30 lib/stackdepot.c:201
Code: e8 c5 2e 47 fe e9 b3 fd ff ff e8 bb 2e 47 fe e9 55 fd ff ff 90 90 90 90 90 90 89 f8 c1 ef 11 25 ff ff 1f 00 81 e7 f0 3f 00 00 <48> 03 3c c5 60 29 43 8b 8b 47 0c 48 83 c7 18 c7 46 10 00 00 00 00 
RSP: 0000:ffff8801acbaf948 EFLAGS: 00010006
RAX: 00000000001f8801 RBX: ffff8801a7b03ef4 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8801acbaf950 RDI: 0000000000003ff0
RBP: ffff8801acbaf978 R08: ffff8801ac74a100 R09: ffffed003b5c3ec2
R10: ffffed003b5c3ec2 R11: ffff8801dae1f617 R12: ffff8801a7b03740
R13: ffff8801a7b03c80 R14: ffff8801d3ebde40 R15: ffff8801a7b03ef0
FS:  0000000001e1d880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000472c66 CR3: 00000001c03f7000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

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