03 Nov, 2009

3 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (21 commits)
    mac80211: check interface is down before type change
    cfg80211: fix NULL ptr deref
    libertas if_usb: Fix crash on 64-bit machines
    mac80211: fix reason code output endianness
    mac80211: fix addba timer
    ath9k: fix misplaced semicolon on rate control
    b43: Fix DMA TX bounce buffer copying
    mac80211: fix BSS leak
    rt73usb.c : more ids
    ipw2200: fix oops on missing firmware
    gre: Fix dev_addr clobbering for gretap
    sky2: set carrier off in probe
    net: fix sk_forward_alloc corruption
    pcnet_cs: add cis of PreMax PE-200 ethernet pcmcia card
    r8169: Fix card drop incoming VLAN tagged MTU byte large jumbo frames
    ibmtr: possible Read buffer overflow?
    net: Fix RPF to work with policy routing
    net: fix kmemcheck annotations
    e1000e: rework disable K1 at 1000Mbps for 82577/82578
    e1000e: config PHY via software after resets
    ...

    Linus Torvalds
     
  • …/git/tip/linux-2.6-tip

    * 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    perf tools: Remove -Wcast-align
    perf tools: Fix compatibility with libelf 0.8 and autodetect
    perf events: Don't generate events for the idle task when exclude_idle is set
    perf events: Fix swevent hrtimer sampling by keeping track of remaining time when enabling/disabling swevent hrtimers

    Linus Torvalds
     
  • …nel/git/tip/linux-2.6-tip

    * 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    tracing: Remove cpu arg from the rb_time_stamp() function
    tracing: Fix comment typo and documentation example
    tracing: Fix trace_seq_printf() return value
    tracing: Update *ppos instead of filp->f_pos

    Linus Torvalds
     

31 Oct, 2009

2 commits

  • Platform drivers registered via platform_driver_probe() can be bound
    to devices only once, upon registration, because discard their probe()
    routines to save memory. Unbinding the driver through sysfs 'unbind'
    leaves the device stranded and confuses users so let's not create
    bind and unbind attributes for such drivers.

    Signed-off-by: Dmitry Torokhov
    Cc: Éric Piel
    Signed-off-by: Greg Kroah-Hartman

    Dmitry Torokhov
     
  • On UDP sockets, we must call skb_free_datagram() with socket locked,
    or risk sk_forward_alloc corruption. This requirement is not respected
    in SUNRPC.

    Add a convenient helper, skb_free_datagram_locked() and use it in SUNRPC

    Reported-by: Francis Moreau
    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     

30 Oct, 2009

2 commits


29 Oct, 2009

8 commits

  • * 'hwpoison-2.6.32' of git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-mce-2.6:
    HWPOISON: fix invalid page count in printk output
    HWPOISON: Allow schedule_on_each_cpu() from keventd
    HWPOISON: fix/proc/meminfo alignment
    HWPOISON: fix oops on ksm pages
    HWPOISON: Fix page count leak in hwpoison late kill in do_swap_page
    HWPOISON: return early on non-LRU pages
    HWPOISON: Add brief hwpoison description to Documentation
    HWPOISON: Clean up PR_MCE_KILL interface

    Linus Torvalds
     
  • …/git/tip/linux-2.6-tip

    * 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    futex: Move drop_futex_key_refs out of spinlock'ed region
    rcu: Fix TREE_PREEMPT_RCU CPU_HOTPLUG bad-luck hang
    rcu: Stopgap fix for synchronize_rcu_expedited() for TREE_PREEMPT_RCU
    rcu: Prevent RCU IPI storms in presence of high call_rcu() load
    futex: Check for NULL keys in match_futex
    futex: Handle spurious wake up

    Linus Torvalds
     
  • …l/git/tip/linux-2.6-tip

    * 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    sched: Do less agressive buddy clearing
    sched: Disable SD_PREFER_LOCAL for MC/CPU domains

    Linus Torvalds
     
  • The IBM Saturn serial card has only one port. Without that fixup,
    the kernel thinks it has two, which confuses userland setup and
    admin tools as well.

    [akpm@linux-foundation.org: fix pci-ids.h layout]
    Signed-off-by: Benjamin Herrenschmidt
    Acked-by: Alan Cox
    Cc: Michael Reed
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Benjamin Herrenschmidt
     
  • Add support for ADDI-DATA GmbH PCI-Express communication cards:

    APCIe-7300
    APCIe-7420
    APCIe-7500
    APCIe-7800

    Warning: 8250_pci.c depends on pci_ids.h. 8250_pci.c

    Signed-off-by: Krauth Julien
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krauth.Julien
     
  • strstrip() can return a modified value of its input argument, when
    removing elading whitesapce. So it is surely bug for this function's
    return value to be ignored. The caller is probably going to use the
    incorrect original pointer.

    So mark it __must_check to prevent this frm happening (as it has before).

    Signed-off-by: KOSAKI Motohiro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KOSAKI Motohiro
     
  • When CONFIG_CPU_FREQ is disabled, cpufreq_get() needs a stub. Used by kvm
    (although it looks like a bit of the kvm code could be omitted when
    CONFIG_CPU_FREQ is disabled).

    arch/x86/built-in.o: In function `kvm_arch_init':
    (.text+0x10de7): undefined reference to `cpufreq_get'

    (Needed in linux-next's KVM tree, but it's correct in 2.6.32).

    Signed-off-by: Randy Dunlap
    Tested-by: Eric Paris
    Cc: Jiri Slaby
    Cc: Avi Kivity
    Cc: Marcelo Tosatti
    Cc: Dave Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • e180a6b7759a "param: fix charp parameters set via sysfs" fixed the case
    where charp parameters written via sysfs were freed, leaving drivers
    accessing random memory.

    Unfortunately, storing a flag in the kparam struct was a bad idea: it's
    rodata so setting it causes an oops on some archs. But that's not all:

    1) module_param_array() on charp doesn't work reliably, since we use an
    uninitialized temporary struct kernel_param.
    2) there's a fundamental race if a module uses this parameter and then
    it's changed: they will still access the old, freed, memory.

    The simplest fix (ie. for 2.6.32) is to never free the memory. This
    prevents all these problems, at cost of a memory leak. In practice, there
    are only 18 places where a charp is writable via sysfs, and all are
    root-only writable.

    Reported-by: Takashi Iwai
    Cc: Sitsofe Wheeler
    Cc: Frederic Weisbecker
    Cc: Christof Schmitt
    Signed-off-by: Rusty Russell
    Cc: stable@kernel.org

    Rusty Russell
     

24 Oct, 2009

1 commit


23 Oct, 2009

1 commit

  • …n enabling/disabling swevent hrtimers

    Make the hrtimer based events work for sysprof.

    Whenever a swevent is scheduled out, the hrtimer is canceled.
    When it is scheduled back in, the timer is restarted. This
    happens every scheduler tick, which means the timer never
    expired because it was getting repeatedly restarted over and
    over with the same period.

    To fix that, save the remaining time when disabling; when
    reenabling, use that saved time as the period instead of the
    user-specified sampling period.

    Also, move the starting and stopping of the hrtimers to helper
    functions instead of duplicating the code.

    Signed-off-by: Søren Sandmann Pedersen <sandmann@redhat.com>
    LKML-Reference: <ye8vdi7mluz.fsf@camel16.daimi.au.dk>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>

    Soeren Sandmann
     

22 Oct, 2009

2 commits

  • This reverts "Add serial number support for virtio_blk, V4a".

    Turns out that virtio_pci, lguest and s/390 all have an 8 bit limit
    on virtio config space, so noone could ever use this.

    This is coming back later in a cleaner form.

    Signed-off-by: Rusty Russell
    Cc: john cooper
    Cc: Jens Axboe

    Rusty Russell
     
  • Rusty,

    commit 3ca4f5ca73057a617f9444a91022d7127041970a
    virtio: add virtio IDs file
    moved all device IDs into a single file. While the change itself is
    a very good one, it can break userspace applications. For example
    if a userspace tool wanted to get the ID of virtio_net it used to
    include virtio_net.h. This does no longer work, since virtio_net.h
    does not include virtio_ids.h.
    This patch moves all "#include " from the C
    files into the header files, making the header files compatible with
    the old ones.

    In addition, this patch exports virtio_ids.h to userspace.

    CC: Fernando Luis Vazquez Cao
    Signed-off-by: Christian Borntraeger
    Signed-off-by: Rusty Russell

    Christian Borntraeger
     

