[Devel,RHEL7,COMMIT] ve/itimer: add ve_name to warning for a NULL new_value

Submitted by Konstantin Khorenko on Aug. 9, 2016, 12:54 p.m.

Details

Message ID 201608091254.u79Csk1L024170@finist_cl7.x64_64.work.ct
State New
Series "itimer: add ve_name to warning for a NULL new_value"
Headers show

Commit Message

Konstantin Khorenko Aug. 9, 2016, 12:54 p.m.
The commit is pushed to "branch-rh7-3.10.0-327.22.2.vz7.16.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.22.2.vz7.16.4
------>
commit 4248af3799ae9ff6375ca13564719d3fc10bd4c1
Author: Dmitry Safonov <dsafonov@virtuozzo.com>
Date:   Tue Aug 9 16:54:46 2016 +0400

    ve/itimer: add ve_name to warning for a NULL new_value
    
    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 8d262b4..5b69958 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);