~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/powerpc/mm/fault.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <linux/kdebug.h>
32
32
#include <linux/perf_event.h>
33
33
#include <linux/magic.h>
 
34
#include <linux/ratelimit.h>
34
35
 
35
36
#include <asm/firmware.h>
36
37
#include <asm/page.h>
346
347
                return 0;
347
348
        }
348
349
 
349
 
        if (is_exec && (error_code & DSISR_PROTFAULT)
350
 
            && printk_ratelimit())
351
 
                printk(KERN_CRIT "kernel tried to execute NX-protected"
352
 
                       " page (%lx) - exploit attempt? (uid: %d)\n",
353
 
                       address, current_uid());
 
350
        if (is_exec && (error_code & DSISR_PROTFAULT))
 
351
                printk_ratelimited(KERN_CRIT "kernel tried to execute NX-protected"
 
352
                                   " page (%lx) - exploit attempt? (uid: %d)\n",
 
353
                                   address, current_uid());
354
354
 
355
355
        return SIGSEGV;
356
356