Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1605017rwl; Thu, 5 Jan 2023 16:38:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXvypZzuu4kVzFEvFrFCCuCbZMxnv36MWVgR8H8H3I1TPWXnU+vPR+ykjNYxculAqLu4ym9S X-Received: by 2002:a05:6a20:9589:b0:9d:efbf:785f with SMTP id iu9-20020a056a20958900b0009defbf785fmr68317719pzb.20.1672965529679; Thu, 05 Jan 2023 16:38:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672965529; cv=none; d=google.com; s=arc-20160816; b=f70dkNgHsaZyme67GS/jJkwa1CpQMr9Qx2qjCRujDupKVfFY5hkQh/Ycsce79Wt/lA 4r2mjrHd33u0Sh5M/Q/jmXzPPfhmu+ZgfW/ETRw3uCyQ/O7+ngkXyBVoSyUTgZressVK 1OKvvhukA02zuTqfB8LxdKL9M58XFbNl66PYqqHmH3HrWRWnKLol7xWqMPy3k0t0Ntuo EHQXuODYOONrr+EI82qnX92G5LOVFX9B8OSpq9VgVy1MdeAZF0SvhuXLQ2EhSpBQ2TBQ hA/AyDoFDNaQ1XKaOwyyF91ISFyt/+FjGbT5hhWNQ1+sDdSKaqwgwGkvhViXXsErcqa4 rpTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PcoDVSr7VhkuAxMX6CurmcT1DVKpDYgZ9gO3SloQjNs=; b=imPausbfuLIGYkQ+B+h6Ov95C7jRnFds7DRXK2Sbord7md6O5d1rTI2qaVZXcv7zpp 5XsT0tJXwE81UzSl3H7OvpfxK+mrSxwG44nY0k+/w6zF3BF+drGva5ScTIgWgd3gRNy0 BvcrbeF5gGmdb/+aWzna5De1fsBNuSYK99HfvspEwxw6flh+vJ/93H4OtDsp1Z+5yTJb LUmuowx5yg5nmeddF9wOLwqUTD/PMsC8Bt/Lswt5SVzYnMiqtTRRCtc/hb4/Tk+S2KA9 JXL+DaP8NIj2LYFl+D9LWlzFBIVFwiRJlaKoIODV7iqgsQaZI1onnaNYNbBABu9URuhS unUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UrdOR0JK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o19-20020a656a53000000b0047839aeb6e4si47660516pgu.363.2023.01.05.16.38.42; Thu, 05 Jan 2023 16:38:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UrdOR0JK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234584AbjAFACe (ORCPT + 56 others); Thu, 5 Jan 2023 19:02:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235906AbjAFACa (ORCPT ); Thu, 5 Jan 2023 19:02:30 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88B2C3C0CB; Thu, 5 Jan 2023 16:02:29 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2DF5A6192F; Fri, 6 Jan 2023 00:02:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0307BC433EF; Fri, 6 Jan 2023 00:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672963348; bh=1KDmSWt4RhMhsaM1ixd2OuCs+ZKDeSjvTmD2Jst6BVM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UrdOR0JKHNNSm4I+mY7ODOwCttwAmhNuxViGChPKvwved9FGgOdIbPojo88iBEwOr qDxVTEoy59Ut2y4dnkBRlsc6GlSqLUsq0x5AAzSZwgiCwiUUSi4yZibuNIwQIl2ug3 GgFU4ApcjQyL0yiGeSs7hURUVb23Z+uvikllWrNLtQo0eGpKKiDlEFfan2+xMyhoL/ iizpiq+OpdkP6enAALvEwKkdsLsSldBTIVUms4Qif1Upcyp/YAnN+5GHATqY9K4QvP g9lqqH47Lo0Hd+cETK0lXuzi4KaJmsN/Nc7PcXfXE+BpOKUQHm1JdLgsBtB6FlU6G6 DNkmkF03LcLPg== Date: Thu, 5 Jan 2023 18:02:32 -0600 From: "Gustavo A. R. Silva" To: Kees Cook Cc: "Gustavo A. R. Silva" , Andrew Morton , Dan Williams , Alex Sierra , Felix Kuehling , "Matthew Wilcox (Oracle)" , Shiyang Ruan , linux-mm@kvack.org, Alistair Popple , Joao Martins , Mike Rapoport , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] memremap: Replace 0-length array with flexible array Message-ID: References: <20230105220151.never.343-kees@kernel.org> <202301051441.C1D7291921@keescook> <202301051536.1D1F92678@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202301051536.1D1F92678@keescook> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 05, 2023 at 03:37:03PM -0800, Kees Cook wrote: > On Thu, Jan 05, 2023 at 05:14:23PM -0600, Gustavo A. R. Silva wrote: > > > > > > On 1/5/23 16:41, Kees Cook wrote: > > > On Thu, Jan 05, 2023 at 04:14:05PM -0600, Gustavo A. R. Silva wrote: > > > > I think this is the same patch: > > > > > > > > https://lore.kernel.org/linux-hardening/YxKO%2FjY1x0xTpl4r@work/ > > > > > > > > It's actually in linux-next. > > > > > > Hm, it's been in -next since September? Is this in a tree of yours that > > > didn't get pulled for v6.2? > > > > No. I didn't send it. It's just one of the two patches I have in my -next > > tree. They didn't look like high priority at the time. > > Cool. I'd like to get -fstrict-flex-arrays=3 finished this devel cycle, > if possible. Can you add this one too? > > https://lore.kernel.org/lkml/YzIc8z+QaHvqPjLX@work Done! https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git/log/?h=for-next/kspp > > I don't see it in patchwork which I find confusing too. :P mmh... and I don't remember updating it in patchwork before. (thinkingface) -- Gustavo