]> git.hungrycats.org Git - linux/log
linux
22 years agoDon't panic on a corrupt MP table. It's likely just a broken UP BIOS.
Linus Torvalds [Thu, 13 Nov 2003 06:55:23 +0000 (22:55 -0800)]
Don't panic on a corrupt MP table. It's likely just a broken UP BIOS.

So just print a warning and continue.

22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Thu, 13 Nov 2003 06:52:19 +0000 (22:52 -0800)]
Merge http://lia64.bkbits.net/to-linus-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] ia64: invoke schedule_tail unconditionally on ia32 emulation
Arun Sharma [Thu, 13 Nov 2003 05:29:19 +0000 (21:29 -0800)]
[PATCH] ia64: invoke schedule_tail unconditionally on ia32 emulation

The #ifdef CONFIG_SMP around the call to schedule_tail was removed a
long time ago for native ia64, but ia32 emulation continues to have a
#ifdef.  We saw a bunch of weird behavior with respect to getpid() on
multithreaded programs (they behave ok on SMP, but break on UP).

22 years agoMerge bk://gkernel.bkbits.net/net-drivers-2.5
Linus Torvalds [Wed, 12 Nov 2003 10:02:53 +0000 (02:02 -0800)]
Merge bk://gkernel.bkbits.net/net-drivers-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge redhat.com:/spare/repo/linux-2.5
Jeff Garzik [Wed, 12 Nov 2003 15:31:55 +0000 (10:31 -0500)]
Merge redhat.com:/spare/repo/linux-2.5
into redhat.com:/spare/repo/net-drivers-2.5

22 years ago[netdrvr de4x5] NE54-de4x5 - fix missing free on error path - found by viro
Stephen Hemminger [Wed, 12 Nov 2003 15:30:54 +0000 (10:30 -0500)]
[netdrvr de4x5] NE54-de4x5 - fix missing free on error path - found by viro

22 years ago[netdrvr tg3] initialize workqueue correctly
Herbert Xu [Wed, 12 Nov 2003 15:29:38 +0000 (10:29 -0500)]
[netdrvr tg3] initialize workqueue correctly

(fixes crash)

22 years agoMerge davem@nuts.ninka.net:/disk1/davem/BK/net-2.5
David S. Miller [Wed, 12 Nov 2003 07:58:38 +0000 (23:58 -0800)]
Merge davem@nuts.ninka.net:/disk1/davem/BK/net-2.5
into hera.kernel.org:/home/davem/BK/net-2.5

22 years ago[IPV6]: Fix len calculation after icmp changes.
Jan Oravec [Wed, 12 Nov 2003 06:43:48 +0000 (22:43 -0800)]
[IPV6]: Fix len calculation after icmp changes.

22 years ago[PATCH] ALI IDE forward port from 2.4.x
Ivan Kokshaysky [Wed, 12 Nov 2003 01:02:24 +0000 (17:02 -0800)]
[PATCH] ALI IDE forward port from 2.4.x

This forward-ports some more of the ALI IDE sanity checks from the 2.4.x
tree.

In particular, we only do the enable bits for revisions < 0xC5

22 years ago[PATCH] Legacy ALi5455 Audio Driver update
Wei Ni [Wed, 12 Nov 2003 00:05:41 +0000 (16:05 -0800)]
[PATCH] Legacy ALi5455 Audio Driver update

We've resolved some bugs in legacy ALi5455 audio driver.

22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Tue, 11 Nov 2003 23:56:11 +0000 (15:56 -0800)]
Merge http://lia64.bkbits.net/to-linus-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoRe-instate the ALI northbridge checks in ALI IDE driver
Linus Torvalds [Tue, 11 Nov 2003 23:53:58 +0000 (15:53 -0800)]
Re-instate the ALI northbridge checks in ALI IDE driver

This leaves just the minimal oops protection in place, and
maintains the logic that "if we have a non-ALI northbridge,
we shouldn't touch any of the GPIOs because we don't know
what they might be connected to".

22 years ago[IPV6]: Fix packet quoting in icmpv6_send().
David S. Miller [Tue, 11 Nov 2003 17:34:37 +0000 (09:34 -0800)]
[IPV6]: Fix packet quoting in icmpv6_send().
- Mucking with the original skb pointers with push/pull around
  the packet quoting was wrong, muching with these pointers could
  cause problems with others using the SKB.

  It was also buggy, it only handled the case where skb->nh.raw was
  ahead of or equal to skb->data

- The fix is to record skb->nh.raw - skb->data and use this as
  a base offset in calls to skb_copy_and_csum_bits().  This is
  what the pre-IPSEC code did.

This fixes IPV6 oopses and packet corruption on 64-bit platforms
when sending UDP port unreachable ICMP messages.

Reported and analyzed by Jan Oravec (jan.oravec@6com.sk)

