]> git.hungrycats.org Git - linux/log
linux
23 years ago[PATCH] fix wrong argument prototype in m68knommu/68360 for interrupt handler
Greg Ungerer [Tue, 11 Mar 2003 01:46:15 +0000 (17:46 -0800)]
[PATCH] fix wrong argument prototype in m68knommu/68360 for interrupt handler

Fix wrong argument prototype in m68knommu commproc.c.

23 years ago[PATCH] m68knommu/de2 should use generic 68328 irq setup.
Greg Ungerer [Tue, 11 Mar 2003 01:46:07 +0000 (17:46 -0800)]
[PATCH] m68knommu/de2 should use generic 68328 irq setup.

This patch fixes the m68knommu de2 platform config to use the generic
68328 irq setup. All 68*328 family can use the same setup.

23 years ago[PATCH] fix spelling in m68knommu Kconfig help
Greg Ungerer [Tue, 11 Mar 2003 01:45:59 +0000 (17:45 -0800)]
[PATCH] fix spelling in m68knommu Kconfig help

This patch fixes a couple of spelling errors in the m68knommy Kconfig
help entries. Also makes CONFIG_HIGHPROFILE dependant on CONFIG_COLDFIRE,
since that feature is only implemented on ColdFIre based platforms.

23 years ago[PATCH] m68knommu/ucdimm should use generic 68328 irq setup.
Greg Ungerer [Tue, 11 Mar 2003 01:45:51 +0000 (17:45 -0800)]
[PATCH] m68knommu/ucdimm should use generic 68328 irq setup.

This patch fixes the m68knommu ucdimm platform config to use the generic
68328 irq setup. All 68*328 family can use the same setup.

23 years ago[PATCH] include errn0.h in m68knommu 68328 interrupt setup code
Greg Ungerer [Tue, 11 Mar 2003 01:45:41 +0000 (17:45 -0800)]
[PATCH] include errn0.h in m68knommu 68328 interrupt setup code

Include errno.h in the m68knommu 68328 specific interrupt setup code.
It needs a few E* types as return values.

23 years ago[PATCH] include unistd.h in m68knommu 68328 entry code
Greg Ungerer [Tue, 11 Mar 2003 01:45:33 +0000 (17:45 -0800)]
[PATCH] include unistd.h in m68knommu 68328 entry code

Include asm/unistd.h to get the NR_syscalls definition in the
m68knommu 68328 interrupt entry code.

23 years ago[PATCH] include unistd.h in m68knommu 68360 entry code
Greg Ungerer [Tue, 11 Mar 2003 01:45:24 +0000 (17:45 -0800)]
[PATCH] include unistd.h in m68knommu 68360 entry code

Include asm/unistd.h to get the NR_syscalls definition in the
m68knommu 68360 interrupt entry code.

23 years ago[PATCH] EISA/sysfs update
Marc Zyngier [Tue, 11 Mar 2003 01:36:55 +0000 (17:36 -0800)]
[PATCH] EISA/sysfs update

Here is the latest round of EISA/sysfs update.

 - Add documentation,
 - Add support for per EISA-id driver data,
 - Move virtual_root device to a platform device,
 - Update CREDITS.

23 years ago[PATCH] compat_sys_fcntl{,64} parisc part
Stephen Rothwell [Tue, 11 Mar 2003 01:34:25 +0000 (17:34 -0800)]
[PATCH] compat_sys_fcntl{,64} parisc part

Here is the parisc part of the patch with Willy's blessing.

23 years ago[PATCH] compat_sys_fcntl{,64} s390x part
Stephen Rothwell [Tue, 11 Mar 2003 01:34:17 +0000 (17:34 -0800)]
[PATCH] compat_sys_fcntl{,64} s390x part

Here is the s390x part of the patch with Martin's blessing.

23 years ago[PATCH] compat_sys_fcntl{,64} x86_64 part
Stephen Rothwell [Tue, 11 Mar 2003 01:34:10 +0000 (17:34 -0800)]
[PATCH] compat_sys_fcntl{,64} x86_64 part

Here is the x86_64 part of the patch with Andi's blessing.

23 years ago[PATCH] compat_sys_fcntl{,64} Generic part
Stephen Rothwell [Tue, 11 Mar 2003 01:34:01 +0000 (17:34 -0800)]
[PATCH] compat_sys_fcntl{,64} Generic part

This patch creates compat_sys_fcntl{,64}.  The diffstat for the whole
patch set is below, but this is just the generic part, the architecture
specific parts will follow.

This patch also removes struct flock64 from all the 64 bit architectures
(except parisc).

23 years agoMerge tetrachloride.(none):/mnt/raid/src/kernel/2.5/bk-linus
Dave Jones [Tue, 11 Mar 2003 11:59:10 +0000 (10:59 -0100)]
Merge tetrachloride.(none):/mnt/raid/src/kernel/2.5/bk-linus
into tetrachloride.(none):/mnt/raid/src/kernel/2.5/cpufreq

23 years ago[CPUFREQ] More typos.
Dave Jones [Tue, 11 Mar 2003 11:56:25 +0000 (10:56 -0100)]
[CPUFREQ] More typos.

23 years ago[CPUFREQ] powernow-k7 lazy voltage setting.
Dave Jones [Mon, 10 Mar 2003 16:07:10 +0000 (15:07 -0100)]
[CPUFREQ] powernow-k7 lazy voltage setting.

