]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] broken stuff marked as such in Kconfig
Alexander Viro [Mon, 26 Jul 2004 14:04:13 +0000 (07:04 -0700)]
[PATCH] broken stuff marked as such in Kconfig

a) ppc KGDB builds only on two subarch; say so in Kconfig
b) ide-pmac.c can't be a module; make it dependent on IDE=y.
c) a bunch of isdn drivers is broken on ppc; marked as such
d) oaknet is broken; marked as such (includes on files that do not
exist, etc.)
e) buslogic and cyber2000 are broken on sparc64
f) s3trio framebuffer is broken
g) usual 8250-based serial is broken on sparc64; in principle it might
be worth supporting (there are PCI cards of that sort), for now marked as
broken (no asm/serial.h, to start with).

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] missing (void) in reiserfs on big-endian boxen
Alexander Viro [Mon, 26 Jul 2004 14:04:02 +0000 (07:04 -0700)]
[PATCH] missing (void) in reiserfs on big-endian boxen

Usual foo ? void : non-void  in reiserfs; gets triggered on big-endian
platforms.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] asm-ppc/reg.h namespace pollution fixes
Alexander Viro [Mon, 26 Jul 2004 14:03:51 +0000 (07:03 -0700)]
[PATCH] asm-ppc/reg.h namespace pollution fixes

asm-ppc/reg.h defines pollutes namespace like there's no tomorrow;
among other things there are
LR
SR0...SR15
DEC
etc.

That breaks quite a few drivers that should otherwise work on ppc.  SR...
and LR were never used by ppc code; commented out in reg.h (note that
they are just aliases for SPRN_SR... and SPRN_LR).  RPA commented out and
its instances in ppc code (all four of them) replaced with SPRN_RPA.  Ditto
for DEC.  The rest of the offenders (DAR and PVR) are left alone for now and
#undef'ed in drivers in question.

We probably want to rip all these guys out of reg.h and convert ppc users
to SPRN_... forms - file ends up included in alot of places and namespace
pollution like that is a Bad Thing(tm).

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ffb_context annotation
Alexander Viro [Mon, 26 Jul 2004 14:03:39 +0000 (07:03 -0700)]
[PATCH] ffb_context annotation

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] pointer-to-int conversion fixes
Alexander Viro [Mon, 26 Jul 2004 14:03:29 +0000 (07:03 -0700)]
[PATCH] pointer-to-int conversion fixes

Assorted pointer-to-int fixes:
a) some places want to take pointer modulo alignment or extract
integer that was cast to pointer (which is legitimate), but do that via
wrong cast, triggering sparse warnings.
b) usual %x (int)ptr -> %p ptr fixes

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drivers/macintosh annotations
Alexander Viro [Mon, 26 Jul 2004 14:03:17 +0000 (07:03 -0700)]
[PATCH] drivers/macintosh annotations

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] via-velocity switched use of to if_mii()
Alexander Viro [Mon, 26 Jul 2004 14:03:05 +0000 (07:03 -0700)]
[PATCH] via-velocity switched use of to if_mii()

Either it got missed back when if_mii() was introduced, or it got merged
that way later.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] dpt_i2o annotations
Alexander Viro [Mon, 26 Jul 2004 14:02:54 +0000 (07:02 -0700)]
[PATCH] dpt_i2o annotations

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] zoran switched to seq_file
Alexander Viro [Mon, 26 Jul 2004 14:02:43 +0000 (07:02 -0700)]
[PATCH] zoran switched to seq_file

zoran procfs code switched to seq_file and cleaned up; a bunch of homegrown
procfs glue eliminated.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] cciss compat ioctl fix
Alexander Viro [Mon, 26 Jul 2004 14:02:32 +0000 (07:02 -0700)]
[PATCH] cciss compat ioctl fix

cciss compat ioctls were broken (mixing kernel and userland pointers);
fixed (and cleaned up) by switch to compat_alloc_user_space() and elimination
of set_fs().

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] annotations for arch/ppc and include/asm-ppc
Alexander Viro [Mon, 26 Jul 2004 14:02:20 +0000 (07:02 -0700)]
[PATCH] annotations for arch/ppc and include/asm-ppc