22 years agoia64: From Linus: Always disable system call restart when invoking a
David Mosberger [Tue, 11 Nov 2003 15:14:26 +0000 (07:14 -0800)]
ia64: From Linus: Always disable system call restart when invoking a
signal handler.  Otherwise, a restarted system call that gets
interrupted before the restart has taken effect by _another_
signal will potentially restart the wrong system call.

22 years agoAlways disable system call restart when invoking a signal handler.
Linus Torvalds [Tue, 11 Nov 2003 13:18:50 +0000 (05:18 -0800)]
Always disable system call restart when invoking a signal handler.

Otherwise, a restarted system call that gets interrupted before
the restart has taken effect by _another_ signal will potentially
restart the wrong system call.

22 years agoFix ALI 15x3 IDE driver oops
Linus Torvalds [Tue, 11 Nov 2003 13:15:32 +0000 (05:15 -0800)]
Fix ALI 15x3 IDE driver oops

It would oops on any machines that had an ALI northbridge but
didn't have the exact ISA bridge we expected.

22 years ago[IPVS]: make sure timer expires on one cpu
Julian Anastasov [Tue, 11 Nov 2003 08:06:18 +0000 (00:06 -0800)]
[IPVS]: make sure timer expires on one cpu

22 years ago[NET]: Remove __devinitdata from board_info[] in tlan.c driver.
Andrew Morton [Tue, 11 Nov 2003 07:59:03 +0000 (23:59 -0800)]
[NET]: Remove __devinitdata from board_info[] in tlan.c driver.

22 years ago[IPVS]: avoid NULL ptr deref for dest in __ip_vs_get_out_rt
Julian Anastasov [Tue, 11 Nov 2003 07:55:47 +0000 (23:55 -0800)]
[IPVS]: avoid NULL ptr deref for dest in __ip_vs_get_out_rt

22 years ago[PATCH] Fix clock_nanosleep() signal restart issues
George Anzinger [Tue, 11 Nov 2003 06:59:12 +0000 (22:59 -0800)]
[PATCH] Fix clock_nanosleep() signal restart issues

The problem with clock_nanosleep() restarting was that the address of
the users return timespec was being saved at the wrong place.  In needs
to be saved in the sys call interface code rather than the
do_clock_nanosleep().  My original tests were a bit weak as they only
did one signal rather than two or more which were required to break it.

The attached patch fixes the problem.

I also added a few comments about how restart works, and added my name
to the MAINTAINERS list.

22 years ago[PATCH] ia64: fix is_headless_node() for SN
Jack Steiner [Tue, 11 Nov 2003 06:35:29 +0000 (22:35 -0800)]
[PATCH] ia64: fix is_headless_node() for SN

Without this patch, SN machines which have nodes that contain memory only (no
CPUs will hang.

22 years agoMerge master.kernel.org:/home/davem/BK/sparc-2.5
Linus Torvalds [Tue, 11 Nov 2003 04:40:57 +0000 (20:40 -0800)]
Merge master.kernel.org:/home/davem/BK/sparc-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge master.kernel.org:/home/davem/BK/net-2.5
Linus Torvalds [Tue, 11 Nov 2003 04:38:34 +0000 (20:38 -0800)]
Merge master.kernel.org:/home/davem/BK/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoAvoid racy optimization in signal sending.
Linus Torvalds [Tue, 11 Nov 2003 02:52:30 +0000 (18:52 -0800)]
Avoid racy optimization in signal sending.

The bug is probably impossible to trigger on x86, due to its
fairly strong coherency model (the SMP-safe bitops end up being
memory barriers etc), but other architectures - notably ppc64 -
can apparently trigger a race whereby the signal sender doesn't
wake up the target because it doesn't notice that it has gone to
sleep.

The optimization also optimizes only what appears to be the
uncommon case, where the signal happens for an already-running
process.

22 years ago[PATCH] Fix AIO reference counts
Daniel McNeil [Tue, 11 Nov 2003 02:28:33 +0000 (18:28 -0800)]
[PATCH] Fix AIO reference counts

This makes the AIO submit path holds an extra reference until just
before returning.  This fixes the referencing a free kiocb.

Without this patch the kernel will oops if the AIO completes early.

22 years agoFix double unlock of page_table_lock in do_wp_page().
Linus Torvalds [Tue, 11 Nov 2003 00:42:15 +0000 (16:42 -0800)]
Fix double unlock of page_table_lock in do_wp_page().

Noticed by Petr Vandrovec.

In the out-of-memory case, do_wp_page() would unlock page_table_lock
twice - once before allocating, and once in the exit path.

Rewrite the exit paths to be more readable, and don't try to share
the code between all the exit cases, since they are very different.

22 years ago[SPARC64]: Fix PCI floppy IRQ enable/disable handling.
David S. Miller [Mon, 10 Nov 2003 16:10:00 +0000 (08:10 -0800)]
[SPARC64]: Fix PCI floppy IRQ enable/disable handling.
- Delete fd_{enable,disable}_irq() interfaces, never used.
- Move ebus_dma_irq_enable() calls into sun_pci_fd_{request,free}_irq().

22 years ago[IPV4/IPV6]: More userland jiffies reporting fixes for routing.
Hideaki Yoshifuji [Mon, 10 Nov 2003 15:10:06 +0000 (07:10 -0800)]
[IPV4/IPV6]: More userland jiffies reporting fixes for routing.

22 years ago[DECNET]: Normalize jiffies reported to userspace.
Hideaki Yoshifuji [Mon, 10 Nov 2003 15:08:36 +0000 (07:08 -0800)]
[DECNET]: Normalize jiffies reported to userspace.

22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Mon, 10 Nov 2003 10:42:47 +0000 (02:42 -0800)]
Merge http://lia64.bkbits.net/to-linus-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoia64: Fix _PAGE_CHG_MASK so PROT_NONE works again. Caught by Linus.
David Mosberger [Mon, 10 Nov 2003 10:35:21 +0000 (02:35 -0800)]
ia64: Fix _PAGE_CHG_MASK so PROT_NONE works again.  Caught by Linus.

