]> git.neil.brown.name Git - history.git/log
history.git
22 years ago[PATCH] fix for do_tty_hangup() access of kfreed memory
Alexander Viro [Wed, 22 Oct 2003 01:44:21 +0000 (18:44 -0700)]
[PATCH] fix for do_tty_hangup() access of kfreed memory

do_tty_hangup() does fput() on redirect struct file too early -
it could've been the only holder of tty_struct we are working with and in
that case we'll end up freeing it from fput() and then both reading and
modifying kfreed memory.

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Wed, 22 Oct 2003 01:41:05 +0000 (18:41 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] early_serial_setup array bounds check
Andrew Morton [Wed, 22 Oct 2003 01:25:14 +0000 (18:25 -0700)]
[PATCH] early_serial_setup array bounds check

From: Bjorn Helgaas <bjorn.helgaas@hp.com>

early_serial_setup() doesn't validate the array index, so a caller could
corrupt memory after serial8250_ports[] by supplying a value of port->line
that's too large.

I haven't seen a failure related to this, but it seems fragile to rely on
callers to know how many ports the driver supports.

22 years ago[PATCH] befs oops fix
Andrew Morton [Wed, 22 Oct 2003 01:25:05 +0000 (18:25 -0700)]
[PATCH] befs oops fix

Need to null-terminate that table.

22 years ago[PATCH] Altix console driver
Andrew Morton [Wed, 22 Oct 2003 01:24:56 +0000 (18:24 -0700)]
[PATCH] Altix console driver

From: Patrick Gefre <pfg@sgi.com>

Add ia64 Altix serial console driver.

22 years ago[PATCH] Fix arlan compilation with CONFIG_PROC_FS=n
Andrew Morton [Wed, 22 Oct 2003 01:24:46 +0000 (18:24 -0700)]
[PATCH] Fix arlan compilation with CONFIG_PROC_FS=n

From: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>

when PROC_FS=n, arlan.h will define init_arlan_proc() and
cleanup_arlan_proc() as macros.  So, whitout the #ifdef/#endif here, we have
two definitions.

22 years ago[PATCH] Kill unneccessary debug printk
Andrew Morton [Wed, 22 Oct 2003 01:24:36 +0000 (18:24 -0700)]
[PATCH] Kill unneccessary debug printk

From: Pavel Machek <pavel@ucw.cz>

This printk is unneccessary for quite a long time, please kill it. [I
added it, so it should be okay for me to request it being killed..]

22 years ago[PATCH] /dev/mem range checking
Andrew Morton [Wed, 22 Oct 2003 01:24:27 +0000 (18:24 -0700)]
[PATCH] /dev/mem range checking

From: Bjorn Helgaas <bjorn.helgaas@hp.com>

ia64 needs more complete checking on the offset which is passed into reads
or writes of /dev/mem.

This patch factors out the range checking so that the architecture can
implement a private version.

22 years ago[PATCH] Add needed __devexit_p's to two gameport drivers
Andrew Morton [Wed, 22 Oct 2003 01:24:18 +0000 (18:24 -0700)]
[PATCH] Add needed __devexit_p's to two gameport drivers

From: "Noah J. Misch" <noah@caltech.edu>

Two gameport drivers need __devexit_p wrapped around their remove
functions.  A newer binutils caught this is a link error.  This patch fixes
that.

Wrapped a __devexit_p around the 'remove' functions of two gameport
drivers.  The lack of __devexit_p was wrong according to linux/init.h,
differed from the practices in nearby files, and caused a link error with
binutils 2.14.90.0.5.

22 years ago[PATCH] v850: Use irqreturn_t on rte-me2-cb platform
Andrew Morton [Wed, 22 Oct 2003 01:24:09 +0000 (18:24 -0700)]
[PATCH] v850: Use irqreturn_t on rte-me2-cb platform

From: miles@lsi.nec.co.jp (Miles Bader)

The cb_pic_handle_irq function on this platform hadn't been updated to
use irqreturn_t; do so.

22 years ago[PATCH] v850: Don't reserve root-filesystem memory twice
Andrew Morton [Wed, 22 Oct 2003 01:24:00 +0000 (18:24 -0700)]
[PATCH] v850: Don't reserve root-filesystem memory twice

From: miles@lsi.nec.co.jp (Miles Bader)

This reservation is handled by platform-independent code in 2.6.0, but some
platforms _also_ did it in platform-specific code (left over from 2.4.x).

22 years ago[PATCH] v850: Workaround for tty-driver init-order problem
Andrew Morton [Wed, 22 Oct 2003 01:23:51 +0000 (18:23 -0700)]
[PATCH] v850: Workaround for tty-driver init-order problem

From: miles@lsi.nec.co.jp (Miles Bader)

Use `late_initcall' instead of just `__initcall' as a workaround for
the fact that (1) simcons_tty_init can't be called before tty_init,
(2) tty_init is called via `module_init', (3) if statically linked,
module_init == device_init, and (4) there's no ordering of init lists.

We can do this easily because simcons is always statically linked, but
other tty drivers that depend on tty_init and which must use
`module_init' to declare their init routines are likely to be broken.

22 years ago[PATCH] Fix toshiba.c and neofb.c for CONFIG_PROC_FS=n
Andrew Morton [Wed, 22 Oct 2003 01:23:44 +0000 (18:23 -0700)]
[PATCH] Fix toshiba.c and neofb.c for CONFIG_PROC_FS=n

