]> git.hungrycats.org Git - linux/log
linux
23 years ago[IPV6]: Fix timer handling in ip6_flowlabel.c
Vinay K. Nallamothu [Mon, 1 Sep 2003 00:17:57 +0000 (17:17 -0700)]
[IPV6]: Fix timer handling in ip6_flowlabel.c
- Use time_{before,after}() macros.
- Use mod_timer instead of del_timer/add_timer
- Properly synchronize timer resetting using ip6_fl_lock.

23 years ago[NET]: Remove reference to CONFIG_IA64_SGI_SN1, it is gone.
Christoph Hellwig [Sun, 31 Aug 2003 19:42:15 +0000 (12:42 -0700)]
[NET]: Remove reference to CONFIG_IA64_SGI_SN1, it is gone.

23 years ago[IPV6]: Remove sockets from ip6_tunnel.c
Ville Nuorvala [Sun, 31 Aug 2003 18:55:15 +0000 (11:55 -0700)]
[IPV6]: Remove sockets from ip6_tunnel.c

23 years ago[IPV6]: Set dev->{dev_addr,broadcast} in ip6_tnls.
Ville Nuorvala [Sun, 31 Aug 2003 18:53:57 +0000 (11:53 -0700)]
[IPV6]: Set dev->{dev_addr,broadcast} in ip6_tnls.

23 years ago[IPV6]: Use free_netdev as ip6_tunnel device destructor.
Ville Nuorvala [Sun, 31 Aug 2003 18:52:11 +0000 (11:52 -0700)]
[IPV6]: Use free_netdev as ip6_tunnel device destructor.

23 years ago[IPV6]: Fix two bugs in ip6_tunnel.c ICMP error handling.
Ville Nuorvala [Sun, 31 Aug 2003 18:47:35 +0000 (11:47 -0700)]
[IPV6]: Fix two bugs in ip6_tunnel.c ICMP error handling.

Fix byte order of info parameter in ip6ip6_err().

23 years ago[BRIDGE]: Create CONFIG_BRIDGE_NETFILTER and use it instead of messy tests.
Bart De Schuymer [Sun, 31 Aug 2003 18:44:39 +0000 (11:44 -0700)]
[BRIDGE]: Create CONFIG_BRIDGE_NETFILTER and use it instead of messy tests.

23 years ago[IPV6]: Fix typo in icmp BUG() fix.
David S. Miller [Sun, 31 Aug 2003 18:38:12 +0000 (11:38 -0700)]
[IPV6]: Fix typo in icmp BUG() fix.

23 years ago[IPV6]: Do not BUG() on icmp6 socket contention, just drop.
David S. Miller [Sun, 31 Aug 2003 18:33:48 +0000 (11:33 -0700)]
[IPV6]: Do not BUG() on icmp6 socket contention, just drop.

23 years ago[NET]: Convert netdev_rx_stat to per-cpu data.
Christoph Hellwig [Sun, 31 Aug 2003 18:19:19 +0000 (11:19 -0700)]
[NET]: Convert netdev_rx_stat to per-cpu data.

23 years ago[IPV6]: Use per-cpu data for icmp sockets.
Christoph Hellwig [Sun, 31 Aug 2003 18:15:03 +0000 (11:15 -0700)]
[IPV6]: Use per-cpu data for icmp sockets.

23 years ago[NET]: Add MODULE_LICENSE to xfrm_user.c
Herbert Xu [Sun, 31 Aug 2003 18:12:45 +0000 (11:12 -0700)]
[NET]: Add MODULE_LICENSE to xfrm_user.c

23 years ago[TG3]: ICH2 needs MBOX write reorder bug workaround too.
Xose Vazquez Perez [Sun, 31 Aug 2003 18:11:37 +0000 (11:11 -0700)]
[TG3]: ICH2 needs MBOX write reorder bug workaround too.

23 years agoMerge
David S. Miller [Sun, 31 Aug 2003 15:52:50 +0000 (08:52 -0700)]
Merge

23 years ago[PATCH] Add documentation for /proc/stat
Andrew Morton [Sun, 31 Aug 2003 11:36:56 +0000 (04:36 -0700)]
[PATCH] Add documentation for /proc/stat

From: "Bryan O'Sullivan" <bos@serpentine.com>

This patch adds documentation for the contents of the /proc/stat file.

23 years ago[PATCH] ext3_setxattr() oops fix
Andrew Morton [Sun, 31 Aug 2003 11:36:48 +0000 (04:36 -0700)]
[PATCH] ext3_setxattr() oops fix

If journal_start() fails it returns an ERR_PTR.  Best not pass that into
journal_stop().

23 years ago[PATCH] tty oops fix
Andrew Morton [Sun, 31 Aug 2003 11:36:41 +0000 (04:36 -0700)]
[PATCH] tty oops fix

Ancient bug, reported by Hiroshi Inoue <inoueh@uranus.dti.ne.jp>:

 1. login to tty2 (not tty1)
 2. start kon (Kanji cONsole emulator, console which support
    Japanese characters)
 3. exit kon
 4. logout

It oopses in the debugging function check_tty_count(), walking a list_head
which has been list_del()'d.   Call trace is:

#0  check_tty_count (tty=0x10d42000, routine=0xc817b00 ".paths") at include/asm/processor.h:583
#1  0x022c6c00 in do_tty_hangup (data=0x10d42000) at drivers/char/tty_io.c:426
#2  0x022c6f60 in tty_vhangup (tty=0xc817b00) at drivers/char/tty_io.c:536
#3  0x022c6fcc in disassociate_ctty (on_exit=1) at drivers/char/tty_io.c:574
#4  0x02127aee in do_exit (code=0) at kernel/exit.c:718
#5  0x02127caa in do_group_exit (exit_code=0) at kernel/exit.c:796
#6  0x02127cbc in sys_exit_group (error_code=0) at kernel/exit.c:807

