[Devel] [PATCH] itimer: add ve_name to warning for a NULL new_value

Dmitry Safonov dsafonov at virtuozzo.com
Tue Jul 19 06:27:27 PDT 2016


The host admin may be confused by warning in dmesg with only
"comm", which may be anything a user in a container chooses.
Add ve name to this warning.

https://jira.sw.ru/browse/PSBM-49818

Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 kernel/itimer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/itimer.c b/kernel/itimer.c
index 8d262b467573..5b699581f248 100644
--- a/kernel/itimer.c
+++ b/kernel/itimer.c
@@ -286,9 +286,9 @@ SYSCALL_DEFINE3(setitimer, int, which, struct itimerval __user *, value,
 			return -EFAULT;
 	} else {
 		memset(&set_buffer, 0, sizeof(set_buffer));
-		printk_once(KERN_WARNING "%s calls setitimer() with new_value NULL pointer."
+		printk_once(KERN_WARNING "cmd: %s CT: %s calls setitimer() with new_value NULL pointer."
 			    " Misfeature support will be removed\n",
-			    current->comm);
+			    current->comm, task_ve_name(current));
 	}
 
 	error = do_setitimer(which, &set_buffer, ovalue ? &get_buffer : NULL);
-- 
2.9.0



More information about the Devel mailing list