18 Apr, 2007

17 commits

  • * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband:
    IB/mthca: Fix data corruption after FMR unmap on Sinai

    Linus Torvalds
     
  • * 'for-linus' of git://one.firstfloor.org/home/andi/git/linux-2.6:
    [PATCH] x86: Fix potential overflow in perfctr reservation
    [PATCH] x86: Fix gcc 4.2 _proxy_pda workaround

    Linus Torvalds
     
  • * Last write during i2c_xfer is of the wrong byte (off-by-1).
    * Read length is wrong for some of the reads (mistakenly used the PEC
    version)

    Signed-off-by: Olof Johansson
    Signed-off-by: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Olof Johansson
     
  • Looks like a local change I made to be able to test-compile the i2c-pasemi
    driver leaked upstream.

    Signed-off-by: Jean Delvare
    Acked-by: Olof Johansson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jean Delvare
     
  • Users have been complaining about the w83627ehf driver flooding their logs
    with debug messages like:

    w83627ehf 9191-0a10: Increasing fan 4 clock divider from 64 to 128

    or:

    w83627ehf 9191-0290: Increasing fan 4 clock divider from 4 to 8

    The reason is that we failed to actually write the LSB of the encoded clock
    divider value for that fan, causing the next read to report the same old value
    again and again.

    Additionally, the fan number was improperly reported, making the bug harder to
    find.

    Signed-off-by: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jean Delvare
     
  • Provide an dummy implementation of devm_ioport_map() and
    devm_ioport_unmap() to allow drivers (eg, pata_platform) to build for
    platforms where CONFIG_NO_IOPORT is selected.

    Signed-off-by: Russell King
    Cc: Alan Cox
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Russell King
     
  • sk_info_authunix is not being protected properly so the object that it
    points to can be cache_put twice, leading to corruption.

    We borrow svsk->sk_defer_lock to provide the protection. We should
    probably rename that lock to have a more generic name - later.

    Thanks to Gabriel for reporting this.

    Cc: Greg Banks
    Cc: Gabriel Barazer
    Signed-off-by: Neil Brown
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • It got its lock and unlock backwards.

    Fixes http://bugzilla.kernel.org/show_bug.cgi?id=8334

    (obviously, this code could be using plain old spin_lock_irq(), too)

    Cc:
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mackerras
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • This patch should fix or partly fix this bug:
    http://bugzilla.kernel.org/show_bug.cgi?id=8276

    The problem is:

    - if we see "zero link case" during reading inode operation, we call
    ufs_error(which remount fs readonly), but not "mark" inode as bad (1)

    - in readonly case we do not fill some data structures, which are used in
    read and write case (2)

    - VFS call ufs_delete_inode if link count is zero (3)

    so (1)->(3)->(2) cause oops, this patch should fix such scenario

    Signed-off-by: Evgeniy Dushistov
    Cc: Jim Paris
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Dushistov
     
  • It turns out that the last patch to change set_cs to be kept in the
    controller's structure instead of the platform data was an incomplete
    change, and did not change the references to platfrom data in the setup
    xfer code. (This can prevent an oops.)

    Reported-by:
    Signed-off-by: Ben Dooks
    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • Override compiler .arch directive for generic kernel build.

    Signed-off-by: Ivan Kokshaysky
    Signed-off-by: Richard Henderson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ivan Kokshaysky
     
  • arch/alpha/kernel/sys_sx164.c

    Earlier firmware revisions need MVI fix as well.

    arch/alpha/kernel/sys_nautilus.c

    On UP1500 firmware reports wrong AGP IRQ (10 instead of 5).
    This causes interrupt storm if there is a PCI device that
    uses IRQ 5.

    Signed-off-by: Ivan Kokshaysky
    Cc: Richard Henderson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ivan Kokshaysky
     
  • Files:

    arch/alpha/kernel/core_mcpcia.c
    arch/alpha/kernel/sys_rawhide.c
    include/asm-alpha/core_mcpcia.h

    Determine correct hose configuration; RAWHIDE family can have
    2 or 4 hoses, so make sure non-existent hoses are ignored.

    arch/alpha/kernel/err_titan.c

    Supply a needed #include

    arch/alpha/kernel/module.c

    Add some useful output to the relocation overflow messages.

    arch/alpha/kernel/sys_noritake.c

    Supply necessary noritake_end_irq() to correct interrupt handling.
    This fixes a problem first noted by hangs during boot probing with
    a DE500-BA TULIP NIC present.

    arch/alpha/kernel/sys_sio.c

    Correct saving of original PIRQ register (PCI IRQ routing);
    change default PIRQ setting to leave PCI IRQs 9 and 14 free to
    be used for sound (Multia) and IDE (any), respectively.

    include/asm-alpha/io.h

    Supply the "isa_virt_to_bus" routine.

    Signed-off-by: Jay Estabrook
    Signed-off-by: Ivan Kokshaysky
    Cc: Richard Henderson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ivan Kokshaysky
     
  • While digging through my MAP_FIXED changes, I found that rather obvious
    bug in /dev/mem mmap implementation for nommu archs. get_unmapped_area()
    is expected to return an address, not a pfn.

    Signed-off-by: Benjamin Herrenschmidt
    Acked-By: David Howells
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Benjamin Herrenschmidt
     
  • Make kernel-doc comments match macro names.
    Correct parameter names in a few places.
    Remove '#' from beginning of kernel-doc comment macro names.
    Remove extra (erroneous) blank lines in kernel-doc.

    Warning(plist.h:100): Cannot understand * #PLIST_HEAD_INIT - static struct plist_head initializer on line 100 - I thought it was a doc line
    Warning(plist.h:112): Cannot understand * #PLIST_NODE_INIT - static struct plist_node initializer on line 112 - I thought it was a doc line
    Warning(plist.h:103): No description found for parameter '_lock'
    Warning(plist.h:129): No description found for parameter 'lock'
    Warning(plist.h:158): No description found for parameter 'pos'
    Warning(plist.h:169): No description found for parameter 'pos'
    Warning(plist.h:169): No description found for parameter 'n'
    Warning(plist.h:179): No description found for parameter 'mem'

    This still leaves one warning & one error that need attention:
    Error(plist.h:219): cannot understand prototype: '('
    Warning(plist.h): no structured comments found

    Acked-by: Inaky Perez-Gonzalez
    Cc: Daniel Walker
    Cc: Thomas Gleixner
    Cc: Oleg Nesterov
    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • The patch checks for "|" in the pattern not the output and doesn't nail a
    pid on to a piped name (as it is a program name not a file)

    Also fixes a very very obscure security corner case. If you happen to have
    decided on a core pattern that starts with the program name then the user
    can run a program called "|myevilhack" as it stands. I doubt anyone does
    this.

    Signed-off-by: Alan Cox
    Confirmed-by: Christopher S. Aker
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Trivial change to pass vmsplice arguments through the compat layer on
    pp64.

    Signed-off-by: Don Zickus
    Acked-by: Stephen Rothwell
    Acked-by: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Don Zickus
     

