Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4899852rwb; Tue, 8 Aug 2023 16:14:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7AuKHTo3wTdo1ASp26gsdrAXjxFLwUpmc3+ULOCCTdb/k6wZvRPexE7G8c4BcL8YLJsXP X-Received: by 2002:a17:90a:6c63:b0:263:fccf:8f6 with SMTP id x90-20020a17090a6c6300b00263fccf08f6mr725609pjj.14.1691536446218; Tue, 08 Aug 2023 16:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691536446; cv=none; d=google.com; s=arc-20160816; b=lPlqtln2rGTm/MpeFlYNTZGpNXZKnICUBDsTQl/CFTxdUfnFj/wVj8GSv44IrJ2zRI IeZX3gOIztX3AfXx5A7NUkNiYrfDvTRuN3lnjDuZXavLp+m7x281bUdLQEdWa54w8eR+ OZd8BlD+liHHJu8T48Ih2Mo7p7Tg3m8F5XJJOXgtkLbRq0zK2EIiihGbyAHv8TZ/Np7L IOL0PJUacIZir2mLUkP4RxkXEZ6lwBKWd/5KJ6J0GfRhk1mzuIiVIA6vctAVgVeJtkoc rBG6FOlubIqHmoJ0mTuwoFkHCqsSfYVmlHIz4dysPRuhBcpSOvoi3j1A0663ml+Hv7rs 2UPw== 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=md5bxPWMzWtFYHeGnGMZwyZT+x0wexWDG9PTlIVjE/I=; fh=4FaD9xcuVOq0BZFr4nAQwFlwKy/IG6GpHcLd0yLK1Qk=; b=JvHLGSLTdbW62p+0hWNQevhhlFERDdxEOAJgMbOnAoJ3+taqBf3Cjsef8TSY569TbW ioDVVn2gNPBQY6I2zo9eDhvWhG0Fm9/CuHJfqmsV4C/lP1nkLlTUIBTb7T7uH0CSK4qO n/TNmxp3hTl1rLr6rTQPTwjiWwSFVsBiWnOt8aF8sMEdRwS5hQPezXK+EKu98YfG8Oe6 S2/saLWib8mdMiW3PXaqktjd99hwOr7eFbonyaZl2jnvNwvtRZeHIxMWQ57h+Qkx8Nn4 x1ImZY06e99QjuedIzHhq520VnmO93mctE10n6cKMluk8XZGlSkztqEiiwr7nZ9B7891 FOdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Fgug0W2a; 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 bt19-20020a17090af01300b002694b5c3a6asi127964pjb.190.2023.08.08.16.13.54; Tue, 08 Aug 2023 16:14:06 -0700 (PDT) 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=Fgug0W2a; 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 S229554AbjHHVCM (ORCPT + 99 others); Tue, 8 Aug 2023 17:02:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235368AbjHHVB7 (ORCPT ); Tue, 8 Aug 2023 17:01:59 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBDE54C23 for ; Tue, 8 Aug 2023 14:01:56 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-686d8c8fc65so4322031b3a.0 for ; Tue, 08 Aug 2023 14:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1691528516; x=1692133316; 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=md5bxPWMzWtFYHeGnGMZwyZT+x0wexWDG9PTlIVjE/I=; b=Fgug0W2a9pGm9mZr+L8vD1pYzq5E7GBToZcQO53iOOE0Hi2DzANaVG4Z41u2KN+OUY gQ7HtJw/wTCmMRNZxpWcnasB6iFE4HS3PqW+ysbe02jd0wtPaYyU/GlZVRTlkJo6XMsK xVqOvQPQOoO+6zXabNf3TaHTsQDQF6JQBW848= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691528516; x=1692133316; 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=md5bxPWMzWtFYHeGnGMZwyZT+x0wexWDG9PTlIVjE/I=; b=RMTFYCgqtn5dka2dl1S82rvEp3moiYLiaNDO3Oy7Rp0zDHXouyJ8qvlSZNCny6E+xd riO+Ft8E0H/ajyjX9pKuXkpG6CKeUy7dfI4BN2RMg/NMj8JVG9XKgn7D38C5v4t3uYKs gEVTH3r5Fgs6gEK1/+SGl+BdZsBsab9AKicrkKsXk4aCunIwApUsagVkmL5B7JAUc8Wr f7K88eSMgqaBfcfEJDhaCVGlFAiwqnfuTFPVgrcl/tyPq1adIP/GzPoODPDIKXccTQRJ 7UnlZF5nepgG1Tqd2REAqxdUzJXE457oRBJt+HV4CCuydkkO3pD7y534fusym2W5uydY 4Bxg== X-Gm-Message-State: AOJu0YzcDQy8WAtTq/kPPzDVtRFtJmW6lpYhhvhTsW9PNWyIj2ylP/hC 9Z7TaWOKVqLgvbLpo9aOP/KBJg== X-Received: by 2002:a05:6a21:3e0c:b0:131:6464:217b with SMTP id bk12-20020a056a213e0c00b001316464217bmr623397pzc.16.1691528516351; Tue, 08 Aug 2023 14:01:56 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id s21-20020a170902b19500b001a1b66af22fsm9452942plr.62.2023.08.08.14.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 14:01:55 -0700 (PDT) Date: Tue, 8 Aug 2023 14:01:55 -0700 From: Kees Cook To: Larry Finger Cc: Hans de Goede , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] vboxsf: Use flexible arrays for trailing string member Message-ID: <202308081401.A9C03BBCF5@keescook> References: <20230720151458.never.673-kees@kernel.org> <169040854617.1782642.4557415464507636357.b4-ty@chromium.org> <20fc56ef-6240-e86e-6d38-9278592a3b25@lwfinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20fc56ef-6240-e86e-6d38-9278592a3b25@lwfinger.net> 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,URIBL_BLOCKED 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 Tue, Aug 08, 2023 at 02:20:06PM -0500, Larry Finger wrote: > On 7/26/23 16:55, Kees Cook wrote: > > > > On Thu, 20 Jul 2023 08:15:06 -0700, Kees Cook wrote: > > > The declaration of struct shfl_string used trailing fake flexible arrays > > > for the string member. This was tripping FORTIFY_SOURCE since commit > > > df8fc4e934c1 ("kbuild: Enable -fstrict-flex-arrays=3"). Replace the > > > utf8 and utf16 members with actual flexible arrays, drop the unused ucs2 > > > member, and retriain a 2 byte padding to keep the structure size the same. > > > > > > > > > [...] > > > > Applied to for-linus/hardening, thanks! > > > > [1/1] vboxsf: Use flexible arrays for trailing string member > > https://git.kernel.org/kees/c/a8f014ec6a21 > > Kees, > > This patch has not been applied to kernel 6.5-rc5. Is there some problem? Hi! Sorry, I was waiting for linux-next testing, and then got distracted on Friday. I will send the PR to Linus today. Thanks for the poke! -Kees -- Kees Cook