]> git.hungrycats.org Git - linux/log
linux
22 years ago[CIFS] xattr support part 3 add query EA support to retrieve individual xattr values
Steve French [Mon, 26 Jul 2004 11:58:23 +0000 (06:58 -0500)]
[CIFS] xattr support part 3 add query EA support to retrieve individual xattr values

Signed-off-by: Steve French (sfrench@us.ibm.com)
22 years agoMerge bk://linux.bkbits.net/linux-2.5
Steve French [Sat, 24 Jul 2004 23:19:35 +0000 (16:19 -0700)]
Merge bk://linux.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/repos/c/cifs/linux-2.5cifs

22 years agoppc64: fix more 0/NULL confusion
Linus Torvalds [Sat, 24 Jul 2004 14:51:58 +0000 (07:51 -0700)]
ppc64: fix more 0/NULL confusion

22 years agoMerge bk://linux.bkbits.net/linux-2.5
Steve French [Sat, 24 Jul 2004 10:09:44 +0000 (03:09 -0700)]
Merge bk://linux.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/repos/c/cifs/linux-2.5cifs

22 years ago[PATCH] ppc64: exception path optimisations
Anton Blanchard [Sat, 24 Jul 2004 02:39:20 +0000 (19:39 -0700)]
[PATCH] ppc64: exception path optimisations

- We were statically predicting syscalls would be 32bit which meant every
  64bit syscall was guaranteed to be mispredicted. Just let the hardware
  predict this one.

- We shouldnt use blrl for indirect function calls, it is unlikely to be
  predicted correctly and corrupts the link prediction stack. We should
  use bctrl instead.

- Statically predict a branch in the system call path, favouring calls from
  userspace.

- Remove static prediction in pagefault path, hardware prediction should do
  a better job here.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix ppc64 max_pfn issue - again
Anton Blanchard [Sat, 24 Jul 2004 02:38:05 +0000 (19:38 -0700)]
[PATCH] Fix ppc64 max_pfn issue - again

It turns out in the non NUMA case, max_low_pfn doesnt get initialised
until init_bootmem so we need to move initialisation of max_pfn below
it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://linux.bkbits.net/linux-2.5
Steve French [Sat, 24 Jul 2004 01:39:01 +0000 (18:39 -0700)]
Merge bk://linux.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/repos/c/cifs/linux-2.5cifs

22 years ago[CIFS] xattr suport part 2: add listxattr support
Steve French [Sat, 24 Jul 2004 04:42:08 +0000 (23:42 -0500)]
[CIFS] xattr suport part 2: add listxattr support

Signed-off-by: Steve French (sfrench@us.ibm.com)
22 years ago[PATCH] Fix ppc64 max_pfn issue
Anton Blanchard [Fri, 23 Jul 2004 15:18:59 +0000 (08:18 -0700)]
[PATCH] Fix ppc64 max_pfn issue

I noticed excessive time in the pid hash functions on a ppc64 box. It
turns out the pid hash is being sized way too small, eg on a 16GB box:

PID hash table entries: 16 (order 4: 256 bytes)

The reason is that the pid hash init function uses max_pfn before it was
setup on ppc64. With the following patch things are good again:

PID hash table entries: 4096 (order 12: 65536 bytes)

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] NX: allow architectures to select legacy mode dynamically
David Mosberger [Fri, 23 Jul 2004 03:26:36 +0000 (20:26 -0700)]
[PATCH] NX: allow architectures to select legacy mode dynamically

On some platforms, you'll want to support READ_IMPLIES_EXEC differently
depending on personality (e.g, native binary vs. x86 binary).

This supports that (and makes the code more readable while at it) by
replacing the old architecture-specific fixed LEGACY_BINARIES macro
define with a architecture-specific "elf_read_implies_exec_binary()"
helper function.

For now, x86 is the only user, and sets the "read implies exec" bit for
legacy apps.  ia64 and x86-64 are likely to want to do their own thing.

Acked by Ingo.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMake "install_page()" able to handle truncated pages.
Linus Torvalds [Thu, 22 Jul 2004 11:38:29 +0000 (04:38 -0700)]
Make "install_page()" able to handle truncated pages.

This makes it much easier on the callers, no need to
worry about races with vmtruncate() and friends, since
"install_page()" will just cleanly handle that case
and tell the caller about it.

22 years ago[PATCH] is_highmem() and WANT_PAGE_VIRTUAL
Andy Whitcroft [Thu, 22 Jul 2004 10:26:50 +0000 (03:26 -0700)]
[PATCH] is_highmem() and WANT_PAGE_VIRTUAL

Add is_highmem_idx() and is_normal_idx() to determine whether
a zone index is a highmem or normal zone.  Use this for
memmap_init_zone().

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] clean up n_tty alloc_buf()
Roman Fietze [Thu, 22 Jul 2004 10:14:12 +0000 (03:14 -0700)]
[PATCH] clean up n_tty alloc_buf()

