Expose KASAN_SHADOW_SCALE_SHIFT. OK'ed by maxv.
This commit is contained in:
parent
6652c005ba
commit
bd9956fcaa
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: subr_asan.c,v 1.23 2020/07/03 08:19:20 skrll Exp $ */
|
||||
/* $NetBSD: subr_asan.c,v 1.24 2020/07/10 07:48:27 skrll 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.23 2020/07/03 08:19:20 skrll Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: subr_asan.c,v 1.24 2020/07/10 07:48:27 skrll Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
|
@ -50,7 +50,6 @@ __KERNEL_RCSID(0, "$NetBSD: subr_asan.c,v 1.23 2020/07/03 08:19:20 skrll Exp $")
|
|||
#endif
|
||||
|
||||
/* ASAN constants. Part of the compiler ABI. */
|
||||
#define KASAN_SHADOW_SCALE_SHIFT 3
|
||||
#define KASAN_SHADOW_SCALE_SIZE (1UL << KASAN_SHADOW_SCALE_SHIFT)
|
||||
#define KASAN_SHADOW_MASK (KASAN_SHADOW_SCALE_SIZE - 1)
|
||||
#define KASAN_ALLOCA_SCALE_SIZE 32
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: asan.h,v 1.13 2020/02/08 09:05:08 maxv Exp $ */
|
||||
/* $NetBSD: asan.h,v 1.14 2020/07/10 07:48:28 skrll Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2018-2019 The NetBSD Foundation, Inc.
|
||||
|
@ -40,6 +40,9 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
/* ASAN constants. Part of the compiler ABI. */
|
||||
#define KASAN_SHADOW_SCALE_SHIFT 3
|
||||
|
||||
/* Stack redzone values. Part of the compiler ABI. */
|
||||
#define KASAN_STACK_LEFT 0xF1
|
||||
#define KASAN_STACK_MID 0xF2
|
||||
|
|
Loading…
Reference in New Issue