]> git.neil.brown.name Git - history.git/log
history.git
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 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[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 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 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.

22 years ago[PATCH] remove "biostimings" boot options
Bartlomiej Zolnierkiewicz [Fri, 17 Oct 2003 03:49:21 +0000 (20:49 -0700)]
[PATCH] remove "biostimings" boot options

They were added by Torben to workaround ServerWorks driver problems
(fixed by previous patch), but depending on BIOS can be dangerous on
other chipsets and it is always better to fix specific driver.

Removal of these options was acked by Torben.

22 years ago[PATCH] fix ServerWorks PIO auto-tuning
Bartlomiej Zolnierkiewicz [Fri, 17 Oct 2003 03:49:11 +0000 (20:49 -0700)]
[PATCH] fix ServerWorks PIO auto-tuning

If PIO mode should be auto-tuned xferspeed argument for svwks_tune_chipset()
is equal to 255 (0xFF).  It is then passed to ide_rate_filter() which matches
desired mode with chipset capabilities.  Since 255 is greater than any of the
values used for transfer modes, ide_rate_filter() will always return the
highest mode supported by both device/chipset (which sometimes should not be
used ie. when host is a simplex one) and the wrong mode will be set.

Thanks to Torben Mathiasen and Tomas Szepe for testing it.

22 years ago[PATCH] fix ide-floppy IOMEGA logic
Jens Axboe [Fri, 17 Oct 2003 00:37:22 +0000 (17:37 -0700)]
[PATCH] fix ide-floppy IOMEGA logic

The original change turned out to be too restrictive, it catches devices
that don't need the work around.

This fixes that, thanks to Bart for informing me of the screwup.

22 years agoMerge davem@nuts.ninka.net:/disk1/davem/BK/net-2.5
David S. Miller [Thu, 16 Oct 2003 20:50:27 +0000 (13:50 -0700)]
Merge davem@nuts.ninka.net:/disk1/davem/BK/net-2.5
into kernel.bkbits.net:/home/davem/net-2.5

22 years ago[NET]: Convert sk98lin away from init_etherdev.
David S. Miller [Thu, 16 Oct 2003 19:42:49 +0000 (12:42 -0700)]
[NET]: Convert sk98lin away from init_etherdev.

22 years ago[NET]: Delete comment reference to init_etherdev which the driver does not even use.
David S. Miller [Thu, 16 Oct 2003 19:33:13 +0000 (12:33 -0700)]
[NET]: Delete comment reference to init_etherdev which the driver does not even use.

22 years ago[NET]: Convert myri_sbus away from init_etherdev.
David S. Miller [Thu, 16 Oct 2003 19:30:37 +0000 (12:30 -0700)]
[NET]: Convert myri_sbus away from init_etherdev.

22 years ago[NET]: Delete bogus unregister_netdev() call in sunbmac.
David S. Miller [Thu, 16 Oct 2003 19:27:43 +0000 (12:27 -0700)]
[NET]: Delete bogus unregister_netdev() call in sunbmac.

22 years ago[NET]: Convert sunbmac away from init_etherdev.
David S. Miller [Thu, 16 Oct 2003 19:24:11 +0000 (12:24 -0700)]
[NET]: Convert sunbmac away from init_etherdev.

22 years ago[NET]: Convert sunlance away from init_etherdev.
David S. Miller [Thu, 16 Oct 2003 19:20:05 +0000 (12:20 -0700)]
[NET]: Convert sunlance away from init_etherdev.

22 years ago[ATM]: Minor cleanup for vcc_hash conversion
Chas Williams [Thu, 16 Oct 2003 18:11:41 +0000 (11:11 -0700)]
[ATM]: Minor cleanup for vcc_hash conversion

22 years ago[ATM]: Remove vcc reference on outstanding SKBs
Chas Williams [Thu, 16 Oct 2003 18:11:19 +0000 (11:11 -0700)]
[ATM]: Remove vcc reference on outstanding SKBs

22 years ago[ATM]: Change ifdef in lanai_ioctl
Chas Williams [Thu, 16 Oct 2003 18:10:54 +0000 (11:10 -0700)]
[ATM]: Change ifdef in lanai_ioctl

22 years ago[ATM]: sdh should be off by default.
Chas Williams [Thu, 16 Oct 2003 18:10:28 +0000 (11:10 -0700)]
[ATM]: sdh should be off by default.

22 years ago[NET]: Catch buggy net drivers changing getstats op after registry.
Stephen Hemminger [Thu, 16 Oct 2003 18:09:43 +0000 (11:09 -0700)]
[NET]: Catch buggy net drivers changing getstats op after registry.

22 years ago[NET]: Fix socket test in dev_queue_xmit_nit().
Petr Vandrovec [Thu, 16 Oct 2003 18:08:58 +0000 (11:08 -0700)]
[NET]: Fix socket test in dev_queue_xmit_nit().

22 years ago[IPV6]: Fix typo in addrconf.c
David S. Miller [Thu, 16 Oct 2003 18:06:40 +0000 (11:06 -0700)]
[IPV6]: Fix typo in addrconf.c

22 years ago[IPV6]: MIB fix, provide timestamps in ifa_cacheinfo.
Shirley Ma [Thu, 16 Oct 2003 18:05:30 +0000 (11:05 -0700)]
[IPV6]: MIB fix, provide timestamps in ifa_cacheinfo.

22 years ago[NET]: Mark init_etherdev() as deprecated.
Stephen Hemminger [Thu, 16 Oct 2003 18:03:12 +0000 (11:03 -0700)]
[NET]: Mark init_etherdev() as deprecated.

22 years agoMerge http://mdomsch.bkbits.net/linux-2.5-edd
Linus Torvalds [Thu, 16 Oct 2003 14:49:17 +0000 (07:49 -0700)]
Merge http://mdomsch.bkbits.net/linux-2.5-edd
into home.osdl.org:/home/torvalds/v2.5/linux

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

22 years ago[PATCH] ia64: fix perfmon typo that broke Itanium build
Rusty Lynch [Thu, 16 Oct 2003 13:08:05 +0000 (06:08 -0700)]
[PATCH] ia64: fix perfmon typo that broke Itanium build

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Thu, 16 Oct 2003 10:14:43 +0000 (03:14 -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] 1687/1: Add {params,initrd}_phys vars to enable bootpImage support on...
George G. Davis [Thu, 16 Oct 2003 21:42:00 +0000 (22:42 +0100)]
[ARM PATCH] 1687/1: Add {params,initrd}_phys vars to enable bootpImage support on SA1100

Patch from George G. Davis

Basically just adds a couple of missing vars so I can build bootpImages for SA1100.

22 years ago[ARM PATCH] 1686/1: Fix params-phys typos
George G. Davis [Thu, 16 Oct 2003 21:38:37 +0000 (22:38 +0100)]
[ARM PATCH] 1686/1: Fix params-phys typos

Patch from George G. Davis

This fixes a couple of params-phys typos

22 years ago[ARM PATCH] 1685/1: Fix bootpImage build target
George G. Davis [Thu, 16 Oct 2003 21:35:33 +0000 (22:35 +0100)]
[ARM PATCH] 1685/1: Fix bootpImage build target

Patch from George G. Davis

The boopImage build target rule is currently broken. This is the quick fix.

22 years ago[ARM PATCH] 1684/1: Add uImage build target rule
George G. Davis [Thu, 16 Oct 2003 21:32:23 +0000 (22:32 +0100)]
[ARM PATCH] 1684/1: Add uImage build target rule

Patch from George G. Davis

This adds an `make uImage` build target rule to create boot images for targets which use u-Boot firmware. This build target already exists for the PPC architecture.

22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Thu, 16 Oct 2003 08:37:58 +0000 (01:37 -0700)]
Merge http://lia64.bkbits.net/to-linus-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] ia64: perfmon-2 fixes
Stéphane Eranian [Thu, 16 Oct 2003 08:13:18 +0000 (01:13 -0700)]
[PATCH] ia64: perfmon-2 fixes

 - remove PFM_FL_UNSECURE support because broken
 - remove instrumentation code for syswide ctx update (5% speedup)
 - integrated cleanups from John Levon
 - remove references to pmu_conf.ovfl_val from loops, use local variable
 - updated pfm_bad_permissions()
 - support reset values for non-counting pmds
 - serialization of PFM_RESTART
 - added support for restart_active in per-task mode
 - remove potential deadlock caused by calling pfm_overflow_handler()   from pfm_load_regs()
 - fix invalid check in perfmon_mckinley() for PMC13

