aboutsummaryrefslogtreecommitdiffstats
path: root/arch/avr32/mm/fault.c
diff options
context:
space:
mode:
authorAndrea Righi <righiandr@users.sourceforge.net>2007-05-23 17:14:52 -0400
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2007-06-14 12:30:49 -0400
commit126187f1e00048abec4d4a2eb3eeae396fbaa944 (patch)
tree29819132d3757ad9300e8596267614c900f78d16 /arch/avr32/mm/fault.c
parenteedab661a51966c454e38c17266a531aa58b4a98 (diff)
[AVR32] ratelimit segfault reporting rate
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@cineca.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/mm/fault.c')
-rw-r--r--arch/avr32/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/mm/fault.c b/arch/avr32/mm/fault.c
index e011f1ce1875..4b2495285d94 100644
--- a/arch/avr32/mm/fault.c
+++ b/arch/avr32/mm/fault.c
@@ -158,7 +158,7 @@ bad_area:
158 up_read(&mm->mmap_sem); 158 up_read(&mm->mmap_sem);
159 159
160 if (user_mode(regs)) { 160 if (user_mode(regs)) {
161 if (exception_trace) 161 if (exception_trace && printk_ratelimit())
162 printk("%s%s[%d]: segfault at %08lx pc %08lx " 162 printk("%s%s[%d]: segfault at %08lx pc %08lx "
163 "sp %08lx ecr %lu\n", 163 "sp %08lx ecr %lu\n",
164 is_init(tsk) ? KERN_EMERG : KERN_INFO, 164 is_init(tsk) ? KERN_EMERG : KERN_INFO,