]> git.neil.brown.name Git - history.git/log
history.git
21 years ago[PATCH] Force read implies exec for all 32bit processes in x86-64
Andi Kleen [Thu, 10 Feb 2005 06:40:57 +0000 (22:40 -0800)]
[PATCH] Force read implies exec for all 32bit processes in x86-64

This effectively enables executable stack and executable heap for all 32bit
programs on x86-64, except if noexec32=on is specified.

This does not support changing this with personality right now, this would
need more intrusive changes.  A 64bit process will always turn it off and a
32bit process turn it on.

Also readd the noexec32=on option to turn this off and fix a minor bug in
noexec=...  (would be reported as unknown option)

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] OProfile: exit.text referenced in init.text
Zwane Mwaikambo [Thu, 10 Feb 2005 06:40:45 +0000 (22:40 -0800)]
[PATCH] OProfile: exit.text referenced in init.text

The linker doesn't complain, but i got this error on ARM which has similar
code.

oprofile_arch_exit: discarded in section `.exit.text' from arch/arm/oprofile/built-in.o
arch/arm/oprofile/built-in.o(.init.text+0x4c): In function `oprofile_init':
: relocation truncated to fit: R_ARM_PC24 oprofile_arch_exit

oprofile_arch_init()
<error path>
oprofile_arch_exit()
__exit nmi_exit()
__exit exit_driverfs()

Signed-off-by: Zwane Mwaikambo <zwane@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] binfmt_elf: clearing bss may fail
Pavel Machek [Thu, 10 Feb 2005 06:40:30 +0000 (22:40 -0800)]
[PATCH] binfmt_elf: clearing bss may fail

So we discover that Borland's Kylix application builder emits weird elf
files which describe a non-writeable bss segment.

So remove the clear_user() check at the place where we zero out the bss.  I
don't _think_ there are any security implications here (plus we've never
checked that clear_user() return value, so whoops if it is a problem).

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] Fix shmget for ppc64, s390-64 & sparc64.
Martin Schwidefsky [Thu, 10 Feb 2005 06:40:13 +0000 (22:40 -0800)]
[PATCH] Fix shmget for ppc64, s390-64 & sparc64.

The second parameter of the sys_ipc system wrapper on ppc64, s390-64 and
sparc64 is an "int".  sys_shmget gets called with this 32 bit value as the
size parameter.  This limits the maximum shared memory segment on these
three architectures to 2GB.  To fix this the second parameter is declared
as an "unsigned long" and is then casted to the type required by the The
same int vs.  unsigned long bug is fixed for sys_msgsnd and sys_msgrcv as
well.

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>
21 years ago[PATCH] Fix compat shmget overflow
Andi Kleen [Thu, 10 Feb 2005 06:39:59 +0000 (22:39 -0800)]
[PATCH] Fix compat shmget overflow

This fixes an incorrect sign extension in the compat layer that breaks
32bit shmget that are >2GB.  sys_shmget has a signed size_t size argument,
and the int size argument coming from 32bit user space would get sign
extended to 64bit, which is wrong.

I fixed it on all compat architectures, except PPC64 which was already ok.

It was originally debugged and fixed by Karl Rister @ IBM for SLES9 on x86-64.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] alpha: add missing dma_mapping_error
Stefan Knoblich [Thu, 10 Feb 2005 06:39:42 +0000 (22:39 -0800)]
[PATCH] alpha: add missing dma_mapping_error

Attached patch defines dma_mapping_error on alpha.  Without this
libata-core.c won't compile.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] L18 flash corruption fix
Nicolas Pitre [Thu, 10 Feb 2005 06:39:28 +0000 (22:39 -0800)]
[PATCH] L18 flash corruption fix

Another fix to the put_chip() concurrency logic.

Problem was occurring when:

1) one thread was erasing a block in partition x;
2) another thread suspended the erase in order to write to
   partition y;
3) a third thread came along to read a different block from
   partition x and, when it called put_chip(), chip->oldstate was
   FL_ERASING and the erase (mistakenly) resumed;
4) the write in partition y obviously failed at that point.

Incidentally, the fix for this problem also fixed the case where
suspending writes for MTD XIP usage was not working properly.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years agoMerge bk://gkernel.bkbits.net/misc-2.6
Linus Torvalds [Thu, 10 Feb 2005 02:51:07 +0000 (18:51 -0800)]
Merge bk://gkernel.bkbits.net/misc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[gen_init_cpio] When outputting a buffer, don't use char-at-a-time I/O.
Jeff Garzik [Thu, 10 Feb 2005 08:16:50 +0000 (03:16 -0500)]
[gen_init_cpio] When outputting a buffer, don't use char-at-a-time I/O.

