1. 17 5月, 2017 16 次提交
  2. 12 5月, 2017 3 次提交
  3. 09 5月, 2017 18 次提交
    • C
      scsi: pmcraid: remove redundant check to see if request_size is less than zero · b77b36cb
      Colin Ian King 提交于
      The 2nd check to see if request_size is less than zero is redundant
      because the first check takes error exit path on this condition. So,
      since it is redundant, remove it.
      
      Detected by CoverityScan, CID#146149 ("Logically Dead Code")
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Reviewed-by: NTyrel Datwyler <tyreld@linux.vnet.ibm.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      b77b36cb
    • C
      scsi: lpfc: ensure els_wq is being checked before destroying it · 019c0d66
      Colin Ian King 提交于
      I believe there is a typo on the wq destroy of els_wq, currently the
      driver is checking if els_cq is not null and I think this should be a
      check on els_wq instead.
      
      Detected by CoverityScan, CID#1411629 ("Copy-paste error")
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Acked-by: NDick Kennedy <dick.kennedy@broadcom.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      019c0d66
    • G
      scsi: cxlflash: Select IRQ_POLL · 07cc1ccf
      Guenter Roeck 提交于
      The driver now uses IRQ_POLL and needs to select it to avoid the
      following build error.
      
      ERROR: ".irq_poll_complete" [drivers/scsi/cxlflash/cxlflash.ko] undefined!
      ERROR: ".irq_poll_sched" [drivers/scsi/cxlflash/cxlflash.ko] undefined!
      ERROR: ".irq_poll_disable" [drivers/scsi/cxlflash/cxlflash.ko] undefined!
      ERROR: ".irq_poll_init" [drivers/scsi/cxlflash/cxlflash.ko] undefined!
      
      Fixes: cba06e6d ("scsi: cxlflash: Implement IRQ polling for RRQ processing")
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Acked-by: NMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      07cc1ccf
    • K
      scsi: qedf: Avoid reading past end of buffer · cd22874f
      Kees Cook 提交于
      Using memcpy() from a string that is shorter than the length copied
      means the destination buffer is being filled with arbitrary data from
      the kernel rodata segment. Instead, use strncpy() which will fill the
      trailing bytes with zeros.
      
      This was found with the future CONFIG_FORTIFY_SOURCE feature.
      
      Cc: Daniel Micay <danielmicay@gmail.com>
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Acked-by: NChad Dupuis <chad.dupuis@cavium.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      cd22874f
    • D
      scsi: qedf: Cleanup the type of io_log->op · 0d2fc3b4
      Dan Carpenter 提交于
      We store sc_cmd->cmnd[0] which is an unsigned char in io_log->op so
      this should also be unsigned char.  The other thing is that this is
      displayed in the debugfs:
      
      	seq_printf(s, "0x%02x:", io_log->op);
      
      Smatch complains that the formatting won't work for negative values so
      changing it to unsigned silences that warning as well.
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Acked-by: NChad Dupuis <chad.dupuis@cavium.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      0d2fc3b4
    • D
      scsi: lpfc: double lock typo in lpfc_ns_rsp() · 0d618cf4
      Dan Carpenter 提交于
      There is a double lock bug here so this will deadlock instead of
      unlocking.
      
      Fixes: 1c5b12f7 ("Fix implicit logo and RSCN handling for NVMET")
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Reviewed-by: NJames Smart <james.smart@broadcom.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      0d618cf4
    • G
      scsi: qedf: properly update arguments position in function call · 87ea6bdd
      Gustavo A. R. Silva 提交于
      Properly update the position of the arguments in function call.
      
      Addresses-Coverity-ID: 1402010
      Signed-off-by: NGustavo A. R. Silva <garsilva@embeddedor.com>
      Acked-by: NChad Dupuis <chad.dupuis@cavium.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      87ea6bdd
    • B
      scsi: scsi_lib: Add #include <scsi/scsi_transport.h> · 7aa686d3
      Bart Van Assche 提交于
      This patch avoids that when building with W=1 the compiler complains
      that __scsi_init_queue() has not been declared.  See also commit
      d48777a6 ("scsi: remove __scsi_alloc_queue").
      Signed-off-by: NBart Van Assche <bart.vanassche@sandisk.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Hannes Reinecke <hare@suse.com>
      Cc: Johannes Thumshirn <jthumshirn@suse.de>
      Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      7aa686d3
    • C
      scsi: MAINTAINERS: update OSD entries · 7cc49bbd
      Christoph Hellwig 提交于
      The open-osd domain doesn't exist anymore, and mails to the list lead to
      really annoying bounced that repeat every day.
      
      Also the primarydata address for Benny bounces, and while I have a new
      one for him he doesn't seem to be maintaining the OSD code any more.
      
      Which beggs the question: should we really leave the Supported status in
      MAINTAINERS given that the code is barely maintained?
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Acked-by: NJeff Layton <jlayton@redhat.com>
      Acked-by: NBoaz Harrosh <ooo@electrozaur.com>
      Acked-by: NBenny Halevy <bhalevy@gmail.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      7cc49bbd
    • Z
      scsi: Skip deleted devices in __scsi_device_lookup · 4ff7adc8
      Zhou Zhengping 提交于
      When a device is unplugged from a SCSI controller, if the scsi_device is
      still in use by application layer, it won't get released until users
      close it.
      
      In this case, scsi_device_remove just set the scsi_device's state to be
      SDEV_DEL. But if you plug the disk just before the old scsi_device is
      released, then there will be two scsi_device structures in
      scsi_host->__devices. When the next unplug event happens, some low-level
      drivers will check whether the scsi_device has been added to host (for
      example the MegaRAID SAS series controller) by calling
      scsi_device_lookup(call __scsi_device_lookup) in function
      megasas_aen_polling. __scsi_device_lookup will return the first
      scsi_device. Because its state is SDEV_DEL, the scsi_device_lookup will
      return NULL, making the low-level driver assume that the scsi_device has
      been removed, and won't call scsi_device_remove which will lead to hot
      swap failure.
      Signed-off-by: NZhou Zhengping <johnzzpcrystal@gmail.com>
      Tested-by: NZeng Rujia <ZengRujia@sangfor.com.cn>
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195607Reviewed-by: NHannes Reinecke <hare@suse.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      4ff7adc8
    • J
      scsi: lpfc: Fix panic on BFS configuration · 4492b739
      James Smart 提交于
      To select the appropriate shost template, the driver is issuing a
      mailbox command to retrieve the wwn. Turns out the sending of the
      command precedes the reset of the function.  On SLI-4 adapters, this is
      inconsequential as the mailbox command location is specified by dma via
      the BMBX register. However, on SLI-3 adapters, the location of the
      mailbox command submission area changes. When the function is first
      powered on or reset, the cmd is submitted via PCI bar memory. Later the
      driver changes the function config to use host memory and DMA. The
      request to start a mailbox command is the same, a simple doorbell write,
      regardless of submission area.  So.. if there has not been a boot driver
      run against the adapter, the mailbox command works as defaults are
      ok. But, if the boot driver has configured the card and, and if no
      platform pci function/slot reset occurs as the os starts, the mailbox
      command will fail. The SLI-3 device will use the stale boot driver dma
      location. This can cause PCI eeh errors.
      
      Fix is to reset the sli-3 function before sending the mailbox command,
      thus synchronizing the function/driver on mailbox location.
      
      Note: The fix uses routines that are typically invoked later in the call
      flow to reset the sli-3 device. The issue in using those routines is
      that the normal (non-fix) flow does additional initialization, namely
      the allocation of the pport structure. So, rather than significantly
      reworking the initialization flow so that the pport is alloc'd first,
      pointer checks are added to work around it. Checks are limited to the
      routines invoked by a sli-3 adapter (s3 routines) as this fix/early call
      is only invoked on a sli3 adapter. Nothing changes post the
      fix. Subsequent initialization, and another adapter reset, still occur -
      both on sli-3 and sli-4 adapters.
      Signed-off-by: NDick Kennedy <dick.kennedy@broadcom.com>
      Signed-off-by: NJames Smart <james.smart@broadcom.com>
      Fixes: 96418b5e ("scsi: lpfc: Fix eh_deadline setting for sli3 adapters.")
      Cc: stable@vger.kernel.org # v4.11+
      Reviewed-by: NEwan D. Milne <emilne@redhat.com>
      Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      4492b739
    • H
      scsi: libfc: do not flood console with messages 'libfc: queue full ...' · c1061255
      Hannes Reinecke 提交于
      When the FCoE sending side becomes congested libfc tries to reduce the
      queue depth on the host; however due to the built-in lag before
      attempting to ramp down the queue depth _again_ the message log is
      flooded with the following message:
      
      	libfc: queue full, reducing can_queue to 512
      
      With this patch the message is printed only once (ie when it's
      actually changed).
      Signed-off-by: NHannes Reinecke <hare@suse.com>
      Reviewed-by: NBart Van Assche <Bart.VanAssche@sandisk.com>
      Acked-by: NJohannes Thumshirn <jth@kernel.org>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      c1061255
    • L
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 2d3e4866
      Linus Torvalds 提交于
      Pull KVM updates from Paolo Bonzini:
       "ARM:
         - HYP mode stub supports kexec/kdump on 32-bit
         - improved PMU support
         - virtual interrupt controller performance improvements
         - support for userspace virtual interrupt controller (slower, but
           necessary for KVM on the weird Broadcom SoCs used by the Raspberry
           Pi 3)
      
        MIPS:
         - basic support for hardware virtualization (ImgTec P5600/P6600/I6400
           and Cavium Octeon III)
      
        PPC:
         - in-kernel acceleration for VFIO
      
        s390:
         - support for guests without storage keys
         - adapter interruption suppression
      
        x86:
         - usual range of nVMX improvements, notably nested EPT support for
           accessed and dirty bits
         - emulation of CPL3 CPUID faulting
      
        generic:
         - first part of VCPU thread request API
         - kvm_stat improvements"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (227 commits)
        kvm: nVMX: Don't validate disabled secondary controls
        KVM: put back #ifndef CONFIG_S390 around kvm_vcpu_kick
        Revert "KVM: Support vCPU-based gfn->hva cache"
        tools/kvm: fix top level makefile
        KVM: x86: don't hold kvm->lock in KVM_SET_GSI_ROUTING
        KVM: Documentation: remove VM mmap documentation
        kvm: nVMX: Remove superfluous VMX instruction fault checks
        KVM: x86: fix emulation of RSM and IRET instructions
        KVM: mark requests that need synchronization
        KVM: return if kvm_vcpu_wake_up() did wake up the VCPU
        KVM: add explicit barrier to kvm_vcpu_kick
        KVM: perform a wake_up in kvm_make_all_cpus_request
        KVM: mark requests that do not need a wakeup
        KVM: remove #ifndef CONFIG_S390 around kvm_vcpu_wake_up
        KVM: x86: always use kvm_make_request instead of set_bit
        KVM: add kvm_{test,clear}_request to replace {test,clear}_bit
        s390: kvm: Cpu model support for msa6, msa7 and msa8
        KVM: x86: remove irq disablement around KVM_SET_CLOCK/KVM_GET_CLOCK
        kvm: better MWAIT emulation for guests
        KVM: x86: virtualize cpuid faulting
        ...
      2d3e4866
    • L
      Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm · 9c6ee01e
      Linus Torvalds 提交于
      Pull ARM updates from Russell King:
       "Lots of little things this time:
      
         - allow modules to be autoloaded according to the HWCAP feature bits
           (used primarily for crypto modules)
      
         - split module core and init PLT sections, since the core code and
           init code could be placed far apart, and the PLT sections need to
           be local to the code block.
      
         - three patches from Chris Brandt to allow Cortex-A9 L2 cache
           optimisations to be disabled where a SoC didn't wire up the out of
           band signals.
      
         - NoMMU compliance fixes, avoiding corruption of vector table which
           is not being used at this point, and avoiding possible register
           state corruption when switching mode.
      
         - fixmap memory attribute compliance update.
      
         - remove unnecessary locking from update_sections_early()
      
         - ftrace fix for DEBUG_RODATA with !FRAME_POINTER"
      
      * 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm:
        ARM: 8672/1: mm: remove tasklist locking from update_sections_early()
        ARM: 8671/1: V7M: Preserve registers across switch from Thread to Handler mode
        ARM: 8670/1: V7M: Do not corrupt vector table around v7m_invalidate_l1 call
        ARM: 8668/1: ftrace: Fix dynamic ftrace with DEBUG_RODATA and !FRAME_POINTER
        ARM: 8667/3: Fix memory attribute inconsistencies when using fixmap
        ARM: 8663/1: wire up HWCAP/HWCAP2 feature bits to the CPU modalias
        ARM: 8666/1: mm: dump: Add domain to output
        ARM: 8662/1: module: split core and init PLT sections
        ARM: 8661/1: dts: r7s72100: add l2 cache
        ARM: 8660/1: shmobile: r7s72100: Enable L2 cache
        ARM: 8659/1: l2c: allow CA9 optimizations to be disabled
      9c6ee01e
    • L
      Merge tag 'xtensa-20170507' of git://github.com/jcmvbkbc/linux-xtensa · d9dc0895
      Linus Torvalds 提交于
      Pull Xtensa updates from Max Filippov:
      
       - clearly mark references to spilled register locations with SPILL_SLOT
         macros
      
       - clean up xtensa ptrace: use generic tracehooks, move internal kernel
         definitions from uapi/asm to asm, make locally-used functions static,
         fix code style and alignment
      
       - use command line parameters passed to ISS as kernel command line.
      
      * tag 'xtensa-20170507' of git://github.com/jcmvbkbc/linux-xtensa:
        xtensa: clean up access to spilled registers locations
        xtensa: use generic tracehooks
        xtensa: move internal ptrace definitions from uapi/asm to asm
        xtensa: clean up xtensa/kernel/ptrace.c
        xtensa: drop unused fast_io_protect function
        xtensa: use ITLB_HIT_BIT instead of hardcoded number
        xtensa: ISS: update kernel command line in platform_setup
        xtensa: ISS: add argc/argv simcall definitions
        xtensa: ISS: cleanup setup.c
      d9dc0895
    • L
      Merge tag 'for-f2fs-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs · 70ef8f0d
      Linus Torvalds 提交于
      Pull f2fs updates from Jaegeuk Kim:
       "In this round, we've focused on enhancing performance with regards to
        block allocation, GC, and discard/in-place-update IO controls. There
        are a bunch of clean-ups as well as minor bug fixes.
      
        Enhancements:
         - disable heap-based allocation by default
         - issue small-sized discard commands by default
         - change the policy of data hotness for logging
         - distinguish IOs in terms of size and wbc type
         - start SSR earlier to avoid foreground GC
         - enhance data structures managing discard commands
         - enhance in-place update flow
         - add some more fault injection routines
         - secure one more xattr entry
      
        Bug fixes:
         - calculate victim cost for GC correctly
         - remain correct victim segment number for GC
         - race condition in nid allocator and initializer
         - stale pointer produced by atomic_writes
         - fix missing REQ_SYNC for flush commands
         - handle missing errors in more corner cases"
      
      * tag 'for-f2fs-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs: (111 commits)
        f2fs: fix a mount fail for wrong next_scan_nid
        f2fs: enhance scalability of trace macro
        f2fs: relocate inode_{,un}lock in F2FS_IOC_SETFLAGS
        f2fs: Make flush bios explicitely sync
        f2fs: show available_nids in f2fs/status
        f2fs: flush dirty nats periodically
        f2fs: introduce CP_TRIMMED_FLAG to avoid unneeded discard
        f2fs: allow cpc->reason to indicate more than one reason
        f2fs: release cp and dnode lock before IPU
        f2fs: shrink size of struct discard_cmd
        f2fs: don't hold cmd_lock during waiting discard command
        f2fs: nullify fio->encrypted_page for each writes
        f2fs: sanity check segment count
        f2fs: introduce valid_ipu_blkaddr to clean up
        f2fs: lookup extent cache first under IPU scenario
        f2fs: reconstruct code to write a data page
        f2fs: introduce __wait_discard_cmd
        f2fs: introduce __issue_discard_cmd
        f2fs: enable small discard by default
        f2fs: delay awaking discard thread
        ...
      70ef8f0d
    • L
      Merge tag 'fscrypt_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/fscrypt · 677375ce
      Linus Torvalds 提交于
      Pull fscrypt updates from Ted Ts'o:
       "Only bug fixes and cleanups for this merge window"
      
      * tag 'fscrypt_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/fscrypt:
        fscrypt: correct collision claim for digested names
        MAINTAINERS: fscrypt: update mailing list, patchwork, and git
        ext4: clean up ext4_match() and callers
        f2fs: switch to using fscrypt_match_name()
        ext4: switch to using fscrypt_match_name()
        fscrypt: introduce helper function for filename matching
        fscrypt: avoid collisions when presenting long encrypted filenames
        f2fs: check entire encrypted bigname when finding a dentry
        ubifs: check for consistent encryption contexts in ubifs_lookup()
        f2fs: sync f2fs_lookup() with ext4_lookup()
        ext4: remove "nokey" check from ext4_lookup()
        fscrypt: fix context consistency check when key(s) unavailable
        fscrypt: Remove __packed from fscrypt_policy
        fscrypt: Move key structure and constants to uapi
        fscrypt: remove fscrypt_symlink_data_len()
        fscrypt: remove unnecessary checks for NULL operations
      677375ce
    • L
      Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · dd727dad
      Linus Torvalds 提交于
      Pull ext4 updates from Ted Ts'o:
      
       - add GETFSMAP support
      
       - some performance improvements for very large file systems and for
         random write workloads into a preallocated file
      
       - bug fixes and cleanups.
      
      * tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        jbd2: cleanup write flags handling from jbd2_write_superblock()
        ext4: mark superblock writes synchronous for nobarrier mounts
        ext4: inherit encryption xattr before other xattrs
        ext4: replace BUG_ON with WARN_ONCE in ext4_end_bio()
        ext4: avoid unnecessary transaction stalls during writeback
        ext4: preload block group descriptors
        ext4: make ext4_shutdown() static
        ext4: support GETFSMAP ioctls
        vfs: add common GETFSMAP ioctl definitions
        ext4: evict inline data when writing to memory map
        ext4: remove ext4_xattr_check_entry()
        ext4: rename ext4_xattr_check_names() to ext4_xattr_check_entries()
        ext4: merge ext4_xattr_list() into ext4_listxattr()
        ext4: constify static data that is never modified
        ext4: trim return value and 'dir' argument from ext4_insert_dentry()
        jbd2: fix dbench4 performance regression for 'nobarrier' mounts
        jbd2: Fix lockdep splat with generic/270 test
        mm: retry writepages() on ENOMEM when doing an data integrity writeback
      dd727dad
  4. 08 5月, 2017 1 次提交
  5. 07 5月, 2017 2 次提交
    • M
      docs: complete bumping minimal GNU Make version to 3.81 · 13e09881
      Max Filippov 提交于
      Commit 37d69ee3 ("docs: bump minimal GNU Make version to 3.81")
      changes one entry of GNU make version in the changes.rst, there's still
      one more entry saying that one need version 3.80.  Fix that.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      13e09881
    • L
      Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6 · fe7a719b
      Linus Torvalds 提交于
      Pull cifs fixes from Steve French:
       "Various fixes for stable for CIFS/SMB3 especially for better
        interoperability for SMB3 to Macs.
      
        It also includes Pavel's improvements to SMB3 async i/o support
        (which is much faster now)"
      
      * 'for-next' of git://git.samba.org/sfrench/cifs-2.6:
        CIFS: add misssing SFM mapping for doublequote
        SMB3: Work around mount failure when using SMB3 dialect to Macs
        cifs: fix CIFS_IOC_GET_MNT_INFO oops
        CIFS: fix mapping of SFM_SPACE and SFM_PERIOD
        CIFS: fix oplock break deadlocks
        cifs: fix CIFS_ENUMERATE_SNAPSHOTS oops
        cifs: fix leak in FSCTL_ENUM_SNAPS response handling
        Set unicode flag on cifs echo request to avoid Mac error
        CIFS: Add asynchronous write support through kernel AIO
        CIFS: Add asynchronous read support through kernel AIO
        CIFS: Add asynchronous context to support kernel AIO
        cifs: fix IPv6 link local, with scope id, address parsing
        cifs: small underflow in cnvrtDosUnixTm()
      fe7a719b