21 Jul, 2012

7 commits


11 Jul, 2012

1 commit


07 Jul, 2012

2 commits

  • Pull ocfs2 fixes from Joel Becker.

    * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2:
    aio: make kiocb->private NUll in init_sync_kiocb()
    ocfs2: Fix bogus error message from ocfs2_global_read_info
    ocfs2: for SEEK_DATA/SEEK_HOLE, return internal error unchanged if ocfs2_get_clusters_nocache() or ocfs2_inode_lock() call failed.
    ocfs2: use spinlock irqsave for downconvert lock.patch
    ocfs2: Misplaced parens in unlikley
    ocfs2: clear unaligned io flag when dio fails

    Linus Torvalds
     
  • Pull input layer fixes from Dmitry Torokhov:
    "Two fixes for regressions in Wacom driver and fixes for drivers using
    threaded IRQ framework without specifying IRQF_ONESHOT."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: request threaded-only IRQs with IRQF_ONESHOT
    Input: wacom - don't retrieve touch_max when it is predefined
    Input: wacom - fix retrieving touch_max bug
    Input: fix input.h kernel-doc warning

    Linus Torvalds
     

06 Jul, 2012

1 commit

  • Pull KVM fix from Marcelo Tosatti:
    "Memory leak and oops on the x86 mmu code, and sanitization of the
    KVM_IRQFD ioctl."

    * git://git.kernel.org/pub/scm/virt/kvm/kvm:
    KVM: MMU: fix shrinking page from the empty mmu
    KVM: fix fault page leak
    KVM: Sanitize KVM_IRQFD flags
    KVM: Add missing KVM_IRQFD API documentation
    KVM: Pass kvm_irqfd to functions

    Linus Torvalds
     

05 Jul, 2012

1 commit

  • Ocfs2 uses kiocb.*private as a flag of unsigned long size. In
    commit a11f7e6 ocfs2: serialize unaligned aio, the unaligned
    io flag is involved in it to serialize the unaligned aio. As
    *private is not initialized in init_sync_kiocb() of do_sync_write(),
    this unaligned io flag may be unexpectly set in an aligned dio.
    And this will cause OCFS2_I(inode)->ip_unaligned_aio decreased
    to -1 in ocfs2_dio_end_io(), thus the following unaligned dio
    will hang forever at ocfs2_aiodio_wait() in ocfs2_file_aio_write().

    Signed-off-by: Junxiao Bi
    Cc: stable@vger.kernel.org
    Acked-by: Jeff Moyer
    Signed-off-by: Joel Becker

    Junxiao Bi
     

04 Jul, 2012