21 years agoMerge bk://linux-scsi.bkbits.net/scsi-rc-fixes-2.6
Linus Torvalds [Thu, 10 Feb 2005 02:47:29 +0000 (18:47 -0800)]
Merge bk://linux-scsi.bkbits.net/scsi-rc-fixes-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[PATCH] cciss: handle scsi_add_host failure
Christoph Hellwig [Thu, 10 Feb 2005 04:32:03 +0000 (23:32 -0500)]
[PATCH] cciss: handle scsi_add_host failure

Signed-off-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
21 years agoqla2xxx: fix BUG's for smp_processor_id() on interrupt
James Bottomley [Thu, 10 Feb 2005 04:30:32 +0000 (23:30 -0500)]
qla2xxx: fix BUG's for smp_processor_id() on interrupt

From: Andrew Vasquez <andrew.vasquez@qlogic.com>

replace them with _smp_processor_id()

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
21 years ago[PATCH] sonypi: add fan and temperature status/control
Stelian Pop [Thu, 10 Feb 2005 01:48:07 +0000 (17:48 -0800)]
[PATCH] sonypi: add fan and temperature status/control

1. FAN Status/Control: you can now get the fan status (running or not) and
   also set the fan speed (for <5 seconds only). The problem is that there
   is an auto regulator that kicks in within about 5 seconds after that to
   restart the fan if it is above a threshold temperature (39 Degree C in
   my Vaio). It is useful just to get the fan status (primarily). It also
   appears that you can change the speed by increasing the values (much
   like the LCD control) - there are effectively only about 6 speeds (it
   seems - not sure, but from what I've played with on my Vaio).

2. Temperature: you can get the current temperature (same as reported by
   ACPI). This is primarily useful for APM users (since ACPI already gives
   this). I have used this to detect when the fan comes on in my Vaio (39
   Degree C).

From: Narayanan R S <nars@kadamba.org>
Signed-off-by: Stelian Pop <stelian@popies.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] sonypi: fold the contents of sonypi.h into sonypi.c
Stelian Pop [Thu, 10 Feb 2005 01:47:54 +0000 (17:47 -0800)]
[PATCH] sonypi: fold the contents of sonypi.h into sonypi.c

Fold the contents of sonypi.h into sonypi.c making some structures static.

Partly-from: Adrian Bunk <bunk@stusta.de>
Suggested-by: Dmitry Torokhov <dtor_core@ameritech.net>
Signed-off-by: Stelian Pop <stelian@popies.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] sonypi: use MISC_DYNAMIC_MINOR in miscdevice.minor assignment.
Stelian Pop [Thu, 10 Feb 2005 01:47:37 +0000 (17:47 -0800)]
[PATCH] sonypi: use MISC_DYNAMIC_MINOR in miscdevice.minor assignment.

Use MISC_DYNAMIC_MINOR in miscdevice.minor assignment.

Patch-from: Olaf Hering <olh@suse.de>
Signed-off-by: Stelian Pop <stelian@popies.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] sonypi: add another HELP button event
Stelian Pop [Thu, 10 Feb 2005 01:47:23 +0000 (17:47 -0800)]
[PATCH] sonypi: add another HELP button event

Add another HELP button event.
Increment the version number.

Signed-off-by: Stelian Pop <stelian@popies.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] sonypi: replace schedule_timeout() with msleep()
Stelian Pop [Thu, 10 Feb 2005 01:47:08 +0000 (17:47 -0800)]
[PATCH] sonypi: replace schedule_timeout() with msleep()

Replace schedule_timeout() with msleep() - from janitors.

Signed-off-by: Stelian Pop <stelian@popies.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] [ALSA] Add missing FORWARD ioctl
Takashi Iwai [Wed, 9 Feb 2005 23:35:00 +0000 (15:35 -0800)]
[PATCH] [ALSA] Add missing FORWARD ioctl

Added the missing PCM FORWARD ioctl.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] [ALSA] Fix struct alignment on PPC64
Takashi Iwai [Wed, 9 Feb 2005 23:34:46 +0000 (15:34 -0800)]
[PATCH] [ALSA] Fix struct alignment on PPC64

Fixed the struct size mismatch (due to alignment) of
snd_ctl_elem_value_t for PPC64 and SPARC64.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] [ALSA] AC'97 Audio support for Intel ICH7
Takashi Iwai [Wed, 9 Feb 2005 23:34:32 +0000 (15:34 -0800)]
[PATCH] [ALSA] AC'97 Audio support for Intel ICH7

This patch adds the ICH7 AC'97 DID the the intel8x0.c AC'97 audio
driver. This patch was build against 2.6.11-rc1.

Signed-off-by: Jason Gaston <Jason.d.gaston@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] [ALSA] Enable HP jack sense for FSC Scenic-W
Takashi Iwai [Wed, 9 Feb 2005 23:34:17 +0000 (15:34 -0800)]
[PATCH] [ALSA] Enable HP jack sense for FSC Scenic-W