The tty refcount is zero, so everything seems consistent and sensible.  The
fix just uses list_del_init() on that list_head.

Heaven knows what the locking for tty->count is though.  Some bizarre mixture
of BKL, tty_sem and nothing at all.

23 years ago[PATCH] scsi_unregister() oops fix
Andrew Morton [Sun, 31 Aug 2003 11:36:33 +0000 (04:36 -0700)]
[PATCH] scsi_unregister() oops fix

Some drivers such as aha1542 and aic7xxx_old will call scsi_register() and
then, if some succeeding operations fails they will call scsi_unregister(),
without an intervening scsi_set_host().

This causes an oops in scsi_put_device(), because kobj->parent is NULL.

In other words, scsi_register() immediately followed by scsi_unregister()
is guaranteed to oops.

The patch makes scsi_host_dev_release() more robust against this usage
pattern.

23 years ago[PATCH] handle setup_swap_extents() error in swapon.
Andrew Morton [Sun, 31 Aug 2003 11:36:26 +0000 (04:36 -0700)]
[PATCH] handle setup_swap_extents() error in swapon.

From: Hugh Dickins <hugh@veritas.com>

It's good that swapon fails on a tmpfs file ("swapfile has holes"), but not
good that it then hangs up: note error from setup_swap_extents.

23 years ago[PATCH] fix advansys.c if !CONFIG_PROC_FS
Andrew Morton [Sun, 31 Aug 2003 11:36:19 +0000 (04:36 -0700)]
[PATCH] fix advansys.c if !CONFIG_PROC_FS

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

The patch below fixes a compile error in drivers/scsi/advansys.c if
!CONFIG_PROC_FS.

23 years ago[PATCH] HPET 2/6: boot parsing
Andrew Morton [Sun, 31 Aug 2003 11:36:11 +0000 (04:36 -0700)]
[PATCH] HPET 2/6: boot parsing

From: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>

acpi boot time parsing changes to look for HPET

23 years ago[PATCH] HPET 6/6: rtc emulation
Andrew Morton [Sun, 31 Aug 2003 11:36:03 +0000 (04:36 -0700)]
[PATCH] HPET 6/6: rtc emulation

From: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>

This can be a standalone patch.  With this patch we basically try to emulate
RTC interrupt functions in software using HPET counter 1.

23 years ago[PATCH] HPET 5/6: timer services
Andrew Morton [Sun, 31 Aug 2003 11:35:56 +0000 (04:35 -0700)]
[PATCH] HPET 5/6: timer services

From: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>

All changes required to support timer services (gettimeofday) with HPET.

23 years ago[PATCH] HPET 4/6: Core
Andrew Morton [Sun, 31 Aug 2003 11:35:48 +0000 (04:35 -0700)]
[PATCH] HPET 4/6: Core

From: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>

All the changes required to use HPET in place of PIT as the kernel base-timer
at IRQ 0.

23 years ago[PATCH] HPET 3/6: makefile and config changes
Andrew Morton [Sun, 31 Aug 2003 11:35:39 +0000 (04:35 -0700)]
[PATCH] HPET 3/6: makefile and config changes

From: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>

Miscallaneous makefile and config changes

23 years ago[PATCH] HPET 1/6: Support for HPET based timer
Andrew Morton [Sun, 31 Aug 2003 11:35:31 +0000 (04:35 -0700)]
[PATCH] HPET 1/6: Support for HPET based timer

From: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>

High Precision Event Timer (HPET) is next generation timer
hardware and has various advantages over legacy 8254
(PIT) timer, like:
- Associated registers are mapped to memory space. So, we no
  longer require in and out on legacy ioports
- Memory map address is reported by ACPI (and are not
  hard-coded)
- Each timer can be configured to generate separate interrupts,
  even sharing lines with PCI devices
- HPET has a minimum period of 100 nanosecs and is not fixed.
  Giving a flexibility of increasing the resolution in future.
- Most current implementations has 3 counters, but in future,
  we can have as many as 32 timers per block, and 8
  HPET timer blocks (total 256 timers)
- Can support 32bit and 64bit counting

(Refer to http://www.intel.com/labs/platcomp/hpet/hpetspec.htm
 for complete specs)

The patchset that follow adds support for High Precision Event
Timer (HPET) based timer in kernel. This uses the HPET in
LegacyReplacement mode (so that counter 0 will be tied to IRQ0,
and counter 1 will be tied to IRQ 8). In this mode, HPET overrides
PIT and RTC interrupt lines. The patch will enable HPET by default,
on systems where ACPI tables reports this feature. The patch will
have no impact on systems that do not support this feature.

A major change from previous version is elimination of fixmap for HPET.
Based on Andrew Morton's suggestion, we have a new hook in init/main.c for
late_time_init(), at which time we can use ioremap, in place of fixmap.
Impact on other archs: Calibrate_delay() (and hence loops_per_jiffy
calculation) has moved down in main.c, from after time_init() to after
kmem_cache_init().

1/6 - hpet1.patch - main.c change to introduce late_time_init()

23 years ago[PATCH] Remove SSE2 bugs.h check
Andrew Morton [Sun, 31 Aug 2003 11:35:24 +0000 (04:35 -0700)]
[PATCH] Remove SSE2 bugs.h check

From: Andi Kleen <ak@muc.de>

Remove some dead code.

CONFIG_SSE2 hasn't been defined for some time, because everything
SSE related is handled at runtime based on cpuid.

23 years ago[PATCH] vmscan: zone pressure simplification and fix
Andrew Morton [Sun, 31 Aug 2003 11:35:17 +0000 (04:35 -0700)]
[PATCH] vmscan: zone pressure simplification and fix

The zone->pressure field is supposed to record the amount of reclaim pressure
which this zone is under.  We need this info so we know whether to unmap
pages from pagetables right from the outset of a balance_pgdat() or
try_to_free_pages() invokation.

The problem with the current code is that the exponential average gets tugged
around too much: as we perform the increasing-priority scan, the pressure
metric is made artificially low by the early part of the scan.

