1. 19 Mar, 2017 1 commit
    • Linus Torvalds's avatar
      Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · 1b8df619
      Linus Torvalds authored
      Pull device-dax fixes from Dan Williams:
       "The device-dax driver was not being careful to handle falling back to
        smaller fault-granularity sizes.
      
        The driver already fails fault attempts that are smaller than the
        device's alignment, but it also needs to handle the cases where a
        larger page mapping could be established. For simplicity of the
        immediate fix the implementation just signals VM_FAULT_FALLBACK until
        fault-size == device-alignment.
      
        One fix is for -stable to address pmd-to-pte fallback from the
        original implementation, another fix is for the new (introduced in
        4.11-rc1) pud-to-pmd regression, and a typo fix comes along for the
        ride.
      
        These have received a build success notification from the kbuild
        robot"
      
      * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        device-dax: fix debug output typo
        device-dax: fix pud fault fallback handling
        device-dax: fix pmd/pte fault fallback handling
      1b8df619
  2. 18 Mar, 2017 3 commits
    • Linus Torvalds's avatar
      Merge tag 'openrisc-for-linus' of git://github.com/openrisc/linux · 93afaa45
      Linus Torvalds authored
      Pull OpenRISC fixes from Stafford Horne:
       "OpenRISC fixes for build issues that were exposed by kbuild robots
        after 4.11 merge. All from allmodconfig builds. This includes:
      
         - bug in the handling of 8-byte get_user() calls
      
         - module build failure due to multile missing symbol exports"
      
      * tag 'openrisc-for-linus' of git://github.com/openrisc/linux:
        openrisc: Export symbols needed by modules
        openrisc: fix issue handling 8 byte get_user calls
        openrisc: xchg: fix `computed is not used` warning
      93afaa45
    • Linus Torvalds's avatar
      Merge branch 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 3e51f893
      Linus Torvalds authored
      Pull CPU hotplug fix from Thomas Gleixner:
       "A single fix preventing the concurrent execution of the CPU hotplug
        callback install/invocation machinery. Long standing bug caused by a
        massive brain slip of that Gleixner dude, which went unnoticed for
        almost a year"
      
      * 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        cpu/hotplug: Serialize callback invocations proper
      3e51f893
    • Linus Torvalds's avatar
      Merge tag 'pm-4.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 8d940990
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix a few more intel_pstate issues and one small issue in the
        cpufreq core.
      
        Specifics:
      
         - Fix breakage in the intel_pstate's debugfs interface for PID
           controller tuning (Rafael Wysocki)
      
         - Fix computations related to P-state limits in intel_pstate to avoid
           excessive rounding errors leading to visible inaccuracies (Srinivas
           Pandruvada, Rafael Wysocki)
      
         - Add a missing newline to a message printed by one function in the
           cpufreq core and clean up that function (Rafael Wysocki)"
      
      * tag 'pm-4.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq: Fix and clean up show_cpuinfo_cur_freq()
        cpufreq: intel_pstate: Avoid percentages in limits-related computations
        cpufreq: intel_pstate: Correct frequency setting in the HWP mode
        cpufreq: intel_pstate: Update pid_params.sample_rate_ns in pid_param_set()
      8d940990
  3. 17 Mar, 2017 24 commits
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-cpufreq-fixes' and 'intel_pstate-fixes' · 8b766e05
      Rafael J. Wysocki authored
      * pm-cpufreq-fixes:
        cpufreq: Fix and clean up show_cpuinfo_cur_freq()
      
      * intel_pstate-fixes:
        cpufreq: intel_pstate: Avoid percentages in limits-related computations
        cpufreq: intel_pstate: Correct frequency setting in the HWP mode
        cpufreq: intel_pstate: Update pid_params.sample_rate_ns in pid_param_set()
      8b766e05
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-4.11-2' of git://git.linux-nfs.org/projects/anna/linux-nfs · 8841b5f0
      Linus Torvalds authored
      Pull NFS client fixes from Anna Schumaker:
       "We have a handful of stable fixes to fix kernel warnings and other
        bugs that have been around for a while. We've also found a few other
        reference counting bugs and memory leaks since the initial 4.11 pull.
      
        Stable Bugfixes:
         - Fix decrementing nrequests in NFS v4.2 COPY to fix kernel warnings
         - Prevent a double free in async nfs4_exchange_id()
         - Squelch a kbuild sparse complaint for xprtrdma
      
        Other Bugfixes:
         - Fix a typo (NFS_ATTR_FATTR_GROUP_NAME) that causes a memory leak
         - Fix a reference leak that causes kernel warnings
         - Make nfs4_cb_sv_ops static to fix a sparse warning
         - Respect a server's max size in CREATE_SESSION
         - Handle errors from nfs4_pnfs_ds_connect
         - Flexfiles layout shouldn't mark devices as unavailable"
      
      * tag 'nfs-for-4.11-2' of git://git.linux-nfs.org/projects/anna/linux-nfs:
        pNFS/flexfiles: never nfs4_mark_deviceid_unavailable
        pNFS: return status from nfs4_pnfs_ds_connect
        NFSv4.1 respect server's max size in CREATE_SESSION
        NFS prevent double free in async nfs4_exchange_id
        nfs: make nfs4_cb_sv_ops static
        xprtrdma: Squelch kbuild sparse complaint
        NFS: fix the fault nrequests decreasing for nfs_inode COPY
        NFSv4: fix a reference leak caused WARNING messages
        nfs4: fix a typo of NFS_ATTR_FATTR_GROUP_NAME
      8841b5f0
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · eab60d4e
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "An assorted pile of fixes along with some hardware enablement:
      
         - a fix for a KASAN / branch profiling related boot failure
      
         - some more fallout of the PUD rework
      
         - a fix for the Always Running Timer which is not initialized when
           the TSC frequency is known at boot time (via MSR/CPUID)
      
         - a resource leak fix for the RDT filesystem
      
         - another unwinder corner case fixup
      
         - removal of the warning for duplicate NMI handlers because there are
           legitimate cases where more than one handler can be registered at
           the last level
      
         - make a function static - found by sparse
      
         - a set of updates for the Intel MID platform which got delayed due
           to merge ordering constraints. It's hardware enablement for a non
           mainstream platform, so there is no risk"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mpx: Make unnecessarily global function static
        x86/intel_rdt: Put group node in rdtgroup_kn_unlock
        x86/unwind: Fix last frame check for aligned function stacks
        mm, x86: Fix native_pud_clear build error
        x86/kasan: Fix boot with KASAN=y and PROFILE_ANNOTATED_BRANCHES=y
        x86/platform/intel-mid: Add power button support for Merrifield
        x86/platform/intel-mid: Use common power off sequence
        x86/platform: Remove warning message for duplicate NMI handlers
        x86/tsc: Fix ART for TSC_KNOWN_FREQ
        x86/platform/intel-mid: Correct MSI IRQ line for watchdog device
      eab60d4e
    • Linus Torvalds's avatar
      Merge branch 'x86-acpi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ae133733
      Linus Torvalds authored
      Pull x86 acpi fixes from Thomas Gleixner:
       "This update deals with the fallout of the recent work to make
        cpuid/node mappings persistent.
      
        It turned out that the boot time ACPI based mapping tripped over ACPI
        inconsistencies and caused regressions. It's partially reverted and
        the fragile part replaced by an implementation which makes the mapping
        persistent when a CPU goes online for the first time"
      
      * 'x86-acpi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        acpi/processor: Check for duplicate processor ids at hotplug time
        acpi/processor: Implement DEVICE operator for processor enumeration
        x86/acpi: Restore the order of CPU IDs
        Revert"x86/acpi: Enable MADT APIs to return disabled apicids"
        Revert "x86/acpi: Set persistent cpuid <-> nodeid mapping when booting"
      ae133733
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · a7fc726b
      Linus Torvalds authored
      Pull perf fixes from Thomas Gleixner:
       "A set of perf related fixes:
      
         - fix a CR4.PCE propagation issue caused by usage of mm instead of
           active_mm and therefore propagated the wrong value.
      
         - perf core fixes, which plug a use-after-free issue and make the
           event inheritance on fork more robust.
      
         - a tooling fix for symbol handling"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf symbols: Fix symbols__fixup_end heuristic for corner cases
        x86/perf: Clarify why x86_pmu_event_mapped() isn't racy
        x86/perf: Fix CR4.PCE propagation to use active_mm instead of mm
        perf/core: Better explain the inherit magic
        perf/core: Simplify perf_event_free_task()
        perf/core: Fix event inheritance on fork()
        perf/core: Fix use-after-free in perf_release()
      a7fc726b
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · cd21debe
      Linus Torvalds authored
      Pull scheduler fixes from Thomas Gleixner:
       "From the scheduler departement:
      
         - a bunch of sched deadline related fixes which deal with various
           buglets and corner cases.
      
         - two fixes for the loadavg spikes which are caused by the delayed
           NOHZ accounting"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/deadline: Use deadline instead of period when calculating overflow
        sched/deadline: Throttle a constrained deadline task activated after the deadline
        sched/deadline: Make sure the replenishment timer fires in the next period
        sched/loadavg: Use {READ,WRITE}_ONCE() for sample window
        sched/loadavg: Avoid loadavg spikes caused by delayed NO_HZ accounting
        sched/deadline: Add missing update_rq_clock() in dl_task_timer()
      cd21debe
    • Linus Torvalds's avatar
      Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b5f13082
      Linus Torvalds authored
      Pull locking fixes from Thomas Gleixner:
       "Three fixes related to locking:
      
         - fix a SIGKILL issue for RWSEM_GENERIC_SPINLOCK which has been fixed
           for the XCHGADD variant already
      
         - plug a potential use after free in the futex code
      
         - prevent leaking a held spinlock in an futex error handling code
           path"
      
      * 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/rwsem: Fix down_write_killable() for CONFIG_RWSEM_GENERIC_SPINLOCK=y
        futex: Add missing error handling to FUTEX_REQUEUE_PI
        futex: Fix potential use-after-free in FUTEX_REQUEUE_PI
      b5f13082
    • Linus Torvalds's avatar
      Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 18f48c9f
      Linus Torvalds authored
      Pull timer fix from Thomas Gleixner:
       "Just a simple revert of a new sched_clock implementation which turned
        out to be buggy"
      
      * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        Revert "clocksource/drivers/tcb_clksrc: Use 32 bit tcb as sched_clock"
      18f48c9f
    • Weston Andros Adamson's avatar
      pNFS/flexfiles: never nfs4_mark_deviceid_unavailable · da066f3f
      Weston Andros Adamson authored
      The flexfiles layout should never mark a device unavailable.
      
      Move nfs4_mark_deviceid_unavailable out of nfs4_pnfs_ds_connect and call
      directly from files layout where it's still needed.
      
      The flexfiles driver still handles marked devices in error paths, but will
      now print a rate limited warning.
      Signed-off-by: default avatarWeston Andros Adamson <dros@primarydata.com>
      Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
      da066f3f
    • Weston Andros Adamson's avatar
      pNFS: return status from nfs4_pnfs_ds_connect · a33e4b03
      Weston Andros Adamson authored
      The nfs4_pnfs_ds_connect path can call rpc_create which can fail or it
      can wait on another context to reach the same failure.
      
      This checks that the rpc_create succeeded and returns the error to the
      caller.
      
      When an error is returned, both the files and flexfiles layouts will return
      NULL from _prepare_ds(). The flexfiles layout will also return the layout
      with the error NFS4ERR_NXIO.
      Signed-off-by: default avatarWeston Andros Adamson <dros@primarydata.com>
      Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
      a33e4b03
    • Olga Kornievskaia's avatar
      NFSv4.1 respect server's max size in CREATE_SESSION · 03385332
      Olga Kornievskaia authored
      Currently client doesn't respect max sizes server returns in CREATE_SESSION.
      nfs4_session_set_rwsize() gets called and server->rsize, server->wsize are 0
      so they never get set to the sizes returned by the server.
      Signed-off-by: default avatarOlga Kornievskaia <kolga@netapp.com>
      Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
      03385332
    • Olga Kornievskaia's avatar
      NFS prevent double free in async nfs4_exchange_id · 63513232
      Olga Kornievskaia authored
      Since rpc_task is async, the release function should be called which
      will free the impl_id, scope, and owner.
      
      Trond pointed at 2 more problems:
      -- use of client pointer after free in the nfs4_exchangeid_release() function
      -- cl_count mismatch if rpc_run_task() isn't run
      
      Fixes: 8d89bd70 ("NFS setup async exchange_id")
      Signed-off-by: default avatarOlga Kornievskaia <kolga@netapp.com>
      Cc: stable@vger.kernel.org # 4.9
      Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
      63513232
    • Jason Yan's avatar
      nfs: make nfs4_cb_sv_ops static · 05fae7bb
      Jason Yan authored
      Fixes the following sparse warning:
      
      fs/nfs/callback.c:235:21: warning: symbol 'nfs4_cb_sv_ops' was not
      declared. Should it be static?
      Signed-off-by: default avatarJason Yan <yanaijie@huawei.com>
      Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
      05fae7bb
    • Chuck Lever's avatar
      xprtrdma: Squelch kbuild sparse complaint · eed50879
      Chuck Lever authored
      New complaint from kbuild for 4.9.y:
      
      net/sunrpc/xprtrdma/verbs.c:489:19: sparse: incompatible types in
          comparison expression (different type sizes)
      
      verbs.c:
      489	max_sge = min(ia->ri_device->attrs.max_sge, RPCRDMA_MAX_SEND_SGES);
      
      I can't reproduce this running sparse here. Likewise, "make W=1
      net/sunrpc/xprtrdma/verbs.o" never indicated any issue.
      
      A little poking suggests that because the range of its values is
      small, gcc can make the actual width of RPCRDMA_MAX_SEND_SGES
      smaller than the width of an unsigned integer.
      
      Fixes: 16f906d6 ("xprtrdma: Reduce required number of send SGEs")
      Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
      Cc: stable@kernel.org
      Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
      eed50879
    • Kinglong Mee's avatar
      NFS: fix the fault nrequests decreasing for nfs_inode COPY · 38a33101
      Kinglong Mee authored
      The nfs_commit_file for NFSv4.2's COPY operation goes through
      the commit path for normal WRITE, but without increase nrequests,
      so, the nrequests decreased in nfs_commit_release_pages is fault.
      After that, the nrequests will be wrong.
      
      [ 5670.299881] ------------[ cut here ]------------
      [ 5670.300295] WARNING: CPU: 0 PID: 27656 at fs/nfs/inode.c:127 nfs_clear_inode+0x66/0x90 [nfs]
      [ 5670.300558] Modules linked in: nfsv4(E) nfs(E) fscache(E) tun bridge stp llc fuse ip_set nfnetlink vmw_vsock_vmci_transport vsock snd_seq_midi snd_seq_midi_event ppdev f2fs coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_ens1371 intel_rapl_perf gameport snd_ac97_codec vmw_balloon ac97_bus snd_seq snd_pcm joydev snd_rawmidi snd_timer snd_seq_device snd soundcore nfit parport_pc parport acpi_cpufreq tpm_tis tpm_tis_core tpm i2c_piix4 vmw_vmci shpchp nfsd auth_rpcgss nfs_acl lockd grace sunrpc xfs libcrc32c vmwgfx drm_kms_helper ttm drm e1000 crc32c_intel mptspi scsi_transport_spi serio_raw mptscsih mptbase ata_generic pata_acpi fjes [last unloaded: fscache]
      [ 5670.302925] CPU: 0 PID: 27656 Comm: umount.nfs4 Tainted: G        W   E   4.11.0-rc1+ #519
      [ 5670.303292] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/02/2015
      [ 5670.304094] Call Trace:
      [ 5670.304510]  dump_stack+0x63/0x86
      [ 5670.304917]  __warn+0xcb/0xf0
      [ 5670.305276]  warn_slowpath_null+0x1d/0x20
      [ 5670.305661]  nfs_clear_inode+0x66/0x90 [nfs]
      [ 5670.306093]  nfs4_evict_inode+0x61/0x70 [nfsv4]
      [ 5670.306480]  evict+0xbb/0x1c0
      [ 5670.306888]  dispose_list+0x4d/0x70
      [ 5670.307233]  evict_inodes+0x178/0x1a0
      [ 5670.307579]  generic_shutdown_super+0x44/0xf0
      [ 5670.307985]  nfs_kill_super+0x21/0x40 [nfs]
      [ 5670.308325]  deactivate_locked_super+0x43/0x70
      [ 5670.308698]  deactivate_super+0x5a/0x60
      [ 5670.309036]  cleanup_mnt+0x3f/0x90
      [ 5670.309407]  __cleanup_mnt+0x12/0x20
      [ 5670.309837]  task_work_run+0x80/0xa0
      [ 5670.310162]  exit_to_usermode_loop+0x89/0x90
      [ 5670.310497]  syscall_return_slowpath+0xaa/0xb0
      [ 5670.310875]  entry_SYSCALL_64_fastpath+0xa7/0xa9
      [ 5670.311197] RIP: 0033:0x7f1bb3617fe7
      [ 5670.311545] RSP: 002b:00007ffecbabb828 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6
      [ 5670.311906] RAX: 0000000000000000 RBX: 0000000001dca1f0 RCX: 00007f1bb3617fe7
      [ 5670.312239] RDX: 000000000000000c RSI: 0000000000000001 RDI: 0000000001dc83c0
      [ 5670.312653] RBP: 0000000001dc83c0 R08: 0000000000000001 R09: 0000000000000000
      [ 5670.312998] R10: 0000000000000755 R11: 0000000000000206 R12: 00007ffecbabc66a
      [ 5670.313335] R13: 0000000001dc83a0 R14: 0000000000000000 R15: 0000000000000000
      [ 5670.313758] ---[ end trace bf4bfe7764e4eb40 ]---
      
      Cc: linux-kernel@vger.kernel.org
      Fixes: 67911c8f ("NFS: Add nfs_commit_file()")
      Signed-off-by: default avatarKinglong Mee <kinglongmee@gmail.com>
      Cc: stable@vger.kernel.org # 4.7+
      Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
      38a33101
    • Linus Torvalds's avatar
      Merge tag 'afs-20170316' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs · 57fd0b77
      Linus Torvalds authored
      Pull AFS fixes from David Howells:
       "Fixes to the AFS filesystem in the kernel.
      
        They fix a variety of bugs. These include some issues fixed for
        consistency with other AFS implementations:
      
         - handle AFS mode bits better
      
         - use the client mtime rather than the server mtime in the protocol
      
         - handle the server returning more or less data than was requested in
           a FetchData call
      
         - distinguish mountpoints from symlinks based on the mode bits rather
           than preemptively reading every symlink to find out what it
           actually represents
      
        One other notable change for the user is that files are now flushed on
        close analogously with other network filesystems"
      
      * tag 'afs-20170316' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs: (28 commits)
        afs: Don't wait for page writeback with the page lock held
        afs: ->writepage() shouldn't call clear_page_dirty_for_io()
        afs: Fix abort on signal while waiting for call completion
        afs: Fix an off-by-one error in afs_send_pages()
        afs: Fix afs_kill_pages()
        afs: Fix page leak in afs_write_begin()
        afs: Don't set PG_error on local EINTR or ENOMEM when filling a page
        afs: Populate and use client modification time
        afs: Better abort and net error handling
        afs: Invalid op ID should abort with RXGEN_OPCODE
        afs: Fix the maths in afs_fs_store_data()
        afs: Use a bvec rather than a kvec in afs_send_pages()
        afs: Make struct afs_read::remain 64-bit
        afs: Fix AFS read bug
        afs: Prevent callback expiry timer overflow
        afs: Migrate vlocation fields to 64-bit
        afs: security: Replace rcu_assign_pointer() with RCU_INIT_POINTER()
        afs: inode: Replace rcu_assign_pointer() with RCU_INIT_POINTER()
        afs: Distinguish mountpoints from symlinks by file mode alone
        afs: Flush outstanding writes when an fd is closed
        ...
      57fd0b77
    • Linus Torvalds's avatar
      Merge branch 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm · c79d5ff0
      Linus Torvalds authored
      Pull ARM fix from Russell King:
       "Just one change to add the statx syscall this time around"
      
      * 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm:
        ARM: wire up statx syscall
      c79d5ff0
    • Linus Torvalds's avatar
      Merge tag 'for-linus-4.11b-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · f89406ca
      Linus Torvalds authored
      Pull xen fix from Juergen Gross:
       "A minor fix for using the appropriate refcount_t instead of atomic_t"
      
      * tag 'for-linus-4.11b-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        drivers, xen: convert grant_map.users from atomic_t to refcount_t
      f89406ca
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-for-v4.11-rc3' of git://people.freedesktop.org/~airlied/linux · 102ed8c3
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Bunch of fixes across the drivers, in a St Patrick's day pull request
        (please turn terminal colors to green on black or black on green for
        full effect).
      
        On the arm side, tilcdc, omap and malidp got fixes, while amd has some
        powermanagement fixes, and intel has a set of fixes across the driver.
      
        Nothing seems to bad or scary at this point"
      
      * tag 'drm-fixes-for-v4.11-rc3' of git://people.freedesktop.org/~airlied/linux: (27 commits)
        drm/amd/amdgpu:  Fix debugfs reg read/write address width
        drm/amdgpu/si: add dpm quirk for Oland
        drm/radeon/si: add dpm quirk for Oland
        drm: amd: remove broken include path
        drm/amd/powerplay: fix copy error in smu7_clockpoweragting.c
        drm/tilcdc: Set framebuffer DMA address to HW only if CRTC is enabled
        drm/tilcdc: Fix hardcoded fail-return value in tilcdc_crtc_create()
        drm/i915: Fix forcewake active domain tracking
        drm/i915: Nuke skl_update_plane debug message from the pipe update critical section
        drm/i915: use correct node for handling cache domain eviction
        uapi: fix drm/omap_drm.h userspace compilation errors
        drm/omap: fix dmabuf mmap for dma_alloc'ed buffers
        drm/amdgpu: fix parser init error path to avoid crash in parser fini
        drm/amd/amdgpu: Disable GFX_PG on Carrizo until compute issues solved
        drm: mali-dp: Fix smart layer not going to composition
        drm: mali-dp: Remove mclk rate management
        drm/i915: Drain the freed state from the tail of the next commit
        drm/i915: Nuke debug messages from the pipe update critical section
        drm/i915: Use pagecache write to prepopulate shmemfs from pwrite-ioctl
        drm/i915: Store a permanent error in obj->mm.pages
        ...
      102ed8c3
    • Ingo Molnar's avatar
      Merge tag 'perf-urgent-for-mingo-4.11-20170317' of... · a01851fa
      Ingo Molnar authored
      Merge tag 'perf-urgent-for-mingo-4.11-20170317' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
      
      Pull perf/urgent fix from Arnaldo Carvalho de Melo:
      
      - Fix symbols__fixup_end heuristic for corner cases, such as JITted eBPF
        programs, that are loaded at page aligned addresses, just after the
        kernel proper (Daniel Borkmann)
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      a01851fa
    • Daniel Borkmann's avatar
      perf symbols: Fix symbols__fixup_end heuristic for corner cases · e7ede72a
      Daniel Borkmann authored
      The current symbols__fixup_end() heuristic for the last entry in the rb
      tree is suboptimal as it leads to not being able to recognize the symbol
      in the call graph in a couple of corner cases, for example:
      
       i) If the symbol has a start address (f.e. exposed via kallsyms)
          that is at a page boundary, then the roundup(curr->start, 4096)
          for the last entry will result in curr->start == curr->end with
          a symbol length of zero.
      
      ii) If the symbol has a start address that is shortly before a page
          boundary, then also here, curr->end - curr->start will just be
          very few bytes, where it's unrealistic that we could perform a
          match against.
      
      Instead, change the heuristic to roundup(curr->start, 4096) + 4096, so
      that we can catch such corner cases and have a better chance to find
      that specific symbol. It's still just best effort as the real end of the
      symbol is unknown to us (and could even be at a larger offset than the
      current range), but better than the current situation.
      
      Alexei reported that he recently run into case i) with a JITed eBPF
      program (these are all page aligned) as the last symbol which wasn't
      properly shown in the call graph (while other eBPF program symbols in
      the rb tree were displayed correctly). Since this is a generic issue,
      lets try to improve the heuristic a bit.
      Reported-and-Tested-by: default avatarAlexei Starovoitov <ast@kernel.org>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Fixes: 2e538c4a ("perf tools: Improve kernel/modules symbol lookup")
      Link: http://lkml.kernel.org/r/bb5c80d27743be6f12afc68405f1956a330e1bc9.1489614365.git.daniel@iogearbox.netSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      e7ede72a
    • Andy Lutomirski's avatar
      x86/perf: Clarify why x86_pmu_event_mapped() isn't racy · 4b07372a
      Andy Lutomirski authored
      Naively, it looks racy, but ->mmap_sem saves it.  Add a comment and a
      lockdep assertion.
      Signed-off-by: default avatarAndy Lutomirski <luto@kernel.org>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Borislav Petkov <bpetkov@suse.de>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Vince Weaver <vincent.weaver@maine.edu>
      Link: http://lkml.kernel.org/r/03a1e629063899168dfc4707f3bb6e581e21f5c6.1489694270.git.luto@kernel.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      4b07372a
    • Andy Lutomirski's avatar
      x86/perf: Fix CR4.PCE propagation to use active_mm instead of mm · 5dc855d4
      Andy Lutomirski authored
      If one thread mmaps a perf event while another thread in the same mm
      is in some context where active_mm != mm (which can happen in the
      scheduler, for example), refresh_pce() would write the wrong value
      to CR4.PCE.  This broke some PAPI tests.
      Reported-and-tested-by: default avatarVince Weaver <vincent.weaver@maine.edu>
      Signed-off-by: default avatarAndy Lutomirski <luto@kernel.org>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Borislav Petkov <bpetkov@suse.de>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: stable@vger.kernel.org
      Fixes: 7911d3f7 ("perf/x86: Only allow rdpmc if a perf_event is mapped")
      Link: http://lkml.kernel.org/r/0c5b38a76ea50e405f9abe07a13dfaef87c173a1.1489694270.git.luto@kernel.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      5dc855d4
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · d528ae0d
      Linus Torvalds authored
      Merge fixes from Andrew Morton:
       "6 fixes"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        drivers core: remove assert_held_device_hotplug()
        mm: add private lock to serialize memory hotplug operations
        mm: don't warn when vmalloc() fails due to a fatal signal
        mm, x86: fix native_pud_clear build error
        kasan: add a prototype of task_struct to avoid warning
        z3fold: fix spinlock unlocking in page reclaim
      d528ae0d
  4. 16 Mar, 2017 12 commits