Enable 'Headphone Jack Sense' control on FSC Scenic-W as default, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] [ALSA] Fix silent output on some machines with AD1981x codecs
Takashi Iwai [Wed, 9 Feb 2005 23:34:04 +0000 (15:34 -0800)]
[PATCH] [ALSA] Fix silent output on some machines with AD1981x codecs

Fixed the default state of 'Headphone Jack Sense' switch on AD1981x
codecs.  Setting this on affects the output of some machines (e.g.
Thindpads).

The default value is set on only hardwares which are known to work.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] [ALSA] Special AC97 patch for ASUS W1000/CMI9739 laptop
Takashi Iwai [Wed, 9 Feb 2005 23:33:52 +0000 (15:33 -0800)]
[PATCH] [ALSA] Special AC97 patch for ASUS W1000/CMI9739 laptop

This patch fixes sound output on the ASUS W1000 laptop with the CMI9739
chip. It wrongly reports that it has a SPDIF in, when in fact we wish to
use the EAPD pin.

Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] [ALSA] Add quirk for HP nc8000
Takashi Iwai [Wed, 9 Feb 2005 23:33:38 +0000 (15:33 -0800)]
[PATCH] [ALSA] Add quirk for HP nc8000

Added ac97 quirk for HP nc8000.
The list is sorted again.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] [ALSA] Add quirk for HP pavilion ZV5030US
Takashi Iwai [Wed, 9 Feb 2005 23:33:23 +0000 (15:33 -0800)]
[PATCH] [ALSA] Add quirk for HP pavilion ZV5030US

Added ac97 quirk for HP Pavilion ZV5030US to bind the control with
mute-LED.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years agoMerge http://lia64.bkbits.net/linux-ia64-release-2.6.11
Linus Torvalds [Wed, 9 Feb 2005 05:20:26 +0000 (21:20 -0800)]
Merge http://lia64.bkbits.net/linux-ia64-release-2.6.11
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Wed, 9 Feb 2005 00:26:41 +0000 (16:26 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[PATCH] Fix oops in alloc_zeroed_user_highpage() when page is NULL
Michael Ellerman [Tue, 8 Feb 2005 23:35:29 +0000 (15:35 -0800)]
[PATCH] Fix oops in alloc_zeroed_user_highpage() when page is NULL

The generic and IA-64 versions of alloc_zeroed_user_highpage() don't
check the return value from alloc_page_vma().  This can lead to an oops
if we're OOM.

This fixes my oops on PPC64, but I haven't got an IA-64 machine/compiler
handy.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PKT_SCHED]: Fix u32 double listing.
Patrick McHardy [Tue, 8 Feb 2005 12:24:20 +0000 (04:24 -0800)]
[PKT_SCHED]: Fix u32 double listing.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[TCP]: Fix calculation for collapsed skb size
Thomas Graf [Tue, 8 Feb 2005 12:22:16 +0000 (04:22 -0800)]
[TCP]: Fix calculation for collapsed skb size

Noticed by Denis V. Lunev <den@asplinux.ru> and based upon
original patch by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[IPV4]: ipconfig: Replace schedule_timeout() with msleep()
Nishanth Aravamudan [Tue, 8 Feb 2005 12:05:07 +0000 (04:05 -0800)]
[IPV4]: ipconfig: Replace schedule_timeout() with msleep()

Description: Use msleep() instead of schedule_timeout() to guarantee the task
delays as expected. Change the units of the two constants to be msecs and secs
respectively.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[IPVS]: Replace schedule_timeout() with ssleep()
Nishanth Aravamudan [Tue, 8 Feb 2005 12:04:08 +0000 (04:04 -0800)]
[IPVS]: Replace schedule_timeout() with ssleep()

Description: Use ssleep() instead of schedule_timeout() to guarantee the task
delays as expected. The first two replacements use TASK_INTERRUPTIBLE but do not
check for signals, so ssleep() should be appropriate.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[NET]: Replace schedule_timeout() with msleep() in netdev_wait_allrefs()
Nishanth Aravamudan [Tue, 8 Feb 2005 08:20:23 +0000 (00:20 -0800)]
[NET]: Replace schedule_timeout() with msleep() in netdev_wait_allrefs()

Description: Use msleep() instead of schedule_timeout() to guarantee the task
delays as expected. The current code uses TASK_INTERRUPTIBLE, but does not
respond to signals, so msleep() should be ok.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[XFRM]: Kill xfrm_export.c
Adrian Bunk [Tue, 8 Feb 2005 08:18:48 +0000 (00:18 -0800)]
[XFRM]: Kill xfrm_export.c

This patch removes xfrm_export.c and moves the EXPORT_SYMBOL{,_GPL}'s to
the files where the actual functions are.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[TG3]: Update driver version and reldate.
David S. Miller [Tue, 8 Feb 2005 07:59:00 +0000 (23:59 -0800)]
[TG3]: Update driver version and reldate.

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[TG3]: Clean up grc_local_ctrl usage.
Grant Grundler [Tue, 8 Feb 2005 07:57:45 +0000 (23:57 -0800)]
[TG3]: Clean up grc_local_ctrl usage.

