- 17 Mar, 2005 5 commits
-
-
Paul Mackerras authored
This patch, by Jake Moilanen with some further hacking from me, adds a real execute permission bit to the linux PTEs on PPC64, and connects that into the kernel infrastructure for implementing non-executable stacks and heaps. This means that on any PPC64 cpu since the POWER4 (i.e. POWER4, PPC970, PPC970FX, POWER4+, POWER5) you will get a segfault if you try to execute instructions from a region that doesn't have PROT_EXEC permission. The patch also marks the pages of the linear mapping that aren't part of the kernel text as non-executable. Andrew and Linus, could you try this on your G5s? I have tried it here on a Debian system and a SLES9 system and everything runs fine, but I haven't been able to try it on YDL, FC or RHEL4. With this patch we default to executable stack and read-implies-exec behaviour when there is no PT_GNU_STACK program header entry, or when there is one and it indicates the stack is executable. For 32-bit processes, the heap is always executable, because the PLT contains instructions and it ends up in the bss segment. Signed-off-by: Jake Moilanen <moilanen@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Linus Torvalds authored
Setting the block size back to the original blocksize at umount time is unnecessary, and can cause buffer errors and infinite loops in __getblk_slow, and possibly other problems. Just getting bdev_lock instead causes other issues, namely AB-BA deadlocks with /proc/meminfo etc. Just drop it, and replace with a "sync_blockdev()" to cause a flush (which was a side effect of changing the blocksize before). Debugging and testing by Jeff Mahoney <jeffm@suse.com>
-
Linus Torvalds authored
Thanks to Michal Zalewski for testing.
-
Tony Luck authored
into intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.12
-
Linus Torvalds authored
-
- 16 Mar, 2005 35 commits
-
-
http://linux-watchdog.bkbits.net/linux-2.6-watchdogLinus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
bk://bk.arm.linux.org.uk/linux-2.6-rmkLinus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
Linus Torvalds authored
Keyword here being 'slightly'. The code is a mess.
-
bk://kernel.bkbits.net/davem/net-2.6Linus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
Hugh Dickins authored
On 4-way SMP, about one reboot in twenty hangs while killing processes: exit needs exclusive tasklist_lock, but something still holds read_lock. do_signal_stop race case misses unlock, and fixing it fixes the symptom. Signed-off-by: Hugh Dickins <hugh@veritas.com> Acked-by: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Adrian Bunk authored
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Robert Olsson authored
Also a minor fixup from Adrian Bunk. Signed-off-by: David S. Miller <davem@davemloft.net>
-
Alan Cox authored
Signed-off-by: David S. Miller <davem@davemloft.net>
-
Herbert Xu authored
As it is ipt_REJECT doesn't work at all with IPsec. Despite my efforts previously in making the policy lookups work there I neglected to change the final call to dst_output so the policy lookup is useless. ipt_REJECT also had a number of deviations from icmp_send which seems to be unjustified. For examples it ignored source routing IP options. There was a bug in icmp_send too :) It didn't set the ICMP type/code values for the policy lookup. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Andrew Morton authored
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-
David S. Miller authored
Signed-off-by: David S. Miller <davem@davemloft.net>
-
bk://kernel.bkbits.net/tgraf/net-2.6-sock-reorderDavid S. Miller authored
into sunset.davemloft.net:/home/davem/src/BK/net-2.6
-
Ralf Bächle authored
Signed-off-by: David S. Miller <davem@davemloft.net>
-
Thomas Graf authored
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Sven Henkel authored
TCP options are not guaranteed to be aligned at all, so we should use get_unaligned when accessing u16- or u32-values in the TCP options header to avoid alignment errors on some platforms. The patch applies to vanilla 2.6.11. Signed-off-by: Sven Henkel <shenkel@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-
David S. Miller authored
This patch is wrong. This is the *one* place where we do need to use the path MTU. The reason is that when the packet is fragmented we only pay for the IPsec overhead once over all and not once for each fragment. Please revert it for now. The trailer_len in ip_append_data is not quite right as the trailer's length depends on the length of the entire packet. However, it should be harmless since ESP knows how to extend the packet when necessary. Cset exclude: herbert@gondor.apana.org.au|ChangeSet|20050315181807|13007
-
Tony Luck authored
Every user region has a hole in the middle where we don't have enough bits in pgd+pmd+pte so pgd_addr_end needs some extra math to compute the virtual address base of the next pgd entry. Thanks to Dave Miller for pointing me in the right direction. Signed-off-by: Tony Luck <tony.luck@intel.com>
-
Thomas Graf authored
Reorders struct tcp_options_received to avoid padding and shrinks the following fields to more appropriate sizes saving 8 bytes. saw_tstamp: char -> 1 bit tstamp_ok: char -> 1 bit sack_ok: char -> 4 bits wscale_ok: char -> 1 bit snd_wscale: u8 -> 4 bits rcv_wscale: u8 -> 4 bits dsack: u8 -> 1 bit Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Thomas Graf authored
Converts hop_limit and mcast_hops to signed 16 bit types saving 4 bytes on 32bit archs and another 4 bytes on 64bit archs. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Thomas Graf authored
Reorders struct sock to avoid padding and shrinks the following fields to more appropriate sizes saving 12 bytes and some more on 64bit architectures. sk_shutdown: char -> 2 bits sk_no_checks: char -> 2 bits sk_userlocks: char -> 4 bits Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Thomas Graf authored
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Thomas Graf authored
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Thomas Graf authored
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Thomas Graf authored
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Thomas Graf authored
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Thomas Graf authored
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Thomas Graf authored
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Thomas Graf authored
tos: int -> 8bit uc_ttl: int -> 16 bit cmsg_flags: int -> 16 bit hdrincl: 8bit -> 1 bit mc_loop: 8bit -> 1 bit Saves 12 bytes together with the reordering. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-
Matthew Wilcox authored
Fix prototype of __ide_mm_{in,out}{sw,sl} function prototypes Signed-off-by: Randolph Chung <tausq@parisc-linux.org> Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Matthew Wilcox authored
Some put_user() callers mismatch the type of the object and the pointer. Since PA-RISC is big-endian, the wrong bits were being copied to userspace. Signed-off-by: Randolph Chung <tausq@parisc-linux.org> Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Matthew Wilcox authored
Minor line wrapping fix From: Kyle McMartin <kyle@parisc-linux.org> Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Matthew Wilcox authored
MUX should never have had CON_BOOT set Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Matthew Wilcox authored
convert from pci_module_init to pci_register_driver (from:http://kerneljanitors.org/TODO). Signed-off-by: Christophe Lucas <c.lucas@ifrance.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Matthew Wilcox authored
- Small cleanups to LED/LCD support code From: Grant Grundler <grundler@parisc-linux.org> - asm/irq.h is unnecessary Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Matthew Wilcox authored
IODC.txt and mm were removed ages ago Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-