From patchwork Thu Dec 21 20:04:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: andrey.konovalov@linux.dev X-Patchwork-Id: 18448 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp659307dyi; Thu, 21 Dec 2023 12:06:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6Vc1Oln0c+9jZ3QXt2hHS5I1eHKKz5oUTG32tFWbImbbtJM0jOMHyISnmVUpbyLj/uafa X-Received: by 2002:ac2:5934:0:b0:50e:29c1:f829 with SMTP id v20-20020ac25934000000b0050e29c1f829mr85319lfi.74.1703189174683; Thu, 21 Dec 2023 12:06:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703189174; cv=none; d=google.com; s=arc-20160816; b=ngyfZQ1loDsXU+hwTRiACP3nCJ++1K7aj80QWhEgJ7zTEng4ILLzbnYltfkhmeuUyD kmswEVfB0BoE06yI82trkUOQYnJF7B5rYC4CPw7jtTXMw2YYhQdvLU5w/e5D/zSrcHSS ZlMzlhounGKmzB2vJ5q6+47eWZHpb0+REA/Yy7wvlk/L26yOlEjP+KuA8EXLE33AMjcT dZWpA+d9t/IU8cNMjqALM95aU6/J8HPNEoAJ2HkCvsKbrgBak0SqxSlaa+/BeHTyIdhT RVLUn4km6rfCZh1G8eH/VtlNUme6mGtMq093oYbpdKczOuBoZU0CjnEX4dZGbPSsAPeJ M5eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=sNjSVQSFVUV8ISkHCvyHjupyoa/1urB/LVlJZWSj/S8=; fh=GyTEpUCUNPwsl1pqA0jDPXgvja+iZTM9USlQd9sQtQg=; b=OZ5jFOM4rGbTDoF+U4qLHqSV56KGwkLy88CAtTdSwuw38r333s0mSRQ2nexEqw0euM VD6N7FlkAOtBhoLkLGb3ZlWyY3AVLEaKI8ZOoluh4Afix3w+NaoU7qkSGOp3Ban5KhBU Llr54FNM7nImV33GfOZE5iF+n1v9DBweeFeXgTR4xTdtP8MKdYL6EribKWlTBqtZDqz5 9CFxKZQvLy3GdYIixrpF7IDH0gjQsfvOgoRYPExFREza8xFnGSmACs6NnwJeXXrWr2eP giI9TgbF9pHp5ujq2uPV+yZGHnfrMxwMhD2MRDGccEqLYLLGoW/9p4guMxjvK/W6jfUC SFwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=skZG0MAM; spf=pass (google.com: domain of linux-kernel+bounces-9018-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9018-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i26-20020a1709061cda00b00a234963fc8csi1163046ejh.691.2023.12.21.12.06.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 12:06:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9018-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=skZG0MAM; spf=pass (google.com: domain of linux-kernel+bounces-9018-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9018-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A33711F22374 for ; Thu, 21 Dec 2023 20:05:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E09576DA1; Thu, 21 Dec 2023 20:05:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="skZG0MAM" X-Original-To: linux-kernel@vger.kernel.org Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 995777318F for ; Thu, 21 Dec 2023 20:05:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev 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=1703189098; 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; bh=sNjSVQSFVUV8ISkHCvyHjupyoa/1urB/LVlJZWSj/S8=; b=skZG0MAMyl6rsB9CCsmBPP7NznukYYsecWppGCwYHrmvvYnQyMvlOF6jBnMft0q/3vtPVN /GAZWrPBGeieQcJ4RhLnGqH2ikIUM3Ej5bau/5zQL2rkFZcQPeWhNOJhaGTDjqnJOhtaZ0 ONn/64VbboXzqOkOPots7VsHnkIicy4= From: andrey.konovalov@linux.dev To: Marco Elver Cc: Andrey Konovalov , Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: [PATCH mm 00/11] kasan: assorted clean-ups Date: Thu, 21 Dec 2023 21:04:42 +0100 Message-Id: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785923291863273646 X-GMAIL-MSGID: 1785923291863273646 From: Andrey Konovalov Code clean-ups, nothing worthy of being backported to stable. This series goes on top of the "kasan: save mempool stack traces" one. Andrey Konovalov (11): kasan/arm64: improve comments for KASAN_SHADOW_START/END mm, kasan: use KASAN_TAG_KERNEL instead of 0xff kasan: improve kasan_non_canonical_hook kasan: clean up kasan_requires_meta kasan: update kasan_poison documentation comment kasan: clean up is_kfence_address checks kasan: respect CONFIG_KASAN_VMALLOC for kasan_flag_vmalloc kasan: check kasan_vmalloc_enabled in vmalloc tests kasan: export kasan_poison as GPL kasan: remove SLUB checks for page_alloc fallbacks in tests kasan: speed up match_all_mem_tag test for SW_TAGS arch/arm64/include/asm/kasan.h | 22 +-------------- arch/arm64/include/asm/memory.h | 38 +++++++++++++++++++++----- arch/arm64/mm/kasan_init.c | 5 ++++ include/linux/kasan.h | 1 + include/linux/mm.h | 4 +-- mm/kasan/common.c | 26 +++++++++++------- mm/kasan/hw_tags.c | 8 ++++++ mm/kasan/kasan.h | 48 ++++++++++++++++----------------- mm/kasan/kasan_test.c | 45 ++++++++++++++----------------- mm/kasan/report.c | 34 +++++++++++++---------- mm/kasan/shadow.c | 14 +--------- mm/page_alloc.c | 2 +- 12 files changed, 131 insertions(+), 116 deletions(-)