Received: by 10.213.65.68 with SMTP id h4csp1663885imn; Thu, 5 Apr 2018 01:23:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx4//4RWrvfCixagA4P+TthzzCIQJvqAwFhMJt2RzpI9smoIYphmme9EiQhpWKL0h4qVvvyTn X-Received: by 10.99.55.68 with SMTP id g4mr13857995pgn.283.1522916633956; Thu, 05 Apr 2018 01:23:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522916633; cv=none; d=google.com; s=arc-20160816; b=esvWZVA06YiUCInDDXB7w+f5UpvIRaZ79utkHDRhRJviOLT7O3/IanKZOZgj/HEqnQ 4u2lf0sa2+f17zz2sZaOszxyUvwZ6RuprSgfbhoS4YESw/4DoYrc0cLuZYeMLErWFHX0 vHdBxuNuX3w4DpRcx9cwfsbSPeu10hHCSLHlFayvtVZcAV7/CyqeqaCcC0eS0CJYxRfk wL8F9bwqBuTnQy62rTzIrfwm4wc9sPQsB730XRX/+V6/JNguR2GHK4df/d4xeJ5+oKkL yilXsI0ZYrLIBFVmxjoqXDr5Ck4wct/cVsVBGIrxJ2ZZHXDZBgkidGp5U0N52TZzE+Br GK/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=NI2auWbajEcMJqiTbfUwPpb7VWrhpA5tilhgMPtH+OQ=; b=pqrKR6k8HV+zApyGP17KyraCUdbrM1+TV0VUYLvm8tWj3r979A4B8asndrvQYviBt/ rnSuR64r0mTJd2k6uqJ8OQ0JgxhnGnQffAKUc5dUk9a6dpKuBR2K7HyQWDz21f84cR56 QjRYUI5Rytut/JI143thAE7rMKfdt1s6p7AJg9d1+PC//edibLTe0h/dI34jdHSlCSaO wDknDtfmOHtPgHcWQHhgQ3eKZt/Oy0neCEUfuNm1j9l6QOtaR/wd7rgmD5CcNPCazg3s uvWkkPeMD6TTjnDDBbpHIOgQVmokE1wqz5weLEMe0mUzSGh+JVl6DfvKmU95E92NfAe9 a2PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=A3Hj7cIQ; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v18-v6si5450873plo.81.2018.04.05.01.23.40; Thu, 05 Apr 2018 01:23:53 -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=pass header.i=@google.com header.s=20161025 header.b=A3Hj7cIQ; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751463AbeDEIWc (ORCPT + 99 others); Thu, 5 Apr 2018 04:22:32 -0400 Received: from mail-pl0-f51.google.com ([209.85.160.51]:38271 "EHLO mail-pl0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751412AbeDEIW2 (ORCPT ); Thu, 5 Apr 2018 04:22:28 -0400 Received: by mail-pl0-f51.google.com with SMTP id k6-v6so13001549pls.5 for ; Thu, 05 Apr 2018 01:22:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NI2auWbajEcMJqiTbfUwPpb7VWrhpA5tilhgMPtH+OQ=; b=A3Hj7cIQQCMgoavS+iGlP2P0t1Mki63kvxPfwLw19H7i3bJnQvdk75GcDDN5EsBmBp Cn1WWLleQb2x402rLHsoi5+aPO8o7HT8Fbhcbflmspw2UD06uUfEq/0LDfIdKUl/XNPl 4NACKH5MawI2h7BxTANTqFNJQ45tq7XL4M/9c4ayytd+QyK1U7B2zZbtu1ui0ktCuqlU uUWKqZ5MLhuRjl/aIsCE1n2kD0+ji1NuRVHcIKshSt0YUXMmRpJL0x1uVh62eQqtVdTC xvgXWVWKeVQproyRI/0eZttq9OuQ8mZ3FifaOzscsqofo4ZgIf5q1ZJrS7QLSSwQBO7E bSDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NI2auWbajEcMJqiTbfUwPpb7VWrhpA5tilhgMPtH+OQ=; b=qhOAQCADCn8126ydI2wOQ7wjSQ/WmKPpEhPB2JdIy/ErtLKNWMNj2g4dlSRtqsvP8R PcYs5jRwHPmXT4V9h0zyb1RlvloEjN4BopBjNK/jRw94f6KF0iwXs1IEdHHAEmD4o7qo iIFh2lCEQOukbie4FDGstd0U7U29IoTHJJbsv0BfiMuVQt3lubzKy9sCPfAMdr1K8ohr cj3ufsB9N+CTzYFxwi7VCWQ092Q2ddIctLYAcA//c5nNc2KkrTe3B7SiSOHHOZ7GLUI0 jmaiYaTOpvgWancMau1scaIn5P/44soFIHWOSpDMGOFSM7x75qh115vORbbLhJF+Dg2L Z8fw== X-Gm-Message-State: AElRT7F3LdiMTcMHktaTupZV/IWcU9JTU5Q6ubz9K+lNyGBv7mGd15Aw MWX+6Ccbfw8mjJGeaWBQjy3660Lsxbp/z0qjTQeeJQ== X-Received: by 10.98.13.151 with SMTP id 23mr16485269pfn.120.1522916547801; Thu, 05 Apr 2018 01:22:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.182.136 with HTTP; Thu, 5 Apr 2018 01:22:07 -0700 (PDT) In-Reply-To: <20180405032454.GD9301@bombadil.infradead.org> References: <001a1148578c10e4700568e814eb@google.com> <20180404193504.GA7715@bombadil.infradead.org> <20180405032200.GC22358@thunk.org> <20180405032454.GD9301@bombadil.infradead.org> From: Dmitry Vyukov Date: Thu, 5 Apr 2018 10:22:07 +0200 Message-ID: Subject: Re: WARNING in up_write To: Matthew Wilcox Cc: "Theodore Y. Ts'o" , syzbot , linux-fsdevel , LKML , syzkaller-bugs@googlegroups.com, Al Viro 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 On Thu, Apr 5, 2018 at 5:24 AM, Matthew Wilcox wrote: > On Wed, Apr 04, 2018 at 11:22:00PM -0400, Theodore Y. Ts'o wrote: >> 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. :-) > > Not really ... syzbot caught it Monday evening ;-) > > Date: Mon, 02 Apr 2018 19:01:01 -0700 > From: syzbot > To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, > syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk > Subject: WARNING in up_write :) #syz fix: locking/rwsem: Add up_write_non_owner() for percpu_up_write()