]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] Fix x86-64 ptrace
Andrew Morton [Tue, 20 Jan 2004 11:13:39 +0000 (03:13 -0800)]
[PATCH] Fix x86-64 ptrace

From: Andi Kleen <ak@muc.de>

The EFLAGS checking was not correct.  This also fixes some problems with
32bit gdb who would sometimes make the kernel BUG.

22 years ago[PATCH] Default hooks protecting the XATTR_SECURITY_PREFIX namespace
Andrew Morton [Tue, 20 Jan 2004 11:13:29 +0000 (03:13 -0800)]
[PATCH] Default hooks protecting the XATTR_SECURITY_PREFIX namespace

From: Chris Wright <chrisw@osdl.org>

Add default hooks for both the dummy and capability code to protect the
XATTR_SECURITY_PREFIX namespace.  These EAs were fully accessible to
unauthorized users, so a user that rebooted from an SELinux kernel to a
default kernel would leave those critical EAs unprotected.

(Acked by Stephen Smalley)

22 years ago[PATCH] Move XATTR_SECURITY_PREFIX macro to common location
Andrew Morton [Tue, 20 Jan 2004 11:13:20 +0000 (03:13 -0800)]
[PATCH] Move XATTR_SECURITY_PREFIX macro to common location

From: Chris Wright <chrisw@osdl.org>

Move the XATTR_SECURITY_PREFIX macro to the xattr.h header so that it's in a
common location.

(Acked by Stephen Smalley)

22 years ago[PATCH] md: Use bd_disk->private data instead of bd_inode->u.generic_ip
Andrew Morton [Tue, 20 Jan 2004 11:13:10 +0000 (03:13 -0800)]
[PATCH] md: Use bd_disk->private data instead of bd_inode->u.generic_ip

From: NeilBrown <neilb@cse.unsw.edu.au>

..to access 'mddev' from the inode pointer.  This is already set up for us.

22 years ago[PATCH] md: Discard the mddev_map array.
Andrew Morton [Tue, 20 Jan 2004 11:13:01 +0000 (03:13 -0800)]
[PATCH] md: Discard the mddev_map array.

From: NeilBrown <neilb@cse.unsw.edu.au>

We only need it occasionally to map unit number to mddev, and we can use a
linear search for that.  This reduces dependance on MAX_MD_DEVS

22 years ago[PATCH] md: Remove the 'disks' array from md which holds the gendisk structures.
Andrew Morton [Tue, 20 Jan 2004 11:12:52 +0000 (03:12 -0800)]
[PATCH] md: Remove the 'disks' array from md which holds the gendisk structures.

From: NeilBrown <neilb@cse.unsw.edu.au>

Move the pointers into mddev.  The reduces dependance on MAX_MD_DEVS.

22 years ago[PATCH] md: Small fixes for timely writing of md superblocks.
Andrew Morton [Tue, 20 Jan 2004 11:12:44 +0000 (03:12 -0800)]
[PATCH] md: Small fixes for timely writing of md superblocks.

From: NeilBrown <neilb@cse.unsw.edu.au>

Currently a raid0 superblock is only written when the array is stopped, so a
crash between creation and stop can lose your data.

This patch marks a superblock 'dirty' at creation and forces a dirty
superblock to be written when the array is started.

Previously we would prod the per-array thread at this point, but as it avoids
certain chores when the array is locked, and the array is locked at this
point, that isn't guaranteed to do the right thing.  Instead we prod the
thread whenever the array is unlocked.

Finally, only write the superblock at array stop if it is needed to mark the
array as 'clean'.  raid0 which is never dirty, doesn't need this.

22 years ago[PATCH] md: Don't do_md_stop and array when do_md_run fails.
Andrew Morton [Tue, 20 Jan 2004 11:12:35 +0000 (03:12 -0800)]
[PATCH] md: Don't do_md_stop and array when do_md_run fails.

From: NeilBrown <neilb@cse.unsw.edu.au>

Current code calls do_md_stop to clean up if do_md_run fails, but this is

a/ not needed as do_md_run cleans up itself

b/ bad as it could try to clean up after an -EBUSY error !!!

22 years ago[PATCH] md: Make sure md recovery happens appropriately.
Andrew Morton [Tue, 20 Jan 2004 11:12:27 +0000 (03:12 -0800)]
[PATCH] md: Make sure md recovery happens appropriately.

From: NeilBrown <neilb@cse.unsw.edu.au>

Currently if there are two failed drives, and two spares are added, then
recovery starts onto the first spare, but never notices the second spare.  To
cope, we set RECOVERY_NEEDED when recovery finishes so that we re-check.

22 years ago[PATCH] md: Fix typo in comment
Andrew Morton [Tue, 20 Jan 2004 11:12:18 +0000 (03:12 -0800)]
[PATCH] md: Fix typo in comment

From: NeilBrown <neilb@cse.unsw.edu.au>

Thanks dann frazier <dannf@hp.com>

22 years ago[PATCH] md: Make sure an interrupted resync doesn't seem to have completed.
Andrew Morton [Tue, 20 Jan 2004 11:12:09 +0000 (03:12 -0800)]
[PATCH] md: Make sure an interrupted resync doesn't seem to have completed.

From: NeilBrown <neilb@cse.unsw.edu.au>

If the raid1 or raid5 thread gets to run md_check_recovery after the recovery
thread has been interupted, but before do_md_stop completes, a spare drive
can be incorporated into an array befure it is up-to-date.

This patch corrects the relevant test.

22 years ago[PATCH] md: Don't allow raid5 rebuild to swamp raid5 stripe cache
Andrew Morton [Tue, 20 Jan 2004 11:12:00 +0000 (03:12 -0800)]
[PATCH] md: Don't allow raid5 rebuild to swamp raid5 stripe cache

From: NeilBrown <neilb@cse.unsw.edu.au>

raid5 rebuild takes stripes so agressively that other access cannot get a
look-in.

