diff options
author | Jiri Slaby <jslaby@suse.cz> | 2016-04-18 11:10:59 +0200 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2016-04-19 17:52:41 +0200 |
commit | 37c1433899808f50b167740d65bb0e8ff4dce163 (patch) | |
tree | 9fb904253fa25fd2602127140ed573e9906dea4f | |
parent | f87b8f0ed4bb08a7abb0c716472fb51ca411b514 (diff) | |
download | kgraft-37c1433899808f50b167740d65bb0e8ff4dce163.tar.gz |
kgr: taint with TAINT_LIVEPATCH
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | kernel/kgraft.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/kgraft.c b/kernel/kgraft.c index 75e28d044139f1..4dc9ae0c719750 100644 --- a/kernel/kgraft.c +++ b/kernel/kgraft.c @@ -1127,6 +1127,9 @@ int kgr_patch_kernel(struct kgr_patch *patch) return -EBUSY; } + pr_notice_once("tainting kernel with TAINT_LIVEPATCH\n"); + add_taint(TAINT_LIVEPATCH, LOCKDEP_STILL_OK); + init_completion(&patch->finish); ret = kgr_patch_dir_add(patch); |