Make the code more readable by only flipping the specific
bits that need to change each register write.

Signed-off-by: Grant Grundler (grundler@parisc-linux.org)
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Tue, 8 Feb 2005 07:21:09 +0000 (23:21 -0800)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[ARM PATCH] 2457/1: fix two typos in arch/arm/mm/tlb*.S
Lennert Buytenhek [Tue, 8 Feb 2005 22:10:09 +0000 (22:10 +0000)]
[ARM PATCH] 2457/1: fix two typos in arch/arm/mm/tlb*.S

Patch from Lennert Buytenhek

Fix two typos in arch/arm/mm/tlb*.S

Signed-off-by: Lennert Buytenhek
Signed-off-by: Russell King
21 years ago[IA64] mca_asm.S: Correctly dereference ia64_mca_data
Keith Owens [Tue, 8 Feb 2005 01:59:28 +0000 (17:59 -0800)]
[IA64] mca_asm.S: Correctly dereference ia64_mca_data

arch/ia64/kernel/mca_asm.S is treating per_cpu__ia64_mca_data as the
start of the mca data, instead of as a pointer to the mca data.  It
ends up overwriting the rest of the per cpu area with the MCA stack and
bspstore.  Since we dereference ia64_mca_data several times, make it a
macro.

Signed-off-by: Keith Owens <kaos@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
21 years agoMerge bk://drm.bkbits.net/drm-linus
Linus Torvalds [Tue, 8 Feb 2005 00:06:18 +0000 (16:06 -0800)]
Merge bk://drm.bkbits.net/drm-linus
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge starflyer.(none):/foo/airlied/bitkeeper/linux-2.5
Dave Airlie [Wed, 9 Feb 2005 08:03:39 +0000 (19:03 +1100)]
Merge starflyer.(none):/foo/airlied/bitkeeper/linux-2.5
into starflyer.(none):/foo/airlied/bitkeeper/drm-latest

21 years agodrm: fix race condition in radeon driver
Dave Airlie [Wed, 9 Feb 2005 07:57:43 +0000 (18:57 +1100)]
drm: fix race condition in radeon driver

Close a race which could allow for privilege escalation by users with DRI
privileges on Radeon hardware.  Essentially, a malicious program could submit
a packet containing an offset (possibly in main memory) to be rendered from/to,
while a separate thread switched that offset in userspace rapidly between a
valid value and an invalid one.  radeon_check_and_fixup_offset() would pull the
offset in from user space, check it, and spit it back out to user space to be
copied in later by the emit code.  It would sometimes catch the bad value, but
sometimes the malicious program could modify it after the check and get an
invalid offset rendered from/to.

Fix this by allocating a temporary buffer and copying the data in at once.
While here, make the cliprects stuff not do the VERIFYAREA_READ and
COPY_FROM_USER_UNCHECKED gymnastics, avoiding a lock order reversal on FreeBSD.
Performance impact is negligible  -- no difference on r200 to ~1% improvement on
rv200 in quake3 tests (P4 1Ghz, demofour at 1024x768, n=4 or 5)

From: Eric Anholt <anholt@freebsd.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
21 years agoInvalid bound check of driver defined ioctls in drm_ioctl
Dave Airlie [Wed, 9 Feb 2005 06:26:24 +0000 (17:26 +1100)]
Invalid bound check of driver defined ioctls in drm_ioctl

Bug fd.o 2489
Reporter: Aapo Tahkola <aet@rasterburn.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
21 years ago[PATCH] NOMMU: Documentation of no-MMU mmap
David Howells [Tue, 8 Feb 2005 00:05:27 +0000 (16:05 -0800)]
[PATCH] NOMMU: Documentation of no-MMU mmap

The attached patch adds documentation for the behaviour of the no-MMU mmap.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-Off-By: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] NOMMU: Improved handling of get_unmapped_area() errors
David Howells [Tue, 8 Feb 2005 00:05:10 +0000 (16:05 -0800)]
[PATCH] NOMMU: Improved handling of get_unmapped_area() errors

The attached patch does two things:

 (1) We no longer check the return value of file->f_op->get_unmapped_area()
     unless we actually called it. We know addr is zero otherwise because
     we'd've given an error earlier if it wasn't.

 (2) If -ENOSYS was returned by that operation, then we assume we actually
     called a driver (such as the framebuffer driver) that might want to
     invoke the operation in a lower level driver (such as matroxfb) if one
     exists, and that it found that one didn't.

     We translate the -ENOSYS error into -ENODEV - the error we would have
     given if the operation was not supplied in the file ops.

     Doing this permits us an opportunity for arch_get_unmapped_area() or
     something else to be called if we want that to happen, particularly in
     the MMU case.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-Off-By: Linus Torvalds <torvalds@osdl.org>
