]> git.hungrycats.org Git - linux/log
linux
22 years ago[NET]: Fully plug netigh_create/inetdev_destroy race.
Herbert Xu [Tue, 7 Sep 2004 06:35:09 +0000 (23:35 -0700)]
[NET]: Fully plug netigh_create/inetdev_destroy race.

So here is a patch to make sure that there is a barrier between the
reading of dev->*_ptr and *dev->neigh_parms.

With these barriers in place, it's clear that *dev->neigh_parms can no
longer be NULL since once the parms are allocated, that pointer is never
reset to NULL again.  Therefore I've also removed the parms check in
these paths.

They were bogus to begin with since if they ever triggered then we'll
have dead neigh entries stuck in the hash table.

Unfortunately I couldn't arrange for this to happen with DECnet due
to the dn_db->parms.up() call that's sandwiched between the assignment
of dev->dn_ptr and dn_db->neigh_parms.  So I've kept the parms check
there but it will now fail instead of continuing.  I've also added an
smp_wmb() there so that at least we won't be reading garbage from
dn_db->neigh_parms.

DECnet is also buggy since there is no locking at all in the destruction
path.  It either needs locking or RCU like IPv4.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[PACKET]: Fix deref before NULL check in packet_release()
Dave Jones [Tue, 7 Sep 2004 06:24:36 +0000 (23:24 -0700)]
[PACKET]: Fix deref before NULL check in packet_release()

Using the automated source checker at coverity.com, they picked up
on some code in packet_release() where a NULL check was done
after dereferencing.  Patch below.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[AX25]: Fix digipeat leak.
Dave Jones [Tue, 7 Sep 2004 06:21:21 +0000 (23:21 -0700)]
[AX25]: Fix digipeat leak.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SUNGEM]: Add NAPI support.
Eric Lemoine [Tue, 7 Sep 2004 06:18:30 +0000 (23:18 -0700)]
[SUNGEM]: Add NAPI support.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NET]: Fix CONFIG_COMPAT build with networking disabled.
Andi Kleen [Tue, 7 Sep 2004 05:55:45 +0000 (22:55 -0700)]
[NET]: Fix CONFIG_COMPAT build with networking disabled.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[TCP]: Make sure SKB tso factor is setup early enough.
David S. Miller [Tue, 7 Sep 2004 04:03:16 +0000 (21:03 -0700)]
[TCP]: Make sure SKB tso factor is setup early enough.

It needs to be set so that congestion window
calculations have a valid value to work with.
This means that doing it at write queue running
time is too late.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[TCP]: Calculate SKB tso factor more accurately.
David S. Miller [Tue, 7 Sep 2004 03:01:22 +0000 (20:01 -0700)]
[TCP]: Calculate SKB tso factor more accurately.

Eliminate tp->mss_tso_factor.  Instead, we calculate the
SKB tso factor as we walk the write queue for initial
transmit or fragment SKBs.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[TCP]: Make TSO play nice with congestion window.
David S. Miller [Tue, 7 Sep 2004 02:20:50 +0000 (19:20 -0700)]
[TCP]: Make TSO play nice with congestion window.

Previously TSO would not abide by the congestion
window properly.  Essentially, each TSO packet would
be trated just like 1 normal packet, even though a TSO
packet generates more than 1 normal packet.  This
violates congestion window rules entirely.

So now we record the TSO factor, a count of how many
real packets a TSO packet will generate, and include
this in all the packet counting routines.

This initial version has a bug in that skb_entail() is
not the correct time to figure out the TSO factor for
the SKB, and tp->mss_tso_factor is not necessarily the
right value for a given SKB.  Will fix this up next.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NET]: Add reference counting to neigh_parms.
Herbert Xu [Fri, 3 Sep 2004 02:01:02 +0000 (19:01 -0700)]
[NET]: Add reference counting to neigh_parms.

I've added a refcnt on neigh_parms as well as a dead flag.  The latter
is checked under the tbl_lock before adding a neigh entry to the hash
table.

The non-trivial bit of the patch is the first chunk of net/core/neighbour.c.
I removed that line because not doing so would mean that I have to drop
the reference to the parms right there.  That would've lead to race
conditions since many places dereference neigh->parms without holding
locks.  It's also unnecessary to reset n->parms since we're no longer
in a hurry to see it go due to the new ref counting.

