]> git.hungrycats.org Git - linux/log
linux
22 years agoMerge ssh://kernel.bkbits.net/sparc32-2.6
Keith M. Wesolowski [Sun, 11 Jul 2004 17:20:23 +0000 (10:20 -0700)]
Merge ssh://kernel.bkbits.net/sparc32-2.6
into foobazco.org:/sources/2.5-sparc-todave

22 years agoMerge kernel.bkbits.net:/home/repos/linux-2.5
Keith M. Wesolowski [Mon, 12 Jul 2004 00:02:22 +0000 (17:02 -0700)]
Merge kernel.bkbits.net:/home/repos/linux-2.5
into kernel.bkbits.net:/home/wesolows/sparc32-2.6

22 years ago[SPARC32]: Don't allow the kernel to read PAGE_NONE pages.
Keith M. Wesolowski [Sun, 11 Jul 2004 16:56:52 +0000 (09:56 -0700)]
[SPARC32]: Don't allow the kernel to read PAGE_NONE pages.

22 years agoMerge foobazco.org:/sources/2.5-bk
Keith M. Wesolowski [Sun, 11 Jul 2004 16:09:44 +0000 (09:09 -0700)]
Merge foobazco.org:/sources/2.5-bk
into foobazco.org:/sources/2.5-sparc-todave

22 years agox86: fix stackframe ownership confusion in sys_sigaltstack()
Linus Torvalds [Sun, 11 Jul 2004 13:34:31 +0000 (06:34 -0700)]
x86: fix stackframe ownership confusion in sys_sigaltstack()

gcc doesn't understand that "asmlinkage" routines have the
argument stack owned by the assembly-language caller, and the
recent sparse cleanup made gcc think it owns enough stack
frame space to make a tailcall by overwriting "struct pt_regs"
that is set up by the low-level system call code.

Hide that problem again.

The real fix would be to tell gcc that the caller owns the
stack frame that it set up, but we don't have any such
interfaces, so for now the best we can do is to hide it.

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Sun, 11 Jul 2004 13:27:29 +0000 (06:27 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[NETFILTER]: Add timestamping to ipt_ULOG
Martin Josefsson [Sun, 11 Jul 2004 10:49:02 +0000 (03:49 -0700)]
[NETFILTER]: Add timestamping to ipt_ULOG

After Andi's timestamp optimizations we don't have any timestamps on the
packets unless someone requested them. Here's a patch for 2.6 to
explicitly timestamp the packets before we log them.

Harald approved it some time ago, he's pretty busy so I'm sending it
instead.

Signed-off-by: Martin Josefsson <gandalf@netfilter.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARSE]: Fix warnings in net/sctp/
Andrew Morton [Sun, 11 Jul 2004 10:47:10 +0000 (03:47 -0700)]
[SPARSE]: Fix warnings in net/sctp/

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[IPV4]: Remove no longer available URL.
Adrian Bunk [Sun, 11 Jul 2004 10:41:54 +0000 (03:41 -0700)]
[IPV4]: Remove no longer available URL.

This patch solves Bugzilla #2445 by removing a no longer available URL
from the help text for NET_IPIP.

