1. 04 Nov, 2020 1 commit
    • Jeff Layton's avatar
      ceph: check session state after bumping session->s_seq · 62575e27
      Jeff Layton authored
      Some messages sent by the MDS entail a session sequence number
      increment, and the MDS will drop certain types of requests on the floor
      when the sequence numbers don't match.
      
      In particular, a REQUEST_CLOSE message can cross with one of the
      sequence morphing messages from the MDS which can cause the client to
      stall, waiting for a response that will never come.
      
      Originally, this meant an up to 5s delay before the recurring workqueue
      job kicked in and resent the request, but a recent change made it so
      that the client would never resend, causing a 60s stall unmounting and
      sometimes a blockisting event.
      
      Add a new helper for incrementing the session sequence and then testing
      to see whether a REQUEST_CLOSE needs to be resent, and move the handling
      of CEPH_MDS_SESSION_CLOSING into that function. Change all of the
      bare sequence counter increments to use the new helper.
      
      Reorganize check_session_state with a switch statement.  It should no
      longer be called when the session is CLOSING, so throw a warning if it
      ever is (but still handle that case sanely).
      
      [ idryomov: whitespace, pr_err() call fixup ]
      
      URL: https://tracker.ceph.com/issues/47563
      Fixes: fa996773 ("ceph: fix potential mdsc use-after-free crash")
      Reported-by: default avatarPatrick Donnelly <pdonnell@redhat.com>
      Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
      Reviewed-by: default avatarIlya Dryomov <idryomov@gmail.com>
      Reviewed-by: default avatarXiubo Li <xiubli@redhat.com>
      Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
      62575e27
  2. 01 Nov, 2020 11 commits
    • Linus Torvalds's avatar
      Linux 5.10-rc2 · 3cea11cd
      Linus Torvalds authored
      3cea11cd
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7b56fbd8
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "Three fixes all related to #DB:
      
         - Handle the BTF bit correctly so it doesn't get lost due to a kernel
           #DB
      
         - Only clear and set the virtual DR6 value used by ptrace on user
           space triggered #DB. A kernel #DB must leave it alone to ensure
           data consistency for ptrace.
      
         - Make the bitmasking of the virtual DR6 storage correct so it does
           not lose DR_STEP"
      
      * tag 'x86-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/debug: Fix DR_STEP vs ptrace_get_debugreg(6)
        x86/debug: Only clear/set ->virtual_dr6 for userspace #DB
        x86/debug: Fix BTF handling
      7b56fbd8
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 4312e0e8
      Linus Torvalds authored
      Pull timer fixes from Thomas Gleixner:
       "A few fixes for timers/timekeeping:
      
         - Prevent undefined behaviour in the timespec64_to_ns() conversion
           which is used for converting user supplied time input to
           nanoseconds. It lacked overflow protection.
      
         - Mark sched_clock_read_begin/retry() to prevent recursion in the
           tracer
      
         - Remove unused debug functions in the hrtimer and timerlist code"
      
      * tag 'timers-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        time: Prevent undefined behaviour in timespec64_to_ns()
        timers: Remove unused inline funtion debug_timer_free()
        hrtimer: Remove unused inline function debug_hrtimer_free()
        time/sched_clock: Mark sched_clock_read_begin/retry() as notrace
      4312e0e8
    • Linus Torvalds's avatar
      Merge tag 'smp-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 82423b46
      Linus Torvalds authored
      Pull smp fix from Thomas Gleixner:
       "A single fix for stop machine.
      
        Mark functions no trace to prevent a crash caused by recursion when
        enabling or disabling a tracer on RISC-V (probably all architectures
        which patch through stop machine)"
      
      * tag 'smp-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        stop_machine, rcu: Mark functions as notrace
      82423b46
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8d99084e
      Linus Torvalds authored
      Pull locking fixes from Thomas Gleixner:
       "A couple of locking fixes:
      
         - Fix incorrect failure injection handling in the fuxtex code
      
         - Prevent a preemption warning in lockdep when tracking
           local_irq_enable() and interrupts are already enabled
      
         - Remove more raw_cpu_read() usage from lockdep which causes state
           corruption on !X86 architectures.
      
         - Make the nr_unused_locks accounting in lockdep correct again"
      
      * tag 'locking-urgent-2020-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        lockdep: Fix nr_unused_locks accounting
        locking/lockdep: Remove more raw_cpu_read() usage
        futex: Fix incorrect should_fail_futex() handling
        lockdep: Fix preemption WARN for spurious IRQ-enable
      8d99084e
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 31f02006
      Linus Torvalds authored
      Pull char/misc fixes/removals from Greg KH:
       "Here's some small fixes for 5.10-rc2 and a big driver removal.
      
        The fixes are for some reported issues in the interconnect and
        coresight drivers, nothing major.
      
        The "big" driver removal is the MIC drivers have been asked to be
        removed as the hardware never shipped and Intel no longer wants to
        maintain something that no one can use. This is welcomed by many as
        the DMA usage of these drivers was "interesting" and the security
        people were starting to question some issues that were starting to be
        found in the codebase.
      
        Note, one of the subsystems for this driver, the "VOP" code, will
        probably come back in future kernel versions as it was looking to
        potentially solve some PCIe virtualization issues that a number of
        other vendors were wanting to solve. But as-is, this codebase didn't
        work for anyone else so no actual functionality is being removed.
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'char-misc-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        coresight: cti: Initialize dynamic sysfs attributes
        coresight: Fix uninitialised pointer bug in etm_setup_aux()
        coresight: add module license
        misc: mic: remove the MIC drivers
        interconnect: qcom: use icc_sync state for sm8[12]50
        interconnect: qcom: Ensure that the floor bandwidth value is enforced
        interconnect: qcom: sc7180: Init BCMs before creating the nodes
        interconnect: qcom: sdm845: Init BCMs before creating the nodes
        interconnect: Aggregate before setting initial bandwidth
        interconnect: qcom: sdm845: Enable keepalive for the MM1 BCM
      31f02006
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.10-rc2' of... · 9c75b68b
      Linus Torvalds authored
      Merge tag 'driver-core-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core and documentation fixes from Greg KH:
       "Here is one tiny debugfs change to fix up an API where the last user
        was successfully fixed up in 5.10-rc1 (so it couldn't be merged
        earlier), and a much larger Documentation/ABI/ update to the files so
        they can be automatically parsed by our tools.
      
        The Documentation/ABI/ updates are just formatting issues, small ones
        to bring the files into parsable format, and have been acked by
        numerous subsystem maintainers and the documentation maintainer. I
        figured it was good to get this into 5.10-rc2 to help wih the merge
        issues that would arise if these were to stick in linux-next until
        5.11-rc1.
      
        The debugfs change has been in linux-next for a long time, and the
        Documentation updates only for the last linux-next release"
      
      * tag 'driver-core-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (40 commits)
        scripts: get_abi.pl: assume ReST format by default
        docs: ABI: sysfs-class-led-trigger-pattern: remove hw_pattern duplication
        docs: ABI: sysfs-class-backlight: unify ABI documentation
        docs: ABI: sysfs-c2port: remove a duplicated entry
        docs: ABI: sysfs-class-power: unify duplicated properties
        docs: ABI: unify /sys/class/leds/<led>/brightness documentation
        docs: ABI: stable: remove a duplicated documentation
        docs: ABI: change read/write attributes
        docs: ABI: cleanup several ABI documents
        docs: ABI: sysfs-bus-nvdimm: use the right format for ABI
        docs: ABI: vdso: use the right format for ABI
        docs: ABI: fix syntax to be parsed using ReST notation
        docs: ABI: convert testing/configfs-acpi to ReST
        docs: Kconfig/Makefile: add a check for broken ABI files
        docs: abi-testing.rst: enable --rst-sources when building docs
        docs: ABI: don't escape ReST-incompatible chars from obsolete and removed
        docs: ABI: create a 2-depth index for ABI
        docs: ABI: make it parse ABI/stable as ReST-compatible files
        docs: ABI: sysfs-uevent: make it compatible with ReST output
        docs: ABI: testing: make the files compatible with ReST output
        ...
      9c75b68b
    • Linus Torvalds's avatar
      Merge tag 'staging-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 2376cca0
      Linus Torvalds authored
      Pull staging driver fixes from Greg KH:
       "Here are some small staging driver fixes for issues that have been
        reported in 5.10-rc1:
      
         - octeon driver fixes
      
         - wfx driver fixes
      
         - memory leak fix in vchiq driver
      
         - fieldbus driver bugfix
      
         - comedi driver bugfix
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'staging-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: fieldbus: anybuss: jump to correct label in an error path
        staging: wfx: fix test on return value of gpiod_get_value()
        staging: wfx: fix use of uninitialized pointer
        staging: mmal-vchiq: Fix memory leak for vchiq_instance
        staging: comedi: cb_pcidas: Allow 2-channel commands for AO subdevice
        staging: octeon: Drop on uncorrectable alignment or FCS error
        staging: octeon: repair "fixed-link" support
      2376cca0
    • Linus Torvalds's avatar
      Merge tag 'tty-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 2754a42e
      Linus Torvalds authored
      Pull tty/serial fixes from Greg KH:
       "Here are some small TTY and Serial driver fixes for reported issues
        for 5.10-rc2. They include:
      
         - vt ioctl bugfix for reported problems
      
         - fsl_lpuart serial driver fix
      
         - 21285 serial driver bugfix
      
        All have been in linux-next with no reported issues"
      
      * tag 'tty-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        vt_ioctl: fix GIO_UNIMAP regression
        vt: keyboard, extend func_buf_lock to readers
        vt: keyboard, simplify vt_kdgkbsent
        tty: serial: fsl_lpuart: LS1021A has a FIFO size of 16 words, like LS1028A
        tty: serial: 21285: fix lockup on open
      2754a42e
    • Linus Torvalds's avatar
      Merge tag 'usb-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 9b5ff3c9
      Linus Torvalds authored
      Pull USB driver fixes from Greg KH:
       "Here are a number of small bugfixes for reported issues in some USB
        drivers. They include:
      
         - typec bugfixes
      
         - xhci bugfixes and lockdep warning fixes
      
         - cdc-acm driver regression fix
      
         - kernel doc fixes
      
         - cdns3 driver bugfixes for a bunch of reported issues
      
         - other tiny USB driver fixes
      
        All have been in linux-next with no reported issues"
      
      * tag 'usb-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: cdns3: gadget: own the lock wrongly at the suspend routine
        usb: cdns3: Fix on-chip memory overflow issue
        usb: cdns3: gadget: suspicious implicit sign extension
        xhci: Don't create stream debugfs files with spinlock held.
        usb: xhci: Workaround for S3 issue on AMD SNPS 3.0 xHC
        xhci: Fix sizeof() mismatch
        usb: typec: stusb160x: fix signedness comparison issue with enum variables
        usb: typec: add missing MODULE_DEVICE_TABLE() to stusb160x
        USB: apple-mfi-fastcharge: don't probe unhandled devices
        usbcore: Check both id_table and match() when both available
        usb: host: ehci-tegra: Fix error handling in tegra_ehci_probe()
        usb: typec: stusb160x: fix an IS_ERR() vs NULL check in probe
        usb: typec: tcpm: reset hard_reset_count for any disconnect
        usb: cdc-acm: fix cooldown mechanism
        usb: host: fsl-mph-dr-of: check return of dma_set_mask()
        usb: fix kernel-doc markups
        usb: typec: stusb160x: fix some signedness bugs
        usb: cdns3: Variable 'length' set but not used
      9b5ff3c9
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 2d38c80d
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "ARM:
         - selftest fix
         - force PTE mapping on device pages provided via VFIO
         - fix detection of cacheable mapping at S2
         - fallback to PMD/PTE mappings for composite huge pages
         - fix accounting of Stage-2 PGD allocation
         - fix AArch32 handling of some of the debug registers
         - simplify host HYP entry
         - fix stray pointer conversion on nVHE TLB invalidation
         - fix initialization of the nVHE code
         - simplify handling of capabilities exposed to HYP
         - nuke VCPUs caught using a forbidden AArch32 EL0
      
        x86:
         - new nested virtualization selftest
         - miscellaneous fixes
         - make W=1 fixes
         - reserve new CPUID bit in the KVM leaves"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: vmx: remove unused variable
        KVM: selftests: Don't require THP to run tests
        KVM: VMX: eVMCS: make evmcs_sanitize_exec_ctrls() work again
        KVM: selftests: test behavior of unmapped L2 APIC-access address
        KVM: x86: Fix NULL dereference at kvm_msr_ignored_check()
        KVM: x86: replace static const variables with macros
        KVM: arm64: Handle Asymmetric AArch32 systems
        arm64: cpufeature: upgrade hyp caps to final
        arm64: cpufeature: reorder cpus_have_{const, final}_cap()
        KVM: arm64: Factor out is_{vhe,nvhe}_hyp_code()
        KVM: arm64: Force PTE mapping on fault resulting in a device mapping
        KVM: arm64: Use fallback mapping sizes for contiguous huge page sizes
        KVM: arm64: Fix masks in stage2_pte_cacheable()
        KVM: arm64: Fix AArch32 handling of DBGD{CCINT,SCRext} and DBGVCR
        KVM: arm64: Allocate stage-2 pgd pages with GFP_KERNEL_ACCOUNT
        KVM: arm64: Drop useless PAN setting on host EL1 to EL2 transition
        KVM: arm64: Remove leftover kern_hyp_va() in nVHE TLB invalidation
        KVM: arm64: Don't corrupt tpidr_el2 on failed HVC call
        x86/kvm: Reserve KVM_FEATURE_MSI_EXT_DEST_ID
      2d38c80d
  3. 31 Oct, 2020 8 commits
  4. 30 Oct, 2020 20 commits
    • Linus Torvalds's avatar
      Merge tag 'block-5.10-2020-10-30' of git://git.kernel.dk/linux-block · 5fc6b075
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - null_blk zone fixes (Damien, Kanchan)
      
       - NVMe pull request from Christoph:
             - improve zone revalidation (Keith Busch)
             - gracefully handle zero length messages in nvme-rdma (zhenwei pi)
             - nvme-fc error handling fixes (James Smart)
             - nvmet tracing NULL pointer dereference fix (Chaitanya Kulkarni)"
      
       - xsysace platform fixes (Andy)
      
       - scatterlist type cleanup (David)
      
       - blk-cgroup memory fixes (Gabriel)
      
       - nbd block size update fix (Ming)
      
       - Flush completion state fix (Ming)
      
       - bio_add_hw_page() iteration fix (Naohiro)
      
      * tag 'block-5.10-2020-10-30' of git://git.kernel.dk/linux-block:
        blk-mq: mark flush request as IDLE in flush_end_io()
        lib/scatterlist: use consistent sg_copy_buffer() return type
        xsysace: use platform_get_resource() and platform_get_irq_optional()
        null_blk: Fix locking in zoned mode
        null_blk: Fix zone reset all tracing
        nbd: don't update block size after device is started
        block: advance iov_iter on bio_add_hw_page failure
        null_blk: synchronization fix for zoned device
        nvmet: fix a NULL pointer dereference when tracing the flush command
        nvme-fc: remove nvme_fc_terminate_io()
        nvme-fc: eliminate terminate_io use by nvme_fc_error_recovery
        nvme-fc: remove err_work work item
        nvme-fc: track error_recovery while connecting
        nvme-rdma: handle unexpected nvme completion data length
        nvme: ignore zone validate errors on subsequent scans
        blk-cgroup: Pre-allocate tree node on blkg_conf_prep
        blk-cgroup: Fix memleak on error path
      5fc6b075
    • Gustavo A. R. Silva's avatar
      printk: ringbuffer: Replace zero-length array with flexible-array member · a38283da
      Gustavo A. R. Silva authored
      There is a regular need in the kernel to provide a way to declare having a
      dynamically sized set of trailing elements in a structure. Kernel code should
      always use “flexible array members”[1] for these cases. The older style of
      one-element or zero-length arrays should no longer be used[2].
      
      [1] https://en.wikipedia.org/wiki/Flexible_array_member
      [2] https://www.kernel.org/doc/html/v5.9/process/deprecated.html#zero-length-and-one-element-arraysSigned-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
      a38283da
    • Gustavo A. R. Silva's avatar
      net/smc: Replace zero-length array with flexible-array member · 7206d58a
      Gustavo A. R. Silva authored
      There is a regular need in the kernel to provide a way to declare having a
      dynamically sized set of trailing elements in a structure. Kernel code should
      always use “flexible array members”[1] for these cases. The older style of
      one-element or zero-length arrays should no longer be used[2].
      
      [1] https://en.wikipedia.org/wiki/Flexible_array_member
      [2] https://www.kernel.org/doc/html/v5.9/process/deprecated.html#zero-length-and-one-element-arraysSigned-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
      7206d58a
    • Gustavo A. R. Silva's avatar
      net/mlx5: Replace zero-length array with flexible-array member · 29056207
      Gustavo A. R. Silva authored
      There is a regular need in the kernel to provide a way to declare having a
      dynamically sized set of trailing elements in a structure. Kernel code should
      always use “flexible array members”[1] for these cases. The older style of
      one-element or zero-length arrays should no longer be used[2].
      
      [1] https://en.wikipedia.org/wiki/Flexible_array_member
      [2] https://www.kernel.org/doc/html/v5.9/process/deprecated.html#zero-length-and-one-element-arraysSigned-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
      29056207
    • Gustavo A. R. Silva's avatar
      mei: hw: Replace zero-length array with flexible-array member · b21de80a
      Gustavo A. R. Silva authored
      There is a regular need in the kernel to provide a way to declare having a
      dynamically sized set of trailing elements in a structure. Kernel code should
      always use “flexible array members”[1] for these cases. The older style of
      one-element or zero-length arrays should no longer be used[2].
      
      [1] https://en.wikipedia.org/wiki/Flexible_array_member
      [2] https://www.kernel.org/doc/html/v5.9/process/deprecated.html#zero-length-and-one-element-arraysSigned-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
      b21de80a
    • Gustavo A. R. Silva's avatar
      gve: Replace zero-length array with flexible-array member · 691f4077
      Gustavo A. R. Silva authored
      There is a regular need in the kernel to provide a way to declare having a
      dynamically sized set of trailing elements in a structure.  Kernel code
      should always use “flexible array members”[1] for these cases.  The
      older style of one-element or zero-length arrays should no longer be
      used[2].
      
      Refactor the code according to the use of a flexible-array member in
      struct gve_stats_report, instead of a zero-length array, and use the
      struct_size() helper to calculate the size for the resource allocation.
      
      [1] https://en.wikipedia.org/wiki/Flexible_array_member
      [2] https://www.kernel.org/doc/html/v5.9/process/deprecated.html#zero-length-and-one-element-arraysSigned-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
      691f4077
    • Gustavo A. R. Silva's avatar
      Bluetooth: btintel: Replace zero-length array with flexible-array member · 4acbf554
      Gustavo A. R. Silva authored
      There is a regular need in the kernel to provide a way to declare having a
      dynamically sized set of trailing elements in a structure. Kernel code should
      always use “flexible array members”[1] for these cases. The older style of
      one-element or zero-length arrays should no longer be used[2].
      
      [1] https://en.wikipedia.org/wiki/Flexible_array_member
      [2] https://www.kernel.org/doc/html/v5.9/process/deprecated.html#zero-length-and-one-element-arraysSigned-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
      4acbf554
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.10-2020-10-30' of git://git.kernel.dk/linux-block · cf9446cc
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
      
       - Fixes for linked timeouts (Pavel)
      
       - Set IO_WQ_WORK_CONCURRENT early for async offload (Pavel)
      
       - Two minor simplifications that make the code easier to read and
         follow (Pavel)
      
      * tag 'io_uring-5.10-2020-10-30' of git://git.kernel.dk/linux-block:
        io_uring: use type appropriate io_kiocb handler for double poll
        io_uring: simplify __io_queue_sqe()
        io_uring: simplify nxt propagation in io_queue_sqe
        io_uring: don't miss setting IO_WQ_WORK_CONCURRENT
        io_uring: don't defer put of cancelled ltimeout
        io_uring: always clear LINK_TIMEOUT after cancel
        io_uring: don't adjust LINK_HEAD in cancel ltimeout
        io_uring: remove opcode check on ltimeout kill
      cf9446cc
    • Linus Torvalds's avatar
      Merge tag 'libata-5.10-2020-10-30' of git://git.kernel.dk/linux-block · 8f9a2a19
      Linus Torvalds authored
      Pull libata fix from Jens Axboe:
       "Single fix for an old regression with sata_nv"
      
      * tag 'libata-5.10-2020-10-30' of git://git.kernel.dk/linux-block:
        ata: sata_nv: Fix retrieving of active qcs
      8f9a2a19
    • Linus Torvalds's avatar
      Merge tag 'for-5.10-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · f5d80856
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
      
       - lockdep fixes:
           - drop path locks before manipulating sysfs objects or qgroups
           - preliminary fixes before tree locks get switched to rwsem
           - use annotated seqlock
      
       - build warning fixes (printk format)
      
       - fix relocation vs fallocate race
      
       - tree checker properly validates number of stripes and parity
      
       - readahead vs device replace fixes
      
       - iomap dio fix for unnecessary buffered io fallback
      
      * tag 'for-5.10-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: convert data_seqcount to seqcount_mutex_t
        btrfs: don't fallback to buffered read if we don't need to
        btrfs: add a helper to read the tree_root commit root for backref lookup
        btrfs: drop the path before adding qgroup items when enabling qgroups
        btrfs: fix readahead hang and use-after-free after removing a device
        btrfs: fix use-after-free on readahead extent after failure to create it
        btrfs: tree-checker: validate number of chunk stripes and parity
        btrfs: tree-checker: fix incorrect printk format
        btrfs: drop the path before adding block group sysfs files
        btrfs: fix relocation failure due to race with fallocate
      f5d80856
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · aab6bf50
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "The diffstat is a bit spread out thanks to an invasive CPU erratum
        workaround which missed the merge window and also a bunch of fixes to
        the recently added MTE selftests.
      
         - Fixes to MTE kselftests
      
         - Fix return code from KVM Spectre-v2 hypercall
      
         - Build fixes for ld.lld and Clang's infamous integrated assembler
      
         - Ensure RCU is up and running before we use printk()
      
         - Workaround for Cortex-A77 erratum 1508412
      
         - Fix linker warnings from unexpected ELF sections
      
         - Ensure PE/COFF sections are 64k aligned"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: Change .weak to SYM_FUNC_START_WEAK_PI for arch/arm64/lib/mem*.S
        arm64/smp: Move rcu_cpu_starting() earlier
        arm64: Add workaround for Arm Cortex-A77 erratum 1508412
        arm64: Add part number for Arm Cortex-A77
        arm64: mte: Document that user PSTATE.TCO is ignored by kernel uaccess
        module: use hidden visibility for weak symbol references
        arm64: efi: increase EFI PE/COFF header padding to 64 KB
        arm64: vmlinux.lds: account for spurious empty .igot.plt sections
        kselftest/arm64: Fix check_user_mem test
        kselftest/arm64: Fix check_ksm_options test
        kselftest/arm64: Fix check_mmap_options test
        kselftest/arm64: Fix check_child_memory test
        kselftest/arm64: Fix check_tags_inclusion test
        kselftest/arm64: Fix check_buffer_fill test
        arm64: avoid -Woverride-init warning
        KVM: arm64: ARM_SMCCC_ARCH_WORKAROUND_1 doesn't return SMCCC_RET_NOT_REQUIRED
        arm64: vdso32: Allow ld.lld to properly link the VDSO
      aab6bf50
    • Linus Torvalds's avatar
      Merge tag 'asm-generic-fixes-5.10' of... · 11ad2a73
      Linus Torvalds authored
      Merge tag 'asm-generic-fixes-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
      
      Pull asm-generic fix from Arnd Bergmann:
       "One small bugfix, fixing a build regression for RISC-V"
      
      * tag 'asm-generic-fixes-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
        asm-generic: mark __{get,put}_user_fn as __always_inline
      11ad2a73
    • Linus Torvalds's avatar
      Merge tag 'arm-soc-fixes-v5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 65b55d4c
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "This is a fairly large set of bug fixes on top of -rc1, as most of
        them were ready but didn't quite make it into the last-minute pull
        requests for the merge window.
      
        Allwinner:
         - fix for incorrect CPU overtemperature limit
      
        Amlogic:
         - multiple smaller DT bugfixes, and missing device nodes
      
        Marvell EBU:
         - add missing aliases for ethernet switch ports on espressobin board
      
        Marvell MMP:
         - DTC warning fix
         - bugfix for camera interface power-down
      
        NXP i.MX:
         - re-enable the GPIO driver on all defconfigs
      
        ST STM32MP1:
         - fix random crashes from incorrect voltage settings
      
        Synaptics Berlin:
         - enable the correct hardware timer driver
      
        Texas Instruments K2G:
         - fix a boot regression in the power domain code
      
        TEE drivers:
         - fix regression in TEE "login" method
      
        SCMI drivers:
         - multiple code fixes for corner cases in newly added code
      
        MAINTAINERS file:
         - move Kukjin Kim and Sangbeom Kim to credits (used to work on
           Samsung Exynos)
         - Masahiro Yamada is stepping down as Uniphier maintainer
      
        I did not include a series of patches that work around a regression
        caused by a bugfix in an ethernet phy driver that resulted in an
        inadvertent DT binding change. This is still under discussion"
      
      * tag 'arm-soc-fixes-v5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (31 commits)
        soc: ti: ti_sci_pm_domains: check for proper args count in xlate
        ARM: dts: stm32: Describe Vin power supply on stm32mp157c-edx board
        ARM: dts: stm32: Describe Vin power supply on stm32mp15xx-dkx board
        ARM: multi_v5_defconfig: Select CONFIG_GPIO_MXC
        ARM: imx_v4_v5_defconfig: Select CONFIG_GPIO_MXC
        ARM: dts: mmp2-olpc-xo-1-75: Use plural form of "-gpios"
        ARM: dts: mmp3: Add power domain for the camera
        arm64: berlin: Select DW_APB_TIMER_OF
        dt-bindings: sram: sunxi-sram: add V3s compatible string
        MAINTAINERS: Move Sangbeom Kim to credits
        MAINTAINERS: Move Kukjin Kim to credits
        MAINTAINERS: step down as maintainer of UniPhier SoCs and Denali driver
        ARM: multi_v7_defconfig: Build in CONFIG_GPIO_MXC by default
        ARM: imx_v6_v7_defconfig: Build in CONFIG_GPIO_MXC by default
        arm64: defconfig: Build in CONFIG_GPIO_MXC by default
        arm64: dts: meson: odroid-n2 plus: fix vddcpu_a pwm
        ARM: dts: meson8: remove two invalid interrupt lines from the GPU node
        arm64: dts: amlogic: add missing ethernet reset ID
        firmware: arm_scmi: Fix duplicate workqueue name
        firmware: arm_scmi: Fix locking in notifications
        ...
      65b55d4c
    • Linus Torvalds's avatar
      Merge tag 'pnp-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · d2c4d6e8
      Linus Torvalds authored
      Pull PNP fix from Rafael Wysocki:
       "Make function names in kerneldoc comments match the actual names of
        the functions that they correspond to (Mauro Carvalho Chehab)"
      
      * tag 'pnp-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        PNP: fix kernel-doc markups
      d2c4d6e8
    • Linus Torvalds's avatar
      Merge tag 'devprop-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · a5a16050
      Linus Torvalds authored
      Pull device properties framework fixes from Rafael Wysocki:
       "Fix the secondary firmware node handling while manipulating the
        primary firmware node for a given device (Andy Shevchenko)"
      
      * tag 'devprop-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        device property: Don't clear secondary pointer for shared primary firmware node
        device property: Keep secondary firmware node secondary by type
      a5a16050
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · ee176906
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These fix three assorted minor issues.
      
        Specifics:
      
         - Eliminate compiler warning emitted when building the ACPI dock
           driver (Arnd Bergmann).
      
         - Drop lid_init_state quirk for Acer SW5-012 that is not needed any
           more after recent changes (Hans de Goede).
      
         - Fix "missing minus" typo in the NFIT parsing code (Zhang Qilong)"
      
      * tag 'acpi-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: button: Drop no longer necessary Acer SW5-012 lid_init_state quirk
        ACPI: NFIT: Fix comparison to '-ENXIO'
        ACPI: dock: fix enum-conversion warning
      ee176906
    • Linus Torvalds's avatar
      Merge tag 'pm-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 8843f405
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix a few issues related to running intel_pstate in the passive
        mode with HWP enabled, correct the handling of the max_cstate module
        parameter in intel_idle and make a few janitorial changes.
      
        Specifics:
      
         - Modify Kconfig to prevent configuring either the "conservative" or
           the "ondemand" governor as the default cpufreq governor if
           intel_pstate is selected, in which case "schedutil" is the default
           choice for the default governor setting (Rafael Wysocki).
      
         - Modify the cpufreq core, intel_pstate and the schedutil governor to
           avoid missing updates of the HWP max limit when intel_pstate
           operates in the passive mode with HWP enabled (Rafael Wysocki).
      
         - Fix max_cstate module parameter handling in intel_idle for
           processor models with C-state tables coming from ACPI (Chen Yu).
      
         - Clean up assorted pieces of power management code (Jackie Zamow,
           Tom Rix, Zhang Qilong)"
      
      * tag 'pm-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq: schedutil: Always call driver if CPUFREQ_NEED_UPDATE_LIMITS is set
        cpufreq: Introduce cpufreq_driver_test_flags()
        cpufreq: speedstep: remove unneeded semicolon
        PM: sleep: fix typo in kernel/power/process.c
        intel_idle: Fix max_cstate for processor models without C-state tables
        cpufreq: intel_pstate: Avoid missing HWP max updates in passive mode
        cpufreq: Introduce CPUFREQ_NEED_UPDATE_LIMITS driver flag
        cpufreq: Avoid configuring old governors as default with intel_pstate
        cpufreq: e_powersaver: remove unreachable break
      8843f405
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 88098fd6
      Linus Torvalds authored
      Pull MMC host fixes from Ulf Hansson:
      
       - sdhci: Fix performance regression with auto CMD auto select
      
       - sdhci-of-esdhc: Fix initialization for eMMC HS400 mode
      
       - sdhci-of-esdhc: Fix timeout bug for tuning commands
      
      * tag 'mmc-v5.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: sdhci-of-esdhc: make sure delay chain locked for HS400
        mmc: sdhci-of-esdhc: set timeout to max before tuning
        mmc: sdhci: Use Auto CMD Auto Select only when v4_mode is true
      88098fd6
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2020-10-30-1' of git://anongit.freedesktop.org/drm/drm · 7ba4d867
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "A busier rc2 than normal, have larger sets of fixes for amdgpu +
        nouveau, along with some i915, docs, core, panel, sun4i, v3d, vc4
        fixes.
      
        Nothing spooky though or pumpkin related.
      
        docs:
         - kernel doc fixes
      
        core:
         - fix shmem helpers dma-buf mmap bug
      
        amdgpu:
         - Add new navi1x PCI ID
         - GPUVM reserved area fixes
         - Misc display fixes
         - Fix bad interactions between display code and CONFIG_KGDB
         - Fixes for SMU manual fan control and i2c
      
        nouveau:
         - endian regression fix for old gpus
         - buffer object refcount fix
         - uapi start/end alignment fix
         - display notifier fix
         - display clock checking fixes
      
        i915:
         - Fix max memory region size calculation
         - Restore ILK-M RPS support, restoring performance
         - Reject 90/270 degreerotated initial fbs
      
        panel:
         - mantix reset fixes
      
        sun4i:
         - scalar fix
      
        vc4:
         - hdmi audio fixes
      
        v3d:
         - fix double free"
      
      * tag 'drm-fixes-2020-10-30-1' of git://anongit.freedesktop.org/drm/drm: (42 commits)
        drm/nouveau/kms/nv50-: Fix clock checking algorithm in nv50_dp_mode_valid()
        drm/nouveau/kms/nv50-: Get rid of bogus nouveau_conn_mode_valid()
        drm/nouveau/device: fix changing endianess code to work on older GPUs
        drm/nouveau/gem: fix "refcount_t: underflow; use-after-free"
        drm/nouveau/kms/nv50-: Program notifier offset before requesting disp caps
        drm/nouveau/nouveau: fix the start/end range for migration
        drm/i915: Reject 90/270 degree rotated initial fbs
        drm/i915: Restore ILK-M RPS support
        drm/i915/region: fix max size calculation
        drm/vc4: Rework the structure conversion functions
        drm/vc4: hdmi: Add a name to the codec DAI component
        drm/shme-helpers: Fix dma_buf_mmap forwarding bug
        drm/vc4: hdmi: Avoid sleeping in atomic context
        drm/amdgpu/pm: fix the fan speed in fan1_input in manual mode for navi1x
        drm/amd/pm: fix the wrong fan speed in fan1_input
        drm/amdgpu/swsmu: drop smu i2c bus on navi1x
        drm/vc4: drv: Add error handding for bind
        drm: drm_print.h: fix kernel-doc markups
        drm: kernel-doc: drm_dp_helper.h: fix a typo
        drm: kernel-doc: add description for a new function parameter
        ...
      7ba4d867
    • Takashi Iwai's avatar
      KVM: x86: Fix NULL dereference at kvm_msr_ignored_check() · d383b314
      Takashi Iwai authored
      The newly introduced kvm_msr_ignored_check() tries to print error or
      debug messages via vcpu_*() macros, but those may cause Oops when NULL
      vcpu is passed for KVM_GET_MSRS ioctl.
      
      Fix it by replacing the print calls with kvm_*() macros.
      
      (Note that this will leave vcpu argument completely unused in the
       function, but I didn't touch it to make the fix as small as
       possible.  A clean up may be applied later.)
      
      Fixes: 12bc2132 ("KVM: X86: Do the same ignore_msrs check for feature msrs")
      BugLink: https://bugzilla.suse.com/show_bug.cgi?id=1178280
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      Message-Id: <20201030151414.20165-1-tiwai@suse.de>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      d383b314