Module Name: src
Committed By: kamil
Date: Wed Feb 13 14:55:29 UTC 2019
Modified Files:
src/sys/kern: subr_asan.c
Log Message:
Align the kASan message style with kUBSan
Print messages with initial 'ASan', simiarly to kUBSan printing 'UBSan'.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/kern/subr_asan.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/subr_asan.c
diff -u src/sys/kern/subr_asan.c:1.2 src/sys/kern/subr_asan.c:1.3
--- src/sys/kern/subr_asan.c:1.2 Sun Dec 23 12:15:01 2018
+++ src/sys/kern/subr_asan.c Wed Feb 13 14:55:29 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_asan.c,v 1.2 2018/12/23 12:15:01 maxv Exp $ */
+/* $NetBSD: subr_asan.c,v 1.3 2019/02/13 14:55:29 kamil Exp $ */
/*
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_asan.c,v 1.2 2018/12/23 12:15:01 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_asan.c,v 1.3 2019/02/13 14:55:29 kamil Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -166,7 +166,7 @@ kasan_init(void)
static void
kasan_report(unsigned long addr, size_t size, bool write, unsigned long pc)
{
- printf("kASan: Unauthorized Access In %p: Addr %p [%zu byte%s, %s]\n",
+ printf("ASan: Unauthorized Access In %p: Addr %p [%zu byte%s, %s]\n",
(void *)pc, (void *)addr, size, (size > 1 ? "s" : ""),
(write ? "write" : "read"));
kasan_md_unwind();