22 years ago[PATCH] ia64: fix bug in prof_cpu_mask_read_proc()
Paul Jackson [Mon, 10 Nov 2003 10:27:43 +0000 (02:27 -0800)]
[PATCH] ia64: fix bug in prof_cpu_mask_read_proc()

Display of cpumask for /proc/irq/prof_cpu_mask has a botch in the print
loop - should consume 2 bytes per loop.

22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Mon, 10 Nov 2003 08:59:42 +0000 (00:59 -0800)]
Merge http://lia64.bkbits.net/to-linus-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoFix pte_modify() bug which allowed mprotect() to change too many bits.
David Mosberger [Mon, 10 Nov 2003 08:50:58 +0000 (00:50 -0800)]
Fix pte_modify() bug which allowed mprotect() to change too many bits.
Found by Russell King.

22 years ago[PATCH] Warn about old EZD and DM disk remappers
Andries E. Brouwer [Mon, 10 Nov 2003 00:50:35 +0000 (16:50 -0800)]
[PATCH] Warn about old EZD and DM disk remappers

Since 2.6.x by default does not remap the disk partitions any more, it
would be a good idea to warn when we see EZD or DM signatures.  That
informs the user to fix his setup (or pass in "hdx=remap" on the kernel
command line).

22 years agoMerge bk://gkernel.bkbits.net/net-drivers-2.5
Linus Torvalds [Mon, 10 Nov 2003 00:32:44 +0000 (16:32 -0800)]
Merge bk://gkernel.bkbits.net/net-drivers-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge bk://gkernel.bkbits.net/libata-2.5
Linus Torvalds [Mon, 10 Nov 2003 00:31:52 +0000 (16:31 -0800)]
Merge bk://gkernel.bkbits.net/libata-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[libata promise] fixes suggested by Promise
Jeff Garzik [Mon, 10 Nov 2003 05:41:12 +0000 (00:41 -0500)]
[libata promise] fixes suggested by Promise

* flush host FIFO after sending data to DIMM window
* don't set SCR addresses, as the hardware doesn't have SCRs
  (cosmetic)

22 years ago[PATCH] compile fix for voyager with gcc-3.3
Andrew Morton [Sun, 9 Nov 2003 23:18:43 +0000 (15:18 -0800)]
[PATCH] compile fix for voyager with gcc-3.3

From: James Bottomley <James.Bottomley@SteelEye.com>

The cpu_callout_map differs from the prototype in asm-i386/smp.h by a
volatile.  gcc-3.3 now treats this as an error, so voyager support will
only compile with older gcc's.  The fix is to remove the spurious volatile.

22 years ago[PATCH] JBD: fix assertion failure
Andrew Morton [Sun, 9 Nov 2003 23:18:35 +0000 (15:18 -0800)]
[PATCH] JBD: fix assertion failure

This fixes a JBD assertion failure (goes BUG) in __journal_remove_journal_head().

When the journal had aborted due to earlier internal consistency errors (or
I/O errors) it is possible that we free journal_heads which still have
attached copyout buffers.  So just free them up.

22 years ago[PATCH] Fix RAID1 recovery
Andrew Morton [Sun, 9 Nov 2003 23:18:26 +0000 (15:18 -0800)]
[PATCH] Fix RAID1 recovery

From: Mike Tran <mhtran@us.ibm.com>