So instead what we do here is to record within the zone the scanning priority
from the zone's previous scan.  It is defined as the priority at which the
zone achieved the "enough pages free" state.  This prev_priority is used on
the next scan for the do-we-need-to-be-unmapping-pages decision.

23 years ago[PATCH] vmscan: zone pressure calculation fix
Andrew Morton [Sun, 31 Aug 2003 11:35:09 +0000 (04:35 -0700)]
[PATCH] vmscan: zone pressure calculation fix

Off-by-one in balance_pgdat(): `priority' can never go negative.  It causes
the scanning priority thresholds to be quite wrong and kswapd tends to go
berzerk when there is a lot of mapped memory around.

23 years ago[PATCH] ipc_init() uses vmalloc too early
Andrew Morton [Sun, 31 Aug 2003 11:35:02 +0000 (04:35 -0700)]
[PATCH] ipc_init() uses vmalloc too early

From: Andrea Arcangeli <andrea@suse.de>

aka: "vmalloc allocations in ipc needs smp initialized (and vm must be
allowed to schedule in 2.6)"

In short if you change SEMMNI to 8192 the kernel will crash at boot, beause
it tries to call vmalloc before the smp is initialized.  The reason is that
vmalloc calls into the pte alloc code, and the fast pte alloc is tried
first, but that reads into the pte_quicklist, that requires the cpu_data to
be initialized (and that happens in smp_init()).

the patch is obviously safe, since no piece of kernel (especially the code
in the check_bugs and smp_init paths ;) calls into the ipc subsystem.

The reason this started to trigger wasn't really that we increased SEMMNI,
but what happend is that some IPC data structure grown, and for some reason
the corruption due the uninitalized pte_quicklist triggers only for smp
boxes with less than 1G (not very common anymore ;).  So it wasn't
immediatly reproducible on all setups.

2.6 doesn't suffer from the same problem, simply because 2.6 isn't using
the quicklist anymore, but I think it would be much more correct to make
the same change in 2.6 too, since whatever cond_resched() in the vm paths
(and they're definitely allowed to call it), will lead to a crash since the
init task isn't initialized and the scheduler can't be invoked yet.  (and
2.6 already has the bigger data structures that should trigger the vmalloc
all the time on all setups)

23 years ago[PATCH] raw driver oops fix
Andrew Morton [Sun, 31 Aug 2003 11:34:53 +0000 (04:34 -0700)]
[PATCH] raw driver oops fix

From: Dave Olien <dmo@osdl.org>

The raw.c character device Oopses dereferencing a NULL pointer in
bd_claim() This problem occurred after bd_claim() in block_dev.c was
modified to "claim the whole device when a partition is claimed".

raw_open() made the mistake of calling bd_claim BEFORE calling blkdev_get().
At that time, the bdev->bd_contains field has not yet been initialized.
Switching the order allows blkdev_get() to initialize those fields before
calling bd_claim().

Also fixed up some error return paths:

igrab() should never fail under these circumstances since the caller
already has a reference to that inode through the bdev at that time.

In the event of blkdev_get() failure or set_blocksize() failure, not all
the work to unwind from the error was done.

23 years ago[PATCH] compat ioctl_table fix
Andrew Morton [Sun, 31 Aug 2003 11:34:45 +0000 (04:34 -0700)]
[PATCH] compat ioctl_table fix

The arch ioctl tables are doing this:

struct foo ioctl_start[] = {
...
};
struct foo ioctl_end[0];

and fs/compat.c expects that the table lies between &ioctl_end and
&ioctl_start.

Problem is, gcc-3.3 puts ioctl_end into bss, even if it is initialised.  It
doesn't work.

So we do away with the ioctl_end thing and add

int ioctl_table_length = ARRAY_SIZE(ioctl_start);

to each architecture.

23 years ago[PATCH] mtrr cleanups
Andrew Morton [Sun, 31 Aug 2003 11:34:35 +0000 (04:34 -0700)]
[PATCH] mtrr cleanups

- Remove duplicated implementation of attrib_to_str()

- Make mtrr_strings[] static to if.c

23 years ago[PATCH] make voyager work again after the cpumask_t changes
Andrew Morton [Sun, 31 Aug 2003 11:34:26 +0000 (04:34 -0700)]
[PATCH] make voyager work again after the cpumask_t changes

From: James Bottomley <James.Bottomley@SteelEye.com>

Most is just simple fixes; however, the needless change from atomic to
non-atomic operations in smp_invalidate_interrupt() caused me a lot of
pain to track down since it introduced some very subtle bugs.

I've also taken phys_cpu_present_map out of smp.h.  Since it
physid_mask_t is defined in mpspec.h anyway, and contains a duplicate
definition, I don't believe it can hurt anything.

23 years ago[PATCH] Fix a few declarations
Andrew Morton [Sun, 31 Aug 2003 11:34:19 +0000 (04:34 -0700)]
[PATCH] Fix a few declarations

extern decls in .c files are evil.  Put the send_sigio(), fcntl_setlease()
and fcntl_getlease() into fs.h.

23 years ago[PATCH] Use tgid rather than pid in dnotify
Andrew Morton [Sun, 31 Aug 2003 11:34:11 +0000 (04:34 -0700)]
[PATCH] Use tgid rather than pid in dnotify

From: Ulrich Drepper <drepper@redhat.com>

I'm not entirely sure about this change.  But it seems to be necessary.
The dnotify code stores the PID in the file structure.  The entire process
shares the file and any signal (is it used for that?) should be sent to the
process (thread group), not the individual thread.  Also keep in mind that
threads can go away while the process (and therefore file descriptor)
remain.  And the ID of the thread can be reused.

Somebody who knows this code should take a good look.

(Looks right to me...)

23 years ago[PATCH] floppy driver cleanup
Andrew Morton [Sun, 31 Aug 2003 11:34:04 +0000 (04:34 -0700)]
[PATCH] floppy driver cleanup

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

- use kernel.h min() and max();

- C99 initializers;

- Tidy up the scheule_work() callbacks (none of them take an arg)

23 years ago[PATCH] fix arcnet printk parameter types
Andrew Morton [Sun, 31 Aug 2003 11:33:57 +0000 (04:33 -0700)]
[PATCH] fix arcnet printk parameter types

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

fix arcnet printk parameter types

23 years ago[PATCH] kbuild: warn if the user has old modutils
Andrew Morton [Sun, 31 Aug 2003 11:33:50 +0000 (04:33 -0700)]
[PATCH] kbuild: warn if the user has old modutils

From: Valdis.Kletnieks@vt.edu, Sam Ravnborg <sam@ravnborg.org>

Adds an explicit check for the new modutils in the build system.

Generally we should avoid these sorts of hardwired checks for the right
versions of things, but we are still getting a significant number of problem
reports due to people not having the new tools.  Let's help them out.

23 years ago[PATCH] Cyclades ISA serial driver fix
Andrew Morton [Sun, 31 Aug 2003 11:33:41 +0000 (04:33 -0700)]
[PATCH] Cyclades ISA serial driver fix

From: "John Stoffel" <stoffel@lucent.com>

Quick patch to get my 8 port Cyclades Cyclom-Y ISA card to work.

(It doesn't look to be very SMP-robust, but then the 2.4 dirver probably
isn't either).

23 years ago[PATCH] hch has moved
Andrew Morton [Sun, 31 Aug 2003 11:33:34 +0000 (04:33 -0700)]
[PATCH] hch has moved

From: Christoph Hellwig <hch@lst.de>

I moved a while ago and I'm also not at SGI anymore.

23 years ago[PATCH] AS: don't anticipate against a task's initial I/O
Andrew Morton [Sun, 31 Aug 2003 11:33:27 +0000 (04:33 -0700)]
[PATCH] AS: don't anticipate against a task's initial I/O

From: Nick Piggin <piggin@cyberone.com.au>

In the anticipatory scheduler, don't anticipate against the very first IO
request which a process issues.

This solves a very specific problem wherein a process starts, submits a
single IO then exits.

23 years ago[PATCH] evdev_ioctl does not report EV_MSC capabilities
Andrew Morton [Sun, 31 Aug 2003 11:33:19 +0000 (04:33 -0700)]
[PATCH] evdev_ioctl does not report EV_MSC capabilities

From: Dmitry Torokhov <dtor_core@ameritech.net>

While working on my GPM patches found out that EV_MSC was forgotten...

23 years ago[PATCH] large dev_t 12/12 oops fix
Andrew Morton [Sun, 31 Aug 2003 11:33:12 +0000 (04:33 -0700)]
[PATCH] large dev_t 12/12 oops fix

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

On Wed, Aug 27, 2003 at 01:46:37AM -0700, Andrew Morton wrote:
>
> LILO seems to be oopsing in HDIO_GETGEO ioctl for some reason, in
> generic_ide_ioctl().
>
> I'm not sure quite why though.  Could one of your patches affected this
> area?

The last one (fix for hd_struct handling).  The fix follows:

23 years ago[PATCH] remove size_t-based printk warnings
Andrew Morton [Sun, 31 Aug 2003 11:33:03 +0000 (04:33 -0700)]
[PATCH] remove size_t-based printk warnings

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

This patch removes warnings on non-matching parameter types to printk
and incorrect function types (n_hdlc).

23 years ago[PATCH] add context switch counters
Andrew Morton [Sun, 31 Aug 2003 11:32:56 +0000 (04:32 -0700)]
[PATCH] add context switch counters

From: Peter Chubb <peterc@gelato.unsw.edu.au>

Currently, the context switch counters reported by getrusage() are
always zero.  The appended patch adds fields to struct task_struct to
count context switches, and adds code to do the counting.

The patch adds 4 longs to struct task struct, and a single addition to
the fast path in schedule().

23 years ago[PATCH] acpi pci_link fix
Andrew Morton [Sun, 31 Aug 2003 11:32:49 +0000 (04:32 -0700)]
[PATCH] acpi pci_link fix

From: Christophe Saout <christophe@saout.de>

- acpi_pci_link_get_irq() returns 0 on error, not -ENODEV.

- Fix mpparse.c tpyo.

23 years ago[PATCH] jbd: remove uninformative printk
Andrew Morton [Sun, 31 Aug 2003 11:32:41 +0000 (04:32 -0700)]
[PATCH] jbd: remove uninformative printk

This printk doesn't impart any information.

23 years ago[PATCH] do_no_page() rss accounting fix
Andrew Morton [Sun, 31 Aug 2003 11:32:34 +0000 (04:32 -0700)]
[PATCH] do_no_page() rss accounting fix

From: Jaroslav Kysela <perex@suse.cz>

The do_no_page() function in mm/memory.c does accounting for reserved pages
(++mm->rss), but in zap_pte_range() we don't decrement rss if the page was
reserved.

So don't account for PageReserved pages in the rss.  (Maybe it would be
better to fix zap_pte_range in the opposite direction..)

23 years ago[PATCH] Fix bluetooth compile warnings
Andrew Morton [Sun, 31 Aug 2003 11:32:26 +0000 (04:32 -0700)]
[PATCH] Fix bluetooth compile warnings

23 years ago[PATCH] knfsd nfs4 warning fixes
Andrew Morton [Sun, 31 Aug 2003 11:32:18 +0000 (04:32 -0700)]
[PATCH] knfsd nfs4 warning fixes

23 years ago[PATCH] kill CONFIG_KCORE_AOUT
Andrew Morton [Sun, 31 Aug 2003 11:32:09 +0000 (04:32 -0700)]
[PATCH] kill CONFIG_KCORE_AOUT

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

Remove CONFIG_KCORE_AOUT: the ability to present /proc/kcore in a.out
format.

I've checked with various arch maintainers.  It won't be missed.

23 years ago[PATCH] Fix build with CONFIG_KCORE_AOUT
Andrew Morton [Sun, 31 Aug 2003 11:32:02 +0000 (04:32 -0700)]
[PATCH] Fix build with CONFIG_KCORE_AOUT

We get a linkage error with CONFIG_KCORE_AOUT because there is no
implementation of kclist_add() and kclist_del().

Also fix a warning in the a.out version of read_kcore().

Maybe we should just remove kcore a.out support.  m68knommu and h8300 are
setting CONFIG_KCORE_AOUT in their defconfigs though.

23 years ago[PATCH] Add more bad_inode operations
Andrew Morton [Sun, 31 Aug 2003 11:31:53 +0000 (04:31 -0700)]
[PATCH] Add more bad_inode operations

From: <ffrederick@prov-liege.be>

Flesh out the bad_inode file and inode operations tables with new
additions.

23 years ago[PATCH] Fix typo in #ifdef for ext2 xattr support
Andrew Morton [Sun, 31 Aug 2003 11:31:46 +0000 (04:31 -0700)]
[PATCH] Fix typo in #ifdef for ext2 xattr support

From: Stephen Smalley <sds@epoch.ncsc.mil>

This patch corrects a typo in an ifdef that enables xattr operations for
special files in the ext2 code; otherwise, extended attributes cannot be
obtained or set on such inodes.

23 years ago[PATCH] Rework SELinux binprm hooks
Andrew Morton [Sun, 31 Aug 2003 11:31:37 +0000 (04:31 -0700)]
[PATCH] Rework SELinux binprm hooks

From: Stephen Smalley <sds@epoch.ncsc.mil>

This patch reworks the SELinux binprm hook functions to use a security
structure for the linux_binprm rather than directly stuffing the security
identifier into the void* security field.  It also performs some cleanup of
the SELinux binprm hook functions, and one miscellaneous fix.

23 years ago[PATCH] Fix SELinux format specifiers
Andrew Morton [Sun, 31 Aug 2003 11:31:28 +0000 (04:31 -0700)]
[PATCH] Fix SELinux format specifiers

From: Stephen Smalley <sds@epoch.ncsc.mil>, James Morris <jmorris@redhat.com>

This patch corrects several format specifiers in the SELinux security server
code.

23 years ago[PATCH] Fix SELinux avtab
Andrew Morton [Sun, 31 Aug 2003 11:31:18 +0000 (04:31 -0700)]
[PATCH] Fix SELinux avtab

From: Stephen Smalley <sds@epoch.ncsc.mil>, Arnd Bergmann <arnd@arndb.de>

This patch changes the SELinux avtab to use vmalloc/vfree; the table is too
large for kmalloc on s390.

23 years ago[PATCH] Fix selinux_file_fcntl
Andrew Morton [Sun, 31 Aug 2003 11:31:07 +0000 (04:31 -0700)]
[PATCH] Fix selinux_file_fcntl

From: Stephen Smalley <sds@epoch.ncsc.mil>, James Morris <jmorris@redhat.com>

This patch adds the appropriate #if around the F_*64 commands in the
selinux_file_fcntl hook function.

23 years ago[PATCH] Fix ext3 htree corruption on big-endian platforms
Andrew Morton [Sun, 31 Aug 2003 11:30:57 +0000 (04:30 -0700)]
[PATCH] Fix ext3 htree corruption on big-endian platforms

From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>

current bk 2.6.0 corrupts my ext3 filesystems, usually in the RESYNC dir
during a bk pull.  Checking the recent changes I noticed that the one in
fs/ext3/namei.c misses an endian conversion.  The attached patch fixes that
and works fine for me since 2 days now on PPC.

23 years ago[PATCH] visws: fix 2.6.0-test4 breakage
Andrew Morton [Sun, 31 Aug 2003 11:30:48 +0000 (04:30 -0700)]
[PATCH] visws: fix 2.6.0-test4 breakage

From: Andrey Panin <pazke@donpac.ru>

attached trivial patch fixes visws subarch kernel build.  It was broken by
2.6.0-test4 cpumask_t changes.

23 years ago[PATCH] reiserfs writepage-versus-truncate fix
Andrew Morton [Sun, 31 Aug 2003 11:30:38 +0000 (04:30 -0700)]
[PATCH] reiserfs writepage-versus-truncate fix

From: Oleg Drokin <green@namesys.com>

The conversion of reiserfs to not return errors from
writepage-outside-i_size was incorrect.  Fix.

23 years ago[PATCH] parport_pc rmmod oops fix
Andrew Morton [Sun, 31 Aug 2003 11:30:29 +0000 (04:30 -0700)]
[PATCH] parport_pc rmmod oops fix

The `user_specified' variable is used in cleanup_module() and hence cannot be
dropped from memory after module initialisation.