Don't bother zeroing the allocated memory inside alloc_buf() in the
n_tty line discipline.  alloc_buf() is static inline and is only
referenced by n_tty_open() which always clears the memory (once more).

No bug, just a minor cleanup

22 years ago[PATCH] Asus M2N notebook hides SMBus device
Dominik Brodowski [Thu, 22 Jul 2004 10:14:00 +0000 (03:14 -0700)]
[PATCH] Asus M2N notebook hides SMBus device

Asus also "hides" the LPC bridge on M2N notebooks. Add it to
the asus_hides_smbus PCI quirk.

Fixes bug #2976 @ http://bugme.osdl.org/show_bug.cgi?id=2976

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Missing mnt_namespace update in copy_namespace()
Alexander Viro [Thu, 22 Jul 2004 10:01:38 +0000 (03:01 -0700)]
[PATCH] Missing mnt_namespace update in copy_namespace()

copy_namespace() forgets to switch the new 'mnt_namespace' field in the
vfsmounts of the new namespace.

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Thu, 22 Jul 2004 09:16:05 +0000 (02:16 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[TCP]: Do not overflow 16-bit window field in tcp_select_window().
David S. Miller [Thu, 22 Jul 2004 07:01:38 +0000 (00:01 -0700)]
[TCP]: Do not overflow 16-bit window field in tcp_select_window().

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Fix pkt_cls.h incompatabilities
Stephen Hemminger [Thu, 22 Jul 2004 06:50:59 +0000 (23:50 -0700)]
[PKT_SCHED]: Fix pkt_cls.h incompatabilities

The recent changes to (6 Jul 04) pkt_cls.h are evil, you can't build a version
of 'tc' to work unless you know the kernel config!

It has several API problems:
  - API data structures change on kernel config options
  - new fields should be added at the end of a structure to allow
    binary compatibility.

This patch tries to clean this up.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[INET]: Create enum of ECN bits
Herbert Xu [Thu, 22 Jul 2004 05:16:19 +0000 (22:16 -0700)]
[INET]: Create enum of ECN bits

This patch is a preparation for an update of the ECN encap/decap
code with respect to RFC3168.

It creates an enum of the four code-points defined by RFC3168
and uses them throughout the inet_ecn.h file.

The only non-trivial bit is in IP_ECN_set_ce/IP6_ECN_set_ce where
the patch uses INET_ECN_CE instead of 1.  This is OK as those
functions assume that the ECT bit is already set.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[IPSEC]: Fix IPCOMP6 ICMP type check.
Herbert Xu [Thu, 22 Jul 2004 05:14:36 +0000 (22:14 -0700)]
[IPSEC]: Fix IPCOMP6 ICMP type check.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[ATM]: Update Marko Kiiskila's email address.
David S. Miller [Wed, 21 Jul 2004 10:18:28 +0000 (03:18 -0700)]
[ATM]: Update Marko Kiiskila's email address.

22 years ago[IPV4]: Make raw sockets behave like udp wrt. MSG_TRUNC.
David S. Miller [Wed, 21 Jul 2004 09:47:01 +0000 (02:47 -0700)]
[IPV4]: Make raw sockets behave like udp wrt. MSG_TRUNC.

22 years ago[ATM]: use try_module_get appropriately (from Stephen Hemminger <shemminger@osdl...
Chas Williams [Wed, 21 Jul 2004 09:08:53 +0000 (02:08 -0700)]
[ATM]: use try_module_get appropriately (from Stephen Hemminger <shemminger@osdl.org>)

22 years agoMerge bk://bk.skbuff.net:20608/linux-2.6-dgramconnect/
David S. Miller [Wed, 21 Jul 2004 08:55:16 +0000 (01:55 -0700)]
Merge bk://bk.skbuff.net:20608/linux-2.6-dgramconnect/
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years agoMerge http://linux-mh.bkbits.net/bluetooth-2.6
David S. Miller [Wed, 21 Jul 2004 08:16:02 +0000 (01:16 -0700)]
Merge http://linux-mh.bkbits.net/bluetooth-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[CRYPTO]: Fix stack overrun in crypt().
Herbert Xu [Wed, 21 Jul 2004 07:51:31 +0000 (00:51 -0700)]
[CRYPTO]: Fix stack overrun in crypt().

The stack allocation in crypt() is bogus as whether tmp_src/tmp_dst
is used is determined by factors unrelated to nbytes and
src->length/dst->length.

Since the condition for whether tmp_src/tmp_dst are used is very
complex, let's allocate them always instead of guessing.

This fixes a number of weird crashes including those AES crashes
that people have been seeing with the 2.4 backport + ipt_conntrack.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC32]: Mark William Lee Irwin III as maintainer.
William Lee Irwin III [Wed, 21 Jul 2004 07:27:07 +0000 (00:27 -0700)]
[SPARC32]: Mark William Lee Irwin III as maintainer.

22 years ago[UDP]: Return true length if user specifies MSG_TRUNC.
Samuel Thibault [Wed, 21 Jul 2004 06:51:01 +0000 (23:51 -0700)]
[UDP]: Return true length if user specifies MSG_TRUNC.

22 years ago[SPARC]: Add pci_dma_mapping_error to pci.h
Tom 'spot' Callaway [Wed, 21 Jul 2004 06:44:37 +0000 (23:44 -0700)]
[SPARC]: Add pci_dma_mapping_error to pci.h

Signed-off-by: Tom Callaway <tcallawa@redhat.com>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC]: Fix copy_user.S with gcc 3.3
Tom 'spot' Callaway [Wed, 21 Jul 2004 06:42:08 +0000 (23:42 -0700)]
[SPARC]: Fix copy_user.S with gcc 3.3

