Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1625,6 +1625,7 @@ SYSCALL_DEFINE6(mbind, unsigned long, start, unsigned long, len,
static long kernel_set_mempolicy(int mode, const unsigned long __user *nmask,
unsigned long maxnode)
{
char name[sizeof(current->comm)];
unsigned short mode_flags;
nodemask_t nodes;
int lmode = mode;
Expand All @@ -1635,7 +1636,7 @@ static long kernel_set_mempolicy(int mode, const unsigned long __user *nmask,
if (mempolicy_cmdline_set) {
// ignore messages during boot which are expected
if (ktime_get_boottime_seconds() > 40)
pr_info("Request to set policy to %d ignored\n", mode);
pr_info("Request by '%s' to set policy to %d ignored\n", get_task_comm(name, current), mode);
return 0;
}

Expand Down