You'll also notice that I've put all dereferences of dev->*_ptr under
the rcu_read_lock().  Without this we may get a neigh_parms that's
already been released.

Incidentally a lot of these places were racy even before the RCU change.
For example, in the IPv6 case neigh->parms may be set to a value that's
just been released.

Finally in order to make sure that all stale entries are purged as
quickly as possible I've added neigh_ifdown/arp_ifdown calls after
every neigh_parms_release call.  In many cases we now have multiple
calls to neigh_ifdown in the shutdown path.  I didn't remove the
earlier calls because there may be hidden dependencies for them to
be there.  Once the respective maintainers have looked at them we
can probably remove most of them.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[CREDITS]: Update netfilter entries.
Harald Welte [Thu, 2 Sep 2004 17:34:46 +0000 (10:34 -0700)]
[CREDITS]: Update netfilter entries.

Add missing entries for netfilter core team
members, and update Rusty's personal URL.

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[PKT_SCHED]: Fixed missed return in tcf_hash_init().
David S. Miller [Thu, 2 Sep 2004 17:29:47 +0000 (10:29 -0700)]
[PKT_SCHED]: Fixed missed return in tcf_hash_init().

Noticed by Andrew Morton.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Fix deadlock condition in conntrack/nat-helpers
Patrick McHardy [Thu, 2 Sep 2004 17:08:40 +0000 (10:08 -0700)]
[NETFILTER]: Fix deadlock condition in conntrack/nat-helpers

There is a possible deadlock condition with conntrack/nat-helpers:

CPU1:
conntrack-helper:help: lock(private_lock)
ip_conntrack_expect_related: write_lock(ip_conntrack_lock)

CPU2:
nat-core:do_bindings: read_lock(ip_conntrack_lock)
nat-helper:help: lock(private_lock)

The lock in the nat-helper is unneccessary because the expectation
is never changed and is protected by ip_conntrack_lock.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Fix confusing naming in NAT-helpers
Patrick McHardy [Thu, 2 Sep 2004 16:58:05 +0000 (09:58 -0700)]
[NETFILTER]: Fix confusing naming in NAT-helpers

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[PATCH] NFS: older gcc's don't like unsized arrays
Andrew Morton [Thu, 2 Sep 2004 12:05:39 +0000 (05:05 -0700)]
[PATCH] NFS: older gcc's don't like unsized arrays

The NFS symlink code cleanup causes older gcc's to barf.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] NFSv3: Fix up an unaligned access error in nfs3_proc_unlink_setup()
Trond Myklebust [Thu, 2 Sep 2004 11:53:29 +0000 (04:53 -0700)]
[PATCH] NFSv3: Fix up an unaligned access error in nfs3_proc_unlink_setup()

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] NFS: fix problem of ESTALE errors on NFSv2 symlinks
Trond Myklebust [Thu, 2 Sep 2004 10:53:00 +0000 (03:53 -0700)]
[PATCH] NFS: fix problem of ESTALE errors on NFSv2 symlinks

NFSv2: Fix another bad filehandle cast.
NFSv2: The symlink operation does not return a valid filehandle.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] NFS: clean up the new symlink code
Trond Myklebust [Thu, 2 Sep 2004 10:52:49 +0000 (03:52 -0700)]
[PATCH] NFS: clean up the new symlink code

  - Now that the VFS no longer uses it, we don't need to cache the symlink
    string length.
  - Make ->readlink() take page offset+length arguments
  - Fix up page under/overflow checking on the readlink XDR code so that
    it matches read/write.

Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoThe coverity source checker is wrong. Revert some of the "leak fixes".
Linus Torvalds [Thu, 2 Sep 2004 10:00:19 +0000 (03:00 -0700)]
The coverity source checker is wrong. Revert some of the "leak fixes".

Thanks to Davem for noticing. We probably should _not_ trust the
coverity reports that much.

