]> git.hungrycats.org Git - linux/log
linux
22 years agoLinux 2.5.73 v2.5.73
Linus Torvalds [Sun, 22 Jun 2003 04:30:26 +0000 (21:30 -0700)]
Linux 2.5.73

22 years ago[PATCH] SCSI tape write error fix
Kai Mäkisara [Sun, 22 Jun 2003 04:26:39 +0000 (21:26 -0700)]
[PATCH] SCSI tape write error fix

This corrects the back off count so that write errors will not be
ignored

22 years ago[PATCH] Update Acorn partition parsing
Russell King [Sun, 22 Jun 2003 03:47:06 +0000 (20:47 -0700)]
[PATCH] Update Acorn partition parsing

This patch:
- re-enables cumana partition parsing
- adds eesox partition parsing
- makes the powertec partition parsing fail if sector 0 looks like
  a PC bios partition table

Rather than having a single "acorn_partition" parser for all these
types, we list them explicitly in check.c instead, along with some
explaination about why they're where they are.

22 years ago[PATCH] Fix CIFS breakage from the statfs64 patch
Andrew Morton [Sun, 22 Jun 2003 03:46:12 +0000 (20:46 -0700)]
[PATCH] Fix CIFS breakage from the statfs64 patch

From: Rene Scharfe <l.s.r@web.de>

cifs_statfs() is called with a pointer to a struct kstatfs, so let's
propagate this type into the helper function.

22 years ago[PATCH] psmouse compile fix
Andrew Morton [Sat, 21 Jun 2003 16:54:18 +0000 (09:54 -0700)]
[PATCH] psmouse compile fix

Fix a couple of compilation errors in the mouse code.

22 years ago[PATCH] fix sysfs bogosity in i82365.c
Arnaldo Carvalho de Melo [Sat, 21 Jun 2003 12:10:12 +0000 (05:10 -0700)]
[PATCH] fix sysfs bogosity in i82365.c

It was using a non-existent socket[] index and not doing it for all
sockets.

