The patch titled Subject: kasan: suppress recursive reports for HW_TAGS has been added to the -mm mm-unstable branch. Its filename is kasan-suppress-recursive-reports-for-hw_tags-v2.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/kasan-suppress-recursive-reports-for-hw_tags-v2.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrey Konovalov <andreyknvl@xxxxxxxxxx> Subject: kasan: suppress recursive reports for HW_TAGS Date: Wed, 29 Mar 2023 20:37:48 +0200 disable preemption instead of migration, fix comment typo Link: https://lkml.kernel.org/r/d14417c8bc5eea7589e99381203432f15c0f9138.1680114854.git.andreyknvl@xxxxxxxxxx Fixes: 2e903b914797 ("kasan, arm64: implement HW_TAGS runtime") Signed-off-by: Andrey Konovalov <andreyknvl@xxxxxxxxxx> Reported-by: Weizhao Ouyang <ouyangweizhao@xxxxxxxx> Cc: Alexander Potapenko <glider@xxxxxxxxxx> Cc: Andrey Ryabinin <ryabinin.a.a@xxxxxxxxx> Cc: Catalin Marinas <catalin.marinas@xxxxxxx> Cc: Dmitry Vyukov <dvyukov@xxxxxxxxxx> Cc: Evgenii Stepanov <eugenis@xxxxxxxxxx> Cc: Marco Elver <elver@xxxxxxxxxx> Cc: Peter Collingbourne <pcc@xxxxxxxxxx> Cc: Vincenzo Frascino <vincenzo.frascino@xxxxxxx> Cc: Will Deacon <will@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/kasan/report.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/mm/kasan/report.c~kasan-suppress-recursive-reports-for-hw_tags-v2 +++ a/mm/kasan/report.c @@ -81,7 +81,7 @@ __setup("kasan_multi_shot", kasan_set_mu * * Hardware Tag-Based KASAN instead relies on: * For #1: Resetting tags via kasan_reset_tag(). - * For #2: Supression of tag checks via CPU, see report_suppress_start/end(). + * For #2: Suppression of tag checks via CPU, see report_suppress_start/end(). */ static bool report_suppressed_sw(void) { @@ -96,10 +96,10 @@ static void report_suppress_start(void) { #ifdef CONFIG_KASAN_HW_TAGS /* - * Disable migration for the duration of printing a KASAN report, as + * Disable preemption for the duration of printing a KASAN report, as * hw_suppress_tag_checks_start() disables checks on the current CPU. */ - migrate_disable(); + preempt_disable(); hw_suppress_tag_checks_start(); #else kasan_disable_current(); @@ -110,7 +110,7 @@ static void report_suppress_stop(void) { #ifdef CONFIG_KASAN_HW_TAGS hw_suppress_tag_checks_stop(); - migrate_enable(); + preempt_enable(); #else kasan_enable_current(); #endif _ Patches currently in -mm which might be from andreyknvl@xxxxxxxxxx are kasan-drop-empty-tagging-related-defines.patch kasan-arm64-rename-tagging-related-routines.patch arm64-mte-rename-tco-routines-v2.patch kasan-arm64-add-arch_suppress_tag_checks_start-stop.patch kasan-arm64-add-arch_suppress_tag_checks_start-stop-v2.patch kasan-suppress-recursive-reports-for-hw_tags.patch kasan-suppress-recursive-reports-for-hw_tags-v2.patch kcov-improve-documentation.patch kcov-improve-documentation-v2.patch kcov-improve-documentation-v3.patch