Cset exclude: davej@redhat.com[torvalds]|ChangeSet|20040902213928|62770
Cset exclude: davej@redhat.com[torvalds]|ChangeSet|20040902213829|63705

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/net-2.6
David S. Miller [Thu, 2 Sep 2004 16:08:24 +0000 (09:08 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

22 years ago[IPV4/IPV6]: Use csum_sub() instead of csum_block_sub() w/zero 3rd arg.
Herbert Xu [Thu, 2 Sep 2004 07:50:38 +0000 (00:50 -0700)]
[IPV4/IPV6]: Use csum_sub() instead of csum_block_sub() w/zero 3rd arg.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[PATCH] fixed pidhashing patch
Kirill Korotaev [Thu, 2 Sep 2004 07:42:48 +0000 (00:42 -0700)]
[PATCH] fixed pidhashing patch

This patch fixes strange and obscure pid implementation in current kernels:
- it removes calling of put_task_struct() from detach_pid()
  under tasklist_lock. This allows to use blocking calls
  in security_task_free() hooks (in __put_task_struct()).
- it saves some space = 5*5 ints = 100 bytes in task_struct
- it's smaller and tidy, more straigthforward and doesn't use
  any knowledge about pids using and assignment.
- it removes pid_links and pid_struct doesn't hold reference counters
  on task_struct. instead, new pid_structs and linked altogether and
  only one of them is inserted in hash_list.

Signed-off-by: Kirill Korotaev (kksx@mail.ru)
Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] i386 reduce spurious interrupt noise
Chris Wedgwood [Thu, 2 Sep 2004 07:39:41 +0000 (00:39 -0700)]
[PATCH] i386 reduce spurious interrupt noise

i386 hardware can (and does) see spurious interrupts from time to
tome.  Ideally I would like the printk removed completely but this is
probably good enough for now.

Signed-off-by: Chris Wedgwood <cw@f00f.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix possible leak in af_ax25
Dave Jones [Thu, 2 Sep 2004 07:39:28 +0000 (00:39 -0700)]
[PATCH] Fix possible leak in af_ax25

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Check find_vma return code in make_pages_present()
Dave Jones [Thu, 2 Sep 2004 07:39:16 +0000 (00:39 -0700)]
[PATCH] Check find_vma return code in make_pages_present()

It can return NULL, so check for it.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] More PNP leaks.
Dave Jones [Thu, 2 Sep 2004 07:39:04 +0000 (00:39 -0700)]
[PATCH] More PNP leaks.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix leak in ISAPNP core
Dave Jones [Thu, 2 Sep 2004 07:38:52 +0000 (00:38 -0700)]
[PATCH] Fix leak in ISAPNP core

This looks odd, but there doesn't seem to be an
isapnp_free() or similar..

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix leak in atmel wireless driver.
Dave Jones [Thu, 2 Sep 2004 07:38:41 +0000 (00:38 -0700)]
[PATCH] Fix leak in atmel wireless driver.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix leak in aty fb code.
Dave Jones [Thu, 2 Sep 2004 07:38:29 +0000 (00:38 -0700)]
[PATCH] Fix leak in aty fb code.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix potential leaks in pc300_tty driver
Dave Jones [Thu, 2 Sep 2004 07:38:17 +0000 (00:38 -0700)]
[PATCH] Fix potential leaks in pc300_tty driver

It appears that 'new' can be allocated, and next time around
the loop, if something goes wrong, we lose the reference..

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix leaks in ISOFS.
Dave Jones [Thu, 2 Sep 2004 07:38:05 +0000 (00:38 -0700)]
[PATCH] Fix leaks in ISOFS.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix another PNP leak.
Dave Jones [Thu, 2 Sep 2004 07:37:53 +0000 (00:37 -0700)]
[PATCH] Fix another PNP leak.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix NULL dereference in OSS v_midi driver
Dave Jones [Thu, 2 Sep 2004 07:37:41 +0000 (00:37 -0700)]
[PATCH] Fix NULL dereference in OSS v_midi driver

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Remove pointless check in zlib
Dave Jones [Thu, 2 Sep 2004 07:37:29 +0000 (00:37 -0700)]
[PATCH] Remove pointless check in zlib

We dereference 'z' a few lines above this check.
If it was possible to hit this condition, it wouldve
triggered long ago, in the form of a crash.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Clean up failure path in DAC960
Dave Jones [Thu, 2 Sep 2004 07:37:17 +0000 (00:37 -0700)]
[PATCH] Clean up failure path in DAC960

