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

Submitted by Dmitry Safonov on July 19, 2016, 1:27 p.m.

Details

Message ID 20160719132727.32472-1-dsafonov@virtuozzo.com
State New
Series "itimer: add ve_name to warning for a NULL new_value"
Headers show

Commit Message

Dmitry Safonov July 19, 2016, 1:27 p.m.
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@virtuozzo.com>
---
 kernel/itimer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

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);