With this patch, the rebuild pauses slightly if there is a shortage of
stripes to let other processes have a chance.

akpm: I was worried about starvation due to the harsh semantics of yield() in
2.6.  But Neil has performed specific testing for that and things seem OK.
If people do note CPU starvation problems we will need to replace the yield()
with a schedule_timeout(1).

22 years ago[PATCH] md: fix return code in set_disk_faulty()
Andrew Morton [Tue, 20 Jan 2004 11:11:51 +0000 (03:11 -0800)]
[PATCH] md: fix return code in set_disk_faulty()

From: NeilBrown <neilb@cse.unsw.edu.au>

 Following are 10 patches for md in 2.6.1-lastest.

 1-6 are simple bugfixes that I am confident should be in 2.6.2.

 7 is a bugfix that is fairly important, but could probably do with a
 bit more testing first.  It is not impossible that it could deadlock,
 though I think I have caught and fixed all the problems.

 8-10 are code simplication.

 So maybe 7-10 should only go in -mm for now, but if it is a while
 before 2.6.2, then maybe they can go in a 2.6.2-pre.

From: Mike Tran <mhtran@us.ibm.com>

 If cannot find the device, return error (ENODEV) Otherwise, return success
 (0)

22 years ago[PATCH] check for truncated modules
Andrew Morton [Tue, 20 Jan 2004 11:11:42 +0000 (03:11 -0800)]
[PATCH] check for truncated modules

From: Rusty Russell <rusty@rustcorp.com.au>

I *do* want to add a check for a truncated module, since that's probably
the most common case (^C on "make modules_install").  But I don't want to
double the size of module.c with every check I can think of.

tested with:
# bs=0; while [ $bs -lt 3764 ]; do
   dd if=dummy.ko bs=$bs count=1 2>/dev/null | insmod -;
   bs=`expr $bs + 1`;
  done

22 years ago[PATCH] RAID-6
Andrew Morton [Tue, 20 Jan 2004 11:11:33 +0000 (03:11 -0800)]
[PATCH] RAID-6

From: "H. Peter Anvin" <hpa@zytor.com>

RAID6 implementation.  See Kconfig help for usage details.