2 commits

  • Pull networking update from David Miller:

    1) Fix RX sequence number handling in mwifiex, from Stone Piao.

    2) Netfilter ipset mis-compares device names, fix from Florian
    Westphal.

    3) Fix route leak in ipv6 IPVS, from Eric Dumazet.

    4) NFS fixes. Several buffer overflows in NCI layer from Dan
    Rosenberg, and release sock OOPS'er fix from Eric Dumazet.

    5) Fix WEP handling ath9k, we started using a bit the chip provides to
    indicate undecrypted packets but that bit turns out to be unreliable
    in certain configurations. Fix from Felix Fietkau.

    6) Fix Kconfig dependency bug in wlcore, from Randy Dunlap.

    7) New USB IDs for rtlwifi driver from Larry Finger.

    8) Fix crashes in qmi_wwan usbnet driver when disconnecting, from Bjørn
    Mork.

    9) Gianfar driver programs coalescing settings properly in single queue
    mode, but does not do so in multi-queue mode. Fix from Claudiu
    Manoil.

    10) Missing module.h include in davinci_cpdma.c, from Daniel Mack.

    11) Need dummy handler for IPSET_CMD_NONE otherwise we crash in ipset if
    we get this via nfnetlink, fix from Tomasz Bursztyka.

    12) Missing RCU unlock in nfnetlink error path, also from Tomasz.

    13) Fix divide by zero in igbvf when the user tries to set an RX
    coalescing value of 0 usecs, from Mitch A Williams.

    14) We can process SCTP sacks for the wrong transport, oops. Fix from
    Neil Horman.

    15) Remove hw IP payload checksumming from e1000e driver. This has zery
    value in our stack, and turning it on creates a very unintuitive
    restriction for users when using jumbo MTUs.

    Specifically, when IP payload checksums are on you cannot use both
    receive hashing offload and jumbo MTU. Fix from Bruce Allan.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (27 commits)
    e1000e: remove use of IP payload checksum
    sctp: be more restrictive in transport selection on bundled sacks
    igbvf: fix divide by zero
    netfilter: nfnetlink: fix missing rcu_read_unlock in nfnetlink_rcv_msg
    netfilter: ipset: fix crash if IPSET_CMD_NONE command is sent
    davinci_cpdma: include linux/module.h
    gianfar: Fix RXICr/TXICr programming for multi-queue mode
    net: Downgrade CAP_SYS_MODULE deprecated message from error to warning.
    net: qmi_wwan: fix Oops while disconnecting
    mwifiex: fix memory leak associated with IE manamgement
    ath9k: fix panic caused by returning a descriptor we have queued for reuse
    mac80211: correct behaviour on unrecognised action frames
    ath9k: enable serialize_regmode for non-PCIE AR9287
    rtlwifi: rtl8192cu: New USB IDs
    NFC: Return from rawsock_release when sk is NULL
    iwlwifi: fix activating inactive stations
    wlcore: drop INET dependency
    ath9k: fix dynamic WEP related regression
    NFC: Prevent multiple buffer overflows in NCI
    netfilter: update location of my trees
    ...

    Linus Torvalds
     
  • Pull block bits from Jens Axboe:
    "As vacation is coming up, thought I'd better get rid of my pending
    changes in my for-linus branch for this iteration. It contains:

    - Two patches for mtip32xx. Killing a non-compliant sysfs interface
    and moving it to debugfs, where it belongs.

    - A few patches from Asias. Two legit bug fixes, and one killing an
    interface that is no longer in use.

    - A patch from Jan, making the annoying partition ioctl warning a bit
    less annoying, by restricting it to !CAP_SYS_RAWIO only.

    - Three bug fixes for drbd from Lars Ellenberg.

    - A fix for an old regression for umem, it hasn't really worked since
    the plugging scheme was changed in 3.0.

    - A few fixes from Tejun.

    - A splice fix from Eric Dumazet, fixing an issue with pipe
    resizing."

    * 'for-linus' of git://git.kernel.dk/linux-block:
    scsi: Silence unnecessary warnings about ioctl to partition
    block: Drop dead function blk_abort_queue()
    block: Mitigate lock unbalance caused by lock switching
    block: Avoid missed wakeup in request waitqueue
    umem: fix up unplugging
    splice: fix racy pipe->buffers uses
    drbd: fix null pointer dereference with on-congestion policy when diskless
    drbd: fix list corruption by failing but already aborted reads
    drbd: fix access of unallocated pages and kernel panic
    xen/blkfront: Add WARN to deal with misbehaving backends.
    blkcg: drop local variable @q from blkg_destroy()
    mtip32xx: Create debugfs entries for troubleshooting
    mtip32xx: Remove 'registers' and 'flags' from sysfs
    blkcg: fix blkg_alloc() failure path
    block: blkcg_policy_cfq shouldn't be used if !CONFIG_CFQ_GROUP_IOSCHED
    block: fix return value on cfq_init() failure
    mtip32xx: Remove version.h header file inclusion
    xen/blkback: Copy id field when doing BLKIF_DISCARD.

    Linus Torvalds
     

03 Jul, 2012

1 commit


01 Jul, 2012

