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 [182.2.70.161]) by gnuweeb.org (Postfix) with ESMTPSA id 640277E723; Tue, 29 Mar 2022 10:47:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1648550838; bh=mgU2darmCFoLaZ5GAG6W8b9ruZ6543VExVSpSw3Vi1o=; h=From:To:Cc:Subject:Date:From; b=YuEPtaLIaHFLRGRdg0RjlpgjRyDSErHAC4+vwsGam7QMa8fKdTVk/ePxn4c5RPz5G ZZQ8cDhBqkAOzu8bH54ZZ33QM6spgIDztifayZ5t0Pxfb1TcrBXjQVe2QLtSfkP9a2 aHgAod/qK74kdQ2wek5zteu6Yv59mG+RFoa1XNGO2rDSxOOCs2Qj2T4UbNVlSTVsMa jNRqkXD8h2dFDFRXxVTEpWkXL7Ut9k7sHdgz+o3qrkvgflfERn+vFB2hiZci9kWxK0 /RJOlXLnNYbor6ch5eguP45FacOyrsnV4wHOSJPbBc3aUJfwvYn41c3xTE9/XHeY5N Jxw7+cG8PDBVw== From: Ammar Faizi To: Borislav Petkov , Thomas Gleixner Cc: Ammar Faizi , Alviro Iskandar Setiawan , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Tony Luck , Yazen Ghannam , Linux Edac Mailing List , Linux Kernel Mailing List , Stable Kernel , GNU/Weeb Mailing List , x86 Mailing List Subject: [PATCH v6 0/2] Two x86 fixes Date: Tue, 29 Mar 2022 17:47:03 +0700 Message-Id: <20220329104705.65256-1-ammarfaizi2@gnuweeb.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Hi, This is the v6 of two x86 fixes. 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 v6: - Remove unnecessary Cc tags. - Undo the stable mark for patch 1. - Update commit message, emphasize the danger when the compiler decides to inline the function. - Fix the Fixes tag sha1 in patch 1. - Change the helper function name to __threshold_remove_device(). 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: 1930a6e739c4b4a654a69164dbe39e554d228915 -- Ammar Faizi