Usual set - explicit -D<arch>=1 for sparse, __sighandler_t / __sigrestore_t
annotated, annotations in arch/ppc/kernel/*, etc. - same as for other platforms

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] #if abuses in drivers/*
Alexander Viro [Mon, 26 Jul 2004 14:02:09 +0000 (07:02 -0700)]
[PATCH] #if abuses in drivers/*

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] CONFIG_MCOUNT fix for sparc64
Alexander Viro [Mon, 26 Jul 2004 14:01:57 +0000 (07:01 -0700)]
[PATCH] CONFIG_MCOUNT fix for sparc64

CONFIG_MCOUNT on sparc64 is currently broken; we have both mcount and _mcount
declared (and aliased to each other), but end up exporting the wrong one.  As
the result, with that option all modules get unresolved symbol.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] NULL noise removal in drivers/*
Alexander Viro [Mon, 26 Jul 2004 14:01:45 +0000 (07:01 -0700)]
[PATCH] NULL noise removal in drivers/*

it could be split (all chunks are obviously independent), but I don't think
that it's worth doing.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] drm/gamma_old_dma.h fix
Alexander Viro [Mon, 26 Jul 2004 14:01:32 +0000 (07:01 -0700)]
[PATCH] drm/gamma_old_dma.h fix

blind dereferencing of userland pointer

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] NULL noise removal on ppc
Alexander Viro [Mon, 26 Jul 2004 14:01:20 +0000 (07:01 -0700)]
[PATCH] NULL noise removal on ppc

0->NULL in arch/ppc and include/asm-ppc.

[That's it for this series - there's still ~200Kb to merge, but I'd rather
take a break for a couple of hours before dealing with the rest]

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc32 emulation annotated
Alexander Viro [Mon, 26 Jul 2004 14:01:08 +0000 (07:01 -0700)]
[PATCH] sparc32 emulation annotated

annotated, a bunch of ioctls switched to compat_alloc_user_space() and
cleaned up.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] solaris emulation annotated
Alexander Viro [Mon, 26 Jul 2004 14:00:57 +0000 (07:00 -0700)]
[PATCH] solaris emulation annotated

trivial annotations and cleanups + proper use of vfs_...stat().

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] #if abuse in drivers/net/*
Alexander Viro [Mon, 26 Jul 2004 14:00:46 +0000 (07:00 -0700)]
[PATCH] #if abuse in drivers/net/*

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] NULL noise removal in drivers/net/*
Alexander Viro [Mon, 26 Jul 2004 14:00:34 +0000 (07:00 -0700)]
[PATCH] NULL noise removal in drivers/net/*

That definitely duplicates a bunch of stuff in pending patches from various
folks, but since it's all trivial 0->NULL replacements and patches are still
not submitted and/or merged...

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mtd fixes
Alexander Viro [Mon, 26 Jul 2004 14:00:21 +0000 (07:00 -0700)]
[PATCH] mtd fixes

Assorted mtd fixes.
a) NULL noise removal
b) %p pointer instead of %x (int)pointer in printks
c) missed iovec->kvec replacements (basically, fixing merge problems)
d) fixed type for (unused) last argument in doc_{read,write}_ecc()
e) sanitized some comparisons.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] impi annotation
Alexander Viro [Mon, 26 Jul 2004 14:00:10 +0000 (07:00 -0700)]
[PATCH] impi annotation

drivers/char/ipmi/* annotated, structure shared between kernel and
userland (ioctls) split in two.
ACPI callback in the same code used to have wrong type - it should've been
void (...), not u32 (...).  Fixed.

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

bpck6 was b0rken on ppc in rather amusing way - it used
typedef struct ... PPC;
which doesn't mix with having PPC (pre)defined to 1.  Fixed by renaming private
typedef in question.

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

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

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] security/selinux/hooks.c compile fix
Alexander Viro [Mon, 26 Jul 2004 13:59:25 +0000 (06:59 -0700)]
[PATCH] security/selinux/hooks.c compile fix

added missing #include

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] broken stuff in sound/* marked as such in Kconfig
Alexander Viro [Mon, 26 Jul 2004 13:59:14 +0000 (06:59 -0700)]
[PATCH] broken stuff in sound/* marked as such in Kconfig

a) OSS is broken on sparc64 (as in "won't compile")
b) sb16_csp is broken on ppc
marked as such in Kconfig

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] misc sound/* fixes
Alexander Viro [Mon, 26 Jul 2004 13:59:03 +0000 (06:59 -0700)]
[PATCH] misc sound/* fixes

a) ALSA variant of wavefront didn't compile on gcc 2.x with debugging
turned on - authors heard something about variadic macros on gcc 2.x,
but screwed it up.  Fixed.
b) au88x0 relied on char being signed in non-trivial ways.  On ppc it's
not true.  Fixed by explicit use of s8 (which is what that code really
wants).

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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.