Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3841956imw; Mon, 18 Jul 2022 15:47:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tlQtpABWIfttxUmj31fXKjUlax79u2emuRZnoAOijOHvg8l34ABotPATeEBkjXVDZE6jWv X-Received: by 2002:a17:907:6e02:b0:72b:9f16:1bc5 with SMTP id sd2-20020a1709076e0200b0072b9f161bc5mr27782383ejc.676.1658184432759; Mon, 18 Jul 2022 15:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658184432; cv=none; d=google.com; s=arc-20160816; b=mSL2eczggMh+m/LVxturDnz77tA2MkFUXyXp3KW2lJegPGWd/XQRvlMx4xWMM4mIx1 2+zKmWOKttZvjh5P6VpnikjRypOp/sWpbXGXyy4oYrn5H60WTkwb1w3TvhqJCsZxgLtQ 9GjMmw2I6hWBVCAzK0i04j82UT6BJR806jLPm78XPofnsJQKpq/6UJ0K50u/kV90c556 r/HtaxRMUx9t8cXfmKO0Vo6fihZ02HeeDhRiIyFfkCQgig9aR+BqGnolfarbZorq5gLc 5c03gmx8qy3YsOApToBmbTNSA0PnXa4tHsq8xeMuZjCHe8f9EojD++Jnn4Vu2HnfMVHK Lhuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dhwistRYtSEw+FOLxYsmvUgg2SfWUhko3Y0iHqBJPu4=; b=qo7wp2OJNxE2GW97LA8FazPk8w8I/ouM6b2sVoYopT3whQXxhS2ir1QYcYpIvQpy1c vCZoZiKi70/wnGTLLeWRRQojTOBe77/R8efTC5MFkz3JUXXrBlVxsTBFw9bxF/8FcgYD +rnem70e0V1uK4Gt7ujIVEYp4iSlRMzCvcyLroIdJSayOsIN6tzxraP82d597c5ZztT6 qoxzh5KrZD6Z60VhVNqLz6aXRJO8bWSJRTqSkEPIEJkTWQ1wxYg91Fbkbn2zaadtCqLU W0B+6FdCtbucys8zaUoSXC8bQymvXsJa8SpgOjLWFgRY9slS6c6I3UQhAa+/Q5bDWvTd UwtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aZjpVE4E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs18-20020a170906dc9200b0072b5ed5a846si19338333ejc.43.2022.07.18.15.46.47; Mon, 18 Jul 2022 15:47:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aZjpVE4E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235706AbiGRWln (ORCPT + 99 others); Mon, 18 Jul 2022 18:41:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235657AbiGRWlk (ORCPT ); Mon, 18 Jul 2022 18:41:40 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2403931228 for ; Mon, 18 Jul 2022 15:41:40 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id o26so9954409qkl.6 for ; Mon, 18 Jul 2022 15:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dhwistRYtSEw+FOLxYsmvUgg2SfWUhko3Y0iHqBJPu4=; b=aZjpVE4EcfZyMPDvoC7PBa41wvK2SMv/ubMIQQmy/TcdmvAB5sTm44ZV/uFzXt0wKb dY1VwMVxuQMp9OYczxgQEk9hE51YGmr3jeXIZY234G94ZXXg8PMXFU/zJqaUpcjH7ejA LYVWL2CCeav7caDWP+9DFE7whPhYbTJSoCcTnByMx5lxj9MtM03ixpQAZLwBsUxIBkjg QUN0frpfAARrFIv2TnEePpjDVy58E7mdMzD8yaY1OTNOoFTfzUxrtQBhVR0D9BaBb9kB IrWLlZBGkxIPpfI98VafP5REK0GHAtwXrp03Ht7SCMiv8t682jChRH2ZOETYgUaTzYUc Ov3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dhwistRYtSEw+FOLxYsmvUgg2SfWUhko3Y0iHqBJPu4=; b=bzWaP4R8bYqGPzTY11jZ2iGl8pfM/Nn5+FvSUEAptHpt0gE4FwvINLjgPzjHEqEcx3 b3fZxvGLA9yQ5f28kIbg/OJBWeKhUthk+y722TpQcdEzW5pzBpPZiNbxTkv9EzOaOk/Z DzsLg8j8/asNBheKur0HlseJ/zwABF0j8VfnuOlvyhYgxSypJ3mjDAhY592vQh/L0dRy fRs4LDN5Qh7HbsTj1YYCHx+Hn53lWq7AlBDZQHBMqTFA/PG7ZirJPfZQg1BKXi9wMb+W uq6Y3k20lzSStT5/BlS2HzG8j+hwq8a5AjTHQqhgB1SiN0MqRINgGVt2Of0okTmp6xp4 1n/w== X-Gm-Message-State: AJIora+ZS/ePUejPPJboAN9A5uOj0OIOpIw56NftDFdL7zW0Ue+4beF8 y87gS32mxvXTIuOtiO/319FX/WWxWPHkO5GyNok= X-Received: by 2002:a05:620a:2556:b0:6a7:9f07:602 with SMTP id s22-20020a05620a255600b006a79f070602mr18213055qko.207.1658184099146; Mon, 18 Jul 2022 15:41:39 -0700 (PDT) MIME-Version: 1.0 References: <9363b16202fb04a3223de714e70b7a6b72c4367e.1655150842.git.andreyknvl@google.com> In-Reply-To: From: Andrey Konovalov Date: Tue, 19 Jul 2022 00:41:28 +0200 Message-ID: Subject: Re: [PATCH 19/32] kasan: pass tagged pointers to kasan_save_alloc/free_info To: Marco Elver Cc: andrey.konovalov@linux.dev, Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , kasan-dev , Peter Collingbourne , Evgenii Stepanov , Florian Mayer , Andrew Morton , Linux Memory Management List , LKML , Andrey Konovalov Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 20, 2022 at 11:54 AM Marco Elver wrote: > > On Mon, Jun 13, 2022 at 10:14PM +0200, andrey.konovalov@linux.dev wrote: > > From: Andrey Konovalov > > > > Pass tagged pointers to kasan_save_alloc/free_info(). > > > > This is a preparatory patch to simplify other changes in the series. > > > > Signed-off-by: Andrey Konovalov > > --- > > mm/kasan/common.c | 4 ++-- > > mm/kasan/generic.c | 3 +-- > > mm/kasan/kasan.h | 2 +- > > mm/kasan/tags.c | 3 +-- > > 4 files changed, 5 insertions(+), 7 deletions(-) > > > > diff --git a/mm/kasan/common.c b/mm/kasan/common.c > > index f937b6c9e86a..519fd0b3040b 100644 > > --- a/mm/kasan/common.c > > +++ b/mm/kasan/common.c > > @@ -227,7 +227,7 @@ static inline bool ____kasan_slab_free(struct kmem_cache *cache, void *object, > > return false; > > > > if (kasan_stack_collection_enabled()) > > - kasan_save_free_info(cache, object, tag); > > + kasan_save_free_info(cache, tagged_object); > > > > Variable 'tag' becomes unused in this function after this patch. Will fix in v2, thanks!