Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Sync the codes with reality: partial replaced by mid, an...



details:   https://anonhg.NetBSD.org/src/rev/c51783f0e42b
branches:  trunk
changeset: 744625:c51783f0e42b
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Feb 08 09:05:08 2020 +0000

description:
Sync the codes with reality: partial replaced by mid, and use-after-ret
added.

diffstat:

 sys/kern/subr_asan.c |  10 ++++++----
 sys/sys/asan.h       |   4 ++--
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs (51 lines):

diff -r 0683bad64155 -r c51783f0e42b sys/kern/subr_asan.c
--- a/sys/kern/subr_asan.c      Sat Feb 08 08:47:27 2020 +0000
+++ b/sys/kern/subr_asan.c      Sat Feb 08 09:05:08 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_asan.c,v 1.17 2020/01/25 15:55:33 maxv Exp $      */
+/*     $NetBSD: subr_asan.c,v 1.18 2020/02/08 09:05:08 maxv Exp $      */
 
 /*
  * Copyright (c) 2018-2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_asan.c,v 1.17 2020/01/25 15:55:33 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_asan.c,v 1.18 2020/02/08 09:05:08 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -176,10 +176,12 @@
                return "RedZonePartial";
        case KASAN_STACK_LEFT:
                return "StackLeft";
+       case KASAN_STACK_MID:
+               return "StackMiddle";
        case KASAN_STACK_RIGHT:
                return "StackRight";
-       case KASAN_STACK_PARTIAL:
-               return "StackPartial";
+       case KASAN_USE_AFTER_RET:
+               return "UseAfterRet";
        case KASAN_USE_AFTER_SCOPE:
                return "UseAfterScope";
        default:
diff -r 0683bad64155 -r c51783f0e42b sys/sys/asan.h
--- a/sys/sys/asan.h    Sat Feb 08 08:47:27 2020 +0000
+++ b/sys/sys/asan.h    Sat Feb 08 09:05:08 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asan.h,v 1.12 2019/11/14 17:09:23 maxv Exp $   */
+/*     $NetBSD: asan.h,v 1.13 2020/02/08 09:05:08 maxv Exp $   */
 
 /*
  * Copyright (c) 2018-2019 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
 #define KASAN_STACK_LEFT       0xF1
 #define KASAN_STACK_MID                0xF2
 #define KASAN_STACK_RIGHT      0xF3
-#define KASAN_STACK_PARTIAL    0xF4
+#define KASAN_USE_AFTER_RET    0xF5
 #define KASAN_USE_AFTER_SCOPE  0xF8
 
 /* Our redzone values. */



Home | Main Index | Thread Index | Old Index