From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from integral2.. (unknown [114.10.7.234]) by gnuweeb.org (Postfix) with ESMTPSA id 0374F7E2CC; Thu, 10 Mar 2022 01:53:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1646877223; bh=VgvFD5PbNA6rugPitfY9YWmZEniNGGoHTmksEfV3s5g=; h=From:To:Cc:Subject:Date:From; b=Y2ogKybWOlxy7/UPV3zKqH5BrFkKd1xUhTr4NS0ZSaHHd7p/xDuMumAn/y5f5vA8z 9J98xi8r+omMB/qCvmLVpaI3WVqvp/yMHgGenDInz0Hy8+njGonEZPJG8atDYTMqQE kHsSavRTvHIbMhBov1XzSILqM4qqgf7jN1DDSEzhUC+QLmfWWGsvZEDfLRruKiIaYt Ds0DAvdEwKfzv3Bo/9hmNUzadj/haNEkhU7Ylq0V5N+zrkN8FLwfWvP+nuWSUO5Ep/ lZaSnPTtbIn410Ouay0Urj2F3PRA3r5/sE7WX4WrldZUNJ3iUV1Qjw4QihHaLfx8vk vGM/Zzt0FpgLQ== From: Ammar Faizi To: Borislav Petkov , Thomas Gleixner Cc: Ammar Faizi , Alviro Iskandar Setiawan , Alviro Iskandar Setiawan , Dave Hansen , Greg Kroah-Hartman , "H. Peter Anvin" , Ingo Molnar , Tony Luck , Yazen Ghannam , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, gwml@vger.gnuweeb.org, x86@kernel.org Subject: [PATCH v5 0/2] Two x86 fixes Date: Thu, 10 Mar 2022 08:53:04 +0700 Message-Id: <20220310015306.445359-1-ammarfaizi2@gnuweeb.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Hi, Two x86 fixes in this series. 1) x86/delay: Fix the wrong Assembly constraint in delay_loop() function. 2) x86/MCE/AMD: Fix memory leak when `threshold_create_bank()` fails. ## Changelog v5: - Mark patch #1 for stable. - Commit message improvement for patch #1 and #2. - Fold in changes from Yazen and Alviro (for patch #2). v4: - Address comment from Greg, sha1 commit Fixes only needs to be 12 chars. - Add the author of the fixed commit to the CC list. v3: - Fold in changes from Alviro, the previous version is still leaking @bank[n]. v2: - Fix wrong copy/paste. Signed-off-by: Alviro Iskandar Setiawan Signed-off-by: Yazen Ghannam Signed-off-by: Ammar Faizi --- Ammar Faizi (2): x86/delay: Fix the wrong asm constraint in `delay_loop()` x86/MCE/AMD: Fix memory leak when `threshold_create_bank()` fails arch/x86/kernel/cpu/mce/amd.c | 32 +++++++++++++++++++------------- arch/x86/lib/delay.c | 4 ++-- 2 files changed, 21 insertions(+), 15 deletions(-) base-commit: 7e57714cd0ad2d5bb90e50b5096a0e671dec1ef3 -- Ammar Faizi