Message ID | 20230508070330.582131-12-ardb@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1966182vqo; Mon, 8 May 2023 00:14:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5NYE69zPtn3QOnNPxfQWWpvHQ2TlPlDWSCcW03ewLiU5qEgcaO1L+6kVB26JMaqB0waxN8 X-Received: by 2002:a17:90b:3004:b0:246:b6f9:148a with SMTP id hg4-20020a17090b300400b00246b6f9148amr10333092pjb.21.1683530040010; Mon, 08 May 2023 00:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683530039; cv=none; d=google.com; s=arc-20160816; b=xkyYYZ/Q4kdvSRRCX/fBt7BMC9dYv7dQRWWOrbjspJAGbuI+COhvN2TSo2vealsj3q oFH19ShkuNsr99LD7DOiEPA43HIFwhVzxTLvkIeATjzBQw9TQhu5YvBf2607mdEconJO adn2jQkVSppL9DOrvzq8oHFjXegU0Bjav8KDC8BtSGV98q1F4sTFHAs84sh8WT9K09zf 8OaWcItpxsGkvN3D5o1Cl+Pvmdl3WvQFibREOYb5DvQQDkgMvydDsB0QOnoAcMkynr/E WdQWQco599FKYHJMB9q1gh9UEALiEocUSXHz2r4dl7o7ZGbGd7VQtcaWuZiQvD48yFsz ltOA== 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 :dkim-signature; bh=DB8oL3jXiN9e2dZTst6BBU9MW8a+CwDXQ55OFaZVfRU=; b=dqTj40+yjyVdWMOS18WSBt80agShbgJ/Xy346E/oBE/LCM3zFIFPdFbIQz2rOfKDUh J8jrQfWk/lNKbMikLHu/7JS4lzrGNE8yiV6qgiK19bgf/CvdhNNNuhlgTE5HfzTgHzsC OEobxECdacdnRVvtMNVQMGLsc9JiH+RHGdFRsSNCqH1rZ7FWxP7VdM8I0Own8Nbyk7iZ /k9mSklPnv2H4Pc6YPvcthmlk0yXJKVPMaBwysLqWYw3xc8mziKmgt4u2qrpm4arCyLI hi32wgL0ejxt+2/fglKq2RZ2fAa6OBvwszlh6A0PcQfKR23wLZfqSklziFb0gCIsa+F3 ZogQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AlLKTvGd; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x19-20020a63b213000000b0051384f6edf2si7940937pge.640.2023.05.08.00.13.45; Mon, 08 May 2023 00:13:59 -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=@kernel.org header.s=k20201202 header.b=AlLKTvGd; 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 S233235AbjEHHFh (ORCPT <rfc822;baris.duru.linux@gmail.com> + 99 others); Mon, 8 May 2023 03:05:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233308AbjEHHFD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 8 May 2023 03:05:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B11911A480; Mon, 8 May 2023 00:04:27 -0700 (PDT) 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 4519861F82; Mon, 8 May 2023 07:04:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC7FCC4339B; Mon, 8 May 2023 07:04:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683529466; bh=TDhagb7/1BjVNI9fsBOdvguiTH1+pJKnlE7Km5AKGt0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AlLKTvGdAWpI/A5BYkRTmnyqkQA1abi7JpJ4m4Y2pKwEswrR5OqiqiWrbyds6PFKp blWfB6MzVhNaeNiQrRDzcQlwVWZPI0pFkpC9O4AAr7+fSCaZPjBJHbHcAyTZiprnz8 eQ5t3GZN8KGyC8iBuPh9/eZQqnOK6PDUALr8VrsZgpf0VekP6SqBVoUFTalLYTnW86 pMiNJkNSZW7mpMp8FzPc61EetiEWY8VaBgsh2YYyfxmvyyMILVTP3QbbJKCcpe5JJi fHgPCt3Oa6/jU99481FemscAHT3eAf3mdSDA+/9EWLF67rVvK1tyZ5u6nVIAjcUPid dmKOHLiuL4MOg== From: Ard Biesheuvel <ardb@kernel.org> To: linux-efi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel <ardb@kernel.org>, Evgeniy Baskov <baskov@ispras.ru>, Borislav Petkov <bp@alien8.de>, Andy Lutomirski <luto@kernel.org>, Dave Hansen <dave.hansen@linux.intel.com>, Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Thomas Gleixner <tglx@linutronix.de>, Alexey Khoroshilov <khoroshilov@ispras.ru>, Peter Jones <pjones@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>, Dave Young <dyoung@redhat.com>, Mario Limonciello <mario.limonciello@amd.com>, Kees Cook <keescook@chromium.org>, Tom Lendacky <thomas.lendacky@amd.com>, "Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>, Linus Torvalds <torvalds@linux-foundation.org> Subject: [PATCH v2 11/20] decompress: Use 8 byte alignment Date: Mon, 8 May 2023 09:03:21 +0200 Message-Id: <20230508070330.582131-12-ardb@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230508070330.582131-1-ardb@kernel.org> References: <20230508070330.582131-1-ardb@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=737; i=ardb@kernel.org; h=from:subject; bh=TDhagb7/1BjVNI9fsBOdvguiTH1+pJKnlE7Km5AKGt0=; b=owGbwMvMwCFmkMcZplerG8N4Wi2JISVi3nbH4HPMVjN2iPOzhUuqy3Wvr7hRdEN69SXmiLqDH FP5A+50lLIwiHEwyIopsgjM/vtu5+mJUrXOs2Rh5rAygQxh4OIUgIlY/Wf4nz078WqjW6OU7pSr zvfyjJ0vl+d4tX9x1l9uzVEuX1mzk5Ghme+vaE7+jN2PMkqv8C/237HzsG3lq69LlI7vXPIt5tt RXgA= X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765309195236439840?= X-GMAIL-MSGID: =?utf-8?q?1765309195236439840?= |
Series |
efi/x86: Avoid bare metal decompressor during EFI boot
|
|
Commit Message
Ard Biesheuvel
May 8, 2023, 7:03 a.m. UTC
The ZSTD decompressor requires malloc() allocations to be 8 byte
aligned, so ensure that this the case.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
include/linux/decompress/mm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/decompress/mm.h b/include/linux/decompress/mm.h index 9192986b1a731323..ac862422df158bef 100644 --- a/include/linux/decompress/mm.h +++ b/include/linux/decompress/mm.h @@ -48,7 +48,7 @@ MALLOC_VISIBLE void *malloc(int size) if (!malloc_ptr) malloc_ptr = free_mem_ptr; - malloc_ptr = (malloc_ptr + 3) & ~3; /* Align */ + malloc_ptr = (malloc_ptr + 7) & ~7; /* Align */ p = (void *)malloc_ptr; malloc_ptr += size;