Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1901367pxf; Sat, 13 Mar 2021 01:05:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJweTY3HLViXJodwOgquqOG15w8EaAEwUltTZXcvBCefEYxp92YM4naS36YPhaEMaKEmkGLp X-Received: by 2002:a05:6402:35c9:: with SMTP id z9mr18864165edc.94.1615626306399; Sat, 13 Mar 2021 01:05:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615626306; cv=none; d=google.com; s=arc-20160816; b=RX5Rv7/A5RmwZZGzTsmW8mBlcKd9IIZ2k5hekW0rwQp5F/hiQyxWXRc/XQMNSX2+ab 0dUMcNUFEKlccPU5KMjNebQArjAdtFXQX+1PHKvesjCQdzBInlkhtqjgp1lA0xj4Nlbz GIBkq4WYptQs96OVT2zgrFqnWP1GUmZ4mczrrYrIXHEUeSpyCoicsbRHzljPmKRL2Gg+ kmsBjO/mf0SIBN1Pob1hgHVNnphM/Yvg23BpnJDZ85yu3hTMyaK/k+n4F2hGScr366cM mmHZOnSRoms08GQdDOyWnu0V52/9c8fEHLwS5oqZ5+h+VmDurG/4PRytLUMFG0J2Vunu zWvQ== 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 :message-id:date:subject:cc:to:from; bh=lr61uGNRcIHFtDXirFx9Psk102hpJFKn5JayyPk7WK4=; b=KQrs6M+xr0progp7SqXKFIzQatHf3VNER/RyvUc24J5hB5xfe4Ekmg6FhVqtIfcWO7 Tk7HV5gGmj6urocY1cYNs5oZK1+npJ5bGEqqxx26JGM2SLqI3jZtbLo6YJqf3O9SSkZh vdQPZKOFrD+NmLmj7/tXLcA22TFKyhJ7+v35xyRA5o/KFEAy6HfrsK0agwGkspE+3LW5 2/Fh0S582VQWinifoRpVwuGSRV15qXw+mckSt13DJS0sv6sfjmeijASoVGD5sECbLlmz SwGcr+RvW8TtBn0wfL+VIHmHic33rjqfAHDqXymuHAabASuwQmnoLCtS23q/EQxrbX8B AIdg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si6202898ejm.408.2021.03.13.01.04.43; Sat, 13 Mar 2021 01:05:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231383AbhCMJDd (ORCPT + 99 others); Sat, 13 Mar 2021 04:03:33 -0500 Received: from mslow2.mail.gandi.net ([217.70.178.242]:57639 "EHLO mslow2.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230380AbhCMJDc (ORCPT ); Sat, 13 Mar 2021 04:03:32 -0500 Received: from relay13.mail.gandi.net (unknown [217.70.178.233]) by mslow2.mail.gandi.net (Postfix) with ESMTP id 72C843AAC3B for ; Sat, 13 Mar 2021 08:45:34 +0000 (UTC) Received: from debian.home (lfbn-lyo-1-457-219.w2-7.abo.wanadoo.fr [2.7.49.219]) (Authenticated sender: alex@ghiti.fr) by relay13.mail.gandi.net (Postfix) with ESMTPSA id 736AF80003; Sat, 13 Mar 2021 08:45:10 +0000 (UTC) From: Alexandre Ghiti To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Nylon Chen , Nick Hu , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com Cc: Alexandre Ghiti Subject: [PATCH v3 0/2] Improve KASAN_VMALLOC support Date: Sat, 13 Mar 2021 03:45:03 -0500 Message-Id: <20210313084505.16132-1-alex@ghiti.fr> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset improves KASAN vmalloc implementation by fixing an oversight where kernel page table was not flushed in patch 1 and by reworking the kernel page table PGD level population in patch 2. Changes in v3: - Split into 2 patches - Add reviewed-by Changes in v2: - Quiet kernel test robot warnings about missing prototypes by declaring the introduced functions as static. Alexandre Ghiti (2): riscv: Ensure page table writes are flushed when initializing KASAN vmalloc riscv: Cleanup KASAN_VMALLOC support arch/riscv/mm/kasan_init.c | 61 +++++++++++++------------------------- 1 file changed, 20 insertions(+), 41 deletions(-) -- 2.20.1