23 years ago[PATCH] do_no_page() fix
Andrew Morton [Sun, 31 Aug 2003 11:30:21 +0000 (04:30 -0700)]
[PATCH] do_no_page() fix

From: David Mosberger <davidm@napali.hpl.hp.com>,
"Sharma, Arun" <arun.sharma@intel.com>

The truncate race fix assumed that a non-zero vma->vm_ops->nopage implies a
non-zero vma->vm_file.

The ia64 x86 emulation code breaks this assumption, so teach do_no_page() to
handle it.

23 years ago[PATCH] ni5010.c: remove cli/sti
Andrew Morton [Sun, 31 Aug 2003 11:30:12 +0000 (04:30 -0700)]
[PATCH] ni5010.c: remove cli/sti

From: Vinay K Nallamothu <vinay-rc@naturesoft.net>

drivers/net/ni5010.c:
This patch replaces cli/sti with spinlocks. Compiles fine though
untested.

23 years ago[PATCH] abi doc update
Andrew Morton [Sun, 31 Aug 2003 11:30:04 +0000 (04:30 -0700)]
[PATCH] abi doc update

From: <ffrederick@prov-liege.be>

Update the abi sysctl documentation.

23 years ago[PATCH] vm_enough_memory microoptimisation
Andrew Morton [Sun, 31 Aug 2003 11:29:56 +0000 (04:29 -0700)]
[PATCH] vm_enough_memory microoptimisation