1. If the ScatterGatherPool allocation fails, its pointless
   trying to allocate a RequestSensePool.
2. Free up the ScatterGatherPool if the RequestSensePool allocation fails.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Remove pointless code from ALSA emu10k1 midi driver.
Dave Jones [Thu, 2 Sep 2004 07:37:04 +0000 (00:37 -0700)]
[PATCH] Remove pointless code from ALSA emu10k1 midi driver.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix leak in PNP interface code.
Dave Jones [Thu, 2 Sep 2004 07:36:53 +0000 (00:36 -0700)]
[PATCH] Fix leak in PNP interface code.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix NULL derefence in OSS MAUI driver.
Dave Jones [Thu, 2 Sep 2004 07:36:41 +0000 (00:36 -0700)]
[PATCH] Fix NULL derefence in OSS MAUI driver.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[IPV4/IPV6]: Fix suboptimal fragment sizing for last fragment
Patrick McHardy [Thu, 2 Sep 2004 07:26:24 +0000 (00:26 -0700)]
[IPV4/IPV6]: Fix suboptimal fragment sizing for last fragment

Yoshifuji's recent fragment patch prevents unnecessary fragmentation
when the data can be kept in a single packet, but only for the first
packet. When fragmenting, all fragments are still truncated to
multiples of 8 and we might end up creating an unnecessary fragment.

This dump shows the problem (MTU 1499):

172.16.1.123.32771 > 172.16.195.3.4135: udp 2937 (frag 7066:1472@0+)
172.16.1.123 > 172.16.195.3: udp (frag 7066:1472@1472+)
172.16.1.123 > 172.16.195.3: udp (frag 7066:1@2944)

This patch always builds mtu sized fragments and truncates the previous
fragment to a multiple of 8 bytes when allocating a new one. With the
patch the dump looks like this:

172.16.1.123.32772 > 172.16.195.3.4135: udp 2937 (frag 49641:1472@0+)
172.16.1.123 > 172.16.195.3: udp (frag 49641:1473@1472)

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NET]: Allow get/set of dev->weight via netlink.
Eric Lemoine [Thu, 2 Sep 2004 06:13:01 +0000 (23:13 -0700)]
[NET]: Allow get/set of dev->weight via netlink.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV4]: Use nf_reset() in parp_redo().
Harald Welte [Thu, 2 Sep 2004 06:05:19 +0000 (23:05 -0700)]
[IPV4]: Use nf_reset() in parp_redo().

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[PATCH] Eicon ISDN: fix leak in eicon debug code.
Dave Jones [Thu, 2 Sep 2004 04:38:10 +0000 (21:38 -0700)]
[PATCH] Eicon ISDN: fix leak in eicon debug code.

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Armin Schindler <armin@melware.de>
22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Wed, 1 Sep 2004 17:10:56 +0000 (10:10 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://cifs.bkbits.net/linux-2.5cifs
Linus Torvalds [Wed, 1 Sep 2004 16:06:04 +0000 (09:06 -0700)]
Merge bk://cifs.bkbits.net/linux-2.5cifs
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[CIFS] Fix CIFS symlink regression when long symlink paths
Steve French [Wed, 1 Sep 2004 18:35:11 +0000 (13:35 -0500)]
[CIFS] Fix CIFS symlink regression when long symlink paths

Signed-of-by: Steve French (sfrench@us.ibm.com)
22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Wed, 1 Sep 2004 18:19:10 +0000 (11:19 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Wed, 1 Sep 2004 15:50:25 +0000 (08:50 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[PKT_SCHED]: Kill bogus spaces in Kconfig strings.
David S. Miller [Wed, 1 Sep 2004 15:44:13 +0000 (08:44 -0700)]
[PKT_SCHED]: Kill bogus spaces in Kconfig strings.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[PKT_SCHED]: Add gact generic actions.
Jamal Hadi Salim [Wed, 1 Sep 2004 15:35:47 +0000 (08:35 -0700)]
[PKT_SCHED]: Add gact generic actions.

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV4/IPV6]: Fixup checksums properly when fragmenting.
Herbert Xu [Wed, 1 Sep 2004 15:07:46 +0000 (08:07 -0700)]
[IPV4/IPV6]: Fixup checksums properly when fragmenting.

If we end up with a fraggap, when we copy the data
over to the next frag being built we must compute
a checksum for the bit we copy over for the new
fragment and subtract that checksum from the place
we are copying it from.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NET]: Free neigh_parms using RCU to fix neigh_create/inetdev_destroy race.
David S. Miller [Wed, 1 Sep 2004 15:03:37 +0000 (08:03 -0700)]
[NET]: Free neigh_parms using RCU to fix neigh_create/inetdev_destroy race.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[CIFS] fix recent cifs symlink change so as not call kfree on null path
Steve French [Wed, 1 Sep 2004 12:59:07 +0000 (07:59 -0500)]
[CIFS] fix recent cifs symlink change so as not call kfree on null path

Signed-off-by: Steve French (sfrench@us.ibm.com)
22 years ago[NETFILTER]: Sort Kconfig entries into reasonable order.
Harald Welte [Wed, 1 Sep 2004 11:15:25 +0000 (04:15 -0700)]
[NETFILTER]: Sort Kconfig entries into reasonable order.

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Add some missing help entries.
Harald Welte [Wed, 1 Sep 2004 11:14:42 +0000 (04:14 -0700)]
[NETFILTER]: Add some missing help entries.

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPV4]: Need to clear nf_debug parp_redo().
Kirill Korotaev [Wed, 1 Sep 2004 11:13:30 +0000 (04:13 -0700)]
[IPV4]: Need to clear nf_debug parp_redo().

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SPARC64]: Update defconfig.
David S. Miller [Wed, 1 Sep 2004 10:58:44 +0000 (03:58 -0700)]
[SPARC64]: Update defconfig.