2 commits

  • It was noticed recently that when we send data on a transport, its possible that
    we might bundle a sack that arrived on a different transport. While this isn't
    a major problem, it does go against the SHOULD requirement in section 6.4 of RFC
    2960:

    An endpoint SHOULD transmit reply chunks (e.g., SACK, HEARTBEAT ACK,
    etc.) to the same destination transport address from which it
    received the DATA or control chunk to which it is replying. This
    rule should also be followed if the endpoint is bundling DATA chunks
    together with the reply chunk.

    This patch seeks to correct that. It restricts the bundling of sack operations
    to only those transports which have moved the ctsn of the association forward
    since the last sack. By doing this we guarantee that we only bundle outbound
    saks on a transport that has received a chunk since the last sack. This brings
    us into stricter compliance with the RFC.

    Vlad had initially suggested that we strictly allow only sack bundling on the
    transport that last moved the ctsn forward. While this makes sense, I was
    concerned that doing so prevented us from bundling in the case where we had
    received chunks that moved the ctsn on multiple transports. In those cases, the
    RFC allows us to select any of the transports having received chunks to bundle
    the sack on. so I've modified the approach to allow for that, by adding a state
    variable to each transport that tracks weather it has moved the ctsn since the
    last sack. This I think keeps our behavior (and performance), close enough to
    our current profile that I think we can do this without a sysctl knob to
    enable/disable it.

    Signed-off-by: Neil Horman
    CC: Vlad Yaseivch
    CC: David S. Miller
    CC: linux-sctp@vger.kernel.org
    Reported-by: Michele Baldessari
    Reported-by: sorin serban
    Acked-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Neil Horman
     
  • Fix kernel-doc warning. This struct member was removed in commit
    875682648b89 ("irq: Remove irq_chip->release()") so remove its
    associated kernel-doc entry also.

    Warning(include/linux/irq.h:338): Excess struct/union/enum/typedef member 'release' description in 'irq_chip'

    Signed-off-by: Randy Dunlap
    Cc: Richard Weinberger
    Cc: Thomas Gleixner
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

29 Jun, 2012

1 commit

  • Pull networking update from David Miller:

    1) Pairing and deadlock fixes in bluetooth from Johan Hedberg.

    2) Add device IDs for AR3011 and AR3012 bluetooth chips. From
    Giancarlo Formicuccia and Marek Vasut.

    3) Fix wireless regulatory deadlock, from Eliad Peller.

    4) Fix full TX ring panic in bnx2x driver, from Eric Dumazet.

    5) Revert the two commits that added skb_orphan_try(), it causes
    erratic bonding behavior with UDP clients and the gains it used to
    give are mostly no longer happening due to how BQL works. From Eric
    Dumazet.

    6) It took two tries, but Thomas Graf fixed a problem wherein we
    registered ipv6 routing procfs files before their backend data were
    initialized properly.

    7) Fix max GSO size setting in be2net, from Sarveshwar Bandi.

    8) PHY device id mask is wrong for KSZ9021 and KS8001 chips, fix from
    Jason Wang.

    9) Fix use of stale SKB data pointer after skb_linearize() call in
    batman-adv, from Antonio Quartulli.

    10) Fix memory leak in IXGBE due to missing __GFP_COMP, from Alexander
    Duyck.

    11) Fix probing of Gobi devices in qmi_wwan usbnet driver, from Bjørn
    Mork.

    12) Fix suspend/resume and open failure handling in usbnet from Ming
    Lei.

    13) Attempt to fix device r8169 hangs for certain chips, from Francois
    Romieu.

    14) Fix advancement of RX dirty pointer in some situations in sh_eth
    driver, from Yoshihiro Shimoda.

    15) Attempt to fix restart of IPV6 routing table dumps when there is an
    intervening table update. From Eric Dumazet.

    16) Respect security_inet_conn_request() return value in ipv6 TCP. From
    Neal Cardwell.

    17) Add another iPAD device ID to ipheth driver, from Davide Gerhard.

    18) Fix access to freed SKB in l2tp_eth_dev_xmit(), and fix l2tp lockdep
    splats, from Eric Dumazet.

    19) Make sure all bridge devices, regardless of whether they were
    created via netlink or ioctls, have their rtnetlink ops hooked up.
    From Thomas Graf and Stephen Hemminger.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (81 commits)
    9p: fix min_t() casting in p9pdu_vwritef()
    can: flexcan: use be32_to_cpup to handle the value of dt entry
    xen/netfront: teardown the device before unregistering it.
    bridge: Assign rtnl_link_ops to bridge devices created via ioctl (v2)
    vhost: use USER_DS in vhost_worker thread
    ixgbe: Do not pad FCoE frames as this can cause issues with FCoE DDP
    net: l2tp_eth: use LLTX to avoid LOCKDEP splats
    mac802154: add missed braces
    net: l2tp_eth: fix l2tp_eth_dev_xmit race
    net/mlx4_en: Release QP range in free_resources
    net/mlx4: Use single completion vector after NOP failure
    net/mlx4_en: Set correct port parameters during device initialization
    ipheth: add support for iPad
    caif-hsi: Add missing return in error path
    caif-hsi: Bugfix - Piggyback'ed embedded CAIF frame lost
    caif: Clear shutdown mask to zero at reconnect.
    tcp: heed result of security_inet_conn_request() in tcp_v6_conn_request()
    ipv6: fib: fix fib dump restart
    batman-adv: fix race condition in TT full-table replacement
    batman-adv: only drop packets of known wifi clients
    ...

    Linus Torvalds
     