The next release of `mdadm' has raid6 userspace support.

22 years ago[PATCH] One-shot support for epoll
Andrew Morton [Tue, 20 Jan 2004 11:11:23 +0000 (03:11 -0800)]
[PATCH] One-shot support for epoll

From: Davide Libenzi <davidel@xmailserver.org>

The attached patch implements the one-shot support for epoll.  Because of
the way epoll works (hooking f_op->poll()) the ET behavior is not really ET
because it might happen that, while data is still available to read (for
the EPOLLIN case), another chunk will become available triggering another
event.

While those conditions can be easily be handled in userspace, the absolute
triviality of the patch and the avoidance of user/kernel space switches and
f_op->poll() calls, make IMHO worth doing this inside epoll itself.

22 years ago[PATCH] loop: trivial error number fix
Andrew Morton [Tue, 20 Jan 2004 11:11:15 +0000 (03:11 -0800)]
[PATCH] loop: trivial error number fix

From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

This patch fixes the error number when invalid file is passed (neother
S_ISBLK nor S_ISREG is true).  We should return -EINVAL.

22 years ago[PATCH] loop needs MODULE_ALIAS_BLOCK
Andrew Morton [Tue, 20 Jan 2004 11:11:06 +0000 (03:11 -0800)]
[PATCH] loop needs MODULE_ALIAS_BLOCK

From: Erik van Konijnenburg <ekonijn@xs4all.nl>

There are two issues here:

- absense of a MODULE_ALIAS_BLOCK in loop.c

- mismatch between the patterns used in the MODULE_ALIAS_BLOCK define and
  the modprobe invokation in request_module.

(acked by Rusty)

22 years ago[PATCH] Asus L5 framebuffer fix
Andrew Morton [Tue, 20 Jan 2004 11:10:57 +0000 (03:10 -0800)]
[PATCH] Asus L5 framebuffer fix

From: Pontus Fuchs <pontus.fuchs@tactel.se>

I need the following patch for radeonfb to work on my Asus L5.  See
http://bugs.xfree86.org/show_bug.cgi?id=561 for more info.

(benh confirmed this with ATI).

22 years ago[PATCH] ppc64: iSeries virtual console
Andrew Morton [Tue, 20 Jan 2004 11:10:48 +0000 (03:10 -0800)]
[PATCH] ppc64: iSeries virtual console

From: Stephen Rothwell <sfr@canb.auug.org.au>

This is a forward port of a 2.4 driver that has been present in a couple of
(enterprise) distributions for some time.  It works for me :-), I even get
console output :-) This makes the machine almost usable - next we will get
virtual disk.

It has been considerably tidied up, but if you have any further worries
with it, let me know.

22 years ago[PATCH] ppc64: Bug fix for hugepages on ppc64
Andrew Morton [Tue, 20 Jan 2004 11:10:38 +0000 (03:10 -0800)]
[PATCH] ppc64: Bug fix for hugepages on ppc64

From: David Gibson <david@gibson.dropbear.id.au>

Currently the flag indicating whether or not hugepages are allowed below
4GB is not correctly propagated across fork(), which can lead to oopses.
The patch below fixes this.

22 years ago[PATCH] get PPC64 iSeries closer to building
Andrew Morton [Tue, 20 Jan 2004 11:10:29 +0000 (03:10 -0800)]
[PATCH] get PPC64 iSeries closer to building

From: Stephen Rothwell <sfr@canb.auug.org.au>

This patch allows iSeries to come much closer to building.

This is a precurser to my trying to merge the virtual device drivers for
iSeries (console, disk and cdrom).

22 years ago[PATCH] Fix for 32-bit execve() error path
Andrew Morton [Tue, 20 Jan 2004 11:10:20 +0000 (03:10 -0800)]
[PATCH] Fix for 32-bit execve() error path

From: David Gibson <david@gibson.dropbear.id.au>

The patch below fixes a bug in ppc64's 32-bit execve() path.  It duplicates
logic already in the normal fs/exec.c do_execve() to avoid dropping a NULL
mm.  The bprm.mm becomes NULL once the exec passes the "point of no
return".  Without this patch a failure past that point (e.g.  mmap()
failure) will cause an oops, with it just a killed process.

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
Linus Torvalds [Tue, 20 Jan 2004 09:57:04 +0000 (01:57 -0800)]
Merge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] USB: Band-aid for mct_u232 in 2.6.1
Pete Zaitcev [Tue, 20 Jan 2004 08:53:52 +0000 (00:53 -0800)]
[PATCH] USB: Band-aid for mct_u232 in 2.6.1

On Sun, 18 Jan 2004 00:37:44 -0800
Pete Zaitcev <zaitcev@redhat.com> wrote:

> My Magic Control Technology adapter causes an oops in the following way.
> Connect the thing, run "cat < /dev/ttyUSB0", disconnect, kill cat with ^C.
> The result looks like this:

I played with it a little more, and pretty much got everything working,
thus fixing two Fedora bugs.
 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112889
 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=113700

22 years ago[PATCH] USB Storage: unusual_devs.h patch for Trumpion MP3 player
Felipe Alfaro Solana [Tue, 20 Jan 2004 08:13:21 +0000 (00:13 -0800)]
[PATCH] USB Storage: unusual_devs.h patch for Trumpion MP3 player

This patch is needed for the USB storage subsystem to recognize the
Trumpion MP3 player as a valid USB mass storage.

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=090a ProdID=1200 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=256mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=01 Prot=01 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=255ms

22 years ago[PATCH] USB: fix memory bug in usb-skeleton.c
Axel Waggershauser [Tue, 20 Jan 2004 08:03:48 +0000 (00:03 -0800)]
[PATCH] USB: fix memory bug in usb-skeleton.c

22 years ago[PATCH] USB Storage: Sysfs attribute file for max_sectors
Matthew Dharm [Tue, 20 Jan 2004 08:03:17 +0000 (00:03 -0800)]
[PATCH] USB Storage: Sysfs attribute file for max_sectors

After much discussion with the SCSI folks, here's a patch to export
max_sectors as a sysfs attribute.  Turning this down makes some people's
devices more stable, but at a significant cost in performance.  Now, users
can adjust it without recompilation.

This is YAASP (yet another Alan Stern patch).

22 years ago[PATCH] USB Storage: Notify the SCSI layer about device resets
Alan Stern [Tue, 20 Jan 2004 08:02:47 +0000 (00:02 -0800)]
[PATCH] USB Storage: Notify the SCSI layer about device resets

According to James Bottomley, we need to notify the SCSI midlayer whenever
we issue a driver-initiated device reset.  That can happen in several
places, most notably following a transport error.  This patch adds
code to the reset routine to take care of it.  (Notifying about resets
requested by the midlayer itself is unnecessary but harmless.)

Alan Stern

On 15 Dec 2003, James Bottomley wrote:

> It looks like the driver sent a reset to the device on its own without
> reporting it to the mid-layer.
>
> There's an expecting_cc_ua flag in the scsi_device.  It gets set on
> error recovery actions, or if the device does something to detect or
> trigger a reset (that's the scsi_report_device_reset() and
> scsi_report_bus_reset() API's).
>
> James

22 years ago[PATCH] USB: hiddev HIDIOCGREPORT not blocking in 2.6
Adam Kropelin [Tue, 20 Jan 2004 08:02:17 +0000 (00:02 -0800)]
[PATCH] USB: hiddev HIDIOCGREPORT not blocking in 2.6

I've noticed in 2.6 kernels that HIDIOCGREPORT does not wait for io
completion before returning to the caller. This creates a few unpleasant
issues for userspace:

First, code sequences such as...

        ioctl(fd, HIDIOCGREPORT, &rinfo);
        ioctl(fd, HIDIOCGUSAGE, &uinfo);
        ioctl(fd, HIDIOCGSTRING, &sdesc);

...that used to work in 2.4 now fail in 2.6 if the device takes more
than a few milliseconds to respond to HIDIOCGREPORT. (I'm seeing this
issue on APC UPSes, FWIW.)

Second, userspace code can easily flood the kernel with control messages
since the kernel provides no "backpressure". The result is a lot of
"hid-core.c: control queue full" errors and lost reports.

2.6 hid-core.c appears to submit the request and return immediately.
Although the 2.4 code differs significantly, I traced the call path to
usb-core.c, which seems to block with a timeout, so the code supports my
userspace observation. (Assuming I didn't misread it.)

22 years ago[PATCH] USB: hook up the other (non-HID) input devices to the input system properly.
Greg Kroah-Hartman [Tue, 20 Jan 2004 07:37:47 +0000 (23:37 -0800)]
[PATCH] USB: hook up the other (non-HID) input devices to the input system properly.

22 years agoUSB: hook up the HID device's struct device to the input system properly.
Greg Kroah-Hartman [Tue, 20 Jan 2004 07:29:14 +0000 (23:29 -0800)]
USB: hook up the HID device's struct device to the input system properly.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Tue, 20 Jan 2004 06:57:49 +0000 (22:57 -0800)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[ARM PATCH] 1703/1: SA Cerf update (cleanup)
Frank Becker [Tue, 20 Jan 2004 22:26:42 +0000 (22:26 +0000)]
[ARM PATCH] 1703/1: SA Cerf update (cleanup)

Patch from Frank Becker

Crud removal. Updated cerf doc.

The SA CerfPDA/CerfPOD have long been gone. I see no
community activity. The last official release was 2.4.9.

Removed ifdefs for CERF_CPLD (which referred to the PDA/POD), go figure.
Removed keyboard driver.
Removed default configs for PDA/POD.
Removed PDA/POD related LCD stuff.

22 years ago[ARM PATCH] 1735/1: correct memcpy return value on ARM
Nicolas Pitre [Tue, 20 Jan 2004 22:24:14 +0000 (22:24 +0000)]
[ARM PATCH] 1735/1: correct memcpy return value on ARM

Patch from Nicolas Pitre

22 years ago[ARM PATCH] 1741/1: Add ARM710T processor functions
Tony Lindgren [Tue, 20 Jan 2004 17:05:25 +0000 (17:05 +0000)]
[ARM PATCH] 1741/1: Add ARM710T processor functions

Patch from Tony Lindgren

Following patch adds ARM710T processor support to proc-arm720.S.

The preferred way to add support was discussed on the Linux-arm-kernel
mailing list in December, with a link to the thread here:

http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2003-October/017596.html

NEC ARM710T is used in Psion Windermere architecture, and possibly
other systems.

710T works fine with the 720T functions, except the high_mapping
does not work for vectors_base(). Even if the high bit register is
set, the vectors stay at 0x00000000 instead of 0xffff0000.

22 years ago[ARM PATCH] 1717/1: Add German umlauts to Acorn console font
Peter Teichmann [Tue, 20 Jan 2004 16:51:20 +0000 (16:51 +0000)]
[ARM PATCH] 1717/1: Add German umlauts to Acorn console font

Patch from Peter Teichmann

This adds German Umlauts (ÄÖÜäöüß) and some other Characters to the
Acorn 8x8 console font.

22 years ago[ARM PATCH] 1714/1: pxa2xx_udc (5/5) pxa2xx_udc driver
David Brownell [Tue, 20 Jan 2004 16:49:07 +0000 (16:49 +0000)]
[ARM PATCH] 1714/1: pxa2xx_udc (5/5) pxa2xx_udc driver

Patch from David Brownell

This patch adds the UDC driver itself.

Depends on the udc platform_data patch (#3 this series)
and on 1659/1 (kconfig/kbuild support).

SUPERCEDES patch 1658/1 (against test5)

22 years ago[ARM PATCH] 1713/1: pxa2xx_udc (4/5) mach-pxa/lubbock.c updates
David Brownell [Tue, 20 Jan 2004 16:46:33 +0000 (16:46 +0000)]
[ARM PATCH] 1713/1: pxa2xx_udc (4/5) mach-pxa/lubbock.c updates

Patch from David Brownell

This adds basic lubbock-specific customization for the UDC driver,
and makes it use INIT_MACHINE.

Depends on the INIT_MACHINE patch and the UDC platform_data patches
(#1, #3 in this series).

Be careful of patch conflicts applying to other kernels, mostly due
to different platform devices being listed.

22 years ago[ARM PATCH] 1711/1: pxa2xx_udc (3/5) add udc platform_device, platform_data
David Brownell [Tue, 20 Jan 2004 16:45:06 +0000 (16:45 +0000)]
[ARM PATCH] 1711/1: pxa2xx_udc (3/5) add udc platform_device, platform_data

Patch from David Brownell

This declares the pxa2xx_udc platform device, defines
the platform_data made available to that driver, and
allows different machines to customize that platform_data.

Same idea as in the FB driver.  Be careful of patch conflicts
applying to other kernels, mostly due to different platform
devices being listed.

22 years ago[ARM] Add PXA MCI resources and device structure.
Russell King [Tue, 20 Jan 2004 16:43:55 +0000 (16:43 +0000)]
[ARM] Add PXA MCI resources and device structure.

22 years ago[PATCH] USB UHCI: fix broken data toggles for queued control URBs
Alan Stern [Tue, 20 Jan 2004 06:50:56 +0000 (22:50 -0800)]
[PATCH] USB UHCI: fix broken data toggles for queued control URBs

This patch fixes a long-standing (albeit unidentified) problem in the
queueing code for the UHCI HCD.  The code propagates data toggle settings
between messages in a queue for control transfers just the same as bulk
and interrupt transfers.  That is a mistake, since control messages always
restart with data toggle 0.  With this patch, the UHCI driver now passes
test 10 (control URB queueing) in David Brownell's usbtest suite.

The patch appears to change more than it really does, because it alters
the indentation level of a large section of code.

22 years agoMerge kroah.com:/home/linux/BK/bleed-2.6
Greg Kroah-Hartman [Tue, 20 Jan 2004 06:33:30 +0000 (22:33 -0800)]
Merge kroah.com:/home/linux/BK/bleed-2.6
into kroah.com:/home/linux/BK/usb-2.6

22 years ago[PATCH] Prevent false positives in non-fatal MCE check.
Dave Jones [Tue, 20 Jan 2004 04:59:17 +0000 (20:59 -0800)]
[PATCH] Prevent false positives in non-fatal MCE check.

non-fatal didn't get the same change that k7.c did a few months
back, so it reads from banks that actually _cause_ MCEs.

This patch also adds a bunch of copyright headers whilst we're
in that neighborhood.

22 years agoMerge redhat.com:/spare/repo/linux-2.5
Jeff Garzik [Tue, 20 Jan 2004 08:57:32 +0000 (03:57 -0500)]
Merge redhat.com:/spare/repo/linux-2.5
into redhat.com:/spare/repo/libata-2.5

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Mon, 19 Jan 2004 15:39:54 +0000 (07:39 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMake sure we don't access "cmd" in ide-scsi after having
Linus Torvalds [Mon, 19 Jan 2004 15:29:44 +0000 (07:29 -0800)]
Make sure we don't access "cmd" in ide-scsi after having
started the command - it may not exist any more.

In particular, load the host early in order to do proper
locking without having to access the command structure later.

Noted by Andries Brouwer.

22 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Mon, 19 Jan 2004 14:00:53 +0000 (06:00 -0800)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge davem@nuts.ninka.net:/disk1/davem/BK/net-2.6
David S. Miller [Mon, 19 Jan 2004 13:49:32 +0000 (05:49 -0800)]
Merge davem@nuts.ninka.net:/disk1/davem/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

22 years ago[PATCH] sort exception tables
Paul Mackerras [Mon, 19 Jan 2004 13:49:29 +0000 (05:49 -0800)]
[PATCH] sort exception tables

This patch arranges for the exception tables to be sorted on most
architectures.  It sorts the main kernel exception table on startup
and the module exception tables when they get loaded.  The main table
is sorted reasonably early - just after kmem_cache_init - but that
could be moved even earlier if necessary.

There is now a lib/extable.c which includes the sort_extable()
function from arch/ppc/mm/extable.c and the search_extable() function
from arch/i386/mm/extable.c, which had been copied to many
architectures.  On many architectures, arch/$(ARCH)/mm/extable.c
became empty and so I have removed it.

There are four architectures which do things differently from i386:
alpha, ia64, sparc and sparc64.  Alpha and ia64 store the offset from
the offset from the exception table entry to the instruction, and
sparc and sparc64 have range entries in the table.  For those
architectures I have added empty sort_extable functions.  The
maintainers for those architectures can implement something better if
they care to.  As it is they are no worse off than before.

Although it is a moderately sizable patch, it ends up with a net
reduction of 377 lines in the size of the kernel source. :)

I have tested this on x86 and ppc with a module that uses __get_user
in an init function, deliberately laid out to get the exception table
out of order, and it works (whereas it oopsed without this patch).

22 years ago[PATCH] Restore missing ppc64 hash_low.S file
Andrew Morton [Mon, 19 Jan 2004 13:44:20 +0000 (05:44 -0800)]
[PATCH] Restore missing ppc64 hash_low.S file

This went missing somewhere.  Here's a patch which puts it back.

22 years ago[PATCH] pdc202xx_old.c: sanitize 66MHz clock use
Bartlomiej Zolnierkiewicz [Mon, 19 Jan 2004 13:44:11 +0000 (05:44 -0800)]
[PATCH] pdc202xx_old.c: sanitize 66MHz clock use

Sanitize 66MHz clock use: "enable" 66MHz clock before starting UDMA3/4/5
read/write transfer and "disable" it after finishing transfer.

- fixes timings for non-UDMA3/4/5 operations (correct 33MHz timings are used)

- allows using UDMA3/4/5 modes on a capable drive even if non-UDMA3/4/5 drive
  is present on the same channel

- fixes corner case when one drive on the channel was using UDMA66/100 + LBA48
  (so clock was enabled/disabled for each read/write) and other one was using
  UDMA66/100 + LBA28, it could happen that request on LBA48 drive disabled
  66MHz clock and it was not enabled for the next transfer on LBA28 drive

22 years ago[PATCH] pdc202xx_old.c: fix enabling 66MHz clock for modes > UDMA2
Bartlomiej Zolnierkiewicz [Mon, 19 Jan 2004 13:44:02 +0000 (05:44 -0800)]
[PATCH] pdc202xx_old.c: fix enabling 66MHz clock for modes > UDMA2

drive->id is now always present even if no device is attached,
therefore check for drive->present instead.

22 years ago[PATCH] pdc202xx_old.c: fix PIO autotuning
Bartlomiej Zolnierkiewicz [Mon, 19 Jan 2004 13:43:53 +0000 (05:43 -0800)]
[PATCH] pdc202xx_old.c: fix PIO autotuning

This fixes bugzilla bug #1431.

Always tune controller PIO timings.  This fixes lockup during PIO access
(ie. 'cat /proc/ide/hda/identify') when Promise BIOS is disabled.

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/i2c-2.6
Linus Torvalds [Mon, 19 Jan 2004 13:38:09 +0000 (05:38 -0800)]
Merge bk://kernel.bkbits.net/gregkh/linux/i2c-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[IPV6]: Stricter checks on link-locals in bind and sendmsg
Ville Nuorvala [Mon, 19 Jan 2004 13:37:58 +0000 (05:37 -0800)]
[IPV6]: Stricter checks on link-locals in bind and sendmsg

When binding to a link-local address, inet6_bind() and raw6_bind() only
check that an interface is specified and that the address exists, but
they don't check if it actually exists on the specified interface.

Similarly, in datagram_sent_ctl() we don't check for the possibility of a
link-local address when we receive the source address from userspace.

22 years agoMerge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
Linus Torvalds [Mon, 19 Jan 2004 13:36:40 +0000 (05:36 -0800)]
Merge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/driver-2.6
Linus Torvalds [Mon, 19 Jan 2004 13:36:00 +0000 (05:36 -0800)]
Merge bk://kernel.bkbits.net/gregkh/linux/driver-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[NET]: Add proc_dointvec_userhz_jiffies, use it for proper handling of neighbour...
Hideaki Yoshifuji [Mon, 19 Jan 2004 13:31:35 +0000 (05:31 -0800)]
[NET]: Add proc_dointvec_userhz_jiffies, use it for proper handling of neighbour sysctls.

22 years ago[IPV6]: Set flow protocol correctly in SIT driver route lookups.
Michal Ludvig [Mon, 19 Jan 2004 13:23:30 +0000 (05:23 -0800)]
[IPV6]: Set flow protocol correctly in SIT driver route lookups.

22 years ago[ROSE]: Check error return from memcpy_fromiovec()
Chris Wright [Mon, 19 Jan 2004 13:19:34 +0000 (05:19 -0800)]
[ROSE]: Check error return from memcpy_fromiovec()

22 years ago[NETROM]: Check error return from memcpy_fromiovec()
Chris Wright [Mon, 19 Jan 2004 13:19:08 +0000 (05:19 -0800)]
[NETROM]: Check error return from memcpy_fromiovec()

22 years ago[IRDA]: Check error return from memcpy_fromiovec()
Chris Wright [Mon, 19 Jan 2004 13:18:47 +0000 (05:18 -0800)]
[IRDA]: Check error return from memcpy_fromiovec()

22 years ago[AX25]: Check error return from memcpy_fromiovec()
Chris Wright [Mon, 19 Jan 2004 13:18:24 +0000 (05:18 -0800)]
[AX25]: Check error return from memcpy_fromiovec()

22 years agoThis removes the old Eicon ISDN driver.
Linus Torvalds [Mon, 19 Jan 2004 13:18:14 +0000 (05:18 -0800)]
This removes the old Eicon ISDN driver.

The config entries etc were already removed earlier.

22 years ago[PATCH] reiserfs v3 should throttle writers
Andrew Morton [Mon, 19 Jan 2004 13:16:24 +0000 (05:16 -0800)]
[PATCH] reiserfs v3 should throttle writers

From: Chris Mason <mason@suse.com>

The v3 reiserfs_file_write func doesn't do any write throttling, which
leads to a variety of problems.  Here's a patch that makes
reiserfs_file_write call balance_dirty_pages_ratelimited, and exports that
func for module usage.

22 years ago[PATCH] video-buf.c cleanup
Andrew Morton [Mon, 19 Jan 2004 13:16:16 +0000 (05:16 -0800)]
[PATCH] video-buf.c cleanup

Remove now-unused 2.4 back-compat code.

22 years ago[PATCH] work around gcc bug in bitmap.c
Andrew Morton [Mon, 19 Jan 2004 13:16:07 +0000 (05:16 -0800)]
[PATCH] work around gcc bug in bitmap.c

gcc miscompiles this. Scary.

22 years ago[IPV6]: Add missing sentinel to ipv6_route_table.
Krishna Kumar [Mon, 19 Jan 2004 13:16:04 +0000 (05:16 -0800)]
[IPV6]: Add missing sentinel to ipv6_route_table.

22 years ago[PATCH] uninline bitmap functions
Andrew Morton [Mon, 19 Jan 2004 13:15:58 +0000 (05:15 -0800)]
[PATCH] uninline bitmap functions

- A couple of them are using alloca (via DECLARE_BITMAP) and this generates
  a cannot-inline warning with -Winline.

- These functions are too big to inline anwyay.

22 years ago[PATCH] Remove CLONE_DETACHED
Andrew Morton [Mon, 19 Jan 2004 13:15:48 +0000 (05:15 -0800)]
[PATCH] Remove CLONE_DETACHED

From: Andries.Brouwer@cwi.nl

Remove obsolete CLONE_DETACHED

22 years ago[PATCH] kbuild: Maintainers update
Andrew Morton [Mon, 19 Jan 2004 13:15:39 +0000 (05:15 -0800)]
[PATCH] kbuild: Maintainers update

From: Sam Ravnborg <sam@ravnborg.org>

Modify MAINTAINERS to reflect the reality in maintainership for kbuild.
This is ack'ed with Michael Elizabeth Chastain and Kai Germaschewski.

I removed the list and web-site since they are not actively used today.

22 years ago[PATCH] ALI M1533 audio hang fix
Andrew Morton [Mon, 19 Jan 2004 13:15:31 +0000 (05:15 -0800)]
[PATCH] ALI M1533 audio hang fix

From: risto.sandvik@helsinki.fi

Everything freezes when trying to play sounds using the alsa driver opl3sa2
(kernel supplied or 1.0.0rc2) on an Acer Extensa series laptop with the Ali
M1533 PCI to ISA bridge.  Problem exists both in the 2.6 and 2.4 series of
kernels.

Adding AL_M1533 to drivers/pci/quirks.c fixes the problem for both.  This has
been a known problem since 2.2.x (see
http://www.mfn.unipmn.it/~sitta/linux503.html)

22 years ago[PATCH] AFS upgrade
Andrew Morton [Mon, 19 Jan 2004 13:15:22 +0000 (05:15 -0800)]
[PATCH] AFS upgrade

From: David Howells <dhowells@redhat.com>

Here's a patch to improve the AFS linux support. It:

 (1) Includes Pete's patch to skip the colon in the volume name, compile
     directly into the kernel, and not try to access non-existent caching
     routines.

 (2) Changes if (...) BUG() to BUG_ON()

 (3) Gets rid of typedefs.

 (4) Changes list_for_each() into list_for_each_entry().

 (5) Adds more whitespace and wraps lines to please the CodingStyle sticklers.

22 years ago[PATCH] rxrpc update
Andrew Morton [Mon, 19 Jan 2004 13:15:12 +0000 (05:15 -0800)]
[PATCH] rxrpc update

From: David Howells <dhowells@redhat.com>

Here's a patch to fix some bugs in my RxRPC code, including the fix for the
transport initialisation failure recovery spotted by Pete Zaitcev.

It also inserts some extra spaces in a few places.

22 years ago[PATCH] sgiioc4.c cleanup weak symbol and error numbers
Andrew Morton [Mon, 19 Jan 2004 13:15:03 +0000 (05:15 -0800)]
[PATCH] sgiioc4.c cleanup weak symbol and error numbers

From: Jes Sorensen <jes@trained-monkey.org>

The included patch removes the usage of weak symbols from sgiioc4.c now
that we have the Kconfig issue sorted as well as cleans up the error no
handling (instead of return 1 on error) and adds a check for the return
value on snia_pci_endian_set as suggested by Christoph.

22 years ago[PATCH] remove spurious strdup
Andrew Morton [Mon, 19 Jan 2004 13:14:54 +0000 (05:14 -0800)]
[PATCH] remove spurious strdup

From: James Morris <jmorris@redhat.com>

AFS has an unused strdup() implementation.

22 years ago[PATCH] rq_for_each_bio fix
Andrew Morton [Mon, 19 Jan 2004 13:14:46 +0000 (05:14 -0800)]
[PATCH] rq_for_each_bio fix

From: Xavier Bestel <xavier.bestel@free.fr>

Within the body of this macro we are accessing rq->bio, but `bio' is an arg
to the macro.  If someone uses this macro with some variable which is not
named `bio' it won't compile.

So use a more-likely-to-be-unique identifier for the macro.

22 years ago[IPV4]: Fix URL mentioned for IP_ROUTE_NAT.
Petri T. Koistinen [Mon, 19 Jan 2004 13:14:44 +0000 (05:14 -0800)]
[IPV4]: Fix URL mentioned for IP_ROUTE_NAT.

22 years ago[PATCH] cleanup single_open usage in dma.c
Andrew Morton [Mon, 19 Jan 2004 13:14:37 +0000 (05:14 -0800)]
[PATCH] cleanup single_open usage in dma.c

From: Jeff Muizelaar <muizelaar@rogers.com>

The attached patch lets the seq_file api take care of buffer allocation
instead of doing it by hand.

22 years ago[PATCH] ppc cond_syscall fix
Andrew Morton [Mon, 19 Jan 2004 13:14:28 +0000 (05:14 -0800)]
[PATCH] ppc cond_syscall fix

From: Matt Mackall <mpm@selenic.com>

Experimenting with trying to use cond_syscall for a few arch-specific
syscalls, I discovered that it can't actually be used outside the file
in which sys_ni_syscall is declared because the assembler doesn't feel
obliged to output the symbol in that case:

weak.c:

#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
cond_syscall(sys_foo);

$ nm weak.o
         U sys_ni_syscall

One arch (PPC) is apparently trying to use cond_syscall this way
anyway, though it's probably never been actually tested as the above
test was done on a PPC.

After trying a bunch of tricks to get it to work nicely, I decided
there are basically two alternatives: make weak versions of
sys_ni_syscall wherever they're wanted or put the arch-specific
cond_syscalls in kernel/sys.c where sys_ni_syscall is defined.

The former approach is a bit crufty and doesn't actually do the right
thing in practice as you'll get multiple copies of sys_ni_syscall in
your final image.

The latter introduces some slight arch-pollution in sys.c, but as
arch-specific cond_syscalls aren't all that frequent, it should be
pretty minor. So here's a patch to move the current offender to sys.c:

22 years ago[PATCH] remove null-ilizers
Andrew Morton [Mon, 19 Jan 2004 13:14:19 +0000 (05:14 -0800)]
[PATCH] remove null-ilizers

From: Jes Sorensen <jes@trained-monkey.org>

The following patch removes a couple of null-ilizers of global variables.
Not a big deal, but every byte helps in the .data segment ;-)

22 years ago[PATCH] fix error case in binfmt_elf.c:load_elf_interp
Andrew Morton [Mon, 19 Jan 2004 13:14:10 +0000 (05:14 -0800)]
[PATCH] fix error case in binfmt_elf.c:load_elf_interp

From: Roland McGrath <roland@redhat.com>

Julie DeWandel noticed that in the error case where elf_map has failed,
load_elf_interp will (at the out_close: label) return the `error' variable,
but that will contain the result of a prior operation and not the error
number from elf_map.

