06 Jan, 2015

4 commits


05 Jan, 2015

2 commits

  • Pull UML fixes from Richard Weinberger:
    "Two fixes for UML regressions. Nothing exciting"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
    x86, um: actually mark system call tables readonly
    um: Skip futex_atomic_cmpxchg_inatomic() test

    Linus Torvalds
     
  • Commit 9fc2105aeaaf ("ARM: 7830/1: delay: don't bother reporting
    bogomips in /proc/cpuinfo") breaks audio in python, and probably
    elsewhere, with message

    FATAL: cannot locate cpu MHz in /proc/cpuinfo

    I'm not the first one to hit it, see for example

    https://theredblacktree.wordpress.com/2014/08/10/fatal-cannot-locate-cpu-mhz-in-proccpuinfo/
    https://devtalk.nvidia.com/default/topic/765800/workaround-for-fatal-cannot-locate-cpu-mhz-in-proc-cpuinf/?offset=1

    Reading original changelog, I have to say "Stop breaking working setups.
    You know who you are!".

    Signed-off-by: Pavel Machek
    Signed-off-by: Linus Torvalds

    Pavel Machek
     

04 Jan, 2015

2 commits

  • Commit a074335a370e ("x86, um: Mark system call tables readonly") was
    supposed to mark the sys_call_table in UML as RO by adding the const,
    but it doesn't have the desired effect as it's nevertheless being placed
    into the data section since __cacheline_aligned enforces sys_call_table
    being placed into .data..cacheline_aligned instead. We need to use
    the ____cacheline_aligned version instead to fix this issue.

    Before:

    $ nm -v arch/x86/um/sys_call_table_64.o | grep -1 "sys_call_table"
    U sys_writev
    0000000000000000 D sys_call_table
    0000000000000000 D syscall_table_size

    After:

    $ nm -v arch/x86/um/sys_call_table_64.o | grep -1 "sys_call_table"
    U sys_writev
    0000000000000000 R sys_call_table
    0000000000000000 D syscall_table_size

    Fixes: a074335a370e ("x86, um: Mark system call tables readonly")
    Cc: H. Peter Anvin
    Cc: Andrew Morton
    Signed-off-by: Daniel Borkmann
    Signed-off-by: Richard Weinberger

    Daniel Borkmann
     
  • futex_atomic_cmpxchg_inatomic() does not work on UML because
    it triggers a copy_from_user() in kernel context.
    On UML copy_from_user() can only be used if the kernel was called
    by a real user space process such that UML can use ptrace()
    to fetch the value.

    Reported-by: Miklos Szeredi
    Suggested-by: Geert Uytterhoeven
    Signed-off-by: Richard Weinberger
    Tested-by: Daniel Walter

    Richard Weinberger
     

03 Jan, 2015

3 commits

  • Pull SCSI fixes from James Bottomley:
    "This is a set of three fixes: one to correct an abort path thinko
    causing failures (and a panic) in USB on device misbehaviour, One to
    fix an out of order issue in the fnic driver and one to match discard
    expectations to qemu which otherwise cause Linux to behave badly as a
    guest"

    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
    SCSI: fix regression in scsi_send_eh_cmnd()
    fnic: IOMMU Fault occurs when IO and abort IO is out of order
    sd: tweak discard heuristics to work around QEMU SCSI issue

    Linus Torvalds
     
  • Pull sound fixes from Takashi Iwai:
    "Nothing too exciting as a new year's start here: most of fixes are for
    ASoC, a boot crash fix on OMAP for deferred probe, a few driver
    specific fixes (Intel, dwc, rockchip, rt5677), in addition to typo
    fixes in kerneldoc comments for PCM"

    * tag 'sound-3.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
    ALSA: pcm: Fix kerneldoc for params_*() functions
    ASoC: rockchip: i2s: fix maxburst of dma data to 4
    ASoC: rockchip: i2s: fix error defination of transmit data level
    ASoC: Intel: correct the fixed free block allocation
    ASoC: rt5677: fixed rt5677_dsp_vad_put rt5677_dsp_vad_get panic
    ASoC: Intel: Fix BYTCR machine driver MODULE_ALIAS
    ASoC: Intel: Fix BYTCR firmware name
    ASoC: dwc: Iterate over all channels
    ASoC: dwc: Ensure FIFOs are flushed to prevent channel swap
    ASoC: Intel: Add I2C dependency to two new machines
    ASoC: dapm: Remove snd_soc_of_parse_audio_routing() due to deferred probe

    Linus Torvalds
     
  • Pull vhost cleanup and virtio bugfix
    "There's a single change here, fixing a vhost bug where vhost
    initialization fails due to used ring alignment check being too
    strict"

    * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
    vhost: relax used address alignment
    virtio_ring: document alignment requirements

    Linus Torvalds
     

01 Jan, 2015

4 commits


31 Dec, 2014

9 commits

  • Follow aa0d53260596 ("ia64: Use preempt_schedule_irq") and use
    preempt_schedule_irq instead of enabling/disabling interrupts and
    messing around with PREEMPT_ACTIVE in the nios2 low-level preemption
    code ourselves. Also get rid of the now needless re-check for
    TIF_NEED_RESCHED, preempt_schedule_irq will already take care of
    rescheduling.

    This also fixes the following build error when building with
    CONFIG_PREEMPT:

    arch/nios2/kernel/built-in.o: In function `need_resched':
    arch/nios2/kernel/entry.S:374: undefined reference to `PREEMPT_ACTIVE'

    Cc: Thomas Gleixner
    Signed-off-by: Tobias Klauser
    Acked-by: Ley Foon Tan

    Tobias Klauser
     
  • This patch initializes the mmu field of the cpuinfo structure to the
    value supplied by the devicetree.

    Signed-off-by: Walter Goossens
    Acked-by: Ley Foon Tan

    Walter Goossens
     
  • Pull ARM SoC fixes from Arnd Bergmann:
    "A very small set of fixes for 3.19, as everyone was out.

    The clocksource patch was something I missed for the merge window
    after the change that broke arm64 was merged through arm-soc. The
    other two patches are a fix for an undetected merge problem in mvebu
    and a defconfig change to make some exynos boards work with the normal
    multi_v7_defconfig"

    * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    Add USB_EHCI_EXYNOS to multi_v7_defconfig
    ARM: mvebu: Fix pinctrl configuration for Armada 370 DB
    clocksource: arch_timer: Only use the virtual counter (CNTVCT) on arm64

    Linus Torvalds
     
  • Pull fbdev fixes from Tomi Valkeinen:

    - Fix regression with Nokia N900 display

    - Fix crash on fbdev using freed __initdata logos

    - Fix fb_deferred_io_fsync() return value.

    * tag 'fbdev-fixes-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux:
    OMAPDSS: SDI: fix output port_num
    video/fbdev: fix defio's fsync
    video/logo: prevent use of logos after they have been freed
    OMAPDSS: pll: NULL dereference in error handling
    OMAPDSS: HDMI: remove double initializer entries

    Linus Torvalds
     
  • Pull input layer fixes from Dmitry Torokhov:
    "Fixes for v7 protocol for ALPS devices and few other driver fixes.

    Also users can request input events to be stamped with boot time
    timestamps, in addition to real and monotonic timestamps"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: hil_kbd - fix incorrect use of init_completion
    Input: alps - v7: document the v7 touchpad packet protocol
    Input: alps - v7: fix finger counting for > 2 fingers on clickpads
    Input: alps - v7: sometimes a single touch is reported in mt[1]
    Input: alps - v7: ignore new packets
    Input: evdev - add CLOCK_BOOTTIME support
    Input: psmouse - expose drift duration for IBM trackpoints
    Input: stmpe - bias keypad columns properly
    Input: stmpe - enforce device tree only mode
    mfd: stmpe: add pull up/down register offsets for STMPE
    Input: optimize events_per_packet count calculation
    Input: edt-ft5x06 - fixed a macro coding style issue
    Input: gpio_keys - replace timer and workqueue with delayed workqueue
    Input: gpio_keys - allow separating gpio and irq in device tree

    Linus Torvalds
     
  • This reverts commit 24a0aa212ee2dbe44360288684478d76a8e20a0a.

    It's causing severe userspace breakage. Namely, all the utilities from
    wireless-utils which are relying on CONFIG_WEXT (which means tools like
    'iwconfig', 'iwlist', etc) are not working anymore. There is a 'iw'
    utility in newer wireless-tools, which is supposed to be a replacement
    for all the "deprecated" binaries, but it's far away from being
    massively adopted.

    Please see [1] for example of the userspace breakage this is causing.

    In addition to that, Larry Finger reports [2] that this patch is also
    causing ipw2200 driver being impossible to build.

    To me this clearly shows that CONFIG_WEXT is far, far away from being
    "deprecated enough" to be removed.

    [1] http://thread.gmane.org/gmane.linux.kernel/1857010
    [2] http://thread.gmane.org/gmane.linux.network/343688

    Signed-off-by: Jiri Kosina
    Signed-off-by: Linus Torvalds

    Jiri Kosina
     
  • Pull networking fixes from David Miller:

    1) Fix double SKB free in bluetooth 6lowpan layer, from Jukka Rissanen.

    2) Fix receive checksum handling in enic driver, from Govindarajulu
    Varadarajan.

    3) Fix NAPI poll list corruption in virtio_net and caif_virtio, from
    Herbert Xu. Also, add code to detect drivers that have this mistake
    in the future.

    4) Fix doorbell endianness handling in mlx4 driver, from Amir Vadai.

    5) Don't clobber IP6CB() before xfrm6_policy_check() is called in TCP
    input path,f rom Nicolas Dichtel.

    6) Fix MPLS action validation in openvswitch, from Pravin B Shelar.

    7) Fix double SKB free in vxlan driver, also from Pravin.

    8) When we scrub a packet, which happens when we are switching the
    context of the packet (namespace, etc.), we should reset the
    secmark. From Thomas Graf.

    9) ->ndo_gso_check() needs to do more than return true/false, it also
    has to allow the driver to clear netdev feature bits in order for
    the caller to be able to proceed properly. From Jesse Gross.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (62 commits)
    genetlink: A genl_bind() to an out-of-range multicast group should not WARN().
    netlink/genetlink: pass network namespace to bind/unbind
    ne2k-pci: Add pci_disable_device in error handling
    bonding: change error message to debug message in __bond_release_one()
    genetlink: pass multicast bind/unbind to families
    netlink: call unbind when releasing socket
    netlink: update listeners directly when removing socket
    genetlink: pass only network namespace to genl_has_listeners()
    netlink: rename netlink_unbind() to netlink_undo_bind()
    net: Generalize ndo_gso_check to ndo_features_check
    net: incorrect use of init_completion fixup
    neigh: remove next ptr from struct neigh_table
    net: xilinx: Remove unnecessary temac_property in the driver
    net: phy: micrel: use generic config_init for KSZ8021/KSZ8031
    net/core: Handle csum for CHECKSUM_COMPLETE VXLAN forwarding
    openvswitch: fix odd_ptr_err.cocci warnings
    Bluetooth: Fix accepting connections when not using mgmt
    Bluetooth: Fix controller configuration with HCI_QUIRK_INVALID_BDADDR
    brcmfmac: Do not crash if platform data is not populated
    ipw2200: select CFG80211_WEXT
    ...

    Linus Torvalds
     
  • …nel/git/shuah/linux-kselftest

    Pull kselftest fix from Shuah Khan:
    "Fix exec test compile warnings"

    * tag 'linux-kselftest-3.19-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
    selftests/exec: Use %zu to format size_t

    Linus Torvalds
     
  • Commit ac61d1955934 (scsi: set correct completion code in
    scsi_send_eh_cmnd()) introduced a bug. It changed the stored return
    value from a queuecommand call, but it didn't take into account that
    the return value was used again later on. This patch fixes the bug by
    changing the later usage.

    There is a big comment in the middle of scsi_send_eh_cmnd() which
    does a good job of explaining how the routine works. But it mentions
    a "rtn = FAILURE" value that doesn't exist in the code. This patch
    adjusts the code to match the comment (I assume the comment is right
    and the code is wrong).

    This fixes Bugzilla #88341.

    Signed-off-by: Alan Stern
    Reported-by: Андрей Аладьев
    Tested-by: Андрей Аладьев
    Fixes: ac61d19559349e205dad7b5122b281419aa74a82
    Acked-by: Hannes Reinecke
    Cc:
    Signed-off-by: James Bottomley

    Alan Stern
     

