syzbot


BUG: unable to handle kernel NULL pointer dereference in unlink_file_vma

Status: closed as dup on 2018/12/31 07:49
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+4cbac4707f8e5215007b@syzkaller.appspotmail.com
First crash: 2264d, last: 2264d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
kernel panic: corrupted stack end in wb_workfn mm C done 14 2182d 2183d
Discussions (1)
Title Replies (including bot) Last reply
BUG: unable to handle kernel NULL pointer dereference in unlink_file_vma 1 (2) 2018/12/31 07:49

Sample crash report:
RAX: 0000000000000002 RBX: 00000000ffffffff RCX: 000000000045df89
RDX: 0000000000000080 RSI: 000000c420033890 RDI: 0000000000000004
RBP: 000000c420033e90 R08: 0000000000000003 R09: 000000c420000d80
R10: 00000000ffffffff R11: 0000000000000246 R12: 0000000000000001
R13: 000000c42f90d718 R14: 0000000000000066 R15: 000000c42f90d708
BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
PGD 1d85b1067 P4D 1d85b1067 PUD 1cd360067 PMD 0 
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 2748 Comm: syz-executor0 Not tainted 4.19.0-rc7+ #55
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__down_write arch/x86/include/asm/rwsem.h:142 [inline]
RIP: 0010:down_write+0x97/0x130 kernel/locking/rwsem.c:72
Code: a5 f9 31 d2 45 31 c9 41 b8 01 00 00 00 ff 75 08 48 8d 7b 60 31 c9 31 f6 e8 c6 01 b1 f9 48 89 d8 48 ba 01 00 00 00 ff ff ff ff <f0> 48 0f c1 10 85 d2 74 05 e8 3b 29 fe ff 48 8d 7d a0 5a 48 89 f8
RSP: 0000:ffff880128396ff0 EFLAGS: 00010246
RAX: 0000000000000068 RBX: 0000000000000068 RCX: 0000000000000000
RDX: ffffffff00000001 RSI: 0000000000000000 RDI: 0000000000000286
RBP: ffff880128397078 R08: 0000000000000001 R09: 0000000000000000
R10: ffff8801ce8da278 R11: 0000000000000000 R12: 1ffff10025072dff
R13: 0000000000000068 R14: dffffc0000000000 R15: 00007fca701da000
FS:  00007fca6ebd9700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000068 CR3: 00000001d88cd000 CR4: 00000000001406e0
kobject: 'syz_tun' (00000000bb2f2151): kobject_cleanup, parent           (null)
Call Trace:
 i_mmap_lock_write include/linux/fs.h:482 [inline]
 unlink_file_vma+0x75/0xb0 mm/mmap.c:166
 free_pgtables+0x279/0x380 mm/memory.c:641
 exit_mmap+0x2cd/0x590 mm/mmap.c:3094
 __mmput kernel/fork.c:1001 [inline]
 mmput+0x247/0x610 kernel/fork.c:1022
 exit_mm kernel/exit.c:545 [inline]
 do_exit+0xe6f/0x2610 kernel/exit.c:854
 do_group_exit+0x177/0x440 kernel/exit.c:970
 get_signal+0x8b0/0x1980 kernel/signal.c:2513
 do_signal+0x9c/0x21e0 arch/x86/kernel/signal.c:816
 exit_to_usermode_loop+0x2e5/0x380 arch/x86/entry/common.c:162
 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
 do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457579
Code: 24 08 48 89 01 e8 d7 2d fc ff e8 22 7a fc ff b8 02 00 00 00 48 8d 0d 6a 60 09 01 87 01 8b 05 62 60 09 01 83 f8 01 0f 85 8a 00 <00> 00 b8 01 00 00 00 88 05 9e 65 09 01 84 c0 74 72 b8 01 00 00 00
RSP: 002b:00007fca6ebd8cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 000000000072bf08 RCX: 0000000000457579
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000072bf08
RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000072bf0c
R13: 00007ffd2b23c63f R14: 00007fca6ebd99c0 R15: 0000000000000000
Modules linked in:
CR2: 0000000000000068
---[ end trace ea9ba926f44bc95e ]---
RIP: 0010:__down_write arch/x86/include/asm/rwsem.h:142 [inline]
RIP: 0010:down_write+0x97/0x130 kernel/locking/rwsem.c:72
Code: a5 f9 31 d2 45 31 c9 41 b8 01 00 00 00 ff 75 08 48 8d 7b 60 31 c9 31 f6 e8 c6 01 b1 f9 48 89 d8 48 ba 01 00 00 00 ff ff ff ff <f0> 48 0f c1 10 85 d2 74 05 e8 3b 29 fe ff 48 8d 7d a0 5a 48 89 f8
RSP: 0000:ffff880128396ff0 EFLAGS: 00010246
RAX: 0000000000000068 RBX: 0000000000000068 RCX: 0000000000000000
RDX: ffffffff00000001 RSI: 0000000000000000 RDI: 0000000000000286
RBP: ffff880128397078 R08: 0000000000000001 R09: 0000000000000000
R10: ffff8801ce8da278 R11: 0000000000000000 R12: 1ffff10025072dff
R13: 0000000000000068 R14: dffffc0000000000 R15: 00007fca701da000
FS:  00007fca6ebd9700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000068 CR3: 00000001d88cd000 CR4: 00000000001406e0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/10/10 13:22 upstream 3d647e62686f 5b11ac2c .config console log report ci-upstream-kasan-gce-selinux-root
* Struck through repros no longer work on HEAD.