22 years ago[PATCH] isapnp modem addition
Andrew Morton [Mon, 19 Jan 2004 13:14:01 +0000 (05:14 -0800)]
[PATCH] isapnp modem addition

From: David Sanders <linux@sandersweb.net>

Patch adds support for another pnp modem in 2.6 kernel.

22 years ago[PATCH] setscheduler fix
Andrew Morton [Mon, 19 Jan 2004 13:13:52 +0000 (05:13 -0800)]
[PATCH] setscheduler fix

From: Joe Korty <joe.korty@ccur.com>

task_running(rq,p) is equivalent to (rq->curr == p) only for some
architectures.

22 years ago[PATCH] sysrq_key_table_key2index() fixlets
Andrew Morton [Mon, 19 Jan 2004 13:13:44 +0000 (05:13 -0800)]
[PATCH] sysrq_key_table_key2index() fixlets

- It's using & where it meant to use &&.  (Randy Dunlap)

- It has two callsites - uninline it.

22 years ago[PATCH] if ... BUG() -> BUG_ON()
Andrew Morton [Mon, 19 Jan 2004 13:13:35 +0000 (05:13 -0800)]
[PATCH] if ... BUG() -> BUG_ON()

From: Adrian Bunk <bunk@fs.tum.de>

four months ago, Rolf Eike Beer <eike-kernel@sf-tec.de> sent a patch
against 2.6.0-test5-bk1 that converted several if ...  BUG() to BUG_ON()

