Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp957724rwb; Fri, 28 Jul 2023 02:28:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlGqTLqu6vUi1c+x7+AHlGqn1UDoAhgq6ERZ4JVs0xVGkMoFokrvssBoGbH1DKJyNCMW8/pZ X-Received: by 2002:a05:6512:3d2a:b0:4f8:5f32:b1da with SMTP id d42-20020a0565123d2a00b004f85f32b1damr1512907lfv.24.1690536488318; Fri, 28 Jul 2023 02:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690536488; cv=none; d=google.com; s=arc-20160816; b=HoMDRWdKwSZtXpj/UOSuoN+evaPRJ5yxwdNpfmuYH2/ra2XBnaPVGgp3+g0/0dHwGi Xezm3i6ewADAfo85ZHlkcZ7SFVBIhgLbJnB1Z68QmQ6ZGWTjFWkerxUYmwb1PzpbwZ1Z L9xknAxxM/Tf/jpYIZOMbACUFJWw7UPdRe/CvIeCCf//1wFN6m/fzFQNKO4XFtj81byT /8b/hhSeuIFdVWNaA1dB5pPDBM5hSGg3Oj7jwlBZ+/OG8RZouhJDkfRTuk3V6Xcc6eLd B9y9qsXxGfum2PNAB4SnDf33SNR1W1mcVXWRvMNSrnV+sSRPassngAImA9uyA9D0jVJm XMYw== 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=UoPnrMfWVKGOqsML3Cwqzr4dYAyNRBpPmY/ITnBmPi0=; b=wKhJTz2ordk3YMIhniKg9altMy7humhGh32hg0aZEzc+idMi8V2st0yixDgspylTtk RnrfpuFoDRnRJIF/xsqX/U4I2s18pztLbz1gbZZ9bpvty+D91dfQzNhMC8hw9ASSQF/O dBNDq4/s8G9jzmKDXeDKiRXth/JnC+wrVst3YfmeESvLPyCtNz1PNKr2CxTQdl7pCott BoiGim5qZV3pWj16BDgYKUiwodUJTwJVUu+TpyOub72vXxX8tgjf9F6VYK8gRuqch2Bg EP8DR5luIwl797gEJGUcZbp41rQL3pH/Pja4APK8LIh1akawWduXcOaO7tLEVPis/0gL +6Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CKOJowta; 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 r10-20020aa7d14a000000b00521e533adaasi2177915edo.408.2023.07.28.02.27.43; Fri, 28 Jul 2023 02:28:08 -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=CKOJowta; 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 S235455AbjG1JPK (ORCPT + 99 others); Fri, 28 Jul 2023 05:15:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235513AbjG1JNL (ORCPT ); Fri, 28 Jul 2023 05:13:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A279F4C08; Fri, 28 Jul 2023 02:11:55 -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 E06D062089; Fri, 28 Jul 2023 09:11:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93609C433CB; Fri, 28 Jul 2023 09:11:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690535514; bh=TDhagb7/1BjVNI9fsBOdvguiTH1+pJKnlE7Km5AKGt0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CKOJowta5FUOIflXVpspuzZIa6PG5tbpOFguKlaekjPrRnTAWIbLelXKq/rxfVjwo RQss3W9lcppxRyjC8rc6ONth/SnV1rIT64xKHX195k4B27prBOayzYqVWHDbI7zG8O zEyqctVvXbFKisaMPWlGwHAXmYIbF56FG76pIlIDhg794np66tM2NjqNWJz7jMh3M5 pHHWUQyXbqZ0QlWQEUU6OPDAWJDCx+NOXr7Kr4UheeAh27ClLvwWcBB49HF+NEKlYa DZBfIM1/4HUHOBeXQO/vltoRHZc1hv2CRK9Vn18Dh9/FgLZkEmOkcP751vasap09sn itCvh4QnyTGEQ== From: Ard Biesheuvel To: linux-efi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel , Evgeniy Baskov , Borislav Petkov , Andy Lutomirski , Dave Hansen , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Alexey Khoroshilov , Peter Jones , Gerd Hoffmann , Dave Young , Mario Limonciello , Kees Cook , Tom Lendacky , "Kirill A . Shutemov" , Linus Torvalds , Joerg Roedel Subject: [PATCH v7 17/22] decompress: Use 8 byte alignment Date: Fri, 28 Jul 2023 11:09:11 +0200 Message-Id: <20230728090916.1538550-18-ardb@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230728090916.1538550-1-ardb@kernel.org> References: <20230728090916.1538550-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=owGbwMvMwCFmkMcZplerG8N4Wi2JIeVw61bH4HPMVjN2iPOzhUuqy3Wvr7hRdEN69SXmiLqDH FP5A+50lLIwiHEwyIopsgjM/vtu5+mJUrXOs2Rh5rAygQxh4OIUgImwn2VkeNydmfxAInKm2TGB aJXQB1GHQjJ1FO+YTsh3a95g89MukpFh008jt9sLfSQiVrF1iUunNZjn5uvlMiTtuFKrdcPP/Q0 LAA== X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: 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