From: "Noah J. Misch" <noah@caltech.edu>

Allows the Toshiba SMM driver to compile with CONFIG_PROC_FS=n.

22 years ago[PATCH] pcm_native locking fix
Andrew Morton [Wed, 22 Oct 2003 01:23:35 +0000 (18:23 -0700)]
[PATCH] pcm_native locking fix

It is missing an up() on an error path.

22 years ago[PATCH] io scheduler oops fixes
Andrew Morton [Wed, 22 Oct 2003 01:23:26 +0000 (18:23 -0700)]
[PATCH] io scheduler oops fixes

Peter Osterlund <petero2@telia.com> notes oopses in the anticipatory
scheduler with slab poisoning enabled due to arq->rb_node.rb_right being
uninitialised.  So wipe the whole thing when we allocate it.

deadline seems to have the same problem.

22 years ago[PATCH] ipc msg race fix
Andrew Morton [Wed, 22 Oct 2003 01:23:17 +0000 (18:23 -0700)]
[PATCH] ipc msg race fix

Backport this fix from 2.4

22 years ago[PATCH] Fix another CONFIG_MCA=y oops
Andrew Morton [Wed, 22 Oct 2003 01:23:09 +0000 (18:23 -0700)]
[PATCH] Fix another CONFIG_MCA=y oops

If you have an MCA kernel on non-MCA hardware and load an MCA driver,
mca_find_unused_adapter() ends up dereferencing NULL.

Teach it about the absence of MCA buses.

22 years ago[PATCH] Fix oops with CONFIG_MCA=y
Andrew Morton [Wed, 22 Oct 2003 01:23:01 +0000 (18:23 -0700)]
[PATCH] Fix oops with CONFIG_MCA=y

With CONFIG_MCA=y and no MCA bus present, drivers go oops deep in the kobject
code when calling mca_register_driver().  Because there is no MCA subsystem
registered against the driver.

Plug this in mca_register_driver().

22 years ago[PATCH] parport_pc not releasing all ioports
Andrew Morton [Wed, 22 Oct 2003 01:22:53 +0000 (18:22 -0700)]
[PATCH] parport_pc not releasing all ioports

From: John Mock <kd6pag@qsl.net>

If 'parport_pc' is compile as a module, it fails to properly return certain
ioport resources after being removed.

22 years ago[PATCH] DRM modprobe retval fix
Andrew Morton [Wed, 22 Oct 2003 01:22:45 +0000 (18:22 -0700)]
[PATCH] DRM modprobe retval fix

If you try to load a DRM module when agpgart is not present, modprobe says
"Cannot allocate memory", which is rather misleading.

Make it return -EINVAL instead.

22 years ago[PATCH] kcapi.c CONFIG_MODULES=n build fix
Andrew Morton [Wed, 22 Oct 2003 01:22:36 +0000 (18:22 -0700)]
[PATCH] kcapi.c CONFIG_MODULES=n build fix

With CONFIG_MODULES=n this file does not compile because the type of
module->owner is not known.

Gven that card->owner is probably a null pointer when this driver is
statically linked, best thing to do is to just not poke around inside
card->owner at all.

22 years ago[PATCH] make printk more robust with "null" pointers
Andrew Morton [Wed, 22 Oct 2003 01:22:28 +0000 (18:22 -0700)]
[PATCH] make printk more robust with "null" pointers

Expand printk's traditional handling of null pointers so that anything in the
first page is considered a null pointer.

This gives us better behaviour when someone (acpi..) accidentally prints a
string which is embedded in a struct, the pointer to which is null.

22 years ago[PATCH] fix bluetooth broken compilation when PROC_FS=n.
Andrew Morton [Wed, 22 Oct 2003 01:22:19 +0000 (18:22 -0700)]
[PATCH] fix bluetooth broken compilation when PROC_FS=n.

From: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>

Fix bluetooth build when CONFIG_PROC_FS=n

22 years ago[PATCH] fix for register_cpu()
Andrew Morton [Wed, 22 Oct 2003 01:22:11 +0000 (18:22 -0700)]
[PATCH] fix for register_cpu()

From: jbarnes@sgi.com (Jesse Barnes)

The patch adds a symlink from /sys/devices/system/node/nodeM/cpuN to the
/sys/devices/cpu/cpuN directory so that a userspace program can determine
which CPUs belong to which nodes easily.  Non-NUMA systems can simply pass
NULL in for the root arg and everything will work like it used to.

22 years ago[PATCH] fix low-memory BUG in slab
Andrew Morton [Wed, 22 Oct 2003 01:22:02 +0000 (18:22 -0700)]
[PATCH] fix low-memory BUG in slab

cache_grow() will call kmem_freepages() if the call to alloc_slabmgmt()
fails.  But the pages have not been marked PageSlab at this stage, so
kmem_freepages() goes BUG.

It is more symmetrical to mark the pages as PageSlab in kmem_getpages().

The patch also prunes a bunch of incorrect comments.

(PageSlab doesn't actually do anything: its only value is as a debug check.
I think the LKCD patch uses it).

22 years ago[PATCH] Fix JBD memory leak
Andrew Morton [Wed, 22 Oct 2003 01:21:54 +0000 (18:21 -0700)]
[PATCH] Fix JBD memory leak

Plug the two-megabyte-per-day memory leak.