23 years ago[CPUFREQ] Fix documentation typos.
Dave Jones [Mon, 10 Mar 2003 15:59:58 +0000 (14:59 -0100)]
[CPUFREQ] Fix documentation typos.

23 years ago[PATCH] ext2: fix directory handling bug
Andrew Morton [Mon, 10 Mar 2003 15:42:47 +0000 (07:42 -0800)]
[PATCH] ext2: fix directory handling bug

Patch from Dave Miller.  Fixes a very long-standing bug.

If a process has an fd open against a now-removed directory, lookups on that
fd will end up calling ext2_find_entry() against a zero-length directory.

When this happens ext2_find_entry() will, on the first pass through the loop,
set `kaddr' to page_address(page) - 20.  Things get confused and the "zero
length directory entry" warning triggers.

This only happens on 64-bit machines, because ext2_last_byte() is returning
an unsigned (32-bit) value, and the arithmetic works out OK for 32-bit
machines.

So we change ext2_find_entry() to bale out immediately if the directory is
zero-length.  All other directory-walking functions do this, but
ext2_find_entry() forgot to, due to the search-from-the-last-place
optimisation.

23 years ago[PATCH] ext3: error handling robustness
Andrew Morton [Mon, 10 Mar 2003 15:42:39 +0000 (07:42 -0800)]
[PATCH] ext3: error handling robustness

Fix a couple of ext3 error handling routines to not assume that the
superblock has valid journal and buffer_head pointers.  These functions are
called during mount and unmount and that may not be true.

This should fix the oops which Zwane saw when mounting a corrupt filesystem.

23 years ago[PATCH] Force cache alignment of task_structs
Andrew Morton [Mon, 10 Mar 2003 15:42:31 +0000 (07:42 -0800)]
[PATCH] Force cache alignment of task_structs

I enabled the advanced use-after-free detector for large slab objects and the
kernel oopsed.  This is because that debug code adds things at the head of
the slab objects, and the kernel will die if task_structs are not
well-aligned.

The way to tell the slab allocator that it is not allowed to misalign objects
from this slab is SLAB_MUST_HWCACHE_ALIGN.

23 years ago[PATCH] Fix memleak in ircomm_core
Andrew Morton [Mon, 10 Mar 2003 15:42:24 +0000 (07:42 -0800)]
[PATCH] Fix memleak in ircomm_core

Patch from Oleg Drokin <green@linuxhacker.ru>

There seems to be a memleak on error exit path.

23 years ago[PATCH] Memleak in Windows Logical Disk Manager partition
Andrew Morton [Mon, 10 Mar 2003 15:42:15 +0000 (07:42 -0800)]
[PATCH] Memleak in Windows Logical Disk Manager partition

Patch from Oleg Drokin <green@linuxhacker.ru>

   Not freeing allocated memory on error exit path.

23 years ago[PATCH] NCPFS memleak fix
Andrew Morton [Mon, 10 Mar 2003 15:42:09 +0000 (07:42 -0800)]
[PATCH] NCPFS memleak fix

Patch from Petr Vandrovec <vandrove@vc.cvut.cz>
Reported by Oleg Drokin.

    In NCP_IOC_SETOBJECTNAME handler, we allocated space (newname pointer),
    copy stuff from userspace to there and then assign userspace
    pointer to our internal structure, whoops!

23 years ago[PATCH] work around gcc-3.x inlining bugs
Andrew Morton [Mon, 10 Mar 2003 15:42:00 +0000 (07:42 -0800)]
[PATCH] work around gcc-3.x inlining bugs

Force inlining even when gcc-3.x is too confused to do it for us.

23 years ago[PATCH] fix console ordering default
Andrew Morton [Mon, 10 Mar 2003 15:41:53 +0000 (07:41 -0800)]
[PATCH] fix console ordering default

The conversion of the console registration to an initcall-style thing has
broken lots of people's setups.  It is now dependent upon linkage order and
if you have both CONFIG_VT_CONSOLE and CONFIG_SERIAL_CONSOLE, no boot
messages come out on the screen because the kernel is selecting the serial
console first.

It can be fixed by specifying console=tty0, but nobody is doing that.

We can fix it up by placing drivers/char/ in front of drivers/serial/ in
linkage order.

23 years ago[PATCH] pnp warning fix
Andrew Morton [Mon, 10 Mar 2003 15:41:44 +0000 (07:41 -0800)]
[PATCH] pnp warning fix

The pnp_request_card_device() stub should return NULL, not -ENODEV.

23 years ago[PATCH] fix typo in init/Kconfig
Andrew Morton [Mon, 10 Mar 2003 15:41:37 +0000 (07:41 -0800)]
[PATCH] fix typo in init/Kconfig

23 years ago[PATCH] ACPI suspend/resume locking fix
Andrew Morton [Mon, 10 Mar 2003 15:41:28 +0000 (07:41 -0800)]
[PATCH] ACPI suspend/resume locking fix

Patch from Andreas Mohr <andi@rhlx01.fht-esslingen.de>

Need to retake the spinlock in __pdflush() before continuing.

23 years agoUse cond_sched() instead of manual expansion of it.
Linus Torvalds [Mon, 10 Mar 2003 15:39:34 +0000 (07:39 -0800)]
Use cond_sched() instead of manual expansion of it.

23 years agoMerge bk://linux-pnp.bkbits.net/linux-pnp
Linus Torvalds [Mon, 10 Mar 2003 09:42:49 +0000 (01:42 -0800)]
Merge bk://linux-pnp.bkbits.net/linux-pnp
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] x86-64 updates for 2.5.64-bk3
Andi Kleen [Mon, 10 Mar 2003 09:41:56 +0000 (01:41 -0800)]
[PATCH] x86-64 updates for 2.5.64-bk3

Make x86-64 boot again after the INITIAL_JIFFIES changes
and some bug fixes. Also some work for NPTL.

 - Merge with i386/2.5.64-bk3
 - Fix memory leak in copy_thread
 - arch_prctl uses GDT for base if possible. Cleanup.
 - clone supports bases >32bit for SETTLS etc. %fs hardcoded now.
 - new ptrace support for 64bit TLS
 - Disable (set|get)_thread_* for 64bit processes.
 - Audit arch/x86_64 for jiffies wrap issues.
 - Fix initial jiffies problem (that caused hanging kernels)
 - FIx a few 32bit emulation bugs (sigaltstack, sigqueue)
 - Some cleanup from Pavel
 - Should compile again as UP
 - Shrink size a bit by not putting exception tables into object files.
 - Fix compilation with gcc 3.3 :- force inlining when needed
 - Work around 2.5.64-bk3 console init bug.
 - Fix some alignments in assembly code

23 years ago[PATCH] remove devfs_only()
Christoph Hellwig [Mon, 10 Mar 2003 09:37:02 +0000 (01:37 -0800)]
[PATCH] remove devfs_only()

Rationale:  devfs_only does nothing but disabling {un,}register_blkdev
and {un,}register_chrdev.  {un,}register_blkdev already do nothing but
adding it's name argument to a lookup table for the __bdevname and
/proc/device output so this use is already bogus.  The disabling of
the character device per-major arrays can work in practice but is
useless as any driver relying on it can't be used on non-devfs systems.

23 years ago[PATCH] i2c-core.c procfs updates
Christoph Hellwig [Mon, 10 Mar 2003 09:36:47 +0000 (01:36 -0800)]
[PATCH] i2c-core.c procfs updates

Cleanup the i2c procfs code a bit (less ifdef mess), partially based
on the lm_sensors CVS code.

23 years ago[PATCH] Fix $(src) versus $(obj)
H. Peter Anvin [Mon, 10 Mar 2003 09:36:37 +0000 (01:36 -0800)]
[PATCH] Fix $(src) versus $(obj)

This fixes a bunch of "src" versus "obj" confusions that apparently
existed in my bootsect removal patch.  How embarrassing...

23 years ago[PATCH] revert "noirqbalance still doesn't do anything"
Andrew Morton [Mon, 10 Mar 2003 09:36:27 +0000 (01:36 -0800)]
[PATCH] revert "noirqbalance still doesn't do anything"

This recent patch caused Nick Piggin's 2xPIII VIA686B chipset machine into an
interrupts-off lockup during IDE probing.

We don't really know why - it might be because an interrupt is delivered to a
secondary which doesn't expect it.

I have a second patch from Zwane which solves the same problem in a different
way, but until that's had some wider testing I suggest we just back off the
original.

23 years agoMerge bk://kernel.bkbits.net/davem/net-2.5
Linus Torvalds [Mon, 10 Mar 2003 09:33:58 +0000 (01:33 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] neaten fs/locks.c a little
Matthew Wilcox [Mon, 10 Mar 2003 09:32:14 +0000 (01:32 -0800)]
[PATCH] neaten fs/locks.c a little

 - Fix my email address to one which reaches me ;-)
 - Remove timer.h include as we don't use timers.
 - Add module.h.
 - Sort includes alphabetically.
 - Move EXPORT_SYMBOL from ksyms.c to locks.c.
 - Simplify locks_conflict().

23 years agoUse a fixed per-cpu SYSENTER_MSR_ESP value by having the sysenter
Linus Torvalds [Mon, 10 Mar 2003 06:41:27 +0000 (22:41 -0800)]
Use a fixed per-cpu SYSENTER_MSR_ESP value by having the sysenter
entry routine load the real ESP0 off that per-cpu stack. Make this
even faster by putting the sysenter stack in the per-CPU TSS, so
that we can use the tss->esp0 value directly (which we have to
update on task switches anyway).

CAREFUL! This needs very subtle code for debug and NMI exceptions,
to make sure we don't run with the sysenter stack in any real kernel
code!

23 years agoRemove <asm-i386/xor.h>'s own home-made FPU begin/end macros,
Linus Torvalds [Mon, 10 Mar 2003 06:36:20 +0000 (22:36 -0800)]
Remove <asm-i386/xor.h>'s own home-made FPU begin/end macros,
use the real ones instead.

23 years agoMerge nuts.ninka.net:/home/davem/src/BK/network-2.5
David S. Miller [Mon, 10 Mar 2003 04:05:34 +0000 (20:05 -0800)]
Merge nuts.ninka.net:/home/davem/src/BK/network-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5

23 years ago[SNMP]: Fix SNMP_STAT_{USR,BH}PTR.
Randy Dunlap [Mon, 10 Mar 2003 03:56:00 +0000 (19:56 -0800)]
[SNMP]: Fix SNMP_STAT_{USR,BH}PTR.

23 years ago[PATCH] v4l: video-buf update
Gerd Knorr [Mon, 10 Mar 2003 03:09:48 +0000 (19:09 -0800)]
[PATCH] v4l: video-buf update

This patch is a update for the video-buf mm helper module.  It has
some minor bugfixes and a number of signed/unsigned cleanups to make
gcc 3.3 happy.

23 years agoMove "used FPU status" into new non-atomic thread_info->status field.
Linus Torvalds [Mon, 10 Mar 2003 02:20:35 +0000 (18:20 -0800)]
Move "used FPU status" into new non-atomic thread_info->status field.

This allows us to avoid having to use atomic updates for the lazy FP
status setting, since we don't have to worry about other CPU's racing
on the fields.

Also, fix x86 FP state after fork() by making sure the FP is unlazied
_before_ we copy the state information. Otherwise, if a process did a
fork() while holding the FP state lazily in the registers, the child
would incorrectly unlazy bogus state.

23 years agoAditional Card Service Changes
Adam Belay [Sun, 9 Mar 2003 23:44:44 +0000 (23:44 +0000)]
Aditional Card Service Changes

Fixes many issues that were discovered after testing.  Also cleans up the
card service code and fixes the card_drvdata bug in which only one driver
at a time could have driver data.

23 years agoOSS SB driver Updates
Adam Belay [Sun, 9 Mar 2003 23:41:56 +0000 (23:41 +0000)]
OSS SB driver Updates

Compatibility update for the latest changes.

23 years agoALS100 Updates
Adam Belay [Sun, 9 Mar 2003 23:39:45 +0000 (23:39 +0000)]
ALS100 Updates

Updates the als100 driver to use the pnp apis.  Includes resource config
templates.

23 years agoPnP Card Serivice Revisions
Adam Belay [Sun, 9 Mar 2003 23:38:08 +0000 (23:38 +0000)]
PnP Card Serivice Revisions

This set of changes addresses the following issues with the existing card
service implementation:

1.) Only one driver can be bound to a card.
2.) repetive code is required for pnp_request_card_device and other
functions

This patch will make the card services usable by ALSA.

23 years agoMerge http://linux.bkbits.net/linux-2.5
Adam Belay [Sun, 9 Mar 2003 23:25:33 +0000 (23:25 +0000)]
Merge http://linux.bkbits.net/linux-2.5
into neo.rr.com:/home/ambx1/src/bk/linus-2.5

23 years agoInterface Changes
Adam Belay [Sun, 9 Mar 2003 23:18:13 +0000 (23:18 +0000)]
Interface Changes

A few minor revisions.  Simpifies a few commands and adds config mode
information.

23 years agoCache the MSR_IA32_SYSENTER_CS value in the per-CPU TSS (using
Linus Torvalds [Sun, 9 Mar 2003 10:49:41 +0000 (02:49 -0800)]
Cache the MSR_IA32_SYSENTER_CS value in the per-CPU TSS (using
the otherwise unused cpl1 entry for SS), so that we can avoid
re-loading it on task switches if it doesn't change.

23 years agoFix nanosleep() problem noticed by Todd Mokros <tmokros@neo.rr.com>.
Linus Torvalds [Sun, 9 Mar 2003 10:48:06 +0000 (02:48 -0800)]
Fix nanosleep() problem noticed by Todd Mokros <tmokros@neo.rr.com>.

If we raced on a timer expire, we'd get a negative timeout and think
that is was a _huge_ positive timeout.

23 years ago[VLAN]: Fix memory leak in procfs handling.
Oleg Drokin [Sun, 9 Mar 2003 06:00:34 +0000 (22:00 -0800)]
[VLAN]: Fix memory leak in procfs handling.

23 years agoFix up i387 task switching bug introduced by Andi Kleen's patch
Linus Torvalds [Sun, 9 Mar 2003 03:25:32 +0000 (19:25 -0800)]
Fix up i387 task switching bug introduced by Andi Kleen's patch
to speed it up - use the proper bitmask for clearing "used-fpu"
state.

23 years ago[PATCH] Fast path context switch - microoptimize FPU reload
Andi Kleen [Sun, 9 Mar 2003 02:32:51 +0000 (18:32 -0800)]
[PATCH] Fast path context switch - microoptimize FPU reload

Following some changes on x86-64.

When cpu_has_fxsr is defined to 1 like in many kernels unlazy_fpu can
collapse to three instructions. For that inlining is a very good idea.
Otherwise it's 10 instructions or so, which can be still inlined.

We don't need the lock prefix to test our local thread flags state.
Unfortunately test_thread_flag currently always uses test_bit which
has a LOCK on SMP, but that's unnecessary. LOCK is costly on P4,
so it's a good idea to avoid it.

Work around this for now by testing directly. Better would be
probably to define __set_bit for all architectures to not guarantee
atomicity and then always use that for local thread_info accesses
in linux/thread_info.h

23 years ago[PATCH] fix oprofile on x86 > 1 counter
John Levon [Sun, 9 Mar 2003 02:31:41 +0000 (18:31 -0800)]
[PATCH] fix oprofile on x86 > 1 counter

Without this we have a choice between dropping lots of counter events
for counters > 0, or getting dazed and confused.  This brings it inline
with the 2.4 module code.  Tested on my 2-way.

Also fix a typo from Steven Cole, and remove some unnecessary code

23 years agoMerge http://linux-scsi.bkbits.net/scsi-for-linus-2.5
Linus Torvalds [Sun, 9 Mar 2003 01:28:04 +0000 (17:28 -0800)]
Merge http://linux-scsi.bkbits.net/scsi-for-linus-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5
James Bottomley [Sun, 9 Mar 2003 02:48:42 +0000 (20:48 -0600)]
Merge raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5
into raven.il.steeleye.com:/home/jejb/BK/scsi-for-linus-2.5

23 years agoMerge bk://linux-dj.bkbits.net/cpufreq
Linus Torvalds [Sun, 9 Mar 2003 01:21:39 +0000 (17:21 -0800)]
Merge bk://linux-dj.bkbits.net/cpufreq
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] NUMA scheduler fixup
Martin J. Bligh [Sat, 8 Mar 2003 14:39:04 +0000 (06:39 -0800)]
[PATCH] NUMA scheduler fixup

From: Ingo Molnar <mingo@elte.hu>

This cleans up the NUMA scheduler to have separate triggers for idle
and busy rebalance ratio, preventing some complex interactions where
idle cpus can cause busy ones to busy rebalance more often. The core
functionality of this patch is rebalace_tick().

Tested in -mjb tree for over 1 month ... no problems at all found -
retested on top of 64-bk3 with new scheduler updates.

23 years ago[PATCH] fix a warning in eepro100.c
Andrew Morton [Sat, 8 Mar 2003 14:06:03 +0000 (06:06 -0800)]
[PATCH] fix a warning in eepro100.c

Remove the unneeded forward declaration of eepro100_remove_one().

It is defeating the __attribute__(unused) tag on the definition of
eepro100_remove_one() and is causing a "defined but not used" warning.

23 years ago[PATCH] revert the "remove kernel_flag" patch
Andrew Morton [Sat, 8 Mar 2003 14:05:54 +0000 (06:05 -0800)]
[PATCH] revert the "remove kernel_flag" patch

With CONFIG_SMP=n, CONFIG_PREEMPT=y, CONFIG_DEBUG_SPINLOCK=y we get many
undefined refs to kernel_flag.

This is because spinlock debugging works on uniprocessor kernels now, and it
stores state inside the spinlock structure to do this.

Having working spinlock debugging on UP kernels seems more important than
saving four bytes, so...

23 years ago[PATCH] remove compile warning from serial console initcall
Andrew Morton [Sat, 8 Mar 2003 14:05:45 +0000 (06:05 -0800)]
[PATCH] remove compile warning from serial console initcall

Patch from: "Martin J. Bligh" <mbligh@aracnet.com>

This tiny patch removes the new compiler warning from my build - the new
console_initcall mechanism seems to require int from console_init ...  I made
serial8250_console_init look like con_init

23 years ago[PATCH] rpc_delete_timer race fix
Andrew Morton [Sat, 8 Mar 2003 14:05:36 +0000 (06:05 -0800)]
[PATCH] rpc_delete_timer race fix

Patch from Ulrich Weigand <weigand@immd1.informatik.uni-erlangen.de>

Fix a race wherein timer_pending() returns false, but the timer handler is
actually running on another CPU.  We need to call del_timer_sync()
regardless, so we wait for completion of the handler.

23 years ago[PATCH] missing spin_unlock() in sysfs_remove_dir()
Andrew Morton [Sat, 8 Mar 2003 14:05:27 +0000 (06:05 -0800)]
[PATCH] missing spin_unlock() in sysfs_remove_dir()

missing spin_unlock() in sysfs_remove_dir()

23 years ago[PATCH] raw.c: dev_t cleanup and oops fix
Andrew Morton [Sat, 8 Mar 2003 11:28:57 +0000 (03:28 -0800)]
[PATCH] raw.c: dev_t cleanup and oops fix

Patch from Andries.Brouwer@cwi.nl

The next patch in the dev_t series eliminates the last applied use
of MAX_BLKDEV - only the definition in major.h remains.

Sneaky as I am, I combine this patch with the fix for an Oops:
On open, raw_open does
filp->f_dentry->d_inode->i_mapping =
bdev->bd_inode->i_mapping;
storing a pointer to bdev stuff.
But on release this pointer stayed, the block device is not
referenced anymore and disappears, and the next open references
undefined stuff.
I checked, and this can actually cause an Oops - scenario:

  # raw /dev/raw/raw12 /dev/hdf
  # dd if=/dev/raw/raw12 of=/dev/null bs=512 count=1
  # raw /dev/raw/raw12 0 0
  # dd if=/dev/raw/raw12 of=/dev/null bs=512 count=1

Oops.

More precisely the problem is that dentry_open does
file_ra_state_init(&f->f_ra, inode->i_mapping);
And file_ra_state_init uses mapping->backing_dev_info->ra_pages.
Ugly, to use so much information about the inode even before
the inode has been opened.

In the patch below I reset i_mapping upon release of the raw device.

akpm: I fixed a typo and exported default_backing_dev_info to GPL modules for
this.

23 years ago[PATCH] Disable the "Unknown IO_APIC" message
Andrew Morton [Sat, 8 Mar 2003 11:28:48 +0000 (03:28 -0800)]
[PATCH] Disable the "Unknown IO_APIC" message

This message is the source of 90% of the traffic on linux-smp and is now
starting to fill up kernel bugzilla.

Nobody has ever actually done anything about it and the message is wasting
people's time.  Ingo acked this change.

23 years ago[PATCH] Larger buffer for /proc/interrupts display
Andrew Morton [Sat, 8 Mar 2003 11:28:39 +0000 (03:28 -0800)]
[PATCH] Larger buffer for /proc/interrupts display

Patch from Zwane Mwaikambo <zwane@linuxpower.ca>

Scale the buffer which is used for accumulating the /proc/interrupts output.
On large SMP it overflows.

23 years ago[PATCH] fix SMP lockup in eepro100 with ethtool on unused
Andrew Morton [Sat, 8 Mar 2003 11:28:30 +0000 (03:28 -0800)]
[PATCH] fix SMP lockup in eepro100 with ethtool on unused

Patch from Jason Lunz <lunz@falooley.org>

When support for the GSET and SSET ethtool ioctls was added to eepro100.c in
2.4.20, the tx lock was overloaded to serialize their use.  Unfortunately,
this lock is only initialized in dev->open(), causing ethtool to deadlock the
machine when used on an unconfigured eepro100 interface.

The fix is to initialize the spinlock at probe time.

23 years ago[PATCH] i386 show_interrupts() fix
Andrew Morton [Sat, 8 Mar 2003 11:28:20 +0000 (03:28 -0800)]
[PATCH] i386 show_interrupts() fix

show_interrupts() is accidentally modifying the incoming seq_file pointer.
It goes oops if seq_printf() returns non-zero.

23 years ago[PATCH] protect 'action' in show_interrupts
Andrew Morton [Sat, 8 Mar 2003 11:28:10 +0000 (03:28 -0800)]
[PATCH] protect 'action' in show_interrupts

Patch from Zwane Mwaikambo <zwane@linuxpower.ca>

On SMP or preemptible kernels, every instance of show_interrupts() is oopsily
racy wrt request_irq() and free_irq().

Fix that up by taking the irq_desc_t's lock while walking the action list.

23 years ago[PATCH] Extended attribute sharing and debug macro typo fixes
Andrew Morton [Sat, 8 Mar 2003 11:27:42 +0000 (03:27 -0800)]
[PATCH] Extended attribute sharing and debug macro typo fixes

Patch from Andreas Gruenbacher <agruen@suse.de>

Tony Dziedzic has found two bugs in the extended attributes code. Patches with
explanations are attached.

1: Extended attribute sharing on ext2/ext3 not working

   The mb_cache_entry_insert function constantly returns an -EBUSY error
   instead of 0, which causes the xattr cache that is needed by the xattr
   sharing mechanism on ext2/ext3 to not share anything.  This patch fixes
   the problem.  (It is possible that after applying this fix we will hit
   bugs in code that wasn't used before.)

2: Oops in one of the xattr debug statements: The old_bh variable is NULL
   if an inode that previously had no EA's assigned would share an EA block
   with another inode.  (This was hidden by the xattr sharing bug).

23 years ago[PATCH] fix memory leak in load_elf_binary()
Andrew Morton [Sat, 8 Mar 2003 11:27:24 +0000 (03:27 -0800)]
[PATCH] fix memory leak in load_elf_binary()

- Fix an error-path leak of memory and a dentry in load_elf_binary()
  (spotted by Oleg Drokin).

- Tidy up the handling of bad executable images: return -ENOEXEC rather
  than 0.  (We've committed suicide anyway, so probably nobody gets to see
  this).

- Fix up the logic in load_aout_interp().  It gets itself all set up to
  return -ENOEXEC but there is in fact no path by which it can do this.  Just
  return ~0UL on errors, like load_elf_interp().

23 years ago[PATCH] ext2: fix error-path double-free
Andrew Morton [Sat, 8 Mar 2003 11:27:07 +0000 (03:27 -0800)]
[PATCH] ext2: fix error-path double-free

Fix a double-kfree on an ext2 error path.  Reported by Oleg Drokin.

23 years ago[PATCH] hugetlb unmap_vmas() SMP && PREEMPT fix
Andrew Morton [Sat, 8 Mar 2003 11:26:43 +0000 (03:26 -0800)]
[PATCH] hugetlb unmap_vmas() SMP && PREEMPT fix

Patch from Kevin Pedretti <pedretti@ieee.org>

The unmap_vmas() logic is designed to chew away at all the pages without
holding off preemption for too long.  But with CONFIG_SMP=y and
CONFIG_PREEMPT=y the number of pages which we batch up between rescheduling
opportunities is not a multiple of HPAGE_SIZE.  So unmap_vmas() ends up
calling unmap_hugepage_range() with a poorly aligned&sized region, and it
goes BUG.

Fix that up by ensuring that we always work across hugepage regions in
HPAGE_SIZE chunks.

23 years ago[PATCH] usercopy checks in old_readdir()
Andrew Morton [Sat, 8 Mar 2003 11:26:21 +0000 (03:26 -0800)]
[PATCH] usercopy checks in old_readdir()

Fix up some unchecked copy_to_user()s

23 years ago[PATCH] fix div-by-zero in bonding.c
Andrew Morton [Sat, 8 Mar 2003 11:25:58 +0000 (03:25 -0800)]
[PATCH] fix div-by-zero in bonding.c

Patch from: Shmulik Hen <hshmulik@intel.com>

The following patch fixes a division by zero bug in the bonding module that
happens when transmitting through a bond with no slaves, in the XOR bonding
mode.

23 years ago[PATCH] move CONFIG_SWAP around
Andrew Morton [Sat, 8 Mar 2003 11:25:21 +0000 (03:25 -0800)]
[PATCH] move CONFIG_SWAP around

Patch from Tom Rini <trini@kernel.crashing.org>

Take CONFIG_SWAP out of the top-level menu into the general setup menu.  Make
it dependent on CONFIG_MMU and common to all architectures.

23 years ago[PATCH] Fix copy_page_range()'s handling of invalid pages
Andrew Morton [Sat, 8 Mar 2003 11:24:48 +0000 (03:24 -0800)]
[PATCH] Fix copy_page_range()'s handling of invalid pages

Patch from Xavier Bru  <Xavier.Bru@bull.net>

If copy_page_range encounters a pte which maps an invalid pageframe it will
proceed to try to add an rmap entry against that page.  This causes oopses
when an application which has mapped an IO device via /dev/mem forks.

Fix that up by correctly skipping the page_add_rmap() for these pte's.

23 years ago[PATCH] slab debug: symbolic output in caller tracking
Andrew Morton [Sat, 8 Mar 2003 11:24:29 +0000 (03:24 -0800)]
[PATCH] slab debug: symbolic output in caller tracking

use print_symbol() to decode the offender's program counter.

23 years ago[PATCH] slab debug: track caller program counter
Andrew Morton [Sat, 8 Mar 2003 11:24:12 +0000 (03:24 -0800)]
[PATCH] slab debug: track caller program counter

Patch from Manfred Spraul <manfred@colorfullife.com>

A patch that records the last kfree caller's program counter
and prints that if a poison check fails.

23 years ago[PATCH] slab use-after-free detector
Andrew Morton [Sat, 8 Mar 2003 11:23:55 +0000 (03:23 -0800)]
[PATCH] slab use-after-free detector

Patch from Petr Vandrovec <vandrove@vc.cvut.cz>

Modifies check_poison function to not only verify that last byte is
POISON_END, but also that all preceeding bytes are either POISON_BEFORE or
POISON_AFTER bytes.

23 years ago[PATCH] Fix vm_area_struct slab corruption
Andrew Morton [Sat, 8 Mar 2003 11:23:39 +0000 (03:23 -0800)]
[PATCH] Fix vm_area_struct slab corruption

Patch from Hugh Dickins <hugh@veritas.com>

Hugh's patch fixes vm_area_struct slab corruption due to mremap's move_vma
mistaking how do_munmap splits vmas in one case.

Neither of us are very happy with it - it is fragile, and obscure.  Hugh will
revisit this later, but for now it should fix up the potential memory
corruption.

23 years ago[PATCH] Make diskstats per-cpu using kmalloc_percpu
Andrew Morton [Sat, 8 Mar 2003 11:23:21 +0000 (03:23 -0800)]
[PATCH] Make diskstats per-cpu using kmalloc_percpu

Patch from Ravikiran G Thirumalai <kiran@in.ibm.com>

Makes the disk stats on struct gendisk per-cpu.

23 years ago[PATCH] Allow VFS readahead to fall to zero
Andrew Morton [Sat, 8 Mar 2003 11:23:08 +0000 (03:23 -0800)]
[PATCH] Allow VFS readahead to fall to zero

Some workloads really, really want to have no readahead.  Databases which are
perfoming small synchronous I/Os against a file which has extremely poor
layout.  Any readahead at all is a lose here.

But the current readahead code refuses to adapt that low.

Fix it up so that we can indeed adaptively disable readahead altogether, and
do not start it again until we have seen max_readahead()'s worth of
consecutive reads.

23 years ago[PATCH] Implement sendfile() for NFS
Andrew Morton [Sat, 8 Mar 2003 11:22:58 +0000 (03:22 -0800)]
[PATCH] Implement sendfile() for NFS

Patch from Trond Myklebust <trond.myklebust@fys.uio.no>

Implement sendfile() for the NFS client.  This is required for loop-on-NFS
support.

23 years ago[PATCH] fix possible latency in balance_dirty_pages()
Andrew Morton [Sat, 8 Mar 2003 11:22:49 +0000 (03:22 -0800)]
[PATCH] fix possible latency in balance_dirty_pages()

Tasks which throttle in balance_dirty_pages() will loop until the amount of
dirty memory falls below the configured dirty_ratio.

This exposes the possibility that one task could be stuck in there for
arbitrary periods of time due to page dirtying activity by other tasks.

The patch changes the logic so that tasks will break out of the loop if they
have written enough pages, regardless of the current dirty memory limits.

Here "enough" pages is 1.5x the number of pages which they just dirtied.

If the amount of dirty memory in the machine happens to still exceed
dirty_ratio (say, due to MAP_SHARED activity) then the task will again
throttle after dirtying a single page.  But there is now an upper limit on
the time for which a single task will be captured in balance_dirty_pages().

23 years ago[PATCH] register_blkdev cleanups
Andrew Morton [Sat, 8 Mar 2003 11:22:37 +0000 (03:22 -0800)]
[PATCH] register_blkdev cleanups

Patch from Andries.Brouwer@cwi.nl

The following patch does the following:

- static const char *blkdevs[MAX_BLKDEV]; disappears
- get_blkdev_list, (un)register_blkdev, __bdevname
  are moved from block_dev.c to genhd.c
- the third "fops" parameter of register_blkdev was unused;
  now removed everywhere
- zillions of places had printk("cannot get major") upon
  error return from register_blkdev; removed all of these
  and inserted a single printk in register_blkdev.

Of course the reason for the patch is that one fixed size
array is eliminated.

23 years ago[CPUFREQ] Move pci define to pci_ids.h
Dave Jones [Sat, 8 Mar 2003 07:46:06 +0000 (06:46 -0100)]
[CPUFREQ] Move pci define to pci_ids.h

23 years ago[CPUFREQ] update documentation
Dave Jones [Sat, 8 Mar 2003 07:39:57 +0000 (06:39 -0100)]
[CPUFREQ] update documentation

The sysfs directory where the cpufreq-related files are stored changed due
to the new device interface code, so the documentation needs to be updated
accordingly. Also, add some information about the reference counting and the
exporting of sysfs files by the drivers.

23 years ago[CPUFREQ] allow cpufreq drivers to export sysfs files
Dave Jones [Sat, 8 Mar 2003 07:39:21 +0000 (06:39 -0100)]
[CPUFREQ] allow cpufreq drivers to export sysfs files

This patch lets cpufreq drivers export per-CPU files in the cpufreq and
cpu-specific sysfs directory. As an example, a file
"scaling_available_frequencies" is added to the p4-clockmod.c driver.

23 years ago[CPUFREQ] add support for ICH4-M chipset in speedstep driver
Dave Jones [Sat, 8 Mar 2003 07:38:32 +0000 (06:38 -0100)]
[CPUFREQ] add support for ICH4-M chipset in speedstep driver

Intel ICH4-M soutbridges use exactly the same register interface for SpeedStep
as ICH2-M and ICH3-M southbridges -- which makes adding support for this
bridge (almost) trivial

23 years ago[CPUFREQ] updated cpufreq ref-counting and locking scheme
Dave Jones [Sat, 8 Mar 2003 07:37:39 +0000 (06:37 -0100)]
[CPUFREQ] updated cpufreq ref-counting and locking scheme

This patch takes use of the now-working cpufreq_interface.kset and
cpufreq_policy.kobj to use reference counting within the cpufreq core
wherever this is more appropriate than the previous approach -- using one
semaphore. Additionally, the callbacks to the driver modules are protected
now.

23 years ago[CPUFREQ] remove unneeded code
Dave Jones [Sat, 8 Mar 2003 07:36:56 +0000 (06:36 -0100)]
[CPUFREQ] remove unneeded code

- no cpufreq driver uses the frequency table helper "setpolicy" any more
  ("target" is much more appropriate for them anyways) - so remove
  that helper
- all cpufreq drivers use the advanced registration process, so some
  compatibility code can safely be removed.

23 years ago[CPUFREQ] fix userspace governor.
Dave Jones [Sat, 8 Mar 2003 07:36:30 +0000 (06:36 -0100)]
[CPUFREQ] fix userspace governor.
Let's put the sysfs file exported by the cpufreq userspace governor also
into the cpufreq/ - subdirectory of /sys/devices/sys/cpu0/.

23 years ago[CPUFREQ] fix cpufreq core breakage(s)
Dave Jones [Sat, 8 Mar 2003 07:35:48 +0000 (06:35 -0100)]
[CPUFREQ] fix cpufreq core breakage(s)

- update two more cpufreq-related sysfs files to the new interface
  code
- always store the new, user-requested policy in another struct
  cpufreq_policy so that we can safely fall back to the old one in
  case something fails (this equals the behaviour before Pat's patch)
- the kobject which was registered in cpufreq_add_dev was inside a variable
  private to this function -- so the whole cpufreq sysfs interface returned
  -EINVAL.

23 years ago[CRYPTO]: Documentation updates.
James Morris [Sat, 8 Mar 2003 07:26:13 +0000 (23:26 -0800)]
[CRYPTO]: Documentation updates.

23 years ago[ATM]: Add missing $(obj) to driver makefile.
David S. Miller [Sat, 8 Mar 2003 05:46:35 +0000 (21:46 -0800)]
[ATM]: Add missing $(obj) to driver makefile.

23 years ago[ATM]: Obsolete some atm_vcc members.
Chas Williams [Sat, 8 Mar 2003 05:09:26 +0000 (21:09 -0800)]
[ATM]: Obsolete some atm_vcc members.

23 years ago[ATM]: Get lec net_device names correct.
Chas Williams [Sat, 8 Mar 2003 05:03:35 +0000 (21:03 -0800)]
[ATM]: Get lec net_device names correct.

23 years ago[CRYPTO]: Eliminate crypto_tfm.crt_ctx, from Adam Richter.
James Morris [Sat, 8 Mar 2003 03:46:27 +0000 (19:46 -0800)]
[CRYPTO]: Eliminate crypto_tfm.crt_ctx, from Adam Richter.

23 years ago[CRYPTO]: Add encrypt_iv() and decrypt_iv() methods.
James Morris [Sat, 8 Mar 2003 03:44:09 +0000 (19:44 -0800)]
[CRYPTO]: Add encrypt_iv() and decrypt_iv() methods.