From patchwork Tue Aug 8 08:44:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 132605 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2286393vqr; Tue, 8 Aug 2023 10:41:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXA3RAfTx4sFECmfw6xCaeV9WYM3E3m3Yj3PbWpwjPgQXlef4195llugi91Kv4peGctpgT X-Received: by 2002:a17:902:ea09:b0:1b5:674d:2aa5 with SMTP id s9-20020a170902ea0900b001b5674d2aa5mr536292plg.13.1691516471204; Tue, 08 Aug 2023 10:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691516471; cv=none; d=google.com; s=arc-20160816; b=VP4f4qr+xnRQuNXmQdIQfM07fv1DM54C93R2CsM4BpQ0IMY4y+N/EXd6ibe7+J9Csy 4zfGXp0KCmzA65naJJpiGJgbZCPQtm7QtkwTaK6CnmBlMLADsqasCmPZqTnYle7e7igP sqe3x8OFXzGK6wBm/6DE7PZDAqF5xPDxgnc8rguGxcJsVk2o8gayJwMjOz3INwuCOr/C qFNr6VJrWVLUIuQD1NRAMQ1lgCwLRrHRKGct5rJlqPdEtKAe3BuP5at3I+xqiPd0dbq8 zU4c3ycsZDHOMN4TM7PTc++IDChpiJMfWj7vCHQ/Lj9N4/t7f49P6tv60twiHZkJT6gi WD9g== 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 header.s=2020e; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a170902788700b001b662f49f60si7650881pll.419.2023.08.08.10.40.57; Tue, 08 Aug 2023 10:41: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=@linutronix.de header.s=2020 header.b=kBTewyJl; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S232956AbjHHQd2 (ORCPT + 99 others); Tue, 8 Aug 2023 12:33:28 -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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773589281719324598 X-GMAIL-MSGID: 1773683574989574406 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;