17 Oct, 2009

1 commit

  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    sata_mv: Prevent PIO commands to be defered too long if traffic in progress.
    pata_sc1200: Fix crash on boot
    libata: fix internal command failure handling
    libata: fix PMP initialization
    sata_nv: make sure link is brough up online when skipping hardreset
    ahci / atiixp / pci quirks: rename AMD SB900 into Hudson-2
    ahci: Add the AHCI controller Linux Device ID for NVIDIA chipsets.
    pata_via: extend the rev_max for VT6330

    Linus Torvalds
     

16 Oct, 2009

2 commits

  • This patch renames the code name SB900 into Hudson-2

    Signed-off-by: Shane Huang
    Signed-off-by: Jeff Garzik

    Shane Huang
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (53 commits)
    vmxnet: fix 2 build problems
    net: add support for STMicroelectronics Ethernet controllers.
    net: ks8851_mll uses mii interfaces
    net/fec_mpc52xx: Fix kernel panic on FEC error
    net: Fix OF platform drivers coldplug/hotplug when compiled as modules
    TI DaVinci EMAC: Clear statistics register properly.
    r8169: partial support and phy init for the 8168d
    irda/sa1100_ir: check return value of startup hook
    udp: Fix udp_poll() and ioctl()
    WAN: fix Cisco HDLC handshaking.
    tcp: fix tcp_defer_accept to consider the timeout
    3c574_cs: spin_lock the set_multicast_list function
    net: Teach pegasus driver to ignore bluetoother adapters with clashing Vendor:Product IDs
    netxen: fix pci bar mapping
    ethoc: fix warning from 32bit build
    libertas: fix build
    net: VMware virtual Ethernet NIC driver: vmxnet3
    net: Fix IXP 2000 network driver building.
    libertas: fix build
    mac80211: document ieee80211_rx() context requirement
    ...

    Linus Torvalds
     

15 Oct, 2009

2 commits

  • For the short term, map synchronize_rcu_expedited() to
    synchronize_rcu() for TREE_PREEMPT_RCU and to
    synchronize_sched_expedited() for TREE_RCU.

    Longer term, there needs to be a real expedited grace period for
    TREE_PREEMPT_RCU, but candidate patches to date are considerably
    more complex and intrusive.

    Signed-off-by: Paul E. McKenney
    Cc: laijs@cn.fujitsu.com
    Cc: dipankar@in.ibm.com
    Cc: mathieu.desnoyers@polymtl.ca
    Cc: josh@joshtriplett.org
    Cc: dvhltc@us.ibm.com
    Cc: niv@us.ibm.com
    Cc: peterz@infradead.org
    Cc: rostedt@goodmis.org
    Cc: Valdis.Kletnieks@vt.edu
    Cc: dhowells@redhat.com
    Cc: npiggin@suse.de
    Cc: jens.axboe@oracle.com
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Paul E. McKenney
     
  • It basically turns a delayed work into an immediate work, and then waits
    for it to finish.

    Linus Torvalds
     

14 Oct, 2009

3 commits

  • Yanmin reported that both tbench and hackbench were significantly
    hurt by trying to keep tasks local on these domains, esp on small
    cache machines.

    So disable it in order to promote spreading outside of the cache
    domains.

    Reported-by: "Zhang, Yanmin"
    Signed-off-by: Peter Zijlstra
    CC: Mike Galbraith
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    cciss: Add cciss_allow_hpsa module parameter
    cciss: Fix multiple calls to pci_release_regions
    blk-settings: fix function parameter kernel-doc notation
    writeback: kill space in debugfs item name
    writeback: account IO throttling wait as iowait
    elv_iosched_store(): fix strstrip() misuse
    cfq-iosched: avoid probable slice overrun when idling
    cfq-iosched: apply bool value where we return 0/1
    cfq-iosched: fix think time allowed for seekers
    cfq-iosched: fix the slice residual sign
    cfq-iosched: abstract out the 'may this cfqq dispatch' logic
    block: use proper BLK_RW_ASYNC in blk_queue_start_tag()
    block: Seperate read and write statistics of in_flight requests v2
    block: get rid of kblock_schedule_delayed_work()
    cfq-iosched: fix possible problem with jiffies wraparound
    cfq-iosched: fix issue with rq-rq merging and fifo list ordering

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes:
    kbuild: revert "save ARCH & CROSS_COMPILE ..."
    warn about use of uninstalled kernel headers
    kbuild: mkcompile_h: trivial cleanups
    kbuild: fix warning when domainname is not available
    kbuild: Fix size_append issue for bzip2/lzma kernel
    kbuild,scripts: use non-builtin echo for '-e'
    kbuild: fix the binrpm-pkg target to work with KBUILD_OUTPUT set

    Linus Torvalds
     