Noted by Nils Hammar <m4341@bedug.com>.

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Sun, 11 Jul 2004 10:01:09 +0000 (03:01 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years agoRemove obsoleted drivers/char/h8.c drivers/char/h8.h.
Linus Torvalds [Sun, 11 Jul 2004 07:54:01 +0000 (00:54 -0700)]
Remove obsoleted drivers/char/h8.c drivers/char/h8.h.

22 years agoLinux 2.6.8-rc1 v2.6.8-rc1
Linus Torvalds [Sun, 11 Jul 2004 03:32:43 +0000 (20:32 -0700)]
Linux 2.6.8-rc1

22 years ago[PATCH] sparse: NULL noise in jfs
Alexander Viro [Sun, 11 Jul 2004 03:08:59 +0000 (20:08 -0700)]
[PATCH] sparse: NULL noise in jfs

22 years ago[PATCH] sparse: NULL noise in jffs
Alexander Viro [Sun, 11 Jul 2004 03:08:48 +0000 (20:08 -0700)]
[PATCH] sparse: NULL noise in jffs

22 years ago[PATCH] sparse: NULL noise is mtd
Alexander Viro [Sun, 11 Jul 2004 03:08:38 +0000 (20:08 -0700)]
[PATCH] sparse: NULL noise is mtd

0->NULL conversions in mtd

22 years ago[PATCH] sparse: removal of iovec use in mtd
Alexander Viro [Sun, 11 Jul 2004 03:08:26 +0000 (20:08 -0700)]
[PATCH] sparse: removal of iovec use in mtd

mtd, jffs and jffs2 switched from iovec to kvec

22 years agoppc64: export the user copy functions.
Linus Torvalds [Sun, 11 Jul 2004 03:04:18 +0000 (20:04 -0700)]
ppc64: export the user copy functions.

When Anton uninlined them, he didn't remember to export them
to modules..

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
Linus Torvalds [Sun, 11 Jul 2004 02:54:07 +0000 (19:54 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PCMCIA] Clean up class device attribute registration and fix build error
Russell King [Sun, 11 Jul 2004 11:58:09 +0000 (12:58 +0100)]
[PCMCIA] Clean up class device attribute registration and fix build error

22 years ago[PATCH] kill IKCONFIG_VERSION
Adrian Bunk [Sun, 11 Jul 2004 02:39:27 +0000 (19:39 -0700)]
[PATCH] kill IKCONFIG_VERSION

The patch below (already ACK'ed by Randy Dunlap) kills the unused
IKCONFIG_VERSION from kernel/configs.c .

This patch is based on a previous patch by Anton Blanchard and an idea of
Bartlomiej Zolnierkiewicz.  (I hope I haven't forgotten anyone who contributed
to this patch.  ;-) )

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove drivers/char/h8.{c,h}
Adrian Bunk [Sun, 11 Jul 2004 02:39:16 +0000 (19:39 -0700)]
[PATCH] remove drivers/char/h8.{c,h}

CONFIG_H8 in drivers/char/ depends in both 2.4 and 2.6 on
CONFIG_OBSOLETE which is never enabled.

To remove this driver, the following is required additionally to the
patch below:
  rm drivers/char/h8.c
  rm drivers/char/h8.h

This patch was already ACK'ed by Richard Henderson.

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove outdated ext2 help text parts
Adrian Bunk [Sun, 11 Jul 2004 02:39:05 +0000 (19:39 -0700)]
[PATCH] remove outdated ext2 help text parts

The patch below solves Bugzilla #3014 by removing much outdated information
from the ext2 help text.

The help text is now very short, but few correct information is better than
outdated information - and if you think it's too short, feel free to send a
patch that adds more current information.

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix (UDF_FS=y && NLS=m) compile error
Adrian Bunk [Sun, 11 Jul 2004 02:38:54 +0000 (19:38 -0700)]
[PATCH] fix (UDF_FS=y && NLS=m) compile error

The patch below fixes Bugzilla #3030 ((UDF_FS=y && NLS=m) results in a
compile error).

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: cpu hotplug bugs
Martin Schwidefsky [Sun, 11 Jul 2004 02:38:42 +0000 (19:38 -0700)]
[PATCH] s390: cpu hotplug bugs

[PATCH] s390: cpu hotplug bugs.

From: Ursula Braun-Krahl <braunu@de.ibm.com>
From: Martin Schwidefsky <schwidefsky@de.ibm.com>

iucv driver changes:
 - Fix iucv declare/retrieve buffer which the cpu hotplug patch has broken.
 - Make smp_call_function_on call func(info) in non-smp kernels.
 - Use a spinlock to get smp_get_cpu/smp_put_cpu race free.

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: signals & exceptions
Martin Schwidefsky [Sun, 11 Jul 2004 02:38:31 +0000 (19:38 -0700)]
[PATCH] s390: signals & exceptions

From: Martin Schwidefsky <schwidefsky@de.ibm.com>
From: Ulrich Weigand <uweigand@de.ibm.com>

s390 core changes:
 - Add signo between signal frame and the signal return instruction on the
   user stack for backtrace over signal handlers.
 - Add hfp floating point exceptions.
 - Use a single function for region, segment and page translation exceptions.
 - Discard SIGTRAP for single stepped instructions if the trapping instruction
   is repeated (normal memory faults) or if another signal is delivered anyway.

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] mpage_writepages() i_size reading fix
Andrea Arcangeli [Sun, 11 Jul 2004 02:38:19 +0000 (19:38 -0700)]
[PATCH] mpage_writepages() i_size reading fix

I believe reading the i_size from memory multiple times can generate fs
corruption.  The "offset" and the "end_index" were not coherent.  this is
writepages and it runs w/o the i_sem, so the i_size can change from under
us anytime.  If a parallel write happens while writepages run, the i_size
could advance from 4095 to 4100.  With the current 2.6 code that could
translate in end_index = 0 and offset = 4.  That's broken because end_index
and offset could be not coherent.  Either end_index=1 and offset =4, or
end_index = 0 and offset = 4095.  When they lose coherency the memset can
zeroout actual data.  The below patch fixes that (it's at least a
theoretical bug).

I don't really expect this tiny race to fix the bug in practice after the
more serious bugs we covered yesterday didn't fix it (more likely the
compiler will get involved into the equation soon ;).

This is also an optimization for 32bit archs that needs special locking to
read 64bit i_size coherenty.

This patch also arranges for mpage_writepages() to always zero out the file's
final page between i_size and the end of the file's final block.  This is a
best-effort correctness thing to deal with errant applications which write
into the mmapped page beyond the underlying file's EOF.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] __block_write_full_page() comment fixups
Andrea Arcangeli [Sun, 11 Jul 2004 02:38:08 +0000 (19:38 -0700)]
[PATCH] __block_write_full_page() comment fixups

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] writepage fs corruption fix
Andrea Arcangeli [Sun, 11 Jul 2004 02:37:57 +0000 (19:37 -0700)]
[PATCH] writepage fs corruption fix

Fix a data loss bug in mpage_writepages(), triggerable under extreme memory
pressure on ext2, JFS, hfs and hfsplus:

The bug is the marking of the bh clean despite we could still run into the
"confused" path.  After that the confused path really becomes confused and it
writes nothing and fs corruption triggers silenty (the reugular writepage only
writes bh that are marked dirty, it never attempts to submit_bh anything
marked clean).  The mpage-writepage code must never mark the bh clean as far
as it wants to still fallback in the regular writepage which depends on the bh
to be dirty (i.e.  the "goto confused" path).  This could only triggers with
memory pressure (it also needs buffer_heads_over_limit == 0, and that is
frequent under mm pressure).

