Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4606236rwb; Tue, 8 Aug 2023 10:52:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEuTmSBXZE4C7pMTrufrOKPUGxWBwamgPq3tbPdP/+xIdWfraNQnDDkuAb7+HAoooFDjlmm X-Received: by 2002:a17:90a:fb89:b0:268:f2e:b480 with SMTP id cp9-20020a17090afb8900b002680f2eb480mr12664891pjb.11.1691517128007; Tue, 08 Aug 2023 10:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691517127; cv=none; d=google.com; s=arc-20160816; b=pBOlBK3QFfhCHIwcBR0IkpZ9bG1OexErfVHgnDkCtz8qHukMGSRYNHva2M7fth8OTR N5jURpveaBkL9l36HxJ5saKpxRFLkpYjRq+n5UVE8h3qOp6m/T3VKlYysQB167OzGRHv VrYEZ47hEl5kTh0p1CVG5ltu3hXTiGhAzoyYOp+9Cz9V6SJ6pD7qQXQyexkMqMgWZk44 Af+NNndt0TNnsIRiGL6Nx0EkpUgcvraGGrbtJXraqVX7dE40yEpgIEIrpHSXkOg2dGSj Ls8/A9w1YxTa2CEb+D7dgR+q8954wXdDOxDTg6OUZ0icnH+4RcJY6l8GdGMCnF6H56lA H+Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=fk74tCtX53wVUn2Lm/NtmiVu1U7qFhlk1cx1q4Oyjgc=; fh=upm4t26Ojn/J6N+Q9k8Qqzx52VymNDAlYlARzLeNh5s=; b=Mg3OsCs1QPY90NbkJPC9ssfGu1BQRf7qn/+fpiAOjHwZtVkZfDzQ3sPH5Is+ppggMn XEq4tF7H/pefO0ltH5wf+pLNEoihZwJ39rBkIQUJidxlBlqVYCvhjixiIsl5012yfR9x /AzvMTDpP/W66cpgFgpUd16zgobqTRQYjOkjfN9o25599TwqruBUf9kKwTOMdoiQmTOd SZk9+MeSvjF00oPuH+w94eeftIdLa3Az6yl6GW2Se35hbK+OAOUkG94ZHwhJPnd8fFYl a3g9j2u8GSjQXmuygG8Bdoip17oLFtkGvmU7ADB0iaPtKsz2+ZSXz4VR2NM3dTiegQLU BN9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=kBTewyJl; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e23-20020a637457000000b00563df8b1353si3909235pgn.202.2023.08.08.10.51.54; Tue, 08 Aug 2023 10:52:07 -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=@linutronix.de header.s=2020 header.b=kBTewyJl; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233008AbjHHQd1 (ORCPT + 99 others); Tue, 8 Aug 2023 12:33:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232921AbjHHQcg (ORCPT ); Tue, 8 Aug 2023 12:32:36 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1989D31029; Tue, 8 Aug 2023 08:52:01 -0700 (PDT) Date: Tue, 08 Aug 2023 08:44:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691484240; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fk74tCtX53wVUn2Lm/NtmiVu1U7qFhlk1cx1q4Oyjgc=; b=kBTewyJl8lJyAvsER9fySaS2M7oa8WTobHE+tAL31bpku1DHabxX3j4vrIkpSxcXoCVlSu UW889tl1JEGy5/a469Hh4leMOG/k2tyLst0XdV7A782g7uPPOmT2hAWgefzB3JiWtxBkCF kWovHcZMa74R8iVSZDulwodh62pg0SXrOautcEOVbI8OejATI7IjrM76K9ny72BZvHUkki 2JrFecvQ9UGYL/QP2ob05Edvy3D/IMaqd5mScwaB8XmDwuB8iwMGOBudcDsgFAJ5S2RSXg HmrW4k4Y/0ZhHVvYLeDIBjoWfaepuaD3tLfC0hm6NmJLK6pCQDQnonVOlnTVwQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691484240; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fk74tCtX53wVUn2Lm/NtmiVu1U7qFhlk1cx1q4Oyjgc=; b=c37Vpfy9lgdBz7GsthOrQq/vuiNud0IU51CfmeCTbfa67tH4Lg/f88xuwcT8Ur43ftGX8G iGQUItWTYPFb6xAA== From: "tip-bot2 for Ard Biesheuvel" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/boot] decompress: Use 8 byte alignment Cc: Ard Biesheuvel , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230807162720.545787-19-ardb@kernel.org> References: <20230807162720.545787-19-ardb@kernel.org> MIME-Version: 1.0 Message-ID: <169148424001.27769.17774724848904519464.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DATE_IN_PAST_06_12, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 following commit has been merged into the x86/boot branch of tip: Commit-ID: 8217ad0a435ff06d651d7298ea8ae8d72388179e Gitweb: https://git.kernel.org/tip/8217ad0a435ff06d651d7298ea8ae8d72388179e Author: Ard Biesheuvel AuthorDate: Mon, 07 Aug 2023 18:27:15 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Mon, 07 Aug 2023 20:55:27 +02:00 decompress: Use 8 byte alignment The ZSTD decompressor requires malloc() allocations to be 8 byte aligned, so ensure that this the case. Signed-off-by: Ard Biesheuvel Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20230807162720.545787-19-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 9192986..ac86242 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;