22 years ago[PATCH] ia64: MCA min_state area must be uncacheable
Tony Luck [Thu, 16 Oct 2003 08:11:43 +0000 (01:11 -0700)]
[PATCH] ia64: MCA min_state area must be uncacheable

Software Developer's Manual page 2:270, section 11.3.2.3
says that the processor min-state save area must be in an
uncacheable region ... but current MCA recovery code
allocates the min-state area "ia64_mca_min_state_save_info"
in regular kernel data/bss.

This patch re-uses the same min-state area that the PAL/SAL
used to report the error to Linux ... which mostly requires
deleting code and declarations (some of which were wrong,
MIN_STATE_AREA_SIZE ought to have been 58).  The real "work"
is copying the pointer to the min-state area from the
sal_to_os handoff structure into the os_to_sal structure.

22 years agoAllow Turtle Beach sound drivers to be compiled modular when
Linus Torvalds [Thu, 16 Oct 2003 06:57:24 +0000 (23:57 -0700)]
Allow Turtle Beach sound drivers to be compiled modular when
STANDALONE is set, since the firmware is only required for the
built-in case.

22 years ago[PATCH] H8/300 support update
Yoshinori Sato [Thu, 16 Oct 2003 02:56:26 +0000 (19:56 -0700)]
[PATCH] H8/300 support update

 - fix semaphore problem
 - document update and config fix