22 years ago[SPARC64]: Use list_for_each in pci_sabre.c
Maximilian Attems [Wed, 1 Sep 2004 10:54:36 +0000 (03:54 -0700)]
[SPARC64]: Use list_for_each in pci_sabre.c

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SPARC64]: Initial KPROBES implementation.
David S. Miller [Wed, 1 Sep 2004 10:53:26 +0000 (03:53 -0700)]
[SPARC64]: Initial KPROBES implementation.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[KPROBES]: Pass integer addresses, not pointers, to flush_icache_range().
David S. Miller [Wed, 1 Sep 2004 10:30:15 +0000 (03:30 -0700)]
[KPROBES]: Pass integer addresses, not pointers, to flush_icache_range().

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years agoUse "ifdef" rather than "if" to test for __KERNEL__
Linus Torvalds [Wed, 1 Sep 2004 09:24:37 +0000 (02:24 -0700)]
Use "ifdef" rather than "if" to test for __KERNEL__

Both work, but the latter can cause warnings in user space
from compilers that don't like using undefined identifiers
in preprocessor expressions (quite reasonable).

Pointed out by Randy Dunlap.

22 years ago[SPARC64]: Add sparc64die_chain as on x86{,_64}
David S. Miller [Wed, 1 Sep 2004 08:38:09 +0000 (01:38 -0700)]
[SPARC64]: Add sparc64die_chain as on x86{,_64}

22 years ago[SPARC64]: Kill unused 'flags' in pci_sabre.c
David S. Miller [Wed, 1 Sep 2004 08:23:48 +0000 (01:23 -0700)]
[SPARC64]: Kill unused 'flags' in pci_sabre.c

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[BRIDGE]: Add ipv6 packet filtering.
Bart De Schuymer [Wed, 1 Sep 2004 08:21:09 +0000 (01:21 -0700)]
[BRIDGE]: Add ipv6 packet filtering.

Signed-off-by: Bart De Schuymer <bdschuym@pandora.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SPARC64]: Zap pci_controller_lock.
David S. Miller [Wed, 1 Sep 2004 08:20:12 +0000 (01:20 -0700)]
[SPARC64]: Zap pci_controller_lock.