Thanks a lot to Chris for his fine debugging that localized the problem in the
writepage code.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ad1889 warning fix
Pawel Sikora [Sun, 11 Jul 2004 02:37:46 +0000 (19:37 -0700)]
[PATCH] ad1889 warning fix

  CC [M]  sound/oss/ad1889.o
          sound/oss/ad1889.c: In function `ad1889_ac97_init':
          sound/oss/ad1889.c:854: warning: comparison is always false
                                  due to limited range of data type

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] tmpfs: scheduling-while-atomic fix
Hugh Dickins [Sun, 11 Jul 2004 02:37:33 +0000 (19:37 -0700)]
[PATCH] tmpfs: scheduling-while-atomic fix

Nick has tracked scheduling-while-atomic errors to shmem's fragile kmap
avoidance: the root error appears to lie deeper, but rework that fragility.
Plus I've been indicted for war crimes at the end of shmem_swp_entry: my
apologia scorned, so now hide the evidence.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sh64: defconfig update.
Paul Mundt [Sun, 11 Jul 2004 02:37:20 +0000 (19:37 -0700)]
[PATCH] sh64: defconfig update.

This just updates the defconfig against current BK.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sh64: Add asm-sh64/setup.h
Paul Mundt [Sun, 11 Jul 2004 02:37:09 +0000 (19:37 -0700)]
[PATCH] sh64: Add asm-sh64/setup.h

With the recent changes to init/main.c, we need an asm-sh64/setup.h.  This
pulls out the definitions from arch/sh64/kernel/setup.c and moves them to
setup.h instead.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sh64: Fix init_task.c build.
Paul Mundt [Sun, 11 Jul 2004 02:36:57 +0000 (19:36 -0700)]
[PATCH] sh64: Fix init_task.c build.

resource.h was falling a bit behind, so we use the asm-sh version instead.
This exposed another compile issue with init_task.c, which in turn needed
linux/mqueue.h.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sh64: cpumask cleanup.
Paul Mundt [Sun, 11 Jul 2004 02:36:46 +0000 (19:36 -0700)]
[PATCH] sh64: cpumask cleanup.

With the recent cpumask changes, some things ended up being broken on sh64.
This fixes them..

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] CRC16 renaming in PPP driver
Andrey Panin [Sun, 11 Jul 2004 02:36:35 +0000 (19:36 -0700)]
[PATCH] CRC16 renaming in PPP driver

Signed-off-by: Andrey Panin <pazke@donpac.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] CRC16 renaming in ISDN drivers
Andrey Panin [Sun, 11 Jul 2004 02:36:24 +0000 (19:36 -0700)]
[PATCH] CRC16 renaming in ISDN drivers

Signed-off-by: Andrey Panin <pazke@donpac.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] CRC16 renaming in IRDA drivers
Andrey Panin [Sun, 11 Jul 2004 02:36:13 +0000 (19:36 -0700)]
[PATCH] CRC16 renaming in IRDA drivers

Signed-off-by: Andrey Panin <pazke@donpac.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] CRC16 renaming in AX25 drivers
Andrey Panin [Sun, 11 Jul 2004 02:36:01 +0000 (19:36 -0700)]
[PATCH] CRC16 renaming in AX25 drivers

Signed-off-by: Andrey Panin <pazke@donpac.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] crc16 kconfig touchups
Andrew Morton [Sun, 11 Jul 2004 02:35:50 +0000 (19:35 -0700)]
[PATCH] crc16 kconfig touchups

drivers/net/hamradio/Kconfig:116:warning: 'select' used by config symbol 'BAYCOM_SER_FDX' refer to undefined symbol 'CRC16'
drivers/net/hamradio/Kconfig:136:warning: 'select' used by config symbol 'BAYCOM_SER_HDX' refer to undefined symbol 'CRC16'
drivers/net/hamradio/Kconfig:154:warning: 'select' used by config symbol 'BAYCOM_PAR' refer to undefined symbol 'CRC16'
drivers/net/hamradio/Kconfig:169:warning: 'select' used by config symbol 'BAYCOM_EPP' refer to undefined symbol 'CRC16'
net/irda/Kconfig:8:warning: 'select' used by config symbol 'IRDA' refer to undefined symbol 'CRC16'
drivers/net/Kconfig:1749:warning: 'select' used by config symbol 'VIA_VELOCITY' refer to undefined symbol 'CRC16'
drivers/net/Kconfig:2465:warning: 'select' used by config symbol 'PPP_ASYNC' refer to undefined symbol 'CRC16'
drivers/isdn/hisax/Kconfig:403:warning: 'select' used by config symbol 'HISAX_ST5481' refer to undefined symbol 'CRC16'
drivers/isdn/hisax/Kconfig:7:warning: 'select' used by config symbol 'ISDN_DRV_HISAX' refer to undefined symbol 'CRC16'
drivers/isdn/tpam/Kconfig:7:warning: 'select' used by config symbol 'ISDN_DRV_TPAM' refer to undefined symbol 'CRC16'

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix CRC16 misnaming
Andrey Panin [Sun, 11 Jul 2004 02:35:39 +0000 (19:35 -0700)]
[PATCH] fix CRC16 misnaming

As pointed by Thomas Sailer, crc16.c module contains CRC16-CCITT (x^16 + x^12
+ x^5 + 1) implementation, not IBM CRC16 (x^16 + x^15 + x^2 + 1) one.  Looks
like we need to rename it accordingly and this patchset does exactly this.

Signed-off-by: Andrey Panin <pazke@donpac.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] DMI isn't broken anymore
Andrey Panin [Sun, 11 Jul 2004 02:35:15 +0000 (19:35 -0700)]
[PATCH] DMI isn't broken anymore

This patch removes dmi_broken global variable which is not used anymore.

Signed-off-by: Andrey Panin <pazke@donpac.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] port ACPI sleep workaround to new DMI probing
Andrey Panin [Sun, 11 Jul 2004 02:35:04 +0000 (19:35 -0700)]
[PATCH] port ACPI sleep workaround to new DMI probing

This patch moves Toshiba ACPI sleep workaround out of dmi_scan.c

Signed-off-by: Andrey Panin <pazke@donpac.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] alpha: print the symbol name in Oops
Aneesh Kumar [Sun, 11 Jul 2004 02:34:53 +0000 (19:34 -0700)]
[PATCH] alpha: print the symbol name in Oops

Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] slab: fix get_user inside spinlock
Andrew Morton [Sun, 11 Jul 2004 02:34:41 +0000 (19:34 -0700)]
[PATCH] slab: fix get_user inside spinlock

This little debugging __get_user is in fact happening inside a spinlock.  It
was never very useful, and has caused problems for some architectures in the
past.  Let's just remove it.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] pagefault readaround fix
Andrew Morton [Sun, 11 Jul 2004 02:34:30 +0000 (19:34 -0700)]
[PATCH] pagefault readaround fix

Mika Kukkonen <mika@osdl.org> says:

  CC      mm/filemap.o
mm/filemap.c: In function `filemap_nopage':
mm/filemap.c:1161: warning: comparison of unsigned expression < 0 is always false

