Received: by 10.213.65.68 with SMTP id h4csp1452060imn; Wed, 4 Apr 2018 20:23:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx48MakVAG81aCa2mEx7+7yKTaj4AIHWAINxjQ0bZEUc8aFot5tuip9+u0O2efnPHkKLk7h9H X-Received: by 2002:a17:902:6b84:: with SMTP id p4-v6mr15295197plk.177.1522898609827; Wed, 04 Apr 2018 20:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522898609; cv=none; d=google.com; s=arc-20160816; b=WcCQp8QjL6tvBU5W20gD1sHf0N3M2EZOIXi7BiOrftM26xYc/B3FSljuf8cHDau+rU 9LB2JD1ni9up+8EoWH0V9XS6IIbdR0eeAFHyJbTkJArVKX5VwWylprBp6RG3Jtg1okGX j7X76nZh5kIfkw6FNfg8HYDnVXN33XcHPi2PoL/b5qgiyi8CAApxEofjEaT2JaddHPtI 6bALMBWCw6QyQKF/mrX3z20MBttCm65QrZcKueJDmHkNoVlINkqUTJP3WXw+9aRy3V+Y NuYLLsPFqTtBQt75a9B/CPAP52/lTGlONPnaOs5sV1LIbmxz1TAUECR/MtGtpOdRe3KD raOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=zGbDmud0IPGcRep5017iVZRdsaE5QwPrF08opipr+CI=; b=I5VjAgmCVkIRKeB7hl/xqbkv0XJmquAkSyeyLzbz8fzauhBprODw+CoT3bKh52TKY2 P1PTXHIcN5apPsYtSr2y6VPIWxrtOtlAuIh0+cgVMiHXxKNCv0Ob1nwp1QDGrMyuLKMs RkYa6nViIVUWkR+yDrhjMInktWKY7nJGwNeWXn9ygGlhuyZFx3PwppEhsfB1a42PlZMS QAjS4yNBi13jmTm1NYwP6VtN1CNjxYTJNOEX2O5ezkkgK/G2adVTvgapOowpK43pIIjB kvg1kvPbZha2rsL1BfZNTRq0Qzmi+C7+o1+1VlqW2qSlCErm2bm0JQPrlb37VmO71t2J N9AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=Wt2/RleZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si4783100pgb.652.2018.04.04.20.23.14; Wed, 04 Apr 2018 20:23:29 -0700 (PDT) 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; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=Wt2/RleZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751272AbeDEDWE (ORCPT + 99 others); Wed, 4 Apr 2018 23:22:04 -0400 Received: from imap.thunk.org ([74.207.234.97]:34802 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750890AbeDEDWD (ORCPT ); Wed, 4 Apr 2018 23:22:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=zGbDmud0IPGcRep5017iVZRdsaE5QwPrF08opipr+CI=; b=Wt2/RleZpBtLlUKQAi0U/797CK ood9ZUsEq2EojVQSilkwD2yZsIeZhtlZ4qfn33/thCjhDAbcM0bi56g4Og6rSR4IfYNBEqEUAUOMS Qhz+o7yMKXNoiRntD4giBxI1rZPS7ozybhzbJ6+4aS5Qsb/PR+S2YIrtj3KAYXP7Y5pg=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1f3vTM-0001GK-UR; Thu, 05 Apr 2018 03:22:00 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 35A727A489D; Wed, 4 Apr 2018 23:22:00 -0400 (EDT) Date: Wed, 4 Apr 2018 23:22:00 -0400 From: "Theodore Y. Ts'o" To: Matthew Wilcox Cc: Dmitry Vyukov , syzbot , linux-fsdevel , LKML , syzkaller-bugs@googlegroups.com, Al Viro Subject: Re: WARNING in up_write Message-ID: <20180405032200.GC22358@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , Matthew Wilcox , Dmitry Vyukov , syzbot , linux-fsdevel , LKML , syzkaller-bugs@googlegroups.com, Al Viro References: <001a1148578c10e4700568e814eb@google.com> <20180404193504.GA7715@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180404193504.GA7715@bombadil.infradead.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 04, 2018 at 12:35:04PM -0700, Matthew Wilcox wrote: > On Wed, Apr 04, 2018 at 09:24:05PM +0200, Dmitry Vyukov wrote: > > On Tue, Apr 3, 2018 at 4:01 AM, syzbot > > wrote: > > > DEBUG_LOCKS_WARN_ON(sem->owner != get_current()) > > > WARNING: CPU: 1 PID: 4441 at kernel/locking/rwsem.c:133 up_write+0x1cc/0x210 > > > kernel/locking/rwsem.c:133 > > > Kernel panic - not syncing: panic_on_warn set ... > > Message-Id: <1522852646-2196-1-git-send-email-longman@redhat.com> > We were way ahead of syzbot in this case. :-) I reported the problem Tuesday morning: https://lkml.org/lkml/2018/4/4/814 And within a few hours Waiman had proposed a fix: https://patchwork.kernel.org/patch/10322639/ Note also that it's not ext4 specific. It can be trivially reproduced using any one of: kvm-xfstests -c ext4 generic/068 kvm-xfstests -c btrfs generic/068 kvm-xfstests -c xfs generic/068 (Basically, any file system that supports freeze/thaw.) Cheers, - Ted