Skip to content
  1. Jun 22, 2015
  2. Jun 21, 2015
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending · d2228e43
      Linus Torvalds authored
      Pull scsi target fixes from Nicholas Bellinger:
       "Apologies for the late pull request.
      
        Here are the outstanding target-pending fixes for v4.1 code.
      
        The series contains three patches from Sagi + Co that address a few
        iser-target issues that have been uncovered during recent testing at
        Mellanox.
      
        Patch #1 has a v3.16+ stable tag, and #2-3 have v3.10+ stable tags"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
        iser-target: Fix possible use-after-free
        iser-target: release stale iser connections
        iser-target: Fix variable-length response error completion
      d2228e43
    • Linus Torvalds's avatar
      Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux · 8f4ce072
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "A smattering of fixes,
      
        mgag200:
            don't accept modes that aren't aligned properly as hw can't do it
      
        i915:
            two regression fixes
      
        radeon:
            one query to allow userspace fixes
            one oops fixer for older hw with new options enabled"
      
      * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
        drm/radeon: don't probe MST on hw we don't support it on
        drm/radeon: Add RADEON_INFO_VA_UNMAP_WORKING query
        drm/mgag200: Reject non-character-cell-aligned mode widths
        Revert "drm/i915: Don't skip request retirement if the active list is empty"
        drm/i915: Always reset vma->ggtt_view.pages cache on unbinding
      8f4ce072
  3. Jun 20, 2015
    • Linus Torvalds's avatar
      Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · bb16140a
      Linus Torvalds authored
      Pull clk fixes from Michael Turquette:
       "Very late clk regression fixes for the ARM-based AT91 platform.
      
        These went unnoticed by me until recently, hence the late pull
        request"
      
      * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        clk: at91: fix h32mx prototype inclusion in pmc header
        clk: at91: trivial: typo in peripheral clock description
        clk: at91: fix PERIPHERAL_MAX_SHIFT definition
        clk: at91: pll: fix input range validity check
      bb16140a
    • Linus Torvalds's avatar
      Merge tag 'sound-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 9a10758c
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Nothing looks scary, just a few usual HD-audio regression fixes and
        fixup, in addition to a minor Kconfig dependency fix for the old MIPS
        drivers"
      
      * tag 'sound-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: hda - Fix unused label skip_i915
        ALSA: hda - Fix noisy outputs on Dell XPS13 (2015 model)
        ALSA: mips: let SND_SGI_O2 select SND_PCM
        ALSA: hda - Fix audio crackles on Dell Latitude E7x40
        ALSA: hda - adding a DAC/pin preference map for a HP Envy TS machine
      9a10758c
  4. Jun 19, 2015
  5. Jun 18, 2015
    • Linus Torvalds's avatar
      Merge tag 'trace-fix-filter-4.1-rc8' of... · 17fda38f
      Linus Torvalds authored
      Merge tag 'trace-fix-filter-4.1-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
      
      Pull tracing filter fix from Steven Rostedt:
       "Vince Weaver reported a warning when he added perf event filters into
        his fuzzer tests.  There's a missing check of balanced operations when
        parenthesis are used, and this triggers a WARN_ON() and when reading
        the failure, the filter reports no failure occurred.
      
        The operands were not being checked if they match, this adds that"
      
      * tag 'trace-fix-filter-4.1-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Have filter check for balanced ops
      17fda38f
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/virt/kvm/kvm · 32e0e382
      Linus Torvalds authored
      Pull kvm bugfix from Marcelo Tosatti:
       "Rrestore APIC migration functionality"
      
      * git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: x86: fix lapic.timer_mode on restore
      32e0e382
    • Mauro Carvalho Chehab's avatar
      Kconfig: disable Media Controller for DVB · 6cea28d0
      Mauro Carvalho Chehab authored
      
      
      Since when we start discussions about the usage Media Controller for
      complex hardware, one thing become clear: the way it is, MC fails to
      map anything different than capture/output/m2m video-only streaming.
      
      The point is that MC has entities named as devnodes, but the only
      devnode used (before the DVB patches) is MEDIA_ENT_T_DEVNODE_V4L.
      Due to the way MC got implemented, however, this entity actually
      doesn't represent the devnode, but the hardware I/O engine that
      receives data via DMA.
      
      By coincidence, such DMA is associated with the V4L device node
      on webcam hardware, but this is not true even for other V4L2
      devices. For example, on USB hardware, the DMA is done via the
      USB controller. The data passes though a in-kernel filter that
      strips off the URB headers. Other V4L2 devices like radio may not
      even have DMA. When it have, the DMA is done via ALSA, and not
      via the V4L devnode.
      
      In other words, MC is broken as a whole, but tagging it as BROKEN
      right now would do more harm than good.
      
      So, instead, let's mark, for now, the DVB part as broken and
      block all new changes to MC while we fix this mess, whith
      we hopefully will do for the next Kernel version.
      
      Requested-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6cea28d0
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 49fe9bcc
      Linus Torvalds authored
      Pull crypto fixes from Herbert Xu:
       "This fixes the following issues:
      
         - Crash in caam hash due to uninitialised buffer lengths.
      
         - Alignment issue in caam RNG that may lead to non-random output"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: caam - fix RNG buffer cache alignment
        crypto: caam - improve initalization for context state saves
      49fe9bcc
    • Hugh Dickins's avatar
      mm: shmem_zero_setup skip security check and lockdep conflict with XFS · 66fc1303
      Hugh Dickins authored
      It appears that, at some point last year, XFS made directory handling
      changes which bring it into lockdep conflict with shmem_zero_setup():
      it is surprising that mmap() can clone an inode while holding mmap_sem,
      but that has been so for many years.
      
      Since those few lockdep traces that I've seen all implicated selinux,
      I'm hoping that we can use the __shmem_file_setup(,,,S_PRIVATE) which
      v3.13's commit c7277090
      
       ("security: shmem: implement kernel private
      shmem inodes") introduced to avoid LSM checks on kernel-internal inodes:
      the mmap("/dev/zero") cloned inode is indeed a kernel-internal detail.
      
      This also covers the !CONFIG_SHMEM use of ramfs to support /dev/zero
      (and MAP_SHARED|MAP_ANONYMOUS).  I thought there were also drivers
      which cloned inode in mmap(), but if so, I cannot locate them now.
      
      Reported-and-tested-by: default avatarPrarit Bhargava <prarit@redhat.com>
      Reported-and-tested-by: default avatarDaniel Wagner <wagi@monom.org>
      Reported-and-tested-by: default avatarMorten Stevens <mstevens@fedoraproject.org>
      Signed-off-by: default avatarHugh Dickins <hughd@google.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      66fc1303
  6. Jun 17, 2015
    • Wolfram Sang's avatar
      i2c: slave: fix the example how to instantiate from userspace · 83666102
      Wolfram Sang authored
      
      
      I copied the wrong shell code into the documentation. Sorry to all who
      tried to get sense out of this current example :/ Slight rewording while
      we are here.
      
      Reported-by: default avatarTim Bakker <bakkert@mymail.vcu.edu>
      Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      Cc: stable@kernel.org
      83666102
    • Steven Rostedt's avatar
      tracing: Have filter check for balanced ops · 2cf30dc1
      Steven Rostedt authored
      
      
      When the following filter is used it causes a warning to trigger:
      
       # cd /sys/kernel/debug/tracing
       # echo "((dev==1)blocks==2)" > events/ext4/ext4_truncate_exit/filter
      -bash: echo: write error: Invalid argument
       # cat events/ext4/ext4_truncate_exit/filter
      ((dev==1)blocks==2)
      ^
      parse_error: No error
      
       ------------[ cut here ]------------
       WARNING: CPU: 2 PID: 1223 at kernel/trace/trace_events_filter.c:1640 replace_preds+0x3c5/0x990()
       Modules linked in: bnep lockd grace bluetooth  ...
       CPU: 3 PID: 1223 Comm: bash Tainted: G        W       4.1.0-rc3-test+ #450
       Hardware name: Hewlett-Packard HP Compaq Pro 6300 SFF/339A, BIOS K01 v02.05 05/07/2012
        0000000000000668 ffff8800c106bc98 ffffffff816ed4f9 ffff88011ead0cf0
        0000000000000000 ffff8800c106bcd8 ffffffff8107fb07 ffffffff8136b46c
        ffff8800c7d81d48 ffff8800d4c2bc00 ffff8800d4d4f920 00000000ffffffea
       Call Trace:
        [<ffffffff816ed4f9>] dump_stack+0x4c/0x6e
        [<ffffffff8107fb07>] warn_slowpath_common+0x97/0xe0
        [<ffffffff8136b46c>] ? _kstrtoull+0x2c/0x80
        [<ffffffff8107fb6a>] warn_slowpath_null+0x1a/0x20
        [<ffffffff81159065>] replace_preds+0x3c5/0x990
        [<ffffffff811596b2>] create_filter+0x82/0xb0
        [<ffffffff81159944>] apply_event_filter+0xd4/0x180
        [<ffffffff81152bbf>] event_filter_write+0x8f/0x120
        [<ffffffff811db2a8>] __vfs_write+0x28/0xe0
        [<ffffffff811dda43>] ? __sb_start_write+0x53/0xf0
        [<ffffffff812e51e0>] ? security_file_permission+0x30/0xc0
        [<ffffffff811dc408>] vfs_write+0xb8/0x1b0
        [<ffffffff811dc72f>] SyS_write+0x4f/0xb0
        [<ffffffff816f5217>] system_call_fastpath+0x12/0x6a
       ---[ end trace e11028bd95818dcd ]---
      
      Worse yet, reading the error message (the filter again) it says that
      there was no error, when there clearly was. The issue is that the
      code that checks the input does not check for balanced ops. That is,
      having an op between a closed parenthesis and the next token.
      
      This would only cause a warning, and fail out before doing any real
      harm, but it should still not caues a warning, and the error reported
      should work:
      
       # cd /sys/kernel/debug/tracing
       # echo "((dev==1)blocks==2)" > events/ext4/ext4_truncate_exit/filter
      -bash: echo: write error: Invalid argument
       # cat events/ext4/ext4_truncate_exit/filter
      ((dev==1)blocks==2)
      ^
      parse_error: Meaningless filter expression
      
      And give no kernel warning.
      
      Link: http://lkml.kernel.org/r/20150615175025.7e809215@gandalf.local.home
      
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
      Cc: stable@vger.kernel.org # 2.6.31+
      Reported-by: default avatarVince Weaver <vincent.weaver@maine.edu>
      Tested-by: default avatarVince Weaver <vincent.weaver@maine.edu>
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      2cf30dc1
  7. Jun 16, 2015
    • Takashi Iwai's avatar
      ALSA: hda - Fix unused label skip_i915 · 145c0e91
      Takashi Iwai authored
      When CONFIG_SND_HDA_I915=n, we get a compile warning:
        sound/pci/hda/hda_intel.c: In function ‘azx_probe_continue’:
        sound/pci/hda/hda_intel.c:1882:2: warning: label ‘skip_i915’ defined but not used [-Wunused-label]
      
      Fix it by putting again ifdef to it.  Sigh.
      
      Fixes: bf06848b
      
       ('ALSA: hda - Continue probing even if i915 binding fails')
      Reported-by: default avatarBorislav Petkov <bp@suse.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      145c0e91
    • Steve Cornelius's avatar
      crypto: caam - fix RNG buffer cache alignment · 412c98c1
      Steve Cornelius authored
      
      
      The hwrng output buffers (2) are cast inside of a a struct (caam_rng_ctx)
      allocated in one DMA-tagged region. While the kernel's heap allocator
      should place the overall struct on a cacheline aligned boundary, the 2
      buffers contained within may not necessarily align. Consenquently, the ends
      of unaligned buffers may not fully flush, and if so, stale data will be left
      behind, resulting in small repeating patterns.
      
      This fix aligns the buffers inside the struct.
      
      Note that not all of the data inside caam_rng_ctx necessarily needs to be
      DMA-tagged, only the buffers themselves require this. However, a fix would
      incur the expense of error-handling bloat in the case of allocation failure.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarSteve Cornelius <steve.cornelius@freescale.com>
      Signed-off-by: default avatarVictoria Milhoan <vicki.milhoan@freescale.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      412c98c1