24 Aug, 2005
3 commits
-
o Brown paperbag bug - ax25_findbyuid() was always returning a NULL pointer
as the result. Breaks ROSE completly and AX.25 if UID policy set to deny.o While the list structure of AX.25's UID to callsign mapping table was
properly protected by a spinlock, it's elements were not refcounted
resulting in a race between removal and usage of an element.Signed-off-by: Ralf Baechle DL5RB
Signed-off-by: David S. Miller -
The socket flag cleanups that went into 2.6.12-rc1 are basically oring
the flags of an old socket into the socket just being created.
Unfortunately that one was just initialized by sock_init_data(), so already
has SOCK_ZAPPED set. As the result zapped sockets are created and all
incoming connection will fail due to this bug which again was carefully
replicated to at least AX.25, NET/ROM or ROSE.In order to keep the abstraction alive I've introduced sock_copy_flags()
to copy the socket flags from one sockets to another and used that
instead of the bitwise copy thing. Anyway, the idea here has probably
been to copy all flags, so sock_copy_flags() should be the right thing.
With this the ham radio protocols are usable again, so I hope this will
make it into 2.6.13.Signed-off-by: Ralf Baechle DL5RB
Signed-off-by: David S. Miller
23 Aug, 2005
1 commit
20 Aug, 2005
3 commits
-
This bug could cause oopses and page state corruption, because ncpfs
used the generic page-cache symlink handlign functions. But those
functions only work if the page cache is guaranteed to be "stable", ie a
page that was installed when the symlink walk was started has to still
be installed in the page cache at the end of the walk.We could have fixed ncpfs to not use the generic helper routines, but it
is in many ways much cleaner to instead improve on the symlink walking
helper routines so that they don't require that absolute stability.We do this by allowing "follow_link()" to return a error-pointer as a
cookie, which is fed back to the cleanup "put_link()" routine. This
also simplifies NFS symlink handling.Signed-off-by: Linus Torvalds
-
GCC 4.x really dislikes the games we are playing in
unaligned.c, and the cleanest way to fix this is to
move things into assembler.Noted by Al Viro.
Signed-off-by: David S. Miller
19 Aug, 2005
12 commits
-
Not only was this unused, but its somewhat eccentric declaration
of "static inline const unsigned long" gives gcc4 heartburn.Signed-off-by: Tony Luck
-
BCM5785 (HT1000) is a Opteron Southbridge from Serverworks/Broadcom that
incorporates a single channel ATA100 IDE controller that is functionally
identical to the Serverworks CSB6 IDE controller. This patch adds support
for the new PCI device ID and also the support for this controller.Signed-off-by: Narendra Sankar
Acked-by: Jeff Garzik
Signed-off-by: Bartlomiej Zolnierkiewicz -
Adds support for Netcell Revolution to pci-ide generic driver by including
it in the list of devices matched. Includes the Revolution in the list of
simplex devices forced into DMA mode.Signed-off-by: Matt Gillette
Cc: Bartlomiej Zolnierkiewicz
Cc: Jeff Garzik
Signed-off-by: Andrew Morton
Signed-off-by: Bartlomiej Zolnierkiewicz -
Signed-off-by: Grant Coady
Signed-off-by: Bartlomiej Zolnierkiewicz -
Fixes the incorrect DCR base value for the 440SP SRAM controller.
Signed-off-by: Matt Porter
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Fixes build on 4xx stb03xxx when general purpose dma engine support is
enabled.Signed-off-by: Matt Porter
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Add inotify and ioprio syscall stubs to SH64.
Signed-off-by: Robert Love
Acked-by: Paul Mundt
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Add inotify and ioprio syscall stubs to SH.
Signed-off-by: Robert Love
Acked-by: Paul Mundt
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Down the road we want to eliminate the use of the global kernel lock entirely
from the NFS client. To do this, we need to protect the fields in the
nfs_inode structure adequately. Start by serializing updates to the
"cache_validity" field.Note this change addresses an SMP hang found by njw@osdl.org, where processes
deadlock because nfs_end_data_update and nfs_revalidate_mapping update the
"cache_validity" field without proper serialization.Test plan:
Millions of fsx ops on SMP clients. Run Nick Wilson's breaknfs program on
large SMP clients.Signed-off-by: Chuck Lever
Cc: Trond Myklebust
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Introduce atomic bitops to manipulate the bits in the nfs_inode structure's
"flags" field.Using bitops means we can use a generic wait_on_bit call instead of an ad hoc
locking scheme in fs/nfs/inode.c, so we can remove the "nfs_i_wait" field from
nfs_inode at the same time.The other new flags field will continue to use bitmask and logic AND and OR.
This permits several flags to be set at the same time efficiently. The
following patch adds a spin lock to protect these flags, and this spin lock
will later cover other fields in the nfs_inode structure, amortizing the cost
of using this type of serialization.Test plan:
Millions of fsx ops on SMP clients.Signed-off-by: Chuck Lever
Cc: Trond Myklebust
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Certain bits in nfsi->flags can be manipulated with atomic bitops, and some
are better manipulated via logical bitmask operations.This patch splits the flags field into two. The next patch introduces atomic
bitops for one of the fields.Test plan:
Millions of fsx ops on SMP clients.Signed-off-by: Chuck Lever
Cc: Trond Myklebust
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
18 Aug, 2005
2 commits
17 Aug, 2005
5 commits
-
Paulus suggested that we put xLparMap in its own .c file so that we can
generate a .s file to be included into head.S. This doesn't get around
the problem of having it at a fixed address, but it makes it more
palatable.It would be good if this could be included in 2.6.13 as it solves our
build problems with various versions of binutils and gcc. In
particular, it allows us to build an iSeries kernel on Debian unstable
using their biarch compiler.This has been built and booted on iSeries and built for pSeries and g5.
Signed-off-by: Stephen Rothwell
Signed-off-by: Paul Mackerras
Signed-off-by: Linus Torvalds -
On the 6700/6702 PXH part, a MSI may get corrupted if an ACPI hotplug
driver and SHPC driver in MSI mode are used together.This patch will prevent MSI from being enabled for the SHPC as part of
an early pci quirk, as well as on any pci device which sets the no_msi
bit.Signed-off-by: Kristen Carlson Accardi
Signed-off-by: Greg Kroah-Hartman
Signed-off-by: Linus Torvalds -
Chuck Ebbert noticed that the desc_empty macro is incorrect. Fix it.
Thankfully, this is not used as a security check, but it can falsely
overwrite TLS segments with carefully chosen base / limits. I do not
believe this is an issue in practice, but it is a kernel bug.Signed-off-by: Zachary Amsden
Signed-off-by: Chris Wright[ x86-64 had the same problem, and the same fix. Linus ]
Signed-off-by: Linus Torvalds
-
When the client performs an exclusive create and opens the file for writing,
a Netapp filer will first create the file using the mode 01777. It does this
since an NFSv3/v4 exclusive create cannot immediately set the mode bits.
The 01777 mode then gets put into the inode->i_mode. After the file creation
is successful, we then do a setattr to change the mode to the correct value
(as per the NFS spec).The problem is that nfs_refresh_inode() no longer updates inode->i_mode, so
the latter retains the 01777 mode. A bit later, the VFS notices this, and calls
remove_suid(). This of course now resets the file mode to inode->i_mode & 0777.
Hey presto, the file mode on the server is now magically changed to 0777. Duh...Fixes http://bugzilla.linux-nfs.org/show_bug.cgi?id=32
Signed-off-by: Trond Myklebust
Signed-off-by: Linus Torvalds
16 Aug, 2005
3 commits
-
Signed-off-by: Trond Myklebust
Signed-off-by: Linus Torvalds -
Proper parentheses around arguments needed, especially as the macros use
a high-precedence cast operator on the argument. -
This adds a MOVE_SELF event to inotify. It is sent whenever the inode
you are watching is moved. We need this event so that we can catch
something like this:- app1:
watch /etc/mtab- app2:
cp /etc/mtab /tmp/mtab-work
mv /etc/mtab /etc/mtab~
mv /tmp/mtab-work /etc/mtabapp1 still thinks it's watching /etc/mtab but it's actually watching
/etc/mtab~.Signed-off-by: John McCutchan
Signed-off-by: Robert Love
Signed-off-by: Linus Torvalds
15 Aug, 2005
2 commits
-
Signed-off-by: Robert Love
Signed-off-by: Russell King -
This reverts commits
71db63acff69618b3d9d3114bd061938150e146b
[PATCH] increase PCIBIOS_MIN_IO on x86and
0b2bfb4e7ff61f286676867c3508569bea6fbf7a
ACPI: increase PCIBIOS_MIN_IO on x86since Lukas Sandströ reports that this breaks
his on-board nvidia audio.We should re-visit this later. For now we revert the change
Signed-off-by: Linus Torvalds
14 Aug, 2005
1 commit
-
There was a rather silly and embarrassing typo in the sh _syscall6().
For the syscall ABI we have the trapa value specified as 0x10 + number
of arguments, this was being set incorrectly in the _syscall6() case
which ended up causing some problems for users.Signed-off-by: Paul Mundt
Signed-off-by: Linus Torvalds
13 Aug, 2005
1 commit
12 Aug, 2005
3 commits
-
This fixes a race during initialization with the NAPI softirq
processing by using an RCU approach.This race was discovered when refill_skbs() was added to
the setup code.Signed-off-by: Matt Mackall
Signed-off-by: David S. Miller -
Add limited retry logic to netpoll_send_skb
Each time we attempt to send, decrement our per-device retry counter.
On every successful send, we reset the counter.We delay 50us between attempts with up to 20000 retries for a total of
1 second. After we've exhausted our retries, subsequent failed
attempts will try only once until reset by success.Signed-off-by: Matt Mackall
Signed-off-by: David S. Miller -
There are many instances of
skb->protocol = htons(ETH_P_*);
skb->protocol = __constant_htons(ETH_P_*);
and
skb->protocol = *_type_trans(...);Most of *_type_trans() are already endian-annotated, so, let's shift
attention on other warnings.Signed-off-by: Alexey Dobriyan
Signed-off-by: David S. Miller
11 Aug, 2005
3 commits
-
This patch removes the following stupid compile error that happens
when CONFIG_HOTPLUG is not defined on ia64.arch/ia64/kernel/built-in.o(.text+0x712): In function `acpi_unregister_ioapic':
: undefined reference to `iosapic_remove'Signed-off-by: Kenji Kaneshige
Signed-off-by: Tony Luck
10 Aug, 2005
1 commit
-
Patch from Ben Dooks
Rename the s3c2410_report_oc() to s3c2410_usb_report_oc()
as this is an usb specific function.
Change port power on the usb-simtec implementation to only
power up the output if both are set, as per the usb 1.1
specificationSigned-off-by: Ben Dooks
Signed-off-by: Russell King