From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 418ACC48BDF for ; Mon, 14 Jun 2021 01:17:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D34F61246 for ; Mon, 14 Jun 2021 01:17:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232283AbhFNBTb (ORCPT ); Sun, 13 Jun 2021 21:19:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232273AbhFNBTb (ORCPT ); Sun, 13 Jun 2021 21:19:31 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61C99C061574; Sun, 13 Jun 2021 18:17:29 -0700 (PDT) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lsbDt-007rq5-Aw; Mon, 14 Jun 2021 01:17:05 +0000 Date: Mon, 14 Jun 2021 01:17:05 +0000 From: Al Viro To: Kees Cook Cc: Christoph Hellwig , axboe@kernel.dk, anton@enomsg.org, ccross@android.com, tony.luck@intel.com, gmpy.liaowx@gmail.com, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mark pstore-blk as broken Message-ID: References: <20210608161327.1537919-1-hch@lst.de> <202106081033.F59D7A4@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202106081033.F59D7A4@keescook> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Tue, Jun 08, 2021 at 10:34:29AM -0700, Kees Cook wrote: > > diff --git a/fs/pstore/Kconfig b/fs/pstore/Kconfig > > index 8adabde685f1..328da35da390 100644 > > --- a/fs/pstore/Kconfig > > +++ b/fs/pstore/Kconfig > > @@ -173,6 +173,7 @@ config PSTORE_BLK > > tristate "Log panic/oops to a block device" > > depends on PSTORE > > depends on BLOCK > > + depends on BROKEN > > select PSTORE_ZONE > > default n > > help > > -- > > 2.30.2 > > > > NAK, please answer my concerns about your patches instead: > https://lore.kernel.org/lkml/202012011149.5650B9796@keescook/ How about concerns about the code in question having gotten into the kernel in the first place? Quality aside (that's a separate conversation, probably for tomorrow), just what happens if that thing is triggered by the code that happens to hold a page on block device locked? AFAICS, __generic_file_write_iter() will cheerfully deadlock... Kees, may I ask you where had that thing been discussed back then? All I can see is linux-kernel, and that's "archived by", not "discussed on"...