Signed-off-by: Tom Callaway <tcallawa@redhat.com>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[IPV6]: Missing sparse annotation in addrconf.
Stephen Hemminger [Wed, 21 Jul 2004 06:41:01 +0000 (23:41 -0700)]
[IPV6]: Missing sparse annotation in addrconf.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Need delayed packet limit in sch_netem.
Stephen Hemminger [Wed, 21 Jul 2004 06:34:49 +0000 (23:34 -0700)]
[PKT_SCHED]: Need delayed packet limit in sch_netem.

The netem scheduler needs to limit its delayed packet queue to prevent
a application burst from chewing up too much memory.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Missing qdisc destroy in sch_netem.
Stephen Hemminger [Wed, 21 Jul 2004 06:33:42 +0000 (23:33 -0700)]
[PKT_SCHED]: Missing qdisc destroy in sch_netem.

The underlying qdisc was not being properly destroyed, shows up as
assertion failure on device removal.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Make sch_netem classful.
Stephen Hemminger [Wed, 21 Jul 2004 06:31:05 +0000 (23:31 -0700)]
[PKT_SCHED]: Make sch_netem classful.

Simple enhancement to netem packet scheduler that makes it classful so
that the underlying pfifo default discipline can be substituted with something
else (tbf, red, ...)

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC64]: Handle SBUS dma allocations larger than 1MB.
David Dillow [Wed, 21 Jul 2004 06:27:12 +0000 (23:27 -0700)]
[SPARC64]: Handle SBUS dma allocations larger than 1MB.

Signed-off-by: David Dillow <dave@thedillows.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC64]: Fix allnoconfig build, based upon a patch from Roland Dreier.
David S. Miller [Wed, 21 Jul 2004 06:12:56 +0000 (23:12 -0700)]
[SPARC64]: Fix allnoconfig build, based upon a patch from Roland Dreier.

- Make SUNOS_EMUL depend upon BINFMT_AOUT32
- Make SOLARIS_EMUL depend upon SPARC32_COMPAT
- Add CONFIG_COMPAT guards, where necessary.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[SPARC64]: Update defconfig.
David S. Miller [Tue, 20 Jul 2004 08:57:37 +0000 (01:57 -0700)]
[SPARC64]: Update defconfig.

22 years ago[SPARC64]: Export __copy_in_user to modules.
David S. Miller [Tue, 20 Jul 2004 08:55:45 +0000 (01:55 -0700)]
[SPARC64]: Export __copy_in_user to modules.

22 years ago[IPV6] remove rather pointless comment.
Hideaki Yoshifuji [Tue, 20 Jul 2004 08:25:15 +0000 (17:25 +0900)]
[IPV6] remove rather pointless comment.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
22 years ago[IPV4] Look up route with appropriate protocol when we connect().
Hideaki Yoshifuji [Tue, 20 Jul 2004 08:16:36 +0000 (17:16 +0900)]
[IPV4] Look up route with appropriate protocol when we connect().

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
22 years agoMerge bk://bk.skbuff.net:20608/linux-2.6-snmp-20040708
David S. Miller [Tue, 20 Jul 2004 07:55:45 +0000 (00:55 -0700)]
Merge bk://bk.skbuff.net:20608/linux-2.6-snmp-20040708
into nuts.davemloft.net:/disk1/BK/snmp-2.6

22 years ago[CIFS] remove unneeded, unused prototypes. Suggested by Carl Spalletta
Steve French [Sun, 18 Jul 2004 17:26:25 +0000 (12:26 -0500)]
[CIFS] remove unneeded, unused prototypes.  Suggested by Carl Spalletta

Signed-off-by: Steve French (sfrench@us.ibm.com)
22 years agoMerge bk://linux.bkbits.net/linux-2.5
Steve French [Sun, 18 Jul 2004 13:18:24 +0000 (06:18 -0700)]
Merge bk://linux.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/repos/c/cifs/linux-2.5cifs

22 years agoCIFS: Add missing mount option for optionally cifs perm checks when uids on server...
Steve French [Sun, 18 Jul 2004 12:23:42 +0000 (07:23 -0500)]
CIFS: Add missing mount option for optionally cifs perm checks when uids on server and client do not match and for optionally overriding
server setting default uid/gid of new cifs files and directories.

