syzbot


general protection fault in do_move_mount

Status: fixed on 2019/06/14 18:22
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+494c7ddf66acac0ad747@syzkaller.appspotmail.com
Fix commit: 05883eee857e do_move_mount(): fix an unsafe use of is_anon_ns()
First crash: 1807d, last: 1807d
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in do_move_mount 2 (3) 2019/05/09 06:33
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in do_move_mount (2) fs syz done 7 1758d 1766d 12/26 fixed on 2019/07/29 13:39

Sample crash report:
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 2943 Comm: syz-executor.1 Not tainted 5.1.0+ #3
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:do_move_mount.isra.0+0x5eb/0xe00 fs/namespace.c:2602
Code: ff 45 89 e6 e9 a0 fb ff ff e8 d1 df 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:ffff8880562e7ca8 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff8880562e7e18 RCX: ffffc90008004000
RDX: 0000000000000009 RSI: ffffffff81baa93f RDI: 0000000000000048
RBP: ffff8880562e7d88 R08: ffff888045e46640 R09: ffffed1015d06be0
R10: ffffed1015d06bdf R11: ffff8880ae835efb R12: ffff8880a529ae80
R13: ffff888086313e20 R14: ffff8880562e7e40 R15: ffff8880a99cf318
FS:  00007f2e8752a700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000a5048d CR3: 000000009fafb000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 do_move_mount_old fs/namespace.c:2662 [inline]
 do_mount+0xee7/0x1c00 fs/namespace.c:3108
 ksys_mount+0xdb/0x150 fs/namespace.c:3319
 __do_sys_mount fs/namespace.c:3333 [inline]
 __se_sys_mount fs/namespace.c:3330 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3330
 do_syscall_64+0x103/0x670 arch/x86/entry/common.c:298
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x458da9
Code: ad b8 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f2e87529c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000458da9
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000020000000
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000002002 R11: 0000000000000246 R12: 00007f2e8752a6d4
R13: 00000000004c4dfd R14: 00000000004d8ac8 R15: 00000000ffffffff
Modules linked in:
---[ end trace f962f038d13e2f59 ]---
RIP: 0010:do_move_mount.isra.0+0x5eb/0xe00 fs/namespace.c:2602
Code: ff 45 89 e6 e9 a0 fb ff ff e8 d1 df 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:ffff8880562e7ca8 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff8880562e7e18 RCX: ffffc90008004000
RDX: 0000000000000009 RSI: ffffffff81baa93f RDI: 0000000000000048
RBP: ffff8880562e7d88 R08: ffff888045e46640 R09: ffffed1015d06be0
R10: ffffed1015d06bdf R11: ffff8880ae835efb R12: ffff8880a529ae80
R13: ffff888086313e20 R14: ffff8880562e7e40 R15: ffff8880a99cf318
FS:  00007f2e8752a700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000a4fd78 CR3: 000000009fafb000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/05/08 21:48 upstream 80f232121b69 1ab4c999 .config console log report ci-upstream-kasan-gce
2019/05/08 21:07 upstream 80f232121b69 1ab4c999 .config console log report ci-upstream-kasan-gce
2019/05/08 19:46 upstream 80f232121b69 a7383bfa .config console log report ci-upstream-kasan-gce
* Struck through repros no longer work on HEAD.