From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BBD4C43217 for ; Fri, 25 Mar 2022 01:36:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357512AbiCYBhc (ORCPT ); Thu, 24 Mar 2022 21:37:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357524AbiCYBf6 (ORCPT ); Thu, 24 Mar 2022 21:35:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 035C93A739 for ; Thu, 24 Mar 2022 18:34:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 947A060B08 for ; Fri, 25 Mar 2022 01:34:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F109CC340ED; Fri, 25 Mar 2022 01:34:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1648172053; bh=93jyMUIddQ7t9w+BZ+FuPVMEDObBylkXv90S9LK1Wxo=; h=Date:To:From:Subject:From; b=coiQvetJ75kQABAuy3lX4yv1u80bBVhg5GFFQbJspYq6fiJ3co6KihACU3GPqjlZk LuRrmrKSqGG6v2XK/LEsdwj6O8xB1PKlJrgcC1cot08vB/G8VV8kHE3VOYIEAmHkT/ j0zaV8+CYixOYEXwiJBGwcZH0KhNz3zCjVeKpUi0= Date: Thu, 24 Mar 2022 18:34:12 -0700 To: mm-commits@vger.kernel.org, ryabinin.a.a@gmail.com, lixuefeng@loongson.cn, elver@google.com, corbet@lwn.net, bhe@redhat.com, yangtiezhu@loongson.cn, akpm@linux-foundation.org From: Andrew Morton Subject: [merged] kasan-no-need-to-unset-panic_on_warn-in-end_report.patch removed from -mm tree Message-Id: <20220325013412.F109CC340ED@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: kasan: no need to unset panic_on_warn in end_report() has been removed from the -mm tree. Its filename was kasan-no-need-to-unset-panic_on_warn-in-end_report.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Tiezhu Yang Subject: kasan: no need to unset panic_on_warn in end_report() panic_on_warn is unset inside panic(), so no need to unset it before calling panic() in end_report(). Link: https://lkml.kernel.org/r/1644324666-15947-6-git-send-email-yangtiezhu@loongson.cn Signed-off-by: Tiezhu Yang Reviewed-by: Marco Elver Cc: Andrey Ryabinin Cc: Baoquan He Cc: Jonathan Corbet Cc: Xuefeng Li Signed-off-by: Andrew Morton --- mm/kasan/report.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) --- a/mm/kasan/report.c~kasan-no-need-to-unset-panic_on_warn-in-end_report +++ a/mm/kasan/report.c @@ -117,16 +117,8 @@ static void end_report(unsigned long *fl pr_err("==================================================================\n"); add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE); spin_unlock_irqrestore(&report_lock, *flags); - if (panic_on_warn && !test_bit(KASAN_BIT_MULTI_SHOT, &kasan_flags)) { - /* - * This thread may hit another WARN() in the panic path. - * Resetting this prevents additional WARN() from panicking the - * system on this thread. Other threads are blocked by the - * panic_mutex in panic(). - */ - panic_on_warn = 0; + if (panic_on_warn && !test_bit(KASAN_BIT_MULTI_SHOT, &kasan_flags)) panic("panic_on_warn set ...\n"); - } if (kasan_arg_fault == KASAN_ARG_FAULT_PANIC) panic("kasan.fault=panic set ...\n"); kasan_enable_current(); _ Patches currently in -mm which might be from yangtiezhu@loongson.cn are