Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2969473iog; Mon, 20 Jun 2022 08:29:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vbRgdx6sm7Kh3wJDgvyWcfV00QjtcXn3V1d822DoHqQUeTMQwsNdaPontQFzCicT3/T0KR X-Received: by 2002:a17:902:ec8e:b0:16a:2d25:aa5b with SMTP id x14-20020a170902ec8e00b0016a2d25aa5bmr2574719plg.69.1655738965386; Mon, 20 Jun 2022 08:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655738965; cv=none; d=google.com; s=arc-20160816; b=0X01HopPMf71414Pcad5ugOcOckDrKg9z1XghhArcVyyOPbGpAaBS7MwFluv5ZXKen ygRZYY+mgA6HMFazsT49wttz9eQdO66zc/Z1cK+uk/ZtrdPgvtqnGvuwc+5yu+Iwi+0P JLj0Pbp1sol0jF/XCv6B7SRJuHJULuzCOOPtm4pXTMtb/Xrwap8Uq5/qX8IkZ7K5hOCc 4X7NK3ZBa2l0PjsYlavongazRm3gL4PtVesrEoMI63AJ6XAnFDMaOV1o0jzOSY4qfJt4 upXZyhf24wzSBlMPRdXMvzs4ZJ7mYMZ3UOPsU4ce9F05C5xhCoGcVtctbqU+oAYsCspy pE3Q== 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=noyHdIdjcWgOmBONcZA8+AUOpZ6dpWhX/KlWjxQGveQ=; b=ZZdf2iU5LugZMhO2UWN2uCSV85Aq71saBij47kBVYg/HxZzs0lsk9Yx9etw/uizAYt adVbQuKMl7ePnFxnwUhSF+fQ0khiAP/vBjttm3xaqzdVZ0XvuiBe1Q2s4r4yFJRDpGGG IVOSIn6Y2P35zIvu+8/lz7MS+NRzxq3caWz+gDjJJz1v1OPOI7py99kweOdEIySE35mz 5goo9DPt/ltmjj3+1/E4Y/y1akKKSKEZZIEa3f70IROlqZxHzQJ95EC7DkZwlxiuk/Nw h6V+Y7QTAzu8TvKrQLsLs9DUugeDPEwXxpivkpN11Mw//aqjPqFddc8IYg7dp+nAGKMj vPrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=cAFK183y; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e1-20020a63db01000000b003f25a28a4afsi16312077pgg.241.2022.06.20.08.29.13; Mon, 20 Jun 2022 08:29:25 -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=@google.com header.s=20210112 header.b=cAFK183y; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351156AbiFTOZ2 (ORCPT + 99 others); Mon, 20 Jun 2022 10:25:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351159AbiFTOYn (ORCPT ); Mon, 20 Jun 2022 10:24:43 -0400 Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85D7829804 for ; Mon, 20 Jun 2022 06:40:29 -0700 (PDT) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-3176b6ed923so100498307b3.11 for ; Mon, 20 Jun 2022 06:40:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=noyHdIdjcWgOmBONcZA8+AUOpZ6dpWhX/KlWjxQGveQ=; b=cAFK183yUZa75c9qYUYUuEjy4qYJbiDtYJ906bEPcopKwCgjaJDejkLHqNeTyNENAe +xoWCt7cMb4dXVwvvGCKXSmK7dw4wLz7IIUvjEvK5humbtfcNNXCo51PP0fj9EsTjzU5 9BkF510UgCqYCljPBVWCO8+KQgCnlSj30fh6Vddb6NGuFsnp0Y0SzgMm+8+JRDmtb5Oq WFtFHC5XpNYZ2+aHMsKOP2+sjRxRJnd5C68KU4/2pRuUJBagAET+iUi9i9AJBjA7ub08 /ZZvrNyFh8eRMUkEtZtPCltiI6cTwu60fRIcloaNLdAJ08vJo+guP24TRNC5SVxAV4QS nt5Q== 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=noyHdIdjcWgOmBONcZA8+AUOpZ6dpWhX/KlWjxQGveQ=; b=tQivG11I/wq8LeOGyKTQN9LtO/Jv8Wx2hHZ0EKcuBtptWR+/bhXD6uoomuXztx+W0q ZGV9/4Pee/BBIWSwzkhZ/i/6u+QrL8C27sKMpj+FKED7g1PZe502QzJqEUwQnb+Rz+4l Abqua3NgUU7z4rGAO9u4e5t1b/PetOSgi2lNQA5lS6LWRK7zHdO8PrcBUtNQ7q/9gEiT /TZa0brnE7PBE7QHUocfERCx3AAUmlHi2+DNDtWU1xaN+6fIjCMhHt9N0Q1UmIVIyJhc N/4bZ1Iz1I1SHinZGvLMEuIPrQaeYuBblyJ4KunI5ZB1I/NfP06FYn7/LKEj5KAFP/rO n1Gw== X-Gm-Message-State: AJIora/vkNRmlbp8SqnG05MgFog0JSzo3t+kliYAwYAHE9hYWQlZhusz OxUvvNKCtyHqvUrKG+6FSs9PIdQwD0jWGMcqCTvC2w== X-Received: by 2002:a81:1591:0:b0:317:bb1f:fb83 with SMTP id 139-20020a811591000000b00317bb1ffb83mr8126761ywv.362.1655732428401; Mon, 20 Jun 2022 06:40:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marco Elver Date: Mon, 20 Jun 2022 15:39:52 +0200 Message-ID: Subject: Re: [PATCH 09/32] kasan: clear metadata functions for tag-based modes To: andrey.konovalov@linux.dev Cc: Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, Peter Collingbourne , Evgenii Stepanov , Florian Mayer , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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, 13 Jun 2022 at 22:16, wrote: > > From: Andrey Konovalov > > Remove implementations of the metadata-related functions for the tag-based > modes. > > The following patches in the series will provide alternative > implementations. > > As of this patch, the tag-based modes no longer collect alloc and free > stack traces. This functionality will be restored later in the series. > > Signed-off-by: Andrey Konovalov Reviewed-by: Marco Elver > --- > mm/kasan/tags.c | 33 ++------------------------------- > 1 file changed, 2 insertions(+), 31 deletions(-) > > diff --git a/mm/kasan/tags.c b/mm/kasan/tags.c > index 2e200969a4b8..f11c89505c77 100644 > --- a/mm/kasan/tags.c > +++ b/mm/kasan/tags.c > @@ -19,54 +19,25 @@ > > void kasan_init_object_meta(struct kmem_cache *cache, const void *object) > { > - struct kasan_alloc_meta *alloc_meta; > - > - alloc_meta = kasan_get_alloc_meta(cache, object); > - if (alloc_meta) > - __memset(alloc_meta, 0, sizeof(*alloc_meta)); > } > > void kasan_save_alloc_info(struct kmem_cache *cache, void *object, gfp_t flags) > { > - struct kasan_alloc_meta *alloc_meta; > - > - alloc_meta = kasan_get_alloc_meta(cache, object); > - if (alloc_meta) > - kasan_set_track(&alloc_meta->alloc_track, flags); > } > > void kasan_save_free_info(struct kmem_cache *cache, > void *object, u8 tag) > { > - struct kasan_alloc_meta *alloc_meta; > - > - alloc_meta = kasan_get_alloc_meta(cache, object); > - if (!alloc_meta) > - return; > - > - kasan_set_track(&alloc_meta->free_track, GFP_NOWAIT); > } > > struct kasan_track *kasan_get_alloc_track(struct kmem_cache *cache, > void *object) > { > - struct kasan_alloc_meta *alloc_meta; > - > - alloc_meta = kasan_get_alloc_meta(cache, object); > - if (!alloc_meta) > - return NULL; > - > - return &alloc_meta->alloc_track; > + return NULL; > } > > struct kasan_track *kasan_get_free_track(struct kmem_cache *cache, > void *object, u8 tag) > { > - struct kasan_alloc_meta *alloc_meta; > - > - alloc_meta = kasan_get_alloc_meta(cache, object); > - if (!alloc_meta) > - return NULL; > - > - return &alloc_meta->free_track; > + return NULL; > } > -- > 2.25.1 > > -- > You received this message because you are subscribed to the Google Groups "kasan-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an email to kasan-dev+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/kasan-dev/db6ce7b46d47aa26056e9eae5c2aa49a3160a566.1655150842.git.andreyknvl%40google.com.