]> git.neil.brown.name Git - history.git/log
history.git
21 years ago[SPARC]: nop() macro has bogus trailing semicolon
David S. Miller [Thu, 10 Feb 2005 11:00:32 +0000 (03:00 -0800)]
[SPARC]: nop() macro has bogus trailing semicolon

Noticed by Bob Breuer.

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[SPARC32]: Fix UP build with spinlock debugging enabled.
Alexander Viro [Thu, 10 Feb 2005 10:08:27 +0000 (02:08 -0800)]
[SPARC32]: Fix UP build with spinlock debugging enabled.

atomic32.c assumes that arbitrary stuff can be passed into
spin_lock() on non-SMP builds, which is true except for when
spinlock debugging is enabled.

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[SPARC32]: Fix SPIN_LOCK_UNLOCKED define.
Art Haas [Thu, 10 Feb 2005 09:14:28 +0000 (01:14 -0800)]
[SPARC32]: Fix SPIN_LOCK_UNLOCKED define.

Signed-off-by: David S. Miller <davem@davemloft.net>
21 years ago[SPARC32]: Fix syntax errors from smp_{mb,rmb,wmb} on sparc32.
Meelis Roos [Thu, 10 Feb 2005 09:12:02 +0000 (01:12 -0800)]
[SPARC32]: Fix syntax errors from smp_{mb,rmb,wmb} on sparc32.

smp_mb(), smp_rmp() and smp_wmb() definitions have a trailing semicolon
and cause compilation errors in single statement context, like
if-then-else on line 358 in include/linux/skbuff.h. This patch removes
all three offending semicolons to make it compile.

Signed-off-by: Meelis Roos <mroos@linux.ee>
Acked-by: William Irwin <wli@holomorphy.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 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

21 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Sun, 6 Feb 2005 01:34:59 +0000 (17:34 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge bk://bart.bkbits.net/ide-2.6
Linus Torvalds [Sun, 6 Feb 2005 01:06:34 +0000 (17:06 -0800)]
Merge bk://bart.bkbits.net/ide-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[ide] remove unused pkt_task_t definition from ide.h
Tejun Heo [Sun, 6 Feb 2005 15:21:12 +0000 (16:21 +0100)]
[ide] remove unused pkt_task_t definition from ide.h

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide serverworks] merge serverworks.h into serverworks.c
Tejun Heo [Sun, 6 Feb 2005 15:15:43 +0000 (16:15 +0100)]
[ide serverworks] merge serverworks.h into serverworks.c

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide serverworks] remove unused SVWKS_DEBUG_DRIVE_INFO
Tejun Heo [Sun, 6 Feb 2005 15:06:28 +0000 (16:06 +0100)]
[ide serverworks] remove unused SVWKS_DEBUG_DRIVE_INFO

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide piix] merge piix.h into piix.c
Tejun Heo [Sun, 6 Feb 2005 15:02:54 +0000 (16:02 +0100)]
[ide piix] merge piix.h into piix.c

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide piix] remove useless comment
Bartlomiej Zolnierkiewicz [Sun, 6 Feb 2005 14:57:51 +0000 (15:57 +0100)]
[ide piix] remove useless comment

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide pdc202xx_old] merge pdc202xx_old.h into pdc202xx_old.c
Tejun Heo [Sun, 6 Feb 2005 14:54:04 +0000 (15:54 +0100)]
[ide pdc202xx_old] merge pdc202xx_old.h into pdc202xx_old.c

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide pdc202xx_old] remove SPLIT_BYTE() macro
Tejun Heo [Sun, 6 Feb 2005 04:21:50 +0000 (05:21 +0100)]
[ide pdc202xx_old] remove SPLIT_BYTE() macro

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide pdc202xx_new] merge pdc202xx_new.h into pdc202xx_new.c
Tejun Heo [Sun, 6 Feb 2005 04:15:30 +0000 (05:15 +0100)]
[ide pdc202xx_new] merge pdc202xx_new.h into pdc202xx_new.c

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide opti621] merge opti621.h into opti621.c
Tejun Heo [Sun, 6 Feb 2005 04:03:28 +0000 (05:03 +0100)]
[ide opti621] merge opti621.h into opti621.c

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide it8172] merge it8172.h into it8172.c
Tejun Heo [Sun, 6 Feb 2005 03:56:04 +0000 (04:56 +0100)]
[ide it8172] merge it8172.h into it8172.c

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide hpt366] merge hpt366.h into hpt366.c
Tejun Heo [Sun, 6 Feb 2005 03:46:43 +0000 (04:46 +0100)]
[ide hpt366] merge hpt366.h into hpt366.c

