syzbot


WARNING in ovl_rename

Status: fixed on 2019/12/16 09:09
Reported-by: syzbot+7d83a9a0f0453ad778a9@syzkaller.appspotmail.com
Fix commit: f1c5aa5eda08 ovl: detect overlapping layers
First crash: 1997d, last: 1997d
Fix bisection: fixed by (bisect log) :
commit f1c5aa5eda08710c2ba619d93126380881fa1114
Author: Amir Goldstein <amir73il@gmail.com>
Date: Thu Apr 18 14:42:08 2019 +0000

  ovl: detect overlapping layers

  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in ovl_rename overlayfs C done done 5 1997d 1993d 15/28 fixed on 2020/02/14 01:19
linux-4.14 WARNING in ovl_rename syz done 2 1764d 1997d 1/1 fixed on 2020/01/18 20:51

Sample crash report:
overlayfs: workdir and upperdir must reside under the same mount
overlayfs: workdir and upperdir must reside under the same mount
overlayfs: upper fs does not support tmpfile.
overlayfs: workdir and upperdir must reside under the same mount
overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
WARNING: CPU: 0 PID: 13354 at fs/overlayfs/dir.c:1177 ovl_rename+0x14ef/0x1870 fs/overlayfs/dir.c:1177
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 13354 Comm: syz-executor.1 Not tainted 4.19.37 #5
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+0x172/0x1f0 lib/dump_stack.c:113
 panic+0x263/0x51d kernel/panic.c:185
overlayfs: workdir and upperdir must reside under the same mount
kobject: 'loop2' (00000000c0c181aa): kobject_uevent_env
 __warn.cold+0x20/0x54 kernel/panic.c:540
 report_bug+0x263/0x2b0 lib/bug.c:186
kobject: 'loop2' (00000000c0c181aa): fill_kobj_path: path = '/devices/virtual/block/loop2'
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296
overlayfs: workdir and upperdir must reside under the same mount
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:997
RIP: 0010:ovl_rename+0x14ef/0x1870 fs/overlayfs/dir.c:1177
Code: e0 04 89 c3 89 c6 e8 a0 39 1f ff 85 db be 01 00 00 00 0f 85 3e f7 ff ff e8 0e 38 1f ff 4c 89 f7 e9 16 f7 ff ff e8 01 38 1f ff <0f> 0b e9 05 f4 ff ff e8 f5 37 1f ff 48 8b 54 24 68 b8 ff ff 37 00
RSP: 0018:ffff8880799e7ac0 EFLAGS: 00010293
RAX: ffff888081b38000 RBX: 0000000000000000 RCX: ffff88808009a080
RDX: 0000000000000000 RSI: ffffffff824c0f7f RDI: ffff88808009a0d8
RBP: ffff8880799e7bf8 R08: ffff888081b38000 R09: 0000000000000007
R10: ffffed1015d04732 R11: ffff8880ae823993 R12: 0000000000000000
R13: ffff888094572040 R14: ffff888096351e00 R15: ffff8880799e7b90
 vfs_rename+0x803/0x1a70 fs/namei.c:4476
 do_renameat2+0xb0f/0xc40 fs/namei.c:4626
 __do_sys_rename fs/namei.c:4672 [inline]
 __se_sys_rename fs/namei.c:4670 [inline]
 __x64_sys_rename+0x61/0x80 fs/namei.c:4670
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 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:00007efe73ca6c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 0000000000458da9
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 00000000200000c0
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007efe73ca76d4
R13: 00000000004c5d4c R14: 00000000004da328 R15: 00000000ffffffff
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/28 06:13 linux-4.19.y 19bb613acb9a b617407b .config console log report syz ci2-linux-4-19
* Struck through repros no longer work on HEAD.