Signed-off-by: Steve French (sfrench@us.ibm.com)
22 years ago[PATCH] NX: clean up legacy binary support
Ingo Molnar [Sun, 18 Jul 2004 02:08:19 +0000 (19:08 -0700)]
[PATCH] NX: clean up legacy binary support

This cleans up legacy x86 binary support by introducing a new
personality bit: READ_IMPLIES_EXEC, and implements Linus' suggestion to
add the PROT_EXEC bit on the two affected syscall entry places,
sys_mprotect() and sys_mmap().  If this bit is set then PROT_READ will
also add the PROT_EXEC bit - as expected by legacy x86 binaries.  The
ELF loader will automatically set this bit when it encounters a legacy
binary.

This approach avoids the problems the previous ->def_flags solution
caused.  In particular this patch fixes the PROT_NONE problem in a
cleaner way (http://lkml.org/lkml/2004/7/12/227), and it should fix the
ia64 PROT_EXEC problem reported by David Mosberger.  Also,
mprotect(PROT_READ) done by legacy binaries will do the right thing as
well.

the details:

- the personality bit is added to the personality mask upon exec(),
  within the ELF loader, but is not cleared (see the exceptions below).
  This means that if an environment that already has the bit exec()s a
  new-style binary it will still get the old behavior.

- one exception are setuid/setgid binaries: these will reset the
  bit - thus local attackers cannot manually set the bit and circumvent
  NX protection. Legacy setuid binaries will still get the bit through
  the ELF loader. This gives us maximum flexibility in shaping
  compatibility environments.

- selinux also clears the bit when switching SIDs via exec().

- x86 is the only arch making use of READ_IMPLIES_EXEC currently. Other
  arches will have the pre-NX-patch protection setup they always had.

I have booted an old distro [RH 7.2] and two new PT_GNU_STACK distros
[SuSE 9.2 and FC2] on an NX-capable CPU - they work just fine and all
the mapping details are right. I've checked the PROT_NONE test-utility
as well and it works as expected. I have checked various setuid
scenarios as well involving legacy and new-style binaries.

an improved setarch utility can be used to set the personality bit
manually:

http://redhat.com/~mingo/nx-patches/setarch-1.4-3.tar.gz

the new '-X' flag does it, e.g.:

./setarch -X linux /bin/cat /proc/self/maps

will trigger the old protection layout even on a new distro.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] pmac_zilog: serial minors taken failure path fix
David Eger [Sun, 18 Jul 2004 02:06:48 +0000 (19:06 -0700)]
[PATCH] pmac_zilog: serial minors taken failure path fix

I've tracked down the core issue giving me the oops wrt pmac_zilog.

When you have two serial drivers, (e.g. 8250 and PMAC_ZILOG) they both say

"I want to reserve X ports starting with major TTY_MAJOR and minor 64".

By the time pmac_zilog gets there, the ports it requests are already
reserved.  Unfortunately, init_pmz() doesn't check for pmz_register()
failure, and so it merrily goes on to register the half-initialized
pmac_zilog driver with the power management subsystem.

This path provides a proper failure path.

Also:

Restore ppc configs now that I know people use AT Keyboards on CHRP and PReP
machines, and the zilog driver is no longer Oops'ing.

Signed-off-by: David Eger <eger@havoc.gtf.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoLinux 2.6.8-rc2 v2.6.8-rc2
Linus Torvalds [Sat, 17 Jul 2004 14:52:45 +0000 (07:52 -0700)]
Linux 2.6.8-rc2

Ready for the kernel summit in Ottawa...

22 years agoClean up ptrace child exit case.
Linus Torvalds [Sat, 17 Jul 2004 14:51:57 +0000 (07:51 -0700)]
Clean up ptrace child exit case.

This also fixes it for when the real parent is ignoring
SIGCHLD - noted by David Mosberger.

22 years ago[PATCH] Fix i386 bootup with HIGHMEM+SLAB_DEBUG+NUMA and no real
Andi Kleen [Sat, 17 Jul 2004 13:49:01 +0000 (06:49 -0700)]
[PATCH] Fix i386 bootup with HIGHMEM+SLAB_DEBUG+NUMA and no real

For some reason I booted a NUMA and SLAB_DEBUG i386 kernel on a non
NUMA 512MB machine.  This caused an oops at bootup in change_page_attr.
The reason was that highmem_start_start page ended up zero and
that triggered the highmem check in change_page_attr when the
slab debug code would unmap a kernel mapping.

Fix is straightforward: if there is no highmem set highmem_start_page
to max_low_pfn+1

22 years ago[PATCH] Fix memory corruption at x86-64 SMP bootup
Andi Kleen [Sat, 17 Jul 2004 13:48:50 +0000 (06:48 -0700)]
[PATCH] Fix memory corruption at x86-64 SMP bootup