22 years ago[PATCH] JBD kfree() fix
Andrew Morton [Wed, 22 Oct 2003 01:21:45 +0000 (18:21 -0700)]
[PATCH] JBD kfree() fix

I happened to spot this kfree(of complete garbage) - it is on an
oh-we-raced-retry path which is obviously exceedingly rare,

22 years ago[PATCH] fs/binfmt_elf.c:load_elf_binary() doesn't verify interpreter arch
Andrew Morton [Wed, 22 Oct 2003 01:21:39 +0000 (18:21 -0700)]
[PATCH] fs/binfmt_elf.c:load_elf_binary() doesn't verify interpreter arch

From: Peter Bergner <bergner@vnet.ibm.com>

In fs/binfmt_elf.c:load_elf_binary() (both 2.6 and 2.4), there is some
minimal checking whether the interpreter it's about to load/run is a valid
ELF file, but it fails to check whether the interpreter is of the correct
arch.  We ran into this when a borked powerpc64-linux toolchain set the
interpreter on our 64-bit app to our 32-bit ld.so.  Executing the app
caused the kernel to really chew up memory.  I'm assuming x86_64 and
sparc64 might possibly see the same behavior.

Note I'm not sure of the history behind INTERPRETER_AOUT, so I added the
test for INTERPRETER_ELF so as not to change it's behavior in case someone
still relies on it.

As an aside, it seems the elf_check_arch() macros should really be checking
for more than a valid e_machine value.  I'd think checking one or more of
the e_ident[EI_CLASS], e_ident[EI_DATA] and e_ident[EI_OSABI] values would
be required as well, no?

22 years ago[PATCH] Fix mtd printk warnings
Andrew Morton [Wed, 22 Oct 2003 01:21:30 +0000 (18:21 -0700)]
[PATCH] Fix mtd printk warnings

From: Jesper Juhl <juhl-lkml@dif.dk>

22 years ago[PATCH] fix microcode.c for older gcc's
Andrew Morton [Wed, 22 Oct 2003 01:21:21 +0000 (18:21 -0700)]
[PATCH] fix microcode.c for older gcc's

Fix a C99ism.

22 years ago[PATCH] digi_acceleport.c has bogus "address of" operator
Andrew Morton [Wed, 22 Oct 2003 01:21:14 +0000 (18:21 -0700)]
[PATCH] digi_acceleport.c has bogus "address of" operator

From: "Kurtis D. Rader" <kdrader@us.ibm.com>

http://bugme.osdl.org/show_bug.cgi?id=1365

The digi_acceleport.c USB serial driver has a bogus "address of" operator
that results in BUGs.

The problem is that digi_wakeup_write_lock() takes a pointer to a struct
usb_serial_port.  However, what gets passed is a pointer to a pointer to a
struct usb_serial_port.

22 years ago[PATCH] Kill early might_sleep warnings
Andrew Morton [Wed, 22 Oct 2003 01:21:05 +0000 (18:21 -0700)]
[PATCH] Kill early might_sleep warnings

OK, I give up.  Kill all the might_sleep warnings from the early boot
process.

22 years ago[PATCH] export system_running to other files
Andrew Morton [Wed, 22 Oct 2003 01:20:57 +0000 (18:20 -0700)]
[PATCH] export system_running to other files

There seems to be no header file which declares system_running.

22 years ago[PATCH] Quota deadlock fix
Andrew Morton [Wed, 22 Oct 2003 01:20:48 +0000 (18:20 -0700)]
[PATCH] Quota deadlock fix

From: Jan Kara <jack@ucw.cz>

attached patch should fix a quota locking problem causing deadlock (when
inode was being released from icache and it caused newly created quota
structure to be written).

22 years ago[PATCH] tmpfs 7/7 write mark_page_accessed
Andrew Morton [Wed, 22 Oct 2003 01:20:40 +0000 (18:20 -0700)]
[PATCH] tmpfs 7/7 write mark_page_accessed

From: Hugh Dickins <hugh@veritas.com>

mm/filemap.c's generic_file_aio_write_nolock changed SetPageReferenced
to mark_page_accessed in -test3: now follow that in shmem_file_write.

22 years ago[PATCH] tmpfs 6/7 write i_size_write
Andrew Morton [Wed, 22 Oct 2003 01:20:33 +0000 (18:20 -0700)]
[PATCH] tmpfs 6/7 write i_size_write

From: Hugh Dickins <hugh@veritas.com>

mm/shmem.c was converted to i_size_read in -test1, and the remaining
references to a file's naked i_size are safely protected by i_sem;
but surely shmem_file_write must use i_size_write to update i_size.

22 years ago[PATCH] tmpfs 5/7 writepage/truncate race fix
Andrew Morton [Wed, 22 Oct 2003 01:20:23 +0000 (18:20 -0700)]
[PATCH] tmpfs 5/7 writepage/truncate race fix

From: Hugh Dickins <hugh@veritas.com>

If it's possible for a tmpfs page beyond i_size to remain in cache until
shmem_truncate repeats truncate_inode_pages, then shmem_writepage's
BUG_ON(index >= info->next_index) cannot be completely safe.  But it's a
useful check in a fragile area, so retain it when not in shmem_truncate.

22 years ago[PATCH] tmpfs 4/7 getpage/truncate race fix
Andrew Morton [Wed, 22 Oct 2003 01:20:16 +0000 (18:20 -0700)]
[PATCH] tmpfs 4/7 getpage/truncate race fix

From: Hugh Dickins <hugh@veritas.com>

Extend use of that SHMEM_PAGEIN flag to where shmem_getpage adds a page
to the cache.  It couldn't have caused a BUG_ON(inode->i_blocks), but if
i_size is reduced (from another cpu) the instant after shmem_swp_alloc
checks it, shmem_getpage could insert a page into the cache just after
truncate_inode_pages has passed through cleaning it, leaving stale data
(which may mysteriously reappear if the file is later extended).

Easily fixed for tmpfs, using the mechanism just added for swapoff; and
probably more important there, since its read from swap can insert non-0
data.  But is there not a similar issue, a tiny window, in filemap.c?
if truncate_inode_pages comes in between checking i_size and adding new
page to cache.  Not worth getting excited, but something to beware of.

22 years ago[PATCH] tmpfs 3/7 swapoff/truncate race fix
Andrew Morton [Wed, 22 Oct 2003 01:20:07 +0000 (18:20 -0700)]
[PATCH] tmpfs 3/7 swapoff/truncate race fix

From: Hugh Dickins <hugh@veritas.com>

On 23 July, Sergey S. Kostyliov <rathamahata@php4.ru> reported a tmpfs
BUG_ON(inode->i_blocks) during swapoff: my last version of the fix to
swapoff/truncate race was inadequate, since I_FREEING might get set or
i_size be reduced (from another cpu) the instant after it's tested here.

So revert to the previous version of the fix, shmem_truncate calling
truncate_inode_pages again, if pages still left in cache; but avoid the
recall in usual cases of partial truncation, by having a "pagein" flag
to indicate when recall might be necessary.  (Since those flags already
use VM_ACCOUNT and VM_LOCKED, must redefine another VM_flag for this.)
Sergey and 2.4-aa have run fine with this for a couple of months.

22 years ago[PATCH] tmpfs 2/7 LTP S_ISGID on directories fix
Andrew Morton [Wed, 22 Oct 2003 01:19:58 +0000 (18:19 -0700)]
[PATCH] tmpfs 2/7 LTP S_ISGID on directories fix

From: Hugh Dickins <hugh@veritas.com>

LTP tests the filesystem on /tmp: many failures when tmpfs because it missed
the way directories hand down their gid.  Also fix ramfs and hugetlbfs.

22 years ago[PATCH] tmpfs 1/7 LTP ENAMETOOLONG fix
Andrew Morton [Wed, 22 Oct 2003 01:19:49 +0000 (18:19 -0700)]
[PATCH] tmpfs 1/7 LTP ENAMETOOLONG fix

From: Hugh Dickins <hugh@veritas.com>

LTP tests the filesystem on /tmp: there are many failures when using tmpfs
because simple_lookup forgot to reject filenames longer than the NAME_MAX
tmpfs declares in its statfs.  This also fixes ramfs and hugetlbfs.

22 years ago[PATCH] atp870u oops fix
Andrew Morton [Wed, 22 Oct 2003 01:19:41 +0000 (18:19 -0700)]
[PATCH] atp870u oops fix

This driver is taking uinitialised stack gunk from the pdev[] array and
feeding it into pci_read_config_byte() and crashing when modprobed with no
hardware present.

Fix it to not index past the initialised members of pdev[].

We don't know if this driver works.

22 years ago[PATCH] Time precision, adjtime(x) vs. gettimeofday
Andrew Morton [Wed, 22 Oct 2003 01:19:33 +0000 (18:19 -0700)]
[PATCH] Time precision, adjtime(x) vs. gettimeofday

From: Stephen Hemminger <shemminger@osdl.org>

The following will prevent adjtime from causing time regression.  It delays
starting the adjtime mechanism for one tick, and keeps gettimeofday inside
the window.

Only fixes i386, but changes to other arch would be similar.

Running a simple clock test program and playing with adjtime demonstrates
that this fixes the problem (and 2.6.0-test6 is broken).  But given the
fragile nature of the timer code, it should go through some more testing
before inclusion.

22 years ago[PATCH] Fix unmap_vmas() compile warning
Andrew Morton [Wed, 22 Oct 2003 01:19:24 +0000 (18:19 -0700)]
[PATCH] Fix unmap_vmas() compile warning

Silence a bogus "may be used uninitialised" warning.  It only affects
architectures which use the tlb_finish_mmu() args.

22 years ago[PATCH] ia32 limit_regions update
Andrew Morton [Wed, 22 Oct 2003 01:19:16 +0000 (18:19 -0700)]
[PATCH] ia32 limit_regions update

Sync this up with 2.4:

 ChangeSet@1.404.2.2  2002-05-06 21:30:10-03:00  hch@infradead.org
 [PATCH] memsetup fixes (again)

 The mem= fixes from Red Hat's tree had a small bug:
 if mem= was not actually used with the additional features, but
 int plain old way, is used the value as the size of memory it
 wants, not the upper limit.  The problem with this is that there
 is a small difference due to memory holes.

 I had one report of a person using mem= to reduce memory size for
 a broken i386 chipset thaty only supports 64MB cached and the rest
 as mtd/slram device for swap.  I got broken as the boundaries changed.

22 years ago[PATCH] scsi: handle zero-length requests
Andrew Morton [Wed, 22 Oct 2003 01:19:08 +0000 (18:19 -0700)]
[PATCH] scsi: handle zero-length requests

