Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2282446imm; Tue, 4 Sep 2018 01:30:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaYq6oYCSLIVgWRWD5vzVr0Wtwe+VkHBttz9K7p6ytOLksm+UROC8RZtuC2wBkjDpWeTNrZ X-Received: by 2002:a62:c60e:: with SMTP id m14-v6mr33928140pfg.40.1536049837898; Tue, 04 Sep 2018 01:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536049837; cv=none; d=google.com; s=arc-20160816; b=gCKEEUoVAagGqjogYZOs2mgERWuYrFLwp8exuGiba/sxCtXW4906xnLy1Ln4funeJk nArHHyUPdwwa0/juTXIHjQ4pSKn9vMcAwhxp+VwxYdtnRcLsr3vP0g8w5i/n5g/LHh9q QQbsPFaC6TwVihuH80AlN9ovzZE4ZfFWXTLD7sS5owy/jc8gPBCXhl+/o8uf7iz3nlEH MiikUMsGEcYKyGCv+2GCaXIwhvuiHsSiDY+u2kof+AcoUlZcKCFjZAqTHP8D80ZdQ6IE OlMv3J+0OTKSwO7iP22U80ap9AZNEKUKE/d+vW+Z/iShuZfCKtdTT6F5J8DljCpXnnNy J4xQ== 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=z8nWTJNILynVkAeC7fI6bICyWJWJeQY9XY30zNEy66Y=; b=YN556RPuRc29kd8lVr+CCHLMXnA7emr9iL/KTvy6tGYghxZ9KPBsfWDgRUa60TKY4s xi7+TLOCzdHBh054vcyehzQ9cYYseZ9jfTRNFOGwXNuGoS9rp2W6YOy/rJLfJWqqjK3+ /n+0PR8UvKzLafJZFXrqcLC6y9d8oCZ4z4tG0j8i0buPi6mXazXemNPMHAVTcZ7LiWM+ 5YkLxjzLpG9c8zrU5+0DubJp32dJLqvydqcclbliBKhllTxcKxTyHspi4cOM6X99OV75 aMoazNvrZC6+OCgoNFFU6xz4jdz5D2UM8E9K2R9y/lpwHGcwKGmgcsKAVvy0JV2Rd0F0 6AYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lAXh4x7f; 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 p2-v6si20212334plo.246.2018.09.04.01.30.21; Tue, 04 Sep 2018 01:30:37 -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=lAXh4x7f; 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 S1726464AbeIDMxS (ORCPT + 99 others); Tue, 4 Sep 2018 08:53:18 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:39181 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbeIDMxS (ORCPT ); Tue, 4 Sep 2018 08:53:18 -0400 Received: by mail-pg1-f194.google.com with SMTP id i190-v6so1302857pgc.6 for ; Tue, 04 Sep 2018 01:29:13 -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=z8nWTJNILynVkAeC7fI6bICyWJWJeQY9XY30zNEy66Y=; b=lAXh4x7f0rGyBH7IzqL7RrCUtzrp2bRKUei8Ml6ZquD4smHV52qc84L5U2V6zeDRuT CXY0hHDxWJAXS3sR7BfwSlG0gxGyfpuJpT/Ehx234p0zUaZ9VxngFDj9Z+Jh0+sWiJsx pzF4xfjoRCF7630/0/bjqEL3L8porjd/D+SyBqc29J9neiYNsPQt84mdfl2Ob/3K84kt pGodug97aNOJRP61AxNX++It2eR6IN2nqbce2el2XnoHLwrVdQXiF79iNYw8Rxh1fqMv oFm3ChyL7xJANeosbMUD4pU10YsyCdenXi1oz9Eu+WnHRUnexhG4ITDgP7KGz60Ybr0t Jtdw== 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=z8nWTJNILynVkAeC7fI6bICyWJWJeQY9XY30zNEy66Y=; b=BTw1gKHhdvGsk45H0mmS/DN49+RIghmhTWKeSVb2trWJdTZ3UdTGbW3ql4Lue6B48a t2oJb7uBbKAV0PXFbyYAVp3s7/LVHm13J/IrxN2INqMyig+WkWnXLbkIYaeYPFtB0wtO sDF8Yv6VnV4oCvMiIAoPmu1vcsHE0jKBlo05om0iZ81PyWdNXg5R79uABF88blF6G5e1 /ixnQppYjyxTeOHbwFkpxfsMCSRR9X2K38StyYuOtV8RtbeTavhMOOkwNUPDRzHH4CFa qfH/4RHX+U/wfnGbDd4wZI3ZwprCTksr5a9wrXn3kYM4ZKLaDUYz7j/h5j4MUVaW9XJ4 1ixw== X-Gm-Message-State: APzg51CfEy2WCDZwyadGXZgo02siTIgIzoM58NGpYIM6niaTZaEV1YwK 3/iOdbiegzMfWDfLK1lDEHzSjaqqAhrE+5Xv8R0Dvw== X-Received: by 2002:a62:2a48:: with SMTP id q69-v6mr33604341pfq.86.1536049753229; Tue, 04 Sep 2018 01:29:13 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:ac14:0:0:0:0 with HTTP; Tue, 4 Sep 2018 01:28:52 -0700 (PDT) In-Reply-To: References: <001a1148578c10e4700568e814eb@google.com> <20180404193504.GA7715@bombadil.infradead.org> <20180405032200.GC22358@thunk.org> <20180405032454.GD9301@bombadil.infradead.org> From: Dmitry Vyukov Date: Tue, 4 Sep 2018 10:28:52 +0200 Message-ID: Subject: Re: WARNING in up_write To: Matthew Wilcox Cc: "Theodore Y. Ts'o" , syzbot , linux-fsdevel , LKML , syzkaller-bugs , 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 10:22 AM, Dmitry Vyukov wrote: > 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() The title was later changed to: #syz fix: locking/rwsem: Add a new RWSEM_ANONYMOUSLY_OWNED flag