Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3238339rwb; Mon, 7 Aug 2023 10:10:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVD0NtAjoXlxukIvpJHuIkpwkNNJpiOhaUhhlmpdGSufh9GHIq3nWGxM7oB9reitpMRHYL X-Received: by 2002:a17:902:c40b:b0:1b0:4205:8501 with SMTP id k11-20020a170902c40b00b001b042058501mr13884889plk.6.1691428218077; Mon, 07 Aug 2023 10:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691428218; cv=none; d=google.com; s=arc-20160816; b=TaYm5zf2VxuXZISDpDY0Az/eaHsM1/VAu2KwFwjoKXLY5Vdvfg706bjyVyxiRefkCi RfF4IByk/wgqfS6pDusKwnl4gk/qDgJGeoeh4PEg4OOKaRbC5Cf2nr6IEtLCEyhmtER0 jdzWRUVLtipnn3pH/CZCHvfrfUTCtKhGXMzpGnQmOX+bhzlNe0mP6dk4WcdSxT+R3wfz md1DFPKLdACLbBBXRihhs5o755eczSWK8YBtkVQZ3eJxPeZVOueen1GVa0RSGFQqSxcm Vz1zQzVusxzlZoDtW/Ng9nbSRqcEMSA4gB0iF2f90XTxrwf/ePwKcTgmw/Viv9wGDQOo GBuw== 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=; fh=cABQbWJU7O0a+UPgHSiwUQ6sY/R0G63oUvu0DeYA5T8=; b=S1i/koTFAtnDLBxDzl77D1U5qCLwP9WWNwjYeqmoDPF3DidSESxX0qLWlDXznbJBTQ brzX01JlhL2pKw8fLXeCl7ox/b80y9dpJT0uxQro0OKM3mUrlR5DjBEfUMxc4+wkZtQf lm4ZkO/7pURXyOXOVhpXeMWeIuxg2SobymtL4KplsywmMqHv2o4sEbw1UQNAzkA/hyvl MJM1I3iIluORrOT7ANafBTeeBU+wWtYsfa401pTnA0vC3wvBZ38FZvIzrW7k80H0HXMl JRsots7snT7a/lvNG0wX9dgJgrL+To3C1jDHpQjPFbRvTz/6R7ScM+TfzJnyVhB+/s2b ARPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ul3SIvwu; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s10-20020a17090302ca00b001bb2d95f2a7si3183559plk.267.2023.08.07.10.10.04; Mon, 07 Aug 2023 10:10:18 -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=ul3SIvwu; 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 S231715AbjHGQ3J (ORCPT + 99 others); Mon, 7 Aug 2023 12:29:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231769AbjHGQ2u (ORCPT ); Mon, 7 Aug 2023 12:28:50 -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 CB2601BCC; Mon, 7 Aug 2023 09:28:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AB2BF61F28; Mon, 7 Aug 2023 16:28:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 872F3C433C7; Mon, 7 Aug 2023 16:28:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691425699; bh=TDhagb7/1BjVNI9fsBOdvguiTH1+pJKnlE7Km5AKGt0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ul3SIvwusScw6W/Rrx5lb8XHh6GsbWplmPgj0h8ekG8xmjqlPJn35HT0KLTgnzC6e VFiOq8htDLZ+EhzdtzfIHjA/Mfe8FTCbU9T3otANY+n3mitML29lnkHKJnGKr/Oja0 4nNb8EScvrTPEDZ+VSRS4c1HLTBnl4TfzSYc5pRIijM6X/LceuRWlNdX26s18x7RG8 /oaRItIUArju3fOu1QrNppOBwpfBKtIWF8ZTlrxj82PxPFzZ4CVeynTiZ8zCvx0Nrz 0BuZV8eGdhCoXw8H6NjSvsFMmf6SUfGj35ZhRlYhkx8wMNUqnvogDEv/6df048lZBD V9ZNVV/1uxxZg== From: Ard Biesheuvel To: linux-efi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel , Borislav Petkov , Dave Hansen , Ingo Molnar , Thomas Gleixner Subject: [PATCH v9 18/23] decompress: Use 8 byte alignment Date: Mon, 7 Aug 2023 18:27:15 +0200 Message-Id: <20230807162720.545787-19-ardb@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230807162720.545787-1-ardb@kernel.org> References: <20230807162720.545787-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=owGbwMvMwCFmkMcZplerG8N4Wi2JIeWidKJj8Dlmqxk7xPnZwiXV5brXV9wouiG9+hJzRN1Bj qn8AXc6SlkYxDgYZMUUWQRm/3238/REqVrnWbIwc1iZQIYwcHEKwETmeTEy7Kktmt8zyy3xd86T WmvX+8fat53lZn9/ZqXlmdNpGq+aTzAyND1ZezVKZ3qd0p2YyRoLn30OPamkuOmP4173NccM7tV d5AEA 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 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 The ZSTD decompressor requires malloc() allocations to be 8 byte aligned, so ensure that this the case. Signed-off-by: Ard Biesheuvel --- 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; -- 2.39.2