From: Jens Axboe <axboe@suse.de>

The command 'eject /dev/scd0' sends a START_STOP command to the device with
the data direction set to SCSI_DATA_WRITE but a transfer length of zero.
This causes a problem for some code paths.

22 years ago[PATCH] fix split_vma vs. invalidate_mmap_range_list race
Andrew Morton [Wed, 22 Oct 2003 01:18:59 +0000 (18:18 -0700)]
[PATCH] fix split_vma vs. invalidate_mmap_range_list race

From: "V. Rajesh" <vrajesh@eecs.umich.edu>

If a vma is already present in an i_mmap list of a mapping,
then it is racy to update the vm_start, vm_end, and vm_pgoff
members of the vma without holding the mapping's i_shared_sem.
This is because the updates can race with invalidate_mmap_range_list.

I audited all the places that assign vm_start, vm_end, and vm_pgoff.
AFAIK, the following is the list of questionable places:

1) This patch fixes the racy split_vma. Kernel 2.4 does the
   right thing, but the following changesets introduced a race.

   http://linux.bkbits.net:8080/linux-2.5/patch@1.536.34.4
   http://linux.bkbits.net:8080/linux-2.5/patch@1.536.34.5

   You can use the patch and programs in the following URL to
   trigger the race.

  http://www-personal.engin.umich.edu/~vrajesh/linux/truncate-race/

2) This patch also locks a small racy window in vma_merge.

3) In few cases vma_merge and do_mremap expand a vma by adding
   extra length to vm_end without holding i_shared_sem. I think
   that's fine.

4) In arch/sparc64, vm_end is updated without holding i_shared_sem.
   Check make_hugetlb_page_present.  I hope that is fine, but
   I am not sure.

22 years ago[NET COMPAT]: Fix hangs caused by bugs in do_netfilter_replace().
David S. Miller [Tue, 21 Oct 2003 20:54:53 +0000 (13:54 -0700)]
[NET COMPAT]: Fix hangs caused by bugs in do_netfilter_replace().

It is illegal to try to access things via userspace pointers
after set_fs(KERNEL_DS), and that is exactly what this function
was doing.  Fix by using compat_alloc_user_user_space(), this
preserves the copy minimization the original code had.

22 years ago[TG3]: Disable/enable timer in suspend/resume.
David S. Miller [Tue, 21 Oct 2003 19:55:23 +0000 (12:55 -0700)]
[TG3]: Disable/enable timer in suspend/resume.

22 years ago[IPV6]: Set fl->proto in _decode_sesseion6.
David S. Miller [Tue, 21 Oct 2003 19:23:04 +0000 (12:23 -0700)]
[IPV6]: Set fl->proto in _decode_sesseion6.

22 years agoMerge nuts.ninka.net:/disk1/davem/BK/network-2.5
David S. Miller [Tue, 21 Oct 2003 17:36:10 +0000 (10:36 -0700)]
Merge nuts.ninka.net:/disk1/davem/BK/network-2.5
into nuts.ninka.net:/disk1/davem/BK/net-2.5

22 years agoMerge http://linux-acpi.bkbits.net/linux-acpi-release-2.6.0
Linus Torvalds [Tue, 21 Oct 2003 14:31:35 +0000 (07:31 -0700)]
Merge http://linux-acpi.bkbits.net/linux-acpi-release-2.6.0
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] Allow more APIC irq sources
James Cleverdon [Tue, 21 Oct 2003 14:27:58 +0000 (07:27 -0700)]
[PATCH] Allow more APIC irq sources

The "irq_vector[]" array is indexed by the sum of all RTEs in all I/O
APICs, and is not necessarily limited by the x86 CPU irq vector inputs.

In fact, the irq vector index would overflow on big machines with lots
of IO APIC's, causing the boot to fail.

So grow the array for the big SMP boxes, keeping the default the same as
before (and shrink the vector entry size down to a 8-bit value, since
that's the size of the actual CPU vector entry).

22 years agoMerge bk://kernel.bkbits.net/jgarzik/libata-2.5
Jeff Garzik [Tue, 21 Oct 2003 16:15:40 +0000 (12:15 -0400)]
Merge bk://kernel.bkbits.net/jgarzik/libata-2.5
into redhat.com:/spare/repo/libata-2.5-merge

22 years ago[libata] Integrate Serial ATA driver into kernel tree.
Jeff Garzik [Tue, 21 Oct 2003 15:27:28 +0000 (11:27 -0400)]
[libata] Integrate Serial ATA driver into kernel tree.

22 years ago[libata] Merge Serial ATA core, and drivers for:
Jeff Garzik [Tue, 21 Oct 2003 15:25:04 +0000 (11:25 -0400)]
[libata] Merge Serial ATA core, and drivers for:
Intel ICH5 (production)
ServerWorks / Apple K2 (beta)
VIA (beta)
Silicon Image 3112 (broken!)
Various Promise (alpha/beta)

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Tue, 21 Oct 2003 07:57:29 +0000 (00:57 -0700)]
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] 1692/1: Shark: PCIMEM_BASE
Alexander Schulz [Tue, 21 Oct 2003 22:55:29 +0000 (23:55 +0100)]
[ARM PATCH] 1692/1: Shark: PCIMEM_BASE

Patch from Alexander Schulz

