Re: [PATCH v3 2/3] kasan: integrate the common part of two KASAN tag-based modes
From: Marco Elver <elver@google.com>
Date: 2021-06-22 09:48:58
Also in:
linux-mediatek, linux-mm, lkml
From: Marco Elver <elver@google.com>
Date: 2021-06-22 09:48:58
Also in:
linux-mediatek, linux-mm, lkml
On Tue, 22 Jun 2021 at 11:28, Alexander Potapenko [off-list ref] wrote:
quoted
diff --git a/mm/kasan/report_tags.h b/mm/kasan/report_tags.h new file mode 100644 index 000000000000..1cb872177904 --- /dev/null +++ b/mm/kasan/report_tags.hWhy don't you make it a C file instead?
Yes, good point. report_{hw,sw}_tags.c essentially define it, but it's
called by report.c code.
I think I suggested to make it a header first because there were still
parts that were report_{hw,sw}_tags.c specific, and the helper
function would be used by those 2 to build their version of
kasan_get_bug_type(), but that doesn't seem to be the case anymore.
quoted
+const char *kasan_get_bug_type(struct kasan_access_info *info)If this function has to be in the header, it should be declared as static inline. But I don't think it has to be there in the first place.
_______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel