Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4950214rwb; Tue, 8 Aug 2023 17:20:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPYURzW9IcQMy5IzhiZsHoKqlUoBDshJBglNxWvROzpIrZ2MrPDWA8yb0NAmAaTBoOAyQI X-Received: by 2002:a05:6808:159c:b0:3a4:8ac7:3407 with SMTP id t28-20020a056808159c00b003a48ac73407mr1505675oiw.42.1691540437259; Tue, 08 Aug 2023 17:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691540437; cv=none; d=google.com; s=arc-20160816; b=aI8FIFxkazEeQH6GGMSSaK/DlwqG68/7YF+1UEwb1n5MwrrJLf82/kvkrgbXpLs2HB v8yXZ/ew+v/HQwaz1PaoUJwPZZd0w7gJ56RZfrXGVpuIpv3/Nz7s4g8WanUo3B3EcczT JMkNO2zTYYS+62dNlbYMFJ0TlC7a5/gv0YWKoCGH577fEvlQCXL7MUNSJIjZB5dX8FuP 4Ri4c1XxqbrKUPZmiR/CoJ7Zgq/beZ64YkoiyM0IADJ+kScm+F7m2kjaRH5nQtF7NCM4 t0QK8TBYlC5bQPIiOW/uhrCB0V4+qC5ISXGq87ilKymwU333T5SbdLXqmDaXO9fGVdHZ d3lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:dkim-signature; bh=lo4mgIh/9nXIAz81CZMW5MI7/+F8GTcgLr96nVQtDgE=; fh=CmjlOyI251gMrXawZv0mrFXqv8jBjQAAg4NkyvCmPvo=; b=RQ+iwu6jmGC82LN3OScIyLsJfpedd9kbZmQyhp5NYq9Kdlg5Zr/iUgMhEKoOE/HB+w SThRGsPVhHdOMy2DTbbCjWkdhtZbGQEBry8E5x9d6Ktmu40lbIP6flFy+G4/MSlU2WXj FaoFCHOspBy0UCkkAtEAQPcf7Km1Hremy5OJurWNSRKno/JP0UMKcJJ+UPTOi+V4TAGP pMkvfCyxIxfREd//tAPAS+0BjsNi5lV5+305nt1h0L3eYvqZ2AmSCVL7AHYPhVUPpDP0 smezItHGHOcDpxafSGmHSPkW46Pavat4w0bYg7QcL4Jb1nTygBKK+TvSTDiNHgS/VLr6 1TeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=csn37X32; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id np5-20020a17090b4c4500b0025960d035c6si254268pjb.138.2023.08.08.17.20.25; Tue, 08 Aug 2023 17:20:37 -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=@gmail.com header.s=20221208 header.b=csn37X32; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236311AbjHHVUU (ORCPT + 99 others); Tue, 8 Aug 2023 17:20:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236593AbjHHVUC (ORCPT ); Tue, 8 Aug 2023 17:20:02 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64B114084C; Tue, 8 Aug 2023 12:20:11 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-1bb7d1f7aeaso4731067fac.1; Tue, 08 Aug 2023 12:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691522408; x=1692127208; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=lo4mgIh/9nXIAz81CZMW5MI7/+F8GTcgLr96nVQtDgE=; b=csn37X32wO1Au0l6vBQx2q5u4zXc0k/TrPFkYfdNkHlqb8/drEsmOuqi2csZBahR2C 9PWU7Qh8JQLTEXu2ZPj6v2zt8FgVz8U3iuFkJtIeFTPmgQmr5HrAdWvhh1JWDX+z9J0B z12PX7uPVy6AsEA5GYnbtBbjjGTmL6e1ifaJIj+i+d1s+1KUgnF4Knchq7FVtYYfudtO LJNQI4HdMAiwjUj0FJ3ud+Q+/zT26+u8kX8OsUuuKxVJvRqhbWTBpZ3mXqh4Yf3YBHMd Gx8a2ZKhUur0mbCdLm8bTYgwGqgpqFdpambtjFRCAtf0/c1rcPfXUaBrIQJhQ99lNZy5 hHGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691522408; x=1692127208; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lo4mgIh/9nXIAz81CZMW5MI7/+F8GTcgLr96nVQtDgE=; b=ktksGH12QFtnE5DMlC6U0o0KAjsoJ9RNHkXmcqcFpUhGbXKThiyVQHyNzd1hAyWyJM eEavoUpyZsHmbtCXF7IvUh0hLxzG3tigWVXr+r5i4AiR+AP8SSxZ5m42mmc08kq/GrfR QYb3le2CiVdM7HplbJFs6WbusPKPOaIqf5FalGVot+RDOcSjMOs/Ue1RGAbWBFG/uzLt yeqFifq7PgEjhup48gOQSpAQD+ijYM/gqThmwv8OFYclHFNh0ABhlimJIH2QMSI+M0s0 Imlm4Rtihgb8M5SPqyfbVWotYYbrHFUCNC03GPjOBK0/33tlz84o4yAEqgRbAriynyD3 6CBA== X-Gm-Message-State: AOJu0Ywtsc5474bT97o3MWARenHKPI8fOxqHmtX8vqZFdaptLllKRFL1 +iw3f2GBD6vdKUoFKT75H2g= X-Received: by 2002:a05:6870:c18c:b0:1a9:af29:46eb with SMTP id h12-20020a056870c18c00b001a9af2946ebmr529285oad.59.1691522408303; Tue, 08 Aug 2023 12:20:08 -0700 (PDT) Received: from [192.168.1.119] ([216.130.59.33]) by smtp.gmail.com with ESMTPSA id n27-20020a4ad63b000000b00565d41ba4d0sm5602140oon.35.2023.08.08.12.20.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Aug 2023 12:20:07 -0700 (PDT) Sender: Larry Finger Message-ID: <20fc56ef-6240-e86e-6d38-9278592a3b25@lwfinger.net> Date: Tue, 8 Aug 2023 14:20:06 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH] vboxsf: Use flexible arrays for trailing string member Content-Language: en-US To: Kees Cook , Hans de Goede Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-hardening@vger.kernel.org References: <20230720151458.never.673-kees@kernel.org> <169040854617.1782642.4557415464507636357.b4-ty@chromium.org> From: Larry Finger In-Reply-To: <169040854617.1782642.4557415464507636357.b4-ty@chromium.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED, 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 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? Larry