This might in some cases result in slightly faster code because BUG_ON()
uses unlikely().

22 years ago[PATCH] make gcc 3.4 compilation work
Andrew Morton [Mon, 19 Jan 2004 13:13:24 +0000 (05:13 -0800)]
[PATCH] make gcc 3.4 compilation work

From: David Mosberger <davidm@napali.hpl.hp.com>

With gcc-3.4 we need "attribute((used))" declarations to get "make
modules_install" to work.

Otherwise these sections get dropped from the final image (I assume).

22 years ago[PATCH] Arrange for EFI-related code to be compiled away
Andrew Morton [Mon, 19 Jan 2004 13:13:14 +0000 (05:13 -0800)]
[PATCH] Arrange for EFI-related code to be compiled away

From: David Mosberger <davidm@napali.hpl.hp.com>

There is some EFI-related code which is present in the ia64 build but is not
needed: variable efi_enabled is always zero.

The patch fiddles with the efi_enabled definition to arrange for
`efi_enabled' to be constant zero or constant one in those situations where
this can be guaranteed.

22 years ago[PATCH] ext3: fix determination of inode journalling mode
Andrew Morton [Mon, 19 Jan 2004 13:13:05 +0000 (05:13 -0800)]
[PATCH] ext3: fix determination of inode journalling mode

The test for whether an inode is using journalled, ordered or writeback data
is incorrect and can lead to ext3_set_aops() giving the inode the wrong set
of address_space_operations.  Fix.  (Spotted by Jan Kara).

22 years ago[PATCH] Add bdev private field
Andrew Morton [Mon, 19 Jan 2004 13:12:56 +0000 (05:12 -0800)]
[PATCH] Add bdev private field

From: Christoph Hellwig <hch@lst.de>

Currently xfs has a per-bdev (and XFS filesystem uses up to three underlying
block devices) object that Al complained about loudly that it should be gone.

But for that to happen without rewriting half of XFS (and changing layering
in a way that we don't really want) we need an additional fs-private variable
in struct block_device.

22 years ago[PATCH] tmpfs readdir does not update dir atime
Andrew Morton [Mon, 19 Jan 2004 13:12:47 +0000 (05:12 -0800)]
[PATCH] tmpfs readdir does not update dir atime

From: mark@borgerding.net

Access times of tmpfs dirs do not get updated on readdir.  This can cause
empty dirs to get tmpwatch'd too early, b/c atime never changes even though
the dir is in use.

22 years ago[PATCH] Fix statically declare FIXMAPs
Andrew Morton [Mon, 19 Jan 2004 13:12:38 +0000 (05:12 -0800)]
[PATCH] Fix statically declare FIXMAPs

From: Anton Blanchard <anton@samba.org>, me.

Two uses of the FIXADDR_USER_START/END things are problematic:

a) ppc64 wants the FIXADDR area to be at a different location on 32bit and
   64bit tasks.  On 32bit we want it just below 4GB but that gets in the way
   on 64bit.  By putting both right at -(some small amount) we can also use
   some ppc tricks to get there real quickly (single instruction branches).

b) We assume that FIXADDR_USER_START and FIXADDR_USER_END are constants.
   This breaks the UML build.

Fixes:

- Call it all gate. We currently have half the stuff called fixmap and
  the other gate, lets be consistent.

- Create in_gate_area(), get_gate_vma() and use it in both places

- Provide defaults for in_gate_area/get_gate_vma, allowing an arch to
  override it. (I used CONFIG_* but am open to better suggestions here)

- The /proc/pid/maps vma wasnt marked readable but the get_user
  vma was. That sounds suspicious to me, they are now both the same VMA
  and so have the same (read,exec) permissions

22 years ago[PATCH] Alpha: make prefetch_spinlock() a no-op on UP
Andrew Morton [Mon, 19 Jan 2004 13:12:29 +0000 (05:12 -0800)]
[PATCH] Alpha: make prefetch_spinlock() a no-op on UP

From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>

When CONFIG_SMP is not set, spinlock_t is an empty structure, so its
address has arbitrary alignment.

The prefetch instructions with unaligned address don't have visible side
effects on alphas with SRM console (except performance degradation) - the
PALcode handles unaligned traps caused by prefetch instructions internally.
However, on old AlphaBIOS/MILO boxes unaligned prefetch leads to unhandled
alignment trap and kernel panic.

22 years ago[PATCH] suspend/resume support for PIT
Andrew Morton [Mon, 19 Jan 2004 13:12:20 +0000 (05:12 -0800)]
[PATCH] suspend/resume support for PIT

From: Pavel Machek <pavel@ucw.cz>

This adds proper suspend/resume support for PIT.  That means that clock are
actually correct after suspend/resume.

22 years ago[PATCH] fix up CPU detection in p4-clockmod
Andrew Morton [Mon, 19 Jan 2004 13:12:11 +0000 (05:12 -0800)]
[PATCH] fix up CPU detection in p4-clockmod

From: Dominik Brodowski <linux@dominikbrodowski.de>

Too many users use the p4-clockmod cpufreq driver instead of the more
advanced speedstep-centrino, speedstep-ich or even acpi drivers.  All of
the latter (usually) provide voltage scaling, while the p4-clockmod driver
only offers a variant of frequency scaling.  So, warn users if they try out
this driver instead.

Also, instead of using a local copy, use the speedstep_lib infrastructure
for detecting the processor speed.  Adding the Pentium-M get_frequency
function to that module only costs about 200 bytes in object size.

22 years ago[PATCH] kconfig: fix menuconfig exit code
Andrew Morton [Mon, 19 Jan 2004 13:12:01 +0000 (05:12 -0800)]
[PATCH] kconfig: fix menuconfig exit code

From: Sam Ravnborg <sam@ravnborg.org>

If the user decides to not write the config file out, menuconfig exits with
a non-zero code.  This causes make to allege that there was an error.

22 years ago[PATCH] revert lazy readahead
Andrew Morton [Mon, 19 Jan 2004 13:11:52 +0000 (05:11 -0800)]
[PATCH] revert lazy readahead

From: Trond Myklebust <trond.myklebust@fys.uio.no>

The following reversion is what fixes my regression.  That puts the
sequential read numbers back to the 2.6.0 values of ~140MB/sec (from the
current 2.6.1 values of 14MB/second)...

We were triggering I/O of the `ahead' when we hit the last page in the
`current' window.  That's bad because it gives no pipelining at all.

So go back to full pipelining.

It's not at all clear why this change made a 10x difference in NFS
throughput.

22 years ago[PATCH] readahead part-backout
Andrew Morton [Mon, 19 Jan 2004 13:11:43 +0000 (05:11 -0800)]
[PATCH] readahead part-backout

From: Ram Pai <linuxram@us.ibm.com>

Remove the up-front readahead code from the core pagecache read
function: it's really bad for large reads.

22 years ago[PATCH] vmscan: initialize zone->{prev,temp}_priority
Andrew Morton [Mon, 19 Jan 2004 13:11:34 +0000 (05:11 -0800)]
[PATCH] vmscan: initialize zone->{prev,temp}_priority

From: Nikita Danilov <Nikita@Namesys.COM>

This patch initializes zone->{prev,temp}_priority to DEF_PRIORITY.
Otherwise they are left zeroed, and first run of VM scanner thinks that
zones are under enormous stress.