This fixes the RAID1 recovery problems; it seems to be a simple thinko:
sync_request_write() is passing "ok=0" into md_done_sync().  Clearly, `ok'
should be true here.

(acked by neilb)

22 years ago[PATCH] char dev request_module fix
Andrew Morton [Sun, 9 Nov 2003 23:18:18 +0000 (15:18 -0800)]
[PATCH] char dev request_module fix

From: Rusty Russell <rusty@rustcorp.com.au>

Module aliases are all of form "char-major-<major>-<minor>".  char_dev.c
calls request_module with "char-major-<major>".

22 years ago[PATCH] Disable IDE Tagged Command Queueing
Andrew Morton [Sun, 9 Nov 2003 23:18:09 +0000 (15:18 -0800)]
[PATCH] Disable IDE Tagged Command Queueing

It's not ready for prime time yet, so hide it until the additional work has
been done.

22 years ago[PATCH] ext2 block allocation race fix
Andrew Morton [Sun, 9 Nov 2003 23:18:01 +0000 (15:18 -0800)]
[PATCH] ext2 block allocation race fix

If this CPU decides that an ext2 block group has a free block it will then go
in and try to acquire it.  No locks are held, so another CPU can come in and
steal the last block.

In this case we will bogusly report a corrupted filessytem.

Fix it by just restarting the scan - this will choose a different blockgroup
or will generate -ENOSPC.

22 years ago[PATCH] 3c509 MCA compile fix
Andrew Morton [Sun, 9 Nov 2003 23:17:52 +0000 (15:17 -0800)]
[PATCH] 3c509 MCA compile fix

Only include mca.h if CONFIG_MCA: only ia32 and ia64 have <asm/mca.h>

22 years ago[PATCH] AS: handle non-block requests
Andrew Morton [Sun, 9 Nov 2003 23:17:43 +0000 (15:17 -0800)]
[PATCH] AS: handle non-block requests

From: Nick Piggin <piggin@cyberone.com.au>

as_completed_request() can be called for requests which were not generated by
the generic block layer.  Handle these, to avoid a subsequent WARN_ON (at
least).

Also kill a separate WARN_ON which is bogusly triggering.

22 years agoMerge davem@nuts.ninka.net:/disk1/davem/BK/net-2.5
David S. Miller [Sun, 9 Nov 2003 13:12:09 +0000 (05:12 -0800)]
Merge davem@nuts.ninka.net:/disk1/davem/BK/net-2.5
into hera.kernel.org:/home/davem/BK/net-2.5

22 years ago[PATCH] Fix nfsd extra dput()
Neil Brown [Sun, 9 Nov 2003 12:14:39 +0000 (04:14 -0800)]
[PATCH] Fix nfsd extra dput()

An extra dput was introduced in nfsd_rename 20 months ago....

time to remove it.

22 years ago[PATCH] PPC32: Fix alignment problem with __ex_table and __bug_table.
Paul Mackerras [Sun, 9 Nov 2003 12:03:30 +0000 (04:03 -0800)]
[PATCH] PPC32: Fix alignment problem with __ex_table and __bug_table.

The __start___ex_table and __start___bug_table symbols could end up
pointing a few bytes before the actual __ex_table and __bug_table
sections, if the preceding section had an odd length.  This led to
oopses in some situations.  Patch from Sam Ravnborg.

22 years agoMerge nuts.ninka.net:/disk1/davem/BK/network-2.5
David S. Miller [Sun, 9 Nov 2003 11:31:06 +0000 (03:31 -0800)]
Merge nuts.ninka.net:/disk1/davem/BK/network-2.5
into nuts.ninka.net:/disk1/davem/BK/net-2.5

22 years ago[IPV4/IPV6]: Normalize jiffies reported to userspace in routing code.
Hideaki Yoshifuji [Sun, 9 Nov 2003 11:26:59 +0000 (03:26 -0800)]
[IPV4/IPV6]: Normalize jiffies reported to userspace in routing code.

22 years ago[JIFFIES]: linux/times.h needs asm/param.h (for USER_HZ)
Hideaki Yoshifuji [Sun, 9 Nov 2003 11:26:19 +0000 (03:26 -0800)]
[JIFFIES]: linux/times.h needs asm/param.h (for USER_HZ)

22 years ago[NET]: Bart wrote arpt_mangle not DaveM. :-)
Bart De Schuymer [Sun, 9 Nov 2003 11:22:28 +0000 (03:22 -0800)]
[NET]: Bart wrote arpt_mangle not DaveM. :-)

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Sun, 9 Nov 2003 07:50:27 +0000 (23:50 -0800)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[ARM] Fix ARM signal handling.
Russell King [Sun, 9 Nov 2003 23:03:30 +0000 (23:03 +0000)]
[ARM] Fix ARM signal handling.

If we are unable to deliver a signal to the process (eg, due to stack
pointer corruption) block the signal so other fatal signals can kill
off the process.

22 years ago[PATCH] Work around K8 errata on x86-64
Andi Kleen [Sun, 9 Nov 2003 01:51:23 +0000 (17:51 -0800)]
[PATCH] Work around K8 errata on x86-64

K8 has an erratum (#100) that essentially causes some compat mode processes
to fault occassionally. The issue can be worked around in the OS. It only
applies to x86-64, in 32bit it is fine.

This adds a check to the page fault handler that checks for addresses >4GB
from compat mode. If they happen just return; the CPU will reexecute
the instruction and the condition that caused the problem is gone.

More details in Opteron/Athlon64 specification update on the AMD website.

Also I removed a left over debugging printk in the prefetch handling code.

22 years ago[PATCH] input: Always reset PS/2 mouse resolution and update speed to
Vojtech Pavlik [Sun, 9 Nov 2003 01:25:23 +0000 (17:25 -0800)]
[PATCH] input: Always reset PS/2 mouse resolution and update speed to
default values after probing

This sets the mouse to 100 samples/second, 200 dpi, 1:1 mapping, which
is a standard setting, as close to 2.4 XFree86 behavior as possible, and
a good performance setting, too.

It also in the case of 'psmouse_noext' doesn't probe and set anything
all, though it still issues the RESET command. This is as safe as one
can get.

The only real problem remaining is that the report rate and resolution
cannot be set from XFree86 config and only is available as a
kernel/module parameter. The fix is, howewer not 2.6.0 material.

22 years ago[PATCH] Fix critical issue in x86-64 IOMMU code
Andi Kleen [Sun, 9 Nov 2003 00:55:36 +0000 (16:55 -0800)]
[PATCH] Fix critical issue in x86-64 IOMMU code

The K8 IOMMU code had some broken BUG_ON()s that hit with <4K aligned IO
through the IOMMU.

This patch fixes this. Without this database raw IO is often broken.

22 years agoMerge davem@nuts.ninka.net:/disk1/davem/BK/net-2.5
David S. Miller [Sat, 8 Nov 2003 15:41:45 +0000 (07:41 -0800)]
Merge davem@nuts.ninka.net:/disk1/davem/BK/net-2.5
into hera.kernel.org:/home/davem/BK/net-2.5

22 years ago[IPV6]: Fix hangs during interface down caused by ipv6_del_addr().
Krishna Kumar [Sat, 8 Nov 2003 14:33:05 +0000 (06:33 -0800)]
[IPV6]: Fix hangs during interface down caused by ipv6_del_addr().

While using PRIVACY extensions, I sometimes get a hang when I remove the
interface. But I can reproduce this every time using the test script at
the end of the mail (hang depends on the order of address deletion).

The bug is in ipv6_del_addr() where if a temp address is being deleted, it
does an __in6_ifa_put() of the main address from which it was derived
(basically the autoconf prefix address). So if the main address was
deleted first, it's ifp ref count would be 1 and it would 'wait' to be
freed till it's temp address was freed first. When the temp address is
deleted, the __put() routine drops the main address's ifp ref count to 0,
but not free it. unregister_netdevice() hangs giving message that ref
count is 1. Fix tested overnight.

Also, the code at the top of the routine is unnecessary, the same is being
done when the address is found a little later in that routine.

22 years ago[NET]: Use cpumask_t for cpumap in flow cache.
Herbert Xu [Sat, 8 Nov 2003 14:28:48 +0000 (06:28 -0800)]
[NET]: Use cpumask_t for cpumap in flow cache.

22 years ago[TCP]: Normalize jiffies values reported to userspace.
David S. Miller [Sat, 8 Nov 2003 14:27:05 +0000 (06:27 -0800)]
[TCP]: Normalize jiffies values reported to userspace.

22 years ago[PATCH] SMP signal latency fix
Ingo Molnar [Sat, 8 Nov 2003 08:06:19 +0000 (00:06 -0800)]
[PATCH] SMP signal latency fix

The code that sends a signal needs to "kick" the target process if it
runs on another CPU and wasn't woken up by the signal to let it know
that it has a new event.

Otherwise it might take a long time until the target actually notices
and acts on the signal.

22 years ago[netdrvr pcnet32] add missing pci_dma_sync_single
Ralf Bächle [Sat, 8 Nov 2003 07:24:10 +0000 (02:24 -0500)]
[netdrvr pcnet32] add missing pci_dma_sync_single

a patch for the pcnet32.c driver which adds a missing call to
pci_dma_sync_single.  If a received packet is smaller than rx_copybreak
the pcnet driver will recycle the receive buffer which requires calling
pci_dma_sync_single.  Patch is against 2.6 but I it's also needed in 2.4.

Without that call the processor might still have old stale data in
the data cache when the processor accesses the recycled buffer.

22 years ago[netdrvr b44] Fix irq enable/disable; fix oops due to lack of SET_NETDEV_DEV() call
Pekka Pietikäinen [Sat, 8 Nov 2003 07:22:43 +0000 (02:22 -0500)]
[netdrvr b44] Fix irq enable/disable; fix oops due to lack of SET_NETDEV_DEV() call

Also, add suspend/resume functions.

22 years ago[PATCH] Fix oops in x86-64 strace path
Andi Kleen [Sat, 8 Nov 2003 05:59:32 +0000 (21:59 -0800)]
[PATCH] Fix oops in x86-64 strace path

Fix a nasty typo found by Albert Cahalan.

This lead to an oops when a invalid syscall was called under strace in 2.6.

22 years ago[PATCH] Fix TSS limit on x86-64
Andi Kleen [Sat, 8 Nov 2003 05:59:23 +0000 (21:59 -0800)]
[PATCH] Fix TSS limit on x86-64

The limit of the TSS segment was incorrectly set to a too big value
on x86-64. This lead to the CPU reading random memory behind the main
TSS when iopl was >0, but there was no ioperm bitmap set. This caused
random failures in port accesses in this state.

Set the correct limit.

22 years agoDon't fold nanosleep() into clock_nanosleep().
Linus Torvalds [Sat, 8 Nov 2003 04:11:44 +0000 (20:11 -0800)]
Don't fold nanosleep() into clock_nanosleep().

The latter has buggy restart functionality and is a lot
more complicated anyway.

22 years ago[libata] fix Promise PCI posting bugs
Jeff Garzik [Fri, 7 Nov 2003 11:24:19 +0000 (06:24 -0500)]
[libata] fix Promise PCI posting bugs

22 years ago[PATCH] fix reference count bug with class devices
Greg Kroah-Hartman [Fri, 7 Nov 2003 10:58:26 +0000 (02:58 -0800)]
[PATCH] fix reference count bug with class devices

When a kobject is associated with a kset, the kset MUST be set before
the kobject is initialized (by either a call to kobject_register() or
kobject_init()).  This patch fixes the class code which improperly set
the kset after the kobject was initialized, which would cause improper
reference counts on the kset.

Thanks to Mike Anderson for locating the source of this bug.

22 years ago[PATCH] Fix IP checksum for SuSE 9.0 compiler
Andi Kleen [Fri, 7 Nov 2003 08:32:55 +0000 (00:32 -0800)]
[PATCH] Fix IP checksum for SuSE 9.0 compiler

The hammer branch based gcc 3.3 in SuSE 9.0 has a more aggressive
optimizer. ip_send_check has this code:

iph->check = 0;
iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);

The new gcc optimizes the first store away because it doesn't know
that ip_fast_csum reads its input memory. This leads to occassionally
packets with wrong IP header checksum getting sent; this happens especially
with NFS. Fixing it in the constraints would have been ugly and probably
not future proof, so this patch just adds a memory clobber to ip_fast_csum.

For some reason the issue only hits in 2.6, we haven't seen it in 2.4.
Problem occurs on both i386 and x86-64.

Credit goes to Olaf Kirch for tracking this down.

22 years agoMerge bk://linuxusb.bkbits.net/gregkh-2.6
Linus Torvalds [Fri, 7 Nov 2003 03:45:39 +0000 (19:45 -0800)]
Merge bk://linuxusb.bkbits.net/gregkh-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] USB: usb ignores 64bit dma
David Brownell [Fri, 7 Nov 2003 02:19:35 +0000 (18:19 -0800)]
[PATCH] USB: usb ignores 64bit dma

The dma hooks whereby EHCI can pass 64bit DMA support
up the driver stack (to avoid buffer copies) turn out
to broken on most architectures(*).  This patch just
disables them all, since it looks like those mechanisms
won't get fixed before 2.6.0-final.  For now it'd only
matter on a few big Intel boxes anyway.

Please merge.

- Dave

(*) On x86, mips, and arm dma_supported() doesn't
     even compare with the device's mask.  On several
     other architectures (reported on ppc, alpha,
     and sparc64), asking that question for non-PCI
     devices will just BUG() -- even though all info
     needed to answer the question is right at hand.

22 years ago[PATCH] USB: fix a thread-exit problem at module unload
Matthew Dharm [Fri, 7 Nov 2003 02:07:03 +0000 (18:07 -0800)]
[PATCH] USB: fix a thread-exit problem at module unload

This patch fixes a thread-exit problem when the usb-storage module is
unloaded with a preemptable kernel.  Please refer to the comments in the
code for more detail.

22 years ago[PATCH] PCI: Fix oops in quirk_via_bridge
Michael Clark [Fri, 7 Nov 2003 02:04:16 +0000 (18:04 -0800)]
[PATCH] PCI: Fix oops in quirk_via_bridge

I have a VIA cardbus 1394 controller which oops on insertion
after an APM suspend/resume cycle (without card inserted):

bounds: 0000 [#1]
CPU:    0
EIP:    0060:[<c0300060>]    Tainted: PF
EFLAGS: 00010206
EIP is at quirk_via_bridge+0x4/0x1c
eax: 0000ffff   ebx: c02982e0   ecx: d1958000   edx: 000c0010
esi: d1958000   edi: 00000001   ebp: 00000000   esp: da401ee8
ds: 007b   es: 007b   ss: 0068
Process pccardd (pid: 1093, threadinfo=da400000 task=da4c8780)
Stack: c019fb85 d1958000 00000001 d1958000 00000000 c019fbc2 d1958000 00000001
         c02980a0 d1958000 dfdebf14 c019d828 00000001 d1958000 00000000 dec2802c
         dfdebf00 dfdebf14 00000000 e3dfe7c7 dfdebf00 00000000 dec2802c da401f48
Call Trace:
   [<c019fb85>] pci_do_fixups+0x52/0x54
   [<c019fbc2>] pci_fixup_device+0x3b/0x49
   [<c019d828>] pci_scan_slot+0x46/0x8f
   [<e3dfe7c7>] cb_alloc+0x29/0xf7 [pcmcia_core]
   [<e3dfb9aa>] socket_insert+0x90/0x102 [pcmcia_core]
   [<e3dfbc0d>] socket_detect_change+0x54/0x7e [pcmcia_core]
   [<e3dfbdbc>] pccardd+0x185/0x1f9 [pcmcia_core]

quirk_via_bridge (which is marked device PCI_ANY_ID) triggers on
my 1394 controller which vendor=VIA but is not a bridge.

Making the quirk __devinit solves the problem.

22 years ago[PATCH] Fix cramfs metadata races
Alexander Viro [Fri, 7 Nov 2003 01:53:45 +0000 (17:53 -0800)]
[PATCH] Fix cramfs metadata races

There's a few places that use incorrect exclusion for the cramfs raw
data access buffers.  The proper lock is "read_mutex" (and BKL does
nothing).

 - fix mount-time read and block number initialization without the mutex
   held.
 - cramfs_readdir() needs to copy the name and inode information into a
   separate buffer since it can't hold the semaphore over the
   (potentially blocking) user mode access
 - cramfs_lookup() needs to hold the access lock over the whole
   function, not just the read itself
 - use generic_file_llseek on directories to get i_sem exclusion on
   readdir/lseek

22 years ago[libata] bump libata version
Jeff Garzik [Thu, 6 Nov 2003 08:36:37 +0000 (03:36 -0500)]
[libata] bump libata version

22 years ago[libata] fix ugly Promise interrupt masking bug
Jeff Garzik [Thu, 6 Nov 2003 08:34:08 +0000 (03:34 -0500)]
[libata] fix ugly Promise interrupt masking bug

22 years ago[NET]: Do not run netdev todo work from linkwatch code.
Krishna Kumar [Thu, 6 Nov 2003 05:18:43 +0000 (21:18 -0800)]
[NET]: Do not run netdev todo work from linkwatch code.

22 years ago[NET]: Fix skb_copy_expand offset calculation.
Patrick McHardy [Thu, 6 Nov 2003 04:23:45 +0000 (20:23 -0800)]
[NET]: Fix skb_copy_expand offset calculation.

22 years ago[PATCH] Drop spin lock when calling request_module in quota code
Jan Kara [Thu, 6 Nov 2003 02:42:41 +0000 (18:42 -0800)]
[PATCH] Drop spin lock when calling request_module in quota code

From Herbert Xu

22 years ago[PATCH] fix segment accounting with bounced pages
Jens Axboe [Thu, 6 Nov 2003 00:23:58 +0000 (16:23 -0800)]
[PATCH] fix segment accounting with bounced pages

There's a problem with bio segment accounting for pages that reside
above the bounce limit of a queue. When submitted, they may be
considered part of another segment. A condition that changes when the
page gets bounced. This can cause us to send bio's that have too many
segments to a driver.

The best fix is to always consider pages above q->bounce_pfn as seperate
segments. That's the conservative approach and the easy fix.

Problem identified and fixed by Herbert Xu.

22 years ago[PATCH] fix visws irq breakage
Andrey Panin [Thu, 6 Nov 2003 00:07:14 +0000 (16:07 -0800)]
[PATCH] fix visws irq breakage

This fixes visws subarch which was broken by asm-i386/hw_irq.h changes

22 years agoFix cut-and-paste error in radeonfb.c
Linus Torvalds [Wed, 5 Nov 2003 23:46:31 +0000 (15:46 -0800)]
Fix cut-and-paste error in radeonfb.c

From Ronald Lembcke.

22 years agoMerge bk://kernel.bkbits.net/davem/tg3-2.5
Linus Torvalds [Wed, 5 Nov 2003 07:45:32 +0000 (23:45 -0800)]
Merge bk://kernel.bkbits.net/davem/tg3-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[TG3]: Bump driver version and release date.
David S. Miller [Wed, 5 Nov 2003 06:49:32 +0000 (22:49 -0800)]
[TG3]: Bump driver version and release date.

22 years ago[TG3]: Fix bugs in ETHTOOL_SSET introduced by ethtool_ops conversion.
David S. Miller [Wed, 5 Nov 2003 06:46:25 +0000 (22:46 -0800)]
[TG3]: Fix bugs in ETHTOOL_SSET introduced by ethtool_ops conversion.
- Missing spin_lock*() calls before tp->link_config twiddling.
- Missing assignment to tp->link_config.autoneg

22 years ago[IRDA]: Fix IRQ save/restore handling in seq file handlers.
David S. Miller [Wed, 5 Nov 2003 04:52:55 +0000 (20:52 -0800)]
[IRDA]: Fix IRQ save/restore handling in seq file handlers.

IRDA was restoring IRQ flags in a different function from which they
were saved which explodes on certain platforms.  It did not need to
use _irq{save,restore}() anyways since the seqfile layer always invokes
these routines from user context with interrupts enabled, so using
plain spin_{lock,unlock}_irq() works just fine.

22 years ago[IPV6]: In ip6ip6 tunnel, user provides flowlabel in network byte order.
Ville Nuorvala [Wed, 5 Nov 2003 04:37:08 +0000 (20:37 -0800)]
[IPV6]: In ip6ip6 tunnel, user provides flowlabel in network byte order.

22 years ago[IPV6]: In ip6ip6 tunnel, set skb->h.raw after obtaining private copy.
Ville Nuorvala [Wed, 5 Nov 2003 04:36:10 +0000 (20:36 -0800)]
[IPV6]: In ip6ip6 tunnel, set skb->h.raw after obtaining private copy.

22 years ago[IPV6]: Fix /proc/sys/net/ipv6/icmp permissions.
Tim Shepard [Wed, 5 Nov 2003 04:28:33 +0000 (20:28 -0800)]
[IPV6]: Fix /proc/sys/net/ipv6/icmp permissions.

22 years ago[IRDA]: Fix IrLMP open leak.
Jean Tourrilhes [Wed, 5 Nov 2003 03:45:22 +0000 (19:45 -0800)]
[IRDA]: Fix IrLMP open leak.
- Prevent 'self' leak on error in irlmp_open.
  ASSERT is compiled in only with DEBUG option => risk = 0.

Original patch from Chris Wright.

22 years ago[IRDA]: Fix races between IRNET and PPP.
Jean Tourrilhes [Wed, 5 Nov 2003 03:42:34 +0000 (19:42 -0800)]
[IRDA]: Fix races between IRNET and PPP.
- Prevent sending status event to dead/kfree sockets
- Disable PPP access before deregistration
  PPP deregistration might sleep -> race condition

22 years ago[IRDA]: Fix two OOPSers in IrCOMM
Jean Tourrilhes [Wed, 5 Nov 2003 03:39:56 +0000 (19:39 -0800)]
[IRDA]: Fix two OOPSers in IrCOMM
- Do not do copy_from_user() under spinlock
- Always access self->skb under spinlock

Original patch from Martin Diehl.

22 years ago[IPV6]: Fix OOPS on NETDEV_CHANGENAME events.
Hideaki Yoshifuji [Wed, 5 Nov 2003 03:33:28 +0000 (19:33 -0800)]
[IPV6]: Fix OOPS on NETDEV_CHANGENAME events.

22 years ago[PATCH] Fix panic-at-boot
Matthew Wilcox [Wed, 5 Nov 2003 00:29:58 +0000 (16:29 -0800)]
[PATCH] Fix panic-at-boot

This fixes a panic-at-boot when ACPI Hotplug PCI is compiled in, but
ACPI is disabled.  It just makes sure that the list is properly
initialized statically instead of depending on runtime initialization
that may or may not happen.

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Tue, 4 Nov 2003 10:31:02 +0000 (02:31 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge davem@nuts.ninka.net:/disk1/davem/BK/net-2.5
David S. Miller [Tue, 4 Nov 2003 10:10:11 +0000 (02:10 -0800)]
Merge davem@nuts.ninka.net:/disk1/davem/BK/net-2.5
into kernel.bkbits.net:/home/davem/net-2.5

22 years agoMerge davem@nuts.ninka.net:/disk1/davem/BK/sparc-2.5
David S. Miller [Tue, 4 Nov 2003 10:06:58 +0000 (02:06 -0800)]
Merge davem@nuts.ninka.net:/disk1/davem/BK/sparc-2.5
into kernel.bkbits.net:/home/davem/sparc-2.5