]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] dmasound annotation
Alexander Viro [Mon, 26 Jul 2004 13:58:52 +0000 (06:58 -0700)]
[PATCH] dmasound annotation

dmasound (core + ppc-specific parts) annotated

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] check_region fixes
Alexander Viro [Mon, 26 Jul 2004 13:58:41 +0000 (06:58 -0700)]
[PATCH] check_region fixes

A couple of old ISA drivers had trivial to fix check_region() uses.
Sanitized.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] tea575 fix
Alexander Viro [Mon, 26 Jul 2004 13:58:29 +0000 (06:58 -0700)]
[PATCH] tea575 fix

Very confused ioctl in tea575x - it is called via video_usercopy(), but
assumes that it still has userland pointers.  Fixed.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] #if abuse is sound/*
Alexander Viro [Mon, 26 Jul 2004 13:58:17 +0000 (06:58 -0700)]
[PATCH] #if abuse is sound/*

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] more NULL noise removal in sound/*
Alexander Viro [Mon, 26 Jul 2004 13:58:06 +0000 (06:58 -0700)]
[PATCH] more NULL noise removal in sound/*

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] bluetooth annotations
Alexander Viro [Mon, 26 Jul 2004 13:57:53 +0000 (06:57 -0700)]
[PATCH] bluetooth annotations

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] rndis fix
Alexander Viro [Mon, 26 Jul 2004 13:57:42 +0000 (06:57 -0700)]
[PATCH] rndis fix

blind dereferencing of userland pointers in procfs ->write() in rndis.c

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] appletalk SIOCADDRT fix
Alexander Viro [Mon, 26 Jul 2004 13:57:31 +0000 (06:57 -0700)]
[PATCH] appletalk SIOCADDRT fix

blind dereferencing of userland pointer in appletalk SIOCADDRT handling.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] size_t portability fixes
Alexander Viro [Mon, 26 Jul 2004 13:57:19 +0000 (06:57 -0700)]
[PATCH] size_t portability fixes

A lot of places assumed that size_t == unsigned; on 64bit boxen that is not
true.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/net-2.6
David S. Miller [Mon, 26 Jul 2004 12:54:51 +0000 (05:54 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

22 years ago[PATCH] populate nonlinear mappings unconditionally
Oleg Nesterov [Mon, 26 Jul 2004 03:21:02 +0000 (20:21 -0700)]
[PATCH] populate nonlinear mappings unconditionally

filemap_populate and shmem_populate must install even a linear file_pte,
in case there was a nonlinear page or file_pte already installed there:
could only happen if already VM_NONLINEAR, but no need to check that.

Acked by Ingo and Hugh.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[IPV6]: Fix route.c gcc-3.4.x inlining error.
Con Kolivas [Sun, 25 Jul 2004 10:22:52 +0000 (03:22 -0700)]
[IPV6]: Fix route.c gcc-3.4.x inlining error.

Fixes the inline error when compiling net/ipv6/route.c with gcc-3.4.1

Signed-off-by: Con Kolivas <kernel@kolivas.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[XFRM]: Wake up km_waitq once per gc-run instead of once per state.
Patrick McHardy [Sun, 25 Jul 2004 09:54:54 +0000 (02:54 -0700)]
[XFRM]: Wake up km_waitq once per gc-run instead of once per state.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoCset exclude: davem@nuts.davemloft.net|ChangeSet|20040723204655|22654
David S. Miller [Sun, 25 Jul 2004 09:49:54 +0000 (02:49 -0700)]
Cset exclude: davem@nuts.davemloft.net|ChangeSet|20040723204655|22654

22 years ago[PATCH] sparse: simplify and tighten sparse typechecking
Alexander Viro [Sun, 25 Jul 2004 04:12:16 +0000 (21:12 -0700)]
[PATCH] sparse: simplify and tighten sparse typechecking

This takes advantage of the simplified typeof semantics of sparse
address spaces, (should be enough for alpha, i386, ppc, ppc64, sparc,
sparc64, x86_64 - most of them didn't actually need anything to be done)
and couple of missing annotations that got caught by that.

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/net-2.6
David S. Miller [Sat, 24 Jul 2004 23:27:58 +0000 (16:27 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

22 years ago[SCTP]: Fix mis-merge.
David S. Miller [Sat, 24 Jul 2004 15:41:08 +0000 (08:41 -0700)]
[SCTP]: Fix mis-merge.

22 years ago[NET]: Use NET_IP_ALIGN in acenic.
Anton Blanchard [Sat, 24 Jul 2004 15:31:11 +0000 (08:31 -0700)]
[NET]: Use NET_IP_ALIGN in acenic.

Use NET_IP_ALIGN in acenic driver. Also remove the 16 byte padding,
caches can be anywhere from 16 to 256 bytes and the skb should be
cacheline aligned already.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[AH6]: Replace skb by iph in clear_mutable_options.
Herbert Xu [Sat, 24 Jul 2004 15:26:27 +0000 (08:26 -0700)]
[AH6]: Replace skb by iph in clear_mutable_options.

This patch replaces the skb argument in ipv6_clear_mutable_options() by
an ipv6hdr.  Doing so allows us to point skb->nh elsewhere when calling
this function.

I've also thrown in some obvious clean-ups for that function.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[AH4]: Save daddr iff options are present.
Herbert Xu [Sat, 24 Jul 2004 15:24:48 +0000 (08:24 -0700)]
[AH4]: Save daddr iff options are present.

This is a little optimisation for AH4.  When I moved the tunnel code out,
I put the daddr copying code on the main path which is unnecessary since
daddr is only mutable if IP options are present.

This patch moves the saving and restoring of daddr under the check for
the existence of IP options.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoCset exclude: shemminger@osdl.org|ChangeSet|20040722205059|21273
David S. Miller [Sat, 24 Jul 2004 15:19:43 +0000 (08:19 -0700)]
Cset exclude: shemminger@osdl.org|ChangeSet|20040722205059|21273

22 years agoMerge conflicts with Yoshfuji's SNMP stats changes.
David S. Miller [Sat, 24 Jul 2004 15:17:10 +0000 (08:17 -0700)]
Merge conflicts with Yoshfuji's SNMP stats changes.

22 years ago[IPV4/IPV6]: Add myself to MAINTAINERS.
Patrick McHardy [Sat, 24 Jul 2004 15:01:14 +0000 (08:01 -0700)]
[IPV4/IPV6]: Add myself to MAINTAINERS.

22 years agoppc64: fix more 0/NULL confusion
Linus Torvalds [Sat, 24 Jul 2004 14:51:58 +0000 (07:51 -0700)]
ppc64: fix more 0/NULL confusion

22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Sat, 24 Jul 2004 09:54:25 +0000 (02:54 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[PATCH] ppc64: exception path optimisations
Anton Blanchard [Sat, 24 Jul 2004 02:39:20 +0000 (19:39 -0700)]
[PATCH] ppc64: exception path optimisations

- We were statically predicting syscalls would be 32bit which meant every
  64bit syscall was guaranteed to be mispredicted. Just let the hardware
  predict this one.

- We shouldnt use blrl for indirect function calls, it is unlikely to be
  predicted correctly and corrupts the link prediction stack. We should
  use bctrl instead.

- Statically predict a branch in the system call path, favouring calls from
  userspace.

- Remove static prediction in pagefault path, hardware prediction should do
  a better job here.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix ppc64 max_pfn issue - again
Anton Blanchard [Sat, 24 Jul 2004 02:38:05 +0000 (19:38 -0700)]
[PATCH] Fix ppc64 max_pfn issue - again

It turns out in the non NUMA case, max_low_pfn doesnt get initialised
until init_bootmem so we need to move initialisation of max_pfn below
it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix ppc64 max_pfn issue
Anton Blanchard [Fri, 23 Jul 2004 15:18:59 +0000 (08:18 -0700)]
[PATCH] Fix ppc64 max_pfn issue

I noticed excessive time in the pid hash functions on a ppc64 box. It
turns out the pid hash is being sized way too small, eg on a 16GB box:

PID hash table entries: 16 (order 4: 256 bytes)

The reason is that the pid hash init function uses max_pfn before it was
setup on ppc64. With the following patch things are good again:

PID hash table entries: 4096 (order 12: 65536 bytes)

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[SCTP] Mark chunks as ineligible for fast retransmit after they are
Sridhar Samudrala [Fri, 23 Jul 2004 09:41:31 +0000 (02:41 -0700)]
[SCTP] Mark chunks as ineligible for fast retransmit after they are
retransmitted. Also mark any chunks that could not be fit in the
PMTU sized packet as ineligible for fast retransmit.

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
22 years ago[NET]: eql sparse cleanup.
Stephen Hemminger [Fri, 23 Jul 2004 07:14:25 +0000 (00:14 -0700)]
[NET]: eql sparse cleanup.

Minor 0 vs NULL cleanup

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[IPVS]: Convert to module_param.
Stephen Hemminger [Fri, 23 Jul 2004 07:12:36 +0000 (00:12 -0700)]
[IPVS]: Convert to module_param.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Alpha not studly enough for SCH_CLK_CPU.
David S. Miller [Fri, 23 Jul 2004 06:46:55 +0000 (23:46 -0700)]
[PKT_SCHED]: Alpha not studly enough for SCH_CLK_CPU.

The cycle counter it provides overflows very quickly,
on the order of 10 minutes, so it is not suitable for
this purpose.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Make clock source configurable
Patrick McHardy [Fri, 23 Jul 2004 06:45:21 +0000 (23:45 -0700)]
[PKT_SCHED]: Make clock source configurable

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[AH6]: Disallow mutable bits after AH header.
Herbert Xu [Fri, 23 Jul 2004 06:26:52 +0000 (23:26 -0700)]
[AH6]: Disallow mutable bits after AH header.

As we discussed before, mutable headers should not be allowed after
the AH header.  In fact, this appears to be the intention of RFC 2402.
It is further clarified in section 3.1.1 of

http://www.ietf.org/internet-drafts/draft-ietf-ipsec-rfc2402bis-07.txt

This allows us to simplify the code in ah6.c.  As a result, this also
fixes the following issues:

* Dependence on skb->h in ah6_output().
* Bogus clearing of auth_data of 2nd AH header in ipv6_clear_mutable_options().

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[IPSEC]: Missing unlock in policy timer.
Herbert Xu [Fri, 23 Jul 2004 06:23:48 +0000 (23:23 -0700)]
[IPSEC]: Missing unlock in policy timer.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Fri, 23 Jul 2004 06:08:38 +0000 (23:08 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[PATCH] NX: allow architectures to select legacy mode dynamically
David Mosberger [Fri, 23 Jul 2004 03:26:36 +0000 (20:26 -0700)]
[PATCH] NX: allow architectures to select legacy mode dynamically

On some platforms, you'll want to support READ_IMPLIES_EXEC differently
depending on personality (e.g, native binary vs. x86 binary).

This supports that (and makes the code more readable while at it) by
replacing the old architecture-specific fixed LEGACY_BINARIES macro
define with a architecture-specific "elf_read_implies_exec_binary()"
helper function.

For now, x86 is the only user, and sets the "read implies exec" bit for
legacy apps.  ia64 and x86-64 are likely to want to do their own thing.

Acked by Ingo.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[SCTP] Fix missing '+' in the computation of sack chunk size in
Sridhar Samudrala [Thu, 22 Jul 2004 16:22:01 +0000 (09:22 -0700)]
[SCTP] Fix missing '+' in the computation of sack chunk size in
sctp_sm_pull_sack().

Signed-off-by: Jorge Hernandez <jhh@lucent.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
22 years ago[SCTP] Use idr_get_new_above() with a starting id of 1 to avoid returning
Sridhar Samudrala [Thu, 22 Jul 2004 16:18:24 +0000 (09:18 -0700)]
[SCTP] Use idr_get_new_above() with a starting id of 1 to avoid returning
an associd of 0.

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
22 years ago[SCTP] Fix issues with handling stale cookie error over multihoming
Sridhar Samudrala [Thu, 22 Jul 2004 16:15:55 +0000 (09:15 -0700)]
[SCTP] Fix issues with handling stale cookie error over multihoming
associations.

Signed-off-by: Jorge Hernandez <jhh@lucent.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
22 years ago[SCTP] Fix data not being delivered to user in SHUTDOWN_SENT state.
Sridhar Samudrala [Thu, 22 Jul 2004 16:13:05 +0000 (09:13 -0700)]
[SCTP] Fix data not being delivered to user in SHUTDOWN_SENT state.

Also cleaned up sctp_sf_eat_data_6_2() and sctp_sf_eat_data_fast_4_4()
as they have a lot of common code.

Signed-off-by: Jorge Hernandez <jhh@lucent.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
22 years ago[SCTP] Set/Get default SCTP_PEER_ADDR_PARAMS for endpoint when associd
Sridhar Samudrala [Thu, 22 Jul 2004 16:09:04 +0000 (09:09 -0700)]
[SCTP] Set/Get default SCTP_PEER_ADDR_PARAMS for endpoint when associd
and peer address are 0.

Signed-off-by: Anand R. Setlur <asetlur@lucent.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
22 years agoMake "install_page()" able to handle truncated pages.
Linus Torvalds [Thu, 22 Jul 2004 11:38:29 +0000 (04:38 -0700)]
Make "install_page()" able to handle truncated pages.

This makes it much easier on the callers, no need to
worry about races with vmtruncate() and friends, since
"install_page()" will just cleanly handle that case
and tell the caller about it.

22 years ago[PATCH] is_highmem() and WANT_PAGE_VIRTUAL
Andy Whitcroft [Thu, 22 Jul 2004 10:26:50 +0000 (03:26 -0700)]
[PATCH] is_highmem() and WANT_PAGE_VIRTUAL

Add is_highmem_idx() and is_normal_idx() to determine whether
a zone index is a highmem or normal zone.  Use this for
memmap_init_zone().

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PKT_SCHED]: Use get_cycles() for PSCHED_CPU clock source
Patrick McHardy [Thu, 22 Jul 2004 10:20:03 +0000 (03:20 -0700)]
[PKT_SCHED]: Use get_cycles() for PSCHED_CPU clock source

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] clean up n_tty alloc_buf()
Roman Fietze [Thu, 22 Jul 2004 10:14:12 +0000 (03:14 -0700)]
[PATCH] clean up n_tty alloc_buf()

Don't bother zeroing the allocated memory inside alloc_buf() in the
n_tty line discipline.  alloc_buf() is static inline and is only
referenced by n_tty_open() which always clears the memory (once more).

No bug, just a minor cleanup

22 years ago[PATCH] Asus M2N notebook hides SMBus device
Dominik Brodowski [Thu, 22 Jul 2004 10:14:00 +0000 (03:14 -0700)]
[PATCH] Asus M2N notebook hides SMBus device

Asus also "hides" the LPC bridge on M2N notebooks. Add it to
the asus_hides_smbus PCI quirk.

Fixes bug #2976 @ http://bugme.osdl.org/show_bug.cgi?id=2976

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PKT_SCHED]: Remove dead timer code.
Patrick McHardy [Thu, 22 Jul 2004 10:13:11 +0000 (03:13 -0700)]
[PKT_SCHED]: Remove dead timer code.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] Missing mnt_namespace update in copy_namespace()
Alexander Viro [Thu, 22 Jul 2004 10:01:38 +0000 (03:01 -0700)]
[PATCH] Missing mnt_namespace update in copy_namespace()

copy_namespace() forgets to switch the new 'mnt_namespace' field in the
vfsmounts of the new namespace.

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Thu, 22 Jul 2004 09:16:05 +0000 (02:16 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[TCP]: Do not overflow 16-bit window field in tcp_select_window().
David S. Miller [Thu, 22 Jul 2004 07:01:38 +0000 (00:01 -0700)]
[TCP]: Do not overflow 16-bit window field in tcp_select_window().

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Fix pkt_cls.h incompatabilities
Stephen Hemminger [Thu, 22 Jul 2004 06:50:59 +0000 (23:50 -0700)]
[PKT_SCHED]: Fix pkt_cls.h incompatabilities

The recent changes to (6 Jul 04) pkt_cls.h are evil, you can't build a version
of 'tc' to work unless you know the kernel config!

It has several API problems:
  - API data structures change on kernel config options
  - new fields should be added at the end of a structure to allow
    binary compatibility.

This patch tries to clean this up.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[INET]: Create enum of ECN bits
Herbert Xu [Thu, 22 Jul 2004 05:16:19 +0000 (22:16 -0700)]
[INET]: Create enum of ECN bits

This patch is a preparation for an update of the ECN encap/decap
code with respect to RFC3168.

It creates an enum of the four code-points defined by RFC3168
and uses them throughout the inet_ecn.h file.

The only non-trivial bit is in IP_ECN_set_ce/IP6_ECN_set_ce where
the patch uses INET_ECN_CE instead of 1.  This is OK as those
functions assume that the ECT bit is already set.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[IPSEC]: Fix IPCOMP6 ICMP type check.
Herbert Xu [Thu, 22 Jul 2004 05:14:36 +0000 (22:14 -0700)]
[IPSEC]: Fix IPCOMP6 ICMP type check.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[ATM]: Update Marko Kiiskila's email address.
David S. Miller [Wed, 21 Jul 2004 10:18:28 +0000 (03:18 -0700)]
[ATM]: Update Marko Kiiskila's email address.

22 years ago[IPV4]: Make raw sockets behave like udp wrt. MSG_TRUNC.
David S. Miller [Wed, 21 Jul 2004 09:47:01 +0000 (02:47 -0700)]
[IPV4]: Make raw sockets behave like udp wrt. MSG_TRUNC.

22 years ago[ATM]: use try_module_get appropriately (from Stephen Hemminger <shemminger@osdl...
Chas Williams [Wed, 21 Jul 2004 09:08:53 +0000 (02:08 -0700)]
[ATM]: use try_module_get appropriately (from Stephen Hemminger <shemminger@osdl.org>)

22 years agoMerge bk://bk.skbuff.net:20608/linux-2.6-dgramconnect/
David S. Miller [Wed, 21 Jul 2004 08:55:16 +0000 (01:55 -0700)]
Merge bk://bk.skbuff.net:20608/linux-2.6-dgramconnect/
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years agoMerge http://linux-mh.bkbits.net/bluetooth-2.6
David S. Miller [Wed, 21 Jul 2004 08:16:02 +0000 (01:16 -0700)]
Merge http://linux-mh.bkbits.net/bluetooth-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[CRYPTO]: Fix stack overrun in crypt().
Herbert Xu [Wed, 21 Jul 2004 07:51:31 +0000 (00:51 -0700)]
[CRYPTO]: Fix stack overrun in crypt().

The stack allocation in crypt() is bogus as whether tmp_src/tmp_dst
is used is determined by factors unrelated to nbytes and
src->length/dst->length.

Since the condition for whether tmp_src/tmp_dst are used is very
complex, let's allocate them always instead of guessing.

This fixes a number of weird crashes including those AES crashes
that people have been seeing with the 2.4 backport + ipt_conntrack.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC32]: Mark William Lee Irwin III as maintainer.
William Lee Irwin III [Wed, 21 Jul 2004 07:27:07 +0000 (00:27 -0700)]
[SPARC32]: Mark William Lee Irwin III as maintainer.

22 years ago[UDP]: Return true length if user specifies MSG_TRUNC.
Samuel Thibault [Wed, 21 Jul 2004 06:51:01 +0000 (23:51 -0700)]
[UDP]: Return true length if user specifies MSG_TRUNC.

22 years ago[SPARC]: Add pci_dma_mapping_error to pci.h
Tom 'spot' Callaway [Wed, 21 Jul 2004 06:44:37 +0000 (23:44 -0700)]
[SPARC]: Add pci_dma_mapping_error to pci.h

Signed-off-by: Tom Callaway <tcallawa@redhat.com>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC]: Fix copy_user.S with gcc 3.3
Tom 'spot' Callaway [Wed, 21 Jul 2004 06:42:08 +0000 (23:42 -0700)]
[SPARC]: Fix copy_user.S with gcc 3.3

Signed-off-by: Tom Callaway <tcallawa@redhat.com>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[IPV6]: Missing sparse annotation in addrconf.
Stephen Hemminger [Wed, 21 Jul 2004 06:41:01 +0000 (23:41 -0700)]
[IPV6]: Missing sparse annotation in addrconf.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Need delayed packet limit in sch_netem.
Stephen Hemminger [Wed, 21 Jul 2004 06:34:49 +0000 (23:34 -0700)]
[PKT_SCHED]: Need delayed packet limit in sch_netem.

The netem scheduler needs to limit its delayed packet queue to prevent
a application burst from chewing up too much memory.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Missing qdisc destroy in sch_netem.
Stephen Hemminger [Wed, 21 Jul 2004 06:33:42 +0000 (23:33 -0700)]
[PKT_SCHED]: Missing qdisc destroy in sch_netem.

The underlying qdisc was not being properly destroyed, shows up as
assertion failure on device removal.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Make sch_netem classful.
Stephen Hemminger [Wed, 21 Jul 2004 06:31:05 +0000 (23:31 -0700)]
[PKT_SCHED]: Make sch_netem classful.

Simple enhancement to netem packet scheduler that makes it classful so
that the underlying pfifo default discipline can be substituted with something
else (tbf, red, ...)

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC64]: Handle SBUS dma allocations larger than 1MB.
David Dillow [Wed, 21 Jul 2004 06:27:12 +0000 (23:27 -0700)]
[SPARC64]: Handle SBUS dma allocations larger than 1MB.

Signed-off-by: David Dillow <dave@thedillows.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC64]: Fix allnoconfig build, based upon a patch from Roland Dreier.
David S. Miller [Wed, 21 Jul 2004 06:12:56 +0000 (23:12 -0700)]
[SPARC64]: Fix allnoconfig build, based upon a patch from Roland Dreier.

- Make SUNOS_EMUL depend upon BINFMT_AOUT32
- Make SOLARIS_EMUL depend upon SPARC32_COMPAT
- Add CONFIG_COMPAT guards, where necessary.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC64]: Update defconfig.
David S. Miller [Tue, 20 Jul 2004 08:57:37 +0000 (01:57 -0700)]
[SPARC64]: Update defconfig.

22 years ago[SPARC64]: Export __copy_in_user to modules.
David S. Miller [Tue, 20 Jul 2004 08:55:45 +0000 (01:55 -0700)]
[SPARC64]: Export __copy_in_user to modules.

22 years ago[IPV6] remove rather pointless comment.
Hideaki Yoshifuji [Tue, 20 Jul 2004 08:25:15 +0000 (17:25 +0900)]
[IPV6] remove rather pointless comment.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
22 years ago[IPV4] Look up route with appropriate protocol when we connect().
Hideaki Yoshifuji [Tue, 20 Jul 2004 08:16:36 +0000 (17:16 +0900)]
[IPV4] Look up route with appropriate protocol when we connect().

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
22 years agoMerge bk://bk.skbuff.net:20608/linux-2.6-snmp-20040708
David S. Miller [Tue, 20 Jul 2004 07:55:45 +0000 (00:55 -0700)]
Merge bk://bk.skbuff.net:20608/linux-2.6-snmp-20040708
into nuts.davemloft.net:/disk1/BK/snmp-2.6

22 years ago[PATCH] NX: clean up legacy binary support
Ingo Molnar [Sun, 18 Jul 2004 02:08:19 +0000 (19:08 -0700)]
[PATCH] NX: clean up legacy binary support

This cleans up legacy x86 binary support by introducing a new
personality bit: READ_IMPLIES_EXEC, and implements Linus' suggestion to
add the PROT_EXEC bit on the two affected syscall entry places,
sys_mprotect() and sys_mmap().  If this bit is set then PROT_READ will
also add the PROT_EXEC bit - as expected by legacy x86 binaries.  The
ELF loader will automatically set this bit when it encounters a legacy
binary.

This approach avoids the problems the previous ->def_flags solution
caused.  In particular this patch fixes the PROT_NONE problem in a
cleaner way (http://lkml.org/lkml/2004/7/12/227), and it should fix the
ia64 PROT_EXEC problem reported by David Mosberger.  Also,
mprotect(PROT_READ) done by legacy binaries will do the right thing as
well.

the details:

- the personality bit is added to the personality mask upon exec(),
  within the ELF loader, but is not cleared (see the exceptions below).
  This means that if an environment that already has the bit exec()s a
  new-style binary it will still get the old behavior.

- one exception are setuid/setgid binaries: these will reset the
  bit - thus local attackers cannot manually set the bit and circumvent
  NX protection. Legacy setuid binaries will still get the bit through
  the ELF loader. This gives us maximum flexibility in shaping
  compatibility environments.

- selinux also clears the bit when switching SIDs via exec().

- x86 is the only arch making use of READ_IMPLIES_EXEC currently. Other
  arches will have the pre-NX-patch protection setup they always had.

I have booted an old distro [RH 7.2] and two new PT_GNU_STACK distros
[SuSE 9.2 and FC2] on an NX-capable CPU - they work just fine and all
the mapping details are right. I've checked the PROT_NONE test-utility
as well and it works as expected. I have checked various setuid
scenarios as well involving legacy and new-style binaries.

an improved setarch utility can be used to set the personality bit
manually:

http://redhat.com/~mingo/nx-patches/setarch-1.4-3.tar.gz

the new '-X' flag does it, e.g.:

./setarch -X linux /bin/cat /proc/self/maps

will trigger the old protection layout even on a new distro.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] pmac_zilog: serial minors taken failure path fix
David Eger [Sun, 18 Jul 2004 02:06:48 +0000 (19:06 -0700)]
[PATCH] pmac_zilog: serial minors taken failure path fix

I've tracked down the core issue giving me the oops wrt pmac_zilog.

When you have two serial drivers, (e.g. 8250 and PMAC_ZILOG) they both say

"I want to reserve X ports starting with major TTY_MAJOR and minor 64".

By the time pmac_zilog gets there, the ports it requests are already
reserved.  Unfortunately, init_pmz() doesn't check for pmz_register()
failure, and so it merrily goes on to register the half-initialized
pmac_zilog driver with the power management subsystem.

This path provides a proper failure path.

Also:

Restore ppc configs now that I know people use AT Keyboards on CHRP and PReP
machines, and the zilog driver is no longer Oops'ing.

Signed-off-by: David Eger <eger@havoc.gtf.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoLinux 2.6.8-rc2 v2.6.8-rc2
Linus Torvalds [Sat, 17 Jul 2004 14:52:45 +0000 (07:52 -0700)]
Linux 2.6.8-rc2

Ready for the kernel summit in Ottawa...

22 years agoClean up ptrace child exit case.
Linus Torvalds [Sat, 17 Jul 2004 14:51:57 +0000 (07:51 -0700)]
Clean up ptrace child exit case.

This also fixes it for when the real parent is ignoring
SIGCHLD - noted by David Mosberger.

22 years ago[PATCH] Fix i386 bootup with HIGHMEM+SLAB_DEBUG+NUMA and no real
Andi Kleen [Sat, 17 Jul 2004 13:49:01 +0000 (06:49 -0700)]
[PATCH] Fix i386 bootup with HIGHMEM+SLAB_DEBUG+NUMA and no real

For some reason I booted a NUMA and SLAB_DEBUG i386 kernel on a non
NUMA 512MB machine.  This caused an oops at bootup in change_page_attr.
The reason was that highmem_start_start page ended up zero and
that triggered the highmem check in change_page_attr when the
slab debug code would unmap a kernel mapping.

Fix is straightforward: if there is no highmem set highmem_start_page
to max_low_pfn+1

22 years ago[PATCH] Fix memory corruption at x86-64 SMP bootup
Andi Kleen [Sat, 17 Jul 2004 13:48:50 +0000 (06:48 -0700)]
[PATCH] Fix memory corruption at x86-64 SMP bootup

This fixes a long standing corruption bug in the x86-64 code. The SMP
trampoline would corrupt page 2, which was sometimes used for other
data.  This corrupted the ioport/iomem list in some cases and causes
oopses while read /proc/iomem.

Fix is to check the correct location and don't zero it afterwards
because it gets reinitialized for the next CPU anyways.

Thanks to Alexander Nyberg for tracking it down.

22 years ago[Bluetooth] Use a signed integer for the RSSI value
Marcel Holtmann [Fri, 16 Jul 2004 16:05:36 +0000 (18:05 +0200)]
[Bluetooth] Use a signed integer for the RSSI value

The RSSI value in the inquiry response with RSSI must be a signed
integer and not an unsigned one.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
22 years ago[Bluetooth] Add missing entry for the HIDP support
Marcel Holtmann [Fri, 16 Jul 2004 15:27:29 +0000 (17:27 +0200)]
[Bluetooth] Add missing entry for the HIDP support

This small patch adds the missing entry about the HIDP support
to the main Kconfig file of the Bluetooth subsystem.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
22 years ago[Bluetooth] Make use of usb_kill_urb()
Marcel Holtmann [Fri, 16 Jul 2004 14:59:11 +0000 (16:59 +0200)]
[Bluetooth] Make use of usb_kill_urb()

Now that usb_kill_urb() is in the main kernel tree it should
be used. This patch makes the needed modifications to the USB
Bluetooth driver.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
22 years ago[Bluetooth] Add support for another ALPS module
Marcel Holtmann [Fri, 16 Jul 2004 14:53:17 +0000 (16:53 +0200)]
[Bluetooth] Add support for another ALPS module

This patch adds the specific vendor and product id's for another
ALPS module which don't uses the USB Bluetooth class id.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
22 years ago[PATCH] fix inode state incoherency
Miklos Szeredi [Fri, 16 Jul 2004 11:44:49 +0000 (04:44 -0700)]
[PATCH] fix inode state incoherency

This patch fixes a hard-to-trigger condition, where the inode is on the
inode_in_use list while it's state is dirty.  In this state dirty pages are
not written back in sync() or from kupdate, only from direct page reclaim.
And this causes a livelock in balance_dirty_pages after a while.

The actual sequence of events required to get into this state is:

thread   function                             inode state         inode list
----------------------------------------------------------------------------
1 __sync_single_inode (background)            I_DIRTY             sb->s_io
1 do_writepages ...                           I_LOCKED
2 __writeback_single_inode (sync) sleeps      I_LOCKED
1 __sync_single_inode (background) finish     0                   inode_in_use
2 __writeback_single_inode (sync) wakeup      0
2 __sync_single_inode (sync)                  0
2 do_writepages ...                           I_LOCKED
3 __mark_inode_dirty                          I_LOCKED | I_DIRTY
2 __sync_single_inode (sync) finish           I_DIRTY             left on
                                                                  inode_in_use

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Altix serial driver updates
Pat Gefre [Fri, 16 Jul 2004 11:44:38 +0000 (04:44 -0700)]
[PATCH] Altix serial driver updates

Patch for our console driver.  We converted the driver to use the serial
core functions.  Also some changes to use sysfs/udev and a new major
number.

Cc: Jesse Barnes <jbarnes@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] pointer-to-number cast in binfmt_elf.c done right
Alexander Viro [Fri, 16 Jul 2004 05:52:14 +0000 (22:52 -0700)]
[PATCH] pointer-to-number cast in binfmt_elf.c done right

22 years ago[PATCH] more annotations in binfmt_aout.c
Alexander Viro [Fri, 16 Jul 2004 05:52:02 +0000 (22:52 -0700)]
[PATCH] more annotations in binfmt_aout.c

22 years ago[PATCH] hfs and hfsplus switched to use of ffs(3) instead of homegrown versions
Alexander Viro [Fri, 16 Jul 2004 05:51:51 +0000 (22:51 -0700)]
[PATCH] hfs and hfsplus switched to use of ffs(3) instead of homegrown versions

22 years ago[PATCH] fbmem.c partially annotated
Alexander Viro [Fri, 16 Jul 2004 05:51:40 +0000 (22:51 -0700)]
[PATCH] fbmem.c partially annotated

partially annotated, fixed dereferencing of userland pointer (trivial,
since we'd just copied the entire structure).

22 years ago[PATCH] 3w-9xxx.c annotated
Alexander Viro [Fri, 16 Jul 2004 05:51:29 +0000 (22:51 -0700)]
[PATCH] 3w-9xxx.c annotated

22 years agoppc64: More NULL/0 confusion in prom.c
Linus Torvalds [Fri, 16 Jul 2004 05:48:54 +0000 (22:48 -0700)]
ppc64: More NULL/0 confusion in prom.c

22 years agoIt's a pointer, dummy. Use NULL, not 0.
Linus Torvalds [Fri, 16 Jul 2004 05:17:10 +0000 (22:17 -0700)]
It's a pointer, dummy. Use NULL, not 0.

22 years ago[PATCH] annotations and NULL noise removal in drivers/char/drm
Alexander Viro [Fri, 16 Jul 2004 05:05:32 +0000 (22:05 -0700)]
[PATCH] annotations and NULL noise removal in drivers/char/drm

Massive, but trivial - drm annotated and got 0->NULL where needed.  That
patch kills ~2200 lines of warnings - out of 5400 that remained at that
point.

22 years ago[PATCH] sparse: iovec cleanups - the rest
Alexander Viro [Fri, 16 Jul 2004 05:05:19 +0000 (22:05 -0700)]
[PATCH] sparse: iovec cleanups - the rest

the rest of iovec cleanups: nbd, dvb-net, sock.c::sock_no_sendpage(),
econet over udp and ip_vs switched to use of kvec and kernel_...msg().

22 years ago[PATCH] sparse: iovec cleanups - sunrpc, nfs and nfsd
Alexander Viro [Fri, 16 Jul 2004 05:05:10 +0000 (22:05 -0700)]
[PATCH] sparse: iovec cleanups - sunrpc, nfs and nfsd

sunrpc, nfs and nfsd switched to use of kvec and kernel_...msg()

22 years ago[PATCH] sparse: iovec cleanups - rxrpc
Alexander Viro [Fri, 16 Jul 2004 05:04:58 +0000 (22:04 -0700)]
[PATCH] sparse: iovec cleanups - rxrpc

rxrpc (low-level part of afs) switched to kernel_...msg(); it already was
using kvec instead of iovec.

22 years ago[PATCH] sparse: iovec cleanups - cifs
Alexander Viro [Fri, 16 Jul 2004 05:04:47 +0000 (22:04 -0700)]
[PATCH] sparse: iovec cleanups - cifs

cifs switched to kvec and kernel_...msg()

22 years ago[PATCH] sparse: iovec cleanups - ncpfs
Alexander Viro [Fri, 16 Jul 2004 05:04:35 +0000 (22:04 -0700)]
[PATCH] sparse: iovec cleanups - ncpfs

ncpfs switched to kvec and kernel_...msg()