From: <ffrederick@prov-liege.be>

The expected case is (sysctl_overcommit_memory == 0), so put that first.

23 years ago[PATCH] Kobject doc addition
Andrew Morton [Sun, 31 Aug 2003 11:29:49 +0000 (04:29 -0700)]
[PATCH] Kobject doc addition

From: <ffrederick@prov-liege.be>

Here's an _important_ kobject doc patch.

23 years ago[PATCH] Fix permissions on /proc/kallsyms
Andrew Morton [Sun, 31 Aug 2003 11:29:40 +0000 (04:29 -0700)]
[PATCH] Fix permissions on /proc/kallsyms

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

Change the permissions on /proc/kallsyms.  As David M-T points out,
it's nice for analysis tools not to need root.  Place
cond_resched() to avoid starvation problems on non-preempt.

23 years ago[PATCH] /proc/kallsym caching fix
Andrew Morton [Sun, 31 Aug 2003 11:29:33 +0000 (04:29 -0700)]
[PATCH] /proc/kallsym caching fix

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

Out by one error broke caching of results in /proc/kallsyms, slowing
reading to a crawl.

23 years ago[PATCH] Fix 'pci=noacpi' with buggy ACPI BIOSes
Andrew Morton [Sun, 31 Aug 2003 11:29:25 +0000 (04:29 -0700)]
[PATCH] Fix 'pci=noacpi' with buggy ACPI BIOSes

