1. Dec 19, 2022
  2. Dec 17, 2022
  3. Dec 16, 2022
    • Paulo Alcantara's avatar
      cifs: set correct tcon status after initial tree connect · b248586a
      Paulo Alcantara authored
      
      
      cifs_tcon::status wasn't correctly updated to TID_GOOD after initial
      tree connect thus staying at TID_NEW as long as it was connected.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarPaulo Alcantara (SUSE) <pc@cjr.nz>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      b248586a
    • Linus Torvalds's avatar
      Merge tag '6.2-rc-smb3-client-fixes-part1' of git://git.samba.org/sfrench/cifs-2.6 · 851f657a
      Linus Torvalds authored
      Pull cifs client updates from Steve French:
      
       - SMB3.1.1 POSIX Extensions fixes
      
       - remove use of generic_writepages() and ->cifs_writepage(), in favor
         of ->cifs_writepages() and ->migrate_folio()
      
       - memory management fixes
      
       - mount parm parsing fixes
      
       - minor cleanup fixes
      
      * tag '6.2-rc-smb3-client-fixes-part1' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: Remove duplicated include in cifsglob.h
        cifs: fix oops during encryption
        cifs: print warning when conflicting soft vs. hard mount options specified
        cifs: fix missing display of three mount options
        cifs: fix various whitespace errors in headers
        cifs: minor cleanup of some headers
        cifs: skip alloc when request has no pages
        cifs: remove ->writepage
        cifs: stop using generic_writepages
        cifs: wire up >migrate_folio
        cifs: Parse owner/group for stat in smb311 posix extensions
        cifs: Add "extbuf" and "extbuflen" args to smb2_compound_op()
        Fix path in cifs/usage.rst
      851f657a
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · ec9187ec
      Linus Torvalds authored
      Pull i2c updates from Wolfram Sang:
       "Core got a new helper 'i2c_client_get_device_id()', designware got
        some bigger updates, the rest is driver updates all over the place"
      
      * tag 'i2c-for-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (41 commits)
        i2c: ismt: Fix an out-of-bounds bug in ismt_access()
        i2c: mux: reg: check return value after calling platform_get_resource()
        i2c: xiic: Make sure to disable clock on .remove()
        i2c: hisi: Add support to get clock frequency from clock
        i2c: pxa-pci: fix missing pci_disable_device() on error in ce4100_i2c_probe
        i2c: slave-eeprom: Convert to i2c's .probe_new()
        i2c: mux: pca954x: Convert to i2c's .probe_new()
        drivers/i2c: use simple i2c probe
        i2c: mux: pca9541: switch to using .probe_new
        i2c: gpio: Fix potential unused warning for 'i2c_gpio_dt_ids'
        i2c: qcom-geni: add support for I2C Master Hub variant
        i2c: qcom-geni: add desc struct to prepare support for I2C Master Hub variant
        soc: qcom: geni-se: add support for I2C Master Hub wrapper variant
        soc: qcom: geni-se: add desc struct to specify clocks from device match data
        dt-bindings: i2c: qcom-geni: document I2C Master Hub serial I2C engine
        dt-bindings: qcom: geni-se: document I2C Master Hub wrapper variant
        dt-bindings: i2c: renesas,riic: Document RZ/Five SoC
        i2c: tegra: Set ACPI node as primary fwnode
        i2c: smbus: add DDR support for SPD
        i2c: /pasemi: PASemi I2C controller IRQ enablement
        ...
      ec9187ec
    • Linus Torvalds's avatar
      Merge tag 'vfio-v6.2-rc1' of https://github.com/awilliam/linux-vfio · 785d21ba
      Linus Torvalds authored
      Pull VFIO updates from Alex Williamson:
      
       - Replace deprecated git://github.com link in MAINTAINERS (Palmer
         Dabbelt)
      
       - Simplify vfio/mlx5 with module_pci_driver() helper (Shang XiaoJing)
      
       - Drop unnecessary buffer from ACPI call (Rafael Mendonca)
      
       - Correct latent missing include issue in iova-bitmap and fix support
         for unaligned bitmaps. Follow-up with better fix through refactor
         (Joao Martins)
      
       - Rework ccw mdev driver to split private data from parent structure,
         better aligning with the mdev lifecycle and allowing us to remove a
         temporary workaround (Eric Farman)
      
       - Add an interface to get an estimated migration data size for a
         device, allowing userspace to make informed decisions, ex. more
         accurately predicting VM downtime (Yishai Hadas)
      
       - Fix minor typo in vfio/mlx5 array declaration (Yishai Hadas)
      
       - Simplify module and Kconfig through consolidating SPAPR/EEH code and
         config options and folding virqfd module into main vfio module (Jason
         Gunthorpe)
      
       - Fix error path from device_register() across all vfio mdev and sample
         drivers (Alex Williamson)
      
       - Define migration pre-copy interface and implement for vfio/mlx5
         devices, allowing portions of the device state to be saved while the
         device continues operation, towards reducing the stop-copy state size
         (Jason Gunthorpe, Yishai Hadas, Shay Drory)
      
       - Implement pre-copy for hisi_acc devices (Shameer Kolothum)
      
       - Fixes to mdpy mdev driver remove path and error path on probe (Shang
         XiaoJing)
      
       - vfio/mlx5 fixes for incorrect return after copy_to_user() fault and
         incorrect buffer freeing (Dan Carpenter)
      
      * tag 'vfio-v6.2-rc1' of https://github.com/awilliam/linux-vfio: (42 commits)
        vfio/mlx5: error pointer dereference in error handling
        vfio/mlx5: fix error code in mlx5vf_precopy_ioctl()
        samples: vfio-mdev: Fix missing pci_disable_device() in mdpy_fb_probe()
        hisi_acc_vfio_pci: Enable PRE_COPY flag
        hisi_acc_vfio_pci: Move the dev compatibility tests for early check
        hisi_acc_vfio_pci: Introduce support for PRE_COPY state transitions
        hisi_acc_vfio_pci: Add support for precopy IOCTL
        vfio/mlx5: Enable MIGRATION_PRE_COPY flag
        vfio/mlx5: Fallback to STOP_COPY upon specific PRE_COPY error
        vfio/mlx5: Introduce multiple loads
        vfio/mlx5: Consider temporary end of stream as part of PRE_COPY
        vfio/mlx5: Introduce vfio precopy ioctl implementation
        vfio/mlx5: Introduce SW headers for migration states
        vfio/mlx5: Introduce device transitions of PRE_COPY
        vfio/mlx5: Refactor to use queue based data chunks
        vfio/mlx5: Refactor migration file state
        vfio/mlx5: Refactor MKEY usage
        vfio/mlx5: Refactor PD usage
        vfio/mlx5: Enforce a single SAVE command at a time
        vfio: Extend the device migration protocol with PRE_COPY
        ...
      785d21ba
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 8fa590bf
      Linus Torvalds authored
      Pull kvm updates from Paolo Bonzini:
       "ARM64:
      
         - Enable the per-vcpu dirty-ring tracking mechanism, together with an
           option to keep the good old dirty log around for pages that are
           dirtied by something other than a vcpu.
      
         - Switch to the relaxed parallel fault handling, using RCU to delay
           page table reclaim and giving better performance under load.
      
         - Relax the MTE ABI, allowing a VMM to use the MAP_SHARED mapping
           option, which multi-process VMMs such as crosvm rely on (see merge
           commit 382b5b87: "Fix a number of issues with MTE, such as
           races on the tags being initialised vs the PG_mte_tagged flag as
           well as the lack of support for VM_SHARED when KVM is involved.
           Patches from Catalin Marinas and Peter Collingbourne").
      
         - Merge the pKVM shadow vcpu state tracking that allows the
           hypervisor to have its own view of a vcpu, keeping that state
           private.
      
         - Add support for the ...
      8fa590bf
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.2-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 057b40f4
      Linus Torvalds authored
      Pull more ACPI updates from Rafael Wysocki:
       "These fix an AML byte code execution issue in ACPICA and two issues in
        the ACPI EC driver which requires rearranging ACPICA code.
      
        Specifics:
      
         - Avoid trying to resolve operands in AML when there are none
           (Amadeusz Sławiński)
      
         - Fix indentation in include/acpi/acpixf.h to help applying patches
           from the upstream ACPICA git (Hans de Goede)
      
         - Make it possible to install an address space handler without
           evaluating _REG for Operation Regions in the given address space
           (Hans de Goede)
      
         - Defer the evaluation of _REG for ECDT described ECs till the
           matching EC device in the DSDT gets parsed and acpi_ec_add() gets
           called for it (Hans de Goede)
      
         - Fix EC address space handler unregistration (Hans de Goede)"
      
      * tag 'acpi-6.2-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: EC: Fix ECDT probe ordering issues
        ACPI: EC: Fix EC address space handler unregistration
        ACPICA: Allow address_space_handler Install and _REG execution as 2 separate steps
        ACPICA: include/acpi/acpixf.h: Fix indentation
        ACPICA: Fix operand resolution
      057b40f4
    • Linus Torvalds's avatar
      Merge tag 'thermal-6.2-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 601c1aa8
      Linus Torvalds authored
      Pull more thermal control updates from Rafael Wysocki:
       "These are updates of assorted thermal drivers, mostly for ARM
        platforms, generally isolated and fairly straightforward, and the
        recent Intel HFI driver fix for systems without HFI support.
      
        Specifics:
      
         - Avoid clearing the HFI status bit on systems without HFI support
           which triggers unchecked MSR access errors (Srinivas Pandruvada)
      
         - Add sm8450 and sm8550 QCom compatible string to DT bindings (Luca
           Weiss, Neil Armstrong)
      
         - Use devm_platform_get_and_ioremap_resource on the ST platform to
           group two calls into a single one (Minghao Chi)
      
         - Use GENMASK instead of bitmaps and validate the temperature after
           reading it in the imx8mm_thermal driver (Marcus Folkesson)
      
         - Convert generic-adc-thermal to DT schema (Rob Herring)
      
         - Fix debug print message with inverted logic in the k3_j72xx_bandgap
           driver (Keerthy)
      
         - Fix memory leak on thermal_of_zone_register() failure (Ido
           Schimmel)
      
         - Add support for IPQ8074 in the tsens thermal driver along with the
           DT bindings (Robert Marko)
      
         - Fix and rework the debugfs code in the tsens driver (Christian
           Marangi)
      
         - Add calibration and DT documentation for the imx8mm driver (Marek
           Vasut)
      
         - Add DT bindings and compatible for the Mediatek SoCs mt7981 and
           mt7983 (Daniel Golle)
      
         - Don't show an error message if it happens at probe time while it
           will be deferred on the QCom SPMI ADC driver (Johan Hovold)
      
         - Add HWMon support for the imx8mm board (Alexander Stein)
      
         - Remove pointless include from the power allocator governor
           (Christophe JAILLET)
      
         - Add interrupt DT bindings for QCom SoCs SC8280XP, SM6350 and SM8450
           (Krzysztof Kozlowski)
      
         - Fix inaccurate warning message for the QCom tsens gen2 (Luca Weiss)
      
         - Demote error log of thermal zone register to debug in the tsens
           QCom driver (Manivannan Sadhasivam)
      
         - Consolidate the the efuse values and the errata handling in the TI
           Bandgap driver (Bryan Brattlof)
      
         - Document Renesas RZ/Five as compatible with RZ/G2UL in the DT
           bindings (Lad Prabhakar)
      
         - Fix the irq handler return value in the LMh driver (Bjorn
           Andersson)
      
         - Delete empty platform remove callback from imx_sc_thermal (Uwe
           Kleine-König)"
      
      * tag 'thermal-6.2-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (35 commits)
        thermal/drivers/imx_sc_thermal: Drop empty platform remove function
        thermal/drivers/qcom/lmh: Fix irq handler return value
        dt-bindings: thermal: qcom-tsens: Add compatible for sm8550
        thermal/drivers/st: Use devm_platform_get_and_ioremap_resource()
        dt-bindings: thermal: rzg2l-thermal: Document RZ/Five SoC
        dt-bindings: thermal: k3-j72xx: conditionally require efuse reg range
        dt-bindings: thermal: k3-j72xx: elaborate on binding description
        thermal/drivers/k3_j72xx_bandgap: Map fuse_base only for erratum workaround
        thermal/drivers/k3_j72xx_bandgap: Remove fuse_base from structure
        thermal/drivers/k3_j72xx_bandgap: Use bool for i2128 erratum flag
        thermal/drivers/k3_j72xx_bandgap: Simplify k3_thermal_get_temp() function
        thermal/drivers/qcom: Demote error log of thermal zone register to debug
        thermal/drivers/qcom/temp-alarm: Fix inaccurate warning for gen2
        dt-bindings: thermal: qcom-tsens: narrow interrupts for SC8280XP, SM6350 and SM8450
        thermal/core/power allocator: Remove a useless include
        thermal/drivers/imx8mm: Add hwmon support
        thermal: qcom-spmi-adc-tm5: suppress probe-deferral error message
        dt-bindings: thermal: mediatek: add compatible string for MT7986 and MT7981 SoC
        thermal: ti-soc-thermal: Drop comma after SoC match table sentinel
        thermal/drivers/imx: Add support for loading calibration data from OCOTP
        ...
      601c1aa8
    • Linus Torvalds's avatar
      Merge tag 'gpio-updates-for-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · c0f234ff
      Linus Torvalds authored
      Pull gpio updates from Bartosz Golaszewski:
       "We have a new GPIO multiplexer driver, bunch of driver updates and
        refactoring in the core GPIO library.
      
        GPIO core:
         - teach gpiolib to work with software nodes for HW description
         - remove ARCH_NR_GPIOS treewide as we no longer impose any limit on
           the number of GPIOS since the allocation became entirely dynamic
         - add support for HW quirks for Cirrus CS42L56 codec, Marvell NFC
           controller, Freescale PCIe and Ethernet controller, Himax LCDs and
           Mediatek mt2701
         - refactor OF quirk code
         - some general refactoring of the OF and ACPI code, adding new
           helpers, minor tweaks and fixes, making fwnode usage consistent
           etc.
      
        GPIO uAPI:
         - fix an issue where the user-space can trigger a NULL-pointer
           dereference in the kernel by opening a device file, forcing a
           driver unbind and then calling one of the syscalls on the
           associated file descriptor
      
        New drivers:
         - add gpio-latch: a new GPIO multiplexer based on latches connected
           to other GPIOs
      
        Driver updates:
         - convert i2c GPIO expanders to using .probe_new()
         - drop the gpio-sta2x11 driver
         - factor out common code for the ACCES IDIO-16 family of controllers
           and use this new library wherever applicable in drivers
         - add DT support to gpio-hisi
         - allow building gpio-davinci as a module and increase its maxItems
           property
         - add support for a new model to gpio-pca9570
         - other minor changes to various drivers"
      
      * tag 'gpio-updates-for-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: (66 commits)
        gpio: sim: set a limit on the number of GPIOs
        gpiolib: protect the GPIO device against being dropped while in use by user-space
        gpiolib: cdev: fix NULL-pointer dereferences
        gpiolib: Provide to_gpio_device() helper
        gpiolib: Unify access to the device properties
        gpio: Do not include <linux/kernel.h> when not really needed.
        gpio: pcf857x: Convert to i2c's .probe_new()
        gpio: pca953x: Convert to i2c's .probe_new()
        gpio: max732x: Convert to i2c's .probe_new()
        dt-bindings: gpio: gpio-davinci: Increase maxItems in gpio-line-names
        gpiolib: ensure that fwnode is properly set
        gpio: sl28cpld: Replace irqchip mask_invert with unmask_base
        gpiolib: of: Use correct fwnode for DT-probed chips
        gpiolib: of: Drop redundant check in of_mm_gpiochip_remove()
        gpiolib: of: Prepare of_mm_gpiochip_add_data() for fwnode
        gpiolib: add support for software nodes
        gpiolib: consolidate GPIO lookups
        gpiolib: acpi: avoid leaking ACPI details into upper gpiolib layers
        gpiolib: acpi: teach acpi_find_gpio() to handle data-only nodes
        gpiolib: acpi: change acpi_find_gpio() to accept firmware node
        ...
      c0f234ff
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-ec' · 3d03140c
      Rafael J. Wysocki authored
      Merge additional ACPI EC driver fixes for 6.2-rc1:
      
       - Fix EC address space handler unregistration (Hans de Goede).
      
       - Defer the evaluation of _REG for ECDT described ECs till the matching
         EC device in the DSDT gets parsed and acpi_ec_add() gets called for
         it (Hans de Goede).
      
      * acpi-ec:
        ACPI: EC: Fix ECDT probe ordering issues
        ACPI: EC: Fix EC address space handler unregistration
      3d03140c
    • Linus Torvalds's avatar
      Merge tag 'fbdev-for-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev · 9fa4abc9
      Linus Torvalds authored
      Pull fbdev updates from Helge Deller:
       "The most relevant change are the patches from Dmitry Torokhov to
        switch omapfb to the gpiod API.
      
        The other patches are small and fix e.g. UML build issues, improve the
        error paths and cleanup code"
      
      * tag 'fbdev-for-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev: (32 commits)
        fbdev: fbcon: release buffer when fbcon_do_set_font() failed
        fbdev: sh_mobile_lcdcfb: use sysfs_emit() to instead of scnprintf()
        fbdev: uvesafb: use sysfs_emit() to instead of scnprintf()
        fbdev: uvesafb: Simplify uvesafb_remove()
        fbdev: uvesafb: Fixes an error handling path in uvesafb_probe()
        fbdev: uvesafb: don't build on UML
        fbdev: geode: don't build on UML
        fbdev: ep93xx-fb: Add missing clk_disable_unprepare in ep93xxfb_probe()
        fbdev: matroxfb: Convert to i2c's .probe_new()
        fbdev: da8xx-fb: add missing regulator_disable() in fb_probe
        fbdev: controlfb: fix spelling mistake "paramaters"->"parameters"
        fbdev: vermilion: decrease reference count in error path
        fbdev: smscufx: fix error handling code in ufx_usb_probe
        fbdev: via: Fix error in via_core_init()
        fbdev: pm2fb: fix missing pci_disable_device()
        fbdev: pxafb: Remove unnecessary print function dev_err()
        fbdev: omapfb: panel-sharp-ls037v7dw01: fix included headers
        fbdev: omapfb: panel-tpo-td028ttec1: stop including gpio.h
        fbdev: omapfb: panel-lgphilips-lb035q02: remove backlight GPIO handling
        fbdev: omapfb: encoder-opa362: fix included headers
        ...
      9fa4abc9
    • Rafael J. Wysocki's avatar
      Merge branch 'acpica' · f7eae09b
      Rafael J. Wysocki authored
      Merge additional ACPICA changes for 6.2-rc1:
      
       - Avoid trying to resolve operands in AML when there are none (Amadeusz
         Sławiński).
      
       - Fix indentation in include/acpi/acpixf.h to help applying patches
         from the upstream ACPICA git (Hans de Goede).
      
       - Make it possible to install an address space handler without
         evaluating _REG for Operation Regions in the given address space (Hans
         de Goede).
      
      * acpica:
        ACPICA: Allow address_space_handler Install and _REG execution as 2 separate steps
        ACPICA: include/acpi/acpixf.h: Fix indentation
        ACPICA: Fix operand resolution
      f7eae09b
    • Linus Torvalds's avatar
      Merge tag '6.2-rc-ksmbd-server-fixes' of git://git.samba.org/ksmbd · 504a73d4
      Linus Torvalds authored
      Pull ksmbd updates from Steve French:
       "Six ksmbd server fixes"
      
      * tag '6.2-rc-ksmbd-server-fixes' of git://git.samba.org/ksmbd:
        ksmbd: Convert to use sysfs_emit()/sysfs_emit_at() APIs
        ksmbd: Fix resource leak in smb2_lock()
        ksmbd: Fix resource leak in ksmbd_session_rpc_open()
        ksmbd: replace one-element arrays with flexible-array members
        ksmbd: use F_SETLK when unlocking a file
        ksmbd: set SMB2_SESSION_FLAG_ENCRYPT_DATA when enforcing data encryption for this share
      504a73d4
  4. Dec 15, 2022
    • Linus Torvalds's avatar
      Merge tag 'f2fs-for-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs · 041fae9c
      Linus Torvalds authored
      Pull f2fs updates from Jaegeuk Kim:
       "In this round, we've added two features: F2FS_IOC_START_ATOMIC_REPLACE
        and a per-block age-based extent cache.
      
        F2FS_IOC_START_ATOMIC_REPLACE is a variant of the previous atomic
        write feature which guarantees a per-file atomicity. It would be more
        efficient than AtomicFile implementation in Android framework.
      
        The per-block age-based extent cache implements another type of extent
        cache in memory which keeps the per-block age in a file, so that block
        allocator could split the hot and cold data blocks more accurately.
      
        Enhancements:
         - introduce F2FS_IOC_START_ATOMIC_REPLACE
         - refactor extent_cache to add a new per-block-age-based extent cache support
         - introduce discard_urgent_util, gc_mode, max_ordered_discard sysfs knobs
         - add proc entry to show discard_plist info
         - optimize iteration over sparse directories
         - add barrier mount option
      
        Bug fix...
      041fae9c
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-6.2-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · eb67d239
      Linus Torvalds authored
      Pull RISC-V updates from Palmer Dabbelt:
      
       - Support for the T-Head PMU via the perf subsystem
      
       - ftrace support for rv32
      
       - Support for non-volatile memory devices
      
       - Various fixes and cleanups
      
      * tag 'riscv-for-linus-6.2-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: (52 commits)
        Documentation: RISC-V: patch-acceptance: s/implementor/implementer
        Documentation: RISC-V: Mention the UEFI Standards
        Documentation: RISC-V: Allow patches for non-standard behavior
        Documentation: RISC-V: Fix a typo in patch-acceptance
        riscv: Fixup compile error with !MMU
        riscv: Fix P4D_SHIFT definition for 3-level page table mode
        riscv: Apply a static assert to riscv_isa_ext_id
        RISC-V: Add some comments about the shadow and overflow stacks
        RISC-V: Align the shadow stack
        RISC-V: Ensure Zicbom has a valid block size
        RISC-V: Introduce riscv_isa_extension_check
        RISC-V: Improve use of isa2hwc...
      eb67d239
    • Linus Torvalds's avatar
      Merge tag 'x86_core_for_v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 94a85511
      Linus Torvalds authored
      Pull x86 core updates from Borislav Petkov:
      
       - Add the call depth tracking mitigation for Retbleed which has been
         long in the making. It is a lighterweight software-only fix for
         Skylake-based cores where enabling IBRS is a big hammer and causes a
         significant performance impact.
      
         What it basically does is, it aligns all kernel functions to 16 bytes
         boundary and adds a 16-byte padding before the function, objtool
         collects all functions' locations and when the mitigation gets
         applied, it patches a call accounting thunk which is used to track
         the call depth of the stack at any time.
      
         When that call depth reaches a magical, microarchitecture-specific
         value for the Return Stack Buffer, the code stuffs that RSB and
         avoids its underflow which could otherwise lead to the Intel variant
         of Retbleed.
      
         This software-only solution brings a lot of the lost performance
         back, as benchmarks sugg...
      94a85511
    • Linus Torvalds's avatar
      Merge tag 'apparmor-pr-2022-12-14' of... · 93761c93
      Linus Torvalds authored
      Merge tag 'apparmor-pr-2022-12-14' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor
      
      Pull apparmor updates from John Johansen:
       "Features:
         - switch to zstd compression for profile raw data
      
        Cleanups:
         - simplify obtaining the newest label on a cred
         - remove useless static inline functions
         - compute permission conversion on policy unpack
         - refactor code to share common permissins
         - refactor unpack to group policy backwards compatiblity code
         - add __init annotation to aa_{setup/teardown}_dfa_engine()
      
        Bug Fixes:
         - fix a memleak in
             - multi_transaction_new()
             - free_ruleset()
             - unpack_profile()
             - alloc_ns()
         - fix lockdep warning when removing a namespace
         - fix regression in stacking due to label flags
         - fix loading of child before parent
         - fix kernel-doc comments that differ from fns
         - fix spelling errors in comments
         - store return value of unpack_perms_table() to signed variable"
      
      * tag 'apparmor-pr-2022-12-14' of git://...
      93761c93
    • Linus Torvalds's avatar
      Merge tag 'v6.2-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 64e7003c
      Linus Torvalds authored
      Pull crypto updates from Herbert Xu:
       "API:
         - Optimise away self-test overhead when they are disabled
         - Support symmetric encryption via keyring keys in af_alg
         - Flip hwrng default_quality, the default is now maximum entropy
      
        Algorithms:
         - Add library version of aesgcm
         - CFI fixes for assembly code
         - Add arm/arm64 accelerated versions of sm3/sm4
      
        Drivers:
         - Remove assumption on arm64 that kmalloc is DMA-aligned
         - Fix selftest failures in rockchip
         - Add support for RK3328/RK3399 in rockchip
         - Add deflate support in qat
         - Merge ux500 into stm32
         - Add support for TEE for PCI ID 0x14CA in ccp
         - Add mt7986 support in mtk
         - Add MaxLinear platform support in inside-secure
         - Add NPCM8XX support in npcm"
      
      * tag 'v6.2-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (184 commits)
        crypto: ux500/cryp - delete driver
        crypto: stm32/cryp - enable for use wit...
      64e7003c
    • Linus Torvalds's avatar
      Merge tag 'hardening-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · 48ea09cd
      Linus Torvalds authored
      Pull kernel hardening updates from Kees Cook:
      
       - Convert flexible array members, fix -Wstringop-overflow warnings, and
         fix KCFI function type mismatches that went ignored by maintainers
         (Gustavo A. R. Silva, Nathan Chancellor, Kees Cook)
      
       - Remove the remaining side-effect users of ksize() by converting
         dma-buf, btrfs, and coredump to using kmalloc_size_roundup(), add
         more __alloc_size attributes, and introduce full testing of all
         allocator functions. Finally remove the ksize() side-effect so that
         each allocation-aware checker can finally behave without exceptions
      
       - Introduce oops_limit (default 10,000) and warn_limit (default off) to
         provide greater granularity of control for panic_on_oops and
         panic_on_warn (Jann Horn, Kees Cook)
      
       - Introduce overflows_type() and castable_to_type() helpers for cleaner
         overflow checking
      
       - Improve code generation for strscpy() and update str*() kern-...
      48ea09cd
    • Linus Torvalds's avatar
      Merge tag 'memblock-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock · ad76bf1f
      Linus Torvalds authored
      Pull memblock updates from Mike Rapoport:
       "Extend test coverage:
      
         - add tests that trigger reallocation of memblock structures from
           memblock itself via memblock_double_array()
      
         - add tests for memblock_alloc_exact_nid_raw() that verify that
           requested node and memory range constraints are respected"
      
      * tag 'memblock-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
        memblock tests: remove completed TODO item
        memblock tests: add generic NUMA tests for memblock_alloc_exact_nid_raw
        memblock tests: add bottom-up NUMA tests for memblock_alloc_exact_nid_raw
        memblock tests: add top-down NUMA tests for memblock_alloc_exact_nid_raw
        memblock tests: introduce range tests for memblock_alloc_exact_nid_raw
        memblock test: Update TODO list
        memblock test: Add test to memblock_reserve() 129th region
        memblock test: Add test to memblock_add() 129th region
      ad76bf1f
    • Linus Torvalds's avatar
      Merge tag 'for-linus-6.2-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux · 6f1f5cae
      Linus Torvalds authored
      Pull orangefs updates from Mike Marshall:
      
       - fix problems with memory leaks on exit in sysfs and debufs (Zhang)
      
       - remove an unused variable and an unneeded assignment (Colin)
      
      * tag 'for-linus-6.2-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux:
        orangefs: Fix kmemleak in orangefs_{kernel,client}_debug_init()
        orangefs: Fix kmemleak in orangefs_sysfs_init()
        orangefs: Fix kmemleak in orangefs_prepare_debugfs_help_string()
        orangefs: Fix sysfs not cleanup when dev init failed
        orangefs: remove redundant assignment to variable buffer_index
        orangefs: remove variable i
      6f1f5cae
    • Tetsuo Handa's avatar
      fbdev: fbcon: release buffer when fbcon_do_set_font() failed · 3c3bfb85
      Tetsuo Handa authored
      syzbot is reporting memory leak at fbcon_do_set_font() [1], for
      commit a5a92303 ("fbdev: fbcon: Properly revert changes when
      vc_resize() failed") missed that the buffer might be newly allocated
      by fbcon_set_font().
      
      Link: https://syzkaller.appspot.com/bug?extid=25bdb7b1703639abd498
      
       [1]
      Reported-by: default avatarsyzbot <syzbot+25bdb7b1703639abd498@syzkaller.appspotmail.com>
      Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Tested-by: default avatarsyzbot <syzbot+25bdb7b1703639abd498@syzkaller.appspotmail.com>
      Fixes: a5a92303
      
       ("fbdev: fbcon: Properly revert changes when vc_resize() failed")
      CC: stable@vger.kernel.org # 5.15+
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      3c3bfb85