22 years agoMerge http://ppc.bkbits.net/for-linus-ppc64
Linus Torvalds [Thu, 16 Oct 2003 01:28:21 +0000 (18:28 -0700)]
Merge http://ppc.bkbits.net/for-linus-ppc64
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoppc64: arguments to mlockall and msync dont need sign extending
Anton Blanchard [Fri, 17 Oct 2003 09:54:59 +0000 (19:54 +1000)]
ppc64: arguments to mlockall and msync dont need sign extending

22 years agoppc64: remove old comment, copy_tofrom_user zeros destination on a load fault
Anton Blanchard [Fri, 17 Oct 2003 09:42:41 +0000 (19:42 +1000)]
ppc64: remove old comment, copy_tofrom_user zeros destination on a load fault

22 years agoMerge samba.org:/home/anton/ppc64/linux-2.5
Anton Blanchard [Fri, 17 Oct 2003 09:29:21 +0000 (19:29 +1000)]
Merge samba.org:/home/anton/ppc64/linux-2.5
into samba.org:/home/anton/ppc64/for-linus-ppc64

22 years agoppc64: Use kmalloc for kernel stacks, like x86 (makes usage easy to track via slabinfo)
Anton Blanchard [Fri, 17 Oct 2003 09:24:32 +0000 (19:24 +1000)]
ppc64: Use kmalloc for kernel stacks, like x86 (makes usage easy to track via slabinfo)

22 years agoppc64: nuke a bunch of warnings, from akpm
Anton Blanchard [Fri, 17 Oct 2003 09:15:55 +0000 (19:15 +1000)]
ppc64: nuke a bunch of warnings, from akpm

22 years agoppc64: Fix for sym2 problem (first place that checked pci_set_mwi return code)
Anton Blanchard [Thu, 16 Oct 2003 23:16:49 +0000 (09:16 +1000)]
ppc64: Fix for sym2 problem (first place that checked pci_set_mwi return code)