From: Thomas Schlichter <schlicht@uni-mannheim.de>

Make the `pci=noacpi' command line option work correctly.  It fixes
interrupt routing probems for (at least 3) people with broken ACPI BIOSes.

23 years ago[PATCH] c99 struct initialiser conversions
Andrew Morton [Sun, 31 Aug 2003 11:29:17 +0000 (04:29 -0700)]
[PATCH] c99 struct initialiser conversions

From: CaT <cat@zip.com.au>

Convert a whole bunch of struct initialisers into c99 format.

23 years ago[PATCH] pcnet32 needs unregister_pci
Andrew Morton [Sun, 31 Aug 2003 11:29:08 +0000 (04:29 -0700)]
[PATCH] pcnet32 needs unregister_pci

From: Domen Puncer <domen@coderock.org>

The problem in pcnet32 is, that it doesn't unregister pci, if there's no
hardware.

This patch solves the problem.

23 years ago[PATCH] drivers/char/pcxx.c warning fix
Andrew Morton [Sun, 31 Aug 2003 11:28:59 +0000 (04:28 -0700)]
[PATCH] drivers/char/pcxx.c warning fix

From: "Krishnakumar. R" <krishnakumar@naturesoft.net>

This patch removes the warning:

drivers/char/pcxx.c:124:8: warning: extra tokens at end of #endif directive

23 years ago[PATCH] airo CONFIG_PCI=n build fix
Andrew Morton [Sun, 31 Aug 2003 11:28:52 +0000 (04:28 -0700)]
[PATCH] airo CONFIG_PCI=n build fix

From: Geert Uytterhoeven <geert@linux-m68k.org>

On Fri, 22 Aug 2003, Linus Torvalds wrote:
> Javier Achirica:
>   o [wireless airo] Fix PCI unregister code

This patch causes a regression: if CONFIG_PCI is not set, it doesn't compile
anymore. Here's a fix. I also killed a dead variable and its corresponding
warning:

23 years ago[PATCH] zoran: correct name field breakage
Andrew Morton [Sun, 31 Aug 2003 11:28:44 +0000 (04:28 -0700)]
[PATCH] zoran: correct name field breakage

From: Ronald Bultje <rbultje@ronald.bitfreak.net>

I suddenly noticed that 2.6.0-test4 seems to have removed the struct
device->name field, apparently for memory consumption reasons. Linus
changed this to pci_name((zr)->pci_dev) in my driver, and that's almost
correct, except that it is the PCI device ID, and I'm not supposed to
touch it. Also, since it's only 4 bytes, all my device names now show
like 'DC1' (this should be 'DC10plus') and alike.

The attached patch fixes this by going back to the behaviour that we
used in 2.4.x: we use a separate name field in our private driver
struct.

23 years ago[PATCH] zoran: more cleanups
Andrew Morton [Sun, 31 Aug 2003 11:28:37 +0000 (04:28 -0700)]
[PATCH] zoran: more cleanups

From: Ronald Bultje <rbultje@ronald.bitfreak.net>

This patch adds some newlines between variable declarations and function
bodies. This was done on request by Francois Romieu.

23 years ago[PATCH] zoran: cleanups
Andrew Morton [Sun, 31 Aug 2003 11:28:29 +0000 (04:28 -0700)]
[PATCH] zoran: cleanups

From: Ronald Bultje <rbultje@ronald.bitfreak.net>

This patch changes some funky coding style (a.k.a. indent artifact) in
the function zoran_irq() to a somewhat more conservative coding style.
It was noticed by Francois Romieu.

23 years ago[PATCH] zoran: add pci_disable_device() call
Andrew Morton [Sun, 31 Aug 2003 11:28:22 +0000 (04:28 -0700)]
[PATCH] zoran: add pci_disable_device() call

From: Ronald Bultje <rbultje@ronald.bitfreak.net>

This patch adds pci_disable_device() to the card release function; we
already used pci_enable_device() in the card detection function.  This was
noticed by Francois Romieu.

23 years ago[PATCH] zoran: add release callback
Andrew Morton [Sun, 31 Aug 2003 11:28:14 +0000 (04:28 -0700)]
[PATCH] zoran: add release callback

From: Ronald Bultje <rbultje@ronald.bitfreak.net>

This patch adds a release callback which frees the video_device struct.
This is needed to prevent freeing memory before it's not in use anymore,
as described in http://lwn.net/Articles/36850/. Without this, the driver
will give a warning when loaded. It might crash when unloading (see
article), too. The video4linux patch (by Gerd Knorr) was accepted a week
(or 2?) ago, but I forgot to adapt my driver to it.

23 years ago[PATCH] zoran: debug->zr_debug
Andrew Morton [Sun, 31 Aug 2003 11:28:07 +0000 (04:28 -0700)]
[PATCH] zoran: debug->zr_debug

From: Ronald Bultje <rbultje@ronald.bitfreak.net>

This patch renames the debug symbol to zr_debug because debug is already
defined somewhere else. Without it, it will cause a symbol conflict when
compiling this driver statically into the kernel. This was noticed by
several people, including Linus himself.

23 years ago[PATCH] zoran: memleak fixes
Andrew Morton [Sun, 31 Aug 2003 11:27:59 +0000 (04:27 -0700)]
[PATCH] zoran: memleak fixes

From: Ronald Bultje <rbultje@ronald.bitfreak.net>

This patch fixes several memleaks in error cases when the setup of i2c
client drivers for video encoders/decoders fails. We forgot to free some
memory in various places. This was noticed by Francois Romieu.

23 years ago[PATCH] spin_lock_irqrestore() typo fixes
Andrew Morton [Sun, 31 Aug 2003 11:27:51 +0000 (04:27 -0700)]
[PATCH] spin_lock_irqrestore() typo fixes

From: Vinay K Nallamothu <vinay-rc@naturesoft.net>

s/spin_lock_irqrestore/spin_unlock_irqrestore/

23 years ago[PATCH] remove add_wait_queue_cond()
Andrew Morton [Sun, 31 Aug 2003 11:27:43 +0000 (04:27 -0700)]
[PATCH] remove add_wait_queue_cond()

It has no callers, is using the non-existent spin_lock_irqrestore(), and is
obviously very untested.  Kill.

23 years ago[PATCH] don't report async write errors on close() after all
Andrew Morton [Sun, 31 Aug 2003 11:27:35 +0000 (04:27 -0700)]
[PATCH] don't report async write errors on close() after all

I had second thoughts on this.

Reporting background writeout errors via close() only really makes sense if
allthe IO has completed anyway: ie, the app has had the fd open without
writing to it for many tens of seconds.

It would be OK if it was harmless, but it is not.  Changes are, applications
ignore errors from close().  So if an application does a fork/exit and the
child correctly does an fsync() of the fd, the close-on-exit will have wiped
out any accumulated EIO/ENOSPC errors.

Or if someone does dup()/close()/fsync(), the fsync() could fail to detect
earlier errors, thanks to the close.

So.  The clear-and-report of errors on close() makes the reporting of errors
on fsync/msync/fdatasync less reliable.

23 years ago[PATCH] zeromap_pmd_range bugfix
Andrew Morton [Sun, 31 Aug 2003 11:27:28 +0000 (04:27 -0700)]
[PATCH] zeromap_pmd_range bugfix

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>

The patch below fixes a 2.6 mm problem.  Without this patch, zeromapped
pages are not flushed properly when they are swapped out.

What happens is that the page->index field is zero for page table pages
corresponding to the zeromapped range.  This causes ptep_to_address() to
return an incorrect virtual address with the result that PTEs are never
invalidated at swap-out...

The fix below mirrors the remap_pmd_range() case.

23 years ago[PATCH] Add 3GB personality
Andrew Morton [Sun, 31 Aug 2003 11:27:21 +0000 (04:27 -0700)]
[PATCH] Add 3GB personality

From: Andi Kleen <ak@muc.de>

Another a bit ugly but necessary patch for 32bit emulation.

Some applications including some versions of java break when the stack is
beyond the i386 standard 3GB boundary.  For these add a 3GB personality
that moves the stack to 3GB and fixes the beginning of the mmap area.  It's
a bit ugly, but better than not running these applications at all (e.g.
the Oracle installer depends on such a buggy java :-().  It's also not only
Java, but some other programs as well.

23 years ago[PATCH] jffs aops return type fix
Andrew Morton [Sun, 31 Aug 2003 11:27:14 +0000 (04:27 -0700)]
[PATCH] jffs aops return type fix

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

prepare_write() and commit_write() return `int'.

