Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4296191pxb; Mon, 8 Feb 2021 12:44:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWW7lm+0gElI3TH5pnlLJSYYLkaqXcjpznPTkfxx6IWOSDcVkrMJ5ZbH+PMsIj12bOAMhl X-Received: by 2002:a05:6402:22ce:: with SMTP id dm14mr13753366edb.256.1612817078497; Mon, 08 Feb 2021 12:44:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612817078; cv=none; d=google.com; s=arc-20160816; b=O8cXKSbTbG0TeYpP7XZDQzFScIZZeFeqPBlbVyPKF/HduiYT6FZz0Hj7IsPmFzUCCW zxXgvsHnNpiP7RTBmLadzyUB8BrbzJUu9GiEiOfLxtsf65UpNcu1Oh8GTgClYLbvJi6N v/7iPNrQPspHgOxF2Vy2GLWTfBF0IEHsafvVG/L/GX/mgPSwgPZWLxz8d/Ip9KLDHsoq YWGJcSvvodmPJdzngktedKn5jG8Trpq+3RczidIe8pYlzSITw50/YzIoCw9zRJDDj4UF vQqOKZSQU/g2cT2aReJwJigbA+LZgv9XEPw/M0+cgFYZagRG2OBrahIJJZhuOlfKQkyH 5NsA== 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=0l9g7N5eQLPk7YVqRqJr74edpKTvZBLwb0I3q9VX8kY=; b=evNspfTp17AH7V3wmN7QjUXbZhx/q2dxJ9IBMAkh0IwaELetbLkG2z5jA+7pA3aBnw 7PtJsPszHaTQw64qmQV1fcsn3AjErpWZL2qbem/tBvdfppLzU1sQZkKjDDNSu4NJySrV vr1OubH4E363rdXdw31S0ITP96vduL2EXNm7f+QXJ+HP/6Hf1r9NWN7uhiIHsRTubsrX WzBeDlFo44b66twsI8Lq8HgKm8WqxT81utolf3jISqNyk90OGafsdh4c7xAMW18GpHDh uKa69aLQlUgtbo+KWjVXKztFE40z6LNc4WdlLrn3+OREj96sSWvO/R4NdvctS28Boeek rERg== 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 kl13si13051319ejc.507.2021.02.08.12.44.14; Mon, 08 Feb 2021 12:44:38 -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 S233443AbhBHUnH (ORCPT + 99 others); Mon, 8 Feb 2021 15:43:07 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:50169 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236212AbhBHTbH (ORCPT ); Mon, 8 Feb 2021 14:31:07 -0500 X-Originating-IP: 2.7.49.219 Received: from debian.home (lfbn-lyo-1-457-219.w2-7.abo.wanadoo.fr [2.7.49.219]) (Authenticated sender: alex@ghiti.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id C803F60008; Mon, 8 Feb 2021 19:30:20 +0000 (UTC) From: Alexandre Ghiti To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Paul Walmsley , Palmer Dabbelt , Albert Ou , kasan-dev@googlegroups.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alexandre Ghiti Subject: [PATCH 0/4] Kasan improvements and fixes Date: Mon, 8 Feb 2021 14:30:13 -0500 Message-Id: <20210208193017.30904-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 small series contains some improvements for the riscv KASAN code: - it brings a better readability of the code (patch 1/2) - it fixes oversight regarding page table population which I uncovered while working on my sv48 patchset (patch 3) - it helps to have better performance by using hugepages when possible (patch 4) Alexandre Ghiti (4): riscv: Improve kasan definitions riscv: Use KASAN_SHADOW_INIT define for kasan memory initialization riscv: Improve kasan population function riscv: Improve kasan population by using hugepages when possible arch/riscv/include/asm/kasan.h | 22 +++++- arch/riscv/mm/kasan_init.c | 119 ++++++++++++++++++++++++--------- 2 files changed, 108 insertions(+), 33 deletions(-) -- 2.20.1