The pagefault readaround code is currently doing purely readahead.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix misplaced 'inline' in include/linux/iso_fs.h
Mika Kukkonen [Sun, 11 Jul 2004 02:34:19 +0000 (19:34 -0700)]
[PATCH] Fix misplaced 'inline' in include/linux/iso_fs.h

  CC [M]  fs/isofs/namei.o
In file included from fs/isofs/namei.c:10:
include/linux/iso_fs.h:280: warning: `inline' is not at beginning of declaration

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Correct return type of hashfn() in fs/dquot.c
Mika Kukkonen [Sun, 11 Jul 2004 02:34:08 +0000 (19:34 -0700)]
[PATCH] Correct return type of hashfn() in fs/dquot.c

  CC      fs/dquot.o
fs/dquot.c:208: warning: type qualifiers ignored on function return type

Once again with extra gcc warnings enabled.  Every user of the function is
expecting unsigned value, not int in first place, and I think the const is
just misplaced.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Remove always false check in mm/slab.c
Mika Kukkonen [Sun, 11 Jul 2004 02:33:57 +0000 (19:33 -0700)]
[PATCH] Remove always false check in mm/slab.c

  CC      mm/slab.o
mm/slab.c: In function `kmem_cache_create':
mm/slab.c:1129: warning: comparison of unsigned expression < 0 is always false

