* [LTP] [PATCH 1/1] tst_taint.h Add taint for randstruct
@ 2020-05-28 11:15 Petr Vorel
2020-05-29 10:28 ` Jan Stancek
2020-06-05 9:37 ` Petr Vorel
0 siblings, 2 replies; 4+ messages in thread
From: Petr Vorel @ 2020-05-28 11:15 UTC (permalink / raw)
To: ltp
Added in kernel 4.17.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
include/tst_taint.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/tst_taint.h b/include/tst_taint.h
index 0acc1140c..cfa84dded 100644
--- a/include/tst_taint.h
+++ b/include/tst_taint.h
@@ -60,7 +60,8 @@
#define TST_TAINT_E (1 << 13) /* unsigned module was loaded */
#define TST_TAINT_L (1 << 14) /* A soft lock-up has previously occurred */
#define TST_TAINT_K (1 << 15) /* kernel has been live-patched */
-#define TST_TAINT_X (1 << 16) /* auxiliary taint, for distro's use */
+#define TST_TAINT_X (1 << 16) /* auxiliary taint, for distro's use */
+#define TST_TAINT_T (1 << 17) /* kernel was built with the struct randomization plugin */
/*
* Initialize and prepare support for checking tainted kernel.
--
2.26.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [LTP] [PATCH 1/1] tst_taint.h Add taint for randstruct
2020-05-28 11:15 [LTP] [PATCH 1/1] tst_taint.h Add taint for randstruct Petr Vorel
@ 2020-05-29 10:28 ` Jan Stancek
2020-06-01 6:44 ` Petr Vorel
2020-06-05 9:37 ` Petr Vorel
1 sibling, 1 reply; 4+ messages in thread
From: Jan Stancek @ 2020-05-29 10:28 UTC (permalink / raw)
To: ltp
----- Original Message -----
> Added in kernel 4.17.
>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> include/tst_taint.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/tst_taint.h b/include/tst_taint.h
> index 0acc1140c..cfa84dded 100644
> --- a/include/tst_taint.h
> +++ b/include/tst_taint.h
> @@ -60,7 +60,8 @@
> #define TST_TAINT_E (1 << 13) /* unsigned module was loaded */
> #define TST_TAINT_L (1 << 14) /* A soft lock-up has previously occurred
> */
> #define TST_TAINT_K (1 << 15) /* kernel has been live-patched */
> -#define TST_TAINT_X (1 << 16) /* auxiliary taint, for distro's use */
> +#define TST_TAINT_X (1 << 16) /* auxiliary taint, for distro's use */
> +#define TST_TAINT_T (1 << 17) /* kernel was built with the struct
> randomization plugin */
ack, this is trivial enough to push directly
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] [PATCH 1/1] tst_taint.h Add taint for randstruct
2020-05-29 10:28 ` Jan Stancek
@ 2020-06-01 6:44 ` Petr Vorel
0 siblings, 0 replies; 4+ messages in thread
From: Petr Vorel @ 2020-06-01 6:44 UTC (permalink / raw)
To: ltp
Hi Jan,
> ack, this is trivial enough to push directly
Right, I'm sometimes too careful.
Thanks for your review, Jan, pushed.
Kind regards,
Petr
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] [PATCH 1/1] tst_taint.h Add taint for randstruct
2020-05-28 11:15 [LTP] [PATCH 1/1] tst_taint.h Add taint for randstruct Petr Vorel
2020-05-29 10:28 ` Jan Stancek
@ 2020-06-05 9:37 ` Petr Vorel
1 sibling, 0 replies; 4+ messages in thread
From: Petr Vorel @ 2020-06-05 9:37 UTC (permalink / raw)
To: ltp
Hi,
> +++ b/include/tst_taint.h
> @@ -60,7 +60,8 @@
#define TST_TAINT_G (1 << 0) /* a module with non-GPL license loaded */
one more note. I'd rename TST_TAINT_G to TST_TAINT_P, it's misleading, we use it
to use it for 'P' (proprietary module loaded).
Also we use taint_flag.c_true, not taint_flag.c_false:
[ TAINT_PROPRIETARY_MODULE ] = { 'P', 'G', true },
But this flag hasn't been used, it might be always as placeholder (never
actually needed).
Kind regards,
Petr
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-06-05 9:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 11:15 [LTP] [PATCH 1/1] tst_taint.h Add taint for randstruct Petr Vorel
2020-05-29 10:28 ` Jan Stancek
2020-06-01 6:44 ` Petr Vorel
2020-06-05 9:37 ` Petr Vorel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.