[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <2cb9aa460162603d5e61a81469eba8e6591c6b20.1505333828.git.naveen.n.rao@linux.vnet.ibm.com>
Date: Thu, 14 Sep 2017 01:58:01 +0530
From: "Naveen N. Rao" <naveen.n.rao@...ux.vnet.ibm.com>
To: Ingo Molnar <mingo@...nel.org>
Cc: Oleg Nesterov <oleg@...hat.com>,
Srikar Dronamraju <srikar@...ux.vnet.ibm.com>,
Anton Blanchard <anton@...ba.org>,
Michael Ellerman <mpe@...erman.id.au>,
Ananth N Mavinakayanahalli <ananth@...ux.vnet.ibm.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 2/3] kernel/uprobes: Ratelimit messages
Ratelimit warnings from uprobes so as not to flood the kernel log.
Suggested-by: Michael Ellerman <mpe@...erman.id.au>
Signed-off-by: Naveen N. Rao <naveen.n.rao@...ux.vnet.ibm.com>
---
kernel/events/uprobes.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index 4af1acff9cc3..e14eb0a6e4f3 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -114,8 +114,8 @@ struct xol_area {
static void uprobe_warn(struct task_struct *t, const char *msg)
{
- pr_warn("uprobe: %s:%d failed to %s\n",
- current->comm, current->pid, msg);
+ pr_warn_ratelimited("uprobe: %s:%d failed to %s\n",
+ current->comm, current->pid, msg);
}
/*
--
2.14.1
Powered by blists - more mailing lists