1. 29 Apr, 2020 1 commit
    • Tyrel Datwyler's avatar
      scsi: ibmvscsi: Fix WARN_ON during event pool release · b3652215
      Tyrel Datwyler authored
      While removing an ibmvscsi client adapter a WARN_ON like the following is
      seen in the kernel log:
      
      drmgr: drmgr: -r -c slot -s U9080.M9S.783AEC8-V11-C11 -w 5 -d 1
      WARNING: CPU: 9 PID: 24062 at ../kernel/dma/mapping.c:311 dma_free_attrs+0x78/0x110
      Supported: No, Unreleased kernel
      CPU: 9 PID: 24062 Comm: drmgr Kdump: loaded Tainted: G               X 5.3.18-12-default
      NIP:  c0000000001fa758 LR: c0000000001fa744 CTR: c0000000001fa6e0
      REGS: c0000002173375d0 TRAP: 0700   Tainted: G               X (5.3.18-12-default)
      MSR:  8000000000029033 <SF,EE,ME,IR,DR,RI,LE>  CR: 28088282  XER: 20000000
      CFAR: c0000000001fbf0c IRQMASK: 1
      GPR00: c0000000001fa744 c000000217337860 c00000000161ab00 0000000000000000
      GPR04: 0000000000000000 c000011e12250000 0000000018010000 0000000000000000
      GPR08: 0000000000000000 0000000000000001 0000000000000001 c0080000190f4fa8
      GPR12: c0000000001fa6e0 c000000007fc2a00 0000000000000000 0000000000000000
      GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
      GPR20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
      GPR24: 000000011420e310 0000000000000000 0000000000000000 0000000018010000
      GPR28: c00000000159de50 c000011e12250000 0000000000006600 c000011e5c994848
      NIP [c0000000001fa758] dma_free_attrs+0x78/0x110
      LR [c0000000001fa744] dma_free_attrs+0x64/0x110
      Call Trace:
      [c000000217337860] [000000011420e310] 0x11420e310 (unreliable)
      [c0000002173378b0] [c0080000190f0280] release_event_pool+0xd8/0x120 [ibmvscsi]
      [c000000217337930] [c0080000190f3f74] ibmvscsi_remove+0x6c/0x160 [ibmvscsi]
      [c000000217337960] [c0000000000f3cac] vio_bus_remove+0x5c/0x100
      [c0000002173379a0] [c00000000087a0a4] device_release_driver_internal+0x154/0x280
      [c0000002173379e0] [c0000000008777cc] bus_remove_device+0x11c/0x220
      [c000000217337a60] [c000000000870fc4] device_del+0x1c4/0x470
      [c000000217337b10] [c0000000008712a0] device_unregister+0x30/0xa0
      [c000000217337b80] [c0000000000f39ec] vio_unregister_device+0x2c/0x60
      [c000000217337bb0] [c00800001a1d0964] dlpar_remove_slot+0x14c/0x250 [rpadlpar_io]
      [c000000217337c50] [c00800001a1d0bcc] remove_slot_store+0xa4/0x110 [rpadlpar_io]
      [c000000217337cd0] [c000000000c091a0] kobj_attr_store+0x30/0x50
      [c000000217337cf0] [c00000000057c934] sysfs_kf_write+0x64/0x90
      [c000000217337d10] [c00000000057be10] kernfs_fop_write+0x1b0/0x290
      [c000000217337d60] [c000000000488c4c] __vfs_write+0x3c/0x70
      [c000000217337d80] [c00000000048c648] vfs_write+0xd8/0x260
      [c000000217337dd0] [c00000000048ca8c] ksys_write+0xdc/0x130
      [c000000217337e20] [c00000000000b488] system_call+0x5c/0x70
      Instruction dump:
      7c840074 f8010010 f821ffb1 20840040 eb830218 7c8407b4 48002019 60000000
      2fa30000 409e003c 892d0988 792907e0 <0b090000> 2fbd0000 419e0028 2fbc0000
      ---[ end trace 5955b3c0cc079942 ]---
      rpadlpar_io: slot U9080.M9S.783AEC8-V11-C11 removed
      
      This is tripped as a result of irqs being disabled during the call to
      dma_free_coherent() by release_event_pool(). At this point in the code path
      we have quiesced the adapter and it is overly paranoid to be holding the
      host lock.
      
      [mkp: fixed build warning reported by sfr]
      
      Link: https://lore.kernel.org/r/1588027793-17952-1-git-send-email-tyreld@linux.ibm.comSigned-off-by: default avatarTyrel Datwyler <tyreld@linux.ibm.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      b3652215
  2. 28 Apr, 2020 1 commit
    • Brian King's avatar
      scsi: ibmvfc: Don't send implicit logouts prior to NPIV login · 66bb7fa8
      Brian King authored
      Commit ed830385 ("scsi: ibmvfc: Avoid loss of all paths during SVC node
      reboot") introduced a regression where when the client resets or re-enables
      its CRQ with the hypervisor there is a chance that if the server side
      doesn't issue its INIT handshake quick enough the client can issue an
      Implicit Logout prior to doing an NPIV Login. The server treats this
      scenario as a protocol violation and closes the CRQ on its end forcing the
      client through a reset that gets the client host state and next host action
      out of agreement leading to a BUG assert.
      
      ibmvfc 30000003: Partner initialization complete
      ibmvfc 30000002: Partner initialization complete
      ibmvfc 30000002: Host partner adapter deregistered or failed (rc=2)
      ibmvfc 30000002: Partner initialized
      ------------[ cut here ]------------
      kernel BUG at ../drivers/scsi/ibmvscsi/ibmvfc.c:4489!
      Oops: Exception in kernel mode, sig: 5 [#1]
      LE PAGE_SIZE=64K MMU=Hash SMP NR_CPUS=2048 NUMA pSeries
      Supported: No, Unreleased kernel
      CPU: 16 PID: 1290 Comm: ibmvfc_0 Tainted: G           OE  X   5.3.18-12-default
      NIP:  c00800000d84a2b4 LR: c00800000d84a040 CTR: c00800000d84a2a0
      REGS: c00000000cb57a00 TRAP: 0700   Tainted: G           OE  X    (5.3.18-12-default)
      MSR:  800000000282b033 <SF,VEC,VSX,EE,FP,ME,IR,DR,RI,LE>  CR: 24000848  XER: 00000001
      CFAR: c00800000d84a070 IRQMASK: 1
      GPR00: c00800000d84a040 c00000000cb57c90 c00800000d858e00 0000000000000000
      GPR04: 0000000000000000 0000000000000000 0000000000000000 00000000000000a0
      GPR08: c00800000d84a074 0000000000000001 0000000000000014 c00800000d84d7d0
      GPR12: 0000000000000000 c00000001ea28200 c00000000016cd98 0000000000000000
      GPR16: c00800000d84b7b8 0000000000000000 0000000000000000 c00000542c706d68
      GPR20: 0000000000000005 c00000542c706d88 5deadbeef0000100 5deadbeef0000122
      GPR24: 000000000000000c 000000000000000b c00800000d852180 0000000000000001
      GPR28: 0000000000000000 c00000542c706da0 c00000542c706860 c00000542c706828
      NIP [c00800000d84a2b4] ibmvfc_work+0x3ac/0xc90 [ibmvfc]
      LR [c00800000d84a040] ibmvfc_work+0x138/0xc90 [ibmvfc]
      
      This scenario can be prevented by rejecting any attempt to send an Implicit
      Logout if the client adapter is not logged in yet.
      
      Link: https://lore.kernel.org/r/20200427214824.6890-1-tyreld@linux.ibm.com
      Fixes: ed830385 ("scsi: ibmvfc: Avoid loss of all paths during SVC node reboot")
      Signed-off-by: default avatarBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: default avatarTyrel Datwyler <tyreld@linux.ibm.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      66bb7fa8
  3. 24 Apr, 2020 2 commits
  4. 22 Apr, 2020 4 commits
  5. 15 Apr, 2020 2 commits
  6. 14 Apr, 2020 1 commit
  7. 13 Apr, 2020 6 commits
  8. 12 Apr, 2020 10 commits
    • Linus Torvalds's avatar
      Linux 5.7-rc1 · 8f3d9f35
      Linus Torvalds authored
      8f3d9f35
    • Linus Torvalds's avatar
      MAINTAINERS: sort field names for all entries · 3b50142d
      Linus Torvalds authored
      This sorts the actual field names too, potentially causing even more
      chaos and confusion at merge time if you have edited the MAINTAINERS
      file.  But the end result is a more consistent layout, and hopefully
      it's a one-time pain minimized by doing this just before the -rc1
      release.
      
      This was entirely scripted:
      
        ./scripts/parse-maintainers.pl --input=MAINTAINERS --output=MAINTAINERS --order
      Requested-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3b50142d
    • Linus Torvalds's avatar
      MAINTAINERS: sort entries by entry name · 4400b7d6
      Linus Torvalds authored
      They are all supposed to be sorted, but people who add new entries don't
      always know the alphabet.  Plus sometimes the entry names get edited,
      and people don't then re-order the entry.
      
      Let's see how painful this will be for merging purposes (the MAINTAINERS
      file is often edited in various different trees), but Joe claims there's
      relatively few patches in -next that touch this, and doing it just
      before -rc1 is likely the best time.  Fingers crossed.
      
      This was scripted with
      
        /scripts/parse-maintainers.pl --input=MAINTAINERS --output=MAINTAINERS
      
      but then I also ended up manually upper-casing a few entry names that
      stood out when looking at the end result.
      Requested-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4400b7d6
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 4f8a3cc1
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "A set of three patches to fix the fallout of the newly added split
        lock detection feature.
      
        It addressed the case where a KVM guest triggers a split lock #AC and
        KVM reinjects it into the guest which is not prepared to handle it.
      
        Add proper sanity checks which prevent the unconditional injection
        into the guest and handles the #AC on the host side in the same way as
        user space detections are handled. Depending on the detection mode it
        either warns and disables detection for the task or kills the task if
        the mode is set to fatal"
      
      * tag 'x86-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        KVM: VMX: Extend VMXs #AC interceptor to handle split lock #AC in guest
        KVM: x86: Emulate split-lock access as a write in emulator
        x86/split_lock: Provide handle_guest_split_lock()
      4f8a3cc1
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0785249f
      Linus Torvalds authored
      Pull time(keeping) updates from Thomas Gleixner:
      
       - Fix the time_for_children symlink in /proc/$PID/ so it properly
         reflects that it part of the 'time' namespace
      
       - Add the missing userns limit for the allowed number of time
         namespaces, which was half defined but the actual array member was
         not added. This went unnoticed as the array has an exessive empty
         member at the end but introduced a user visible regression as the
         output was corrupted.
      
       - Prevent further silent ucount corruption by adding a BUILD_BUG_ON()
         to catch half updated data.
      
      * tag 'timers-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        ucount: Make sure ucounts in /proc/sys/user don't regress again
        time/namespace: Add max_time_namespaces ucount
        time/namespace: Fix time_for_children symlink
      0785249f
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 590680d1
      Linus Torvalds authored
      Pull scheduler fixes/updates from Thomas Gleixner:
      
       - Deduplicate the average computations in the scheduler core and the
         fair class code.
      
       - Fix a raise between runtime distribution and assignement which can
         cause exceeding the quota by up to 70%.
      
       - Prevent negative results in the imbalanace calculation
      
       - Remove a stale warning in the workqueue code which can be triggered
         since the call site was moved out of preempt disabled code. It's a
         false positive.
      
       - Deduplicate the print macros for procfs
      
       - Add the ucmap values to the SCHED_DEBUG procfs output for completness
      
      * tag 'sched-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/debug: Add task uclamp values to SCHED_DEBUG procfs
        sched/debug: Factor out printing formats into common macros
        sched/debug: Remove redundant macro define
        sched/core: Remove unused rq::last_load_update_tick
        workqueue: Remove the warning in wq_worker_sleeping()
        sched/fair: Fix negative imbalance in imbalance calculation
        sched/fair: Fix race between runtime distribution and assignment
        sched/fair: Align rq->avg_idle and rq->avg_scan_cost
      590680d1
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 20e2aa81
      Linus Torvalds authored
      Pull perf fixes from Thomas Gleixner:
       "Three fixes/updates for perf:
      
         - Fix the perf event cgroup tracking which tries to track the cgroup
           even for disabled events.
      
         - Add Ice Lake server support for uncore events
      
         - Disable pagefaults when retrieving the physical address in the
           sampling code"
      
      * tag 'perf-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/core: Disable page faults when getting phys address
        perf/x86/intel/uncore: Add Ice Lake server uncore support
        perf/cgroup: Correct indirection in perf_less_group_idx()
        perf/core: Fix event cgroup tracking
      20e2aa81
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 652fa53c
      Linus Torvalds authored
      Pull locking fixes from Thomas Gleixner:
       "Three small fixes/updates for the locking core code:
      
         - Plug a task struct reference leak in the percpu rswem
           implementation.
      
         - Document the refcount interaction with PID_MAX_LIMIT
      
         - Improve the 'invalid wait context' data dump in lockdep so it
           contains all information which is required to decode the problem"
      
      * tag 'locking-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/lockdep: Improve 'invalid wait context' splat
        locking/refcount: Document interaction with PID_MAX_LIMIT
        locking/percpu-rwsem: Fix a task_struct refcount
      652fa53c
    • Linus Torvalds's avatar
      Merge tag '5.7-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6 · 4119bf9f
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Ten cifs/smb fixes:
      
         - five RDMA (smbdirect) related fixes
      
         - add experimental support for swap over SMB3 mounts
      
         - also a fix which improves performance of signed connections"
      
      * tag '5.7-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6:
        smb3: enable swap on SMB3 mounts
        smb3: change noisy error message to FYI
        smb3: smbdirect support can be configured by default
        cifs: smbd: Do not schedule work to send immediate packet on every receive
        cifs: smbd: Properly process errors on ib_post_send
        cifs: Allocate crypto structures on the fly for calculating signatures of incoming packets
        cifs: smbd: Update receive credits before sending and deal with credits roll back on failure before sending
        cifs: smbd: Check send queue size before posting a send
        cifs: smbd: Merge code to track pending packets
        cifs: ignore cached share root handle closing errors
      4119bf9f
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.7-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 50bda5fa
      Linus Torvalds authored
      Pull NFS client bugfix from Trond Myklebust:
       "Fix an RCU read lock leakage in pnfs_alloc_ds_commits_list()"
      
      * tag 'nfs-for-5.7-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        pNFS: Fix RCU lock leakage
      50bda5fa
  9. 11 Apr, 2020 13 commits