28 Jun, 2012

1 commit

  • Pull USB fixes from Greg Kroah-Hartman:
    "Here are some small USB gadget bugfixes, and a few new USB device ids
    added to some drivers for the 3.5-rc5 release.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'usb-3.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
    USB: CP210x Add 10 Device IDs
    USB: option: Add USB ID for Novatel Ovation MC551
    usb: phy: Fix Kconfig dependency for Phy drivers
    usb-storage: revert commit afff07e61a52 (Add 090c:1000 to unusal-devs)
    SCSI & usb-storage: add try_rc_10_first flag
    usb: musb: host: release dma channels if no active io
    usb: gadget: lpc32xx_udc: fix build error with debugfs enabled
    usb: otg: twl6030-usb: Fix twl writes
    USB: option: add id for Cellient MEN-200
    usb: dwc3: fix giveback of queued request in ep_dequeue
    usb: gadget: Complete fsl qe/udc driver conversion

    Linus Torvalds
     

26 Jun, 2012

3 commits

  • Pull media fixes from Mauro Carvalho Chehab.

    Trivial conflict due to new USB HID ID's being added next to each other
    (Baanto vs Axentia).

    * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (44 commits)
    [media] smia: Fix compile failures
    [media] Fix VIDIOC_DQEVENT docbook entry
    [media] s5p-fimc: Fix control creation function
    [media] s5p-mfc: Fix checkpatch error in s5p_mfc_shm.h file
    [media] s5p-mfc: Fix setting controls
    [media] v4l/s5p-mfc: added image size align in VIDIOC_TRY_FMT
    [media] v4l/s5p-mfc: corrected encoder v4l control definitions
    [media] v4l: mem2mem_testdev: Fix race conditions in driver
    [media] s5p-mfc: Bug fix of timestamp/timecode copy mechanism
    [media] cxd2820r: Fix an incorrect modulation type bitmask
    [media] em28xx: Show a warning if the board does not support remote controls
    [media] em28xx: Add remote control support for Terratec's Cinergy HTC Stick HD
    [media] USB: Staging: media: lirc: initialize spinlocks before usage
    [media] Revert "[media] media: mx2_camera: Fix mbus format handling"
    [media] bw-qcam: driver and pixfmt documentation fixes
    [media] cx88: fix firmware load on big-endian systems
    [media] cx18: support big-endian systems
    [media] ivtv: fix support for big-endian systems
    [media] tuner-core: return the frequency range of the correct tuner
    [media] v4l2-dev.c: fix g_parm regression in determine_valid_ioctls()
    ...

    Linus Torvalds
     
  • Commit 2603efa31a03 ("bug.h: Fix up powerpc build regression") corrected
    the powerpc build case and extended the __ASSEMBLY__ guards, but it also
    got caught in pre-processor hell accidentally matching the else case of
    CONFIG_BUG resulting in the BUG disabled case tripping up on
    -Werror=implicit-function-declaration.

    It's not possible to __ASSEMBLY__ guard the entire file as architecture
    code needs to get at the BUGFLAG_WARNING definition in the GENERIC_BUG
    case, but the rest of the CONFIG_BUG=y/n case needs to be guarded.

    Rather than littering endless __ASSEMBLY__ checks in each of the if/else
    cases we just move the BUGFLAG definitions up under their own
    GENERIC_BUG test and then shove everything else under one big
    __ASSEMBLY__ guard.

    Build tested on all of x86 CONFIG_BUG=y, CONFIG_BUG=n, powerpc (due to
    it's dependence on BUGFLAG definitions in assembly code), and sh (due to
    not bringing in linux/kernel.h to satisfy the taint flag definitions used
    by the generic bug code).

    Hopefully that's the end of the corner cases and I can abstain from ever
    having to touch this infernal header ever again.

    Reported-by: Fengguang Wu
    Tested-by: Fengguang Wu
    Acked-by: Randy Dunlap
    Cc: Arnd Bergmann
    Signed-off-by: Paul Mundt
    Signed-off-by: Linus Torvalds

    Paul Mundt
     
  • This is needed to sync up with the previous USB changes that were merged in
    Linus's branch.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

