Message ID | db27742c47b373f3957d2053457454b4b4964b34.1698077459.git.andreyknvl@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1408387vqx; Mon, 23 Oct 2023 09:23:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG01KKz9jPv/HrWuFTRT7RepY6K8296FINTmLcqa1LQHHeYozwM7FI1lD53ztDw+wKhD/x8 X-Received: by 2002:a17:90a:7047:b0:27c:df02:88b3 with SMTP id f65-20020a17090a704700b0027cdf0288b3mr13918946pjk.8.1698078195729; Mon, 23 Oct 2023 09:23:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698078195; cv=none; d=google.com; s=arc-20160816; b=bPII5a5ntu0ajvafOjlJnNRQ7U1q+l8iRBisnua9tpaU6py9UA/GtT5j5gEhW+Pwcx DVTTQ5rmVF/gNdJdnl1qIkt8iR6kP02reKl3VHxLdA1jizdoo2A5IvmYne3j0MEIeBfZ MGrIPZ2XJQHWiLPMTPdoKT15oLUrodwApJtxBvalsW+qQQpm8uMEkZOSmlv/PMX/v9W8 +akSCTwNCqpC3XVUPQ/j/glQeW0oOx9HY42hwrEy6PE2IUzd7V8fNJiZnj4tjdwL0n/o arY836wRdVc/xemFY/zr2hMeS+Pbq8ar5lH18MpQ/svR7MbMwIUKGQXlbi9Qa5YUvAYB ilUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dA6zDrMISQ9ixV+61d0CbJSFq6N+6qPUyMdB5Zjx2Sw=; fh=nfQSbTp1dWHt2Ier1Up8UhVNdXOqoJJLNvTrpT3jJEk=; b=HhZHXxPFy+2abR7mGVlrX1rq0Jb2H95SwNHeVEaFrfhrmQ+HaCPuQ2dUCJM5RoAjVH 4GIYUIYx8DcCfqGa90MW6YDCLn+vm77SvLU9iElFz4ap+fTGV63BzxplEJzuSfTORerw 4ztqRJxjdPHHhkDz01CFB1lBocQp27EHIiYtawmEPcLIg+fxt/Jssvkb/XrgeDaOJNsN U2eLRuYWWHgTiRuaYqijX0QXRifSihLOdljGGihutRxX+YRH+8upjiVttxUpJ46M9mxv QHT5h6OE7sG0idfUZNdM2aaHJ4AgTaXdjGr6TZWg3d+oKSdUcijqqREs9RrsECEI1XLM xhVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CkRusZIQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id nm10-20020a17090b19ca00b0027909685905si6627050pjb.149.2023.10.23.09.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 09:23:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CkRusZIQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D9636804E72F; Mon, 23 Oct 2023 09:23:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233119AbjJWQXJ (ORCPT <rfc822;aposhian.dev@gmail.com> + 27 others); Mon, 23 Oct 2023 12:23:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230255AbjJWQXF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 23 Oct 2023 12:23:05 -0400 Received: from out-208.mta0.migadu.com (out-208.mta0.migadu.com [91.218.175.208]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CFE810C for <linux-kernel@vger.kernel.org>; Mon, 23 Oct 2023 09:23:00 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1698078178; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dA6zDrMISQ9ixV+61d0CbJSFq6N+6qPUyMdB5Zjx2Sw=; b=CkRusZIQKT1eG4Gl5cCrRUWt5DUG+IA1Am7cKqEhxJvtxvEOtNHOGfa8oOTjOvRtsLmZuh DIpreTOPrJBHIpWysqvlzeB2EOS4cbEOWO+vFGBjLCZ+m4G6B8FIZg7ByX7aEIEwmgDxIB IhsqPDQSxHpXeKy5blW2EyaMIQyiiKs= From: andrey.konovalov@linux.dev To: Marco Elver <elver@google.com>, Alexander Potapenko <glider@google.com> Cc: Andrey Konovalov <andreyknvl@gmail.com>, Dmitry Vyukov <dvyukov@google.com>, Vlastimil Babka <vbabka@suse.cz>, kasan-dev@googlegroups.com, Evgenii Stepanov <eugenis@google.com>, Oscar Salvador <osalvador@suse.de>, Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov <andreyknvl@google.com> Subject: [PATCH v3 01/19] lib/stackdepot: check disabled flag when fetching Date: Mon, 23 Oct 2023 18:22:32 +0200 Message-Id: <db27742c47b373f3957d2053457454b4b4964b34.1698077459.git.andreyknvl@google.com> In-Reply-To: <cover.1698077459.git.andreyknvl@google.com> References: <cover.1698077459.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 09:23:14 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780564042285358623 X-GMAIL-MSGID: 1780564042285358623 |
Series |
stackdepot: allow evicting stack traces
|
|
Commit Message
andrey.konovalov@linux.dev
Oct. 23, 2023, 4:22 p.m. UTC
From: Andrey Konovalov <andreyknvl@google.com> Do not try fetching a stack trace from the stack depot if the stack_depot_disabled flag is enabled. Reviewed-by: Alexander Potapenko <glider@google.com> Signed-off-by: Andrey Konovalov <andreyknvl@google.com> --- lib/stackdepot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/stackdepot.c b/lib/stackdepot.c index 2f5aa851834e..3a945c7206f3 100644 --- a/lib/stackdepot.c +++ b/lib/stackdepot.c @@ -477,7 +477,7 @@ unsigned int stack_depot_fetch(depot_stack_handle_t handle, */ kmsan_unpoison_memory(entries, sizeof(*entries)); - if (!handle) + if (!handle || stack_depot_disabled) return 0; if (parts.pool_index > pool_index_cached) {