Skip to content
  1. Jan 30, 2023
  2. Jan 25, 2023
    • Mark Pearson's avatar
      platform/x86: thinkpad_acpi: Fix profile modes on Intel platforms · 1bc5d819
      Mark Pearson authored
      My last commit to fix profile mode displays on AMD platforms caused
      an issue on Intel platforms - sorry!
      
      In it I was reading the current functional mode (MMC, PSC, AMT) from
      the BIOS but didn't account for the fact that on some of our Intel
      platforms I use a different API which returns just the profile and not
      the functional mode.
      
      This commit fixes it so that on Intel platforms it knows the functional
      mode is always MMC.
      
      I also fixed a potential problem that a platform may try to set the mode
      for both MMC and PSC - which was incorrect.
      
      Tested on X1 Carbon 9 (Intel) and Z13 (AMD).
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=216963
      Fixes: fde5f74c
      
       ("platform/x86: thinkpad_acpi: Fix profile mode display in AMT mode")
      Cc: stable@vger.kernel.org
      Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
      Signed-off-by: default avatarMark Pearson <mpearson-lenovo@squebb.ca>
      Link: https://lore.kernel.org/r/20230124153623.145188-1-mpearson-lenovo@squebb.ca
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      1bc5d819
  3. Jan 24, 2023
    • Hans de Goede's avatar
      ACPI: video: Fix apple gmux detection · b0935f11
      Hans de Goede authored
      Some apple laptop models have an ACPI device with a HID of APP000B
      and that device has an IO resource (so it does not describe the new
      unsupported MMIO based gmux type), but there actually is no gmux
      in the laptop at all.
      
      The gmux_probe() function of the actual apple-gmux driver has code
      to detect this, this code has been factored out into a new
      apple_gmux_detect() helper in apple-gmux.h.
      
      Use this new function to fix acpi_video_get_backlight_type() wrongly
      returning apple_gmux as type on the following laptops:
      
      MacBookPro5,4
      https://pastebin.com/8Xjq7RhS
      
      MacBookPro8,1
      https://linux-hardware.org/?probe=e513cfbadb&log=dmesg
      
      MacBookPro9,2
      https://bugzilla.kernel.org/attachment.cgi?id=278961
      
      MacBookPro10,2
      https://lkml.org/lkml/2014/9/22/657
      
      MacBookPro11,2
      https://forums.fedora-fr.org/viewtopic.php?id=70142
      
      MacBookPro11,4
      https://raw.githubusercontent.com/im-0/investigate-card-reader-suspend-problem-on-mbp11.4/mast
      
      Fixes: 21245df3
      
       ("ACPI: video: Add Apple GMUX brightness control detection")
      Link: https://lore.kernel.org/platform-driver-x86/20230123113750.462144-1-hdegoede@redhat.com/
      Reported-by: default avatarEmmanouil Kouroupakis <kartebi@gmail.com>
      Acked-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Link: https://lore.kernel.org/r/20230124105754.62167-4-hdegoede@redhat.com
      b0935f11
    • Hans de Goede's avatar
      platform/x86: apple-gmux: Add apple_gmux_detect() helper · d143908f
      Hans de Goede authored
      Add a new (static inline) apple_gmux_detect() helper to apple-gmux.h
      which can be used for gmux detection instead of apple_gmux_present().
      
      The latter is not really reliable since an ACPI device with a HID
      of APP000B is present on some devices without a gmux at all, as well
      as on devices with a newer (unsupported) MMIO based gmux model.
      
      This causes apple_gmux_present() to return false-positives on
      a number of different Apple laptop models.
      
      This new helper uses the same probing as the actual apple-gmux
      driver, so that it does not return false positives.
      
      To avoid code duplication the gmux_probe() function of the actual
      driver is also moved over to using the new apple_gmux_detect() helper.
      
      This avoids false positives (vs _HID + IO region detection) on:
      
      MacBookPro5,4
      https://pastebin.com/8Xjq7RhS
      
      MacBookPro8,1
      https://linux-hardware.org/?probe=e513cfbadb&log=dmesg
      
      MacBookPro9,2
      https://bugzilla.kernel.org/attachment.cgi?id=278961
      
      MacBookPro10,2
      https://lkml.org/lkml/2014/9/22/657
      
      MacBookPro11,2
      https://forums.fedora-fr.org/viewtopic.php?id=70142
      
      MacBookPro11,4
      https://raw.githubusercontent.com/im-0/investigate-card-reader-suspend-problem-on-mbp11.4/master/test-16/dmesg
      
      Fixes: 21245df3
      
       ("ACPI: video: Add Apple GMUX brightness control detection")
      Link: https://lore.kernel.org/platform-driver-x86/20230123113750.462144-1-hdegoede@redhat.com/
      Reported-by: default avatarEmmanouil Kouroupakis <kartebi@gmail.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Link: https://lore.kernel.org/r/20230124105754.62167-3-hdegoede@redhat.com
      d143908f
    • Hans de Goede's avatar
      platform/x86: apple-gmux: Move port defines to apple-gmux.h · 39f5a81f
      Hans de Goede authored
      This is a preparation patch for adding a new static inline
      apple_gmux_detect() helper which actually checks a supported
      gmux is present, rather then only checking an ACPI device with
      the HID is there as apple_gmux_present() does.
      
      Fixes: 21245df3
      
       ("ACPI: video: Add Apple GMUX brightness control detection")
      Link: https://lore.kernel.org/platform-driver-x86/20230123113750.462144-1-hdegoede@redhat.com/
      Reported-by: default avatarEmmanouil Kouroupakis <kartebi@gmail.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Link: https://lore.kernel.org/r/20230124105754.62167-2-hdegoede@redhat.com
      39f5a81f
    • Hans de Goede's avatar
      platform/x86: hp-wmi: Fix cast to smaller integer type warning · ce95010e
      Hans de Goede authored
      
      
      Fix the following compiler warning:
      
      drivers/platform/x86/hp/hp-wmi.c:551:24: warning: cast to smaller integer
         type 'enum hp_wmi_radio' from 'void *' [-Wvoid-pointer-to-enum-cast]
      
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Link: https://lore.kernel.org/r/20230123132824.660062-1-hdegoede@redhat.com
      ce95010e
    • Mario Limonciello's avatar
      platform/x86/amd: pmc: Add a module parameter to disable workarounds · 062c1394
      Mario Limonciello authored
      
      
      Some users may want to live with the bugs that exist in platform
      firmware and have workarounds in AMD PMC driver.
      
      To allow them to bypass these workarounds, introduce a module
      parameter.
      
      Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
      Link: https://lore.kernel.org/r/20230120191519.15926-2-mario.limonciello@amd.com
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      062c1394
    • Mario Limonciello's avatar
      platform/x86/amd: pmc: Disable IRQ1 wakeup for RN/CZN · 8e60615e
      Mario Limonciello authored
      
      
      By default when the system is configured for low power idle in the FADT
      the keyboard is set up as a wake source.  This matches the behavior that
      Windows uses for Modern Standby as well.
      
      It has been reported that a variety of AMD based designs there are
      spurious wakeups are happening where two IRQ sources are active.
      
      For example:
      ```
      PM: Triggering wakeup from IRQ 9
      PM: Triggering wakeup from IRQ 1
      ```
      
      In these designs IRQ 9 is the ACPI SCI and IRQ 1 is the keyboard.
      One way to trigger this problem is to suspend the laptop and then unplug
      the AC adapter.  The SOC will be in a hardware sleep state and plugging
      in the AC adapter returns control to the kernel's s2idle loop.
      
      Normally if just IRQ 9 was active the s2idle loop would advance any EC
      transactions and no other IRQ being active would cause the s2idle loop
      to put the SOC back into hardware sleep state.
      
      When this bug occurred IRQ 1 is also active even if no keyboard activity
      occurred. This causes the s2idle loop to break and the system to wake.
      
      This is a platform firmware bug triggering IRQ1 without keyboard activity.
      This occurs in Windows as well, but Windows will enter "SW DRIPS" and
      then with no activity enters back into "HW DRIPS" (hardware sleep state).
      
      This issue affects Renoir, Lucienne, Cezanne, and Barcelo platforms. It
      does not happen on newer systems such as Mendocino or Rembrandt.
      
      It's been fixed in newer platform firmware.  To avoid triggering the bug
      on older systems check the SMU F/W version and adjust the policy at suspend
      time for s2idle wakeup from keyboard on these systems. A lot of thought
      and experimentation has been given around the timing of disabling IRQ1,
      and to make it work the "suspend" PM callback is restored.
      
      Reported-by: default avatarKai-Heng Feng <kai.heng.feng@canonical.com>
      Reported-by: default avatarXaver Hugl <xaver.hugl@gmail.com>
      Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2115
      Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1951
      Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
      Link: https://lore.kernel.org/r/20230120191519.15926-1-mario.limonciello@amd.com
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      8e60615e
    • Hans de Goede's avatar
      platform/x86: asus-wmi: Fix kbd_dock_devid tablet-switch reporting · fdcc0602
      Hans de Goede authored
      Commit 1ea0d3b4 ("platform/x86: asus-wmi: Simplify tablet-mode-switch
      handling") unified the asus-wmi tablet-switch handling, but it did not take
      into account that the value returned for the kbd_dock_devid WMI method is
      inverted where as the other ones are not inverted.
      
      This causes asus-wmi to report an inverted tablet-switch state for devices
      which use the kbd_dock_devid, which causes libinput to ignore touchpad
      events while the affected T10x model 2-in-1s are docked.
      
      Add inverting of the return value in the kbd_dock_devid case to fix this.
      
      Fixes: 1ea0d3b4
      
       ("platform/x86: asus-wmi: Simplify tablet-mode-switch handling")
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Link: https://lore.kernel.org/r/20230120143441.527334-1-hdegoede@redhat.com
      fdcc0602
    • Kevin Kuriakose's avatar
      platform/x86: gigabyte-wmi: add support for B450M DS3H WIFI-CF · a410429a
      Kevin Kuriakose authored
      
      
      To the best of my knowledge this is the same board as the B450M DS3H-CF,
      but with an added WiFi card. Name obtained using dmidecode, tested
      with force_load on v6.1.6
      
      Signed-off-by: default avatarKevin Kuriakose <kevinmkuriakose@gmail.com>
      Acked-by: default avatarThomas Weißschuh <linux@weissschuh.net>
      Link: https://lore.kernel.org/r/20230119150925.31962-1-kevinmkuriakose@gmail.com
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      a410429a
    • Rishit Bansal's avatar
      platform/x86: hp-wmi: Handle Omen Key event · 3ee5447b
      Rishit Bansal authored
      
      
      Add support to map the "HP Omen Key" to KEY_PROG2. Laptops in the HP
      Omen Series open the HP Omen Command Center application on windows. But,
      on linux it fails with the following message from the hp-wmi driver:
      
      [ 5143.415714] hp_wmi: Unknown event_id - 29 - 0x21a5
      
      Also adds support to map Fn+Esc to KEY_FN_ESC. This currently throws the
      following message on the hp-wmi driver:
      
      [ 6082.143785] hp_wmi: Unknown key code - 0x21a7
      
      There is also a "Win-Lock" key on HP Omen Laptops which supports
      Enabling and Disabling the Windows key, which trigger commands 0x21a4
      and 0x121a4 respectively, but I wasn't able to find any KEY in input.h
      to map this to.
      
      Signed-off-by: default avatarRishit Bansal <rishitbansal0@gmail.com>
      Link: https://lore.kernel.org/r/20230120221214.24426-1-rishitbansal0@gmail.com
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      3ee5447b
    • Koba Ko's avatar
      platform/x86: dell-wmi: Add a keymap for KEY_MUTE in type 0x0010 table · 83bcf3e5
      Koba Ko authored
      
      
      Some platforms send the speaker-mute key from EC. dell-wmi can't
      recognize it.
      
      Add a new keymap for KEY_MUTE in type 0x0010 table.
      
      Signed-off-by: default avatarKoba Ko <koba.ko@canonical.com>
      Link: https://lore.kernel.org/r/20230117123436.200440-1-koba.ko@canonical.com
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      83bcf3e5
  4. Jan 22, 2023
    • Linus Torvalds's avatar
      Linux 6.2-rc5 · 2241ab53
      Linus Torvalds authored
      2241ab53
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.2-2023-01-21' of git://git.kernel.dk/linux · 95f184d0
      Linus Torvalds authored
      Pull another io_uring fix from Jens Axboe:
       "Just a single fix for a regression that happened in this release due
        to a poll change. Normally I would've just deferred it to next week,
        but since the original fix got picked up by stable, I think it's
        better to just send this one off separately.
      
        The issue is around the poll race fix, and how it mistakenly also got
        applied to multishot polling. Those don't need the race fix, and we
        should not be doing any reissues for that case. Exhaustive test cases
        were written and committed to the liburing regression suite for the
        reported issue, and additions for similar issues"
      
      * tag 'io_uring-6.2-2023-01-21' of git://git.kernel.dk/linux:
        io_uring/poll: don't reissue in case of poll race on multishot request
      95f184d0
    • Linus Torvalds's avatar
      Merge tag 'char-misc-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · f6714402
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here are some small char/misc and other subsystem driver fixes for
        6.2-rc5 to resolve a few reported issues. They include:
      
         - long time pending fastrpc fixes (should have gone into 6.1, my
           fault)
      
         - mei driver/bus fixes and new device ids
      
         - interconnect driver fixes for reported problems
      
         - vmci bugfix
      
         - w1 driver bugfixes for reported problems
      
        Almost all of these have been in linux-next with no reported problems,
        the rest have all passed 0-day bot testing in my tree and on the
        mailing lists where they have sat too long due to me taking a long
        time to catch up on my pending patch queue"
      
      * tag 'char-misc-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        VMCI: Use threaded irqs instead of tasklets
        misc: fastrpc: Pass bitfield into qcom_scm_assign_mem
        gsmi: fix null-deref in gsmi_get_variable
        misc: fastrpc: Fix use-after-free race condition for maps
        misc: fastrpc: Don't remove map on creater_process and device_release
        misc: fastrpc: Fix use-after-free and race in fastrpc_map_find
        misc: fastrpc: fix error code in fastrpc_req_mmap()
        mei: me: add meteor lake point M DID
        mei: bus: fix unlink on bus in error path
        w1: fix WARNING after calling w1_process()
        w1: fix deadloop in __w1_remove_master_device()
        comedi: adv_pci1760: Fix PWM instruction handling
        interconnect: qcom: rpm: Use _optional func for provider clocks
        interconnect: qcom: msm8996: Fix regmap max_register values
        interconnect: qcom: msm8996: Provide UFS clocks to A2NoC
        dt-bindings: interconnect: Add UFS clocks to MSM8996 A2NoC
      f6714402
    • Linus Torvalds's avatar
      Merge tag 'driver-core-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core · c88a3114
      Linus Torvalds authored
      Pull driver core fixes from Greg KH:
       "Here are three small driver and kernel core fixes for 6.2-rc5. They
        include:
      
         - potential gadget fixup in do_prlimit
      
         - device property refcount leak fix
      
         - test_async_probe bugfix for reported problem"
      
      * tag 'driver-core-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        prlimit: do_prlimit needs to have a speculation check
        driver core: Fix test_async_probe_init saves device in wrong array
        device property: fix of node refcount leak in fwnode_graph_get_next_endpoint()
      c88a3114
    • Linus Torvalds's avatar
      Merge tag 'staging-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · bb86d657
      Linus Torvalds authored
      Pull staging driver fix from Greg KH:
       "Here is a single staging driver fix for 6.2-rc5. It resolves a build
        issue reported and Fixed by Arnd in the vc04_services driver. It's
        been in linux-next this week with no reported problems"
      
      * tag 'staging-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: vchiq_arm: fix enum vchiq_status return types
      bb86d657
    • Linus Torvalds's avatar
      Merge tag 'tty-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · bd5cc6ee
      Linus Torvalds authored
      Pull tty/serial driver fixes from Greg KH:
       "Here are some small tty and serial driver fixes for 6.2-rc5 that
        resolve a number of tiny reported issues and some new device ids. They
        include:
      
         - new device id for the exar serial driver
      
         - speakup tty driver bugfix
      
         - atmel serial driver baudrate fixup
      
         - stm32 serial driver bugfix and then revert as the bugfix broke the
           build. That will come back in a later pull request once it is all
           worked out properly.
      
         - amba-pl011 serial driver rs486 mode bugfix
      
         - qcom_geni serial driver bugfix
      
        Most of these have been in linux-next with no reported problems (well,
        other than the build breakage which generated the revert), the new
        device id passed 0-day testing"
      
      * tag 'tty-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        serial: exar: Add support for Sealevel 7xxxC serial cards
        Revert "serial: stm32: Merge hard IRQ and threaded IRQ handling into single IRQ handler"
        tty: serial: qcom_geni: avoid duplicate struct member init
        serial: atmel: fix incorrect baudrate setup
        tty: fix possible null-ptr-defer in spk_ttyio_release
        serial: stm32: Merge hard IRQ and threaded IRQ handling into single IRQ handler
        serial: amba-pl011: fix high priority character transmission in rs486 mode
        serial: pch_uart: Pass correct sg to dma_unmap_sg()
        tty: serial: qcom-geni-serial: fix slab-out-of-bounds on RX FIFO buffer
      bd5cc6ee
    • Linus Torvalds's avatar
      Merge tag 'usb-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · e67da288
      Linus Torvalds authored
      Pull USB / Thunderbolt fixes from Greg KH:
       "Here are a number of small USB and Thunderbolt driver fixes and new
        device id changes for 6.2-rc5. Included in here are:
      
         - thunderbolt bugfixes for reported problems
      
         - new usb-serial driver ids added
      
         - onboard_hub usb driver fixes for much-reported problems
      
         - xhci bugfixes
      
         - typec bugfixes
      
         - ehci-fsl driver module alias fix
      
         - iowarrior header size fix
      
         - usb gadget driver fixes
      
        All of these, except for the iowarrior fix, have been in linux-next
        with no reported issues. The iowarrior fix passed the 0-day testing
        and is a one digit change based on a reported problem in the driver
        (which was written to a spec, not the real device that is now
        available)"
      
      * tag 'usb-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (40 commits)
        USB: misc: iowarrior: fix up header size for USB_DEVICE_ID_CODEMERCS_IOW100
        usb: host: ehci-fsl: Fix module alias
        usb: dwc3: fix extcon dependency
        usb: core: hub: disable autosuspend for TI TUSB8041
        USB: fix misleading usb_set_intfdata() kernel doc
        usb: gadget: f_ncm: fix potential NULL ptr deref in ncm_bitrate()
        USB: gadget: Add ID numbers to configfs-gadget driver names
        usb: typec: tcpm: Fix altmode re-registration causes sysfs create fail
        usb: gadget: g_webcam: Send color matching descriptor per frame
        usb: typec: altmodes/displayport: Use proper macro for pin assignment check
        usb: typec: altmodes/displayport: Fix pin assignment calculation
        usb: typec: altmodes/displayport: Add pin assignment helper
        usb: gadget: f_fs: Ensure ep0req is dequeued before free_request
        usb: gadget: f_fs: Prevent race during ffs_ep0_queue_wait
        usb: misc: onboard_hub: Move 'attach' work to the driver
        usb: misc: onboard_hub: Invert driver registration order
        usb: ucsi: Ensure connector delayed work items are flushed
        usb: musb: fix error return code in omap2430_probe()
        usb: chipidea: core: fix possible constant 0 if use IS_ERR(ci->role_switch)
        xhci: Detect lpm incapable xHC USB3 roothub ports from ACPI tables
        ...
      e67da288
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v6.2-3' of... · 83cd5fd0
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v6.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Hide LDFLAGS_vmlinux from decompressor Makefiles to fix error
         messages when GNU Make 4.4 is used.
      
       - Fix 'make modules' build error when CONFIG_DEBUG_INFO_BTF_MODULES=y.
      
       - Fix warnings emitted by GNU Make 4.4 in scripts/kconfig/Makefile.
      
       - Support GNU Make 4.4 for scripts/jobserver-exec.
      
       - Show clearer error message when kernel/gen_kheaders.sh fails due to
         missing cpio.
      
      * tag 'kbuild-fixes-v6.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kheaders: explicitly validate existence of cpio command
        scripts: support GNU make 4.4 in jobserver-exec
        kconfig: Update all declared targets
        scripts: rpm: make clear that mkspec script contains 4.13 feature
        init/Kconfig: fix LOCALVERSION_AUTO help text
        kbuild: fix 'make modules' error when CONFIG_DEBUG_INFO_BTF_MODULES=y
        kbuild: export top-level LDFLAGS_vmlinux only to scripts/Makefile.vmlinux
        init/version-timestamp.c: remove unneeded #include <linux/version.h>
        docs: kbuild: remove mention to dropped $(objtree) feature
      83cd5fd0
    • Linus Torvalds's avatar
      ext4: deal with legacy signed xattr name hash values · f3bbac32
      Linus Torvalds authored
      
      
      We potentially have old hashes of the xattr names generated on systems
      with signed 'char' types.  Now that everybody uses '-funsigned-char',
      those hashes will no longer match.
      
      This only happens if you use xattrs names that have the high bit set,
      which probably doesn't happen in practice, but the xfstest generic/454
      shows it.
      
      Instead of adding a new "signed xattr hash filesystem" bit and having to
      deal with all the possible combinations, just calculate the hash both
      ways if the first one fails, and always generate new hashes with the
      proper unsigned char version.
      
      Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
      Link: https://lore.kernel.org/oe-lkp/202212291509.704a11c9-oliver.sang@intel.com
      Link: https://lore.kernel.org/all/CAHk-=whUNjwqZXa-MH9KMmc_CpQpoFKFjAB9ZKHuu=TbsouT4A@mail.gmail.com/
      Exposed-by: 3bc753c0
      
       ("kbuild: treat char as always unsigned")
      Cc: Eric Biggers <ebiggers@kernel.org>
      Cc: Andreas Dilger <adilger@dilger.ca>
      Cc: Theodore Ts'o <tytso@mit.edu>,
      Cc: Jason Donenfeld <Jason@zx2c4.com>
      Cc: Masahiro Yamada <masahiroy@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f3bbac32
  5. Jan 21, 2023
    • Greg Kroah-Hartman's avatar
      prlimit: do_prlimit needs to have a speculation check · 73979060
      Greg Kroah-Hartman authored
      
      
      do_prlimit() adds the user-controlled resource value to a pointer that
      will subsequently be dereferenced.  In order to help prevent this
      codepath from being used as a spectre "gadget" a barrier needs to be
      added after checking the range.
      
      Reported-by: default avatarJordy Zomer <jordyzomer@google.com>
      Tested-by: default avatarJordy Zomer <jordyzomer@google.com>
      Suggested-by: default avatarLinus Torvalds <torvalds@linuxfoundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      73979060
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · f883675b
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
      
       - fix a potential race condition and always set GPIOs used as interrupt
         source to input in gpio-mxc
      
       - fix a GPIO ACPI-related issue with system suspend on Clevo NL5xRU
      
      * tag 'gpio-fixes-for-v6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpiolib: acpi: Add a ignore wakeup quirk for Clevo NL5xRU
        gpiolib: acpi: Allow ignoring wake capability on pins that aren't in _AEI
        gpio: mxc: Always set GPIOs used as interrupt source to INPUT mode
        gpio: mxc: Protect GPIO irqchip RMW with bgpio spinlock
      f883675b
    • Linus Torvalds's avatar
      Merge tag '6.2-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 4e31bada
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
      
       - important fix for packet signature calculation error
      
       - three fixes to correct DFS deadlock, and DFS refresh problem
      
       - remove an unused DFS function, and duplicate tcon refresh code
      
       - DFS cache lookup fix
      
       - uninitialized rc fix
      
      * tag '6.2-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: remove unused function
        cifs: do not include page data when checking signature
        cifs: fix return of uninitialized rc in dfs_cache_update_tgthint()
        cifs: handle cache lookup errors different than -ENOENT
        cifs: remove duplicate code in __refresh_tcon()
        cifs: don't take exclusive lock for updating target hints
        cifs: avoid re-lookups in dfs_cache_find()
        cifs: fix potential deadlock in cache_refresh_path()
      4e31bada
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v6.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 8440ffcd
      Linus Torvalds authored
      Pull pin control fixes from Linus Walleij:
      
       - Compilation fix for Sunplus sp7021
      
       - Add some missing headers after a cleanup to the Nomadik driver
      
       - Fix pull type and mux routes on Rockchip RK3568
      
      * tag 'pinctrl-v6.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        pinctrl: rockchip: fix mux route data for rk3568
        pinctrl: rockchip: fix reading pull type on rk3568
        pinctrl: nomadik: Add missing header(s)
        pinctrl: sp7021: fix unused function warning
      8440ffcd
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · 8974efaa
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
      
       - Several hfi1 patches fixing some long standing driver bugs
      
       - Overflow when working with sg lists with elements greater than 4G
      
       - An rxe regression with object numbering after the mrs reach their
         limit
      
       - A theoretical problem with the scatterlist merging code
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        lib/scatterlist: Fix to calculate the last_pg properly
        IB/hfi1: Remove user expected buffer invalidate race
        IB/hfi1: Immediately remove invalid memory from hardware
        IB/hfi1: Fix expected receive setup error exit issues
        IB/hfi1: Reserve user expected TIDs
        IB/hfi1: Reject a zero-length user expected buffer
        RDMA/core: Fix ib block iterator counter overflow
        RDMA/rxe: Prevent faulty rkey generation
        RDMA/rxe: Fix inaccurate constants in rxe_type_info
      8974efaa
    • Jens Axboe's avatar
      io_uring/poll: don't reissue in case of poll race on multishot request · 8caa03f1
      Jens Axboe authored
      A previous commit fixed a poll race that can occur, but it's only
      applicable for multishot requests. For a multishot request, we can safely
      ignore a spurious wakeup, as we never leave the waitqueue to begin with.
      
      A blunt reissue of a multishot armed request can cause us to leak a
      buffer, if they are ring provided. While this seems like a bug in itself,
      it's not really defined behavior to reissue a multishot request directly.
      It's less efficient to do so as well, and not required to rearm anything
      like it is for singleshot poll requests.
      
      Cc: stable@vger.kernel.org
      Fixes: 6e5aedb9
      
       ("io_uring/poll: attempt request issue after racy poll wakeup")
      Reported-and-tested-by: default avatarOlivier Langlois <olivier@trillion01.com>
      Link: https://github.com/axboe/liburing/issues/778
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      8caa03f1
    • Linus Torvalds's avatar
      Merge tag 'block-6.2-2023-01-20' of git://git.kernel.dk/linux · edc00350
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "Various little tweaks all over the place:
      
         - NVMe pull request via Christoph:
             - fix controller shutdown regression in nvme-apple (Janne Grunau)
             - fix a polling on timeout regression in nvme-pci (Keith Busch)
      
         - Fix a bug in the read request side request allocation caching
           (Pavel)
      
         - pktcdvd was brought back after we configured a NULL return on bio
           splits, make it consistent with the others (me)
      
         - BFQ refcount fix (Yu)
      
         - Block cgroup policy activation fix (Yu)
      
         - Fix for an md regression introduced in the 6.2 cycle (Adrian)"
      
      * tag 'block-6.2-2023-01-20' of git://git.kernel.dk/linux:
        nvme-pci: fix timeout request state check
        nvme-apple: only reset the controller when RTKit is running
        nvme-apple: reset controller during shutdown
        block: fix hctx checks for batch allocation
        block/rnbd-clt: fix wrong max ID in ida_alloc_max
        blk-cgroup: fix missing pd_online_fn() while activating policy
        pktcdvd: check for NULL returna fter calling bio_split_to_limits()
        block, bfq: switch 'bfqg->ref' to use atomic refcount apis
        md: fix incorrect declaration about claim_rdev in md_import_device
      edc00350
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.2-2023-01-20' of git://git.kernel.dk/linux · 9c38747f
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "Fixes for the MSG_RING opcode. Nothing really major:
      
         - Fix an overflow missing serialization around posting CQEs to the
           target ring (me)
      
         - Disable MSG_RING on a ring that isn't enabled yet. There's nothing
           really wrong with allowing it, but 1) it's somewhat odd as nobody
           can receive them yet, and 2) it means that using the right delivery
           mechanism might change. As nobody should be sending CQEs to a ring
           that isn't enabled yet, let's just disable it (Pavel)
      
         - Tweak to when we decide to post remotely or not for MSG_RING
           (Pavel)"
      
      * tag 'io_uring-6.2-2023-01-20' of git://git.kernel.dk/linux:
        io_uring/msg_ring: fix remote queue to disabled ring
        io_uring/msg_ring: fix flagging remote execution
        io_uring/msg_ring: fix missing lock on overflow for IOPOLL
        io_uring/msg_ring: move double lock/unlock helpers higher up
      9c38747f
    • Linus Torvalds's avatar
      Merge tag 'for-6.2-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 26e57507
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
      
       - fix potential out-of-bounds access to leaf data when seeking in an
         inline file
      
       - fix potential crash in quota when rescan races with disable
      
       - reimplement super block signature scratching by marking page/folio
         dirty and syncing block device, allow removing write_one_page
      
      * tag 'for-6.2-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: fix race between quota rescan and disable leading to NULL pointer deref
        btrfs: fix invalid leaf access due to inline extent during lseek
        btrfs: stop using write_one_page in btrfs_scratch_superblock
        btrfs: factor out scratching of one regular super block
      26e57507
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-fixes-6.2-rc5' of... · d9166cb3
      Linus Torvalds authored
      Merge tag 'linux-kselftest-fixes-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull Kselftest fix from Shuah Khan:
       "Fix an error seen during unconfigured LLVM builds"
      
      * tag 'linux-kselftest-fixes-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        kselftest: Fix error message for unconfigured LLVM builds
      d9166cb3
    • Linus Torvalds's avatar
      Merge tag 'thermal-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · dc181759
      Linus Torvalds authored
      Pull thermal control fix from Rafael Wysocki:
       "Modify __thermal_cooling_device_register() to make it call
        put_device() after invoking device_register() and fix up a few error
        paths calling thermal_cooling_device_destroy_sysfs() unnecessarily
        (Viresh Kumar)"
      
      * tag 'thermal-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: core: call put_device() only after device_register() fails
      dc181759
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · fe563a2c
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These update the ACPICA entry in MAINTAINERS, add a backlight handling
        quirk and fix the ACPI PRM (platform runtime) mechanism support.
      
        Specifics:
      
         - Update the ACPICA development list address in MAINTAINERS to the
           new one that does not bounce (Rafael Wysocki)
      
         - Check whether EFI runtime is available when registering the ACPI
           PRM address space handler and when running it (Ard Biesheuvel)
      
         - Add backlight=native DMI quirk for Acer Aspire 4810T to the ACPI
           video driver (Hans de Goede)"
      
      * tag 'acpi-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: PRM: Check whether EFI runtime is available
        ACPI: video: Add backlight=native DMI quirk for Acer Aspire 4810T
        MAINTAINERS: Update the ACPICA development list address
      fe563a2c
    • Linus Torvalds's avatar
      Merge tag 'mmc-v6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 1670d7e6
      Linus Torvalds authored
      Pull MMC fixes from Ulf Hansson:
      
       - sunxi-mmc: Fix clock refcount imbalance during unbind
      
       - sdhci-esdhc-imx: Fix some tuning settings
      
      * tag 'mmc-v6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: sunxi-mmc: Fix clock refcount imbalance during unbind
        mmc: sdhci-esdhc-imx: correct the tuning start tap and step setting
      1670d7e6
    • Linus Torvalds's avatar
      Merge tag 'soc-fixes-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 1ed46384
      Linus Torvalds authored
      Pull ARM SoC DT and driver fixes from Arnd Bergmann:
       "Lots of dts fixes for Qualcomm Snapdragon and NXP i.MX platforms,
        including:
      
         - A regression fix for SDHCI controllers on Inforce 6540, and another
           SDHCI fix on SM8350
      
         - Reenable cluster idle on sm8250 after the the code fix is upstream
      
         - multiple fixes for the QMP PHY binding, needing an incompatible dt
           change
      
         - The reserved memory map is updated on Xiaomi Mi 4C and Huawei Nexus
           6P, to avoid instabilities caused by use of protected memory
           regions
      
         - Fix i.MX8MP DT for missing GPC Interrupt, power-domain typo and USB
           clock error
      
         - A couple of verdin-imx8mm DT fixes for audio playback support
      
         - Fix pca9547 i2c-mux node name for i.MX and Vybrid device trees
      
         - Fix an imx93-11x11-evk uSDHC pad setting problem that causes Micron
           eMMC CMD8 CRC error in HS400ES/HS400 mode
      
        The remaining ARM and RISC-V platforms only have very few smaller dts
        bugfixes this time:
      
         - A fix for the SiFive unmatched board's PCI memory space
      
         - A revert to fix a regression with GPIO on Marvell Armada
      
         - A fix for the UART address on Marvell AC5
      
         - Missing chip-select phandles for stm32 boards
      
         - Selecting the correct clock for the sam9x60 memory controller
      
         - Amlogic based Odroid-HC4 needs a revert to restore USB
           functionality.
      
        And finally, there are some minor code fixes:
      
         - Build fixes for OMAP1, pxa, riscpc, raspberry pi firmware, and zynq
           firmware
      
         - memory controller driver fixes for an OMAP regression and older
           bugs on tegra, atmel and mvebu
      
         - reset controller fixes for ti-sci and uniphier platforms
      
         - ARM SCMI firmware fixes for a couple of rare corner cases
      
         - Qualcomm platform driver fixes for incorrect error handling and a
           backwards compatibility fix for the apr driver using older dtb
      
         - NXP i.MX SoC driver fixes for HDMI output, error handling in the
           imx8 soc-id and missing reference counting on older cpuid code"
      
      * tag 'soc-fixes-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (60 commits)
        firmware: zynqmp: fix declarations for gcc-13
        ARM: dts: stm32: Fix qspi pinctrl phandle for stm32mp151a-prtt1l
        ARM: dts: stm32: Fix qspi pinctrl phandle for stm32mp157c-emstamp-argon
        ARM: dts: stm32: Fix qspi pinctrl phandle for stm32mp15xx-dhcom-som
        ARM: dts: stm32: Fix qspi pinctrl phandle for stm32mp15xx-dhcor-som
        ARM: dts: at91: sam9x60: fix the ddr clock for sam9x60
        ARM: omap1: fix building gpio15xx
        ARM: omap1: fix !ARCH_OMAP1_ANY link failures
        firmware: raspberrypi: Fix type assignment
        arm64: dts: qcom: msm8992-libra: Fix the memory map
        arm64: dts: qcom: msm8992: Don't use sfpb mutex
        PM: AVS: qcom-cpr: Fix an error handling path in cpr_probe()
        arm64: dts: msm8994-angler: fix the memory map
        arm64: dts: marvell: AC5/AC5X: Fix address for UART1
        ARM: footbridge: drop unnecessary inclusion
        Revert "ARM: dts: armada-39x: Fix compatible string for gpios"
        Revert "ARM: dts: armada-38x: Fix compatible string for gpios"
        ARM: pxa: enable PXA310/PXA320 for DT-only build
        riscv: dts: sifive: fu740: fix size of pcie 32bit memory
        soc: qcom: apr: Make qcom,protection-domain optional again
        ...
      1ed46384
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-01-20' of git://anongit.freedesktop.org/drm/drm · ff83fec8
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Just a pretty regular week for this stage of things, amdgpu and i915,
        along with some msm and misc others.
      
        fb-helper:
         - switcheroo fix
      
        msm:
         - kexec shutdown fix
         - fix potential double free
      
        i915:
         - Reject display plane with height == 0
         - re-disable RC6p on Sandy Bridge
         - Fix hugepages' selftest
         - DG2 hw workarounds
         - switcheroo fix
      
        vc4:
         - fix a memory leak
      
        panfrost:
         - Kconfig fix
      
        amdgpu:
         - Fix display scaling
         - Fix RN/CZN power reporting on some firmware versions
         - Colorspace fixes
         - Fix resource freeing in error case in CS IOCTL
         - Fix warning on driver unload
         - GC11 fixes
         - DCN 3.1.4/5 S/G display workarounds"
      
      * tag 'drm-fixes-2023-01-20' of git://anongit.freedesktop.org/drm/drm: (24 commits)
        drm/amd/display: disable S/G display on DCN 3.1.4
        drm/amd/display: disable S/G display on DCN 3.1.5
        drm/amdgpu: allow multipipe policy on ASICs with one MEC
        drm/amdgpu: correct MEC number for gfx11 APUs
        drm/amd/display: fix issues with driver unload
        drm/amdgpu: fix amdgpu_job_free_resources v2
        drm/amd/display: Fix COLOR_SPACE_YCBCR2020_TYPE matrix
        drm/amd/display: Calculate output_color_space after pixel encoding adjustment
        drm/amdgpu: fix cleaning up reserved VMID on release
        drm/amdgpu: Correct the power calcultion for Renior/Cezanne.
        drm/amd/display: Fix set scaling doesn's work
        drm/i915: Remove unused variable
        drm/i915/dg2: Introduce Wa_18019271663
        drm/i915/dg2: Introduce Wa_18018764978
        drm/fb-helper: Set framebuffer for vga-switcheroo clients
        drm/i915: Allow switching away via vga-switcheroo if uninitialized
        drm/i915/selftests: Unwind hugepages to drop wakeref on error
        drm/i915: re-disable RC6p on Sandy Bridge
        drm/panfrost: fix GENERIC_ATOMIC64 dependency
        drm/i915/display: Check source height is > 0
        ...
      ff83fec8
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-fix-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · 35929dae
      Linus Torvalds authored
      Pull dmaengine fixes from Vinod Koul:
      
       - email address Update for Jie Hai
      
       - fix double increment of client_count in dma_chan_get()
      
       - idxd driver fixes: use after free, probe error handling and callback
         on wq disable
      
       - fix for qcom gpi driver GO tre
      
       - ptdma locking fix
      
       - tegra & imx-sdma mem leak fix
      
      * tag 'dmaengine-fix-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine:
        ptdma: pt_core_execute_cmd() should use spinlock
        dmaengine: tegra: Fix memory leak in terminate_all()
        dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()
        dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init
        dmaengine: Fix double increment of client_count in dma_chan_get()
        dmaengine: tegra210-adma: fix global intr clear
        Add exception protection processing for vd in axi_chan_handle_err function
        dmaengine: lgm: Move DT parsing after initialization
        MAINTAINERS: update Jie Hai's email address
        dmaengine: ti: k3-udma: Do conditional decrement of UDMA_CHAN_RT_PEER_BCNT_REG
        dmaengine: idxd: Do not call DMX TX callbacks during workqueue disable
        dmaengine: idxd: Prevent use after free on completion memory
        dmaengine: idxd: Let probe fail when workqueue cannot be enabled
        dmaengine: qcom: gpi: Set link_rx bit on GO TRE for rx operation
      35929dae