25 Jun, 2012

1 commit

  • Pull drm fixes from Dave Airlie:
    "Nothing major in here, one radeon SI fix for tiling, and one uninit
    var fix, two minor header file fixes."

    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
    drm: drop comment about this header being autogenerated.
    drm/edid: don't return stack garbage from supports_rb
    vga_switcheroo: Add include guard
    drm/radeon: SI tiling fixes for display

    Linus Torvalds
     

23 Jun, 2012

2 commits

  • Several bug reports have been received recently for USB mass-storage
    devices that don't handle READ CAPACITY(16) commands properly. They
    report bogus sizes, in some cases becoming unusable as a result.

    The bugs were triggered by commit
    09b6b51b0b6c1b9bb61815baf205e4d74c89ff04 (SCSI & usb-storage: add
    flags for VPD pages and REPORT LUNS), which caused usb-storage to stop
    overriding the SCSI level reported by devices. By default, the sd
    driver will try READ CAPACITY(16) first for any device whose level is
    above SCSI_SPC_2.

    It seems likely that any device large enough to require the use of
    READ CAPACITY(16) (i.e., 2 TB or more) would be able to handle READ
    CAPACITY(10) commands properly. Indeed, I don't know of any devices
    that don't handle READ CAPACITY(10) properly.

    Therefore this patch (as1559) adds a new flag telling the sd driver
    to try READ CAPACITY(10) before READ CAPACITY(16), and sets this flag
    for every USB mass-storage device. If a device really is larger than
    2 TB, sd will fall back to READ CAPACITY(16) just as it used to.

    This fixes Bugzilla #43391.

    Signed-off-by: Alan Stern
    Acked-by: Hans de Goede
    CC: "James E.J. Bottomley"
    CC: Matthew Dharm
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • Pull perf updates from Ingo Molnar.

    * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    ftrace: Make all inline tags also include notrace
    perf: Use css_tryget() to avoid propping up css refcount
    perf tools: Fix synthesizing tracepoint names from the perf.data headers
    perf stat: Fix default output file
    perf tools: Fix endianity swapping for adds_features bitmask

    Linus Torvalds
     

22 Jun, 2012

2 commits

  • This comment is well out of date.

    Signed-off-by: Dave Airlie

    Dave Airlie
     
  • Pull NFS client bugfixes from Trond Myklebust:
    - Fix a write hang due to an uninitalised variable when
    !defined(CONFIG_NFS_V4)
    - Address upcall races in the legacy NFSv4 idmapper
    - Remove an O_DIRECT refcounting issue
    - Fix a pNFS refcounting bug when the file layout metadata server is
    also acting as a data server
    - Fix a pNFS module loading race.

    * tag 'nfs-for-3.5-3' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
    NFS: Force the legacy idmapper to be single threaded
    NFS: Initialise commit_info.rpc_out when !defined(CONFIG_NFS_V4)
    NFS: Fix a refcounting issue in O_DIRECT
    NFSv4.1: Fix a race in set_pnfs_layoutdriver
    NFSv4.1: Fix umount when filelayout DS is also the MDS

    Linus Torvalds
     