It is only taken during boot time bus probe, thus
protects nothing at run time and causes bogus bug
messages when PREEMPT is enabled.  When we support
PCI controller hot plug we will add a suitable locking
mechanism.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SPARC64]: Use list_for_each in pci_common.c
Maximilian Attems [Wed, 1 Sep 2004 08:16:18 +0000 (01:16 -0700)]
[SPARC64]: Use list_for_each in pci_common.c

Replace for/while loops with list_for_each*.

Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[SPARC64]: Fix set_utsname returning with uts semaphore held.
David S. Miller [Wed, 1 Sep 2004 07:40:21 +0000 (00:40 -0700)]
[SPARC64]: Fix set_utsname returning with uts semaphore held.

Based upon a patch from Alexander Stohr.

This thing was also reimplementing strnchr() as well.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] ppc32: fix the 'checkbin' target
Tom Rini [Wed, 1 Sep 2004 05:26:04 +0000 (22:26 -0700)]
[PATCH] ppc32: fix the 'checkbin' target

The checkbin target on PPC32 isn't quite right.

First, one of the tests (to ensure that some instructions are known to
gas) is never actually invoked because 'checkbin' doesn't know about
stuff set in .config, so we always have the 'else' case run.  This
changes to always running the test and telling the user to upgrade to at
least binutils 2.12.1.

The next problem is that we were doing $(AS) -o /dev/null ...  in both
that test, as well as another.  The problem here is that the checkbin
target is run on the install targets, meaning that /dev/null will get
unlinked when the test passes.  To get around this we use .tmp_gas_check
as the output file instead.

Acked by Sam.

Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] nfs ->follow_link() switched to new scheme
Alexander Viro [Wed, 1 Sep 2004 05:18:31 +0000 (22:18 -0700)]
[PATCH] nfs ->follow_link() switched to new scheme

NFS takes some thought to switch to the new symlink scheme, because we
can't rely on the pagecache lookup to find the symlink page when freeing
it - the cache might have been invalidated in the meantime.

So we hide the page information in the symlink data area itself,
by stealing the last pointer in the page used for the cache. That
way nfs_put_link() can just look up the page directly.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] misc cleanup in symlink-handling part of namei.c
Alexander Viro [Tue, 31 Aug 2004 14:46:37 +0000 (07:46 -0700)]
[PATCH] misc cleanup in symlink-handling part of namei.c

page_follow_link_light() should just call nd_set_link() - error handling will
come for free.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] reduce stack use in altroot handling
Alexander Viro [Tue, 31 Aug 2004 14:46:25 +0000 (07:46 -0700)]
[PATCH] reduce stack use in altroot handling

Massaged altroot handling to avoid on-stack struct nameidata instance (and
got it faster, actually).  We are in the middle of do_follow_link() recursion
here, so the stack footprint is critical.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] cifs ->follow_link() switched to new scheme, cleaned up
Alexander Viro [Tue, 31 Aug 2004 14:46:13 +0000 (07:46 -0700)]
[PATCH] cifs ->follow_link() switched to new scheme, cleaned up

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ncpfs ->follow_link() switched to new scheme
Alexander Viro [Tue, 31 Aug 2004 14:46:01 +0000 (07:46 -0700)]
[PATCH] ncpfs ->follow_link() switched to new scheme

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sysfs ->follow_link() switched to new scheme
Alexander Viro [Tue, 31 Aug 2004 14:45:50 +0000 (07:45 -0700)]
[PATCH] sysfs ->follow_link() switched to new scheme

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] afs ->follow_link() fixes
Alexander Viro [Tue, 31 Aug 2004 14:45:38 +0000 (07:45 -0700)]
[PATCH] afs ->follow_link() fixes

* fixed leaks on failure exits
* got rid of useless struct nameidata instance

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoAllow the compiler to notice "constant" header file.
Linus Torvalds [Tue, 31 Aug 2004 14:07:07 +0000 (07:07 -0700)]
Allow the compiler to notice "constant" header file.

Both gcc and sparse will speed up tokenization by noticing
when a header file is protected by the standard preprocessor
#ifndef .. #endif exclusion.

However, that requires that the headers actually _use_ that
standard exclusion. Some did their own little broken dance.

22 years agoAnnotate sys_wait4() user pointers
Linus Torvalds [Tue, 31 Aug 2004 11:51:37 +0000 (04:51 -0700)]
Annotate sys_wait4() user pointers