bart: while at it do whitespace cleanup and add missing FIXME

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide hpt366] remove dead fifty_base_hpt374[] table
Bartlomiej Zolnierkiewicz [Sun, 6 Feb 2005 03:14:06 +0000 (04:14 +0100)]
[ide hpt366] remove dead fifty_base_hpt374[] table

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide pci generic] merge generic.h into generic.c
Tejun Heo [Sun, 6 Feb 2005 03:00:32 +0000 (04:00 +0100)]
[ide pci generic] merge generic.h into generic.c

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide pci generic] remove dummy init_chipset_generic()
Bartlomiej Zolnierkiewicz [Sun, 6 Feb 2005 02:56:35 +0000 (03:56 +0100)]
[ide pci generic] remove dummy init_chipset_generic()

->init_chipset is optional

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide pci generic] remove dead unknown_chipset[] table from generic.h
Bartlomiej Zolnierkiewicz [Sun, 6 Feb 2005 02:40:45 +0000 (03:40 +0100)]
[ide pci generic] remove dead unknown_chipset[] table from generic.h

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide cy82c693] merge cy82c693.h into cy82c693.c
Tejun Heo [Sun, 6 Feb 2005 02:34:16 +0000 (03:34 +0100)]
[ide cy82c693] merge cy82c693.h into cy82c693.c

bart: do small whitespace cleanup while at it

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide cmd64x] merge cmd64x.h into cmd64x.c
Tejun Heo [Sun, 6 Feb 2005 02:21:00 +0000 (03:21 +0100)]
[ide cmd64x] merge cmd64x.h into cmd64x.c

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide aec62xx] merge aec62xx.h into aec62xx.c
Tejun Heo [Sun, 6 Feb 2005 02:13:44 +0000 (03:13 +0100)]
[ide aec62xx] merge aec62xx.h into aec62xx.c

bart: s/byte/u8/

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide aec62xx] remove SPLIT_BYTE() and MAKE_WORD() macros
Tejun Heo [Sun, 6 Feb 2005 02:02:31 +0000 (03:02 +0100)]
[ide aec62xx] remove SPLIT_BYTE() and MAKE_WORD() macros

bart: leave BUSCLOCK() alone for now

Signed-off-by: Tejun Heo <tj@home-tj.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide] fix ide_dump_atapi_status()
Alexander Viro [Sun, 6 Feb 2005 01:44:27 +0000 (02:44 +0100)]
[ide] fix ide_dump_atapi_status()

From: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>

On Fri, 4 Feb 2005, Al Viro wrote:

> BTW, ide-lib.c code that triggers the ICE happens to be completely broken.
> Jens, it's your patch from September 2002 - what used to be
>        if ((stat & (BUSY_STAT|ERR_STAT)) == ERR_STAT) {
> became
>        if ((status.all & (status.b.bsy|status.b.check)) == status.b.check) {
> and that's *not* an equivalent transformation.  Fixing it doesn't get rid
> of ICE, but it certainly deserves fixing.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
21 years ago[ide] fix hwif_init() to not return error for "empty" interfaces
Jean Delvare [Sun, 6 Feb 2005 01:11:07 +0000 (02:11 +0100)]
[ide] fix hwif_init() to not return error for "empty" interfaces

Return success if no device is connected to the interface.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>