Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1548765rwl; Thu, 5 Jan 2023 15:35:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXvxQPAKEzhVE5s9pgoTJ4ZZ990h7Z5kH6gyY3BKjC5SchobBiFoRyfjzIQmd88gGFihjAHZ X-Received: by 2002:a05:6402:449a:b0:47d:88f3:1165 with SMTP id er26-20020a056402449a00b0047d88f31165mr51471981edb.12.1672961727378; Thu, 05 Jan 2023 15:35:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672961727; cv=none; d=google.com; s=arc-20160816; b=vdbeEgeQ8ugsbupjHJJosn3Q0a/+Gm9Ug06c+qyek4yP53hHs7k3Qix3skj655t8t9 Z0eX9KtpBJogdCY800SdRoclt+s2nWApynNAito++UnAJ0q4zHlzrsm7GZ8eHxoYyy6B /zNcWkdhosYhjGat3IyvcDDsnwLBy7eaN/RWzvdrFDbMGGEZyQEY5MsNNXfZ4BMjH4sB rSfMKvKlloErY1hmTEpvYbh3QyhvsL+i1/FB65vXSHSbfKNmwyp3N3MpIltHetEbv6Vr tEIlVidy6qr2CEg/WGVLY93i1kUXq+GexJlb/8ReA+VEy5vEiFuYjjTR1eo2N0PwumqU AQnw== 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=XbEJ6C+ug2NsljTwx4DoQKNa+OlQLxZIBsSb223c9lE=; b=AG7fFhzIooLNMp/6YsrnL6NLzb1eNU3x3uxtmAziPRINwqZVYZYYktCI4mchQ7DiRe ZG47AdIOTFCZHuDQkV7AIVVs4RYvnm9kLDfgild48VqoofDY0Ocbzgmx89Vpd8+cNH5I qVNtVSvP5feUjoSO4k7o9qAoMNCLcR/R08/eK+Oi7apfWouIkUp1N8Su9iX+Ji08jDia AL4VtfLvJCnN45Gguhud9VbWDm66MEdtfphWpVCbriC5rS08sHOqHqDCHbUdjrEBOi8Q PSgYZXX8Gzf2rpii3IBOLbg2ynwn55+GEhVWsPzF8lJ7NkkNh/VbTYwZSapr2BG+d3Po ksRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=asfVO7RR; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a50cc88000000b0047039339346si33393241edi.550.2023.01.05.15.35.14; Thu, 05 Jan 2023 15:35:27 -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=@chromium.org header.s=google header.b=asfVO7RR; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235829AbjAEWlg (ORCPT + 55 others); Thu, 5 Jan 2023 17:41:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235778AbjAEWle (ORCPT ); Thu, 5 Jan 2023 17:41:34 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03C701C41E for ; Thu, 5 Jan 2023 14:41:33 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id d15so40871735pls.6 for ; Thu, 05 Jan 2023 14:41:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XbEJ6C+ug2NsljTwx4DoQKNa+OlQLxZIBsSb223c9lE=; b=asfVO7RRpHj7y2lWWMRxdkl4uWIT0Zk7rrOxBjwe9bKXgbEimJH8eSs5y7phpZbhat Xstmhy+yo3meVAL6UXTXRdfEM8C08TPjaMjJaVECOe36cCJoonFoyZh8S7sYdx2VU96X 0sOKfsNGdk4DKJK/HfeyNbwuCgDd+9cgb3jFk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XbEJ6C+ug2NsljTwx4DoQKNa+OlQLxZIBsSb223c9lE=; b=0Hwcn6tRHCMpEisEvAZwogBRVsNx+qMST4IkGU7bZ+f0vxdz/cg5/f0JsfE6VmHRLY A0YuCVPXw8ibBICvyGjQLlqAXf3F1OBNuiCVgHq0Dao8d0I0NLtC0WxoQ3EBjqli/UNh XtlHYreaOZZDHNV0qQfcG/BMxcphCc+Ar+PBmu1ixtmkoxcHTzNFxXdvX8Y9Pq8uloye QfQCDhIX7OUbi5UUCTqVPfZOBF/PYYuU/rObe/ww9dwfmpcnjDgyWZk7SZZkRxIVV5L3 Lgl3sC+ndxfeBjXEE/qsl8wIqT/jglXNWw506/+ZBSLj/9+3JQhDraVMH8aZcjAU0JIw CQ+g== X-Gm-Message-State: AFqh2kq/cn+z52zNYoyIzjuB/R4P0EuR9aT343wtKkdu41tTSasoVMTZ zOq7svI0HOCrAmu49GunDn4Kig== X-Received: by 2002:a17:902:f78d:b0:192:ae36:f760 with SMTP id q13-20020a170902f78d00b00192ae36f760mr27050793pln.47.1672958492567; Thu, 05 Jan 2023 14:41:32 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id d11-20020a170902cecb00b001925016e34bsm26665004plg.79.2023.01.05.14.41.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 14:41:32 -0800 (PST) Date: Thu, 5 Jan 2023 14:41:31 -0800 From: Kees Cook To: "Gustavo A. R. Silva" Cc: 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: <202301051441.C1D7291921@keescook> References: <20230105220151.never.343-kees@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 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? -- Kees Cook