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

Konstantin Khorenko khorenko at virtuozzo.com
Tue Aug 9 05:54:46 PDT 2016


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


More information about the Devel mailing list