android_kernel_xiaomi_sm8350/include
Masoud Asgharifard Sharbiani abd4f7505b x86: i386-show-unhandled-signals-v3
This patch makes the i386 behave the same way that x86_64 does when a
segfault happens.  A line gets printed to the kernel log so that tools
that need to check for failures can behave more uniformly between
debug.show_unhandled_signals sysctl variable to 0 (or by doing echo 0 >
/proc/sys/debug/exception-trace)

Also, all of the lines being printed are now using printk_ratelimit() to
deny the ability of DoS from a local user with a program like the
following:

main()
{
       while (1)
               if (!fork()) *(int *)0 = 0;
}

This new revision also includes the fix that Andrew did which got rid of
new sysctl that was added to the system in earlier versions of this.
Also, 'show-unhandled-signals' sysctl has been renamed back to the old
'exception-trace' to avoid breakage of people's scripts.

AK: Enabling by default for i386 will be likely controversal, but let's see what happens
AK: Really folks, before complaining just fix your segfaults
AK: I bet this will find a lot of silent issues

Signed-off-by: Masoud Sharbiani <masouds@google.com>
Signed-off-by: Andi Kleen <ak@suse.de>
[ Personally, I've found the complaints useful on x86-64, so I'm all for
  this. That said, I wonder if we could do it more prettily..   -Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-22 11:03:37 -07:00
..
acpi x86_64: fake pxm-to-node mapping for fake numa 2007-07-21 18:37:10 -07:00
asm-alpha [PATCH] sched: sched_cacheflush is now unused 2007-07-19 21:28:35 +02:00
asm-arm [PATCH] sched: sched_cacheflush is now unused 2007-07-19 21:28:35 +02:00
asm-arm26 [PATCH] sched: sched_cacheflush is now unused 2007-07-19 21:28:35 +02:00
asm-avr32 arch: personality independent stack top 2007-07-19 10:04:45 -07:00
asm-blackfin
asm-cris arch: personality independent stack top 2007-07-19 10:04:45 -07:00
asm-frv arch: personality independent stack top 2007-07-19 10:04:45 -07:00
asm-generic i386: Put allocated ELF notes in read-only data segment 2007-07-19 10:04:47 -07:00
asm-h8300 arch: personality independent stack top 2007-07-19 10:04:45 -07:00
asm-i386 x86-64: introduce struct pci_sysdata to facilitate sharing of ->sysdata 2007-07-21 18:37:14 -07:00
asm-ia64 Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 2007-07-20 12:02:20 -07:00
asm-m32r [PATCH] sched: sched_cacheflush is now unused 2007-07-19 21:28:35 +02:00
asm-m68k m68k iomem (based on Geert's tree + memcpy_... stuff) 2007-07-20 08:24:49 -07:00
asm-m68knommu m68knommu: remove is_in_rom() function 2007-07-19 10:04:51 -07:00
asm-mips [MIPS] User stack pointer randomisation 2007-07-20 18:57:40 +01:00
asm-parisc [PATCH] sched: sched_cacheflush is now unused 2007-07-19 21:28:35 +02:00
asm-powerpc [CELL] spufs: rework list management and associated locking 2007-07-20 21:42:28 +02:00
asm-ppc [PATCH] sched: sched_cacheflush is now unused 2007-07-19 21:28:35 +02:00
asm-s390 [PATCH] sched: sched_cacheflush is now unused 2007-07-19 21:28:35 +02:00
asm-sh sh: intc - add support for SH7750 and its variants 2007-07-20 18:44:49 +09:00
asm-sh64 sh64: Wire up fallocate() syscall. 2007-07-20 12:37:51 +09:00
asm-sparc [SPARC32]: Make PAGE_SHARED a read-mostly variable. 2007-07-21 19:20:34 -07:00
asm-sparc64 [SPARC64]: Convert parport to of_platform_driver. 2007-07-20 17:15:35 -07:00
asm-um arch: personality independent stack top 2007-07-19 10:04:45 -07:00
asm-v850
asm-x86_64 x86: i386-show-unhandled-signals-v3 2007-07-22 11:03:37 -07:00
asm-xtensa arch: personality independent stack top 2007-07-19 10:04:45 -07:00
crypto
keys
linux x86: i386-show-unhandled-signals-v3 2007-07-22 11:03:37 -07:00
math-emu
media
mtd
net Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6 2007-07-19 14:42:40 -07:00
pcmcia
rdma
rxrpc
scsi
sound [ALSA] version 1.0.14 2007-07-20 11:13:35 +02:00
video
xen
Kbuild