22 years agoMerge bk://kernel.bkbits.net/vojtech/input
Linus Torvalds [Sat, 21 Jun 2003 10:42:21 +0000 (03:42 -0700)]
Merge bk://kernel.bkbits.net/vojtech/input
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.5-rmk
Linus Torvalds [Sat, 21 Jun 2003 10:01:30 +0000 (03:01 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.5-rmk
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years ago[ARM] Add SA11x0 UDC DMA mask support, and SSP platform device
Russell King [Sat, 21 Jun 2003 17:40:42 +0000 (18:40 +0100)]
[ARM] Add SA11x0 UDC DMA mask support, and SSP platform device

22 years ago[ARM] Add new machine types.
Russell King [Sat, 21 Jun 2003 17:35:47 +0000 (18:35 +0100)]
[ARM] Add new machine types.

22 years ago[ARM] Remove unnecessary redefinition of predeclared register aliases.
Russell King [Sat, 21 Jun 2003 17:20:57 +0000 (18:20 +0100)]
[ARM] Remove unnecessary redefinition of predeclared register aliases.

22 years ago[SCSI] Fix powertec.c build errors.
Russell King [Sat, 21 Jun 2003 17:14:52 +0000 (18:14 +0100)]
[SCSI] Fix powertec.c build errors.

22 years ago[ARM] fix missing includes in pm.c
Russell King [Sat, 21 Jun 2003 17:03:50 +0000 (18:03 +0100)]
[ARM] fix missing includes in pm.c

22 years agoDon't register SCSI devices until they are actually fully set up.
Linus Torvalds [Sat, 21 Jun 2003 05:02:14 +0000 (22:02 -0700)]
Don't register SCSI devices until they are actually fully set up.

Also, default to the 10-byte version of mode sense, since a lot
of modern SCSI-like devices don't even support the old version
(we will automatically downgrade to the 6-byte version if the long
version isn't supported).

22 years agoMake sure that unallocated consoles don't cause us to oops
Linus Torvalds [Sat, 21 Jun 2003 04:32:42 +0000 (21:32 -0700)]
Make sure that unallocated consoles don't cause us to oops
in VT_RESIZEX handling.

22 years agoFix MELAN config compile by just making the PIC range
Linus Torvalds [Sat, 21 Jun 2003 03:31:03 +0000 (20:31 -0700)]
Fix MELAN config compile by just making the PIC range
allocation have only the two standard ports by default.

Which was what MELAN really wanted, and others don't
really care.

Pointed out by Roland Dreier

22 years ago[PATCH] pci: add Asus P4G8X Deluxe to asus_hides_smbus quirk
Dominik Brodowski [Sat, 21 Jun 2003 03:26:18 +0000 (20:26 -0700)]
[PATCH] pci: add Asus P4G8X Deluxe to asus_hides_smbus quirk

Yet another Asus motherboard hiding features

22 years ago[PATCH] More care in sys_setaffinity
Rusty Russell [Sat, 21 Jun 2003 03:23:22 +0000 (20:23 -0700)]
[PATCH] More care in sys_setaffinity

We currently mask off offline CPUs in both set_cpus_allowed and
sys_sched_setaffinity.  This is firstly redundant, and secondly
erroneous when more CPUs come online (eg. setting affinity to all 1s
should mean all CPUs, including future ones).

We mask with cpu_online_map() in sys_sched_getaffinity *anyway* (which
is another issue, since this is not valid with changing of online
cpus either), so userspace won't see any difference.

This patch makes set_cpus_allowed() return -errno, and check that in
sys_sched_setaffinity.

22 years ago[PATCH] any_online_cpus to return NR_CPUS to mean "none".
Rusty Russell [Sat, 21 Jun 2003 03:23:11 +0000 (20:23 -0700)]
[PATCH] any_online_cpus to return NR_CPUS to mean "none".

Matt Fleming points out that returning int from any_online_cpu
where cpu numbers are passed as unsigned ints elsewhere is awkward
and a little dangerous.

Make any_online_cpu() match find_first_bit(), by returning NR_CPUS
when no cpu is found, rather than -1.  This also simplifies the
future case where NR_CPUS > BITS_PER_LONG.

22 years ago[PATCH] conditional ROMfs copy for M5272C3 board
Greg Ungerer [Sat, 21 Jun 2003 03:21:20 +0000 (20:21 -0700)]
[PATCH] conditional ROMfs copy for M5272C3 board

Make the ROMfs copy in the startup code for Motorola/M5272C3 board
conditional on actually using a ROMfs setup.

22 years ago[PATCH] configuration boot arguments for ColdFire/5272 targets
Greg Ungerer [Sat, 21 Jun 2003 03:21:12 +0000 (20:21 -0700)]
[PATCH] configuration boot arguments for ColdFire/5272 targets

Allow for hard setting of boot arguments from configuration for
the Motorola Coldfire 5272 CPU targets.

22 years ago[PATCH] conditional ROMfs copy for M5249C3 board
Greg Ungerer [Sat, 21 Jun 2003 03:21:05 +0000 (20:21 -0700)]
[PATCH] conditional ROMfs copy for M5249C3 board

Make the ROMfs copy in the startup code for Motorola/M5249C3 board
conditional on actually using a ROMfs setup.

22 years ago[PATCH] configuration boot arguments for ColdFire/5249 targets
Greg Ungerer [Sat, 21 Jun 2003 03:20:55 +0000 (20:20 -0700)]
[PATCH] configuration boot arguments for ColdFire/5249 targets

Allow for hard setting of boot arguments from configuration for
the Motorola Coldfire 5249 CPU targets.

22 years ago[PATCH] Remove spinlock workaround for pre 2.95 gccs
Andi Kleen [Sat, 21 Jun 2003 03:18:55 +0000 (20:18 -0700)]
[PATCH] Remove spinlock workaround for pre 2.95 gccs

Remove the empty initializer workaround that was added for egcs 1.1.
Only 2.95+ is supported now, so all compilers should support empty
structures.

The if just checked for __GNUC__, which means that 2.95 got
the workaround (and the incompatibility) too even though it didn't need it.

Advantage is that gcc 2.95 and 3.x compiled kernels are now potentially
binary compatible.  Module loading still checks the compiler version,
but it might be removable.

22 years agoinput: make GC_PSX_DELAY lower (25 usec instead of 60), to burn less
Vojtech Pavlik [Fri, 20 Jun 2003 21:49:07 +0000 (14:49 -0700)]
input: make GC_PSX_DELAY lower (25 usec instead of 60), to burn less
       CPU time while reading PSX pads, and make it a module parameter also,
       for devices which would need the huge value of 60.

22 years agoinput: Fixes for sidewinder.c: Workaround for
Vojtech Pavlik [Fri, 20 Jun 2003 21:48:10 +0000 (14:48 -0700)]
input: Fixes for sidewinder.c: Workaround for
       misbehaving 3DPro joysticks, don't trust FreestylePro
       1-bit data packet for data width recognition, invert
       FreestylePro buttons.

22 years agoinput: fix double kfree of device->rdesc on hid_parse_parse error
Arnaldo Carvalho de Melo [Fri, 20 Jun 2003 21:45:44 +0000 (14:45 -0700)]
input: fix double kfree of device->rdesc on hid_parse_parse error
       path in hid-core.c

22 years agoinput: Change order of search for beeper devices in keyboard.c,
Neil Brown [Fri, 20 Jun 2003 21:44:26 +0000 (14:44 -0700)]
input: Change order of search for beeper devices in keyboard.c,
       so that it is easier to replace a beeper with a different
       driver

22 years agoinput: Three fixes for the uinput userspace input device driver.
Neil Brown [Fri, 20 Jun 2003 21:43:13 +0000 (14:43 -0700)]
input: Three fixes for the uinput userspace input device driver.

22 years agoinput: Add Logitech MX PS2++ support, move Logitech PS2++ code to a
Vojtech Pavlik [Fri, 20 Jun 2003 21:41:52 +0000 (14:41 -0700)]
input: Add Logitech MX PS2++ support, move Logitech PS2++ code to a
       separate source file, always enable Synaptics support. Some more
       fixes in Synaptics code and documentation.

22 years agoinput: Fix gameport.c - gameport was never closed after calibrating
Gabriel Devenyi [Fri, 20 Jun 2003 21:36:19 +0000 (14:36 -0700)]
input: Fix gameport.c - gameport was never closed after calibrating

22 years agoinput: remove unused var from serio struct
Dave Jones [Fri, 20 Jun 2003 21:35:24 +0000 (14:35 -0700)]
input: remove unused var from serio struct

22 years agoinput: Add locking to serio.c
Vojtech Pavlik [Fri, 20 Jun 2003 21:34:11 +0000 (14:34 -0700)]
input: Add locking to serio.c

22 years agoinput: Fix misdetection of PS2 mice as AT keyboards on non-PC machines
Vojtech Pavlik [Fri, 20 Jun 2003 21:33:11 +0000 (14:33 -0700)]
input: Fix misdetection of PS2 mice as AT keyboards on non-PC machines
       where ATKBD_CMD_RESET_BAT is used.

22 years agoinput: logical maximum and minimum can have the same value in HID.
Artur Wegele [Fri, 20 Jun 2003 21:32:06 +0000 (14:32 -0700)]
input: logical maximum and minimum can have the same value in HID.

22 years ago[PATCH] ext3/JBD: remove trailing whitespace
Andrew Morton [Fri, 20 Jun 2003 15:16:09 +0000 (08:16 -0700)]
[PATCH] ext3/JBD: remove trailing whitespace

ext3 and JBD still have enormous numbers of lines which end in tabs.  Fix
them all up.

22 years ago[PATCH] JBD: honour read-only mounts more carefully
Andrew Morton [Fri, 20 Jun 2003 15:16:03 +0000 (08:16 -0700)]
[PATCH] JBD: honour read-only mounts more carefully

From: "Stephen C. Tweedie" <sct@redhat.com>

ext3 has long had a problem wherein it will unnecessarily write to a
read-only filesystem during the mount process.  It does this in preparing the
journal superblock's sequence numbers.

But if the filesystem was shut down cleanly we do not need to do this.
Detect the situation and avoid modifying and writing out the journal
superblock.

22 years ago[PATCH] Restore Daniel Phillips' copyright
Andrew Morton [Fri, 20 Jun 2003 15:15:56 +0000 (08:15 -0700)]
[PATCH] Restore Daniel Phillips' copyright

From: Daniel Phillips <phillips@arcor.de>

This patch restores my copyright notice for the HTree directory index,
inadvertently omitted during the conversion from Ext2 to Ext3.

22 years ago[PATCH] highmem.h needs mm.h
Andrew Morton [Fri, 20 Jun 2003 15:15:49 +0000 (08:15 -0700)]
[PATCH] highmem.h needs mm.h

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

highmem.h uses stuff like page_address(), but fails to include
<linux/mm.h>.

22 years ago[PATCH] node-local allocation for hugetlbpages
Andrew Morton [Fri, 20 Jun 2003 15:15:38 +0000 (08:15 -0700)]
[PATCH] node-local allocation for hugetlbpages

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

The following patch implements node-local memory allocation support for
hugetlb. Successfully tested on NUMA-Q.

22 years ago[PATCH] Fix binfmt_elf.c bug on ppc64
Andrew Morton [Fri, 20 Jun 2003 15:15:31 +0000 (08:15 -0700)]
[PATCH] Fix binfmt_elf.c bug on ppc64

From: Jakub Jelinek <jakub@redhat.com>

Any prelinked shared library is impossible to run on ppc64 without this
patch, as they immediately segfault.  Say:

/bin/echo

works even if /lib64/ld64.so.1 is prelinked while

/lib64/ld64.so.1 /bin/echo

segfaults.

The problem is that ELF_PLAT_INIT is passed the virtual address of the
shared library, not the difference between the virtual address of the
shared library and p_vaddr of the first PT_LOAD segment in that library
(while for the interpreter interp_load_address is the bias).

ELF_PLAT_INIT sets gpr[2] to this absolute address, but
arch/ppc64/kernel/process.c (start_thread) assumes it is a bias and adds it
to entry and toc values loaded from the entry point descriptor.

For non-prelinked shared libraries, first PT_LOAD segment's p_vaddr is
typically 0 and thus load_addr == load_bias (which is why this bug has not
been discovered that long).

22 years ago[PATCH] Fix suspend with NFS mounts active
Andrew Morton [Fri, 20 Jun 2003 15:15:24 +0000 (08:15 -0700)]
[PATCH] Fix suspend with NFS mounts active

From: Pavel Machek <pavel@ucw.cz>

This fixes suspend with NFS mounts active.

22 years ago[PATCH] mach-generic build fix
Andrew Morton [Fri, 20 Jun 2003 15:15:18 +0000 (08:15 -0700)]
[PATCH] mach-generic build fix

enable_apic_mode needs tobe hooked up.  (It came in with the es7000 merge)

22 years ago[PATCH] Fix kmod return value
Andrew Morton [Fri, 20 Jun 2003 15:15:08 +0000 (08:15 -0700)]
[PATCH] Fix kmod return value

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

Milton Miller <miltonm@bga.com> and Junfeng Yang <yjf@stanford.edu> point
out that we hand a kernel address to sys_wait4 for the status pointer.
This is true, but since we don't have a SIGCHLD handler, it never gets that
far.  Use NULL, and document the fact.

22 years ago[PATCH] proc_pid_lookup use-after-free fix
Andrew Morton [Fri, 20 Jun 2003 15:15:03 +0000 (08:15 -0700)]
[PATCH] proc_pid_lookup use-after-free fix

From: "Martin J. Bligh" <mbligh@aracnet.com> and me

proc_pid_lookup() does a put_task_struct() and then continues to play with
the task.

22 years ago[PATCH] workqueue.c subtle fix and core extraction
Andrew Morton [Fri, 20 Jun 2003 15:14:56 +0000 (08:14 -0700)]
[PATCH] workqueue.c subtle fix and core extraction

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

A barrier is needed on workqueue shutdown: there's a chance that the thead
could see the wq->thread set to NULL before the completion is initialized.

Also extracts functions which actually create and destroy workqueues, for
use by hotplug CPU patch.

22 years ago[PATCH] dirty inode writeback fix
Andrew Morton [Fri, 20 Jun 2003 15:14:49 +0000 (08:14 -0700)]
[PATCH] dirty inode writeback fix

Both sys_sync() and the kupdate function need to precalculate the number of
pages which they are prepared to write.  Mainly for livelock avoidance.

But they also must write inodes, and dirty inodes do not contribute to dirty
page accounting (oops).  Net effect: when there are lots of dirty inodes and
few dirty pages, we forget to write inodes.

This mainly affects atime updates, because most other inode-dirtying activity
will generate dirty pages too.

It mainly affects ext2.

Now, writing an ext2 inode will just dirty the underlying blockdev pagecache
page.  So what the patch does is to assume that writing one inode will dirty
up to one pagecache page.  So the patch adds (inodes_stat.nr_inodes -
inodes_stat.nr_unused) into the number of pages to be written.

I considered creating inodes_stat.nr_dirty.  It looks fairly messy, needing
to know not to account for memory-backed inodes, etc.  But it is probably a
better thing to do.

22 years ago[PATCH] remove swapper_inode
Andrew Morton [Fri, 20 Jun 2003 15:14:42 +0000 (08:14 -0700)]
[PATCH] remove swapper_inode

By moving the special-casing for swapper_space out of __mark_inode_dirty()
and into __set_page_dirty_nobuffers() we can remove swapper_inode.

22 years ago[PATCH] Permit big console scrolls
Andrew Morton [Fri, 20 Jun 2003 15:14:31 +0000 (08:14 -0700)]
[PATCH] Permit big console scrolls

From: Samuel Thibault <Samuel.Thibault@ens-lyon.fr>

Changes the new console scrolling ioctl to permit distances greater than
+127/-128.

22 years ago[PATCH] misc fixes
Andrew Morton [Fri, 20 Jun 2003 15:14:24 +0000 (08:14 -0700)]
[PATCH] misc fixes

- shmem: remove unneeded test for null inode->i_sb (James Morris)

- kill unused var warning in traps.c (Geert Uytterhoeven)

- s/u64/__u64/ in bitops.h (needed for klibc)

- comment fix in gfp.h (Matthew Dobson <colpatch@us.ibm.com>)

- fix smbfs constant overflow warning (Flameeyes <daps_mls@libero.it>)

- yam.c irqreturn_t fix.

- Remove some unused variables from baycom_epp.c (Adrian Bunk)

- Remove 5-year-old unreferenced RCS string from xirc2ps_cs.c (Adrian Bunk)

22 years ago[PATCH] hugetlbfs:update statfs
Andrew Morton [Fri, 20 Jun 2003 15:14:18 +0000 (08:14 -0700)]
[PATCH] hugetlbfs:update statfs

update hugetlbfs_statfs for the statfs64() changes.

22 years ago[PATCH] hugetlbfs: specify size & inodes at mount
Andrew Morton [Fri, 20 Jun 2003 15:14:11 +0000 (08:14 -0700)]
[PATCH] hugetlbfs: specify size & inodes at mount

From: "Seth, Rohit" <rohit.seth@intel.com>

- Add support for setting the filesystem's maximum size and maximum inode
  count on the mount command line.

  This is needed because the system admin can now set the ownership of teh
  fs to non-root users.  We don't want those users to be able to use all of
  the hugepage pool.

- Prroperly update the inode creation/modification time.

- Set the blocksize to HPAGE_SIZE (instead of PAGE_CACHE_SIZE).

- Update Documentation/vm/hugetlbpage.txt.

22 years ago[PATCH] raw.c devfs support
Andrew Morton [Fri, 20 Jun 2003 15:14:04 +0000 (08:14 -0700)]
[PATCH] raw.c devfs support

From: Andrey Borzenkov <arvidjaar@mail.ru>

Add devfs support to raw.c.

22 years ago[PATCH] sysv semundo fixes
Andrew Morton [Fri, 20 Jun 2003 15:13:53 +0000 (08:13 -0700)]
[PATCH] sysv semundo fixes

From: Manfred Spraul <manfred@colorfullife.com>

The CLONE_SYSVSEM implementation is racy: it does an (atomic_read(->refcnt)
==1) instead of atomic_dec_and_test calls in the exit handling.  The patch
fixes that.

Additionally, the patch contains the following changes:

- lock_undo() locks the list of undo structures.  The lock is held
  throughout the semop() syscall, but that's unnecessary - we can drop it
  immediately after the lookup.

- undo structures are only allocated when necessary.  The need for undo
  structures is only noticed in the middle of the semop operation, while
  holding the semaphore array spinlock.  The result is a convoluted
  unlock&revalidate implementation.  I've reordered the code, and now the
  undo allocation can happen before acquiring the semaphore array spinlock.
   As a bonus, less code runs under the semaphore array spinlock.

- sysvsem.sleep_list looks like code to handle oopses: if an oops kills a
  thread that sleeps in sys_timedsemop(), then sem_exit tries to recover.
  I've removed that - too fragile.

22 years ago[PATCH] show_stack() portability and cleanup patch
Andrew Morton [Fri, 20 Jun 2003 15:13:46 +0000 (08:13 -0700)]
[PATCH] show_stack() portability and cleanup patch

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

This is an attempt at sanitizing the interface for stack trace dumping
somewhat.  It's basically the last thing which prevents 2.5.x from working
out-of-the-box for ia64.  ia64 apparently cannot reasonably implement the
show_stack interface declared in sched.h.

Here is the rationale: modern calling conventions don't maintain a frame
pointer and it's not possible to get a reliable stack trace with only a stack
pointer as the starting point.  You really need more machine state to start
with.  For a while, I thought the solution is to pass a task pointer to
show_stack(), but it turns out that this would negatively impact x86 because
it's sometimes useful to show only portions of a stack trace (e.g., starting
from the point at which a trap occurred).  Thus, this patch _adds_ the task
pointer instead:

 extern void show_stack(struct task_struct *tsk, unsigned long *sp);

The idea here is that show_stack(tsk, sp) will show the backtrace of task
"tsk", starting from the stack frame that "sp" is pointing to.  If tsk is
NULL, the trace will be for the current task.  If "sp" is NULL, all stack
frames of the task are shown.  If both are NULL, you'll get the full trace of
the current task.

I _think_ this should make everyone happy.

The patch also removes the declaration of show_trace() in linux/sched.h (it
never was a generic function; some platforms, in particular x86, may want to
update accordingly).

Finally, the patch replaces the one call to show_trace_task() with the
equivalent call show_stack(task, NULL).

The patch below is for Alpha and i386, since I can (compile-)test those (I'll
provide the ia64 update through my regular updates).  The other arches will
break visibly and updating the code should be trivial:

- add a task pointer argument to show_stack() and pass NULL as the first
  argument where needed

- remove show_trace_task()

- declare show_trace() in a platform-specific header file if you really
  want to keep it around

22 years ago[PATCH] revert adjtimex changes
Andrew Morton [Fri, 20 Jun 2003 15:13:39 +0000 (08:13 -0700)]
[PATCH] revert adjtimex changes

From: John Stultz, George Anzinger, Eric Piel

There was confusion over the definition of TICK_USEC.  TICK_USEC is
supposed to be based on USER_HZ, however a recent change caused TICK_USEC
to be based on HZ.  This broke the adjtimex() interface on systems where
USER_HZ != HZ.  This patch reverts the change to TICK_USEC, removes an
added mis-use of the value and fixes some incorrect comments that could
lead to this sort of confusion.

Also this patch resolves the related LTP adjtimex failures.

22 years ago[PATCH] Fix potential set_child_tid/clear_child_tid bug
Andrew Morton [Fri, 20 Jun 2003 15:13:33 +0000 (08:13 -0700)]
[PATCH] Fix potential set_child_tid/clear_child_tid bug

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

At the moment, if you don't set CLONE_CHILD_SETTID/CLONE_CHILD_CLEARTID,
the {set,clear}_child_tid values get inherited from the parent task.  I may
be missing something, but I suspect that's not the intended behavior.  The
patch below instead clears the respective members.

22 years ago[PATCH] slab poisoning fix
Andrew Morton [Fri, 20 Jun 2003 15:13:21 +0000 (08:13 -0700)]
[PATCH] slab poisoning fix

The slab debugging code is supposed to poison freshly-allocated obejcts with
0x5a and freed ones with 0x6b, so we can distinguish use-uninitialised from
use-after-free.

It wasn't working right for recycled objects.  Fix.

22 years ago[PATCH] kmem_cache_destroy(): use slab_error()
Andrew Morton [Fri, 20 Jun 2003 15:13:15 +0000 (08:13 -0700)]
[PATCH] kmem_cache_destroy(): use slab_error()

Use slab_error for printing the error message from kmem_cache_destroy

22 years ago[PATCH] Add system calls statfs64 and fstatfs64
Andrew Morton [Fri, 20 Jun 2003 15:13:06 +0000 (08:13 -0700)]
[PATCH] Add system calls statfs64 and fstatfs64

From: Peter Chubb <peter@chubb.wattle.id.au>

Add two new system calls, statfs64 and fstatfs64.  This has been needed
sincew the 64-bit sector_t merge - the current structures will overflow.

- Use a common interface (vfs_statfs) with the rest of the kernel,

- convert to 32-bit at (f)statfs time.

- New field f_frsize gives underlying fragment size for the filesystem.
  (Solaris has this, and the Open Group describe it).

- The old statfs syscalls will now return -EOVERFLOW if the device was
  too large to be represented inthe old data structures.

The new system calls take a size_t argument, which is the size of the
structure to be filled in (as requested by Ben LaHaise), to `futureproof' the
interface.

Has been reviewed by the arch maintainers and by Ulrich Drepper.

22 years ago[PATCH] /proc/kcore: handle unmapped areas
Andrew Morton [Fri, 20 Jun 2003 15:12:57 +0000 (08:12 -0700)]
[PATCH] /proc/kcore: handle unmapped areas

From: Andi Kleen <ak@suse.de>

On i386 and most other ports kern_addr_valid is hardcoded to 1.

This works fine as long as only mapped areas are accessed.  When you have
something partially mapped in the kclist it is possible that start points to
an unmapped address.  The correct behaviour in this case is to zero the user
space.  We shouldn't return -EFAULT because the fault is against the mmapped
range, not against the user's address.

copy_to_user usually even checks for exceptions on both source and
destination, but it does not zero the destination in this case and worse
results in EFAULT, which is user visible.

This patch just tries to clear_user in this case again to actually zero the
user data and catch real user side EFAULTs.

Another way to fix this is to have kern_addr_valid do a real page table
lookup (I did that on AMD64), but having this fallback is a bit more
reliable in case there is a race somewhere.

On i386 it could happen for example if the direct space to max_low_pfn
contains something unmapped.  This normally isn't the case, but e.g.  the
slab debugging patches in -mm* do this so it's better to handle it.

Drawback is that it relies on a somewhat undocumented copy_to_user behaviour
(fault on both source and destination).  It is true for i386 and amd64, but I
don't know if it is for other port.  In the worst case they just don't have
the race protection and may see bogus EFAULTs.

22 years ago[PATCH] Fix /proc/kcore for i386
Andrew Morton [Fri, 20 Jun 2003 15:12:48 +0000 (08:12 -0700)]
[PATCH] Fix /proc/kcore for i386

From: Andi Kleen <ak@suse.de>

The recent IA64 changes for /proc/kcore broke the access on i386.
Currently no notes are written for the direct mapped or vmalloced memory,
which makes gdb reject it.

This patch fixes it.  Other ports probably need to do the same changes.

22 years ago[PATCH] range checking in rd_open()
Andrew Morton [Fri, 20 Jun 2003 15:12:41 +0000 (08:12 -0700)]
[PATCH] range checking in rd_open()

If you open /dev/ram7 when the kernel is configured for 4 ramdisks, things
blow up.  Teach rd_open() to check that the minor is in range.

22 years ago[PATCH] kjournald shutdown fix
Andrew Morton [Fri, 20 Jun 2003 15:12:34 +0000 (08:12 -0700)]
[PATCH] kjournald shutdown fix

If someome tries to unmount the fs while kjournald is performing a commit,
kjournald forgets to look for the termination request and goes into permanent
sleep.

22 years ago[PATCH] ia32 copy_from_user() fix
Andrew Morton [Fri, 20 Jun 2003 15:12:27 +0000 (08:12 -0700)]
[PATCH] ia32 copy_from_user() fix

The memset which is performed if access_ok() fails got lost in the
copy_*_user() rework.  Put it back.

Bloats the kernel by 8k :(

Also contains a few related #includes and whitespace fixlets from
Joshua Kwan <joshk@triplehelix.org>

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/pci-2.5
Linus Torvalds [Fri, 20 Jun 2003 14:53:51 +0000 (07:53 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/pci-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years ago[PATCH] Enhanced SiS96x support
Lionel Bouton [Fri, 20 Jun 2003 10:44:03 +0000 (03:44 -0700)]
[PATCH] Enhanced SiS96x support

This is an update for the SiS IDE driver.

This is a 99% Vojtech work :
- Independant southbridge detection (no need to add current and future
  MuTIOL northbridge PCI ids knowledge to the driver),
- Lots of code cleanup,
- Debug code removed (unused for a while, I will maintain it in my tree
  if needed),

I changed some things:
- the new config_xfer_rate is commented out until ide_find_best_mode is
  patched for bad drive handling (until then I reverted to the old one
  using the config_drive_xfer_rate helper function).

22 years ago[PATCH] PCI: fix minor problem in previous proc naming patch.
Greg Kroah-Hartman [Fri, 20 Jun 2003 05:31:56 +0000 (22:31 -0700)]
[PATCH] PCI: fix minor problem in previous proc naming patch.

22 years ago[PATCH] reimplement pci proc name
Matthew Wilcox [Fri, 20 Jun 2003 05:31:01 +0000 (22:31 -0700)]
[PATCH] reimplement pci proc name

Hi Greg.  Ivan's not happy with the solution I came up with for naming
/proc/bus/pci and Anton would prefer something slightly different too,
so I abstracted the name out so each architecture can do its own thing.

This is against 2.5.72 so won't apply cleanly to your tree (it
applies to bitkeeper as of a few minutes ago with only minor offsets).
I've implemented the original name for non-PCI-domain machines; done what
ia64 and alpha need, respectively (assuming I didn't misunderstand Ivan),
and plopped in the Old Way of doing things for Sparc64, PPC and PPC64.
Maintainers may alter this to whatever degree of complexity they wish.

22 years agoCset exclude: willy@debian.org|ChangeSet|20030621161842|52492
Greg Kroah-Hartman [Fri, 20 Jun 2003 05:29:51 +0000 (22:29 -0700)]
Cset exclude: willy@debian.org|ChangeSet|20030621161842|52492

22 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.5
Greg Kroah-Hartman [Fri, 20 Jun 2003 02:19:21 +0000 (19:19 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/pci-2.5

22 years agoMerge bk://cifs.bkbits.net/linux-2.5cifs
Linus Torvalds [Thu, 19 Jun 2003 14:28:22 +0000 (07:28 -0700)]
Merge bk://cifs.bkbits.net/linux-2.5cifs
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years agoManual merge of duplicate warning fixes
Linus Torvalds [Thu, 19 Jun 2003 14:27:29 +0000 (07:27 -0700)]
Manual merge of duplicate warning fixes

22 years agoMerge http://linux-acpi.bkbits.net/linux-acpi
Linus Torvalds [Thu, 19 Jun 2003 14:24:52 +0000 (07:24 -0700)]
Merge http://linux-acpi.bkbits.net/linux-acpi
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years agoMerge bk://kernel.bkbits.net/jgarzik/net-drivers-2.5
Linus Torvalds [Thu, 19 Jun 2003 14:23:51 +0000 (07:23 -0700)]
Merge bk://kernel.bkbits.net/jgarzik/net-drivers-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

22 years ago[netdrvr tulip] Kconfig help text fix
Mikael Pettersson [Thu, 19 Jun 2003 19:35:13 +0000 (15:35 -0400)]
[netdrvr tulip] Kconfig help text fix

While there is a separate driver for 2104x tulips (CONFIG_DE2104X),
drivers/net/tulip/Kconfig states that CONFIG_TULIP also supports
2104x tulips. This is not the case since that support was removed
in December 2001. A user with an old tulip may thus be tricked into
configuring the wrong driver. (I was, on my PMac 4400.)

The patch below removes this misinformation from tulip's Kconfig.

22 years ago[netdrvr sis900] add new phy id to phy table
Jeff Garzik [Thu, 19 Jun 2003 18:51:15 +0000 (14:51 -0400)]
[netdrvr sis900] add new phy id to phy table

(pulled change from 2.4)

22 years ago[PATCH] xirc2ps_cs update
Daniel Ritz [Thu, 19 Jun 2003 18:35:52 +0000 (14:35 -0400)]
[PATCH] xirc2ps_cs update

the second patch:
replaces busy_loop with a simple macro doing a schedule_timeout. busy_loop was never
called from interrupt conext anyway, so no need for that. and the sti() is gone.

rgds
-daniel

22 years ago[PATCH] xirc2ps_cs update
Daniel Ritz [Thu, 19 Jun 2003 18:35:27 +0000 (14:35 -0400)]
[PATCH] xirc2ps_cs update

hi

this patch does:
- net_device is no longer allocated as part of the driver's private structure,
  instead it's allocated via alloc_netdev
- xirc2ps_detach calls xirc2ps_release if necessary (like the other drivers)

against 2.5.70-bk.

rgds
-daniel

22 years ago[PATCH] Remove warning due to comparison in drivers/net/pcnet32.c
Zwane Mwaikambo [Thu, 19 Jun 2003 18:29:14 +0000 (14:29 -0400)]
[PATCH] Remove warning due to comparison in drivers/net/pcnet32.c

drivers/net/pcnet32.c: In function `pcnet32_init_ring':
drivers/net/pcnet32.c:1006: warning: comparison between pointer and integer

22 years ago[netdrvr ixgb] fix clash with newly-updated ethtool.h
Adrian Bunk [Thu, 19 Jun 2003 18:22:56 +0000 (14:22 -0400)]
[netdrvr ixgb] fix clash with newly-updated ethtool.h

22 years ago[netdrvr amd8111e] fix spinlock recursion / if close failure
Reeja John [Thu, 19 Jun 2003 18:17:32 +0000 (14:17 -0400)]
[netdrvr amd8111e] fix spinlock recursion / if close failure

22 years ago[PATCH] Remove copied inet_aton code in bond_main.c
Andi Kleen [Thu, 19 Jun 2003 18:09:54 +0000 (14:09 -0400)]
[PATCH] Remove copied inet_aton code in bond_main.c

According to a report the my_inet_aton code in bond_main.c is copied
from 4.4BSD, but it doesn't carry a BSD copyright license. In addition
it is somewhat redundant with the standard in_aton.  Convert it
to use the linux function.

Error handling is a bit worse than before, but not much.

Patch for 2.5 bonding. The 2.4 version has the same problem, but afaik
it is scheduled to be replaced by the 2.5 codebase anyways.

-Andi

22 years ago[IPV6]: Do not use skb_linearize() in ICMP/NDISC handling.
David S. Miller [Thu, 19 Jun 2003 12:42:23 +0000 (05:42 -0700)]
[IPV6]: Do not use skb_linearize() in ICMP/NDISC handling.

22 years ago[IPV4]: Do not use skb_linearize() in ARP handling.
David S. Miller [Thu, 19 Jun 2003 12:36:15 +0000 (05:36 -0700)]
[IPV4]: Do not use skb_linearize() in ARP handling.

22 years ago[NET]: More error checking in flow cache init function.
Herbert Xu [Thu, 19 Jun 2003 11:50:27 +0000 (04:50 -0700)]
[NET]: More error checking in flow cache init function.

22 years ago[NET]: Fix ppp_async tty discipline module ref counting.
David S. Miller [Thu, 19 Jun 2003 11:49:31 +0000 (04:49 -0700)]
[NET]: Fix ppp_async tty discipline module ref counting.

22 years ago[SPARC64]: Update defconfig.
David S. Miller [Thu, 19 Jun 2003 11:35:30 +0000 (04:35 -0700)]
[SPARC64]: Update defconfig.

22 years ago[NCPFS]: Use proper size_t printf format specifier in sock.c
David S. Miller [Thu, 19 Jun 2003 11:10:49 +0000 (04:10 -0700)]
[NCPFS]: Use proper size_t printf format specifier in sock.c

22 years ago[TELEPHONY]: Fix 64-bit warnings in ixj.c
David S. Miller [Thu, 19 Jun 2003 10:56:45 +0000 (03:56 -0700)]
[TELEPHONY]: Fix 64-bit warnings in ixj.c
1) Use unsigned long for types holding jiffies.
2) Use size_t for read/write buffer lengths.
3) Use proper printf format string for size_t.

22 years agoMerge groveronline.com:/root/bk/linux-2.5
Andy Grover [Thu, 19 Jun 2003 10:51:53 +0000 (03:51 -0700)]
Merge groveronline.com:/root/bk/linux-2.5
into groveronline.com:/root/bk/linux-acpi

22 years agoACPI: Interpreter update to 20030619
Andy Grover [Thu, 19 Jun 2003 10:41:38 +0000 (03:41 -0700)]
ACPI: Interpreter update to 20030619
- Fix To/FromBCD, eliminating the need for an arch-specific #define
- Do not acquire a semaphore in the S5 shutdown path
- Fix ex_digits_needed for 0 (Takayoshi Kochi)
- Fix sleep/stall code reversal (Andi Kleen)
- Revert a change having to do with control method calling semantics

22 years ago[IRDA]: Fix 64-bit warnings.
David S. Miller [Thu, 19 Jun 2003 10:29:32 +0000 (03:29 -0700)]
[IRDA]: Fix 64-bit warnings.
1) Use proper size_t printf format specifier
2) Cast pointers properly when passing them to hashfind
3) Print pointers using proper printf format specifier
   instead of using ugly casts.

22 years ago[NET]: Use proper size_t printf format specifier in sundance.c
David S. Miller [Thu, 19 Jun 2003 10:11:41 +0000 (03:11 -0700)]
[NET]: Use proper size_t printf format specifier in sundance.c

22 years ago[NET]: Don't compare a dma_addr_t with NULL in pcnet32.c
David S. Miller [Thu, 19 Jun 2003 10:09:02 +0000 (03:09 -0700)]
[NET]: Don't compare a dma_addr_t with NULL in pcnet32.c

22 years ago[AACRAID]: Fix 64-bit warnings/errors.
David S. Miller [Thu, 19 Jun 2003 10:07:10 +0000 (03:07 -0700)]
[AACRAID]: Fix 64-bit warnings/errors.
1) Do not pass NULL into cpu_to_le32(), use plain zero.
2) When storing DMA addresses to SCp.ptr, cast to ulong.

22 years ago[SOUND]: Fix 64-bit warnings in korg1212 driver.
David S. Miller [Thu, 19 Jun 2003 10:02:28 +0000 (03:02 -0700)]
[SOUND]: Fix 64-bit warnings in korg1212 driver.
1) Use proper size_t printf format specifier.
2) Eliminate non-portable struct pointer casts
   used to calculate DMA structure offsets.

22 years ago[PROC]: Printf field widths must be of type int, fix this in task_mmu.c.
David S. Miller [Thu, 19 Jun 2003 09:57:51 +0000 (02:57 -0700)]
[PROC]: Printf field widths must be of type int, fix this in task_mmu.c.

22 years ago[INITRAMFS]: Use correct size_t printf format in gen_init_cpio.c
David S. Miller [Thu, 19 Jun 2003 09:54:53 +0000 (02:54 -0700)]
[INITRAMFS]: Use correct size_t printf format in gen_init_cpio.c

22 years ago[KCONFIG]: Fix pointer cast from int in mconf.c
David S. Miller [Thu, 19 Jun 2003 09:51:23 +0000 (02:51 -0700)]
[KCONFIG]: Fix pointer cast from int in mconf.c