21 years agoFix ATM copy-to-user usage.
Linus Torvalds [Mon, 7 Feb 2005 23:59:56 +0000 (15:59 -0800)]
Fix ATM copy-to-user usage.

More of the Guninski "copy_to_user() takes a size_t" series.

21 years ago[PATCH] nfsd: Allow read access over NFS to files with APPEND bit set.
Neil Brown [Mon, 7 Feb 2005 23:48:20 +0000 (15:48 -0800)]
[PATCH] nfsd: Allow read access over NFS to files with APPEND bit set.

Write access cannot safely be allowed as NFS doesn't support append, but read
access should be ok.

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>
21 years ago[PATCH] nfsd: Don't try to cache reply to nfsv2 readdir.
Neil Brown [Mon, 7 Feb 2005 23:48:07 +0000 (15:48 -0800)]
[PATCH] nfsd: Don't try to cache reply to nfsv2 readdir.

As readdir returns the reply in a separate page, the cache code cannot find
the reply (and it would probably be too big anyway) so flag readdir for NOCACHE

Signed-off-by: Olaf Kirch <okir@suse.de>
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>
21 years ago[PATCH] raid5 overlapping read hack
Neil Brown [Mon, 7 Feb 2005 23:47:54 +0000 (15:47 -0800)]
[PATCH] raid5 overlapping read hack

If we detect an overlap, we set a flag and wait for a wakeup.  When requests
are handled, if the flag was set, we perform the wakeup.

Note that the code currently in -mm is badly broken.  With this patch applied,
it passes tests the use O_DIRECT to cause lots of overlapping requests.

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>
21 years ago[PATCH] md: remove extra loop from copy_data
Neil Brown [Mon, 7 Feb 2005 23:47:40 +0000 (15:47 -0800)]
[PATCH] md: remove extra loop from copy_data

copy_data currently loops over bio's in a list, but the caller also does the
same looping, sometimes with extra work.  So remove the loop from copy_data.

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>
21 years ago[PATCH] md: fix endless loop when syncing an array that doesn't need any resync.
Neil Brown [Mon, 7 Feb 2005 23:47:26 +0000 (15:47 -0800)]
[PATCH] md: fix endless loop when syncing an array that doesn't need any resync.

If the resync checkpoint for an array is at the end of the array, It doesn't
get set to MAX_SECTOR, so resyncing will be retried.  By updating curr_resync
early, this problem is fixed.

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>
21 years ago[PATCH] md: make md work a bit better with devfs
Neil Brown [Mon, 7 Feb 2005 23:47:13 +0000 (15:47 -0800)]
[PATCH] md: make md work a bit better with devfs

- set ->devfs_name
- create initial devfs names slightly differently so
  as not to conflict
- re-read partition table when an array is assembled at boot
  time - not sure why this is needed, but it is.

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>
21 years ago[PATCH] md: prevent oops when drive set faulty in inactive md array.
Neil Brown [Mon, 7 Feb 2005 23:46:57 +0000 (15:46 -0800)]
[PATCH] md: prevent oops when drive set faulty in inactive md array.

hot_add_disk and hot_remove_disk check mddev->pers before proceeding.
set_disk_faulty should too.

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>
21 years ago[PATCH] md: fix problems with verion-1 superblock code
Neil Brown [Mon, 7 Feb 2005 23:46:44 +0000 (15:46 -0800)]
[PATCH] md: fix problems with verion-1 superblock code

- off-by-one error
- missing recalc of checksum

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>
21 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Mon, 7 Feb 2005 23:11:07 +0000 (15:11 -0800)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Mon, 7 Feb 2005 20:58:40 +0000 (12:58 -0800)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

21 years ago[PATCH] qlogic nonatomic warning fix
Andrew Vasquez [Mon, 7 Feb 2005 13:32:50 +0000 (05:32 -0800)]
[PATCH] qlogic nonatomic warning fix

The qlogic driver complains about the use of smp_processor_id() in
preemptible code.  And it's right.

But it's just for an affinity optimisation and we can validly quash the
warning.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] mips: add unknown page size string
Yoichi Yuasa [Mon, 7 Feb 2005 13:32:36 +0000 (05:32 -0800)]
[PATCH] mips: add unknown page size string

This patch had fixed the following warning.

arch/mips/lib-32/dump_tlb.c: In function 'dump_tlb':
arch/mips/lib-32/dump_tlb.c:69: warning: control may reach end of non-void function 'msk2str' being inlined

This patch adds return value, when page size is not match.

Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] serial: fix low-latency mode deadlock
Martin Kögler [Mon, 7 Feb 2005 13:32:21 +0000 (05:32 -0800)]
[PATCH] serial: fix low-latency mode deadlock

