Skip to content
Permalink
Lorenzo-Bianco…
Switch branches/tags

Commits on Jun 18, 2021

  1. mt76: mt7615: set macwork timeout according to runtime-pm

    Set macwork timeout value according to runtime-pm in order to reduce
    power consumption
    
    Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
    LorenzoBianconi authored and intel-lab-lkp committed Jun 18, 2021
  2. mt76: mt7663s: enable runtime-pm

    Allow the user to enable runtime-pm for mt7663s driver
    
    Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
    LorenzoBianconi authored and intel-lab-lkp committed Jun 18, 2021
  3. mt76: mt7663s: rely on mt76_connac_pm_ref/mt76_connac_pm_unref in tx …

    …path
    
    Similar to mt7663e, rely on mt76_connac_pm_ref/mt76_connac_pm_unref to
    check PM state and increment/decrement wake counter
    
    Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
    LorenzoBianconi authored and intel-lab-lkp committed Jun 18, 2021
  4. mt76: mt7663s: rely on pm reference counting

    As already done for mt7921 and mt7663e, rely on pm reference counting in
    drv/fw_own
    
    Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
    LorenzoBianconi authored and intel-lab-lkp committed Jun 18, 2021
  5. mt76: sdio: do not run mt76_txq_schedule directly

    In order to support runtime-pm for sdio, do not run mt76_txq_schedule
    directly, but schedule tx_worker instead
    
    Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
    LorenzoBianconi authored and intel-lab-lkp committed Jun 18, 2021

Commits on Jun 11, 2021

  1. mwifiex: bring down link before deleting interface

    We can deadlock when rmmod'ing the driver or going through firmware
    reset, because the cfg80211_unregister_wdev() has to bring down the link
    for us, ... which then grab the same wiphy lock.
    
    nl80211_del_interface() already handles a very similar case, with a nice
    description:
    
            /*
             * We hold RTNL, so this is safe, without RTNL opencount cannot
             * reach 0, and thus the rdev cannot be deleted.
             *
             * We need to do it for the dev_close(), since that will call
             * the netdev notifiers, and we need to acquire the mutex there
             * but don't know if we get there from here or from some other
             * place (e.g. "ip link set ... down").
             */
            mutex_unlock(&rdev->wiphy.mtx);
    ...
    
    Do similarly for mwifiex teardown, by ensuring we bring the link down
    first.
    
    Sample deadlock trace:
    
    [  247.103516] INFO: task rmmod:2119 blocked for more than 123 seconds.
    [  247.110630]       Not tainted 5.12.4 #5
    [  247.115796] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    [  247.124557] task:rmmod           state:D stack:    0 pid: 2119 ppid:  2114 flags:0x00400208
    [  247.133905] Call trace:
    [  247.136644]  __switch_to+0x130/0x170
    [  247.140643]  __schedule+0x714/0xa0c
    [  247.144548]  schedule_preempt_disabled+0x88/0xf4
    [  247.149714]  __mutex_lock_common+0x43c/0x750
    [  247.154496]  mutex_lock_nested+0x5c/0x68
    [  247.158884]  cfg80211_netdev_notifier_call+0x280/0x4e0 [cfg80211]
    [  247.165769]  raw_notifier_call_chain+0x4c/0x78
    [  247.170742]  call_netdevice_notifiers_info+0x68/0xa4
    [  247.176305]  __dev_close_many+0x7c/0x138
    [  247.180693]  dev_close_many+0x7c/0x10c
    [  247.184893]  unregister_netdevice_many+0xfc/0x654
    [  247.190158]  unregister_netdevice_queue+0xb4/0xe0
    [  247.195424]  _cfg80211_unregister_wdev+0xa4/0x204 [cfg80211]
    [  247.201816]  cfg80211_unregister_wdev+0x20/0x2c [cfg80211]
    [  247.208016]  mwifiex_del_virtual_intf+0xc8/0x188 [mwifiex]
    [  247.214174]  mwifiex_uninit_sw+0x158/0x1b0 [mwifiex]
    [  247.219747]  mwifiex_remove_card+0x38/0xa0 [mwifiex]
    [  247.225316]  mwifiex_pcie_remove+0xd0/0xe0 [mwifiex_pcie]
    [  247.231451]  pci_device_remove+0x50/0xe0
    [  247.235849]  device_release_driver_internal+0x110/0x1b0
    [  247.241701]  driver_detach+0x5c/0x9c
    [  247.245704]  bus_remove_driver+0x84/0xb8
    [  247.250095]  driver_unregister+0x3c/0x60
    [  247.254486]  pci_unregister_driver+0x2c/0x90
    [  247.259267]  cleanup_module+0x18/0xcdc [mwifiex_pcie]
    
    Fixes: a05829a ("cfg80211: avoid holding the RTNL when calling the driver")
    Cc: stable@vger.kernel.org
    Link: https://lore.kernel.org/linux-wireless/98392296-40ee-6300-369c-32e16cff3725@gmail.com/
    Link: https://lore.kernel.org/linux-wireless/ab4d00ce52f32bd8e45ad0448a44737e@bewaar.me/
    Reported-by: Maximilian Luz <luzmaximilian@gmail.com>
    Reported-by: dave@bewaar.me
    Cc: Johannes Berg <johannes@sipsolutions.net>
    Signed-off-by: Brian Norris <briannorris@chromium.org>
    Tested-by: Maximilian Luz <luzmaximilian@gmail.com>
    Tested-by: Dave Olsthoorn <dave@bewaar.me>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Link: https://lore.kernel.org/r/20210515024227.2159311-1-briannorris@chromium.org
    computersforpeace authored and Kalle Valo committed Jun 11, 2021

Commits on May 30, 2021

  1. mt76: mt7921: remove leftover 80+80 HE capability

    Fixes interop issues with some APs that disable HE Tx if this is present
    
    Signed-off-by: Felix Fietkau <nbd@nbd.name>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Link: https://lore.kernel.org/r/20210528120304.34751-1-nbd@nbd.name
    nbd168 authored and Kalle Valo committed May 30, 2021
  2. mt76: mt7615: do not set MT76_STATE_PM at bootstrap

    Remove MT76_STATE_PM in mt7615_init_device() and introduce
    __mt7663s_mcu_drv_pmctrl for fw loading in mt7663s.
    This patch fixes a crash at bootstrap for device (e.g. mt7622) that do
    not support runtime-pm
    
    Fixes: 7f2bc8b ("mt76: connac: introduce wake counter for fw_pmctrl synchronization")
    Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Link: https://lore.kernel.org/r/e5a2618574007113d844874420f7855891abf167.1621085028.git.lorenzo@kernel.org
    LorenzoBianconi authored and Kalle Valo committed May 30, 2021

Commits on May 15, 2021

  1. mt76: validate rx A-MSDU subframes

    Mitigate A-MSDU injection attacks (CVE-2020-24588) by detecting if the
    destination address of a subframe equals an RFC1042 (i.e., LLC/SNAP)
    header, and if so dropping the complete A-MSDU frame. This mitigates
    known attacks, although new (unknown) aggregation-based attacks may
    remain possible.
    
    This defense works because in A-MSDU aggregation injection attacks, a
    normal encrypted Wi-Fi frame is turned into an A-MSDU frame. This means
    the first 6 bytes of the first A-MSDU subframe correspond to an RFC1042
    header. In other words, the destination MAC address of the first A-MSDU
    subframe contains the start of an RFC1042 header during an aggregation
    attack. We can detect this and thereby prevent this specific attack.
    For details, see Section 7.2 of "Fragment and Forge: Breaking Wi-Fi
    Through Frame Aggregation and Fragmentation".
    
    Signed-off-by: Felix Fietkau <nbd@nbd.name>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Link: https://lore.kernel.org/r/20210513070303.20253-1-nbd@nbd.name
    nbd168 authored and Kalle Valo committed May 15, 2021
  2. mt76: mt76x0e: fix device hang during suspend/resume

    Similar to usb device, re-initialize mt76x0e device after resume in order
    to fix mt7630e hang during suspend/resume
    
    Reported-by: Luca Trombin <luca.trombin@gmail.com>
    Fixes: c2a4d9f ("mt76x0: inital split between pci and usb")
    Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Link: https://lore.kernel.org/r/4812f9611624b34053c1592fd9c175b67d4ffcb4.1620406022.git.lorenzo@kernel.org
    LorenzoBianconi authored and Kalle Valo committed May 15, 2021
  3. mt76: mt7921: fix max aggregation subframes setting

    The hardware can only handle 64 subframes in rx direction and 128 for tx.
    Improves throughput with APs that can handle more than that
    
    Signed-off-by: Felix Fietkau <nbd@nbd.name>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Link: https://lore.kernel.org/r/20210507100211.15709-2-nbd@nbd.name
    nbd168 authored and Kalle Valo committed May 15, 2021
  4. mt76: connac: fix HT A-MPDU setting field in STA_REC_PHY

    The MT7921 firmware needs this to enable tx A-MPDU properly
    
    Reported-by: Jayden Kuo (郭育辰) <Jayden.Kuo@mediatek.com>
    Signed-off-by: Felix Fietkau <nbd@nbd.name>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Link: https://lore.kernel.org/r/20210507100211.15709-1-nbd@nbd.name
    nbd168 authored and Kalle Valo committed May 15, 2021
  5. mt76: connac: do not schedule mac_work if the device is not running

    Do not run ieee80211_queue_delayed_work for mac work if the worqueue is
    not initialized yet
    
    Fixes: b1bd7bb ("mt76: connac: unschedule mac_work before going to sleep")
    Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Link: https://lore.kernel.org/r/5bfd36a75799c37b12fcb54d17e77fbc2c7a0558.1619187875.git.lorenzo@kernel.org
    LorenzoBianconi authored and Kalle Valo committed May 15, 2021
  6. mt76: mt7921: fix possible AOOB issue in mt7921_mcu_tx_rate_report

    Fix possible array out of bound access in mt7921_mcu_tx_rate_report.
    Remove unnecessary varibable in mt7921_mcu_tx_rate_report
    
    Fixes: 1c099ab ("mt76: mt7921: add MCU support")
    Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Link: https://lore.kernel.org/r/91a1e8f6b6a3e6a929de560ed68132f6eb421720.1619187875.git.lorenzo@kernel.org
    LorenzoBianconi authored and Kalle Valo committed May 15, 2021

Commits on May 9, 2021

  1. Linux 5.13-rc1

    torvalds committed May 9, 2021
  2. fbmem: fix horribly incorrect placement of __maybe_unused

    Commit b9d79e4 ("fbmem: Mark proc_fb_seq_ops as __maybe_unused")
    places the '__maybe_unused' in an entirely incorrect location between
    the "struct" keyword and the structure name.
    
    It's a wonder that gcc accepts that silently, but clang quite reasonably
    warns about it:
    
        drivers/video/fbdev/core/fbmem.c:736:21: warning: attribute declaration must precede definition [-Wignored-attributes]
        static const struct __maybe_unused seq_operations proc_fb_seq_ops = {
                            ^
    
    Fix it.
    
    Cc: Guenter Roeck <linux@roeck-us.net>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    torvalds committed May 9, 2021
  3. Merge tag 'drm-next-2021-05-10' of git://anongit.freedesktop.org/drm/drm

    Pull drm fixes from Dave Airlie:
     "Bit later than usual, I queued them all up on Friday then promptly
      forgot to write the pull request email. This is mainly amdgpu fixes,
      with some radeon/msm/fbdev and one i915 gvt fix thrown in.
    
      amdgpu:
       - MPO hang workaround
       - Fix for concurrent VM flushes on vega/navi
       - dcefclk is not adjustable on navi1x and newer
       - MST HPD debugfs fix
       - Suspend/resumes fixes
       - Register VGA clients late in case driver fails to load
       - Fix GEM leak in user framebuffer create
       - Add support for polaris12 with 32 bit memory interface
       - Fix duplicate cursor issue when using overlay
       - Fix corruption with tiled surfaces on VCN3
       - Add BO size and stride check to fix BO size verification
    
      radeon:
       - Fix off-by-one in power state parsing
       - Fix possible memory leak in power state parsing
    
      msm:
       - NULL ptr dereference fix
    
      fbdev:
       - procfs disabled warning fix
    
      i915:
       - gvt: Fix a possible division by zero in vgpu display rate
         calculation"
    
    * tag 'drm-next-2021-05-10' of git://anongit.freedesktop.org/drm/drm:
      drm/amdgpu: Use device specific BO size & stride check.
      drm/amdgpu: Init GFX10_ADDR_CONFIG for VCN v3 in DPG mode.
      drm/amd/pm: initialize variable
      drm/radeon: Avoid power table parsing memory leaks
      drm/radeon: Fix off-by-one power_state index heap overwrite
      drm/amd/display: Fix two cursor duplication when using overlay
      drm/amdgpu: add new MC firmware for Polaris12 32bit ASIC
      fbmem: Mark proc_fb_seq_ops as __maybe_unused
      drm/msm/dpu: Delete bonkers code
      drm/i915/gvt: Prevent divided by zero when calculating refresh rate
      amdgpu: fix GEM obj leak in amdgpu_display_user_framebuffer_create
      drm/amdgpu: Register VGA clients after init can no longer fail
      drm/amdgpu: Handling of amdgpu_device_resume return value for graceful teardown
      drm/amdgpu: fix r initial values
      drm/amd/display: fix wrong statement in mst hpd debugfs
      amdgpu/pm: set pp_dpm_dcefclk to readonly on NAVI10 and newer gpus
      amdgpu/pm: Prevent force of DCEFCLK on NAVI10 and SIENNA_CICHLID
      drm/amdgpu: fix concurrent VM flushes on Vega/Navi v2
      drm/amd/display: Reject non-zero src_y and src_x for video planes
    torvalds committed May 9, 2021
  4. Merge tag 'block-5.13-2021-05-09' of git://git.kernel.dk/linux-block

    Pull block fix from Jens Axboe:
     "Turns out the bio max size change still has issues, so let's get it
      reverted for 5.13-rc1. We'll shake out the issues there and defer it
      to 5.14 instead"
    
    * tag 'block-5.13-2021-05-09' of git://git.kernel.dk/linux-block:
      Revert "bio: limit bio max size"
    torvalds committed May 9, 2021
  5. Merge tag '5.13-rc-smb3-part3' of git://git.samba.org/sfrench/cifs-2.6

    Pull cifs fixes from Steve French:
     "Three small SMB3 chmultichannel related changesets (also for stable)
      from the SMB3 test event this week.
    
      The other fixes are still in review/testing"
    
    * tag '5.13-rc-smb3-part3' of git://git.samba.org/sfrench/cifs-2.6:
      smb3: if max_channels set to more than one channel request multichannel
      smb3: do not attempt multichannel to server which does not support it
      smb3: when mounting with multichannel include it in requested capabilities
    torvalds committed May 9, 2021
  6. Merge tag 'sched-urgent-2021-05-09' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/tip/tip
    
    Pull scheduler fixes from Thomas Gleixner:
     "A set of scheduler updates:
    
       - Prevent PSI state corruption when schedule() races with cgroup
         move.
    
         A recent commit combined two PSI callbacks to reduce the number of
         cgroup tree updates, but missed that schedule() can drop rq::lock
         for load balancing, which opens the race window for
         cgroup_move_task() which then observes half updated state.
    
         The fix is to solely use task::ps_flags instead of looking at the
         potentially mismatching scheduler state
    
       - Prevent an out-of-bounds access in uclamp caused bu a rounding
         division which can lead to an off-by-one error exceeding the
         buckets array size.
    
       - Prevent unfairness caused by missing load decay when a task is
         attached to a cfs runqueue.
    
         The old load of the task was attached to the runqueue and never
         removed. Fix it by enforcing the load update through the hierarchy
         for unthrottled run queue instances.
    
       - A documentation fix fot the 'sched_verbose' command line option"
    
    * tag 'sched-urgent-2021-05-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      sched/fair: Fix unfairness caused by missing load decay
      sched: Fix out-of-bound access in uclamp
      psi: Fix psi state corruption when schedule() races with cgroup move
      sched,doc: sched_debug_verbose cmdline should be sched_verbose
    torvalds committed May 9, 2021
  7. Merge tag 'locking-urgent-2021-05-09' of git://git.kernel.org/pub/scm…

    …/linux/kernel/git/tip/tip
    
    Pull locking fixes from Thomas Gleixner:
     "A set of locking related fixes and updates:
    
       - Two fixes for the futex syscall related to the timeout handling.
    
         FUTEX_LOCK_PI does not support the FUTEX_CLOCK_REALTIME bit and
         because it's not set the time namespace adjustment for clock
         MONOTONIC is applied wrongly.
    
         FUTEX_WAIT cannot support the FUTEX_CLOCK_REALTIME bit because its
         always a relative timeout.
    
       - Cleanups in the futex syscall entry points which became obvious
         when the two timeout handling bugs were fixed.
    
       - Cleanup of queued_write_lock_slowpath() as suggested by Linus
    
       - Fixup of the smp_call_function_single_async() prototype"
    
    * tag 'locking-urgent-2021-05-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      futex: Make syscall entry points less convoluted
      futex: Get rid of the val2 conditional dance
      futex: Do not apply time namespace adjustment on FUTEX_LOCK_PI
      Revert 337f130 ("futex: Allow FUTEX_CLOCK_REALTIME with FUTEX_WAIT op")
      locking/qrwlock: Cleanup queued_write_lock_slowpath()
      smp: Fix smp_call_function_single_async prototype
    torvalds committed May 9, 2021
  8. Merge tag 'perf_urgent_for_v5.13_rc1' of git://git.kernel.org/pub/scm…

    …/linux/kernel/git/tip/tip
    
    Pull x86 perf fix from Borislav Petkov:
     "Handle power-gating of AMD IOMMU perf counters properly when they are
      used"
    
    * tag 'perf_urgent_for_v5.13_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/events/amd/iommu: Fix invalid Perf result due to IOMMU PMC power-gating
    torvalds committed May 9, 2021
  9. Merge tag 'x86_urgent_for_v5.13_rc1' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/tip/tip
    
    Pull x86 fixes from Borislav Petkov:
     "A bunch of things accumulated for x86 in the last two weeks:
    
       - Fix guest vtime accounting so that ticks happening while the guest
         is running can also be accounted to it. Along with a consolidation
         to the guest-specific context tracking helpers.
    
       - Provide for the host NMI handler running after a VMX VMEXIT to be
         able to run on the kernel stack correctly.
    
       - Initialize MSR_TSC_AUX when RDPID is supported and not RDTSCP (virt
         relevant - real hw supports both)
    
       - A code generation improvement to TASK_SIZE_MAX through the use of
         alternatives
    
       - The usual misc and related cleanups and improvements"
    
    * tag 'x86_urgent_for_v5.13_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      KVM: x86: Consolidate guest enter/exit logic to common helpers
      context_tracking: KVM: Move guest enter/exit wrappers to KVM's domain
      context_tracking: Consolidate guest enter/exit wrappers
      sched/vtime: Move guest enter/exit vtime accounting to vtime.h
      sched/vtime: Move vtime accounting external declarations above inlines
      KVM: x86: Defer vtime accounting 'til after IRQ handling
      context_tracking: Move guest exit vtime accounting to separate helpers
      context_tracking: Move guest exit context tracking to separate helpers
      KVM/VMX: Invoke NMI non-IST entry instead of IST entry
      x86/cpu: Remove write_tsc() and write_rdtscp_aux() wrappers
      x86/cpu: Initialize MSR_TSC_AUX if RDTSCP *or* RDPID is supported
      x86/resctrl: Fix init const confusion
      x86: Delete UD0, UD1 traces
      x86/smpboot: Remove duplicate includes
      x86/cpu: Use alternative to generate the TASK_SIZE_MAX constant
    torvalds committed May 9, 2021
  10. Revert "bio: limit bio max size"

    This reverts commit cd2c754.
    
    Alex reports that the commit causes corruption with LUKS on ext4. Revert
    it for now so that this can be investigated properly.
    
    Link: https://lore.kernel.org/linux-block/1620493841.bxdq8r5haw.none@localhost/
    Reported-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    axboe committed May 9, 2021

Commits on May 8, 2021

  1. Merge tag 'riscv-for-linus-5.13-mw1' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/riscv/linux
    
    Pull RISC-V fixes from Palmer Dabbelt:
    
     - A fix to avoid over-allocating the kernel's mapping on !MMU systems,
       which could lead to up to 2MiB of lost memory
    
     - The SiFive address extension errata only manifest on rv64, they are
       now disabled on rv32 where they are unnecessary
    
     - A pair of late-landing cleanups
    
    * tag 'riscv-for-linus-5.13-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
      riscv: remove unused handle_exception symbol
      riscv: Consistify protect_kernel_linear_mapping_text_rodata() use
      riscv: enable SiFive errata CIP-453 and CIP-1200 Kconfig only if CONFIG_64BIT=y
      riscv: Only extend kernel reservation if mapped read-only
    torvalds committed May 8, 2021
  2. drm/i915/display: fix compiler warning about array overrun

    intel_dp_check_mst_status() uses a 14-byte array to read the DPRX Event
    Status Indicator data, but then passes that buffer at offset 10 off as
    an argument to drm_dp_channel_eq_ok().
    
    End result: there are only 4 bytes remaining of the buffer, yet
    drm_dp_channel_eq_ok() wants a 6-byte buffer.  gcc-11 correctly warns
    about this case:
    
      drivers/gpu/drm/i915/display/intel_dp.c: In function ‘intel_dp_check_mst_status’:
      drivers/gpu/drm/i915/display/intel_dp.c:3491:22: warning: ‘drm_dp_channel_eq_ok’ reading 6 bytes from a region of size 4 [-Wstringop-overread]
       3491 |                     !drm_dp_channel_eq_ok(&esi[10], intel_dp->lane_count)) {
            |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/gpu/drm/i915/display/intel_dp.c:3491:22: note: referencing argument 1 of type ‘const u8 *’ {aka ‘const unsigned char *’}
      In file included from drivers/gpu/drm/i915/display/intel_dp.c:38:
      include/drm/drm_dp_helper.h:1466:6: note: in a call to function ‘drm_dp_channel_eq_ok’
       1466 | bool drm_dp_channel_eq_ok(const u8 link_status[DP_LINK_STATUS_SIZE],
            |      ^~~~~~~~~~~~~~~~~~~~
           6:14 elapsed
    
    This commit just extends the original array by 2 zero-initialized bytes,
    avoiding the warning.
    
    There may be some underlying bug in here that caused this confusion, but
    this is at least no worse than the existing situation that could use
    random data off the stack.
    
    Cc: Jani Nikula <jani.nikula@intel.com>
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: Dave Airlie <airlied@redhat.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    torvalds committed May 8, 2021
  3. Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/jejb/scsi
    
    Pull more SCSI updates from James Bottomley:
     "This is a set of minor fixes in various drivers (qla2xxx, ufs,
      scsi_debug, lpfc) one doc fix and a fairly large update to the fnic
      driver to remove the open coded iteration functions in favour of the
      scsi provided ones"
    
    * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
      scsi: fnic: Use scsi_host_busy_iter() to traverse commands
      scsi: fnic: Kill 'exclude_id' argument to fnic_cleanup_io()
      scsi: scsi_debug: Fix cmd_per_lun, set to max_queue
      scsi: ufs: core: Narrow down fast path in system suspend path
      scsi: ufs: core: Cancel rpm_dev_flush_recheck_work during system suspend
      scsi: ufs: core: Do not put UFS power into LPM if link is broken
      scsi: qla2xxx: Prevent PRLI in target mode
      scsi: qla2xxx: Add marginal path handling support
      scsi: target: tcmu: Return from tcmu_handle_completions() if cmd_id not found
      scsi: ufs: core: Fix a typo in ufs-sysfs.c
      scsi: lpfc: Fix bad memory access during VPD DUMP mailbox command
      scsi: lpfc: Fix DMA virtual address ptr assignment in bsg
      scsi: lpfc: Fix illegal memory access on Abort IOCBs
      scsi: blk-mq: Fix build warning when making htmldocs
    torvalds committed May 8, 2021
  4. Merge tag 'kbuild-v5.13-2' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/masahiroy/linux-kbuild
    
    Pull more Kbuild updates from Masahiro Yamada:
    
     - Convert sh and sparc to use generic shell scripts to generate the
       syscall headers
    
     - refactor .gitignore files
    
     - Update kernel/config_data.gz only when the content of the .config
       is really changed, which avoids the unneeded re-link of vmlinux
    
     - move "remove stale files" workarounds to scripts/remove-stale-files
    
     - suppress unused-but-set-variable warnings by default for Clang
       as well
    
     - fix locale setting LANG=C to LC_ALL=C
    
     - improve 'make distclean'
    
     - always keep intermediate objects from scripts/link-vmlinux.sh
    
     - move IF_ENABLED out of <linux/kconfig.h> to make it self-contained
    
     - misc cleanups
    
    * tag 'kbuild-v5.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (25 commits)
      linux/kconfig.h: replace IF_ENABLED() with PTR_IF() in <linux/kernel.h>
      kbuild: Don't remove link-vmlinux temporary files on exit/signal
      kbuild: remove the unneeded comments for external module builds
      kbuild: make distclean remove tag files in sub-directories
      kbuild: make distclean work against $(objtree) instead of $(srctree)
      kbuild: refactor modname-multi by using suffix-search
      kbuild: refactor fdtoverlay rule
      kbuild: parameterize the .o part of suffix-search
      arch: use cross_compiling to check whether it is a cross build or not
      kbuild: remove ARCH=sh64 support from top Makefile
      .gitignore: prefix local generated files with a slash
      kbuild: replace LANG=C with LC_ALL=C
      Makefile: Move -Wno-unused-but-set-variable out of GCC only block
      kbuild: add a script to remove stale generated files
      kbuild: update config_data.gz only when the content of .config is changed
      .gitignore: ignore only top-level modules.builtin
      .gitignore: move tags and TAGS close to other tag files
      kernel/.gitgnore: remove stale timeconst.h and hz.bc
      usr/include: refactor .gitignore
      genksyms: fix stale comment
      ...
    torvalds committed May 8, 2021
  5. smb3: if max_channels set to more than one channel request multichannel

    Mounting with "multichannel" is obviously implied if user requested
    more than one channel on mount (ie mount parm max_channels>1).
    Currently both have to be specified. Fix that so that if max_channels
    is greater than 1 on mount, enable multichannel rather than silently
    falling back to non-multichannel.
    
    Signed-off-by: Steve French <stfrench@microsoft.com>
    Reviewed-By: Tom Talpey <tom@talpey.com>
    Cc: <stable@vger.kernel.org> # v5.11+
    Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
    Steve French committed May 8, 2021
  6. smb3: do not attempt multichannel to server which does not support it

    We were ignoring CAP_MULTI_CHANNEL in the server response - if the
    server doesn't support multichannel we should not be attempting it.
    
    See MS-SMB2 section 3.2.5.2
    
    Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
    Reviewed-By: Tom Talpey <tom@talpey.com>
    Cc: <stable@vger.kernel.org> # v5.8+
    Signed-off-by: Steve French <stfrench@microsoft.com>
    Steve French committed May 8, 2021
  7. Merge tag 'powerpc-5.13-2' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/powerpc/linux
    
    Pull powerpc updates and fixes from Michael Ellerman:
     "A bit of a mixture of things, tying up some loose ends.
    
      There's the removal of the nvlink code, which dependend on a commit in
      the vfio tree. Then the enablement of huge vmalloc which was in next
      for a few weeks but got dropped due to conflicts. And there's also a
      few fixes.
    
      Summary:
    
       - Remove the nvlink support now that it's only user has been removed.
    
       - Enable huge vmalloc mappings for Radix MMU (P9).
    
       - Fix KVM conversion to gfn-based MMU notifier callbacks.
    
       - Fix a kexec/kdump crash with hot plugged CPUs.
    
       - Fix boot failure on 32-bit with CONFIG_STACKPROTECTOR.
    
       - Restore alphabetic order of the selects under CONFIG_PPC.
    
      Thanks to: Christophe Leroy, Christoph Hellwig, Nicholas Piggin,
      Sandipan Das, and Sourabh Jain"
    
    * tag 'powerpc-5.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
      KVM: PPC: Book3S HV: Fix conversion to gfn-based MMU notifier callbacks
      powerpc/kconfig: Restore alphabetic order of the selects under CONFIG_PPC
      powerpc/32: Fix boot failure with CONFIG_STACKPROTECTOR
      powerpc/powernv/memtrace: Fix dcache flushing
      powerpc/kexec_file: Use current CPU info while setting up FDT
      powerpc/64s/radix: Enable huge vmalloc mappings
      powerpc/powernv: remove the nvlink support
    torvalds committed May 8, 2021
  8. smb3: when mounting with multichannel include it in requested capabil…

    …ities
    
    In the SMB3/SMB3.1.1 negotiate protocol request, we are supposed to
    advertise CAP_MULTICHANNEL capability when establishing multiple
    channels has been requested by the user doing the mount. See MS-SMB2
    sections 2.2.3 and 3.2.5.2
    
    Without setting it there is some risk that multichannel could fail
    if the server interpreted the field strictly.
    
    Reviewed-By: Tom Talpey <tom@talpey.com>
    Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
    Cc: <stable@vger.kernel.org> # v5.8+
    Signed-off-by: Steve French <stfrench@microsoft.com>
    Steve French committed May 8, 2021
  9. Merge tag 'net-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/netdev/net
    
    Pull networking fixes from Jakub Kicinski:
     "Networking fixes for 5.13-rc1, including fixes from bpf, can and
      netfilter trees. Self-contained fixes, nothing risky.
    
      Current release - new code bugs:
    
       - dsa: ksz: fix a few bugs found by static-checker in the new driver
    
       - stmmac: fix frame preemption handshake not triggering after
         interface restart
    
      Previous releases - regressions:
    
       - make nla_strcmp handle more then one trailing null character
    
       - fix stack OOB reads while fragmenting IPv4 packets in openvswitch
         and net/sched
    
       - sctp: do asoc update earlier in sctp_sf_do_dupcook_a
    
       - sctp: delay auto_asconf init until binding the first addr
    
       - stmmac: clear receive all(RA) bit when promiscuous mode is off
    
       - can: mcp251x: fix resume from sleep before interface was brought up
    
      Previous releases - always broken:
    
       - bpf: fix leakage of uninitialized bpf stack under speculation
    
       - bpf: fix masking negation logic upon negative dst register
    
       - netfilter: don't assume that skb_header_pointer() will never fail
    
       - only allow init netns to set default tcp cong to a restricted algo
    
       - xsk: fix xp_aligned_validate_desc() when len == chunk_size to avoid
         false positive errors
    
       - ethtool: fix missing NLM_F_MULTI flag when dumping
    
       - can: m_can: m_can_tx_work_queue(): fix tx_skb race condition
    
       - sctp: fix a SCTP_MIB_CURRESTAB leak in sctp_sf_do_dupcook_b
    
       - bridge: fix NULL-deref caused by a races between assigning
         rx_handler_data and setting the IFF_BRIDGE_PORT bit
    
      Latecomer:
    
       - seg6: add counters support for SRv6 Behaviors"
    
    * tag 'net-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (73 commits)
      atm: firestream: Use fallthrough pseudo-keyword
      net: stmmac: Do not enable RX FIFO overflow interrupts
      mptcp: fix splat when closing unaccepted socket
      i40e: Remove LLDP frame filters
      i40e: Fix PHY type identifiers for 2.5G and 5G adapters
      i40e: fix the restart auto-negotiation after FEC modified
      i40e: Fix use-after-free in i40e_client_subtask()
      i40e: fix broken XDP support
      netfilter: nftables: avoid potential overflows on 32bit arches
      netfilter: nftables: avoid overflows in nft_hash_buckets()
      tcp: Specify cmsgbuf is user pointer for receive zerocopy.
      mlxsw: spectrum_mr: Update egress RIF list before route's action
      net: ipa: fix inter-EE IRQ register definitions
      can: m_can: m_can_tx_work_queue(): fix tx_skb race condition
      can: mcp251x: fix resume from sleep before interface was brought up
      can: mcp251xfd: mcp251xfd_probe(): add missing can_rx_offload_del() in error path
      can: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe
      netfilter: nftables: Fix a memleak from userdata error path in new objects
      netfilter: remove BUG_ON() after skb_header_pointer()
      netfilter: nfnetlink_osf: Fix a missing skb_header_pointer() NULL check
      ...
    torvalds committed May 8, 2021
  10. linux/kconfig.h: replace IF_ENABLED() with PTR_IF() in <linux/kernel.h>

    <linux/kconfig.h> is included from all the kernel-space source files,
    including C, assembly, linker scripts. It is intended to contain a
    minimal set of macros to evaluate CONFIG options.
    
    IF_ENABLED() is an intruder here because (x ? y : z) is C code, which
    should not be included from assembly files or linker scripts.
    
    Also, <linux/kconfig.h> is no longer self-contained because NULL is
    defined in <linux/stddef.h>.
    
    Move IF_ENABLED() out to <linux/kernel.h> as PTR_IF(). PTF_IF()
    takes the general boolean expression instead of a CONFIG option
    so that it fits better in <linux/kernel.h>.
    
    Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
    Reviewed-by: Kees Cook <keescook@chromium.org>
    masahir0y committed May 8, 2021
  11. Merge branch 'master' into next

    Merge master back into next, this allows us to resolve some conflicts in
    arch/powerpc/Kconfig, and also re-sort the symbols under config PPC so
    that they are in alphabetical order again.
    mpe committed May 8, 2021
Older