syzbot


general protection fault in do_move_mount (2)

Status: fixed on 2019/07/29 13:39
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+6004acbaa1893ad013f0@syzkaller.appspotmail.com
Fix commit: 570d7a98e7d6 vfs: move_mount: reject moving kernel internal mounts
First crash: 1828d, last: 1818d
Cause bisection: introduced by (bisect log) :
commit 9c8ad7a2ff0bfe58f019ec0abc1fb965114dde7d
Author: David Howells <dhowells@redhat.com>
Date: Thu May 16 11:52:27 2019 +0000

  uapi, x86: Fix the syscall numbering of the mount API syscalls [ver #2]

Crash: general protection fault in do_move_mount (log)
Repro: syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] vfs: move_mount: reject moving kernel internal mounts 14 (14) 2019/07/10 03:23
general protection fault in do_move_mount (2) 7 (8) 2019/07/05 13:02
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in do_move_mount fs 3 1867d 1867d 12/27 fixed on 2019/06/14 18:22

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 9676 Comm: syz-executor.0 Not tainted 5.2.0-rc5 #28
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:do_move_mount.isra.0+0x5fe/0xe10 fs/namespace.c:2602
Code: ff ff 00 0f 84 7a fb ff ff e8 de a4 b5 ff 48 8b 85 50 ff ff ff 48 8d 78 48 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 6d 07 00 00 48 8b 85 50 ff ff ff 31 ff 4c 8b 78
RSP: 0018:ffff88808826fd58 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff88808826fea8 RCX: 1ffff11015333737
RDX: 0000000000000006 RSI: ffffffff81bb1c82 RDI: 0000000000000032
RBP: ffff88808826fe38 R08: ffff888096b3c2c0 R09: ffffed1015d06be0
R10: ffffed1015d06bdf R11: ffff8880ae835efb R12: ffff88809ddcb680
R13: ffff88821baaa220 R14: ffff88808826fe90 R15: ffff8880a999b9a0
FS:  00007f7ceb744700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0c5a240000 CR3: 000000009742d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __do_sys_move_mount fs/namespace.c:3524 [inline]
 __se_sys_move_mount fs/namespace.c:3483 [inline]
 __x64_sys_move_mount+0x355/0x440 fs/namespace.c:3483
 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4592c9
Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f7ceb743c78 EFLAGS: 00000246 ORIG_RAX: 00000000000001ad
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00000000004592c9
RDX: ffffffffffffff9c RSI: 0000000020000040 RDI: 0000000000000003
RBP: 000000000075c070 R08: 0000000000000066 R09: 0000000000000000
R10: 0000000020000100 R11: 0000000000000246 R12: 00007f7ceb7446d4
R13: 00000000004c5706 R14: 00000000004d9ba8 R15: 00000000ffffffff
Modules linked in:
---[ end trace 41e9292671bdf9c8 ]---
RIP: 0010:do_move_mount.isra.0+0x5fe/0xe10 fs/namespace.c:2602
Code: ff ff 00 0f 84 7a fb ff ff e8 de a4 b5 ff 48 8b 85 50 ff ff ff 48 8d 78 48 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 6d 07 00 00 48 8b 85 50 ff ff ff 31 ff 4c 8b 78
RSP: 0018:ffff88808826fd58 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff88808826fea8 RCX: 1ffff11015333737
RDX: 0000000000000006 RSI: ffffffff81bb1c82 RDI: 0000000000000032
RBP: ffff88808826fe38 R08: ffff888096b3c2c0 R09: ffffed1015d06be0
R10: ffffed1015d06bdf R11: ffff8880ae835efb R12: ffff88809ddcb680
R13: ffff88821baaa220 R14: ffff88808826fe90 R15: ffff8880a999b9a0
FS:  00007f7ceb744700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0c5a240000 CR3: 000000009742d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/18 02:36 upstream 9e0babf2c06c 442206d7 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/06/18 02:08 upstream 9e0babf2c06c 442206d7 .config console log report syz ci-upstream-kasan-gce
2019/06/18 01:29 upstream 9e0babf2c06c 442206d7 .config console log report syz ci-upstream-kasan-gce-smack-root
2019/06/18 02:09 upstream 9e0babf2c06c 442206d7 .config console log report syz ci-upstream-kasan-gce-386
2019/06/26 21:41 linux-next 1dd45f170b7e 7509bf36 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/06/18 00:41 upstream 9e0babf2c06c 442206d7 .config console log report ci-upstream-kasan-gce-smack-root
2019/06/16 22:05 upstream e01e060fe00d 442206d7 .config console log report ci-upstream-kasan-gce
* Struck through repros no longer work on HEAD.