Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1513631ybf; Sun, 1 Mar 2020 11:15:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwe38xwOpm0eF5DnAJwrNdLyant1QPvuvbtpYoafEa1Pexg/MPQJXQqQJWRL9c+2neqHwah X-Received: by 2002:a05:6830:13da:: with SMTP id e26mr9927347otq.97.1583090115449; Sun, 01 Mar 2020 11:15:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583090115; cv=none; d=google.com; s=arc-20160816; b=AMwTGvHiCqnYA50yrE1ix2H0kSR3uZ/C46f17IoyEPaJJ25liKjmyPZX9YAz6JSBfH K/lSr5UUd7DSje9mWZKL5Ur+5AteNsUtpHPQkUL5jiWwUODJFus/XnHr4Ej4hFz2M5Uy u66+J1EcLj+uSn7UdOksfWCXnDl6V+iNmytvEuMsveGo2xa2w+yD7AVvYER0NtP0ksE0 oIOGTEszwAUuudHg+Wa3lJfjuC5XfIUYaANOo9g7dkiswlwjWwCzSvR1nhN8wGQc1Vsb 5aaiF7ZQz3unD6jLQowKIl2j8jB7LuJ75Nf8jmsBexZKzhs/8TlRgMWA6Gqc1h/JBtc+ 2OxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version; bh=4/VA9BmvqbsM5rNUMslEh9Krn9FOhK79mHkgoz8CgtQ=; b=ligs3CKjUEG2PRKlOyeoGw4ku+E8GKD3O7z2PhpiOCBuYt//2BwE8OpoHKRSMf7TJC E8xoJlb2DSbyevwhNZ7pOL+h4j0QAcz0DpEWg3ooJLwxG21m+17BQAbdDxw7rq7FxDGt 9uIe/doSMwkgMdaLtHq5aL4uuxgjQ6GN+QkwH0irvd8siQ9f+v4Dx47kACTsBV8Gmovg vsdb5htZa0XgCNoxZe3khN722O1SUfxNZ9mX784sUsJd3ZZDe7S1m2pgrKaVxBIl49J2 DkT+opcRQ0qFA2E/nPhAIJubo1LwyA1nZeopcZprU0zcmqZiZCtBWsAY0GNA+BnsFzZj pc8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si2390809otp.43.2020.03.01.11.15.02; Sun, 01 Mar 2020 11:15:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726188AbgCATNQ (ORCPT + 99 others); Sun, 1 Mar 2020 14:13:16 -0500 Received: from mail-io1-f70.google.com ([209.85.166.70]:37863 "EHLO mail-io1-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726525AbgCATNQ (ORCPT ); Sun, 1 Mar 2020 14:13:16 -0500 Received: by mail-io1-f70.google.com with SMTP id p4so6765281ioo.4 for ; Sun, 01 Mar 2020 11:13:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=4/VA9BmvqbsM5rNUMslEh9Krn9FOhK79mHkgoz8CgtQ=; b=PqV9klCDgExQGdwhhCHlkfg7VheNCN9pvNbb1tr6++HOvJZ6DnBAvzKuOhbh48prHJ FNy4s9g2gkLMeXX1siqNaMrbQJVjqkpeugnzLiLRdiRQZaYy3pVmCPbGn/AQQGoq8CHb IK5SY8YnSaF/Sx6to3MvTEt5bdD7ONzSO1VdWuNhgRabGKd5Zbc8FWR4JPObSw9nAfuZ HEJq/n9L5/wdUx0dja3H7cP0Glq0lp7OkllrcVr1fxY7gVOzLvpLs4Y4P8ww7GTtNyWA YnOgJbZUs5qeC5RGWkuwzOV99ta6Vr3YnE6W7Qd9Wd/mQkH3ATwKba3fxcp7zwhXbih8 VFoQ== X-Gm-Message-State: APjAAAXNTWzE+rultrGDGoYEXbhwRo01dRmEA0lrAlEu8X+zRPAF4te1 JN7FwF1gkAoxxKbGi8KOhQJkINnMOrhfbGgGXhCdlnIIcpPa MIME-Version: 1.0 X-Received: by 2002:a92:8547:: with SMTP id f68mr13809858ilh.26.1583089995471; Sun, 01 Mar 2020 11:13:15 -0800 (PST) Date: Sun, 01 Mar 2020 11:13:15 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000d3e319059fcfdc98@google.com> Subject: WARNING: bad unlock balance in ovl_llseek From: syzbot To: amir73il@gmail.com, linux-kernel@vger.kernel.org, linux-unionfs@vger.kernel.org, miklos@szeredi.hu, mszeredi@redhat.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: f8788d86 Linux 5.6-rc3 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13c5f8f9e00000 kernel config: https://syzkaller.appspot.com/x/.config?x=5d2e033af114153f dashboard link: https://syzkaller.appspot.com/bug?extid=66a9752fa927f745385e compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=131d9a81e00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14117a81e00000 The bug was bisected to: commit b1f9d3858f724ed45b279b689fb5b400d91352e3 Author: Amir Goldstein Date: Sat Dec 21 09:42:29 2019 +0000 ovl: use ovl_inode_lock in ovl_llseek() bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=16ff3bede00000 final crash: https://syzkaller.appspot.com/x/report.txt?x=15ff3bede00000 console output: https://syzkaller.appspot.com/x/log.txt?x=11ff3bede00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+66a9752fa927f745385e@syzkaller.appspotmail.com Fixes: b1f9d3858f72 ("ovl: use ovl_inode_lock in ovl_llseek()") ===================================== WARNING: bad unlock balance detected! 5.6.0-rc3-syzkaller #0 Not tainted ------------------------------------- syz-executor194/8947 is trying to release lock (&ovl_i_lock_key[depth]) at: [] ovl_inode_unlock fs/overlayfs/overlayfs.h:328 [inline] [] ovl_llseek+0x215/0x2c0 fs/overlayfs/file.c:193 but there are no more locks to release! other info that might help us debug this: 1 lock held by syz-executor194/8947: #0: ffff88809742ade0 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x279/0x310 fs/file.c:821 stack backtrace: CPU: 0 PID: 8947 Comm: syz-executor194 Not tainted 5.6.0-rc3-syzkaller #0 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+0x1fb/0x318 lib/dump_stack.c:118 print_unlock_imbalance_bug+0x20b/0x240 kernel/locking/lockdep.c:4007 __lock_release kernel/locking/lockdep.c:4241 [inline] lock_release+0x469/0x710 kernel/locking/lockdep.c:4502 __mutex_unlock_slowpath+0x80/0x5b0 kernel/locking/mutex.c:1228 mutex_unlock+0xd/0x10 kernel/locking/mutex.c:740 ovl_inode_unlock fs/overlayfs/overlayfs.h:328 [inline] ovl_llseek+0x215/0x2c0 fs/overlayfs/file.c:193 vfs_llseek fs/read_write.c:300 [inline] ksys_lseek fs/read_write.c:313 [inline] __do_sys_lseek fs/read_write.c:324 [inline] __se_sys_lseek fs/read_write.c:322 [inline] __x64_sys_lseek+0x15f/0x1f0 fs/read_write.c:322 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x445df9 Code: e8 ac b8 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 2b 12 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ff735aecce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000008 RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000445df --- This bug is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches