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=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 1DBF5C83009 for ; Wed, 29 Apr 2020 12:57:31 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D7DFC2186A for ; Wed, 29 Apr 2020 12:57:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="r2KaiYDU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D7DFC2186A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5D2E98E000D; Wed, 29 Apr 2020 08:57:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 583388E0001; Wed, 29 Apr 2020 08:57:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 498ED8E000D; Wed, 29 Apr 2020 08:57:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0167.hostedemail.com [216.40.44.167]) by kanga.kvack.org (Postfix) with ESMTP id 2DA678E0001 for ; Wed, 29 Apr 2020 08:57:30 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id DC7A75DC9 for ; Wed, 29 Apr 2020 12:57:29 +0000 (UTC) X-FDA: 76760893818.29.cow69_7336a878d346 X-HE-Tag: cow69_7336a878d346 X-Filterd-Recvd-Size: 3169 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Wed, 29 Apr 2020 12:57:29 +0000 (UTC) Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3AE07208FE; Wed, 29 Apr 2020 12:57:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588165048; bh=xzT/KkNS3Xwx0ljtjKedzOR7MaoXuFG1UnsZ0fUYCoI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=r2KaiYDUDUDUtPm14PqwArONv9atx0AeQgXxeAHuy4Hah5UcUEnNgw8czuHJDrhuC PkqrEs6Zqwd77NrjGQOiHSLUU8eu8Gpgapz2H8cjv0HS9YQihvo4tG8uaTYk1DHdEV 9dt2TkQcfLt/ivhTwGlh/qA52QOThA/Sd+M5n1vs= Date: Wed, 29 Apr 2020 14:57:26 +0200 From: Greg KH To: Luis Chamberlain Cc: Christoph Hellwig , axboe@kernel.dk, viro@zeniv.linux.org.uk, bvanassche@acm.org, rostedt@goodmis.org, mingo@redhat.com, jack@suse.cz, ming.lei@redhat.com, nstange@suse.de, akpm@linux-foundation.org, mhocko@suse.com, yukuai3@huawei.com, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Omar Sandoval , Hannes Reinecke , Michal Hocko , syzbot+603294af2d01acfdd6da@syzkaller.appspotmail.com Subject: Re: [PATCH v3 4/6] blktrace: fix debugfs use after free Message-ID: <20200429125726.GA2123334@kroah.com> References: <20200429074627.5955-1-mcgrof@kernel.org> <20200429074627.5955-5-mcgrof@kernel.org> <20200429112637.GD21892@infradead.org> <20200429114542.GJ11244@42.do-not-panic.com> <20200429115051.GA27378@infradead.org> <20200429120230.GK11244@42.do-not-panic.com> <20200429120406.GA913@infradead.org> <20200429122152.GL11244@42.do-not-panic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200429122152.GL11244@42.do-not-panic.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Apr 29, 2020 at 12:21:52PM +0000, Luis Chamberlain wrote: > On Wed, Apr 29, 2020 at 05:04:06AM -0700, Christoph Hellwig wrote: > > On Wed, Apr 29, 2020 at 12:02:30PM +0000, Luis Chamberlain wrote: > > > > Err, that function is static and has two callers. > > > > > > Yes but that is to make it easier to look for who is creating the > > > debugfs_dir for either the request_queue or partition. I'll export > > > blk_debugfs_root and we'll open code all this. > > > > No, please not. exported variables are usually a bad idea. Just > > skip the somewhat pointless trivial static function. > > Alrighty. It has me thinking we might want to only export those symbols > to a specific namespace. Thoughts, preferences? > > BLOCK_GENHD_PRIVATE ? That's a nice add-on issue after this is fixed. As Christoph and I pointed out, you have _less_ code in the file if you remove the static wrapper function. Do that now and then worry about symbol namespaces please. thanks, greg k-h