We presently deadlock in low-latency mode because the receive code holds
port.lock while calling into the tty code to perform echoing.  The tty code
calls back into the driver, which then takes port.lock.

Fix that by dropping the lock around the echo call.

Acked-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] x86_64: missing lock prefix in switch_to
Suresh B. Siddha [Mon, 7 Feb 2005 13:32:06 +0000 (05:32 -0800)]
[PATCH] x86_64: missing lock prefix in switch_to

Add the missing "lock" prefix in switch_to macro.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] uml: hostfs: (security) fix chmod +s permission check
Paolo \'Blaisorblade\' Giarrusso [Mon, 7 Feb 2005 13:31:52 +0000 (05:31 -0800)]
[PATCH] uml: hostfs: (security) fix chmod +s permission check

Frank Fricke reported that hostfs does not verify that a chmod +s, for
instance, is done by a sufficiently privileged user, as long as the UML
kernel itself can complete the operation on the host.

So, for instance, if UML is run as root and under /mnt/host we have a hostfs
mount, this works successfully:

paolo@zion:~ (0)$ chmod 4755 /mnt/host/bin/bash
paolo@zion:~ (0)$ ll /mnt/host/bin/bash

 -rwsr-xr-x  1 root root 662724 2004-10-20 02:15 /mnt/host/bin/bash*

(bash refuses running as setuid, but you could have another shell on the
host, as dash or whatever).

In general, if UML is run as uid 500 on the host, a hostfs mount is done
and under the hostfs mount there is a file with uid 500 on the host, I can
freely make it setuid (if it's executable).

This is especially bad when UML is run as root (which you should not do),
but is a problem in general, since it allows any user to create setuid 500
(in this example) executables on the host filesystem.

Finally, while I was looking at the chmod() implementation, I spotted a
kludge in the code and explained it with a comment.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Frank 'xraz' Fricke <xraz@rwxr-xr-x.de>
Cc: Alexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] uml: kbuild: add further cleaning
Paolo \'Blaisorblade\' Giarrusso [Mon, 7 Feb 2005 13:31:37 +0000 (05:31 -0800)]
[PATCH] uml: kbuild: add further cleaning

Descend into arch/um/kernel/skas/util during make clean.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] add design comment to kick_process()
Ingo Molnar [Mon, 7 Feb 2005 13:31:22 +0000 (05:31 -0800)]
[PATCH] add design comment to kick_process()

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] fix wait_task_inactive race
Nick Piggin [Mon, 7 Feb 2005 13:31:08 +0000 (05:31 -0800)]
[PATCH] fix wait_task_inactive race

When a task is put to sleep, it is dequeued from the runqueue while it is
still running.  The problem is that one some arches that have non-atomic
scheduling, the runqueue lock can be dropped and retaken in schedule() before
the task actually schedules off, and wait_task_inactive did not account for
this.

Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] Add missing configure calls to intel agp resume code.
Alex Yustasov [Mon, 7 Feb 2005 13:30:52 +0000 (05:30 -0800)]
[PATCH] Add missing configure calls to intel agp resume code.

Fix for resume on i850. Maybe for i855GM.

Signed-off by: Nigel Cunningham <ncunningham@linuxmail.org>

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] add MAP_POPULATE/sys_remap_file_pages support to XFS
Christoph Hellwig [Mon, 7 Feb 2005 13:30:37 +0000 (05:30 -0800)]
[PATCH] add MAP_POPULATE/sys_remap_file_pages support to XFS

filemap_populate needs to be exported so that filesystems with their own
vm_operations (like XFS) can use it.

Cc: Nathan Scott <nathans@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[SPARC64]: Mask off stack ptr in compat_alloc_user_space() for 32-bit.
David S. Miller [Mon, 7 Feb 2005 12:27:33 +0000 (04:27 -0800)]
[SPARC64]: Mask off stack ptr in compat_alloc_user_space() for 32-bit.

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[PATCH] PCI Hotplug: fix rpaphp firmware dependency
John Rose [Mon, 7 Feb 2005 08:43:44 +0000 (00:43 -0800)]
[PATCH] PCI Hotplug: fix rpaphp firmware dependency

Noted by David Woodhouse <dwmw2@infradead.org>

Here's a fix for the ppc64 crash during boot.  This corrects the
offending function to use more conventional error codes.  I'll follow up
with return code cleanups for the entire module, and for RTAS code,
since these are probably too big for 2.6.11.

Signed-off-by: John Rose <johnrose@austin.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[SPARC64]: Update defconfig.
David S. Miller [Mon, 7 Feb 2005 07:29:42 +0000 (23:29 -0800)]
[SPARC64]: Update defconfig.

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years agoMerge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
David S. Miller [Mon, 7 Feb 2005 07:25:25 +0000 (23:25 -0800)]
Merge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6

