Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36558746rwd; Tue, 11 Jul 2023 02:37:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlHR68pFThwEJkaUpcKCW/azmShfnasn9Y7bLPzJHRdoSy4u/bJT4CeLluZ/yLUHP4qsQSJd X-Received: by 2002:a05:6a00:198c:b0:668:7325:e184 with SMTP id d12-20020a056a00198c00b006687325e184mr16485574pfl.16.1689068231103; Tue, 11 Jul 2023 02:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689068231; cv=none; d=google.com; s=arc-20160816; b=FrDQuQx3MlDWA3zV9GeBhGhboI3qM1TyrlwBpp6/hPo436DMPrkT7rlIBemWDka/yD R3WkK5vaWem1gtMEZ/qF3DKybXJS9IHQQqPmQFEMhWqSSOAU0nIzjm6bT9j3Hv4M3wFy P2eUlQqK7kg70X9adDHV4PM03mu4UQtTcEVaihehZZOS527H29X2ScrrY1LmLGDH7FyN 778nHmeb6vknsudkbyNvXb4/f30jQvmegYtMxweFV2hz8vulXygvR++AQjDTt+fJxRne hRwaXXYt4AhDs6H4PFdrNkwam3cu+AC0nmQ/Fx4pD73k30L8Osq6G/m5XfwmHFVHv0pW 46Gw== 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=ptY4E0i27+Om/1Zw1hXSrAP/xs1+uRR/9hpHHcIHrD6c/tqH6GKaeIl6Qg2e7X5Nft 0efkOnEM81+cAMSNXz5KcegKrVYhu/c2u6q6Cn/v0sEL4lFiQtkc6ZzEXp0322tA1lxn pl4wDcB1sexHOhEL20s8rNzPDj8PhKxHZdktK44mpb8WiPTK103jnknkVI31JDscOV9B 8tVpcG/B1UoySW4Ab25FMKu+cI7k1i0z1XSWDyUWYDMK33qCTdORxabX3IfFosSOcLcR zOQyJIGRO1TlFI0/3aE68fZ6S/QaulLQUFF/CNMVEpTS71day2LkfPKIX9YLEfjECrIB AsYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gvs1F+9V; 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 i184-20020a6387c1000000b0054fe7a4c49esi1088468pge.824.2023.07.11.02.36.58; Tue, 11 Jul 2023 02:37:11 -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=gvs1F+9V; 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 S230302AbjGKJSK (ORCPT + 99 others); Tue, 11 Jul 2023 05:18:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232025AbjGKJQ7 (ORCPT ); Tue, 11 Jul 2023 05:16:59 -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 A2D551FEF; Tue, 11 Jul 2023 02:16:12 -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 739B36141C; Tue, 11 Jul 2023 09:16:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09CA3C4339A; Tue, 11 Jul 2023 09:16:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689066971; bh=TDhagb7/1BjVNI9fsBOdvguiTH1+pJKnlE7Km5AKGt0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gvs1F+9VLZ/1bbAxvQ2pQwgKRfN/BKyKhnhBSR7aphTPlObzEf4txxgSdPhMH2JCN M58VGZ5uEwIZa11tsh/nyXD1WihMY115vQXXQGCPqsiBaOk8j+okeQoqCA5jshSull 0o2iNkRE/oNYWTth7c3gNIMPdJpaoirB7w2kDhaGdiKDoX/xtarpXyDP1F42TaB5kN zcdR8OdfPyu2b2yLK4gPQY/w68WVoDJTqTsf5pwtl3KNZQH/39g7MPJqeP4w8+4/s7 uMvVG+mr30CaJ2O5tJm4vosFRjGdh+lIJ4AJUeSzTKpHeQYioxvj+SIOyVDAoTxz1A xfm9iCLaW6GCQ== 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 v6 16/21] decompress: Use 8 byte alignment Date: Tue, 11 Jul 2023 11:14:48 +0200 Message-Id: <20230711091453.2543622-17-ardb@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230711091453.2543622-1-ardb@kernel.org> References: <20230711091453.2543622-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=owGbwMvMwCFmkMcZplerG8N4Wi2JIWWtbLtj8Dlmqxk7xPnZwiXV5brXV9wouiG9+hJzRN1Bj qn8AXc6SlkYxDgYZMUUWQRm/3238/REqVrnWbIwc1iZQIYwcHEKwETs5zIybJuq0bDWza0z5noR 05Jm1h4etu9BVy6wRiuZ+p3mzrb1YWQ4uGG7Nlean+289O1bj/wyebvPq8uydFXlVrsltZELjr7 hAAA= X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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