2020-11-24 11:07:12

by Marco Elver

[permalink] [raw]
Subject: [PATCH v3 2/2] random32: Re-enable KCSAN instrumentation

Re-enable KCSAN instrumentation, now that KCSAN no longer relies on code
in lib/random32.c.

Signed-off-by: Marco Elver <[email protected]>
---
v3:
* Add patch to series, since KCSAN no longer needs lib/random32.c.
---
lib/Makefile | 3 ---
1 file changed, 3 deletions(-)

diff --git a/lib/Makefile b/lib/Makefile
index ce45af50983a..301020c49533 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -27,9 +27,6 @@ KASAN_SANITIZE_string.o := n
CFLAGS_string.o += -fno-stack-protector
endif

-# Used by KCSAN while enabled, avoid recursion.
-KCSAN_SANITIZE_random32.o := n
-
lib-y := ctype.o string.o vsprintf.o cmdline.o \
rbtree.o radix-tree.o timerqueue.o xarray.o \
idr.o extable.o sha1.o irq_regs.o argv_split.o \
--
2.29.2.454.gaff20da3a2-goog


2020-12-01 17:01:28

by Paul E. McKenney

[permalink] [raw]
Subject: Re: [PATCH v3 2/2] random32: Re-enable KCSAN instrumentation

On Tue, Nov 24, 2020 at 12:02:10PM +0100, Marco Elver wrote:
> Re-enable KCSAN instrumentation, now that KCSAN no longer relies on code
> in lib/random32.c.
>
> Signed-off-by: Marco Elver <[email protected]>

Queued and pushed both, thank you!

Thanx, Paul

> ---
> v3:
> * Add patch to series, since KCSAN no longer needs lib/random32.c.
> ---
> lib/Makefile | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/lib/Makefile b/lib/Makefile
> index ce45af50983a..301020c49533 100644
> --- a/lib/Makefile
> +++ b/lib/Makefile
> @@ -27,9 +27,6 @@ KASAN_SANITIZE_string.o := n
> CFLAGS_string.o += -fno-stack-protector
> endif
>
> -# Used by KCSAN while enabled, avoid recursion.
> -KCSAN_SANITIZE_random32.o := n
> -
> lib-y := ctype.o string.o vsprintf.o cmdline.o \
> rbtree.o radix-tree.o timerqueue.o xarray.o \
> idr.o extable.o sha1.o irq_regs.o argv_split.o \
> --
> 2.29.2.454.gaff20da3a2-goog
>