13 Oct, 2009

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
    PCI: Prevent AER driver from being loaded on non-root port PCIE devices
    PCI: get larger bridge ranges when space is available
    PCI: pci.c: fix kernel-doc notation
    PCI quirk: TI XIO200a erroneously reports support for fast b2b transfers
    PCI PM: Read device power state from register after updating it
    PCI: remove pci_assign_resource_fixed()
    PCI: PCIe portdrv: remove "-driver" from driver name

    Linus Torvalds
     

12 Oct, 2009

4 commits

  • User applications frequently hit problems when they try to use
    the kernel headers directly, rather than the exported headers.

    This adds an explicit warning for this case, and points to
    a URL holding an explanation of why this is wrong and what
    to do about it.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Sam Ravnborg

    Arnd Bergmann
     
  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6: (21 commits)
    [S390] dasd: fix race condition in resume code
    [S390] Add EX_TABLE for addressing exception in usercopy functions.
    [S390] 64-bit register support for 31-bit processes
    [S390] hibernate: Use correct place for CPU address in lowcore
    [S390] pm: ignore time spend in suspended state
    [S390] zcrypt: Improve some comments
    [S390] zcrypt: Fix sparse warning.
    [S390] perf_counter: fix vdso detection
    [S390] ftrace: drop nmi protection
    [S390] compat: fix truncate system call wrapper
    [S390] Provide arch specific mdelay implementation.
    [S390] Fix enabled udelay for short delays.
    [S390] cio: allow setting boxed devices offline
    [S390] cio: make not operational handling consistent
    [S390] cio: make disconnected handling consistent
    [S390] Fix memory leak in /proc/cio_ignore
    [S390] cio: channel path memory leak
    [S390] module: fix memory leak in s390 module loader
    [S390] Enable kmemleak on s390.
    [S390] 3270 console build fix
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (32 commits)
    USB: serial: no unnecessary GFP_ATOMIC in oti6858
    USB: serial: fix race between unthrottle and completion handler in visor
    USB: serial: fix assumption that throttle/unthrottle cannot sleep
    USB: serial: fix race between unthrottle and completion handler in symbolserial
    USB: serial: fix race between unthrottle and completion handler in opticon
    USB: ehci: Fix isoc scheduling boundary checking.
    USB: storage: When a device returns no sense data, call it a Hardware Error
    USB: small fix in error case of suspend in generic usbserial code
    USB: visor: fix trivial accounting bug in visor driver
    USB: Fix throttling in generic usbserial driver
    USB: cp210x: Add support for the DW700 UART
    USB: ipaq: fix oops when device is plugged in
    USB: isp1362: fix build warnings on 64-bit systems
    USB: gadget: imx_udc: Use resource size
    USB: storage: iRiver P7 UNUSUAL_DEV patch
    USB: musb: make HAVE_CLK support optional
    USB: xhci: Fix dropping endpoints from the xHC schedule.
    USB: xhci: Don't wait for a disable slot cmd when HC dies.
    USB: xhci: Handle canceled URBs when HC dies.
    USB: xhci: Stop debugging polling loop when HC dies.
    ...

    Linus Torvalds
     
  • After m68k's task_thread_info() doesn't refer to current,
    it's possible to remove sched.h from interrupt.h and not break m68k!
    Many thanks to Heiko Carstens for allowing this.

    Signed-off-by: Alexey Dobriyan

    Alexey Dobriyan
     

10 Oct, 2009