This patch adds the define for PCIMEM_BASE so that the shark kernel
compiles again.

22 years ago[ARM PATCH] 1691/1: Fix IOP321 platform booting in 2.6
Dave Jiang [Tue, 21 Oct 2003 21:42:14 +0000 (22:42 +0100)]
[ARM PATCH] 1691/1: Fix IOP321 platform booting in 2.6

Patch from Dave Jiang

The fix allows IOP321 based platforms to boot all the way instead of
blank screen after "starting kernel...".  Inherited from Deepak's
earlier patch.

22 years ago[PATCH] fix drivers/ide/pci/cmd640.c for CONFIG_PCI=n
Bartlomiej Zolnierkiewicz [Tue, 21 Oct 2003 00:56:24 +0000 (17:56 -0700)]
[PATCH] fix drivers/ide/pci/cmd640.c for CONFIG_PCI=n

CMD640 driver also supports VLB version of the chipset, therefore fix
drivers/ide/Makefile to include pci/ subdir even if CONFIG_BLK_DEV_IDEPCI=n.

22 years ago[PATCH] Fix bugs in analog tv i2c-helper chipset drivers
Michael Hunold [Tue, 21 Oct 2003 00:56:07 +0000 (17:56 -0700)]
[PATCH] Fix bugs in analog tv i2c-helper chipset drivers

 - remove cruft, memset() i2c-client structures in tda9840, tea6420,
    tea6415c driver, otherwise i2c_register()/kobject() segfaults later on

22 years ago[PATCH] Fix bug in saa7146 analog tv i2c-handling
Michael Hunold [Tue, 21 Oct 2003 00:55:50 +0000 (17:55 -0700)]
[PATCH] Fix bug in saa7146 analog tv i2c-handling

 - remove cruft, add I2C_ADAP_CLASS_TV_ANALOG identifier for analog tv
   i2c handler

22 years ago[PATCH] Fix bugs in various DVB drivers
Michael Hunold [Tue, 21 Oct 2003 00:55:40 +0000 (17:55 -0700)]
[PATCH] Fix bugs in various DVB drivers

 - DVB networking uses big endian crc32, so change all occurences of
   crc32_le to crc32_be
 - fix usage of firmware location Kconfig option in tda1004x frontend
   driver
 - add missing VBI line decoding initialization to saa7113 code for
   av7110 driver
 - make av7110 firmware static and *not* __initdata, so recover_arm()
   can work in case the driver is compiled in statically

22 years ago[ACPI] Broken fan detection prevents booting (Shaohua David Li)
Len Brown [Mon, 20 Oct 2003 19:54:43 +0000 (15:54 -0400)]
[ACPI] Broken fan detection prevents booting (Shaohua David Li)
  http://bugme.osdl.org/show_bug.cgi?id=1185

22 years ago[ACPI] fix !CONFIG_PCI build
Len Brown [Mon, 20 Oct 2003 18:31:27 +0000 (14:31 -0400)]
[ACPI] fix !CONFIG_PCI build
  use X86 ACPI specific version of eisa_set_level_irq()
  http://bugzilla.kernel.org/show_bug.cgi?id=1390

22 years ago[NET]: sysctl_net_core.c needs linux/module.h
David S. Miller [Mon, 20 Oct 2003 16:26:45 +0000 (09:26 -0700)]
[NET]: sysctl_net_core.c needs linux/module.h

22 years ago[NET]: Fix sysctl breakage during network device renaming.
Dan Aloni [Mon, 20 Oct 2003 15:59:22 +0000 (08:59 -0700)]
[NET]: Fix sysctl breakage during network device renaming.

Sysctl assumes its ctl_table.procname field is const, but the
networking points ctl_table.procname to dev->name. When renaming
a network device using SIOCSIFNAME, dev->name is modified and
sysctl's assumption breaks, causing this behaviour, at least:

  1. sysctl wouldn't be able to remove the proc entry when the
     device requests to be unregistered, because it would be
     using the new name instead of the old one.
  2. proc entries for devices remain with the old name after
     rename.

This change includes allocating the current device name to a
new copy upon registering with sysctl, plus re-registering with
sysctl when the device is renamed.

This only fixes IPv4, IPv6, and net/core/neightbour.c.
Fixes for ax25 and decnet are also planned.

22 years ago[LLC]: Make LLC2 compile with PROC_FS=n
David S. Miller [Mon, 20 Oct 2003 15:34:44 +0000 (08:34 -0700)]
[LLC]: Make LLC2 compile with PROC_FS=n

22 years agoTCP: do not return -EINTR, when data are available for read()
Alexey Kuznetsov [Mon, 20 Oct 2003 15:29:51 +0000 (08:29 -0700)]
TCP: do not return -EINTR, when data are available for read()

22 years ago[PATCH] Fix initrd with devfs enabled
Alexander Viro [Mon, 20 Oct 2003 14:34:10 +0000 (07:34 -0700)]
[PATCH] Fix initrd with devfs enabled

This fixes initrd with devfs.  With that combination the late-boot code
does temporary mount of devfs over rootfs /dev, which made /dev/initrd
inaccessible.  For setups without devfs that didn't happen.

The fix is trivial - put the file in question outside of /dev; IOW,
we simply replace "/dev/initrd" with "/initrd.image" in init/*.

Confirmed to fix the problem by Valdis Kletnieks

22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Mon, 20 Oct 2003 14:23:49 +0000 (07:23 -0700)]
Merge http://lia64.bkbits.net/to-linus-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge nuts.ninka.net:/disk1/davem/BK/network-2.5
David S. Miller [Mon, 20 Oct 2003 14:22:01 +0000 (07:22 -0700)]
Merge nuts.ninka.net:/disk1/davem/BK/network-2.5
into nuts.ninka.net:/disk1/davem/BK/net-2.5

22 years agoMerge bk://cifs.bkbits.net/linux-2.5cifs
Linus Torvalds [Mon, 20 Oct 2003 09:56:40 +0000 (02:56 -0700)]
Merge bk://cifs.bkbits.net/linux-2.5cifs
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] kNFSd - In READDIRPLUS reply, don't return a file handle for a mounted direc...
Neil Brown [Mon, 20 Oct 2003 09:55:41 +0000 (02:55 -0700)]
[PATCH] kNFSd -  In READDIRPLUS reply, don't return a file handle for a mounted directory.

... as if "nohide" is in used, it will be the wrong filehandle, and
returning a filehandle is optional anyway.

22 years ago[PATCH] md - Use sector rather than block numbers when splitting raid0 requests.
Neil Brown [Mon, 20 Oct 2003 09:55:32 +0000 (02:55 -0700)]
[PATCH] md -  Use sector rather than block numbers when splitting raid0 requests.

When raid0 needs to split a request, it uses 'block' (1K) addresses
rather than sector (512b) addresses, which causes problems if the sector
address is odd.  This patch fixes the problem.

Thanks to Andy Polyakov <appro@fy.chalmers.se>

22 years ago[PATCH] Fix bttv BUG() at video-buf.c:378
Gerd Knorr [Mon, 20 Oct 2003 09:54:02 +0000 (02:54 -0700)]
[PATCH] Fix bttv BUG() at video-buf.c:378

As found by Herbert Xu: the last v4l update broke bttv.  videobuf_iolock
was passed a vb that has just been filled with zeros.

Fixed like this.

22 years ago[PATCH] fix drivers/ide/pci/siimage.c for PROC_FS=n
Bartlomiej Zolnierkiewicz [Mon, 20 Oct 2003 09:49:55 +0000 (02:49 -0700)]
[PATCH] fix drivers/ide/pci/siimage.c for PROC_FS=n

From: "Noah J. Misch" <noah@caltech.edu>

The Silicon Image driver is not building properly when CONFIG_PROC_FS is unset.
This patch corrects that problem.  It appears as though several utility
functions at the top of drivers/ide/pci/siimage.c that the driver always needs
accidentally fell within an #ifdef CONFIG_PROC_FS.  I also removed an excess
include while I noticed it.

22 years ago[PATCH] ia64: two perfmon fixes
Stéphane Eranian [Mon, 20 Oct 2003 09:25:31 +0000 (02:25 -0700)]
[PATCH] ia64: two perfmon fixes

- converts hdr_cur_pos into hdr_cur_offs to avoid leaking kernel
  addresses to userland. As a consequence hdr_last_pos is gone.

- correct buffer saturation mode bug by which the hdr_count would
  be reset, leading to no visible samples collected.

22 years ago[PATCH] ia64: make strace of ia32 processes work again
Arun Sharma [Mon, 20 Oct 2003 09:20:38 +0000 (02:20 -0700)]
[PATCH] ia64: make strace of ia32 processes work again

Newer versions of strace manipulate the syscall arguments and to make this
work for ia32 processes, we need to reload the syscall args after
doing the syscall-trace callback.

22 years agoia64: Sync with i386 irq.c (deadlock avoidance for certain disable_irq()/
David Mosberger [Mon, 20 Oct 2003 09:07:57 +0000 (02:07 -0700)]
ia64: Sync with i386 irq.c (deadlock avoidance for certain disable_irq()/
enable_irq() sequences).

22 years ago[PATCH] ia64: zero out topology related sysfs nodes
Jesse Barnes [Mon, 20 Oct 2003 09:05:49 +0000 (02:05 -0700)]
[PATCH] ia64: zero out topology related sysfs nodes

Tony pointed out (thanks Tony) that in -test8 kobject_set_name() will
try to free a kobject's k_name field if it's non-NULL, so we need to
zero it out in case kmalloc() gave us recycled memory or we'll try to
kfree a bogus area.

22 years agoMerge tiger.hpl.hp.com:/data1/bk/vanilla/linux-2.5
David Mosberger [Mon, 20 Oct 2003 04:58:50 +0000 (21:58 -0700)]
Merge tiger.hpl.hp.com:/data1/bk/vanilla/linux-2.5
into tiger.hpl.hp.com:/data1/bk/lia64/to-linus-2.5

22 years ago[PATCH] ia64: fix EFI memory map trimming
Bjorn Helgaas [Mon, 20 Oct 2003 04:54:48 +0000 (21:54 -0700)]
[PATCH] ia64: fix EFI memory map trimming

This fixes a problem in EFI memory map trimming. For example,
here's part of the memory map on my i2000:

    mem00: type=4, attr=0x9, range=[0x0000000000000000-0x0000000000001000) (0MB)
    mem01: type=7, attr=0x9, range=[0x0000000000001000-0x0000000000088000) (0MB)
    mem02: type=4, attr=0x9, range=[0x0000000000088000-0x00000000000a0000) (0MB)
    mem03: type=5, attr=0x8000000000000009, range=[0x00000000000c0000-0x0000000000100000) (0MB)
    mem04: type=7, attr=0x9, range=[0x0000000000100000-0x0000000004000000) (63MB)
    mem05: type=2, attr=0x9, range=[0x0000000004000000-0x00000000049ba000) (9MB)
    mem06: type=7, attr=0x9, range=[0x00000000049ba000-0x000000007ec0b000) (1954MB)
    ...

There's a hole at 0xa0000-0xc0000, so we should ignore all the WB memory
in that granule.  With 16MB granules, the existing code trims like this
(note the 4K page at 0x0 should have been ignored, but wasn't).

22 years agoMerge intel.com:/home/lenb/bk/linux-2.6.0
Len Brown [Sun, 19 Oct 2003 18:45:04 +0000 (14:45 -0400)]
Merge intel.com:/home/lenb/bk/linux-2.6.0
into intel.com:/home/lenb/bk/linux-acpi-test-2.6.0

22 years agoMerge bk://linux.bkbits.net/linux-2.5
Steve French [Sun, 19 Oct 2003 04:54:45 +0000 (21:54 -0700)]
Merge bk://linux.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/repos/c/cifs/linux-2.5cifs

22 years ago[NET]: More build fixes for CONFIG_XFRM disabled.
Herbert Xu [Sat, 18 Oct 2003 17:12:20 +0000 (10:12 -0700)]
[NET]: More build fixes for CONFIG_XFRM disabled.

22 years ago[NET]: Make register_netdevice return correct error when driver init function fails.
Andrew Morton [Sat, 18 Oct 2003 17:09:56 +0000 (10:09 -0700)]
[NET]: Make register_netdevice return correct error when driver init function fails.

22 years ago[NET]: Prevent 'eth0: driver changed get_stats after register' from lying.
Russell King [Sat, 18 Oct 2003 17:08:39 +0000 (10:08 -0700)]
[NET]: Prevent 'eth0: driver changed get_stats after register' from lying.

22 years ago[EBTABLES]: Adjust skb->pkt_type when necessary.
Bart De Schuymer [Sat, 18 Oct 2003 17:07:51 +0000 (10:07 -0700)]
[EBTABLES]: Adjust skb->pkt_type when necessary.

22 years ago[NET]: Undo deprecation of init_etherdev, we will add it back once all in-tree driver...
David S. Miller [Fri, 17 Oct 2003 17:11:55 +0000 (10:11 -0700)]
[NET]: Undo deprecation of init_etherdev, we will add it back once all in-tree drivers are fixed.

22 years ago[IPV6]: Fix sit.c compilation w/o CONFIG_XFRM.
Zwane Mwaikambo [Fri, 17 Oct 2003 17:07:42 +0000 (10:07 -0700)]
[IPV6]: Fix sit.c compilation w/o CONFIG_XFRM.

22 years agoia64: Don't mix code and declarations (not C90-compliant).
David Mosberger [Fri, 17 Oct 2003 15:58:27 +0000 (08:58 -0700)]
ia64: Don't mix code and declarations (not C90-compliant).

22 years agoia64: Fix printk format error.
David Mosberger [Fri, 17 Oct 2003 15:55:18 +0000 (08:55 -0700)]
ia64: Fix printk format error.

22 years agoia64: Add missing exports to modules build again.
David Mosberger [Fri, 17 Oct 2003 15:51:49 +0000 (08:51 -0700)]
ia64: Add missing exports to modules build again.

22 years ago[ACPI] fix acpi_ev_gpe_dispatch() parameter (Bob Moore)
Len Brown [Fri, 17 Oct 2003 13:36:36 +0000 (09:36 -0400)]
[ACPI] fix acpi_ev_gpe_dispatch() parameter (Bob Moore)

22 years ago[ACPI] acpi_ec_gpe_query(ec) fix for T40 crash (Shaohua David Li)
Len Brown [Fri, 17 Oct 2003 13:19:54 +0000 (09:19 -0400)]
[ACPI] acpi_ec_gpe_query(ec) fix for T40 crash (Shaohua David Li)
http://bugme.osdl.org/show_bug.cgi?id=1171

22 years ago[ACPI] fix object reference count bug for battery status (Shaohua David Li)
Len Brown [Fri, 17 Oct 2003 13:19:38 +0000 (09:19 -0400)]
[ACPI] fix object reference count bug for battery status (Shaohua David Li)
http://bugme.osdl.org/show_bug.cgi?id=1038

22 years ago[ACPI] speed up reads from /proc/acpi/ (Shaohua David Li)
Len Brown [Fri, 17 Oct 2003 13:18:54 +0000 (09:18 -0400)]
[ACPI] speed up reads from /proc/acpi/ (Shaohua David Li)
http://bugme.osdl.org/show_bug.cgi?id=726

22 years agoLinux 2.6.0-test8 v2.6.0-test8
Linus Torvalds [Fri, 17 Oct 2003 07:39:22 +0000 (00:39 -0700)]
Linux 2.6.0-test8

22 years ago[PATCH] ia64: fix topology init
Jesse Barnes [Fri, 17 Oct 2003 06:18:35 +0000 (23:18 -0700)]
[PATCH] ia64: fix topology init

Populate topology directories correctly now that NUMA kernels work.