1. 08 Dec, 2019 10 commits
    • Linus Torvalds's avatar
      Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 138f371d
      Linus Torvalds authored
      Pull more SCSI updates from James Bottomley:
       "Eleven patches, all in drivers (no core changes) that are either minor
        cleanups or small fixes.
      
        They were late arriving, but still safe for -rc1"
      
      * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: MAINTAINERS: Add the linux-scsi mailing list to the ISCSI entry
        scsi: megaraid_sas: Make poll_aen_lock static
        scsi: sd_zbc: Improve report zones error printout
        scsi: qla2xxx: Fix qla2x00_request_irqs() for MSI
        scsi: qla2xxx: unregister ports after GPN_FT failure
        scsi: qla2xxx: fix rports not being mark as lost in sync fabric scan
        scsi: pm80xx: Remove unused include of linux/version.h
        scsi: pm80xx: fix logic to break out of loop when register value is 2 or 3
        scsi: scsi_transport_sas: Fix memory leak when removing devices
        scsi: lpfc: size cpu map by last cpu id set
        scsi: ibmvscsi_tgt: Remove unneeded variable rc
      138f371d
    • Linus Torvalds's avatar
      Merge tag '5.5-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6 · a78f7cdd
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Nine cifs/smb3 fixes:
      
         - one fix for stable (oops during oplock break)
      
         - two timestamp fixes including important one for updating mtime at
           close to avoid stale metadata caching issue on dirty files (also
           improves perf by using SMB2_CLOSE_FLAG_POSTQUERY_ATTRIB over the
           wire)
      
         - two fixes for "modefromsid" mount option for file create (now
           allows mode bits to be set more atomically and accurately on create
           by adding "sd_context" on create when modefromsid specified on
           mount)
      
         - two fixes for multichannel found in testing this week against
           different servers
      
         - two small cleanup patches"
      
      * tag '5.5-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6:
        smb3: improve check for when we send the security descriptor context on create
        smb3: fix mode passed in on create for modetosid mount option
        cifs: fix possible uninitialized access and race on iface_list
        cifs: Fix lookup of SMB connections on multichannel
        smb3: query attributes on file close
        smb3: remove unused flag passed into close functions
        cifs: remove redundant assignment to pointer pneg_ctxt
        fs: cifs: Fix atime update check vs mtime
        CIFS: Fix NULL-pointer dereference in smb2_push_mandatory_locks
      a78f7cdd
    • Linus Torvalds's avatar
      Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 5bf9a06a
      Linus Torvalds authored
      Pull misc vfs cleanups from Al Viro:
       "No common topic, just three cleanups".
      
      * 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        make __d_alloc() static
        fs/namespace: add __user to open_tree and move_mount syscalls
        fs/fnctl: fix missing __user in fcntl_rw_hint()
      5bf9a06a
    • Linus Torvalds's avatar
      Merge tag 'ntb-5.5' of git://github.com/jonmason/ntb · 9455d25f
      Linus Torvalds authored
      Pull NTB update from Jon Mason:
       "Just a simple patch to add a new Hygon Device ID to the AMD NTB device
        driver"
      
      * tag 'ntb-5.5' of git://github.com/jonmason/ntb:
        NTB: Add Hygon Device ID
      9455d25f
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 73721451
      Linus Torvalds authored
      Pull more input updates from Dmitry Torokhov:
      
       - fixups for Synaptics RMI4 driver
      
       - a quirk for Goodinx touchscreen on Teclast tablet
      
       - a new keycode definition for activating privacy screen feature found
         on a few "enterprise" laptops
      
       - updates to snvs_pwrkey driver
      
       - polling uinput device for writing (which is always allowed) now works
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: synaptics-rmi4 - don't increment rmiaddr for SMBus transfers
        Input: synaptics-rmi4 - re-enable IRQs in f34v7_do_reflash
        Input: goodix - add upside-down quirk for Teclast X89 tablet
        Input: add privacy screen toggle keycode
        Input: uinput - fix returning EPOLLOUT from uinput_poll
        Input: snvs_pwrkey - remove gratuitous NULL initializers
        Input: snvs_pwrkey - send key events for i.MX6 S, DL and Q
      73721451
    • Linus Torvalds's avatar
      Merge tag 'iomap-5.5-merge-14' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 95207d55
      Linus Torvalds authored
      Pull iomap fixes from Darrick Wong:
       "Fix a race condition and a use-after-free error:
      
         - Fix a UAF when reporting writeback errors
      
         - Fix a race condition when handling page uptodate on fragmented file
           with blocksize < pagesize"
      
      * tag 'iomap-5.5-merge-14' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        iomap: stop using ioend after it's been freed in iomap_finish_ioend()
        iomap: fix sub-page uptodate handling
      95207d55
    • Linus Torvalds's avatar
      Merge tag 'xfs-5.5-merge-17' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 50caca9d
      Linus Torvalds authored
      Pull xfs fixes from Darrick Wong:
       "Fix a couple of resource management errors and a hang:
      
         - fix a crash in the log setup code when log mounting fails
      
         - fix a hang when allocating space on the realtime device
      
         - fix a block leak when freeing space on the realtime device"
      
      * tag 'xfs-5.5-merge-17' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: fix mount failure crash on invalid iclog memory access
        xfs: don't check for AG deadlock for realtime files in bunmapi
        xfs: fix realtime file data space leak
      50caca9d
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.5-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux · 316933cf
      Linus Torvalds authored
      Pull orangefs update from Mike Marshall:
       "orangefs: posix open permission checking...
      
        Orangefs has no open, and orangefs checks file permissions on each
        file access. Posix requires that file permissions be checked on open
        and nowhere else. Orangefs-through-the-kernel needs to seem posix
        compliant.
      
        The VFS opens files, even if the filesystem provides no method. We can
        see if a file was successfully opened for read and or for write by
        looking at file->f_mode.
      
        When writes are flowing from the page cache, file is no longer
        available. We can trust the VFS to have checked file->f_mode before
        writing to the page cache.
      
        The mode of a file might change between when it is opened and IO
        commences, or it might be created with an arbitrary mode.
      
        We'll make sure we don't hit EACCES during the IO stage by using
        UID 0"
      
      [ This is "posixish", but not a great solution in the long run, since a
        proper secure network server shouldn't really trust the client like this.
        But proper and secure POSIX behavior requires an open method and a
        resulting cookie for IO of some kind, or similar.    - Linus ]
      
      * tag 'for-linus-5.5-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux:
        orangefs: posix open permission checking...
      316933cf
    • Linus Torvalds's avatar
      Merge tag 'nfsd-5.5' of git://linux-nfs.org/~bfields/linux · 911d137a
      Linus Torvalds authored
      Pull nfsd updates from Bruce Fields:
       "This is a relatively quiet cycle for nfsd, mainly various bugfixes.
      
        Possibly most interesting is Trond's fixes for some callback races
        that were due to my incomplete understanding of rpc client shutdown.
        Unfortunately at the last minute I've started noticing a new
        intermittent failure to send callbacks. As the logic seems basically
        correct, I'm leaving Trond's patches in for now, and hope to find a
        fix in the next week so I don't have to revert those patches"
      
      * tag 'nfsd-5.5' of git://linux-nfs.org/~bfields/linux: (24 commits)
        nfsd: depend on CRYPTO_MD5 for legacy client tracking
        NFSD fixing possible null pointer derefering in copy offload
        nfsd: check for EBUSY from vfs_rmdir/vfs_unink.
        nfsd: Ensure CLONE persists data and metadata changes to the target file
        SUNRPC: Fix backchannel latency metrics
        nfsd: restore NFSv3 ACL support
        nfsd: v4 support requires CRYPTO_SHA256
        nfsd: Fix cld_net->cn_tfm initialization
        lockd: remove __KERNEL__ ifdefs
        sunrpc: remove __KERNEL__ ifdefs
        race in exportfs_decode_fh()
        nfsd: Drop LIST_HEAD where the variable it declares is never used.
        nfsd: document callback_wq serialization of callback code
        nfsd: mark cb path down on unknown errors
        nfsd: Fix races between nfsd4_cb_release() and nfsd4_shutdown_callback()
        nfsd: minor 4.1 callback cleanup
        SUNRPC: Fix svcauth_gss_proxy_init()
        SUNRPC: Trace gssproxy upcall results
        sunrpc: fix crash when cache_head become valid before update
        nfsd: remove private bin2hex implementation
        ...
      911d137a
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.5-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · fb9bf40c
      Linus Torvalds authored
      Pull NFS client updates from Trond Myklebust:
       "Highlights include:
      
        Features:
      
         - NFSv4.2 now supports cross device offloaded copy (i.e. offloaded
           copy of a file from one source server to a different target
           server).
      
         - New RDMA tracepoints for debugging congestion control and Local
           Invalidate WRs.
      
        Bugfixes and cleanups
      
         - Drop the NFSv4.1 session slot if nfs4_delegreturn_prepare waits for
           layoutreturn
      
         - Handle bad/dead sessions correctly in nfs41_sequence_process()
      
         - Various bugfixes to the delegation return operation.
      
         - Various bugfixes pertaining to delegations that have been revoked.
      
         - Cleanups to the NFS timespec code to avoid unnecessary conversions
           between timespec and timespec64.
      
         - Fix unstable RDMA connections after a reconnect
      
         - Close race between waking an RDMA sender and posting a receive
      
         - Wake pending RDMA tasks if connection fails
      
         - Fix MR list corruption, and clean up MR usage
      
         - Fix another RPCSEC_GSS issue with MIC buffer space"
      
      * tag 'nfs-for-5.5-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (79 commits)
        SUNRPC: Capture completion of all RPC tasks
        SUNRPC: Fix another issue with MIC buffer space
        NFS4: Trace lock reclaims
        NFS4: Trace state recovery operation
        NFSv4.2 fix memory leak in nfs42_ssc_open
        NFSv4.2 fix kfree in __nfs42_copy_file_range
        NFS: remove duplicated include from nfs4file.c
        NFSv4: Make _nfs42_proc_copy_notify() static
        NFS: Fallocate should use the nfs4_fattr_bitmap
        NFS: Return -ETXTBSY when attempting to write to a swapfile
        fs: nfs: sysfs: Remove NULL check before kfree
        NFS: remove unneeded semicolon
        NFSv4: add declaration of current_stateid
        NFSv4.x: Drop the slot if nfs4_delegreturn_prepare waits for layoutreturn
        NFSv4.x: Handle bad/dead sessions correctly in nfs41_sequence_process()
        nfsv4: Move NFSPROC4_CLNT_COPY_NOTIFY to end of list
        SUNRPC: Avoid RPC delays when exiting suspend
        NFS: Add a tracepoint in nfs_fh_to_dentry()
        NFSv4: Don't retry the GETATTR on old stateid in nfs4_delegreturn_done()
        NFSv4: Handle NFS4ERR_OLD_STATEID in delegreturn
        ...
      fb9bf40c
  2. 07 Dec, 2019 23 commits
  3. 06 Dec, 2019 7 commits
    • Linus Torvalds's avatar
      Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 347f56fb
      Linus Torvalds authored
      Pull ARM SoC fixes from Olof Johansson:
       "A set of fixes that we've merged late, but for the most part that have
        been sitting in -next for a while through platform maintainer trees:
      
         - Fixes to suspend/resume on Tegra, caused by the added features this
           merge window
      
         - Cleanups and minor fixes to TI additions this merge window
      
         - Tee fixes queued up late before the merge window, included here.
      
         - A handful of other fixlets
      
        There's also a refresh of the shareed config files (multi_v* on
        32-bit, and defconfig on 64-bit), to avoid conflicts when we get new
        contributions"
      
      * tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (32 commits)
        ARM: multi_v7_defconfig: Restore debugfs support
        ARM: defconfig: re-run savedefconfig on multi_v* configs
        arm64: defconfig: re-run savedefconfig
        ARM: pxa: Fix resource properties
        soc: mediatek: cmdq: fixup wrong input order of write api
        soc: aspeed: Fix snoop_file_poll()'s return type
        MAINTAINERS: Switch to Marvell addresses
        MAINTAINERS: update Cavium ThunderX drivers
        Revert "arm64: dts: juno: add dma-ranges property"
        MAINTAINERS: Make Nicolas Saenz Julienne the new bcm2835 maintainer
        firmware: arm_scmi: Avoid double free in error flow
        arm64: dts: juno: Fix UART frequency
        ARM: dts: Fix sgx sysconfig register for omap4
        arm: socfpga: execute cold reboot by default
        ARM: dts: Fix vcsi regulator to be always-on for droid4 to prevent hangs
        ARM: dts: dra7: fix cpsw mdio fck clock
        ARM: dts: am57xx-beagle-x15: Update pinmux name to ddr_3_3v
        ARM: dts: omap3-tao3530: Fix incorrect MMC card detection GPIO polarity
        soc/tegra: pmc: Add reset sources and levels on Tegra194
        soc/tegra: pmc: Add missing IRQ callbacks on Tegra194
        ...
      347f56fb
    • Linus Torvalds's avatar
      Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 98884281
      Linus Torvalds authored
      Pull arm64 fixes from Catalin Marinas:
      
       - ZONE_DMA32 initialisation fix when memblocks fall entirely within the
         first GB (used by ZONE_DMA in 5.5 for Raspberry Pi 4).
      
       - Couple of ftrace fixes following the FTRACE_WITH_REGS patchset.
      
       - access_ok() fix for the Tagged Address ABI when called from from a
         kernel thread (asynchronous I/O): the kthread does not have the TIF
         flags of the mm owner, so untag the user address unconditionally.
      
       - KVM compute_layout() called before the alternatives code patching.
      
       - Minor clean-ups.
      
      * tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: entry: refine comment of stack overflow check
        arm64: ftrace: fix ifdeffery
        arm64: KVM: Invoke compute_layout() before alternatives are applied
        arm64: Validate tagged addresses in access_ok() called from kernel threads
        arm64: mm: Fix column alignment for UXN in kernel_page_tables
        arm64: insn: consistently handle exit text
        arm64: mm: Fix initialisation of DMA zones on non-NUMA systems
      98884281
    • David Howells's avatar
      pipe: Fix iteration end check in fuse_dev_splice_write() · 76f6777c
      David Howells authored
      Fix the iteration end check in fuse_dev_splice_write().  The iterator
      position can only be compared with == or != since wrappage may be involved.
      
      Fixes: 8cefc107 ("pipe: Use head and tail pointers for the ring, not cursor and length")
      Reported-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      76f6777c
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 43a28986
      Linus Torvalds authored
      Pull more powerpc updates from Michael Ellerman:
       "A few commits splitting the KASAN instrumented bitops header in three,
        to match the split of the asm-generic bitops headers.
      
        This is needed on powerpc because we use the generic bitops for the
        non-atomic case only, whereas the existing KASAN instrumented bitops
        assume all the underlying operations are provided by the arch as
        arch_foo() versions.
      
        Thanks to: Daniel Axtens & Christophe Leroy"
      
      * tag 'powerpc-5.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        docs/core-api: Remove possibly confusing sub-headings from Bit Operations
        powerpc: support KASAN instrumentation of bitops
        kasan: support instrumented bitops combined with generic bitops
      43a28986
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · f89d416a
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
       "One fix for a regression introduced by our recent rework of cache
        flushing on memory hotunplug.
      
        Like several other arches, our VDSO clock_getres() needed a fix to
        match the semantics of posix_get_hrtimer_res().
      
        A fix for a boot crash on Power9 LPARs using PCI LSI interrupts.
      
        A commit disabling use of the trace_imc PMU (not the core PMU) on
        Power9 systems, because it can lead to checkstops, until a workaround
        is developed.
      
        A handful of other minor fixes.
      
        Thanks to: Aneesh Kumar K.V, Anju T Sudhakar, Ard Biesheuvel,
        Christophe Leroy, Cédric Le Goater, Madhavan Srinivasan, Vincenzo
        Frascino"
      
      * tag 'powerpc-5.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/perf: Disable trace_imc pmu
        powerpc/powernv: Avoid re-registration of imc debugfs directory
        powerpc/pmem: Convert to EXPORT_SYMBOL_GPL
        powerpc/archrandom: fix arch_get_random_seed_int()
        powerpc: Fix vDSO clock_getres()
        powerpc/pmem: Fix kernel crash due to wrong range value usage in flush_dcache_range
        powerpc/xive: Skip ioremap() of ESB pages for LSI interrupts
        powerpc/kasan: Fix boot failure with RELOCATABLE && FSL_BOOKE
      f89d416a
    • Linus Torvalds's avatar
      Merge tag 'sound-fix-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 3cf2890f
      Linus Torvalds authored
      Pull more sound updates from Takashi Iwai:
       "A few last-minute updates, most of them are the regression fixes:
      
         - AMD HD-audio HDMI runtime PM improvements
      
         - Fixes for HD-audio HDMI regressions wrt DP-MST
      
         - A regression fix for the previous aloop enhancement
      
         - A fix for a long-time problem in PCM OSS layer that was spotted by
           fuzzer now
      
         - A few HD-audio quirks"
      
      * tag 'sound-fix-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: pcm: oss: Avoid potential buffer overflows
        ALSA: hda: hdmi - Keep old slot assignment behavior for Intel platforms
        ALSA: hda: Modify stream stripe mask only when needed
        ALSA: hda - fixup for the bass speaker on Lenovo Carbon X1 7th gen
        ALSA: hda: hdmi - preserve non-MST PCM routing for Intel platforms
        ALSA: hda: hdmi - fix kernel oops caused by invalid PCM idx
        ALSA: hda/realtek - Fix inverted bass GPIO pin on Acer 8951G
        ALSA: hda/realtek - Dell headphone has noise on unmute for ALC236
        ALSA: hda: hdmi - fix regression in connect list handling
        ALSA: aloop: Avoid pointer dereference before null-check
        ALSA: hda/hdmi - enable automatic runtime pm for AMD HDMI codecs by default
        ALSA: hda/hdmi - enable runtime pm for newer AMD display audio
        ALSA: hda/hdmi - Add new pci ids for AMD GPU display audio
        ALSA: hda/hdmi - fix vgaswitcheroo detection for AMD
      3cf2890f
    • Linus Torvalds's avatar
      pipe: fix incorrect caching of pipe state over pipe_wait() · ec057595
      Linus Torvalds authored
      Similarly to commit 8f868d68 ("pipe: Fix missing mask update after
      pipe_wait()") this fixes a case where the pipe rewrite ended up caching
      the pipe state incorrectly over a pipe lock drop event.
      
      It wasn't quite as obvious, because you needed to splice data from a
      pipe to a file, which is a fairly unusual operation, but it's completely
      wrong.
      
      Make sure we load the pipe head/tail/size information only after we've
      waited for there to be data in the pipe.
      
      While in that file, also make one of the splice helper functions use the
      canonical arghument order for pipe_empty().  That's syntactic - pipe
      emptiness is just that head and tail are equal, and thus mixing up head
      and tail doesn't really matter.  It's still wrong, though.
      Reported-by: default avatarDavid Sterba <dsterba@suse.cz>
      Cc: David Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ec057595