]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] make private profile state static
William Lee Irwin III [Fri, 27 Aug 2004 03:31:54 +0000 (20:31 -0700)]
[PATCH] make private profile state static

Make the various bits of state no longer used anywhere else static to
kernel/profile.c

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] move profile_operations
William Lee Irwin III [Fri, 27 Aug 2004 03:31:44 +0000 (20:31 -0700)]
[PATCH] move profile_operations

proc_misc.c is a trainwreck.  Move the file_operations for /proc/profile into
kernel/profile.c and call the profiling setup via initcall.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] consolidate hit count increments in profile_tick()
William Lee Irwin III [Fri, 27 Aug 2004 03:31:33 +0000 (20:31 -0700)]
[PATCH] consolidate hit count increments in profile_tick()

With prof_cpu_mask and profile_pc() in hand, the core is now able to perform
all the profile accounting work on behalf of arches.  Consolidate the profile
accounting and convert all arches to call the core function.

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] introduce profile_pc()
William Lee Irwin III [Fri, 27 Aug 2004 03:31:20 +0000 (20:31 -0700)]
[PATCH] introduce profile_pc()

The program counter calculation from pt_regs is the only portion of profile
accounting that differs across various architectures.  This is usually
instruction_pointer(regs), but to handle the few arches where it isn't,
introduce profile_pc().

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] consolidate prof_cpu_mask
William Lee Irwin III [Fri, 27 Aug 2004 03:31:08 +0000 (20:31 -0700)]
[PATCH] consolidate prof_cpu_mask

Handling of prof_cpu_mask is grossly inconsistent.  Some arches have it as a
cpumask_t, others unsigned long, and even within arches it's treated
inconsistently.  This makes it cpumask_t across the board, and consolidates
the handling in kernel/profile.c

Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] schedule profileing
Arjan van de Ven [Fri, 27 Aug 2004 03:30:55 +0000 (20:30 -0700)]
[PATCH] schedule profileing

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

The patch (from Ingo) below is quite interesting, it allows the use of
readprofile not for statistical tine sampling, but for seeing where calls to
schedule() come from, so it can give some insight to the "where do my context
switches come from" question.

Boot with `profile=schedul2' to activate this feature.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Hotplug CPU vs TASK_ZOMBIEs: The Sequel to Hotplug CPU vs TASK_DEAD
Rusty Russell [Fri, 27 Aug 2004 03:30:43 +0000 (20:30 -0700)]
[PATCH] Hotplug CPU vs TASK_ZOMBIEs: The Sequel to Hotplug CPU vs TASK_DEAD

release_task can sleep.  Sleeping allows a CPU to go down underneath you.
release_task removes you from the tasklist, so you don't get migrated off the
CPU: BUG() in sched.c.

In last week's episode, our dashing hero (Ingo Molnar) solved this for
self-reaping tasks by grabbing the hotplug cpu lock to prevent this.
However, in an unexpected twist, the problem remains for tasks whose
parents call release_task on them: the zombies are off the task list, and
lurk on the dead CPU.

Fortunately, the comedic sidekick (Rusty Russell) has an answer: let's make
the hotplug callback walk the runqueue of the dead CPU as well, taking care
of the zombies.

1) Restore exit.c to its former form.  The comment is incorrect: sched.c
   checks PF_DEAD, not the state, to decide to do the final
   put_task_struct(), and it does it for all tasks, self-reaping or no.

2) Implement migrate_dead_tasks() in the sched.c hotplug CPU callback.

3) Rename migrate_all_tasks() to migrate_live_tasks().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix CPU Hotplug: neaten migrate_all_tasks.
Rusty Russell [Fri, 27 Aug 2004 03:30:32 +0000 (20:30 -0700)]
[PATCH] Fix CPU Hotplug: neaten migrate_all_tasks.

A followup patch wants to do forced migration, so separate that part of the
code out of migrate_all_tasks().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] md: fix problems with checksum handling in MD superblocks.
Neil Brown [Fri, 27 Aug 2004 03:30:20 +0000 (20:30 -0700)]
[PATCH] md: fix problems with checksum handling in MD superblocks.

md currently uses csum_partial to calculate checksums for superblocks.
However this function is not consistent across all architectures.  Some
(i386) to a 32bit csum.  Some (alpha) do a 16 bit csum.  This makes it hard
for userspace to keep up.

So we provide a generic routine (that does exactly what the i386
csum_partial does) and:

- When setting the csum, use csum_partial so that old kernels will still
  recognise the superblock

- When checking the csum, allow either csum_partial or the new generic
  code to provide the right csum.  This allows user-space to just use the
  common code and always work.

Also modify the csum for version-1 superblock (which currently aren't being
used) to always user a predictable checksum algorithm.

Thanks to Mike Tran <mhtran@us.ibm.com> for noticing this.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix sysrq support in sn_console.c
Jesse Barnes [Fri, 27 Aug 2004 03:30:08 +0000 (20:30 -0700)]
[PATCH] fix sysrq support in sn_console.c

In porting the sn_console driver to the serial core, we lost sysrq support.
 This patch fixes it and removes a few unncessary #ifdefs.  Can you please
send it on to Linus asap?  sysrq is a *really* nice thing to have.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix show_mem on discontig machines
Jesse Barnes [Fri, 27 Aug 2004 03:29:57 +0000 (20:29 -0700)]
[PATCH] fix show_mem on discontig machines

Dave Hansen recently did some bootmem and paging init cleanups, but I
missed this little bit when I tested his original patches.  We need to
initialize pgdat->node_mem_map correctly since a) we're using vmem_map, and
b) the core won't do it for us since we have a valid node_start_pfn I
believe.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Use fixed size buffer instead of kmalloc for m_class in ip_map
Neil Brown [Fri, 27 Aug 2004 03:29:45 +0000 (20:29 -0700)]
[PATCH] Use fixed size buffer instead of kmalloc for m_class in ip_map

This avoids lots of bothersome memory management and is generally
cleaner.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Thu, 26 Aug 2004 15:45:52 +0000 (08:45 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/net-2.6
David S. Miller [Thu, 26 Aug 2004 22:17:25 +0000 (15:17 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Thu, 26 Aug 2004 21:58:00 +0000 (14:58 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

22 years ago[SPARC64]: Speed up ffb font rendering.
David S. Miller [Thu, 26 Aug 2004 14:23:36 +0000 (07:23 -0700)]
[SPARC64]: Speed up ffb font rendering.

Render left to right instead of top to bottom.
This shaved a whole second off the:
time cat MAINTAINERS
benchmark.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC64]: Fix copyarea bug and set default flags in ffb driver.
David S. Miller [Thu, 26 Aug 2004 10:53:38 +0000 (03:53 -0700)]
[SPARC64]: Fix copyarea bug and set default flags in ffb driver.

- copyarea checking of src/dst y being equal was buggy.
- set optimal FBINFO flags for this device.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC64]: Sign extend correct args of sys_syslog().
David S. Miller [Thu, 26 Aug 2004 10:51:19 +0000 (03:51 -0700)]
[SPARC64]: Sign extend correct args of sys_syslog().

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
Linus Torvalds [Thu, 26 Aug 2004 10:00:52 +0000 (03:00 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge http://lia64.bkbits.net/linux-ia64-release-2.6.9
Linus Torvalds [Thu, 26 Aug 2004 09:59:41 +0000 (02:59 -0700)]
Merge http://lia64.bkbits.net/linux-ia64-release-2.6.9
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.6
Greg Kroah-Hartman [Thu, 26 Aug 2004 09:29:22 +0000 (02:29 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.6
into kroah.com:/home/greg/linux/BK/usb-2.6

22 years agokbuild: use *.lds infrastructure in arch/i386/kernel
Sam Ravnborg [Thu, 26 Aug 2004 23:20:43 +0000 (01:20 +0200)]
kbuild: use *.lds infrastructure in arch/i386/kernel

Rusty decided to preprocess a *.lds.S file in parallele with the new *.lds infrastructure
being added to kbuild. Fix that up.
Also added the file to targets so we do not see recompile each time the kernel is build.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
22 years agokbuild: Fix make O=
Sam Ravnborg [Thu, 26 Aug 2004 23:13:39 +0000 (01:13 +0200)]
kbuild: Fix make O=

A bug that slipped through when introducing Makefile.host.
A good way to check if people actually uses make O= ;-)

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
22 years ago[PATCH] USB: gadgetfs minor updates
David Brownell [Thu, 26 Aug 2004 09:04:56 +0000 (02:04 -0700)]
[PATCH] USB: gadgetfs minor updates

Gadgetfs updates:

 - Resolve a problem that came from a change in the API to AIO:
   kiocb->private type and size changed, but the name remained
   the same ... so GCC wouldn't report pending memory-corruption.

 - Probe the controller at runtime, eliminatingting config-specific
   defines which need to be updated for each new controller.  Rip
   out the old #defines.

 - Use newish APIs to let VBUS current be used to recharge
   batteries (or whatever).

 - Use no_llseek() ... endpoints are pure data streams.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] USB: cdc acm patch
Oliver Neukum [Thu, 26 Aug 2004 08:56:59 +0000 (01:56 -0700)]
[PATCH] USB: cdc acm patch

Fix tty layer sleep/locking problem (again) ... when this is
called through the network stack (PPP) sleeping isn't allowed.
There's some bugtraq ID for this.

From: Oliver Neukum <oliver@neukum.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[SUNSAB]: Remove CRTSCTS handling in set_termios.
David S. Miller [Thu, 26 Aug 2004 08:39:07 +0000 (01:39 -0700)]
[SUNSAB]: Remove CRTSCTS handling in set_termios.

Higher layers call set_mctrl if necessary.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Thu, 26 Aug 2004 08:35:31 +0000 (01:35 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ARM] signal handling fixes
Russell King [Thu, 26 Aug 2004 23:35:02 +0000 (00:35 +0100)]
[ARM] signal handling fixes

Patch from: Linus Torvalds

Update ARM signal handling for Andrew's series of fixes.

22 years ago[SPARC64]: Fix some tabbing in xor.S
David S. Miller [Thu, 26 Aug 2004 07:37:42 +0000 (00:37 -0700)]
[SPARC64]: Fix some tabbing in xor.S

22 years ago[SPARC64]: Add .type and .size directives to some asm files.
David S. Miller [Thu, 26 Aug 2004 07:34:43 +0000 (00:34 -0700)]
[SPARC64]: Add .type and .size directives to some asm files.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[TCP]: Automatically compute tcp_default_win_scale.
Stephen Hemminger [Thu, 26 Aug 2004 06:56:08 +0000 (23:56 -0700)]
[TCP]: Automatically compute tcp_default_win_scale.

This patch gets rid of the tcp_default_win_scale sysctl and instead
computes the optimum maximum window scale.  It just means one less
thing to have to tune.  I also moved the code out of the inline because
it gets called three places and isn't in the critical path.

As a side effect, it will cause a smaller window scale for many people
since the default tcp_rmem fits in a win_scale of 2.  This is allows for
finer grain windows (good), but may mask some of the problems with bad
implementations we have already seen (bad).

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[NETFILTER]: Fix pointer deref'ing in ip6t_LOG.c
Olaf Kirch [Thu, 26 Aug 2004 06:54:11 +0000 (23:54 -0700)]
[NETFILTER]: Fix pointer deref'ing in ip6t_LOG.c

Signed-off-by: Olaf Kirch <okir@suse.de>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoMerge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
David S. Miller [Thu, 26 Aug 2004 06:01:15 +0000 (23:01 -0700)]
Merge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6

22 years ago[PATCH] ppc32: Improve workaround for 74xx CPUs with broken BTIC
Benjamin Herrenschmidt [Thu, 26 Aug 2004 01:25:47 +0000 (18:25 -0700)]
[PATCH] ppc32: Improve workaround for 74xx CPUs with broken BTIC

The previous workaround didn't enable the BTIC bit on CPUs where it is
broken.  However, it seems some firmwares will unconditionally set it,
so this new patch will actually _clear_ it on CPUs where it is broken.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: properly export some pcibios_* functions
Benjamin Herrenschmidt [Thu, 26 Aug 2004 01:25:36 +0000 (18:25 -0700)]
[PATCH] ppc32: properly export some pcibios_* functions

Recent yenta_socket (and maybe others) rely on some pcibios_* functions
to be available to modules.  This exports them.

22 years ago[PATCH] ppc32: PowerMac trackpad problems
Benjamin Herrenschmidt [Thu, 26 Aug 2004 01:25:26 +0000 (18:25 -0700)]
[PATCH] ppc32: PowerMac trackpad problems

The trackpad on recent Apple laptops tend to emmit spurrious 'right
clicks' apparently.  This patch from Alex Clausen fixes it, please
apply.  The trackpad cannot normally emit a right click, so just filter
those out.

Signed-off-by: Alexander Clausen <alex@skip86.com>
Signed-off-by: Michael Schmitz <schmitz@opal.biophys.uni-duesseldorf.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] preprocessor mess in msnd
Alexander Viro [Thu, 26 Aug 2004 01:14:42 +0000 (18:14 -0700)]
[PATCH] preprocessor mess in msnd

msnd #defined outb to outb_p, which wasn't a good idea on platforms
that had outb_p #defined to outb ;-)

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] check_region() removal in waveartist
Alexander Viro [Thu, 26 Aug 2004 01:14:30 +0000 (18:14 -0700)]
[PATCH] check_region() removal in waveartist

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] more size_t portability fixes
Alexander Viro [Thu, 26 Aug 2004 01:14:18 +0000 (18:14 -0700)]
[PATCH] more size_t portability fixes

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] signed char fixes in qd65xx
Alexander Viro [Thu, 26 Aug 2004 01:14:06 +0000 (18:14 -0700)]
[PATCH] signed char fixes in qd65xx

qd65xx assumed that char is always signed

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] any2_scsi() cleaned up
Alexander Viro [Thu, 26 Aug 2004 01:13:55 +0000 (18:13 -0700)]
[PATCH] any2_scsi() cleaned up

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] check_region() removal in fdomain.c
Alexander Viro [Thu, 26 Aug 2004 01:13:43 +0000 (18:13 -0700)]
[PATCH] check_region() removal in fdomain.c

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] check_region() removal in tc/zs.c
Alexander Viro [Thu, 26 Aug 2004 01:13:31 +0000 (18:13 -0700)]
[PATCH] check_region() removal in tc/zs.c

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] bad names of local-in-macros in arm io.h
Alexander Viro [Thu, 26 Aug 2004 01:13:20 +0000 (18:13 -0700)]
[PATCH] bad names of local-in-macros in arm io.h

"v" and "r" are not good names for variables local in macro...

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] missing include of config.h in asm-alpha/page.h
Alexander Viro [Thu, 26 Aug 2004 01:13:08 +0000 (18:13 -0700)]
[PATCH] missing include of config.h in asm-alpha/page.h

That was a nasty one - missing include of config.h in a file that has
non-trivial ifdefs.  With some configs it ended up with very odd conflicts
(we get included early, take the wrong branch of ifdef, then get another
file included, it pulls in config.h and picks the right branch of its
ifdef; surprise, surprise, they conflict).

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] missing export of memchr on arm
Alexander Viro [Thu, 26 Aug 2004 01:12:57 +0000 (18:12 -0700)]
[PATCH] missing export of memchr on arm

arm forgot to export memchr(); everybody else does export it and it's used
in modules.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] NULL noise removal
Alexander Viro [Thu, 26 Aug 2004 01:12:45 +0000 (18:12 -0700)]
[PATCH] NULL noise removal

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mpoa warning fix
Alexander Viro [Thu, 26 Aug 2004 01:12:33 +0000 (18:12 -0700)]
[PATCH] mpoa warning fix

Forgot to switch return type from ssize_t to int when switching to seq_file

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Wed, 25 Aug 2004 23:17:34 +0000 (16:17 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

22 years agoUSB: rip out the whole pwc driver as the author wishes to have done.
Greg Kroah-Hartman [Wed, 25 Aug 2004 17:15:24 +0000 (10:15 -0700)]
USB: rip out the whole pwc driver as the author wishes to have done.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[SPARC64]: Fix direct f_pos fiddling in openpromfs.
David S. Miller [Wed, 25 Aug 2004 16:53:13 +0000 (09:53 -0700)]
[SPARC64]: Fix direct f_pos fiddling in openpromfs.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC64]: Hack fix, force DTR/RTS on in sunsab console.
David S. Miller [Wed, 25 Aug 2004 16:17:26 +0000 (09:17 -0700)]
[SPARC64]: Hack fix, force DTR/RTS on in sunsab console.

22 years ago[SPARC64]: Use force_{sig,sigsegv}() in sparc signal handling.
David S. Miller [Wed, 25 Aug 2004 15:52:34 +0000 (08:52 -0700)]
[SPARC64]: Use force_{sig,sigsegv}() in sparc signal handling.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoRevert I2C keywest class fixup
Linus Torvalds [Wed, 25 Aug 2004 14:31:10 +0000 (07:31 -0700)]
Revert I2C keywest class fixup

Benh says: "Please revert that for now, I need to figure out what they
were exactly trying to do and will come up with something if it makes
sense but the patch as-is doesn't"

Cset exclude: khali@linux-fr.org|ChangeSet|20040825202122|07524

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/net-2.6
David S. Miller [Wed, 25 Aug 2004 20:33:37 +0000 (13:33 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

22 years ago[SPARC64]: Update defconfig.
David S. Miller [Wed, 25 Aug 2004 14:28:31 +0000 (07:28 -0700)]
[SPARC64]: Update defconfig.

22 years agoMerge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
David S. Miller [Wed, 25 Aug 2004 14:20:57 +0000 (07:20 -0700)]
Merge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6

22 years ago[NETFILTER]: Fix ip_nat_find_helper() locking.
Harald Welte [Wed, 25 Aug 2004 13:20:04 +0000 (06:20 -0700)]
[NETFILTER]: Fix ip_nat_find_helper() locking.

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] signal-race-fix: ia64
David Mosberger [Wed, 25 Aug 2004 11:06:16 +0000 (04:06 -0700)]
[PATCH] signal-race-fix: ia64

It looks fine to me, except that I decided to play chicken as far as the
give_sigsegv update of sa_handler is concerned.

Arun, I hope I got the ia32 emulation parts right, but you may want to
double-check.

The patch seems to work fine as far as I have tested.  I'm seeing some
oddity in context-switch overhead and pipe latency as reported by LMbench,
but I suspect that's due to another change that happened somewhere between
2.6.5-rc1 and Linus' bk tree as of this morning.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] alpha signal race fixes
William Lee Irwin III [Wed, 25 Aug 2004 11:02:05 +0000 (04:02 -0700)]
[PATCH] alpha signal race fixes

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: signal race fix
Paul Mackerras [Wed, 25 Aug 2004 11:01:53 +0000 (04:01 -0700)]
[PATCH] ppc64: signal race fix

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] signal handling race fixes: sparc and sparc64
David S. Miller [Wed, 25 Aug 2004 11:01:41 +0000 (04:01 -0700)]
[PATCH] signal handling race fixes: sparc and sparc64

Ok, here are the sparc64 and sparc32 versions.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] signal-race-fixes: x86-64 support
Andi Kleen [Wed, 25 Aug 2004 11:01:29 +0000 (04:01 -0700)]
[PATCH] signal-race-fixes: x86-64 support

  Add the signal race changes to x86-64 to make it compile again.

  Didn't merge the more pointless changes from i386.

  Also remove the special SA_ONESHOT handling, doesn't seem to be needed
  anymore.

From: Mikael Pettersson <mikpe@csd.uu.se>

  The signal-race-fixes patch in 2.6.8-rc2-mm1 appears to have broken
  x86-64's ia32 emulation.

  When forcing a SIGSEGV the old code updated "*ka", where ka was a pointer
  to current's k_sigaction for SIGSEGV.  Now "ka_copy" points to a copy of
  that structure, so assigning "*ka_copy" doesn't do what we want.  Instead do
  the assignment via current->...  just like the normal signal delivery code
  does.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc signal handling fixes
Mikael Pettersson [Wed, 25 Aug 2004 11:01:20 +0000 (04:01 -0700)]
[PATCH] ppc signal handling fixes

2.6.8-rc2-mm1 reintroduced the signal-race-fixes patch for i386, x86_64,
s390, and ia64, breaking all other archs.

The patch below updates ppc, following the pattern of i386.  Compiled &
runtime tested.  No observable breakage.

Signed-off-by: Mikael Pettersson <mikpe@csd.uu.se>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] signal-race fixes for s390
Martin Schwidefsky [Wed, 25 Aug 2004 11:01:08 +0000 (04:01 -0700)]
[PATCH] signal-race fixes for s390

  Update s30 for the signal race fix

From: Mikael Pettersson <mikpe@csd.uu.se>

  The signal-race-fixes patch in 2.6.8-rc2-mm1 appears to be a bit broken on
  s390.

  When forcing a SIGSEGV the old code updated "*ka", where ka was a pointer
  to current's k_sigaction for SIGSEGV.  Now "ka_copy" points to a copy of
  that structure, so assigning "*ka_copy" doesn't do what we want.  Instead do
  the assignment via current->...  just like i386 and x86_64 do.

  Furthermore, the SA_ONESHOT handling wasn't deleted.  That is now handled
  by generic code in the kernel.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] signal handling race fix
Corey Minyard [Wed, 25 Aug 2004 11:00:58 +0000 (04:00 -0700)]
[PATCH] signal handling race fix

The problem:

  In arch/i386/signal.c, in the do_signal() function, it calls
  get_signal_to_deliver() which returns the signal number to deliver (along
  with siginfo).  get_signal_to_deliver() grabs and releases the lock, so
  the signal handler lock is not held in do_signal().  Then the do_signal()
  calls handle_signal(), which uses the signal number to extract the
  sa_handler, etc.

  Since no lock is held, it seems like another thread with the same
  signal handler set can come in and call sigaction(), it can change
  sa_handler between the call to get_signal_to_deliver() and fetching the
  value of sa_handler.  If the sigaction() call set it to SIG_IGN, SIG_DFL,
  or some other fundamental change, that bad things can happen.

The patch:

  You have to get the sigaction information that will be delivered while
  holding sighand->siglock in get_signal_to_deliver().

  In 2.4, it can be fixed per-arch and requires no change to the
  arch-independent code because the arch fetches the signal with
  dequeue_signal() and does all the checking.

The test app:

  The program below has three threads that share signal handlers.  Thread
  1 changes the signal handler for a signal from a handler to SIG_IGN and
  back.  Thread 0 sends signals to thread 3, which just receives them.
  What I believe is happening is that thread 1 changes the signal handler
  in the process of thread 3 receiving the signal, between the time that
  thread 3 fetches the signal info using get_signal_to_deliver() and
  actually delivers the signal with handle_signal().

  Although the program is obvously an extreme case, it seems like any
  time you set the handler value of a signal to SIG_IGN or SIG_DFL, you can
  have this happen.  Changing signal attributes might also cause problems,
  although I am not so sure about that.

  (akpm: this test app segv'd on SMP within milliseconds for me)

#include <signal.h>
#include <stdio.h>
#include <sched.h>

char stack1[16384];
char stack2[16384];

void sighnd(int sig)
{
}

int child1(void *data)
{
struct sigaction act;

sigemptyset(&act.sa_mask);
act.sa_flags = 0;
for (;;) {
act.sa_handler = sighnd;
sigaction(45, &act, NULL);
act.sa_handler = SIG_IGN;
sigaction(45, &act, NULL);
}
}

int child2(void *data)
{
for (;;) {
sleep(100);
}
}

int main(int argc, char *argv[])
{
int pid1, pid2;

signal(45, SIG_IGN);
pid2 = clone(child2, stack2 + sizeof(stack2) - 8,
CLONE_SIGHAND | CLONE_VM, NULL);
pid1 = clone(child1, stack1 + sizeof(stack2) - 8,
CLONE_SIGHAND | CLONE_VM, NULL);

for (;;) {
kill(pid2, 45);
}
}

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge common signal handling fault handling in generic code.
Linus Torvalds [Wed, 25 Aug 2004 10:37:34 +0000 (03:37 -0700)]
Merge common signal handling fault handling in generic code.

22 years agovt: don't bother doing UTF translation in control states.
Linus Torvalds [Wed, 25 Aug 2004 10:28:57 +0000 (03:28 -0700)]
vt: don't bother doing UTF translation in control states.

And don't accept UTF translations as the start of a control
state either.

22 years ago[BRIDGE]: Fix oops when mangling and brouting and tcpdumping packets
Stephen Hemminger [Wed, 25 Aug 2004 09:35:34 +0000 (02:35 -0700)]
[BRIDGE]: Fix oops when mangling and brouting and tcpdumping packets

The ebtables brouting chain, traversed through the call
br_should_route_hook(), can alter a packet. The redirect target
does this, f.e., to change the MAC destination.

Bart discovered this and proposed a patch; this is a revised version.
This version cleans up the handle_bridge code in net/core/dev.c as well
as getting rid of extra rcu_read_lock and only does the br_port checking
once.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] mda dependency
Alexander Viro [Wed, 25 Aug 2004 09:11:20 +0000 (02:11 -0700)]
[PATCH] mda dependency

MDA is ISA-only ;-)

22 years ago[PATCH] usb alignment fixes
Alexander Viro [Wed, 25 Aug 2004 09:11:09 +0000 (02:11 -0700)]
[PATCH] usb alignment fixes

Several places did le16_to_cpup() on misaligned address, which blows on
any little-endian platform that doesn't like misaligned reads.

22 years ago[PATCH] warning fix in usb/gadget/inode.c
Alexander Viro [Wed, 25 Aug 2004 09:10:57 +0000 (02:10 -0700)]
[PATCH] warning fix in usb/gadget/inode.c

wrong type of return value.

22 years ago[PATCH] signed char bugs in ixj
Alexander Viro [Wed, 25 Aug 2004 09:10:46 +0000 (02:10 -0700)]
[PATCH] signed char bugs in ixj

Fixed assumption that char is always unsigned

22 years ago[PATCH] killed check_region() in ixj
Alexander Viro [Wed, 25 Aug 2004 09:10:34 +0000 (02:10 -0700)]
[PATCH] killed check_region() in ixj

Killed check_region(), fixed an old bug in ISA case (we checked the wrong
region before claiming the right one - dumb typo back in 2.4.early)

22 years ago[PATCH] annotation of xfs sendfile
Alexander Viro [Wed, 25 Aug 2004 09:10:22 +0000 (02:10 -0700)]
[PATCH] annotation of xfs sendfile

->sendfile() takes kernel pointer, not userland one.

22 years ago[PATCH] annotation of ki_buf
Alexander Viro [Wed, 25 Aug 2004 09:10:10 +0000 (02:10 -0700)]
[PATCH] annotation of ki_buf

->ki_buf is always a userland pointer.

22 years ago[PATCH] removed bogus casts of SPIN_LOCK_UNLOCKED
Alexander Viro [Wed, 25 Aug 2004 09:09:58 +0000 (02:09 -0700)]
[PATCH] removed bogus casts of SPIN_LOCK_UNLOCKED

22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Wed, 25 Aug 2004 08:58:31 +0000 (01:58 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/driver-2.6
Linus Torvalds [Wed, 25 Aug 2004 08:52:57 +0000 (01:52 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/driver-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
Linus Torvalds [Wed, 25 Aug 2004 08:50:08 +0000 (01:50 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Wed, 25 Aug 2004 08:47:07 +0000 (01:47 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ADFS] Fix sparse signed bitfield warning
Russell King [Wed, 25 Aug 2004 23:38:53 +0000 (00:38 +0100)]
[ADFS] Fix sparse signed bitfield warning

22 years ago[ARM] Fix some sparse complaints:
Russell King [Wed, 25 Aug 2004 21:13:02 +0000 (22:13 +0100)]
[ARM] Fix some sparse complaints:

Pointers are NULL not 0.
Remove obviously unnecessary iBCS2 shm stuff... we're ARM after all.

22 years ago[ARM PATCH] 2040/1: Increase ARM HARDIRQ_BITS to 9, version 2
Tony Lindgren [Wed, 25 Aug 2004 18:43:04 +0000 (19:43 +0100)]
[ARM PATCH] 2040/1: Increase ARM HARDIRQ_BITS to 9, version 2

Patch from Tony Lindgren

This is an updated version of patch 2004/1 to optimize for immediate constant

22 years ago[ARM PATCH] 2047/1: disable NWFPE_XP on big endian
Lennert Buytenhek [Wed, 25 Aug 2004 18:39:16 +0000 (19:39 +0100)]
[ARM PATCH] 2047/1: disable NWFPE_XP on big endian

Patch from Lennert Buytenhek

Hi,

gcc doesn't understand 80-bit floating point on the ARM currently,
according to the kernel's Kconfig docs, but it would seem that the
current extended double emulation code is broken for big endian
platforms.

So, this patch disables NWFPE_XP on big endian architectures, until
someone comes round and fixes it.

cheers,
Lennert

22 years ago[ARM PATCH] 2046/1: fix nwfpe for double arithmetic on big-endian platforms
Lennert Buytenhek [Wed, 25 Aug 2004 18:35:00 +0000 (19:35 +0100)]
[ARM PATCH] 2046/1: fix nwfpe for double arithmetic on big-endian platforms

Patch from Lennert Buytenhek

Hi,

I need the patch below (against 2.6.8-rc1-ds1) to make nwfpe properly
emulate arithmetic with doubles on a big endian ARM platform.

From reading the mailing list archives and from helpful comments I've
received from people on this list, I gather that this has come up in
the past, but it appears that Russell King was never really convinced
as to why this patch is needed.  I think I understand what's going on,
and will try to explain.

On little endian ARM, the double value 1.0 looks like this when stored
in memory in FPA word ordering:
bytes: 0x00 0x00 0xf0 0x3f 0x00 0x00 0x00 0x00
u32s:  0x3ff00000 0x00000000
u64:   0x000000003ff00000

On big endian, it looks like this:
bytes: 0x3f 0xf0 0x00 0x00 0x00 0x00 0x00 0x00
u32s:  0x3ff00000 0x00000000
u64:   0x3ff0000000000000

It appears to be this way because once upon a time, somebody decided
that the sub-words of a double will use native endian word ordering
within themselves, but the two separate words will always be stored
with the most significant one first.  God knows why they did it this
way, but they did.

Anyway.  The key observation is that nwfpe internally stores double
values in the type 'float64', which is basically just a typedef for
unsigned long long.  It never accesses 'float64's on the byte level
by casting pointers around or anything like that, it just uses direct
u64 arithmetic primitives (add, shift, or, and) for float64
manipulations and that's it.

So.  For little endian platforms, 1.0 looks like:
0x00 0x00 0xf0 0x3f 0x00 0x00 0x00 0x00
But since nwfpe treats it as a u64, it wants it to look like:
0x00 0x00 0x00 0x00 0x00 0x00 0xf0 0x3f
So, that's why the current code swaps the words around when getting
doubles from userspace and putting them back (see fpa11_cpdt.c,
loadDouble and storeDouble.)

On big endian, 1.0 looks like:
0x3f 0xf0 0x00 0x00 0x00 0x00 0x00 0x00
Since nwfpe treats it as a u64, it wants it to look like:
0x3f 0xf0 0x00 0x00 0x00 0x00 0x00 0x00
Hey!  That's exactly the same.  So in this case, it shouldn't be
swapping the halves around.  However, it currently does that swapping
unconditionally, and that's why floating point emulation messes up.

This is how I understand things -- hope it makes sense to other people
too.

cheers,
Lennert

22 years ago[ARM PATCH] 2044/1: S3C2410 - missing IRQ_TICK from RTC resources
Ben Dooks [Wed, 25 Aug 2004 18:18:55 +0000 (19:18 +0100)]
[ARM PATCH] 2044/1: S3C2410 - missing IRQ_TICK from RTC resources

Patch from Ben Dooks

Fixes missing IRQ_TICK from RTC resources

22 years ago[ARM PATCH] 2043/1: S3C2410 update to registered devices
Ben Dooks [Wed, 25 Aug 2004 18:14:27 +0000 (19:14 +0100)]
[ARM PATCH] 2043/1: S3C2410 update to registered devices

Patch from Ben Dooks

Updated all arch/arm/mach-s3c2410/mach-XXX.c files to
register default set of devices

Added new board struct to keep this sort of info, as it
isn't possible to register platform_devices until after
the init_io functions have been called.

22 years ago[ARM PATCH] 2042/1: S3C2410 - Clock fixes, added watchdog clock
Ben Dooks [Wed, 25 Aug 2004 18:09:50 +0000 (19:09 +0100)]
[ARM PATCH] 2042/1: S3C2410 - Clock fixes, added watchdog clock

Patch from Ben Dooks

Added clock definition for watchdog, and fixed it so
that clocks that cannot be enabled/disabled will be
left alone.

Fixed typo in naming of clocks when registering

22 years ago[ARM] Move DMA mask-based bounce detection to dmabounce code.
Russell King [Wed, 25 Aug 2004 15:29:22 +0000 (16:29 +0100)]
[ARM] Move DMA mask-based bounce detection to dmabounce code.

22 years ago[ARM] Correct dma_to_virt()/virt_to_dma() return types.
Russell King [Wed, 25 Aug 2004 14:59:55 +0000 (15:59 +0100)]
[ARM] Correct dma_to_virt()/virt_to_dma() return types.

22 years ago[PATCH] PCI Hotplug: create pci_remove_bus()
John Rose [Wed, 25 Aug 2004 06:23:54 +0000 (23:23 -0700)]
[PATCH] PCI Hotplug: create pci_remove_bus()

The following patch implements a pci_remove_bus() that can be used by
hotplug drivers for the removal of root buses.  It also defines a
release function that frees the device struct for pci_bus->bridge when a
root bus class device is unregistered.

Signed-off-by: John Rose <johnrose@austin.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] pci-driver: function documentation fix
François Romieu [Wed, 25 Aug 2004 06:23:15 +0000 (23:23 -0700)]
[PATCH] pci-driver: function documentation fix

The returned value can not be null. Yet its description suggests differently.

From: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] I2C: update kernel credits/maintainers
Jean Delvare [Wed, 25 Aug 2004 06:22:38 +0000 (23:22 -0700)]
[PATCH] I2C: update kernel credits/maintainers

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] I2C: rename in0_ref to cpu0_vid
Jean Delvare [Wed, 25 Aug 2004 06:21:59 +0000 (23:21 -0700)]
[PATCH] I2C: rename in0_ref to cpu0_vid

This patch changes all the i2c chip drivers and documentation to use the
name "cpu0_vid" instead of "in0_ref". The name "in0_ref" was an error in
the first place as motherboard manufacturers may fail to follow the chip
manufacturer's recommendation about which "in" channel to use for VCore
monitoring.

The new name leaves room for chips able to monitor more than 1 vid
value, such as the LM93 and, to a lesser extent, the PC87360 family (all
by National Semiconductor). These chips are typically designed for
dual-CPU motherboards.

This breaks the interface (obviously) so libsensors has been updated to
support both names.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] I2C: keywest class
Jean Delvare [Wed, 25 Aug 2004 06:21:22 +0000 (23:21 -0700)]
[PATCH] I2C: keywest class

This is needed for iBook2 owners to be able to use their ADM1030
hardware monitoring chip. Successfully tested by one user.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.6
Greg Kroah-Hartman [Wed, 25 Aug 2004 05:45:48 +0000 (22:45 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.6
into kroah.com:/home/greg/linux/BK/driver-2.6

22 years agoMerge bk://linux-dj.bkbits.net/cpufreq
Linus Torvalds [Wed, 25 Aug 2004 05:43:29 +0000 (22:43 -0700)]
Merge bk://linux-dj.bkbits.net/cpufreq
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agokobject: convert struct kobject use kref.
Greg Kroah-Hartman [Wed, 25 Aug 2004 05:30:41 +0000 (22:30 -0700)]
kobject: convert struct kobject use kref.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] USB: Add missing cleanup to usb_register_root_hub()
Alan Stern [Wed, 25 Aug 2004 03:48:14 +0000 (20:48 -0700)]
[PATCH] USB: Add missing cleanup to usb_register_root_hub()

This patch adds some simple cleanups that are missing for one of the error
case in usb_register_root_hub().  I would be very surprised if this code
ever gets executed, but we might as well be correct.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>