21 years ago[SPARC64]: Fix off-by-one handling of size in user_fixup.c
David S. Miller [Mon, 7 Feb 2005 03:35:09 +0000 (19:35 -0800)]
[SPARC64]: Fix off-by-one handling of size in user_fixup.c

Noticed by Jurij Smakov <jurij@wooyd.org>

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years agoUndo recent tty_io.c "fix".
Linus Torvalds [Mon, 7 Feb 2005 00:37:08 +0000 (16:37 -0800)]
Undo recent tty_io.c "fix".

The fix was just trying to hide the real bug, which was in
an old udev script. The change made matters worse.

Cset exclude: pavenis@latnet.lv[torvalds]|ChangeSet|20050202164823|05506

21 years ago[PATCH] Make mousedev.c report all events to user space immediately
Peter Osterlund [Mon, 7 Feb 2005 00:28:04 +0000 (16:28 -0800)]
[PATCH] Make mousedev.c report all events to user space immediately

mousedev_packet() clears list->ready too early when called with
"tail == head - 1".  The effect is that the last mouse event from the
hardware isn't reported to userspace until another hardware mouse
event arrives.  This can make the left mouse button get stuck when
tapping on a touchpad.  When this happens, the butten doesn't unstick
until you interact with the touchpad again.

Signed-off-by: Peter Osterlund <petero2@telia.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years agoMerge bk://gkernel.bkbits.net/libata-2.6
Linus Torvalds [Mon, 7 Feb 2005 00:25:36 +0000 (16:25 -0800)]
Merge bk://gkernel.bkbits.net/libata-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge bk://gkernel.bkbits.net/misc-2.6
Linus Torvalds [Mon, 7 Feb 2005 00:24:19 +0000 (16:24 -0800)]
Merge bk://gkernel.bkbits.net/misc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Mon, 7 Feb 2005 00:21:44 +0000 (16:21 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Mon, 7 Feb 2005 00:18:32 +0000 (16:18 -0800)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[BK] ignore drivers/md/raid6altivec[1248].c
Jeff Garzik [Sun, 6 Feb 2005 22:41:33 +0000 (17:41 -0500)]
[BK] ignore drivers/md/raid6altivec[1248].c

21 years ago[block sx8] fix warning
Jeff Garzik [Sun, 6 Feb 2005 22:00:00 +0000 (17:00 -0500)]
[block sx8] fix warning

As 'i' and 'host->id' are of different types (signed vs. unsigned),
we need a cast.

Eventually host->id should probably be made unsigned, but this
requires further analysis.

21 years agoMerge davem@nuts.davemloft.net:/disk1/BK/net-2.6
David S. Miller [Sun, 6 Feb 2005 21:47:49 +0000 (13:47 -0800)]
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

21 years agoMerge pobox.com:/garz/repo/linux-2.6
Jeff Garzik [Sun, 6 Feb 2005 20:55:01 +0000 (15:55 -0500)]
Merge pobox.com:/garz/repo/linux-2.6
into pobox.com:/garz/repo/libata-2.6

21 years ago[IPV4]: ipconfig should use memmove() instead of strcpy()
Matthew Wilcox [Sun, 6 Feb 2005 14:20:30 +0000 (06:20 -0800)]
[IPV4]: ipconfig should use memmove() instead of strcpy()

strcpy is undefined if src and dest overlap.  That's clearly possible
here with a sufficiently deep path on the server.  Use memmove instead.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[ATM]: [zatm] replace sleep_on() with wait_event()
Chas Williams [Sun, 6 Feb 2005 14:19:21 +0000 (06:19 -0800)]
[ATM]: [zatm] replace sleep_on() with wait_event()

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[ATM]: [iphase] remove sleep_on*() usage
Chas Williams [Sun, 6 Feb 2005 14:18:39 +0000 (06:18 -0800)]
[ATM]: [iphase] remove sleep_on*() usage

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[ATM]: [horizon] replace interruptible_sleep_on() with wait_event_interruptible()
Chas Williams [Sun, 6 Feb 2005 14:17:47 +0000 (06:17 -0800)]
[ATM]: [horizon] replace interruptible_sleep_on() with wait_event_interruptible()

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[CRYPTO]: Make some code static in i386 crypto AES.
Adrian Bunk [Sun, 6 Feb 2005 14:11:58 +0000 (06:11 -0800)]
[CRYPTO]: Make some code static in i386 crypto AES.

This patch makes some needlessly global code static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[NETLINK]: Use SKB_MAXORDER to calculate NLMSG_GOODSIZE
Thomas Graf [Sun, 6 Feb 2005 14:00:12 +0000 (06:00 -0800)]
[NETLINK]: Use SKB_MAXORDER to calculate NLMSG_GOODSIZE

NLMSG_GOODSIZE specifies a good default size for the skb tailroom
used in netlink messages when the size is unknown at the time of
the allocation.

The current value doesn't make much sense anymore because
skb_shared_info isn't taken into account which means that
depending on the architecture NLMSG_GOOSIZE can exceed PAGE_SIZE
resulting in a waste of almost a complete page.

Using SKB_MAXORDER solves this potential leak at the cost of
slightly smaller but safer sizes for some architectures.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[NETFILTER]: Clean NAT status bits on module unload
Patrick McHardy [Sun, 6 Feb 2005 13:49:00 +0000 (05:49 -0800)]
[NETFILTER]: Clean NAT status bits on module unload

another patch which I think should go in 2.6.11, it fixes a crash
when unloading, then reloading iptable_nat.

ip_nat_core doesn't clear the status bits in struct ip_conntrack on
module unload, but zeroes out the nat area. When the module is loaded
again and a connection times out ip_nat_cleanup_conntrack tries to
list_del the zeroed list-head and crashes. There are probably more
conditions under which it can crash or cause other misbehaviour.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years agoMerge http://linux-mh.bkbits.net/bluetooth-2.6
David S. Miller [Sun, 6 Feb 2005 13:46:15 +0000 (05:46 -0800)]
Merge http://linux-mh.bkbits.net/bluetooth-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

21 years ago[PKT_SCHED]: netem: memory leak
Stephen Hemminger [Sun, 6 Feb 2005 13:43:24 +0000 (05:43 -0800)]
[PKT_SCHED]: netem: memory leak

Good catch.. netem needs to free skb's that are dropped due to loss
simulation.

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[IPV6]: Fix tunnel list locking in ip6_tunnel.c
Hideaki Yoshifuji [Sun, 6 Feb 2005 13:41:12 +0000 (05:41 -0800)]
[IPV6]: Fix tunnel list locking in ip6_tunnel.c

We need to fix tunnel list locking in ip6_tunnel.c as well.
Noticed by jean-mickael guerin <jean-mickael.guerin@6WIND.com>.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[PKT_SCHED]: ipt action: add back pskb_expand_head() call
Patrick McHardy [Sun, 6 Feb 2005 13:40:01 +0000 (05:40 -0800)]
[PKT_SCHED]: ipt action: add back pskb_expand_head() call

Jamal asked me to add back the call to pskb_expand_head before 2.6.11.
This fixes a regression caused by my tc action cleanup patches, the
tc actions most not replace packets, so it must prevent netfilter from
doing so.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 years agoMerge bk://212.42.230.204/nf-2.6
David S. Miller [Sun, 6 Feb 2005 13:32:07 +0000 (05:32 -0800)]
Merge bk://212.42.230.204/nf-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

21 years ago[DOC]: Some atomic_ops.txt updates.
David S. Miller [Sun, 6 Feb 2005 13:20:23 +0000 (05:20 -0800)]
[DOC]: Some atomic_ops.txt updates.

Based upon feedback from Linus:
- Touch on xchg(), cmpxchg() and spinlocks lightly.
- Discuss atomic_dec_and_test()
- Add some historical platform notes.

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[SPARC64]: Correct rwlock membars.
David S. Miller [Sun, 6 Feb 2005 12:52:02 +0000 (04:52 -0800)]
[SPARC64]: Correct rwlock membars.

read_unlock should order all previous memory operations
before the atomic counter update to drop the lock.
The debugging version of write_unlock had a similar error.

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[SPARC64]: Add missing membars for xchg() and cmpxchg().
David S. Miller [Sun, 6 Feb 2005 12:43:48 +0000 (04:43 -0800)]
[SPARC64]: Add missing membars for xchg() and cmpxchg().

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Sun, 6 Feb 2005 08:08:04 +0000 (00:08 -0800)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[ARM] Re-order lubbock includes
Russell King [Sun, 6 Feb 2005 22:58:27 +0000 (22:58 +0000)]
[ARM] Re-order lubbock includes

Include asm/hardware/*.h before asm/arch/*.h

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
21 years ago[ARM PATCH] 2458/1: prevent PXA2xx defines from clashing with SA1111's
Nicolas Pitre [Sun, 6 Feb 2005 22:49:26 +0000 (22:49 +0000)]
[ARM PATCH] 2458/1: prevent PXA2xx defines from clashing with SA1111's

Patch from Nicolas Pitre

A more elegant solution could be applied which would require more work.
However there is only one platform using both chips (Lubbock) and half
of the SA1111 features are unusable due to botched DMA support at the
PCB level anyway.  Therefore this solution should be sufficient for
now.
Also removed the SADIV defines which use would not constitute good
programming practice. Divisors should be computed directly in the code
especially since different PXA2xx versions have different clock source
frequencies.  No in-tree driver uses them so this is low impact..
Finally changed alignment to fit rest of file.

Signed-off-by: Nicolas Pitre
Signed-off-by: Russell King
21 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Sun, 6 Feb 2005 01:36:18 +0000 (17:36 -0800)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux