Okay, since now corruption happens and there are some other issues to be
resolved ("bad: scheduling while atomic" and "/proc/ide/hdX/identify")
better set it by default to n for 2.5.74, also mark it EXPERIMENTAL.
Alan Stern [Tue, 1 Jul 2003 06:45:37 +0000 (23:45 -0700)]
[PATCH] USB: Reconcile unusual_devs.h in 2.4 and 2.5
This patch for 2.5 copies into unusual_devs.h an entry that is present in
2.4 but missing here. It also adds back the IGNORE_SER flag with a dummy
value, just for backward compatibility.
Kay Sievers [Tue, 1 Jul 2003 06:45:23 +0000 (23:45 -0700)]
[PATCH] USB: usb-skeleton.c usb_buffer_free() not called
dev->udev was set to NULL to indicate a device disconnect but we need
this value for usb_buffer_free() when device is still opened and cleanup is
delayed until skel_release().
I've added a dev->present for preventing device read, write and ioctl.
Also URB_NO_DMA_MAP is changed to URB_NO_TRANSFER_DMA_MAP and a unused
var is removed.
Add capability flag for MO drives. Since ATAPI MOs are now recognized
by the ide-cd driver, it is useful to have a capability flag to be able
to tell MO drives from other drives (needed for later write support).
Rusty Russell [Tue, 1 Jul 2003 02:35:08 +0000 (19:35 -0700)]
[PATCH] Identify Code Section Of Modules for kallsyms
Remember the size of the SHF_EXECINSTR sections, which are conveniently
at the start of the modules, and use that to more reliably implement
module_text_address().
Rework the interrupt handling code for the m68knommu 68360 sub-architecture.
This is inline with the interrupt changes to the other m68knommu CPU's.
Makes this code be the primary interrupt setup for a 68360 based kernel,
not just a set of support functions.
Joy Latten [Tue, 1 Jul 2003 21:32:01 +0000 (07:32 +1000)]
[IPV6] Make ipsec tunnel work with ext hdrs
I noticed that using extensions headers along with IPsecv6 tunnel mode did
not work in 2.5.73 + patch-2.5.73-bk3. The following patch
checks "nexthdr" instead of "iph->nexthdr" which could be an
extension header. I tested this with tunnel mode and transport mode
with and without extension headers and it worked ok.
1. STP protocol has no security, so malcontents can fuck with the
bridge's topology. The fixes are to ship with STP turned off
to protect the ignorant, and run STP packets through ebtables
netfilter for the smart.
Got this one via a russian hacker "Oleg K. Artemjev" <olli@rbauto.ru>
before he published the paper.
Bridge netfilter still needs work to give a nice face on this
but this patch gives the hooks to filter.
2. STP input processing was lax in it's length checking so I bet
you could make up a bomb packet.
My inspection while doing #1.
3. Forwarding table could be abused by sending forged packets with
bogus source address same as the local host. This came via
Lennart from Jerry Kreuscher <jerrykr@mindspring.com> who ran into
it by mistake.
Linus Torvalds [Mon, 30 Jun 2003 13:13:53 +0000 (06:13 -0700)]
Fix the code that checks for PCI IDE controller "native" vs "legacy"
modes.
It used to think that IDE controllers that weren't marked as "IDE storage"
PCI class (eg CMD IDE RAID controllers mark themselves as "RAID storage")
were always using legacy mode interrupt routing, which is bogus. In fact,
the whole native vs legacy thing only makes sense for the IDE storage class,
so fix the test to match.
James Bottomley [Mon, 30 Jun 2003 10:59:30 +0000 (03:59 -0700)]
[PATCH] move sg_dma_ macros out of asm-i386/pci.h
These macros belong in asm-i386/scatterlist.h instead.
As the headers are disentangled this has shown up as a problem with my
MCA SCSI drivers since they no-longer include asm/pci.h in any form but
need to traverse the scatterlist.
Russell King [Mon, 30 Jun 2003 22:16:27 +0000 (23:16 +0100)]
[PCMCIA] Add work-around for bouncy card detect signals.
Add work-around for i82365-based socket drivers to the core PCMCIA
code. Since insert processing is not a time critical event, we can
afford to delay (by sleeping) these for everyone.
Russell King [Mon, 30 Jun 2003 22:04:09 +0000 (23:04 +0100)]
[PCMCIA] Ref-count the socket driver module on card insertion/removal.
Get/Put module when we insert and remove a card. This avoids a
potential deadlock when socket drivers are unloaded, and we have
a cardbus card known to the system.
Russell King [Mon, 30 Jun 2003 19:22:11 +0000 (20:22 +0100)]
[PCMCIA] Move "owner" field to pcmcia_socket.
Move ->owner field from socket operations to pcmcia_socket. (This
change is mainly for the SA11xx drivers, which use a core driver
for the chip, and a separate module for all the machine specific
bits.)
Matthew Dharm [Mon, 30 Jun 2003 04:01:44 +0000 (21:01 -0700)]
[PATCH] USB storage: logic cleanup
This patch cleans up the logic involved in setting URB flags a bit so it's
more evident that some flags are always set and other flags are only set
under certain conditons.
Matthew Dharm [Mon, 30 Jun 2003 04:00:45 +0000 (21:00 -0700)]
[PATCH] USB storage: General purpose I/O buffer allocation and management
This patch makes our private I/O buffer allocated such that it's pre-mapped
for DMA. We then add some logic to make sure that we don't try to re-map
it.
We also make the size of the buffer large enough for other sub-drivers,
which will be converted shortly.
Matthew Dharm [Mon, 30 Jun 2003 03:59:49 +0000 (20:59 -0700)]
[PATCH] USB storage: Cosmetic cleanups
This is some cosmetic cleanups. Things like changing dr to cr (they used
to stand for usb_devrequest, which is now usb_ctrlrequest), using strlcpy
instead of strncpy, and modifying some comments.
Matthew Dharm [Mon, 30 Jun 2003 03:59:06 +0000 (20:59 -0700)]
[PATCH] USB storage: create private I/O buffer
This patch creates a private I/O buffer for the 'core' subdrivers. This
allows us to fix all cases of DMAing to/from the stacks, statics, or other
bad places.
Matthew Dharm [Mon, 30 Jun 2003 03:58:29 +0000 (20:58 -0700)]
[PATCH] USB storage: avoid sending URBs when disconnecting
This patch avoids sending URBs which are part of the reset system when the
device is being disconnected. It also makes the control thread avoid
starting anything for a device in that state.
Matthew Dharm [Mon, 30 Jun 2003 03:58:01 +0000 (20:58 -0700)]
[PATCH] USB storage: create associate_dev(), more US_*_DEVICE printout
This patch creates an associate_dev(), which is the mirror to
disassociate_dev(). It also adds some more printout when identifiying
devices that qualify for US_*_DEVICE codes so we need less interaction with
the reporting user.
Ivan Kokshaysky [Mon, 30 Jun 2003 02:49:52 +0000 (19:49 -0700)]
[ALPHA] Set HAE-4 for SABLE/LYNX
From Jay Estabrook:
> Here's a real short one that fixes a GENERIC build problem introduced
> in pre2, and finalizes the SABLE/LYNX support setting of HAE-4, making
> X servers finally work on those platforms.
Herbert Xu [Mon, 30 Jun 2003 12:28:59 +0000 (22:28 +1000)]
[IPSEC] split xfrm_state_replace + fixes
Split xfrm_state_replace into xfrm_state_add and xfrm_state_replace.
Fixes:
1. Only update update lifetime and encap options if the state is valid.
2. Disallow updates to states that do not exist.
3. Bail if afinfo cannot be found.
This brings SADB_UPDATE in line with what is required by RFC2367.
It is also needed by SFS NAT-T support as it needs to update valid
states when the encap ports move.
I've tweaked the logic slightly so that SADB_UPDATE will fail on a
larval state that hasn't undergone SADB_GETSPI. This is what RFC2367
calls for and it simplifies the code in that we don't have to call
find_acq for SADB_UPDATE.
This doesn't affect any of the three KMs as they either don't use
SADB_UPDATE or call SADB_GETSPI before doing an update.
Kai Mäkisara [Sun, 29 Jun 2003 15:41:54 +0000 (10:41 -0500)]
[PATCH] scsi_ioctl_send_command fix
The SCSI_IOCTL_SEND_COMMAND ioctl does not work in 2.5.73-bk7. The
following patch (possibly mangled by my mail client) does fix the problem
(introduced in 2.5.73):
James Bottomley [Sun, 29 Jun 2003 15:16:55 +0000 (10:16 -0500)]
Fix scsi device starvation handling
Doing some debugging after the SDET failure, I found that
if we reject a command at zero depth, we can get into the
infinite loop where we refuse a command to a LUN because it
is starved, but there's no returning command to run the SCSI
queues and fix the starvation.
The solution is to accept the command and remove the LUN from
the starved list.
Ben Collins [Sun, 29 Jun 2003 04:51:20 +0000 (21:51 -0700)]
[PATCH] Update IEEE1394 (r986)
ETH1394 : - Minor cleanups.
- Fix incorrect error handling with no broadcast channel.
- Set max/default MTU to 1500.
- Fix broken spinlock handling on device open.
IEEE1394 : Make bus-nodeid printk's of a consistent format.
OHCI1394 : Change one printk to a verbose/debug only message.