This comes from the fact that 'align' is size_t and so unsigned. Just to be
sure, I did
$ grep __kernel_size_t include/*/posix_types.h
and yes, every arch defines that to be unsigned.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] smbfs compilation warning fix
Randy Dunlap [Sun, 11 Jul 2004 02:33:45 +0000 (19:33 -0700)]
[PATCH] smbfs compilation warning fix

Use %Zd to eliminate a compiler warning in printk.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] convert uses of ZONE_HIGHMEM to is_highmem
Andy Whitcroft [Sun, 11 Jul 2004 02:33:34 +0000 (19:33 -0700)]
[PATCH] convert uses of ZONE_HIGHMEM to is_highmem

As the comments in mmzone.h indicate is_highmem() is designed to reduce the
proliferation of the constant ZONE_HIGHMEM.  This patch updates references
to ZONE_HIGHMEM to use is_highmem().  None appear to be on critical paths.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trivial: kill off CONFIG_PCI_CONSOLE
Rusty Russell [Sun, 11 Jul 2004 02:33:23 +0000 (19:33 -0700)]
[PATCH] trivial: kill off CONFIG_PCI_CONSOLE

(OK from maintainer  Geert Uytterhoeven <geert@linux-m68k.org>)
 From:  a.othieno@bluewin.ch (Arthur Othieno)

  AFAICS, CONFIG_PCI_CONSOLE isn't used elsewhere:

  hubb@mars:linux-2.6.2$ grep -r PCI_CONSOLE * | grep -v defconfig
  drivers/video/console/Kconfig:config PCI_CONSOLE
  hubb@mars:linux-2.6.2$

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trivial: arch_i386_kernel_scx200.c: kill duplicate #include
Rusty Russell [Sun, 11 Jul 2004 02:33:12 +0000 (19:33 -0700)]
[PATCH] trivial: arch_i386_kernel_scx200.c: kill duplicate #include

From:  <a.othieno@bluewin.ch> (Arthur Othieno)

via scripts/checkincludes.pl:

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trivial: remove warning in ftape
Rusty Russell [Sun, 11 Jul 2004 02:33:01 +0000 (19:33 -0700)]
[PATCH] trivial: remove warning in ftape

From:  Chris Heath <chris@heathens.co.nz>

Here's a trivial patch that removes an unused-variable warning in ftape.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trivial: RCS___IGNORE quilt backup files
Rusty Russell [Sun, 11 Jul 2004 02:32:49 +0000 (19:32 -0700)]
[PATCH] trivial: RCS___IGNORE quilt backup files

From:  David Gibson <david@gibson.dropbear.id.au>

This patch excludes the .pc directory from the same things that
SCCS/BitKeeper/.svn/CVS files are excluded from.  The .pc directory is used
for backup/reference files by quilt, a patch mangling system conceptually
derived from akpm's patch scripts.  Excluding the .pc directory is handy,
because otherwise old versions of files found in there tend to end up at the
front of the TAGS index.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trivial: little arch_i386_kernel_timers_timer_none.c fix
Rusty Russell [Sun, 11 Jul 2004 02:32:38 +0000 (19:32 -0700)]
[PATCH] trivial: little arch_i386_kernel_timers_timer_none.c fix

fixes a cut'n'paste error...

Signed-off-by: Rusty Trivial Russell <trivial@rustcorp.com.au>
Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trivial: scripts_kernel-doc: missing bracket.
Rusty Russell [Sun, 11 Jul 2004 02:32:27 +0000 (19:32 -0700)]
[PATCH] trivial: scripts_kernel-doc: missing bracket.

From:  <adobriyan@mail.ru>

Fix missing bracket when parameter to be documented is a pointer to function.

int (* resume (struct usb_interface *intf);

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trivial: scripts_kernel-doc: ignoring embedded structs shouldn't be
Rusty Russell [Sun, 11 Jul 2004 02:32:15 +0000 (19:32 -0700)]
[PATCH] trivial: scripts_kernel-doc: ignoring embedded structs shouldn't be

From:  <adobriyan@mail.ru>

Imagine you have a code similar to

  struct foo {
   union {
   struct tcphdr   *th;
   } h;
   union {
   struct iphdr    *iph;
   } nh;
  };

kernel-doc in it's current state will happily eat everything from first '{' to
last '}' and nobody will see parameter 'h' in documentation (look at
include/linux/skbuff.h:struct sk_buff for real world example).

So, fix the greedy regexp.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] int return to unsigned in smb_proc_readdir_long() in fs/smbfs/proc.c
Mika Kukkonen [Sun, 11 Jul 2004 02:32:04 +0000 (19:32 -0700)]
[PATCH] int return to unsigned in smb_proc_readdir_long() in fs/smbfs/proc.c

  CC [M]  fs/smbfs/proc.o
fs/smbfs/proc.c: In function `smb_proc_readdir_long':
fs/smbfs/proc.c:2313: warning: comparison of unsigned expression < 0 is always false
fs/smbfs/proc.c:2467: warning: comparison of unsigned expression < 0 is always false

The first one is pretty dangerous looking, as smb_proc_readdir_long() can
return several negative error values and all those are converted to
unsigned and then erronously pass the test on line 2313.  Chris Wright gave
it a quick look and we did not see immediately if this can be remotely
exploited, but it looks pretty scary.

The second warning on line 2467 is just extra so I just removed it.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Use NULL instead of integer 0 in security/selinux/
Chris Wright [Sun, 11 Jul 2004 02:31:53 +0000 (19:31 -0700)]
[PATCH] Use NULL instead of integer 0 in security/selinux/

Fixup another round of sparse warnings of the type:
warning: Using plain integer as NULL pointer
Acked by Stephen.

From: Mika Kukkonen <mika@osdl.org>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] FAT: update document
Hirofumi Ogawa [Sun, 11 Jul 2004 02:31:42 +0000 (19:31 -0700)]
[PATCH] FAT: update document

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] cfq: bad allocation
Jens Axboe [Sun, 11 Jul 2004 02:31:31 +0000 (19:31 -0700)]
[PATCH] cfq: bad allocation

Arjan (sensibly) put a might_sleep() in mempool_alloc() and it caught a bad
cfq usage.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] update kernel-parameters.txt for the noexec option
Andrew Morton [Sun, 11 Jul 2004 02:31:19 +0000 (19:31 -0700)]
[PATCH] update kernel-parameters.txt for the noexec option

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] kallsyms ppc32 fix
Keith Owens [Sun, 11 Jul 2004 02:31:08 +0000 (19:31 -0700)]
[PATCH] kallsyms ppc32 fix

PPC small data area base symbols shift between kallsyms phases 1 and 2, which
makes the kallsyms data unstable.  Exclude them from the kallsyms list.

Signed-off-by: Keith Owens <kaos@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove dead isdn pcmcia code
Christoph Hellwig [Sun, 11 Jul 2004 02:30:57 +0000 (19:30 -0700)]
[PATCH] remove dead isdn pcmcia code

The <driver>_config function called just before clear DEV_CONFIG, and
DEV_STALE_LINK isn't set anywhere else.  This is a copy & paste thing found
in all old pcmcia drivers.

The patch has been sent to the isdn list ages ago but I didn't get any
response.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Use llseek instead of f_pos= for directory seeking
Neil Brown [Sun, 11 Jul 2004 02:30:45 +0000 (19:30 -0700)]
[PATCH] Use llseek instead of f_pos= for directory seeking

nfsd currently just sets f_pos when seeking in a directory.  This bypasses
any checking and other handling that a filesystem might want to do.

So instead, we define "vfs_llseek" to be an exported "llseek", and use
that, both to seek at the start, and the find the new position at the end.

Thanks to
    "Derrick Schommer" <dschommer@acopia.com>
    "Trond Myklebust" <trond.myklebust@fys.uio.no>

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix MCA_LEGACY dependencies
Adrian Bunk [Sun, 11 Jul 2004 02:30:34 +0000 (19:30 -0700)]
[PATCH] Fix MCA_LEGACY dependencies

The patch below against 2.6.7-mm5 fixes more compile errors with
MCA_LEGACY=n.

Cc: Jeff Garzik <jgarzik@pobox.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] kAFS automount support
David Howells [Sun, 11 Jul 2004 02:30:22 +0000 (19:30 -0700)]
[PATCH] kAFS automount support

Here's a patch to allow the kAFS filesystem to use the automount facility
patch presented in a previous email.

It allows me to mount an AFS root volume on /afs and then just walk through
the directory structure causing referenced volumes to be automounted and
autoumounted.

For instance, if I do:

[root@andromeda root]# mount -t afs \#root.afs. /afs
[root@andromeda root]# ls /afs
asd  cambridge  cambridge.redhat.com  grand.central.org
[root@andromeda root]# ls /afs/cambridge
afsdoc
[root@andromeda root]# ls /afs/cambridge/afsdoc/
ChangeLog  html  LICENSE  pdf  RELNOTES-1.2.2

And then look in the mountpoint catalogue, I see:

[root@andromeda root]# cat /proc/mounts
...
#root.afs. /afs afs rw 0 0
#root.cell. /afs/cambridge.redhat.com afs rw 0 0
#afsdoc. /afs/cambridge.redhat.com/afsdoc afs rw 0 0

Then after waiting a few minutes:

[root@andromeda root]# cat /proc/mounts
...
#root.afs. /afs afs rw 0 0

Is all that remains.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] intrinsic automount and mountpoint degradation support
David Howells [Sun, 11 Jul 2004 02:30:11 +0000 (19:30 -0700)]
[PATCH] intrinsic automount and mountpoint degradation support

Here's a patch that I worked out with Al Viro that adds support for a
filesystem (such as kAFS) to perform automounting intrinsically without the
need for a userspace daemon.  It also adds support for such mountpoints to be
degraded at the filesystem's behest until they've been untouched long enough
that they'll be removed.

I've a patch (to follow) that removes some #ifdef's from fs/afs/* thus
allowing it to make use of this facility.

There are five pieces to this:

 (1) Any interested filesystem needs to have at least one list to which
     expirable mountpoints can be added.

     Access to this list is governed by the vfsmount_lock.

 (2) When a filesystem wants to create an expirable mount, it calls
     do_kern_mount() to get a handle on the filesystem it wants mounting, and
     then calls do_add_mount() to mount that filesystem on the designated
     mountpoint, supplying the list mentioned in (1) to which the vfsmount
     will be added.

     In kAFS's case, the mountpoint is a directory with a follow_link() method
     defined (fs/afs/mntpt.c). This uses the struct nameidata supplied as an
     argument as a determination of where the new filesystem should be
     mounted.

 (3) When something using a vfsmount finishes dealing with it, it calls
     mntput(). This unmarks the vfsmount for immediate expiry.

     There are two criteria for determining if a vfsmount may be expired - it
     mustn't be marked as in use for anything other than being a child of
     another vfsmount, and it must have an expiry mark against it already.

 (4) The filesystem then determines the policy on expiring the mounts created
     in (2). When it feels the need to, it passes the list mentioned in (1) to
     mark_mounts_for_expiry() to request everything on the list be expired.

     This function examines each mount listed. If the vfsmount meets the
     criteria mentioned in (3), then the vfsmount is deleted from the
     namespace and disposed of as for unmounting; otherwise the vfsmount is
     left untouched apart from now bearing an expiration mark if it didn't
     before.

     kAFS's expiration policy is simply to invoke this process at regular
     intervals for all the mounts on its list.

 (5) An expiration facility is also provided to userspace: by calling umount()
     with a MNT_EXPIRE flag, it can make a request to unmount only if the
     mountpoint hasn't been used since the last request and isn't in use now.

     This allows expiration to be driven by userspace instead of by the
     kernel if that is desirable.

     This also means that do_umount() has to use a different version of
     path_release() to everyone else... it can't call mntput() as that clears
     the expiration flag, thus rendering this unachievable; so it's version of
     path_release() calls _mntput(), which doesn't do the clear.

My original idea was to give the kernel more knowledge of automounted
things. This avoids a certain problem with stat() on a mountpoint causing it
to mount (for example, do "ls -l /afs" on a machine with kAFS), but Al wanted
it done this way.

> Why is autofs unsuitable?

Because:

 (1) Autofs is flat; AFS requires a tree - mounts on mounts on mounts on
     mounts...

 (2) AFS holds the data as to what the mountpoints are and where they go, and
     these may be cross-links to subtrees beyond your control. It's also not
     trivial to extract a list of mountpoints as is required for autofs.

 (3) Autofs is not namespace safe.

 (4) Ducking back to userspace to get that to do the mount is pretty tricky if
     namespaces are involved.

In fact, autofs may well want to make use of this facility.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] kbuild: sort modules for modpost and modinst
Brian Gerst [Sun, 11 Jul 2004 02:29:59 +0000 (19:29 -0700)]
[PATCH] kbuild: sort modules for modpost and modinst

Process modules in sorted order during modpost and modules install.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] kbuild: clean up module install rules
Brian Gerst [Sun, 11 Jul 2004 02:29:48 +0000 (19:29 -0700)]
[PATCH] kbuild: clean up module install rules

Consolidate rules for installing internal and external modules.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: update lparcfg to use seq_file
Paul Mackerras [Sun, 11 Jul 2004 02:29:37 +0000 (19:29 -0700)]
[PATCH] ppc64: update lparcfg to use seq_file

From: Will Schmidt <willschm@us.ibm.com>

This patch includes updates and cleanup for the PPC64 proc/lparcfg interface.
     - use seq_file's seq_printf for output
     - remove redundant e2a function. (use viopath.c's instead)
     - change to Kconfig to allow building as a module.
     - export required symbols from LparData.c

    Pass # 2 updates..
      - Per Pauls request I've removed the vpurr references, and left
just a stub function get_purr().
      - this should apply clean to latest linus tree.  (test-applied against
2.6.7-rc3).

    Pass # 3 updates...
      - Correcting my previously incorrect description of the
lparcfg_count_active_processors() function..
This is for the cases where we have some number of virtual
processors that are different than the total number of threads
in the system.  (i.e. systemcfg->processorcount isnt the desired
value for partition_active_processors)
      - moved e2a function into its own file in arch/ppc64/lib.
      - changed lparcfg_count_active_processors() to use a while loop
instead of a for loop.
      - removed redundant of_node_put in lparcfg_count_active_processors().
      - removed unneeded parms from get-system-parameter rtas_call.

Signed-off-by: Will Schmidt <willschm@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: enable EEH on PCI host bridges
Paul Mackerras [Sun, 11 Jul 2004 02:29:25 +0000 (19:29 -0700)]
[PATCH] ppc64: enable EEH on PCI host bridges

On recent pSeries systems, EEH needs to be enabled even on PCI Host Bridges
(PHB's).  If not enabled, then ordinary PCI probing (config-space
reads/writes to the bridges) will generate firmware error messages,
possibly a very large number of messages for systems with large numbers of
pci slots.

Signed-off-by: Linas Vepstas <linas@linas.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: fix unbalanced dev_get/put calls in EEH code
Paul Mackerras [Sun, 11 Jul 2004 02:29:14 +0000 (19:29 -0700)]
[PATCH] ppc64: fix unbalanced dev_get/put calls in EEH code

This patch fixes some unbalanced usage of pci_dev_get()/pci_dev_put() calls
in the eeh code.  The old code had too many calls to dev_put, which could
cause memory structs to be freed prematurely, possibly leading to bad bad
pointer derefs in certain cases.

Signed-off-by: Linas Vepstas <linas@linas.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: uninline some user copy routines
Anton Blanchard [Sun, 11 Jul 2004 02:29:02 +0000 (19:29 -0700)]
[PATCH] ppc64: uninline some user copy routines

gcc 3.5 is complaining about the size of copy_from_user.  It turns out it
is rather large and putting it out of line saves us about 30kB on a default
kernel build.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: CPM UART fixes
Kumar Gala [Sun, 11 Jul 2004 02:28:51 +0000 (19:28 -0700)]
[PATCH] ppc32: CPM UART fixes

Here is a patch to fix some bugs with the current CPM UART code, Tom Rini
has seen this and ok'd it.

* Fixes need to config both SMC1 & SCC1
* Fixes buffer descriptor wrapping issue in set_termios
* Fixes confusion in Kconfig regarding CPM1 vs CPM2

Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Pantelis Antoniou <panto@intracom.gr>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: serial console autodetection
Olaf Hering [Sun, 11 Jul 2004 02:28:39 +0000 (19:28 -0700)]
[PATCH] ppc32: serial console autodetection

We have something like this in our kernel since many months.  It sets the
console device to what OF uses.  ppc64 does the same, and it works ok.
serial is found on CHRP, ch-a is used on all powermacs.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] quota: inode->i_flags locking fixes
Jan Kara [Sun, 11 Jul 2004 02:28:28 +0000 (19:28 -0700)]
[PATCH] quota: inode->i_flags locking fixes

The patch fixes locking of i_flags.  It removes S_QUOTA flag from i_flags
because it was almost unused and updating it on some places correctly
(under i_sem) would be tricky.  Note that accessing of S_NOQUOTA flag is
serialized by dqptr_sem and so we can reliably tested without i_sem.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PCMCIA] Use a class interface to provide sysfs attributes.
Dominik Brodowski [Sun, 11 Jul 2004 01:28:40 +0000 (02:28 +0100)]
[PCMCIA] Use a class interface to provide sysfs attributes.

Patch from Dominik Brodowski

22 years ago[ARM] Fix two bugs in Acorn expansion card subsystem
Russell King [Sun, 11 Jul 2004 01:00:54 +0000 (02:00 +0100)]
[ARM] Fix two bugs in Acorn expansion card subsystem

- Setup synchronous expansion card resource.
- Fix order of IRQ and FIQ mask/offsets.

22 years ago[ARM] Fix allocation of 8390 ethernet device structure in etherh.
Russell King [Sat, 10 Jul 2004 15:53:29 +0000 (16:53 +0100)]
[ARM] Fix allocation of 8390 ethernet device structure in etherh.

22 years ago[ARM] Remove asm/hardware.h from SMC91x ethernet driver.
Russell King [Sat, 10 Jul 2004 15:42:15 +0000 (16:42 +0100)]
[ARM] Remove asm/hardware.h from SMC91x ethernet driver.

This include isn't required for ARM builds either.

22 years ago[NET]: Fix dst_underflow_bug_msg printk args.
Hideaki Yoshifuji [Sat, 10 Jul 2004 05:13:58 +0000 (22:13 -0700)]
[NET]: Fix dst_underflow_bug_msg printk args.

22 years ago[IPCOMP6]: Exclude IPCOMP header from props.header_len
Herbert Xu [Sat, 10 Jul 2004 05:13:01 +0000 (22:13 -0700)]
[IPCOMP6]: Exclude IPCOMP header from props.header_len

Now that the IPv4 encap stuff is out of the way, I'll be sending you
the IPv6 versions.

Here is the one to remove the unnecessary extra space reserved for
IPCOMP.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Yoshifuji Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[IPSEC]: Move generic encap code into xfrm4_output
Herbert Xu [Sat, 10 Jul 2004 04:53:57 +0000 (21:53 -0700)]
[IPSEC]: Move generic encap code into xfrm4_output

I've finally finished merging the general encapsulation code for IPv4.
Here is the patch.

The idea is basically to make x->type->output similar in structure to
x->type->input.  That means moving the tunnel encapsulation and other
generic code out.

They have ended up in xfrm4_output.c.

The advantage of this is that we have exactly one copy of the tunnel
encapsulation code.  So if we need to change it (e.g., set the TTL
according to the route) then it's easier and less error-prone.

In fact, in doing so I've already noticed that the ECN wasn't being
copied correctly in everything except xfrm4_tunnel.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoMerge http://linux-mh.bkbits.net/bluetooth-2.6
David S. Miller [Fri, 9 Jul 2004 10:06:40 +0000 (03:06 -0700)]
Merge http://linux-mh.bkbits.net/bluetooth-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[Bluetooth] Don't reset the USB halted bits
Marcel Holtmann [Sat, 10 Jul 2004 01:15:32 +0000 (03:15 +0200)]
[Bluetooth] Don't reset the USB halted bits

The USB halted bits are useless and so there is no need to reset them
after changing the configuration.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
22 years ago[Bluetooth] Respond to L2CAP info requests
Marcel Holtmann [Sat, 10 Jul 2004 01:12:28 +0000 (03:12 +0200)]
[Bluetooth] Respond to L2CAP info requests

This patch adds the correct behavior when a L2CAP info request is sent
by the peer. The answer should be a L2CAP info response with the result
code set to "not supported".

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
22 years ago[CRYPTO]: Set CRYPTO_TFM_RES_BAD_KEY_LEN in twofish.
Thomas DuBuisson [Fri, 9 Jul 2004 10:05:22 +0000 (03:05 -0700)]
[CRYPTO]: Set CRYPTO_TFM_RES_BAD_KEY_LEN in twofish.

22 years ago[IPSEC]: Fix uh->len when doing NATT with IP options.
Herbert Xu [Fri, 9 Jul 2004 09:56:37 +0000 (02:56 -0700)]
[IPSEC]: Fix uh->len when doing NATT with IP options.

I just noticed that the UDP header length in esp4_output() is incorrect
when IP options are present (in transport mode).  This patch fixes exactly
that.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[XFRM]: Add FLUSHSA and FLUSHPOLICY.
Herbert Xu [Fri, 9 Jul 2004 09:51:35 +0000 (02:51 -0700)]
[XFRM]: Add FLUSHSA and FLUSHPOLICY.

This patch adds FLUSHSA and FLUSHPOLICY to xfrm_user which are
analagous to SADB_FLUSH and SADB_X_SPDFLUSH in af_key.

This is useful in KMs on startup/shutdown so that the system is
reset to a known state.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[CRYPTO]: Remove lazy allocation from deflate.
James Morris [Fri, 9 Jul 2004 09:50:29 +0000 (02:50 -0700)]
[CRYPTO]: Remove lazy allocation from deflate.

Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Add jitter support to netem.
Stephen Hemminger [Fri, 9 Jul 2004 09:46:16 +0000 (02:46 -0700)]
[PKT_SCHED]: Add jitter support to netem.

This patch adds jitter if desired to the delayed packets in the
netem scheduler.  I dropped the rate stuff out and reorganized so
that an underlying pfifo queue is used (next plan is to make it
have class ops).

The jitter is given as sigma to a Gaussian normal distribution.  The actual
implementation is a reduced form of the table driven stuff in NISTnet
(free).

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[BRIDGE]: Support different MTU sizes.
Stephen Hemminger [Fri, 9 Jul 2004 09:37:16 +0000 (02:37 -0700)]
[BRIDGE]: Support different MTU sizes.

This patch adds support for different size MTU's to bridging.
It is useful for bridging Ethernet's with jumbo frames, etc.

The mtu of the bridge pseudo-device is maintained as the minimum
of all the underlying ports.  And when forwarding a frame through
the bridge, it will drop the frame if the outgoing port's MTU
is less than the frame size (as per 802 standard).

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Remove CSZ scheduler.
David S. Miller [Fri, 9 Jul 2004 09:26:07 +0000 (02:26 -0700)]
[PKT_SCHED]: Remove CSZ scheduler.

It was an experimental hack and never finished off.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoBack out smc91x late collision "performance" hack.
Russell King [Thu, 8 Jul 2004 16:03:57 +0000 (17:03 +0100)]
Back out smc91x late collision "performance" hack.

Apparantly, the reason for this change is that it gives "much less
NFS stalls with a SMC91C96 on a 10/100MB switch."

Alan Cox's comments on this is:
"spec says 16 collision retries max _ever_.  I bet his 'broken
switch' is a case of half v full duplex" and a recommendation to
remove it.

Also, since the change does not limit the number of times we may
retry to send the packet, I think this code opens a potential DoS
attack against network which has a machine connected running this
code.

22 years ago[ARM PATCH] 1937/1: LoCoMo common device
John Lenz [Thu, 8 Jul 2004 15:35:07 +0000 (16:35 +0100)]
[ARM PATCH] 1937/1: LoCoMo common device

Patch from John Lenz

Cleanup and forward port of patch 1849.
This patch provides support for the SHARP LoCoMo device,
a companion chip similar to the sa1111 device.  It is present
in many of the SHARP Zaurus line of PDAs.

22 years ago[IPV4]: Fix multicast socket hangs.
David S. Miller [Thu, 8 Jul 2004 09:34:29 +0000 (02:34 -0700)]
[IPV4]: Fix multicast socket hangs.

If a multicast packet gets looped back, the sending
socket can hang if a local read just sits and does
not empty its receive queue.

The problem is that when an SKB clone is freed up,
the destructor is only invoked for the head SKB when
there is a fraglist (which is created for fragmentation).

The solution is to account the fragment list SKB lengths
in the top-level head SKB, then it all works out.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[TCP]: Do not round window to MSS if window scaling.
John Heffner [Wed, 7 Jul 2004 08:22:10 +0000 (01:22 -0700)]
[TCP]: Do not round window to MSS if window scaling.

Signed-off-by: John Heffner <jheffner@psc.edu>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[TCP]: Type qualifiers, such as const, are ignored on function return type.
David S. Miller [Wed, 7 Jul 2004 08:20:08 +0000 (01:20 -0700)]
[TCP]: Type qualifiers, such as const, are ignored on function return type.

22 years ago[PKT_SCHED]: Another missed tc_stats spinlock conversion.
Jamal Hadi Salim [Wed, 7 Jul 2004 08:19:10 +0000 (01:19 -0700)]
[PKT_SCHED]: Another missed tc_stats spinlock conversion.

Signed-off-by: Jamal Hadi Salim <hadi@znyx.com>
Signed-off-by: David S. Miller <davem@redhat.com>