All of lore.kernel.org
 help / color / mirror / Atom feed
* [ndctl PATCH] ndctl. test: fix module-taint sanity-check
@ 2018-03-15 20:50 Dan Williams
  2018-03-15 23:45 ` Verma, Vishal L
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Williams @ 2018-03-15 20:50 UTC (permalink / raw)
  To: linux-nvdimm

nfit_test_init() validates that the libnvdimm modules that a test would
use are the properly instrumented external versions. If module signing
is enabled the sanity check will fail because the check expects only the
'O' flag, but unsigned external modules will have the 'O' flag and the
'E' flag set. Relax the constraint to just check for 'O'.

Fixes: 00fc65075c89 ("test: validate nfit_test modules...")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 test/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/core.c b/test/core.c
index ca983e4913f7..4b36b2d14d7b 100644
--- a/test/core.c
+++ b/test/core.c
@@ -195,7 +195,7 @@ retry:
 				break;
 			}
 
-			if (strcmp(attr, "O") != 0) {
+			if (!strchr(attr, 'O')) {
 				log_err(&log_ctx, "%s.ko: expected taint: O got: %s\n",
 						name, attr);
 				break;

_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-15 23:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-15 20:50 [ndctl PATCH] ndctl. test: fix module-taint sanity-check Dan Williams
2018-03-15 23:45 ` Verma, Vishal L

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.