Fixes an ia64 compile warning.

23 years ago[PATCH] Fix ftape warning
Andrew Morton [Sun, 31 Aug 2003 11:27:05 +0000 (04:27 -0700)]
[PATCH] Fix ftape warning

From: Chris Heath <chris@heathens.co.nz>

Here's a patch which fixes this warning:

drivers/char/ftape/lowlevel/fdc-io.c: In function `ftape_interrupt':
drivers/char/ftape/lowlevel/fdc-io.c:1299: warning: unused variable `_tracing'

23 years ago[PATCH] ikconfig - Makefile update
Andrew Morton [Sun, 31 Aug 2003 11:26:58 +0000 (04:26 -0700)]
[PATCH] ikconfig - Makefile update

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

Please merge this makefile update from Sam.
From: Sam Ravnborg <sam@ravnborg.org>

Remark, I removed dependencies for configs.o - the are generated by kbuild
anyway. Only generated files needs explicit dependencies.

23 years ago[PATCH] v4l use-after-free fix
Andrew Morton [Sun, 31 Aug 2003 11:26:51 +0000 (04:26 -0700)]
[PATCH] v4l use-after-free fix

From: Greg KH <greg@kroah.com>

When working on converting the usb v4l drivers to the new v4l class
changes, I ran into this nasty bug.  Seems that the core was using a
structure after it had been freed.  The patch below fixes it.

23 years ago[PATCH] Update ide.txt documentation to current ide.c
Andrew Morton [Sun, 31 Aug 2003 11:26:43 +0000 (04:26 -0700)]
[PATCH] Update ide.txt documentation to current ide.c

From: Maciej Soltysiak <solt@dns.toxicfilms.tv>

this patches updates Documentation/ide.txt to reflect more options that
really are supported by the IDE driver (drivers/ide.c)

23 years ago[PATCH] Add the kernel janitors to MAINTAINERS
Andrew Morton [Sun, 31 Aug 2003 11:26:35 +0000 (04:26 -0700)]
[PATCH] Add the kernel janitors to MAINTAINERS

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

Add the Kernel Janitors project to MAINTAINERS.

Probably the trivial patch monkey should be there too.

23 years ago[PATCH] move DAC960 GAM IOCTLs into a new device
Andrew Morton [Sun, 31 Aug 2003 11:26:27 +0000 (04:26 -0700)]
[PATCH] move DAC960 GAM IOCTLs into a new device

From: Dave Olien <dmo@osdl.org>

The DAC960 driver uses an ugly overloading of the O_NONBLOCK flag to
support the controller's RAID configuration features.

Opening "/dev/rd/c0d0" with the O_NONBLOCK flag set returns a file
descriptor that can be used to do RAID control operations using ioctl().
The normal ioctl operations are not availabe with that file descriptor.

This patch removes that O_NONBLOCK overloading from DAC960_open() and
DAC960_ioctl() functions.  It introduces a new "miscellaneous" device
named /dev/dac960_gam.  It uses minor device number 252 of the miscellaneous
character devices.

The currently distrubted "Global Array Manager" server distrubted by
LSIlogic on their web page page works only on RH7.3 or earlier.  It doesn't
work under RH9.  There are probably some library incompatabilities.
So, I don't view this patch as breaking anything that currently works.
If this software package is ever brought up to date (which I doubt),
then it can be modified to use this new device at that time.

23 years ago[PATCH] Call security hook from pid*_revalidate
Andrew Morton [Sun, 31 Aug 2003 11:26:19 +0000 (04:26 -0700)]
[PATCH] Call security hook from pid*_revalidate

From: Stephen Smalley <sds@epoch.ncsc.mil>

This patch against 2.6.0-test3-mm3 adds calls to the security_task_to_inode
hook to the pid*_revalidate functions to ensure that the inode security field
is also updated appropriately for /proc/pid inodes.  This corresponds with
the uid/gid update performed by the proc-pid-setuid-ownership-fix.patch that
is already in -mm3.

23 years ago[PATCH] fix /proc/pid/fd ownership across setuid()
Andrew Morton [Sun, 31 Aug 2003 11:26:12 +0000 (04:26 -0700)]
[PATCH] fix /proc/pid/fd ownership across setuid()

From: "B. D. Elliott" <bde@nwlink.com>

There's a bug:

- Someone reads a (say) root-owned process's /proc/pid/fd directory

  The inodes are instantiated owned by root.

- That process does a setuid

- The /proc/pid/* files still have the old ownerships.

This happened because we are now caching the proc entries.

The patch rewrites the ownership of the inodes under /proc/pid in the
d_revalidate() handler.

23 years ago[PATCH] disable prefetch on athlons
Andrew Morton [Sun, 31 Aug 2003 11:26:04 +0000 (04:26 -0700)]
[PATCH] disable prefetch on athlons

K7's (at least) are faulting in the prefetch instruction.  The AMD
engineers have said they will be getting back to us on it, and the fix is
looking complex, and nobody seems to be standing up to work on it.

So hum.  The usual manifestation is an oops in hlist_for_each(), down in
the VFS inode lookup code.  Disrupting our testers in this way is very bad,
so this patch just disables prefetch on all AMD parts in a rather stupid
way.

23 years ago[PATCH] random: accounting and sleeping fixes
Andrew Morton [Sun, 31 Aug 2003 11:25:56 +0000 (04:25 -0700)]
[PATCH] random: accounting and sleeping fixes

From: Oliver Xymoron <oxymoron@waste.org>

This fixes several calculation errors and races in entropy accounting
that would allow /dev/random output to greatly exceed the measured
entropy collection. This doesn't include any of my more controversial
hardening, it just makes it behave as intended.

It also corrects the operation of the 'catastrophic reseeding' feature
so that it will actually prevent the state extension attack it's meant
to guard against.

And finally, it also fixes a couple missed wake-up and accidental
sleep bugs uncovered by the above fixes.

Debug instrumentation has been improved to help verify correctness.

23 years ago[PATCH] random: SMP locking
Andrew Morton [Sun, 31 Aug 2003 11:25:47 +0000 (04:25 -0700)]
[PATCH] random: SMP locking

From: Oliver Xymoron <oxymoron@waste.org>

This patch adds locking for SMP. Apparently Willy never managed to
revive his laptop with his version so I revived mine.

The batch pool is copied as a block to avoid long lock hold times
while mixing it into the primary pool.

Two locks are added:

gobal batch_lock
   batch_entropy_store can be called from any context, and typically from
   interrupts -> spin_lock_irqsave

   batch_entropy_process is called called via schedule_delayed_work and
   runs in process context -> spin_lock_irq

entropy_store.lock
   the mixing process is too expensive to be called from an interrupt
   context and the basic worker function extract_entropy can sleep, so
   all this stuff can be under a normal spin_lock

23 years ago[PATCH] .config checks updated
Andrew Morton [Sun, 31 Aug 2003 11:25:40 +0000 (04:25 -0700)]
[PATCH] .config checks updated

From: Sam Ravnborg <sam@ravnborg.org>

When building a kernel right after 'make mrproper' resulted in a very short
run, and no sign that .config was missing.  This has been fixed by adding a
new rule for .config in the top-level Makefile, and a new target
'silentoldconfig' in scripts/kconfig/Makefile.

Cleaned up a bit in scripts/kconfig/Makefile