2 commits

  • This patch (as1295) fixes a recently-added bug in the USB serial core.
    If certain kinds of errors occur during probing, the core may call a
    serial driver's release method without previously calling the attach
    method. This causes some drivers (io_ti in particular) to perform an
    invalid memory access.

    The patch adds a new flag to keep track of whether or not attach has
    been called.

    Signed-off-by: Alan Stern
    Tested-by: Jean-Denis Girard
    CC: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: i8042 - print debug data when testing AUX IRQ delivery
    Input: libps2 - fix dependancy on i8042
    Input: fix rx51 board keymap
    Input: ad7879 - pass up error codes from probe functions
    Input: xpad - add BigBen Interactive XBOX 360 Controller
    Input: rotary_encoder - fix relative axis support
    Input: sparkspkr - move remove() functions to .devexit.text
    Input: wistron_btns - add DMI entry for Medion WIM2030 laptop

    Linus Torvalds
     

09 Oct, 2009

6 commits

  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    pata_atp867x: add Power Management support
    pata_atp867x: PIO support fixes
    pata_atp867x: clarifications in timings calculations and cable detection
    pata_atp867x: fix it to not claim MWDMA support
    libata: fix incorrect link online check during probe
    ahci: filter FPDMA non-zero offset enable for Aspire 3810T
    libata: make gtf_filter per-dev
    libata: implement more acpi filtering options
    libata: cosmetic updates
    ahci: display all AHCI 1.3 HBA capability flags (v2)
    pata_ali: trivial fix of a very frequent spelling mistake
    ahci: disable 64bit DMA by default on SB600s

    Linus Torvalds
     
  • …/git/tip/linux-2.6-tip

    * 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    futex: fix requeue_pi key imbalance
    futex: Fix typo in FUTEX_WAIT/WAKE_BITSET_PRIVATE definitions
    rcu: Place root rcu_node structure in separate lockdep class
    rcu: Make hot-unplugged CPU relinquish its own RCU callbacks
    rcu: Move rcu_barrier() to rcutree
    futex: Move exit_pi_state() call to release_mm()
    futex: Nullify robust lists after cleanup
    futex: Fix locking imbalance
    panic: Fix panic message visibility by calling bust_spinlocks(0) before dying
    rcu: Replace the rcu_barrier enum with pointer to call_rcu*() function
    rcu: Clean up code based on review feedback from Josh Triplett, part 4
    rcu: Clean up code based on review feedback from Josh Triplett, part 3
    rcu: Fix rcu_lock_map build failure on CONFIG_PROVE_LOCKING=y
    rcu: Clean up code to address Ingo's checkpatch feedback
    rcu: Clean up code based on review feedback from Josh Triplett, part 2
    rcu: Clean up code based on review feedback from Josh Triplett

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, pci: Correct spelling in a comment
    x86: Simplify bound checks in the MTRR code
    x86: EDAC: carve out AMD MCE decoding logic
    initcalls: Add early_initcall() for modules
    x86: EDAC: MCE: Fix MCE decoding callback logic

    Linus Torvalds
     
  • …nel/git/tip/linux-2.6-tip

    * 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    tracing: user local buffer variable for trace branch tracer
    tracing: fix warning on kernel/trace/trace_branch.c andtrace_hw_branches.c
    ftrace: check for failure for all conversions
    tracing: correct module boundaries for ftrace_release
    tracing: fix transposed numbers of lock_depth and preempt_count
    trace: Fix missing assignment in trace_ctxwake_*
    tracing: Use free_percpu instead of kfree
    tracing: Check total refcount before releasing bufs in profile_enable failure

    Linus Torvalds
     
  • …/linux/kernel/git/tip/linux-2.6-tip

    * 'sparc-perf-events-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    mm, perf_event: Make vmalloc_user() align base kernel virtual address to SHMLBA
    perf_event: Provide vmalloc() based mmap() backing

    Linus Torvalds
     
  • …el/git/tip/linux-2.6-tip

    * 'perf-fixes-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    perf_events: Make ABI definitions available to userspace
    perf tools: elf_sym__is_function() should accept "zero" sized functions
    tracing/syscalls: Use long for syscall ret format and field definitions
    perf trace: Update eval_flag() flags array to match interrupt.h
    perf trace: Remove unused code in builtin-trace.c
    perf: Propagate term signal to child

    Linus Torvalds