22 years ago[SPARC]: Add sys_waitid support.
David S. Miller [Tue, 31 Aug 2004 11:06:08 +0000 (04:06 -0700)]
[SPARC]: Add sys_waitid support.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[PATCH] megaraid annotation
Alexander Viro [Tue, 31 Aug 2004 09:43:34 +0000 (02:43 -0700)]
[PATCH] megaraid annotation

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] eicon annotation
Alexander Viro [Tue, 31 Aug 2004 09:43:22 +0000 (02:43 -0700)]
[PATCH] eicon annotation

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] more NULL noise removal
Alexander Viro [Tue, 31 Aug 2004 09:43:12 +0000 (02:43 -0700)]
[PATCH] more NULL noise removal

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] __setup fixes
Alexander Viro [Tue, 31 Aug 2004 09:43:00 +0000 (02:43 -0700)]
[PATCH] __setup fixes

fd_mcs and NCR53c406a forget to parse string -> int array in their
setup functions.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc64 vga.h fix
Alexander Viro [Tue, 31 Aug 2004 09:42:48 +0000 (02:42 -0700)]
[PATCH] sparc64 vga.h fix

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mixart cleanups
Alexander Viro [Tue, 31 Aug 2004 09:42:36 +0000 (02:42 -0700)]
[PATCH] mixart cleanups

* check result of pci_set_dma_mask() instead of looking at pci_dma_supported()
* size_t => %zd

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] netfilter warning (alpha)
Alexander Viro [Tue, 31 Aug 2004 09:42:24 +0000 (02:42 -0700)]
[PATCH] netfilter warning (alpha)

On alpha u64 is unsigned long; %llu is unsigned long long...

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] alpha csum_partial_copy.c annotations
Alexander Viro [Tue, 31 Aug 2004 09:42:13 +0000 (02:42 -0700)]
[PATCH] alpha csum_partial_copy.c annotations

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] acpiphp_ibm.c 64bit portability
Alexander Viro [Tue, 31 Aug 2004 09:42:01 +0000 (02:42 -0700)]
[PATCH] acpiphp_ibm.c 64bit portability

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] acpi/processor.c 64bit portability
Alexander Viro [Tue, 31 Aug 2004 09:41:49 +0000 (02:41 -0700)]
[PATCH] acpi/processor.c 64bit portability

wrong type of return value for ->write()

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] missing include in pcm_native.c
Alexander Viro [Tue, 31 Aug 2004 09:41:37 +0000 (02:41 -0700)]
[PATCH] missing include in pcm_native.c

compile fix for alpha - io.h is needed there for io_remap_...()

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] usx2y cleanups and fixes
Alexander Viro [Tue, 31 Aug 2004 09:41:25 +0000 (02:41 -0700)]
[PATCH] usx2y cleanups and fixes

Sigh...
a) mixing of userland and kernel pointers is bad
b) so's not checking result of kmalloc()
c) so's not checking result of copy_from_user()
d) use of do { .... break; ... break; ... } while(0); is *highly*
unidiomatic.  Do not confuse kernel with IOCCC, please. And if you have
religious aversion to multiple return statements in a function, at least
learn the reasons why it is frowned upon in many situations.  Hint: they
all apply to use of break in that manner.
e) 0 instead of NULL

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] alpha warning fixes
Alexander Viro [Tue, 31 Aug 2004 09:41:13 +0000 (02:41 -0700)]
[PATCH] alpha warning fixes

pci_dma_sync_single_for_device() had wrong prototype [who TF had come up
with that name, anyway?]
->cpu in thread_info was long; it should be unsigned int.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] missing include compiler.h in arm memory.h
Alexander Viro [Tue, 31 Aug 2004 09:41:01 +0000 (02:41 -0700)]
[PATCH] missing include compiler.h in arm memory.h

