Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp729016rwl; Wed, 5 Apr 2023 07:03:35 -0700 (PDT) X-Google-Smtp-Source: AKy350arV5ew8Jh7HbrHZPnN+zKuTUS1x83Y6fPlXdfBuFESRnPfzAmDQ6Q7+WFeppvUdiu91Gn9 X-Received: by 2002:a05:6402:44f:b0:502:a700:dc8b with SMTP id p15-20020a056402044f00b00502a700dc8bmr1733605edw.9.1680703415054; Wed, 05 Apr 2023 07:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680703415; cv=none; d=google.com; s=arc-20160816; b=nQjaYKRi03v0+cIZgjPtwQH6vzG8bN9dWMDiP6FNy1fkRZYTIcgj/z8FVF5JDtkjgv AGDLbDhzXS/nW4Xcr87n1TeSil+u6GAkm3xFezoo2pcYwIuxKC9nAwTV1jCAKgYYSJoC lzpt6nlDa81VA+8prammJl7tsYV1oVaB+H9+Zk8Lmsn3g/+kgC8bkai2qa8BfFPzIuBX Utt1if4SFVQSNA5dPNP4fntsPqhy4u1GOGNyG9rimHpaH6fGnsHi2y3GaoyA+/ZaNmV6 jU6QeFa22Obd09NHxdhkNa5bxbGmiTj0BRuFaMuA8ccyOH1gt6RcNDgloA8PIFX1t/12 H22A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8k+ea+emh7/8/N6py13AFOKb8HPDuudO8BKgg0M86zc=; b=waavbvR/62VYXqslYtiLgD0to7ZZbuRe1pCmXOGnA/9ZKuOX39KUf56H6h8lIzJ2kQ Z0b6CHg3wtCRtR/zWVJ3KH+3iu53JBXnrbuCrkBWyMls43IW6ON+Wc0a05ThxIPv5nLi /wsijOw0lSIlWg7Co/sP29i0VyMfmuNUdl2jeczgqe42VrEZ1r1MFFjEpo2dgRM0EX5y DrK673DDZz0d599laLwVB2ir2x9YnRsUY0sPBSsba8XH4hO6j7MW69k9ZWDki5TWO4Ba v5NqtbVIIxphlm10FRrV/1xYMHQhpFJDoCBBuoYG8UkXfaKpH80Hp05joUFCHOoqAGIN 4jPQ== ARC-Authentication-Results: i=1; mx.google.com; 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 m12-20020aa7c48c000000b005042f9269e8si480553edq.100.2023.04.05.07.02.53; Wed, 05 Apr 2023 07:03:35 -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; 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 S238238AbjDEOBB (ORCPT + 99 others); Wed, 5 Apr 2023 10:01:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238199AbjDEOAq (ORCPT ); Wed, 5 Apr 2023 10:00:46 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFDBD1BDD; Wed, 5 Apr 2023 07:00:44 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.1.0) id 942f2422d11c465e; Wed, 5 Apr 2023 16:00:43 +0200 Received: from kreacher.localnet (unknown [213.134.163.219]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 8BB6E1B4EA5B; Wed, 5 Apr 2023 16:00:42 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Bob Moore , Kees Cook Subject: [PATCH 28/32] ACPICA: acpi_madt_oem_data: Fix flexible array member definition Date: Wed, 05 Apr 2023 15:56:06 +0200 Message-ID: <2094939.KlZ2vcFHjT@kreacher> In-Reply-To: <4845957.31r3eYUQgx@kreacher> References: <4845957.31r3eYUQgx@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.163.219 X-CLIENT-HOSTNAME: 213.134.163.219 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrvdejuddgjeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepledtieekkeekveeikeetgffgteeuteefjeevjeegudelvdduheeiuedvieehieevnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepvddufedrudefgedrudeifedrvdduleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvudefrddufeegrdduieefrddvudelpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeegpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhhosggvrhhtrdhmohhorhgvsehinhhtvghlrdgtohhmpdhrtghpthhtohepkhgvvghssehouhht fhhluhigrdhnvght X-DCC--Metrics: v370.home.net.pl 1024; Body=4 Fuz1=4 Fuz2=4 X-Spam-Status: No, score=0.0 required=5.0 tests=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 From: Kees Cook ACPICA commit e7f6d8c1b7f79eb4b9b07f1bc09c549a2acbd6e8 Use ACPI_FLEX_ARRAY() helper to define flexible array member alone in a struct. Fixes issue #812. No binary changes appear in the .text nor .data sections. Link: https://github.com/acpica/acpica/commit/e7f6d8c1 Signed-off-by: Bob Moore Signed-off-by: Rafael J. Wysocki --- include/acpi/actbl2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index a51fd4090d27..0029336775a9 100644 --- a/include/acpi/actbl2.h +++ b/include/acpi/actbl2.h @@ -1274,7 +1274,7 @@ enum acpi_madt_rintc_version { /* 80: OEM data */ struct acpi_madt_oem_data { - u8 oem_data[0]; + ACPI_FLEX_ARRAY(u8, oem_data); }; /* -- 2.35.3