17 Apr, 2007

5 commits


16 Apr, 2007

4 commits


15 Apr, 2007

8 commits


14 Apr, 2007

6 commits

  • 3w-xxxx emulates a REQUEST_SENSE response by simply returning nothing.
    Unfortunately, it's assuming that the REQUEST_SENSE command is
    implemented with use_sg == 0, which is no longer the case. The oops
    occurs because it's clearing the scatterlist in request_buffer instead
    of the memory region.

    This is fixed by using tw_transfer_internal() to transfer correctly to
    the scatterlist.

    Acked-by: adam radford
    Signed-off-by: James Bottomley

    James Bottomley
     
  • DVB USB remotes do not support changing keycode maps but set
    input_dev->keycodesize and input_dev->keycodemax without setting
    input_dev->keycode. This causes kernel oops when user tries to
    look up (or change) current keymap.

    While the proper fix would be to make remotes handle keymap changes
    we'll just remove keycodemax and keycodesize initialization so
    EVIOCGKEYCODE and EVIOCSKEYCODE will simply return -EINVAL.

    http://bugzilla.kernel.org/show_bug.cgi?id=8312

    Signed-off-by: olaf.kirch@oracle.com
    Signed-off-by: Dmitry Torokhov
    Signed-off-by: Linus Torvalds

    Olaf Kirch
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC64]: Fix inline directive in pci_iommu.c
    [SPARC64]: Fix arg passing to compat_sys_ipc().
    [SPARC]: Fix section mismatch warnings in pci.c and pcic.c
    [SUNRPC]: Make sure on-stack cmsg buffer is properly aligned.
    [SPARC]: avoid CHILD_MAX and OPEN_MAX constants
    [SPARC64]: Fix SBUS IOMMU allocation code.

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
    [NETFILTER] arp_tables: Fix unaligned accesses.
    [IPV6] SNMP: Fix {In,Out}NoRoutes statistics.
    [IPSEC] XFRM_USER: kernel panic when large security contexts in ACQUIRE
    [VLAN]: Allow VLAN interface on top of bridge interface
    [PKTGEN]: Add try_to_freeze()
    [NETFILTER]: ipt_ULOG: use put_unaligned

    Linus Torvalds
     
  • There are two device string comparison loops in arp_packet_match().
    The first one goes byte-by-byte but the second one tries to be
    clever and cast the string to a long and compare by longs.

    The device name strings in the arp table entries are not guarenteed
    to be aligned enough to make this value, so just use byte-by-byte
    for both cases.

    Based upon a report by .

    Signed-off-by: David S. Miller

    David S. Miller
     
  • A packet which is being discarded because of no routes in the
    forwarding path should not be counted as OutNoRoutes but as
    InNoRoutes.
    Additionally, on this occasion, a packet whose destinaion is
    not valid should be counted as InAddrErrors separately.

    Based on patch from Mitsuru Chinen .

    Signed-off-by: YOSHIFUJI Hideaki
    Signed-off-by: David S. Miller

    YOSHIFUJI Hideaki