22 years agoMerge samba.org:/home/anton/ppc64/linux-2.5
Anton Blanchard [Thu, 16 Oct 2003 22:44:51 +0000 (08:44 +1000)]
Merge samba.org:/home/anton/ppc64/linux-2.5
into samba.org:/home/anton/ppc64/for-linus-ppc64

22 years agomerge some irq.c fixes from x86
Anton Blanchard [Thu, 16 Oct 2003 21:44:00 +0000 (07:44 +1000)]
merge some irq.c fixes from x86

22 years agoMerge samba.org:/stuff/paulus/kernel/linux-2.5
Paul Mackerras [Thu, 16 Oct 2003 18:44:07 +0000 (04:44 +1000)]
Merge samba.org:/stuff/paulus/kernel/linux-2.5
into samba.org:/stuff/paulus/kernel/for-linus-ppc64

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

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

22 years ago[PATCH] Eicon ISDN driver: use work_struct instead of tasklet for dpc.
Armin Schindler [Thu, 16 Oct 2003 00:51:59 +0000 (17:51 -0700)]
[PATCH] Eicon ISDN driver: use work_struct instead of tasklet for dpc.

22 years ago[PATCH] reiserfs/procfs.c fix
Alexander Viro [Thu, 16 Oct 2003 00:51:49 +0000 (17:51 -0700)]
[PATCH] reiserfs/procfs.c fix

Fix breakage in reiserfs/procfs.c iterator.

Nikita had ACKed the patch.

22 years ago[PATCH] ide-floppy IOMEGA ZIP fix
Jens Axboe [Thu, 16 Oct 2003 00:51:41 +0000 (17:51 -0700)]
[PATCH] ide-floppy IOMEGA ZIP fix

From ramon_garcia_f@yahoo.com:

 "I am experiencing lost interrupts when writting (but not when reading)
  to an IOMEGA Zip drive with the ATAPI floppy driver.

  The driver seems to be aware of the problem and has a workaround for
  it.  Unfortunately my drive is not detected as an IOMEGA drive.  The
  reason is that the model of my drive is "IOMEGA ZIP 100 ATAPI Floppy"
  instead of "IOMEGA ZIP 100 ATAPI", that is what the driver expects. "

22 years ago[PATCH] current_is_kswapd() is a function
Andrew Morton [Thu, 16 Oct 2003 00:35:50 +0000 (17:35 -0700)]
[PATCH] current_is_kswapd() is a function

From: William Lee Irwin III <wli@holomorphy.com>

So call it rather than testing its address...

22 years ago[PATCH] saa7134-core.c compile fix for old gcc
Andrew Morton [Thu, 16 Oct 2003 00:34:56 +0000 (17:34 -0700)]
[PATCH] saa7134-core.c compile fix for old gcc

It is using token pasting in ways which confuse gcc-2.9x.

22 years ago[PATCH] ext2/ext3 acl signedness fixes
Andrew Morton [Thu, 16 Oct 2003 00:34:10 +0000 (17:34 -0700)]
[PATCH] ext2/ext3 acl signedness fixes

From: "Alexey Dobriyan" <adobriyan@mail.ru>,
      Andreas Gruenbacher <agruen@suse.de>

Make local variable `count' an integer so the subsequent test for
negativeness makes sense.

22 years ago[PATCH] applicom: fix LEAK, unwind on errors
Andrew Morton [Thu, 16 Oct 2003 00:33:30 +0000 (17:33 -0700)]
[PATCH] applicom: fix LEAK, unwind on errors

From: "Randy.Dunlap" <rddunlap@osdl.org>

Fix a permanent resource leak and also some resource leaks on error paths.

22 years ago[PATCH] ext3: i_disksize locking fix
Andrew Morton [Thu, 16 Oct 2003 00:32:49 +0000 (17:32 -0700)]
[PATCH] ext3: i_disksize locking fix

From: Alex Tomas <alex@clusterfs.com>

The setting of i_disksize can race against concurrent invokations of
ext3_get_block().  Moving this inside i_truncate_sem fixes it up.

22 years ago[PATCH] silence smp_read_mpc_oem() declared static but never defined warning
Andrew Morton [Thu, 16 Oct 2003 00:32:16 +0000 (17:32 -0700)]
[PATCH] silence smp_read_mpc_oem() declared static but never defined warning

From: William Lee Irwin III <wli@holomorphy.com>

The forward static declaration in a header is a) weird and b) generates a
warning if the inline function which needs it is not expanded.

Move these things from .h into .c

22 years ago[PATCH] reiserfs documentation URL fixes
Andrew Morton [Thu, 16 Oct 2003 00:31:44 +0000 (17:31 -0700)]
[PATCH] reiserfs documentation URL fixes

From: Yury Umanets <umka@namesys.com>

Fix the reiserfs Kconfig URLs.

22 years ago[PATCH] Don't swap to files which do not implement readpage
Andrew Morton [Thu, 16 Oct 2003 00:31:16 +0000 (17:31 -0700)]
[PATCH] Don't swap to files which do not implement readpage

From: Zwane Mwaikambo <zwane@arm.linux.org.uk>

The swapon code uses read_cache_page() to access the swap header, so the
filesystem had better implement it.

22 years ago[PATCH] Correct case sensitivity in make mandocs
Andrew Morton [Thu, 16 Oct 2003 00:30:48 +0000 (17:30 -0700)]
[PATCH] Correct case sensitivity in make mandocs

From: Michael Still <mikal@stillhq.com>

The attached patch corrects case sensitivity in the mandocs make target.
XML is case insensitive, and a bunch of the kernel-doc assumes this.  The
makeman and splitman scripts incorrectly cared about case.  This patch also
updates the Docbook DTD version which the script generates.

22 years ago[PATCH] SELINUX: add policyvers to selinuxfs
Andrew Morton [Thu, 16 Oct 2003 00:30:28 +0000 (17:30 -0700)]
[PATCH] SELINUX: add policyvers to selinuxfs

From: James Morris <jmorris@redhat.com>

This patch adds a file to the root selinuxfs directory which returns the
security policy version associated with the currently running kernel.  Its
purpose is to allow scripts to determine which version of policy to load.

22 years ago[PATCH] Fix early __might_sleep() calls
Andrew Morton [Thu, 16 Oct 2003 00:30:11 +0000 (17:30 -0700)]
[PATCH] Fix early __might_sleep() calls

From: Roger Luethi <rl@hellgate.ch>

__might_sleep prints warnings only after jiffies wrap (typically after 5
minutes of uptime).

22 years ago[PATCH] Add missing sjcd uaccess checks
Andrew Morton [Thu, 16 Oct 2003 00:29:58 +0000 (17:29 -0700)]
[PATCH] Add missing sjcd uaccess checks

From: Felipe W Damasio <felipewd@terra.com.br>

Check the return of copy_from_user in a few places to not use buggy
structures if copy_from_user != 0.  Found by smatch.

22 years ago[PATCH] drivers/block/initrd.c removal
Andrew Morton [Thu, 16 Oct 2003 00:29:46 +0000 (17:29 -0700)]
[PATCH] drivers/block/initrd.c removal

From: viro@parcelfarce.linux.theplanet.co.uk

* drivers/block/initrd.c gone

* chunk of memory where the current tree would look for intird image is
  checked for being a valid initramfs image first; then, it is either
  unpacked (in addition to normal built-in image) or, if it wasn't a valid
  image, copied into a regular file on rootfs called /dev/initrd.  Then
  memory is freed.

Result:

a) we can put initramfs image in place of initrd one and kernel will DTRT.

b) initrd images still work as usual; code that shoves the thing to
   ramdisk, etc.  doesn't care whether it reads from a block device or
   regular file.

c) initrd.c is gone, so is fake block device and a lot of irregularities
   with it.

It has been in -mm for almost two weeks with no reported problems.

22 years ago[NET]: Grab RTNL semaphore in init_netdev() if we call dev_alloc_name().
Randy Dunlap [Wed, 15 Oct 2003 15:33:53 +0000 (08:33 -0700)]
[NET]: Grab RTNL semaphore in init_netdev() if we call dev_alloc_name().