Message ID | 20200811053914.652710-7-davidgow@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=xtX6=BV=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1D0E7722 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 11 Aug 2020 05:39:53 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D754320772 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 11 Aug 2020 05:39:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="tHAO4iJN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D754320772 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 1DBD76B000C; Tue, 11 Aug 2020 01:39:48 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 13E546B000D; Tue, 11 Aug 2020 01:39:48 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E87A26B000E; Tue, 11 Aug 2020 01:39:47 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0248.hostedemail.com [216.40.44.248]) by kanga.kvack.org (Postfix) with ESMTP id D07226B000C for <linux-mm@kvack.org>; Tue, 11 Aug 2020 01:39:47 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 9099B181AEF0B for <linux-mm@kvack.org>; Tue, 11 Aug 2020 05:39:47 +0000 (UTC) X-FDA: 77137186014.16.trees49_5e0c95626fe0 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id 5EDA8100E6903 for <linux-mm@kvack.org>; Tue, 11 Aug 2020 05:39:47 +0000 (UTC) X-Spam-Summary: 1,0,0,7b47fc9b6a91c989,d41d8cd98f00b204,3ii8yxwgkcekol6torz7rzzrwp.nzxwty58-xxv6lnv.z2r@flex--davidgow.bounces.google.com,,RULES_HIT:41:152:355:379:541:800:960:973:988:989:1260:1277:1313:1314:1345:1359:1431:1437:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2693:3138:3139:3140:3141:3142:3152:3352:3865:3866:3867:3868:3870:3871:4250:5007:6261:6653:6737:9969:10004:10400:10450:10455:11026:11473:11658:11914:12043:12048:12291:12296:12297:12438:12555:12683:12895:13069:13156:13221:13228:13229:13255:13311:13357:14040:14181:14394:14659:14721:19904:19999:21080:21444:21451:21627:21939:30054:30090,0,RBL:209.85.219.202:@flex--davidgow.bounces.google.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100;04yfo54uywnokghy4gqn8yuoddzouoc5eigeake3s93zu3pbqqaosd4kkuuxckw.mk4adzm1wqjyb687onubm4ae95pt6hi79j7pa9isod141i5wakkqngsce5z7tao.w-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSB L:0,DNSB X-HE-Tag: trees49_5e0c95626fe0 X-Filterd-Recvd-Size: 4528 Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) by imf02.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Tue, 11 Aug 2020 05:39:46 +0000 (UTC) Received: by mail-yb1-f202.google.com with SMTP id y13so15686694ybs.0 for <linux-mm@kvack.org>; Mon, 10 Aug 2020 22:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=z+/W2Lb1k0h/CCYiwDe5JijUnwa2JcEcWzU8gpWcUfw=; b=tHAO4iJNAEzJVYvZQdBfl/Z0HJY38AuKODLE4Ch1wZBc8FPg/7KBHMPJyf8/uTGa2e E6klPsx4jU07UlBRuauki8fP8QiBAPYycbCl1RDqcjzChLjeDP4E2k1e1NnpULdZnzv1 Pl8iQesn3UiLyjEZOnShWyZkTZA+n4xtyP8tzlxbdeudDI8XTUsWsGqywXNK1eIeCWBz 3qjrz1HaOS6k9W/9yXae8zdCnwm1yQpe5q7lFbbL0i94z9RVr+3vhvKoInjL+Nblfb0t cJpkzK5h/Tri0RocDIDd2pIR/eUsEGMktj67qOjOYUxaBd3zxwrutEWKbzr0abxxWFdS +mbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=z+/W2Lb1k0h/CCYiwDe5JijUnwa2JcEcWzU8gpWcUfw=; b=dj0wSoS/BCWMozUEh6wl0m3jSYEguXKX0lrkkGVdkj+oYJ+p9Tj8SZgHPk9IUyT0ZR 4doEEbqHyfvqkUTrhW3K4+8Mfv+HD1DheHoFT56P/2qKY74m7mboga+eHqQ8g4t49VJk B+u3ifx5yC8aaYXHd0Nh9FEsMJXPVi6g6LvR/Xu3ER76UtkzaUcYtQRZ3U1dAg86+LSE WF2O6hjagPIoLsbmG0WksvIPfM6Se7rNFVLyQ/Ep73Z+3gG6FsOYZYmdhwIwGQSK2yMV 5Qsh9OsGoAnyiHy/6s51b4Ogio7RhUpn/byNesm4DKKxeTFYkvUnWuDpbdoxbHwLQzb9 I8jA== X-Gm-Message-State: AOAM531sTbLYoe5iNw86qrdU2qtiCBYGzjikDKrRe5/zrUlJXG1SbyBy 4Vm4Hwpmrfqb0XwzGNatsVWbyliL0B9UrA== X-Google-Smtp-Source: ABdhPJx02k8uMoR6T3Ar7ZJVf6WCI2ZKosVhH/to+X0ddTMzwXgqLTS/eGRWzl6vu4PuJiIyGRtJ9xX8Em6y5A== X-Received: by 2002:a5b:308:: with SMTP id j8mr41696962ybp.185.1597124386219; Mon, 10 Aug 2020 22:39:46 -0700 (PDT) Date: Mon, 10 Aug 2020 22:39:15 -0700 In-Reply-To: <20200811053914.652710-1-davidgow@google.com> Message-Id: <20200811053914.652710-7-davidgow@google.com> Mime-Version: 1.0 References: <20200811053914.652710-1-davidgow@google.com> X-Mailer: git-send-email 2.28.0.236.gb10cc79966-goog Subject: [PATCH v12 6/6] mm: kasan: Do not panic if both panic_on_warn and kasan_multishot set From: David Gow <davidgow@google.com> To: trishalfonso@google.com, brendanhiggins@google.com, aryabinin@virtuozzo.com, dvyukov@google.com, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, andreyknvl@google.com, shuah@kernel.org, akpm@linux-foundation.org Cc: David Gow <davidgow@google.com>, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 5EDA8100E6903 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
KASAN-KUnit Integration
|
expand
|
diff --git a/mm/kasan/report.c b/mm/kasan/report.c index e2c14b10bc81..00a53f1355ae 100644 --- a/mm/kasan/report.c +++ b/mm/kasan/report.c @@ -95,7 +95,7 @@ static void end_report(unsigned long *flags) pr_err("==================================================================\n"); add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE); spin_unlock_irqrestore(&report_lock, *flags); - if (panic_on_warn) { + 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