30 Dec, 2014

16 commits

  • Fix a copy and paste error in the kernel doc description for the params_*()
    functions.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Takashi Iwai

    Lars-Peter Clausen
     
  • …broonie/sound into for-linus

    ASoC: Fixes for v3.19

    A few fixes for v3.19, a few driver specifics and one core fix which
    fixes a boot crash on OMAP if deferred probing kicks in due to
    attempting to modify static data.

    Takashi Iwai
     
  • Currently we enable Exynos devices in the multi v7 defconfig, however, when
    testing on my ODROID-U3, I noticed that USB was not working. Enabling this
    option causes USB to work, which enables networking support as well since the
    ODROID-U3 has networking on the USB bus.

    [arnd] Support for odroid-u3 was added in 3.10, so it would be nice to
    backport this fix at least that far.

    Signed-off-by: Steev Klimaszewski
    Cc: stable@vger.kernel.org # 3.10
    Signed-off-by: Arnd Bergmann

    Steev Klimaszewski
     
  • Pull "Fixes for 3.19" from Andrew Lunn:

    Jason is taking a back seat this cycle and i'm doing all the patch
    wrangling for mvebu.

    * tag 'mvebu-fixes-3.19' of git://git.infradead.org/linux-mvebu:
    ARM: mvebu: Fix pinctrl configuration for Armada 370 DB

    Also update to Linux 3.19-rc1, which this was based on.

    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     
  • Unfortunately, while commit 4a928436 ("audit: correctly record file
    names with different path name types") fixed a problem where we were
    not recording filenames, it created a new problem by attempting to use
    these file names after they had been freed. This patch resolves the
    issue by creating a copy of the filename which the audit subsystem
    frees after it is done with the string.

    At some point it would be nice to resolve this issue with refcounts,
    or something similar, instead of having to allocate/copy strings, but
    that is almost surely beyond the scope of a -rcX patch so we'll defer
    that for later. On the plus side, only audit users should be impacted
    by the string copying.

    Reported-by: Toralf Foerster
    Signed-off-by: Paul Moore

    Paul Moore
     
  • When I/O is aborted by mid-layer, fnic FW will complete the I/O before
    completing the abort task. In some cases abort request is completed before
    the I/O, which could lead to inconsistent driver and firmware states.
    In this case firmware reset would clear the inconsistent state.

    Signed-off-by: Anil Chintalapati
    Signed-off-by: Sesidhar Baddela
    Signed-off-by: Hiral Shah
    Signed-off-by: Christoph Hellwig

    Anil Chintalapati (achintal)
     
  • 7985090aa020 changed the discard heuristics to give preference to the
    WRITE SAME commands that (unlike UNMAP) guarantee deterministic results.

    Ming Lei discovered that QEMU SCSI's WRITE SAME implementation
    internally relied on limits that were only communicated for the UNMAP
    case. And therefore discard commands backed by WRITE SAME would fail.

    Tweak the heuristics so we still pick UNMAP in the LBPRZ=0 case and only
    prefer the WRITE SAME variants if the device has the LBPRZ flag set.

    Reported-by: Ming Lei
    Tested-by: Ming Lei
    Signed-off-by: Martin K. Petersen
    Acked-by: Paolo Bonzini
    Signed-off-by: Christoph Hellwig

    Martin K. Petersen
     
  • After the commit ef691ff48bc8 (OMAPDSS: DT: Get source endpoint by
    matching reg-id) we look for the SDI output using the port number.
    However, the SDI driver doesn't set the port number, which causes the
    SDI display to not initialize.

    Fix this by setting the SDI port number to 1. We use a hardcoded value,
    as SDI was used only on OMAP3 and it's always port number 1 there.

    Reported-by: Aaro Koskinen
    Reported-by: Pavel Machek
    Signed-off-by: Tomi Valkeinen

    Tomi Valkeinen
     
  • fb_deferred_io_fsync() returns the value of schedule_delayed_work() as
    an error code, but schedule_delayed_work() does not return an error. It
    returns true/false depending on whether the work was already queued.

    Fix this by ignoring the return value of schedule_delayed_work().

    Signed-off-by: Tomi Valkeinen
    Cc: stable@vger.kernel.org

    Tomi Valkeinen
     
  • Pull CIFS fixes from Steve French:
    "A set of three minor cifs fixes"

    * 'for-linus' of git://git.samba.org/sfrench/cifs-2.6:
    cifs: make new inode cache when file type is different
    Fix signed/unsigned pointer warning
    Convert MessageID in smb2_hdr to LE

    Linus Torvalds
     
  • Pull UDF & isofs fixes from Jan Kara:
    "A couple of UDF fixes of handling of corrupted media and one iso9660
    fix of the same"

    * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
    udf: Reduce repeated dereferences
    udf: Check component length before reading it
    udf: Check path length when reading symlink
    udf: Verify symlink size before loading it
    udf: Verify i_size when loading inode
    isofs: Fix unchecked printing of ER records

    Linus Torvalds
     
  • Pull power management and ACPI material from Rafael J Wysocki:
    "These are fixes (operating performance points library, cpufreq-dt
    driver, cpufreq core, ACPI backlight, cpupower tool), cleanups
    (cpuidle), new processor IDs for the RAPL (Running Average Power
    Limit) power capping driver, and a modification of the generic power
    domains framework allowing modular drivers to call one of its helper
    functions.

    Specifics:

    - Fix for a potential NULL pointer dereference in the cpufreq core
    due to an initialization race condition (Ethan Zhao).

    - Fixes for abuse of the OPP (Operating Performance Points) API
    related to RCU and other minor issues in the OPP library and the
    cpufreq-dt driver (Dmitry Torokhov).

    - cpuidle governors cleanup making them measure idle duration in a
    better way without using the CPUIDLE_FLAG_TIME_INVALID flag which
    allows that flag to be dropped from the ACPI cpuidle driver and
    from the core too (Len Brown).

    - New ACPI backlight blacklist entries for Samsung machines without a
    working native backlight interface that need to use the ACPI
    backlight instead (Aaron Lu).

    - New CPU IDs of future Intel Xeon CPUs for the Intel RAPL power
    capping driver (Jacob Pan).

    - Generic power domains framework modification to export the
    of_genpd_get_from_provider() function to modular drivers that will
    allow future driver modifications to be based on the mainline (Amit
    Daniel Kachhap).

    - Two fixes for the cpupower tool (Michal Privoznik, Prarit
    Bhargava)"

    * tag 'pm+acpi-3.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    ACPI / video: Add some Samsung models to disable_native_backlight list
    tools / cpupower: Fix no idle state information return value
    tools / cpupower: Correctly detect if running as root
    cpufreq: fix a NULL pointer dereference in __cpufreq_governor()
    cpufreq-dt: defer probing if OPP table is not ready
    PM / OPP: take RCU lock in dev_pm_opp_get_opp_count
    PM / OPP: fix warning in of_free_opp_table()
    PM / OPP: add some lockdep annotations
    powercap / RAPL: add IDs for future Xeon CPUs
    PM / Domains: Export of_genpd_get_from_provider function
    cpuidle / ACPI: remove unused CPUIDLE_FLAG_TIME_INVALID
    cpuidle: ladder: Better idle duration measurement without using CPUIDLE_FLAG_TIME_INVALID
    cpuidle: menu: Better idle duration measurement without using CPUIDLE_FLAG_TIME_INVALID

    Linus Torvalds
     
  • Users can request to bind to arbitrary multicast groups, so warning
    when the requested group number is out of range is not appropriate.

    And with the warning removed, and the 'err' variable properly given
    an initial value, we can remove 'found' altogether.

    Reported-by: Sedat Dilek
    Signed-off-by: David S. Miller

    David S. Miller
     
  • Pull spi fixes from Mark Brown:
    "A few driver specific fixes here, the DMA burst size increase in the
    spfi driver is a fix to make the hardware happier in some situations"

    * tag 'spi-v3.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
    spi: img-spfi: Increase DMA burst size
    spi: img-spfi: Enable controller before starting TX DMA
    spi: sh-msiof: Add runtime PM lock in initializing

    Linus Torvalds
     
  • Pull one regulator fix from Mark Brown:
    "One fix here, a fix for the voltage mapping on one of the s2mps11
    regulators which broke systems using it including apparently the
    Gear 2 smartwatches"

    * tag 'regulator-v3.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
    regulator: s2mps11: Fix dw_mmc failure on Gear 2

    Linus Torvalds
     
  • Pull one MMC fix from Ulf Hansson:
    "MMC core:

    - Fix selection of buswidth for mmc hosts supporting 1-bit only"

    * tag 'mmc-v3.19-2' of git://git.linaro.org/people/ulf.hansson/mmc:
    mmc: core: stop trying to switch width when only one bit is supported

    Linus Torvalds