Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1332258rda; Mon, 23 Oct 2023 09:19:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGwWHxWXKX1Skqf6T1PVYAXMKInBqmXTazIIiCjJZVK64X12YpRuQo5HYfCTwUpzF+WhhN+ X-Received: by 2002:a17:903:11cd:b0:1c7:29fd:33b6 with SMTP id q13-20020a17090311cd00b001c729fd33b6mr7998561plh.40.1698077943196; Mon, 23 Oct 2023 09:19:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698077943; cv=none; d=google.com; s=arc-20160816; b=cmRS8BIbrYI5O0rLX0jpA7eNTwPmD7BNsVmO7SmA8VMcdLLwakIFoLgK6Nlg3haoLP KANRIZlmx9zKJ5go76Vj3upc06R5xhRVZUzEbgcX/TEZDzrCka8Jvw6cyAf65jvfAUpj qjxsNq44LCIX1776GGmQmNNFY/6LUoa+BYSMh42Dj6RXSXcXyCFdfl0F5mUIPwAgVBdb qj7+VoirRhgjIXr8Wu34pz0E8ko6Y4uHZyplKXmSTlzUJRu2GBp8Pd5GyeCi5qC0bopY Qw9Rf4FisCYHgc4rUmTg08ATNbflC76VHKgoJ9cF6xI7P6I9WwkXcKllfXZiMwTPxcmG FxBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=BPMyERwOm/NcnB3A4LMRfhfW5xHZDfVqvzjxqSuC/ik=; fh=ClZrlmqypC8gyPFrg/phNYXzlKrWLi1ezKQD4pdvko4=; b=QTEg7boQUpgzUmlX4vwXqCgpQSWpCiJZ4vUmHcdca4F3cUweWkfJz+bcjwRsRuYRJ6 KzENBsReqVEDQA2YDZAVsYCvozl1API4w6iyhZzh1W7dP+3dQ7ZFKCL6I/XZ/HlQ+8ST s6KQMvlXFyTi0ydOHQ7T/LcjAxkpiURvu+cNilTSCEGA5sCPedjupVcof75jUP+7KbRU wz5eXzZSNlViw0xHkM1S92qbwXfDUMemum0QGfH0/pskVFBRj30XM8QoNUfrqszZJCZg KW86slztZSoPIT6L17HBNwtwST89oGAzZp/2pBFDWHhnaZNzWy7M+/lvYmZOd0PH8O34 owIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="TugK/9Yx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id b1-20020a170902ed0100b001bda18ea0e1si6319855pld.80.2023.10.23.09.19.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 09:19:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="TugK/9Yx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id CB250805E53A; Mon, 23 Oct 2023 09:19:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233722AbjJWQSo (ORCPT + 99 others); Mon, 23 Oct 2023 12:18:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233758AbjJWQSZ (ORCPT ); Mon, 23 Oct 2023 12:18:25 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9477610E for ; Mon, 23 Oct 2023 09:18:03 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-27e0c1222d1so2190046a91.0 for ; Mon, 23 Oct 2023 09:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698077883; x=1698682683; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BPMyERwOm/NcnB3A4LMRfhfW5xHZDfVqvzjxqSuC/ik=; b=TugK/9Yxzol+hyQj1WRqfkuUOtiOWziDYe+MEsm66ysqkH5dOZYTSteZMUGl7pmZxG pWlOLj4Bjwcwq317aPo2S214xt2rKKPWUIr7KDLu9eOq5pEhXcQ5PdRGSjAuqUaPSYMu hO958nWYcvusg5TjzBh6094U6oZwX9Ls9h2E78F3c6A1KflI8b1a07COelw1ae2XjdVt +EJhFSUCOVlRlD6UrBmiWjCthyN5SwJqyspS3D+iqXKK5hb78qvBIjmoxvYBKGKdWyCj VNaU7D6BodU9C8JGVpdDFViAgcrDj1mfVM+/s34ltaa1GHLs4N2zAkQZevJi1TjNOlaS MEDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698077883; x=1698682683; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BPMyERwOm/NcnB3A4LMRfhfW5xHZDfVqvzjxqSuC/ik=; b=pmlQvupzmrong90EY8GVAZ/TBtpGxmS8n7cPqbsNCU2xTv0T+y+vxJhjshZWlaCHCk X32GgBUaFVrI77uw8YMLZ6cWY7Z/wpUJcNewZ0UCSiIaHfIHA9Qds9NTyXaOmVbqSDCc hF+5HKK1QnilDRrohuwkqf5D79i83L61XSmKjEz/+0zEwfRix40lHzk051Q+CeqxxOB6 n3XwNJBM1K/Qgw5wdRT9k/dWk29+iNZwL3A0Zzul9dFgBucho1l6ufePAuhXh+iHXCaz 6JfZ7gTQ2z7T8V4Ud8nYAl+PkY5Q4fkWtU/DU93n7AVm8dkxk2IMeQuE90UK3l7Idkz3 uaZg== X-Gm-Message-State: AOJu0Yyc5crSc3wLR/MW5k+nhvDBTujPiDMWlGBOargCob1LxRWOjSeT TaWRzus04O81z5A3T+GnEubpM9W8Ti9UnhQALCo= X-Received: by 2002:a17:90b:51d0:b0:268:b0b:a084 with SMTP id sf16-20020a17090b51d000b002680b0ba084mr7386877pjb.46.1698077882806; Mon, 23 Oct 2023 09:18:02 -0700 (PDT) MIME-Version: 1.0 References: <6e2367e7693aa107f05c649abe06180fff847bb4.1694625260.git.andreyknvl@google.com> In-Reply-To: From: Andrey Konovalov Date: Mon, 23 Oct 2023 18:17:51 +0200 Message-ID: Subject: Re: [PATCH v2 19/19] kasan: use stack_depot_put for tag-based modes To: Alexander Potapenko Cc: andrey.konovalov@linux.dev, Marco Elver , Dmitry Vyukov , Vlastimil Babka , kasan-dev@googlegroups.com, Evgenii Stepanov , Oscar Salvador , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 23 Oct 2023 09:19:01 -0700 (PDT) On Mon, Oct 9, 2023 at 2:24=E2=80=AFPM Alexander Potapenko wrote: > > On Wed, Sep 13, 2023 at 7:18=E2=80=AFPM wrot= e: > > > > From: Andrey Konovalov > > > > Make tag-based KASAN modes to evict stack traces from the stack depot > "Make tag-based KASAN modes evict stack traces from the stack depot" > (without "to") > > > Internally, pass STACK_DEPOT_FLAG_GET to stack_depot_save_flags (via > > kasan_save_stack) to increment the refcount when saving a new entry > > to stack ring and call stack_depot_put when removing an entry from > > stack ring. > > > > Signed-off-by: Andrey Konovalov > Reviewed-by: Alexander Potapenko > > (but see the two other comments) > > > --- a/mm/kasan/report_tags.c > > +++ b/mm/kasan/report_tags.c > > @@ -7,6 +7,7 @@ > > #include > > > > #include "kasan.h" > > +#include "../slab.h" > > Why? This belongs to the previous patch, will fix in v3, thanks!