21 Jun, 2012

7 commits

  • Guard vga_switcheroo.h against multiple inclusion.

    Signed-off-by: Ozan Çağlayan
    Signed-off-by: Dave Airlie

    Ozan Çağlayan
     
  • Pull staging tree fixes from Greg Kroah-Hartman:
    "Here are a number of small fixes for the drivers/staging tree, as well
    as iio and pstore drivers (which came from the staging tree in the
    3.5-rc1 merge). All of these are tiny, but resolve issues that people
    have been reporting.

    There's also a documentation update to reflect what the iio drivers
    really are doing, which is good to get straightened out.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'staging-3.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
    staging: r8712u: Add new USB IDs
    staging: gdm72xx: Release netlink socket properly
    iio: drop wrong reference from Kconfig
    pstore/inode: Make pstore_fill_super() static
    pstore/ram: Should zap persistent zone on unlink
    pstore/ram_core: Factor persistent_ram_zap() out of post_init()
    pstore/ram_core: Do not reset restored zone's position and size
    pstore/ram: Should update old dmesg buffer before reading
    staging:iio:ad7298: Fix linker error due to missing IIO kfifo buffer
    Revert "staging: usbip: bugfix for stack corruption on 64-bit architectures"
    staging: usbip: bugfix for stack corruption on 64-bit architectures
    staging/comedi: fix build for USB not enabled
    staging: omapdrm: fix crash when freeing bad fb
    staging:iio:ad7606: Re-add missing scale attribute
    iio: Fix potential use after free
    staging:iio: remove num_interrupt_lines from documentation
    iio: documentation: Add out_altvoltage and friends

    Linus Torvalds
     
  • Pull driver core and printk fixes from Greg Kroah-Hartman:
    "Here are some fixes for 3.5-rc4 that resolve the kmsg problems that
    people have reported showing up after the printk and kmsg changes went
    into 3.5-rc1. There are also a smattering of other tiny fixes for the
    extcon and hyper-v drivers that people have reported.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'driver-core-3.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
    extcon: max8997: Add missing kfree for info->edev in max8997_muic_remove()
    extcon: Set platform drvdata in gpio_extcon_probe() and fix irq leak
    extcon: Fix wrong index in max8997_extcon_cable[]
    kmsg - kmsg_dump() fix CONFIG_PRINTK=n compilation
    printk: return -EINVAL if the message len is bigger than the buf size
    printk: use mutex lock to stop syslog_seq from going wild
    kmsg - kmsg_dump() use iterator to receive log buffer content
    vme: change maintainer e-mail address
    Extcon: Don't try to create duplicate link names
    driver core: fixup reversed deferred probe order
    printk: Fix alignment of buf causing crash on ARM EABI
    Tools: hv: verify origin of netlink connector message

    Linus Torvalds
     
  • * emailed from Andrew Morton : (21 patches)
    mm/memblock: fix overlapping allocation when doubling reserved array
    c/r: prctl: Move PR_GET_TID_ADDRESS to a proper place
    pidns: find_new_reaper() can no longer switch to init_pid_ns.child_reaper
    pidns: guarantee that the pidns init will be the last pidns process reaped
    fault-inject: avoid call to random32() if fault injection is disabled
    Viresh has moved
    get_maintainer: Fix --help warning
    mm/memory.c: fix kernel-doc warnings
    mm: fix kernel-doc warnings
    mm: correctly synchronize rss-counters at exit/exec
    mm, thp: print useful information when mmap_sem is unlocked in zap_pmd_range
    h8300: use the declarations provided by
    h8300: fix use of extinct _sbss and _ebss
    xtensa: use the declarations provided by
    xtensa: use "test -e" instead of bashism "test -a"
    xtensa: replace xtensa-specific _f{data,text} by _s{data,text}
    memcg: fix use_hierarchy css_is_ancestor oops regression
    mm, oom: fix and cleanup oom score calculations
    nilfs2: ensure proper cache clearing for gc-inodes
    thp: avoid atomic64_read in pmd_read_atomic for 32bit PAE
    ...

    Linus Torvalds
     
  • viresh.kumar@st.com email-id doesn't exist anymore as I have left the
    company. Replace ST's id with viresh.linux@gmail.com.

    It also updates .mailmap file to fix address for 'git shortlog'

    Signed-off-by: Viresh Kumar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Viresh Kumar
     
  • In the x86 32bit PAE CONFIG_TRANSPARENT_HUGEPAGE=y case while holding the
    mmap_sem for reading, cmpxchg8b cannot be used to read pmd contents under
    Xen.

    So instead of dealing only with "consistent" pmdvals in
    pmd_none_or_trans_huge_or_clear_bad() (which would be conceptually
    simpler) we let pmd_none_or_trans_huge_or_clear_bad() deal with pmdvals
    where the low 32bit and high 32bit could be inconsistent (to avoid having
    to use cmpxchg8b).

    The only guarantee we get from pmd_read_atomic is that if the low part of
    the pmd was found null, the high part will be null too (so the pmd will be
    considered unstable). And if the low part of the pmd is found "stable"
    later, then it means the whole pmd was read atomically (because after a
    pmd is stable, neither MADV_DONTNEED nor page faults can alter it anymore,
    and we read the high part after the low part).

    In the 32bit PAE x86 case, it is enough to read the low part of the pmdval
    atomically to declare the pmd as "stable" and that's true for THP and no
    THP, furthermore in the THP case we also have a barrier() that will
    prevent any inconsistent pmdvals to be cached by a later re-read of the
    *pmd.

    Signed-off-by: Andrea Arcangeli
    Cc: Jonathan Nieder
    Cc: Ulrich Obergfell
    Cc: Mel Gorman
    Cc: Hugh Dickins
    Cc: Larry Woodman
    Cc: Petr Matousek
    Cc: Rik van Riel
    Cc: Jan Beulich
    Cc: KOSAKI Motohiro
    Tested-by: Andrew Jones
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrea Arcangeli
     
  • On arches that do not support this_cpu_cmpxchg_double() slab_lock is used
    to do atomic cmpxchg() on double word which contains page->_count. The
    page count can be changed from get_page() or put_page() without taking
    slab_lock. That corrupts page counter.

    Fix it by moving page->_count out of cmpxchg_double data. So that slub
    does no change it while updating slub meta-data in struct page.

    [akpm@linux-foundation.org: use standard comment layout, tweak comment text]
    Reported-by: Amey Bhide
    Signed-off-by: Pravin B Shelar
    Acked-by: Christoph Lameter
    Cc: Pekka Enberg
    Cc: Andrea Arcangeli
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pravin B Shelar
     

20 Jun, 2012

1 commit

  • Pull sound fixes from Takashi Iwai:
    "Most of changes are fairly small and driver-specific.

    A remaining regression fix for USB-audio sync pipe check, a fix for
    HD-audio power-up sequence, fixes for ASoC pxa-ssp compile issues, and
    bunch of ASoC codec and trivial fix patches."

    * tag 'sound-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
    ALSA: 6fire: use NULL instead of 0 for pointer assignment
    ALSA: hda - Handle open while transitioning to D3.
    ALSA: snd-usb: make snd_usb_substream_capture_trigger static
    ALSA: snd-usb: fix sync pipe check
    ASoC: tegra+wm8903: turn of mic detect when card is removed
    ASoC: wm8996: Mark the CODEC as cache only when powering off on boot
    ASoC: wm8996: Move reset before the initial regulator disable
    ASoC: wm8996: Remove spurious regulator_bulk_free()
    ASoC: wm8904: Fix cache only management
    ASoC: wm8904: Fix GPIO and MICBIAS initialisation for regmap conversion
    ASoC: fix pxa-ssp compiling issue under mach-mmp
    ARM: MMP: add pxa910-ssp into ssp_id_table

    Linus Torvalds
     

19 Jun, 2012

4 commits

  • Signed-off-by: Kay Sievers
    Cc: Stephen Rothwell
    Reported-by: Randy Dunlap
    Reported-by: Fengguang Wu
    Signed-off-by: Greg Kroah-Hartman

    Kay Sievers
     
  • …wireless into for-davem

    John W. Linville
     
  • Pull MMC fixes from Chris Ball:
    - atmel-mci: Fixes for NULL timer and DMA burst/chunk size
    - dw_mmc: Fix DMA ordering, clkdiv calculation, NULL host->data
    - mxs_mmc: Compile fix for CONFIG_OF=y && CONFIG_PM=n
    - omap: Fix NULL deref in mmc_omap_remove_slot(), reg_shift initialization
    - sdhci-s3c: Fix boot regression by adding IRQF_ONESHOT flag
    - Small fixes to core/sd, core/sdio, sdhci

    * tag 'mmc-fixes-for-3.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc:
    mmc: mxs-mmc: Move of_match_table out of CONFIG_PM
    mmc: sdhci-s3c: pass IRQF ONESHOT to request threaded irq
    mmc: core: return an error on suspend if mmc_deselect_cards fails
    mmc: omap: Fix broken reg_shift initialization
    mmc: omap: Fix NULL pointer dereference if mmc_omap_new_slot() fails
    mmc: omap: Fix a section warning regression
    mmc: dw_mmc: correct the calculation for CLKDIV
    mmc: dw_mmc: fix incorrect setting of host->data of NULL
    mmc: dw_mmc: fix the IDMAC sw reset
    mmc: dw_mmc: fix the transmission handling in IDMAC
    mmc: sdio: fix setting card data bus width as 4-bit
    mmc: atmel-mci: fix burst/chunk size modification
    mmc: atmel-mci: fix data timeout issue
    mmc: sdhci: Use DBG() instead of pr_warning() on large timeout

    Linus Torvalds
     
  • The asm-generic/bug.h __ASSEMBLY__ guarding is completely bogus, which
    tripped up the powerpc build when the kernel.h include was added:

    In file included from include/asm-generic/bug.h:5:0,
    from arch/powerpc/include/asm/bug.h:127,
    from arch/powerpc/kernel/head_64.S:31:
    include/linux/kernel.h:44:0: warning: "ALIGN" redefined [enabled by default]
    include/linux/linkage.h:57:0: note: this is the location of the previous definition
    include/linux/sysinfo.h: Assembler messages:
    include/linux/sysinfo.h:7: Error: Unrecognized opcode: `struct'
    include/linux/sysinfo.h:8: Error: Unrecognized opcode: `__kernel_long_t'

    Moving the __ASSEMBLY__ guard up and stashing the kernel.h include under
    it fixes this up, as well as covering the case the original fix was
    attempting to handle.

    Tested-by: Stephen Rothwell
    Acked-by: Arnd Bergmann
    Signed-off-by: Paul Mundt
    Signed-off-by: Linus Torvalds

    Paul Mundt
     

18 Jun, 2012

1 commit

  • Commit 5963e317b1e9d2a ("ftrace/x86: Do not change stacks in DEBUG when
    calling lockdep") prevented lockdep calls from the int3 breakpoint handler
    from reseting the stack if a function that was called was in the process
    of being converted for tracing and had a breakpoint on it. The idea is,
    before calling the lockdep code, do a load_idt() to the special IDT that
    kept the breakpoint stack from reseting. This worked well as a quick fix
    for this kernel release, until a certain config caused a lockup in the
    function tracer start up tests.

    Investigating it, I found that the load_idt that was used to prevent
    the int3 from changing stacks was itself being traced!

    Even though the config had CONFIG_OPTIMIZE_INLINING disabled, and
    all 'inline' tags were set to always inline, there were still cases that
    it did not inline! This was caused by CONFIG_PARAVIRT_GUEST, where it
    would add a pointer to the native_load_idt() which made that function
    to be traced.

    Commit 45959ee7aa645815a ("ftrace: Do not function trace inlined functions")
    only touched the 'inline' tags when CONFIG_OPMITIZE_INLINING was enabled.
    PARAVIRT_GUEST shows that this was not enough and we need to also
    mark always_inline with notrace as well.

    Reported-by: Fengguang Wu
    Tested-by: Fengguang Wu
    Signed-off-by: Steven Rostedt

    Steven Rostedt