This fixes a long standing corruption bug in the x86-64 code. The SMP
trampoline would corrupt page 2, which was sometimes used for other
data.  This corrupted the ioport/iomem list in some cases and causes
oopses while read /proc/iomem.

Fix is to check the correct location and don't zero it afterwards
because it gets reinitialized for the next CPU anyways.

Thanks to Alexander Nyberg for tracking it down.

22 years ago[Bluetooth] Use a signed integer for the RSSI value
Marcel Holtmann [Fri, 16 Jul 2004 16:05:36 +0000 (18:05 +0200)]
[Bluetooth] Use a signed integer for the RSSI value

The RSSI value in the inquiry response with RSSI must be a signed
integer and not an unsigned one.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
22 years ago[Bluetooth] Add missing entry for the HIDP support
Marcel Holtmann [Fri, 16 Jul 2004 15:27:29 +0000 (17:27 +0200)]
[Bluetooth] Add missing entry for the HIDP support

This small patch adds the missing entry about the HIDP support
to the main Kconfig file of the Bluetooth subsystem.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
22 years ago[Bluetooth] Make use of usb_kill_urb()
Marcel Holtmann [Fri, 16 Jul 2004 14:59:11 +0000 (16:59 +0200)]
[Bluetooth] Make use of usb_kill_urb()

Now that usb_kill_urb() is in the main kernel tree it should
be used. This patch makes the needed modifications to the USB
Bluetooth driver.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
22 years ago[Bluetooth] Add support for another ALPS module
Marcel Holtmann [Fri, 16 Jul 2004 14:53:17 +0000 (16:53 +0200)]
[Bluetooth] Add support for another ALPS module

This patch adds the specific vendor and product id's for another
ALPS module which don't uses the USB Bluetooth class id.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
22 years ago[PATCH] fix inode state incoherency
Miklos Szeredi [Fri, 16 Jul 2004 11:44:49 +0000 (04:44 -0700)]
[PATCH] fix inode state incoherency

This patch fixes a hard-to-trigger condition, where the inode is on the
inode_in_use list while it's state is dirty.  In this state dirty pages are
not written back in sync() or from kupdate, only from direct page reclaim.
And this causes a livelock in balance_dirty_pages after a while.

The actual sequence of events required to get into this state is:

thread   function                             inode state         inode list
----------------------------------------------------------------------------
1 __sync_single_inode (background)            I_DIRTY             sb->s_io
1 do_writepages ...                           I_LOCKED
2 __writeback_single_inode (sync) sleeps      I_LOCKED
1 __sync_single_inode (background) finish     0                   inode_in_use
2 __writeback_single_inode (sync) wakeup      0
2 __sync_single_inode (sync)                  0
2 do_writepages ...                           I_LOCKED
3 __mark_inode_dirty                          I_LOCKED | I_DIRTY
2 __sync_single_inode (sync) finish           I_DIRTY             left on
                                                                  inode_in_use

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Altix serial driver updates
Pat Gefre [Fri, 16 Jul 2004 11:44:38 +0000 (04:44 -0700)]
[PATCH] Altix serial driver updates

Patch for our console driver.  We converted the driver to use the serial
core functions.  Also some changes to use sysfs/udev and a new major
number.

Cc: Jesse Barnes <jbarnes@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] pointer-to-number cast in binfmt_elf.c done right
Alexander Viro [Fri, 16 Jul 2004 05:52:14 +0000 (22:52 -0700)]
[PATCH] pointer-to-number cast in binfmt_elf.c done right

22 years ago[PATCH] more annotations in binfmt_aout.c
Alexander Viro [Fri, 16 Jul 2004 05:52:02 +0000 (22:52 -0700)]
[PATCH] more annotations in binfmt_aout.c

22 years ago[PATCH] hfs and hfsplus switched to use of ffs(3) instead of homegrown versions
Alexander Viro [Fri, 16 Jul 2004 05:51:51 +0000 (22:51 -0700)]
[PATCH] hfs and hfsplus switched to use of ffs(3) instead of homegrown versions

22 years ago[PATCH] fbmem.c partially annotated
Alexander Viro [Fri, 16 Jul 2004 05:51:40 +0000 (22:51 -0700)]
[PATCH] fbmem.c partially annotated

partially annotated, fixed dereferencing of userland pointer (trivial,
since we'd just copied the entire structure).

22 years ago[PATCH] 3w-9xxx.c annotated
Alexander Viro [Fri, 16 Jul 2004 05:51:29 +0000 (22:51 -0700)]
[PATCH] 3w-9xxx.c annotated

22 years agoppc64: More NULL/0 confusion in prom.c
Linus Torvalds [Fri, 16 Jul 2004 05:48:54 +0000 (22:48 -0700)]
ppc64: More NULL/0 confusion in prom.c

22 years agoIt's a pointer, dummy. Use NULL, not 0.
Linus Torvalds [Fri, 16 Jul 2004 05:17:10 +0000 (22:17 -0700)]
It's a pointer, dummy. Use NULL, not 0.

22 years ago[PATCH] annotations and NULL noise removal in drivers/char/drm
Alexander Viro [Fri, 16 Jul 2004 05:05:32 +0000 (22:05 -0700)]
[PATCH] annotations and NULL noise removal in drivers/char/drm

Massive, but trivial - drm annotated and got 0->NULL where needed.  That
patch kills ~2200 lines of warnings - out of 5400 that remained at that
point.

22 years ago[PATCH] sparse: iovec cleanups - the rest
Alexander Viro [Fri, 16 Jul 2004 05:05:19 +0000 (22:05 -0700)]
[PATCH] sparse: iovec cleanups - the rest

the rest of iovec cleanups: nbd, dvb-net, sock.c::sock_no_sendpage(),
econet over udp and ip_vs switched to use of kvec and kernel_...msg().

22 years ago[PATCH] sparse: iovec cleanups - sunrpc, nfs and nfsd
Alexander Viro [Fri, 16 Jul 2004 05:05:10 +0000 (22:05 -0700)]
[PATCH] sparse: iovec cleanups - sunrpc, nfs and nfsd

sunrpc, nfs and nfsd switched to use of kvec and kernel_...msg()

22 years ago[PATCH] sparse: iovec cleanups - rxrpc
Alexander Viro [Fri, 16 Jul 2004 05:04:58 +0000 (22:04 -0700)]
[PATCH] sparse: iovec cleanups - rxrpc

rxrpc (low-level part of afs) switched to kernel_...msg(); it already was
using kvec instead of iovec.

22 years ago[PATCH] sparse: iovec cleanups - cifs
Alexander Viro [Fri, 16 Jul 2004 05:04:47 +0000 (22:04 -0700)]
[PATCH] sparse: iovec cleanups - cifs

cifs switched to kvec and kernel_...msg()

22 years ago[PATCH] sparse: iovec cleanups - ncpfs
Alexander Viro [Fri, 16 Jul 2004 05:04:35 +0000 (22:04 -0700)]
[PATCH] sparse: iovec cleanups - ncpfs

ncpfs switched to kvec and kernel_...msg()

22 years ago[PATCH] sparse: iovec cleanups - smbfs
Alexander Viro [Fri, 16 Jul 2004 05:04:24 +0000 (22:04 -0700)]
[PATCH] sparse: iovec cleanups - smbfs

smbfs switched to kvec and kernel_...msg()

22 years ago[PATCH] sparse: beginning of iovec cleanups - infrastructure
Alexander Viro [Fri, 16 Jul 2004 05:04:13 +0000 (22:04 -0700)]
[PATCH] sparse: beginning of iovec cleanups - infrastructure

Beginning of iovec cleanups - added two helpers (kernel_{send,recv}msg)
that do sock_sendmsg/sock_recvmsg with kvec instead of iovec; basically,
they were abstracted from earlier afs patch.  They take kvec/length of
kvec as separate arguments, do set_fs(), stick kvec into msghdr and call
sock_...msg().

The next group of patches will switch network filesystems to use of kvec
for kernel data + use of these helpers.  Basically, the same thing we'd
done for afs.

22 years ago[PATCH] switch sys32_timer_create() to compat_alloc_user_space()
Alexander Viro [Fri, 16 Jul 2004 05:04:02 +0000 (22:04 -0700)]
[PATCH] switch sys32_timer_create() to compat_alloc_user_space()

switched to compat_alloc_user_space(), cleaned up.

22 years ago[PATCH] misc sparse cleanups
Alexander Viro [Fri, 16 Jul 2004 05:03:51 +0000 (22:03 -0700)]
[PATCH] misc sparse cleanups

 - missing ; between default: and } in sun4setup.c
 - cast of pointer to unsigned long long instead of unsigned long in
   x86_64 signal.c
 - missed annotations for ioctl structure in sparc64 openpromio.h
   (should've been in the same patch as the rest of drivers/sbus/*
   annotations)
 - 0->NULL in list.h and pmdisk.c

22 years ago[PATCH] mark broken stuff as such in Kconfig
Alexander Viro [Fri, 16 Jul 2004 05:03:39 +0000 (22:03 -0700)]
[PATCH] mark broken stuff as such in Kconfig

A bunch of drivers are broken on sparc64; mark them as such in Kconfig.
arlan and smctr are not 64bit-clean; again, markes as such.

22 years ago[PATCH] NULL noise removal in sound/usb/*
Alexander Viro [Fri, 16 Jul 2004 05:03:28 +0000 (22:03 -0700)]
[PATCH] NULL noise removal in sound/usb/*

22 years ago[PATCH] annotated sound/pci/nm256/nm256.c
Alexander Viro [Fri, 16 Jul 2004 05:03:17 +0000 (22:03 -0700)]
[PATCH] annotated sound/pci/nm256/nm256.c

22 years ago[PATCH] ic31712: when storing a bitmask in pointer field, use unsigned long
Alexander Viro [Fri, 16 Jul 2004 05:03:05 +0000 (22:03 -0700)]
[PATCH] ic31712: when storing a bitmask in pointer field, use unsigned long

22 years ago[PATCH] au88x0: use proper field of snd_kcontrol_t and don't try to store pointer...
Alexander Viro [Fri, 16 Jul 2004 05:02:54 +0000 (22:02 -0700)]
[PATCH] au88x0: use proper field of snd_kcontrol_t and don't try to store pointer in int

The au88x0 driver tries to use the wrong private field - there are two,
one of them int and another void *.

While it's not a problem on 32bot boxen, it breaks on 64bit ones.

Fixed.

22 years ago[PATCH] remove bogus casts of pointers to unsigned int in sound/*
Alexander Viro [Fri, 16 Jul 2004 05:02:43 +0000 (22:02 -0700)]
[PATCH] remove bogus casts of pointers to unsigned int in sound/*

22 years ago[PATCH] mmap PROT_NONE fix for NX patch
Daniel McNeil [Fri, 16 Jul 2004 04:52:43 +0000 (21:52 -0700)]
[PATCH] mmap PROT_NONE fix for NX patch

This works around the current PROT_NONE problem from elf binaries that
do not have the PT_GNU_STACK so that the do not have execute permission.

The problem was that setting "def_flags" to include the VM_EXEC bit for
compatibility reasons would also make PROT_NONE pages executable, which
is obviously not correct.

Signed-off-by: Daniel McNeil <daniel@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Remove all uses of '#ifdef MODULE_PARM' from kernel
Mika Kukkonen [Fri, 16 Jul 2004 04:18:21 +0000 (21:18 -0700)]
[PATCH] Remove all uses of '#ifdef MODULE_PARM' from kernel

I got sidetracked (I do that a lot ;-) and noticed that there are only
eight files in 2.6 that have code like:

#ifdef MODULE_PARAM
MODULE_PARAM(foo, "i");
#endif

which I think is old cruft from 2.1.x times.  Following patch removes
all those eight (six in netfilter, one net driver and one SCSI driver).

22 years ago[PATCH] fix cdrom mt rainier probe
Pat LaVarre [Fri, 16 Jul 2004 04:17:27 +0000 (21:17 -0700)]
[PATCH] fix cdrom mt rainier probe

Writing to RAM capable media was broken by the moving of write flag
detection from probe to drive open time.  The media would stay
terminally RO due to the set_disk_ro() call.

This fixes the code to do the right thing - the detection stays at open
time (which it must, since it depends on the media), and we fail with
-EROFS if the media can't be written.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMake obsolete NOR flash chip drivers depend on BROKEN.
David Woodhouse [Fri, 16 Jul 2004 17:43:19 +0000 (18:43 +0100)]
Make obsolete NOR flash chip drivers depend on BROKEN.

If nobody shouts soon about why the new, shiny, generic chip drivers
don't work where the old ones do, they can be removed entirely.

22 years agoM-Systems DiskOnChip driver: fix DiskOnChip Millennium ECC support
David Woodhouse [Fri, 16 Jul 2004 17:40:47 +0000 (18:40 +0100)]
M-Systems DiskOnChip driver: fix DiskOnChip Millennium ECC support
and fix a few compiler warnings while we're at it.

22 years agoRemove /proc/fs/jffs2 support.
David Woodhouse [Fri, 16 Jul 2004 17:38:54 +0000 (18:38 +0100)]
Remove /proc/fs/jffs2 support.

It wants reimplementing sanely, preferably in sysfs instead.

22 years ago[PATCH] ppc32: openpic driver cpumask_t changes
David Howells [Thu, 15 Jul 2004 13:09:32 +0000 (06:09 -0700)]
[PATCH] ppc32: openpic driver cpumask_t changes

This fixes the PPC openpic driver to use cpumask_t where appropriate.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-Off-By: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: Fix IRQ setup on WindRiver SBC8560
David Woodhouse [Thu, 15 Jul 2004 13:08:00 +0000 (06:08 -0700)]
[PATCH] ppc32: Fix IRQ setup on WindRiver SBC8560

The internal interrupts are hardcoded to be level-triggered, but we need
to make sure the OpenPIC code knows that...

22 years ago[PATCH] ppc32: Fix UART initialisation on WindRiver SBC8560.
David Woodhouse [Thu, 15 Jul 2004 13:07:49 +0000 (06:07 -0700)]
[PATCH] ppc32: Fix UART initialisation on WindRiver SBC8560.

The UART tristates its IRQ output when the OUT2 bit in the MCR isn't
set. For reasons not known to civilised man, the hardware engineers
stopped it from floating by pulling it _high_ instead of low, so if
anybody requests that IRQ before OUT2 is turned on, we die in an IRQ
storm. The serial8250 driver does precisely that thing, with precisely
that effect.

ALPHA_KLUDGE_MCR was designed to fix exactly this kind of problem, so we
use it here as intended. Ideally ALPHA_KLUDGE_MCR would go away and be
replaced with something like UPF_FORCE_OUT2 and UPF_FORCE_OUT1 flags,
but now is not the time to get me started on a cleanup of everything
about serial8250 that offends me.

22 years ago[PATCH] ppc32: Fix UART detection on WindRiver SBC8560
David Woodhouse [Thu, 15 Jul 2004 13:07:40 +0000 (06:07 -0700)]
[PATCH] ppc32: Fix UART detection on WindRiver SBC8560

The UART is detected as a ST16650V2 but its FIFO doesn't behave nicely.
Disable autoprobe and hard-code it to be a ST16650 instead.

22 years ago[PATCH] tmpfs preempt count panic
Hugh Dickins [Thu, 15 Jul 2004 06:08:02 +0000 (23:08 -0700)]
[PATCH] tmpfs preempt count panic

Just unearthed another of my warcrimes: reading a 17-page sparse file,
I mean holey file, hits the in_interrupt panic in do_exit on a current
highmem kernel (but 2.6.7 is okay).  Fix mismatched preempt count from
shmem_swp_alloc's swapindex hole case by mapping an empty_zero_page.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://are.twiddle.net/axp-2.6
Linus Torvalds [Thu, 15 Jul 2004 06:04:46 +0000 (23:04 -0700)]
Merge bk://are.twiddle.net/axp-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge linux-mtd@bkbits.net:mtd-2.6
David Woodhouse [Thu, 15 Jul 2004 19:36:34 +0000 (20:36 +0100)]
Merge linux-mtd@bkbits.net:mtd-2.6
into shinybook.infradead.org:/home/dwmw2/bk/mtd-2.6

22 years agoNOR flash drivers update
David Woodhouse [Thu, 15 Jul 2004 19:32:25 +0000 (20:32 +0100)]
NOR flash drivers update

 - Handle cached access to flash chips on supporting platforms
 - Handle arrangements of chips larger than a single bus width
 - Clean up the AMD/Fujitsu chip driver
 - Update board 'mapping' drivers to match
 - New mapping drivers for new platforms.

22 years agoMTD core include and device code cleanup
David Woodhouse [Thu, 15 Jul 2004 19:27:17 +0000 (20:27 +0100)]
MTD core include and device code cleanup

 - Move user-visible bits from headers to include/mtd/ directory.
 - Update old DiskOnChip drivers for newer hardware.
 - Switch NFTL and INFTL support to work with new DiskOnChip/NAND code.
 - New phram driver, reimplenting the ugly slram driver.
 - Bug fixes in partitioning code

22 years agoJFFS2 file system update
David Woodhouse [Thu, 15 Jul 2004 19:19:18 +0000 (20:19 +0100)]
JFFS2 file system update

 - Improved support for NAND flash
 - More generic compression support, allowing for extra compressors
 - Fix potential deadlock with kupdated

22 years agoNAND flash driver updates.
David Woodhouse [Thu, 15 Jul 2004 19:11:45 +0000 (20:11 +0100)]
NAND flash driver updates.

Update the core NAND code:
 - support multiple chips
 - support bad block tables
 - improved generic ECC support and 'spare area' usage.
 - 16-bit NAND
 - Large-block NAND devices
 - Renesas AG-AND devices
 - M-Systems DiskOnChip devices
 - Other new board support wrappers

Most of the work was done by Thomas Gleixner.

Signed-Off-By: David Woodhouse <dwmw2@infradead.org>
22 years agoMerge kanga.twiddle.home:/home/rth/work/linux/linus-2.6
Richard Henderson [Thu, 15 Jul 2004 03:56:19 +0000 (20:56 -0700)]
Merge kanga.twiddle.home:/home/rth/work/linux/linus-2.6
into kanga.twiddle.home:/home/rth/work/linux/axp-2.6

22 years ago[ALPHA] Pass pt_regs as pointer to execve and sigprocmask syscalls.
Richard Henderson [Thu, 15 Jul 2004 03:48:49 +0000 (20:48 -0700)]
[ALPHA] Pass pt_regs as pointer to execve and sigprocmask syscalls.

22 years ago[PATCH] CFQ: allocation under lock, missing memset on allocation
Jens Axboe [Thu, 15 Jul 2004 02:23:57 +0000 (19:23 -0700)]
[PATCH] CFQ: allocation under lock, missing memset on allocation

This fixes two issues in the CFQ IO-scheduler:

o Still a bad allocation under the queue lock
o We need to clear crq after mempool_alloc(), otherwise the rbtree
  pointers can contain garbage if slab poisoning is enabled. This causes
  crashes on front/back merges because rb_next() returns crap.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/driver-2.6
Linus Torvalds [Wed, 14 Jul 2004 11:03:28 +0000 (04:03 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/driver-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux