Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3543218pxb; Mon, 24 Jan 2022 11:50:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGe8o8Z1eNna9qekmDd4Wgma8ezfXDbd/eO6QHBpvkyk7wZNw8H1NgP0uD6kxDH3XLQ+p9 X-Received: by 2002:a63:b545:: with SMTP id u5mr12896867pgo.420.1643053847610; Mon, 24 Jan 2022 11:50:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643053847; cv=none; d=google.com; s=arc-20160816; b=l82H6pnQfc5jB/pu+SF/1yB6TDsD+ls8MzOXWYCSVZ7x1ENO8RFJnTNvmHE1ujHVnn AJmF4Bux1xsbxyFevu8pBj62kXZbmQUyL4EsloFLNZQHMsO49rea56sPGdkyz/GgOSD7 1VImcliY4Yj4dT2/o5s0SbJd1b6ZjG9qZ2x8l/UEVKPTdaTjZTFI500Zwkk4F9rO8y/+ wWlf7/fjT6Lc/rwHSKsbNynkXHHkTUIfwfbUeZPChs6dWGv6Bc84PyBjnnHLIQ7ZJ7c/ rXVts6zAd6qsxaoJFhiZaQTyU3eBDw6WV1q+w9u3pxHdkz4UJy3LhmaYo0LK11kJR9ep 64iQ== 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=9A/aiRr/eeAtuJgRH9CgKix3liywKVtjCGXmP7PCGKU=; b=vA8/0rxJjNbKfIA3djaZvr0zWBF3f3HX31D0GHPpjLg+0wYhSIEFEUXMX9ifNZe/NT EsLIXcLrU1uNjOKNt0dQW7pM5lqIa1C1J7a01OVAIfdbwMGNv7WOrJ3YH+kcNljiH/vd yNVF/AZFiOjKFCLzUTZzdLjZomk2uWJP11dA+iEcFpZunTXZ8nOoESmMhxVWly+bUN/z yTrf0zuwLs6+utyIdt52p9Ts9wbg6V4Ru++Y/ghMU1bhP95qctJ88msdFvQkqsHRqluT RTXFHTZ5RgdEvgEZF7Nk6IZtTCgGy7bfmd0AbPO1+T09ijsxIol1aCzN+91PJvAhHppO eKnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=tbxWzIiy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si12977099pfh.255.2022.01.24.11.50.34; Mon, 24 Jan 2022 11:50:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=tbxWzIiy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244947AbiAXSFW (ORCPT + 99 others); Mon, 24 Jan 2022 13:05:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241629AbiAXSFS (ORCPT ); Mon, 24 Jan 2022 13:05:18 -0500 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A919C06173D for ; Mon, 24 Jan 2022 10:05:18 -0800 (PST) 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=1643047517; 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=9A/aiRr/eeAtuJgRH9CgKix3liywKVtjCGXmP7PCGKU=; b=tbxWzIiyor4endaQATbidklnt+syNwmi7hm5yMdHV/C61qeV/L0qewDmLZBPYSQ+zsDRZ/ 7OnBdrdpNZVCh+9SEtM3qEhN1Vp/J+5bVgsZSIIYFcybmneoDbonBvyjLV9oysEtgmEHvS VRFLR80lfIXwhpaou6epRhjOvXLjwMo= From: andrey.konovalov@linux.dev To: Andrew Morton Cc: Andrey Konovalov , Marco Elver , Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, linux-mm@kvack.org, Vincenzo Frascino , Catalin Marinas , Will Deacon , Mark Rutland , linux-arm-kernel@lists.infradead.org, Peter Collingbourne , Evgenii Stepanov , linux-kernel@vger.kernel.org, Andrey Konovalov Subject: [PATCH v6 18/39] kasan, vmalloc: drop outdated VM_KASAN comment Date: Mon, 24 Jan 2022 19:04:52 +0100 Message-Id: <780395afea83a147b3b5acc36cf2e38f7f8479f9.1643047180.git.andreyknvl@google.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrey Konovalov The comment about VM_KASAN in include/linux/vmalloc.c is outdated. VM_KASAN is currently only used to mark vm_areas allocated for kernel modules when CONFIG_KASAN_VMALLOC is disabled. Drop the comment. Signed-off-by: Andrey Konovalov Reviewed-by: Alexander Potapenko --- include/linux/vmalloc.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h index 880227b9f044..87f8cfec50a0 100644 --- a/include/linux/vmalloc.h +++ b/include/linux/vmalloc.h @@ -35,17 +35,6 @@ struct notifier_block; /* in notifier.h */ #define VM_DEFER_KMEMLEAK 0 #endif -/* - * VM_KASAN is used slightly differently depending on CONFIG_KASAN_VMALLOC. - * - * If IS_ENABLED(CONFIG_KASAN_VMALLOC), VM_KASAN is set on a vm_struct after - * shadow memory has been mapped. It's used to handle allocation errors so that - * we don't try to poison shadow on free if it was never allocated. - * - * Otherwise, VM_KASAN is set for kasan_module_alloc() allocations and used to - * determine which allocations need the module shadow freed. - */ - /* bits [20..32] reserved for arch specific ioremap internals */ /* -- 2.25.1