- x86_64-ratelimit-segfault-reporting-rate.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     x86_64: ratelimit segfault reporting rate
has been removed from the -mm tree.  Its filename was
     x86_64-ratelimit-segfault-reporting-rate.patch

This patch was dropped because it was nacked

------------------------------------------------------
Subject: x86_64: ratelimit segfault reporting rate
From: Andrea Righi <righiandr@xxxxxxxxxxxxxxxxxxxxx>

Limit the rate of the kernel logging for the segfaults of user
applications, to avoid potential message floods or denial-of-service
attacks.

Signed-off-by: Andrea Righi <a.righi@xxxxxxxxx>
Cc: Andi Kleen <ak@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 arch/x86_64/mm/fault.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN arch/x86_64/mm/fault.c~x86_64-ratelimit-segfault-reporting-rate arch/x86_64/mm/fault.c
--- a/arch/x86_64/mm/fault.c~x86_64-ratelimit-segfault-reporting-rate
+++ a/arch/x86_64/mm/fault.c
@@ -495,7 +495,8 @@ bad_area_nosemaphore:
 		    (address >> 32))
 			return;
 
-		if (exception_trace && unhandled_signal(tsk, SIGSEGV)) {
+		if (exception_trace && unhandled_signal(tsk, SIGSEGV) &&
+		    printk_ratelimit()) {
 			printk(
 		       "%s%s[%d]: segfault at %016lx rip %016lx rsp %016lx error %lx\n",
 					tsk->pid > 1 ? KERN_INFO : KERN_EMERG,
_

Patches currently in -mm which might be from righiandr@xxxxxxxxxxxxxxxxxxxxx are

x86_64-ratelimit-segfault-reporting-rate.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux