]> git.hungrycats.org Git - linux/log
linux
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

22 years ago[SPARC64]: Preserve cache/side-effect PTE bits in pte_modify().
David S. Miller [Tue, 4 Nov 2003 09:10:45 +0000 (01:10 -0800)]
[SPARC64]: Preserve cache/side-effect PTE bits in pte_modify().

Bug noticed by Russell King.

22 years ago[PATCH] Fix crash-on-boot in init_l440gx SMP
Randy Dunlap [Tue, 4 Nov 2003 08:32:35 +0000 (00:32 -0800)]
[PATCH] Fix crash-on-boot in init_l440gx SMP

ioremap_nocache() doesn't need to check for physical address
wraps because __ioremap() has already done that;
fix calculation of npages to handle non-aligned phys_addr;

22 years ago[IRDA]: Fix SKB leaks in af_irda.c, from Arnaldo Carvalho de Melo.
Jean Tourrilhes [Tue, 4 Nov 2003 08:29:54 +0000 (00:29 -0800)]
[IRDA]: Fix SKB leaks in af_irda.c, from Arnaldo Carvalho de Melo.

22 years ago[IPV4]: Initialize ARP seqfile state in start() method.
David S. Miller [Tue, 4 Nov 2003 06:22:47 +0000 (22:22 -0800)]
[IPV4]: Initialize ARP seqfile state in start() method.

22 years ago[IRDA]: Fix irlmp seqfile, initialize the iterator in start.
Stephen Hemminger [Tue, 4 Nov 2003 06:17:40 +0000 (22:17 -0800)]
[IRDA]: Fix irlmp seqfile, initialize the iterator in start.

22 years ago[NETLINK]: Initialize nl_pad in getname and recvmsg, noticed by Uli Drepper.
David S. Miller [Tue, 4 Nov 2003 03:48:53 +0000 (19:48 -0800)]
[NETLINK]: Initialize nl_pad in getname and recvmsg, noticed by Uli Drepper.

22 years ago[NETFILTER]: Fix ip_queue_maxlen sysctl.
Harald Welte [Tue, 4 Nov 2003 03:35:29 +0000 (19:35 -0800)]
[NETFILTER]: Fix ip_queue_maxlen sysctl.

22 years ago[NETFILTER]: get_unique_tuple doesn't always return unique tuple.
Rusty Russell [Tue, 4 Nov 2003 03:32:55 +0000 (19:32 -0800)]
[NETFILTER]: get_unique_tuple doesn't always return unique tuple.

get_unique_tuple doesn't check that the tuple is unique if it finds
a hash_by_src match.

22 years ago[EBTABLES]: Fix ebt_limit for HZ=1000
Tom Marshall [Tue, 4 Nov 2003 03:30:09 +0000 (19:30 -0800)]
[EBTABLES]: Fix ebt_limit for HZ=1000

22 years ago[PATCH] fix rq->flags use in ide-tape.c
Bartlomiej Zolnierkiewicz [Tue, 4 Nov 2003 00:01:30 +0000 (16:01 -0800)]
[PATCH] fix rq->flags use in ide-tape.c

Noticed by Stuart_Hayes@Dell.com:

I've noticed that, in the 2.6 (test 9) kernel, the "cmd" field (of type int)
in struct request has been removed, and it looks like all of the code in
ide-tape has just had a find & replace run on it to replace any instance of
rq.cmd or rq->cmd with rq.flags or rq->flags.

The values being put into "cmd" in 2.4 (now "flags", in 2.6) by ide-tape are
8-bit numbers, like 90, 91, etc... and the actual flags that are being used
in "flags" cover the low 23 bits.  So, not only do the flags get wiped out
when, say, ide-tape assigns, say, 90 to "flags", but also the 90 gets wiped
out when one of the flags is modified.

I noticed this, because ide-tape checks this value, and spews error codes
when it isn't correct--continuously--as soon as you load the module, because
ide-tape is calling ide_do_drive_cmd with an action of ide_preempt, which
causes ide_do_drive_cmd to set the REQ_PREEMPT flag, so "flags" isn't the
same when it gets back to idetape_do_request.

22 years ago[PATCH] fix ide-tape oops
Bartlomiej Zolnierkiewicz [Tue, 4 Nov 2003 00:01:16 +0000 (16:01 -0800)]
[PATCH] fix ide-tape oops

Set filp->private_data in idetape_chrdev_open() to point to a opened drive,
otherwise driver oopses during future access to tape character device.

Thanks to Stef van der Made <svdmade@planet.nl> for testing ide-tape fixes.

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

22 years ago[PATCH] Fix ISAPNP netdev initialization
Adam Belay [Mon, 3 Nov 2003 15:06:20 +0000 (07:06 -0800)]
[PATCH] Fix ISAPNP netdev initialization

Moving isapnp further down in the bus initialization obviously sparked
some new problems.

Instead, remove the legacy netdev probing function from dev.c and give
it its own initcall later in the cycle.

22 years ago[PATCH] ia64: don't access per-CPU data of off-line CPUs
Kochi Takayoshi [Mon, 3 Nov 2003 14:31:24 +0000 (06:31 -0800)]
[PATCH] ia64: don't access per-CPU data of off-line CPUs

This patch prevents a crash that happens when per-CPU data is allocated
only for CPUs that are online.

22 years agoMerge nuts.ninka.net:/disk1/davem/BK/sparcwork-2.5
David S. Miller [Mon, 3 Nov 2003 09:31:36 +0000 (01:31 -0800)]
Merge nuts.ninka.net:/disk1/davem/BK/sparcwork-2.5
into nuts.ninka.net:/disk1/davem/BK/sparc-2.5

22 years ago[PATCH] drivers/pci DEBUG build fix
Ralf Bächle [Mon, 3 Nov 2003 08:53:17 +0000 (00:53 -0800)]
[PATCH] drivers/pci DEBUG build fix

Trivial build fix for the debug code in drivers PCI.  Seems like nobody
has had to use this code in a long time.

22 years ago[PATCH] ia64: fix bug in SN2 sn_pci_map_sg that causes MCA
Alan Mayer [Mon, 3 Nov 2003 06:37:03 +0000 (22:37 -0800)]
[PATCH] ia64: fix bug in SN2 sn_pci_map_sg that causes MCA

If sg->dma_address is set, we try to do a __pa() on a dma_address,
then, later, create a dma_addresss from a munged dma_address.  When
this bogus dma_address is used by the card, it results in MCAs.

22 years agoMerge nuts.ninka.net:/disk1/davem/BK/network-2.5
David S. Miller [Mon, 3 Nov 2003 06:29:32 +0000 (22:29 -0800)]
Merge nuts.ninka.net:/disk1/davem/BK/network-2.5
into nuts.ninka.net:/disk1/davem/BK/net-2.5

22 years agoOnly truncate file types that can be truncated on minixfs.
Linus Torvalds [Mon, 3 Nov 2003 01:44:08 +0000 (17:44 -0800)]
Only truncate file types that can be truncated on minixfs.

Only regular files, directories and symbolic links can have any
blocks allocated to them - other types of files have different
metadata in their inodes and should not get to the truncation
paths. Enforce this in fs/minix/inode.c.

Without this, deleting a block or character device can cause
minix filesystem corruption. Noted by Konstantin Boldyshev.

22 years agoAvoid user space access with interrupts disabled in vm86 support.
Linus Torvalds [Sun, 2 Nov 2003 03:16:06 +0000 (19:16 -0800)]
Avoid user space access with interrupts disabled in vm86 support.

Getting a signal while in vm86 caused warnings because we still had
interrupts disabled - for no good reason. Enable interrupts before
accessing user space.

22 years ago[PATCH] More SiS AGP ids
Thomas Winischhofer [Sun, 2 Nov 2003 02:00:04 +0000 (18:00 -0800)]
[PATCH] More SiS AGP ids

This extends the agppart table with three new SiS chipsets that must be
handled as the other ones.  No actual code changes.

22 years ago[LLC]: fix client side after sockaddr_llc fixup
Arnaldo Carvalho de Melo [Sat, 1 Nov 2003 15:15:59 +0000 (07:15 -0800)]
[LLC]: fix client side after sockaddr_llc fixup