use of __deprecated requires compiler.h

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mmc annotation
Alexander Viro [Tue, 31 Aug 2004 09:40:49 +0000 (02:40 -0700)]
[PATCH] mmc annotation

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] missing includes from irq changes
Alexander Viro [Tue, 31 Aug 2004 09:40:37 +0000 (02:40 -0700)]
[PATCH] missing includes from irq changes

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[SPARC64]: SA_SAMPLE_RANDOMNESS fix.
David S. Miller [Tue, 31 Aug 2004 07:49:34 +0000 (00:49 -0700)]
[SPARC64]: SA_SAMPLE_RANDOMNESS fix.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoRevert "mark pcxx as broken"
Linus Torvalds [Tue, 31 Aug 2004 06:35:33 +0000 (23:35 -0700)]
Revert "mark pcxx as broken"

Not only did it mark the wrong driver, Christoph reports that
somebody might have even made the driver compile these days..

Cset exclude: hch@lst.de[torvalds]|ChangeSet|20040831174055|41082

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Tue, 31 Aug 2004 04:28:50 +0000 (21:28 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] isdn debug build fix
Andrew Morton [Tue, 31 Aug 2004 03:43:29 +0000 (20:43 -0700)]
[PATCH] isdn debug build fix

On x86_64:

drivers/isdn/hardware/eicon/debug.c: In function `DI_format':
drivers/isdn/hardware/eicon/debug.c:599: incompatible types in assignment

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: zfcp host adapater
Martin Schwidefsky [Tue, 31 Aug 2004 03:43:11 +0000 (20:43 -0700)]
[PATCH] s390: zfcp host adapater

zfcp host adapater changes:
 - Add ability to enqueue other WKA ports besides the nameserver port.
 - Document and cleanup sg_list functions.
 - Add get_port_by_did/get_adapater_by_busid functions.
 - Improve documentation of some functions and structures.
 - Fix error handling for nameserver requests.
 - Correct size check in zfcp_sg_list_copy_to_user.
 - Correct parameter description for loglevel parameter.
 - Remove unsused code, types and definitions.
 - Add support for exchange_port_data command.
 - Add infrastructure to set timers for ELS and SCSI commands.
 - Avoid adapter shutdown after receiving FSF_SQ_ULP_PROGRAMMING_ERROR.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: kernel stack options.
Martin Schwidefsky [Tue, 31 Aug 2004 03:42:58 +0000 (20:42 -0700)]
[PATCH] s390: kernel stack options.

This adds support for the new compiler options -mkernel-backchain,
-mstack-size, -mstack-guard, -mwarn-dynamicstack and -mwarn-framesize.

The option -mkernel-backchain enables the use of modified layout for the
stack frames of kernel functions.  This breaks the ABI, modules compiled
with the option won't work on a kernel compiled with the option and vice
versa.  The positive effect of the option is a drastic reduction of kernel
stack use.  The trick is that the new frame layout allows to overlap the 96
(31 bit)/160 (64 bit) byte bias areas of the functions on the call chain.
This lowers the minimal stack usage of a function from 96 bytes to 16 bytes
(31 bit) and 160 bytes to 24 bytes (64 bit).  The kernel stack use is
decreased to a point where it is possible to use 4K (31 bit) / 8K (64 bit)
stacks.  The split into process stack and interrupt stack is already in
place.

The options -mstack-size and -mstack-guard are used to detect kernel stack
overflows.  The compiler adds code to the prolog of every function that
causes an illegal operation if the kernel stack is about to overflow.

The options -mwarn-dynamicstack and -mwarn-framesize cause the compiler to
emit warnings if a function uses dynamic stack allocation or if the
function frame size is bigger then a specified limit.

To play safe all the new options are configurable.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: core changes
Martin Schwidefsky [Tue, 31 Aug 2004 03:42:46 +0000 (20:42 -0700)]
[PATCH] s390: core changes

s390 core changes:
 - Fix a race condition between kernel thread creation and preemption.
 - Fix idal_is_needed for the border case 0x7ffff000.
 - Get rid of compiler warnings in compat_signal.c and profile.c.
 - Regenerate default configuration.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] stv0299 device naming fix
Jacek Poplawski [Tue, 31 Aug 2004 03:42:33 +0000 (20:42 -0700)]
[PATCH] stv0299 device naming fix

Name of device has been changed in 2.6.9-rc1 to "SkyStar2", but module stv0299
still compares name with "Technisat SkyStar2 driver", strings are different,
and result is that stv0299 detects invalid tuner type.

Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>