[PATCH 6.1 000/119] 6.1.31-rc1 review

Greg Kroah-Hartman posted 119 patches 2 years, 8 months ago
Only 1 patches received!
.../devicetree/bindings/usb/cdns,usb3.yaml         |   2 +-
Makefile                                           |   4 +-
arch/arm/boot/dts/imx6qdl-mba6.dtsi                |   1 +
arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi  |   8 +-
arch/arm64/mm/copypage.c                           |   5 +-
arch/m68k/kernel/signal.c                          |  14 +-
arch/parisc/Kconfig                                |   4 +
arch/parisc/include/asm/cacheflush.h               |   4 +
arch/parisc/kernel/alternative.c                   |   2 +-
arch/parisc/kernel/cache.c                         |   5 +-
arch/parisc/kernel/process.c                       |  11 +-
arch/parisc/kernel/traps.c                         |   8 +-
arch/x86/events/intel/uncore_snbep.c               |  11 ++
arch/x86/kernel/cpu/topology.c                     |   5 +-
arch/x86/kernel/dumpstack.c                        |   7 +-
arch/x86/mm/init.c                                 |  25 +++
arch/x86/pci/xen.c                                 |   8 +-
arch/xtensa/kernel/signal.c                        |  35 +++-
arch/xtensa/kernel/xtensa_ksyms.c                  |   4 +
arch/xtensa/lib/Makefile                           |   2 +-
arch/xtensa/lib/bswapdi2.S                         |  21 +++
arch/xtensa/lib/bswapsi2.S                         |  16 ++
drivers/android/binder.c                           |  28 ++-
drivers/android/binder_alloc.c                     |  64 ++++---
drivers/android/binder_alloc.h                     |   4 +-
drivers/android/binder_alloc_selftest.c            |   2 +-
drivers/char/tpm/tpm-chip.c                        |  52 ++++--
drivers/char/tpm/tpm-interface.c                   |  10 ++
drivers/char/tpm/tpm.h                             |   1 +
drivers/char/tpm/tpm_tis.c                         |   2 +-
drivers/char/tpm/tpm_tis_core.c                    | 187 ++++++++++++---------
drivers/char/tpm/tpm_tis_core.h                    |   3 +-
drivers/cxl/core/pci.c                             |  85 +++++++++-
drivers/cxl/cxlpci.h                               |   2 +
drivers/firmware/arm_ffa/bus.c                     |  19 ++-
drivers/firmware/arm_ffa/driver.c                  |   6 +
drivers/gpio/gpio-mockup.c                         |   2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c            |   9 +-
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c             |   1 +
drivers/gpu/drm/amd/display/dc/core/dc_link.c      |   9 +-
drivers/gpu/drm/amd/display/dc/dc_types.h          |   6 +
drivers/gpu/drm/amd/include/mes_v11_api_def.h      |   6 +-
drivers/gpu/drm/amd/pm/amdgpu_pm.c                 |  12 +-
.../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c   |   1 +
drivers/gpu/drm/drm_managed.c                      |  22 +--
drivers/gpu/drm/mgag200/mgag200_mode.c             |   5 +
drivers/gpu/drm/radeon/radeon_irq_kms.c            |  10 ++
drivers/hwtracing/coresight/coresight-tmc-etr.c    |   2 +-
drivers/irqchip/irq-mips-gic.c                     |  32 ++--
drivers/media/radio/radio-shark.c                  |  10 ++
drivers/media/radio/radio-shark2.c                 |  10 ++
drivers/mmc/core/block.c                           |   5 +
drivers/mmc/host/sdhci-esdhc-imx.c                 |  18 +-
drivers/net/bonding/bond_main.c                    |   8 +-
drivers/net/dsa/mv88e6xxx/chip.c                   |   2 +
drivers/net/dsa/mv88e6xxx/port.c                   |   9 +
drivers/net/dsa/mv88e6xxx/port.h                   |   2 +
drivers/net/ethernet/3com/3c589_cs.c               |  11 +-
.../net/ethernet/marvell/octeontx2/nic/otx2_txrx.c |   4 +-
drivers/net/ethernet/mellanox/mlx5/core/cmd.c      |   3 +-
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c   |   2 +
.../ethernet/mellanox/mlx5/core/en/tc_tun_encap.c  |   4 +-
drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h  |   2 +
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c    |  23 +--
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c    |  19 ++-
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c  |  16 +-
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h  |   4 +
.../ethernet/mellanox/mlx5/core/eswitch_offloads.c |   7 +-
.../net/ethernet/mellanox/mlx5/core/lib/devcom.c   |  70 ++++++--
.../net/ethernet/mellanox/mlx5/core/lib/devcom.h   |   1 +
drivers/net/ethernet/mellanox/mlx5/core/main.c     |   2 +-
.../ethernet/mellanox/mlx5/core/steering/dr_cmd.c  |   4 +-
.../ethernet/mellanox/mlx5/core/steering/dr_ste.c  |   3 +-
.../net/ethernet/microchip/lan966x/lan966x_main.c  |  10 ++
drivers/net/ethernet/nvidia/forcedeth.c            |   1 +
drivers/net/phy/mscc/mscc_main.c                   |   1 +
drivers/net/team/team.c                            |   7 +-
drivers/net/usb/cdc_ncm.c                          |  24 ++-
drivers/platform/mellanox/mlxbf-pmc.c              |   5 +-
drivers/platform/x86/hp/hp-wmi.c                   |   2 +-
drivers/platform/x86/intel/ifs/load.c              |   2 +-
.../x86/intel/speed_select_if/isst_if_common.c     |  12 +-
drivers/power/supply/axp288_fuel_gauge.c           |   2 +-
drivers/power/supply/bq24190_charger.c             |   1 +
drivers/power/supply/bq25890_charger.c             |   5 +-
drivers/power/supply/bq27xxx_battery.c             | 175 ++++++++++---------
drivers/power/supply/bq27xxx_battery_i2c.c         |   3 +-
drivers/power/supply/mt6360_charger.c              |   4 +-
drivers/power/supply/power_supply_leds.c           |   5 +-
drivers/power/supply/sbs-charger.c                 |   2 +-
drivers/regulator/mt6359-regulator.c               |   7 +-
drivers/regulator/pca9450-regulator.c              |   4 +-
drivers/tee/optee/smc_abi.c                        |   4 +-
drivers/usb/core/usb.c                             |  76 +++++++++
drivers/usb/dwc3/core.h                            |   2 +
drivers/usb/dwc3/gadget.c                          |  10 +-
drivers/usb/misc/sisusbvga/sisusb.c                |  14 ++
drivers/video/fbdev/udlfb.c                        |  13 +-
drivers/watchdog/sp5100_tco.c                      |   4 +
drivers/xen/pvcalls-back.c                         |   9 +-
fs/btrfs/disk-io.c                                 |   9 +
fs/cifs/fs_context.c                               |   8 +
fs/ocfs2/namei.c                                   |   2 +
fs/ocfs2/xattr.c                                   |  30 +++-
include/drm/drm_managed.h                          |  18 +-
include/linux/arm_ffa.h                            |   1 +
include/linux/fs.h                                 |  42 ++---
include/linux/if_team.h                            |   1 +
include/linux/mlx5/mlx5_ifc.h                      |   4 +-
include/linux/msi.h                                |   9 +-
include/linux/power/bq27xxx_battery.h              |   4 +
include/linux/tpm.h                                |  14 +-
include/linux/usb.h                                |   5 +
include/net/bonding.h                              |   1 +
include/uapi/sound/skl-tplg-interface.h            |   3 +-
kernel/bpf/hashtab.c                               |   6 +-
kernel/bpf/verifier.c                              |   2 +-
kernel/irq/msi.c                                   |   4 +-
lib/debugobjects.c                                 |   2 +-
net/core/skbuff.c                                  |  56 +++---
net/ipv4/udplite.c                                 |   2 +
net/ipv6/exthdrs_core.c                            |   2 +
net/ipv6/udplite.c                                 |   2 +
net/sctp/transport.c                               |  11 +-
net/smc/af_smc.c                                   |   9 +-
net/smc/smc_core.c                                 |   1 +
net/sunrpc/sched.c                                 |   5 +-
sound/hda/hdac_device.c                            |   2 +-
sound/pci/hda/patch_ca0132.c                       |   1 +
sound/pci/hda/patch_realtek.c                      |   2 +
sound/soc/codecs/lpass-tx-macro.c                  |   5 +
sound/soc/codecs/rt5682-i2c.c                      |   4 +-
sound/soc/codecs/rt5682.c                          |   6 +
sound/soc/codecs/rt5682.h                          |   1 +
sound/soc/intel/avs/apl.c                          |   6 +-
sound/soc/intel/avs/messages.h                     |   2 +-
tools/testing/selftests/memfd/fuse_test.c          |   1 +
tools/testing/selftests/net/fib_tests.sh           |   2 +-
138 files changed, 1201 insertions(+), 511 deletions(-)
[PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Greg Kroah-Hartman 2 years, 8 months ago
This is the start of the stable review cycle for the 6.1.31 release.
There are 119 patches in this series, all will be posted as a response
to this one.  If anyone has any issues with these being applied, please
let me know.

Responses should be made by Tue, 30 May 2023 19:08:13 +0000.
Anything received after that time might be too late.

The whole patch series can be found in one patch at:
	https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.31-rc1.gz
or in the git tree and branch at:
	git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.1.y
and the diffstat can be found below.

thanks,

greg k-h

-------------
Pseudo-Shortlog of commits:

Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Linux 6.1.31-rc1

David Epping <david.epping@missinglinkelectronics.com>
    net: phy: mscc: add VSC8502 to MODULE_DEVICE_TABLE

Christophe JAILLET <christophe.jaillet@wanadoo.fr>
    3c589_cs: Fix an error handling path in tc589_probe()

Wen Gu <guwen@linux.alibaba.com>
    net/smc: Reset connection when trying to use SMCRv2 fails.

Sen Chu <sen.chu@mediatek.com>
    regulator: mt6359: add read check for PMIC MT6359

Sudeep Holla <sudeep.holla@arm.com>
    firmware: arm_ffa: Set reserved/MBZ fields to zero in the memory descriptors

Hugo Villeneuve <hvilleneuve@dimonoff.com>
    arm64: dts: imx8mn-var-som: fix PHY detection bug by adding deassert delay

Shay Drory <shayd@nvidia.com>
    net/mlx5: Devcom, serialize devcom registration

Shay Drory <shayd@nvidia.com>
    net/mlx5: Devcom, fix error flow in mlx5_devcom_register_device

Shay Drory <shayd@nvidia.com>
    net/mlx5: Collect command failures data only for known commands

Roi Dayan <roid@nvidia.com>
    net/mlx5: Fix error message when failing to allocate device memory

Yevgeny Kliteynik <kliteyn@nvidia.com>
    net/mlx5: DR, Check force-loopback RC QP capability independently from RoCE

Shay Drory <shayd@nvidia.com>
    net/mlx5: Handle pairing of E-switch via uplink un/load APIs

Erez Shitrit <erezsh@nvidia.com>
    net/mlx5: DR, Fix crc32 calculation to work on big-endian (BE) CPUs

Jakub Kicinski <kuba@kernel.org>
    net/mlx5e: do as little as possible in napi poll when budget is 0

Vlad Buslov <vladbu@nvidia.com>
    net/mlx5e: Use correct encap attribute during invalidation

Vlad Buslov <vladbu@nvidia.com>
    net/mlx5e: Fix deadlock in tc route query code

Rahul Rameshbabu <rrameshbabu@nvidia.com>
    net/mlx5e: Fix SQ wake logic in ptp napi_poll context

Dan Carpenter <dan.carpenter@linaro.org>
    platform/mellanox: mlxbf-pmc: fix sscanf() error checking

Christophe JAILLET <christophe.jaillet@wanadoo.fr>
    forcedeth: Fix an error handling path in nv_probe()

Xin Long <lucien.xin@gmail.com>
    sctp: fix an issue that plpmtu can never go to complete state

Dave Jiang <dave.jiang@intel.com>
    cxl: Wait Memory_Info_Valid before access memory related info

Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
    ASoC: Intel: avs: Access path components under lock

Cezary Rojewski <cezary.rojewski@intel.com>
    ASoC: Intel: avs: Fix declaration of enum avs_channel_config

Cezary Rojewski <cezary.rojewski@intel.com>
    ASoC: Intel: Skylake: Fix declaration of enum skl_ch_cfg

Vernon Lovejoy <vlovejoy@redhat.com>
    x86/show_trace_log_lvl: Ensure stack pointer is aligned, again

Dan Carpenter <dan.carpenter@linaro.org>
    xen/pvcalls-back: fix double frees with pvcalls_new_active_socket()

Maximilian Heyne <mheyne@amazon.de>
    x86/pci/xen: populate MSI sysfs entries

Alexander Stein <alexander.stein@ew.tq-group.com>
    ARM: dts: imx6qdl-mba6: Add missing pvcie-supply regulator

Dan Carpenter <dan.carpenter@linaro.org>
    coresight: Fix signedness bug in tmc_etr_buf_insert_barrier_packet()

Steve Wahl <steve.wahl@hpe.com>
    platform/x86: ISST: Remove 8 socket limit

Alexander Stein <alexander.stein@ew.tq-group.com>
    regulator: pca9450: Fix BUCK2 enable_mask

Hao Ge <gehao@kylinos.cn>
    fs: fix undefined behavior in bit shift for SB_NOUSER

Sudeep Holla <sudeep.holla@arm.com>
    firmware: arm_ffa: Fix FFA device names for logical partitions

Sudeep Holla <sudeep.holla@arm.com>
    firmware: arm_ffa: Check if ffa_driver remove is present before executing

Etienne Carriere <etienne.carriere@linaro.org>
    optee: fix uninited async notif value

Daisuke Nojiri <dnojiri@chromium.org>
    power: supply: sbs-charger: Fix INHIBITED bit for Status reg

Hans de Goede <hdegoede@redhat.com>
    power: supply: bq24190: Call power_supply_changed() after updating input current

Hans de Goede <hdegoede@redhat.com>
    power: supply: bq25890: Call power_supply_changed() after updating input current or voltage

Hans de Goede <hdegoede@redhat.com>
    power: supply: bq27xxx: After charger plug in/out wait 0.5s for things to stabilize

Hans de Goede <hdegoede@redhat.com>
    power: supply: bq27xxx: Ensure power_supply_changed() is called on current sign changes

Hans de Goede <hdegoede@redhat.com>
    power: supply: bq27xxx: Move bq27xxx_battery_update() down

Hans de Goede <hdegoede@redhat.com>
    power: supply: bq27xxx: Add cache parameter to bq27xxx_battery_current_and_status()

Hans de Goede <hdegoede@redhat.com>
    power: supply: bq27xxx: Fix poll_interval handling and races on remove

Hans de Goede <hdegoede@redhat.com>
    power: supply: bq27xxx: Fix I2C IRQ race on remove

Hans de Goede <hdegoede@redhat.com>
    power: supply: bq27xxx: Fix bq27xxx_battery_update() race condition

Kang Chen <void0red@gmail.com>
    power: supply: mt6360: add a check of devm_work_autocancel in mt6360_charger_probe

Hans de Goede <hdegoede@redhat.com>
    power: supply: leds: Fix blink to LED on transition

Steve French <stfrench@microsoft.com>
    cifs: mapchars mount option ignored

Gavrilov Ilia <Ilia.Gavrilov@infotecs.ru>
    ipv6: Fix out-of-bounds access in ipv6_find_tlv()

Horatiu Vultur <horatiu.vultur@microchip.com>
    lan966x: Fix unloading/loading of the driver

Anton Protopopov <aspsk@isovalent.com>
    bpf: fix a memory leak in the LRU and LRU_PERCPU hash maps

Will Deacon <will@kernel.org>
    bpf: Fix mask generation for 32-bit narrow loads of 64-bit fields

Sunil Goutham <sgoutham@marvell.com>
    octeontx2-pf: Fix TSOv6 offload

Po-Hsu Lin <po-hsu.lin@canonical.com>
    selftests: fib_tests: mute cleanup error message

Matthew Auld <matthew.auld@intel.com>
    drm: fix drmm_mutex_init()

Pratyush Yadav <ptyadav@amazon.de>
    net: fix skb leak in __skb_tstamp_tx()

Ravulapati Vishnu Vardhan Rao <quic_visr@quicinc.com>
    ASoC: lpass: Fix for KASAN use_after_free out of bounds

Alan Stern <stern@rowland.harvard.edu>
    media: radio-shark: Add endpoint checks

Alan Stern <stern@rowland.harvard.edu>
    USB: sisusbvga: Add endpoint checks

Alan Stern <stern@rowland.harvard.edu>
    USB: core: Add routines for endpoint checks in old drivers

Kuniyuki Iwashima <kuniyu@amazon.com>
    udplite: Fix NULL pointer dereference in __sk_mem_raise_allocated().

Taehee Yoo <ap420073@gmail.com>
    net: fix stack overflow when LRO is disabled for virtual interfaces

Alan Stern <stern@rowland.harvard.edu>
    fbdev: udlfb: Fix endpoint check

Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
    debugobjects: Don't wake up kswapd from fill_pool()

Jiaxun Yang <jiaxun.yang@flygoat.com>
    irqchip/mips-gic: Use raw spinlock for gic_lock

Jiaxun Yang <jiaxun.yang@flygoat.com>
    irqchip/mips-gic: Don't touch vl_map if a local interrupt is not routable

Zhang Rui <rui.zhang@intel.com>
    x86/topology: Fix erroneous smp_num_siblings on Intel Hybrid platforms

Kan Liang <kan.liang@linux.intel.com>
    perf/x86/uncore: Correct the number of CHAs on SPR

Jack Xiao <Jack.Xiao@amd.com>
    drm/amd/amdgpu: limit one queue per gang

Hardik Garg <hargar@linux.microsoft.com>
    selftests/memfd: Fix unknown type name build failure

Carlos Llamas <cmllamas@google.com>
    binder: fix UAF of alloc->vma in race with munmap()

Carlos Llamas <cmllamas@google.com>
    binder: fix UAF caused by faulty buffer cleanup

Carlos Llamas <cmllamas@google.com>
    binder: add lockless binder_alloc_(set|get)_vma()

Carlos Llamas <cmllamas@google.com>
    Revert "android: binder: stop saving a pointer to the VMA"

Carlos Llamas <cmllamas@google.com>
    Revert "binder_alloc: add missing mmap_lock calls when using the VMA"

Jonatas Esteves <jntesteves@gmail.com>
    drm/amd/pm: Fix output of pp_od_clk_voltage

Evan Quan <evan.quan@amd.com>
    drm/amd/pm: add missing NotifyPowerSource message mapping for SMU13.0.7

Alex Deucher <alexander.deucher@amd.com>
    drm/radeon: reintroduce radeon_dp_work_func content

Jocelyn Falempe <jfalempe@redhat.com>
    drm/mgag200: Fix gamma lut not initialized.

Frank Li <Frank.Li@nxp.com>
    dt-binding: cdns,usb3: Fix cdns,on-chip-buff-size type

Josef Bacik <josef@toxicpanda.com>
    btrfs: use nofs when cleaning up aborted transactions

Zev Weiss <zev@bewilderbeest.net>
    gpio: mockup: Fix mode of debugfs files

Helge Deller <deller@gmx.de>
    parisc: Handle kprobes breakpoints only in kernel context

Helge Deller <deller@gmx.de>
    parisc: Enable LOCKDEP support

Helge Deller <deller@gmx.de>
    parisc: Allow to reboot machine after system halt

Helge Deller <deller@gmx.de>
    parisc: Fix flush_dcache_page() for usage from irq context

Helge Deller <deller@gmx.de>
    parisc: Handle kgdb breakpoints only in kernel context

Helge Deller <deller@gmx.de>
    parisc: Use num_present_cpus() in alternative patching code

Max Filippov <jcmvbkbc@gmail.com>
    xtensa: add __bswap{si,di}2 helpers

Max Filippov <jcmvbkbc@gmail.com>
    xtensa: fix signal delivery to FDPIC process

Finn Thain <fthain@linux-m68k.org>
    m68k: Move signal frame following exception on 68020/030

Tudor Ambarus <tudor.ambarus@linaro.org>
    net: cdc_ncm: Deal with too low values of dwNtbOutMaxSize

Matthias Kaehlcke <mka@chromium.org>
    ASoC: rt5682: Disable jack detection interrupt during suspend

Hans de Goede <hdegoede@redhat.com>
    power: supply: bq25890: Fix external_power_changed race

Hans de Goede <hdegoede@redhat.com>
    power: supply: axp288_fuel_gauge: Fix external_power_changed race

Christian Loehle <CLoehle@hyperstone.com>
    mmc: block: ensure error propagation for non-blk

Haibo Chen <haibo.chen@nxp.com>
    mmc: sdhci-esdhc-imx: make "no-mmc-hs400" works

Trond Myklebust <trond.myklebust@hammerspace.com>
    SUNRPC: Don't change task->tk_status after the call to rpc_exit_task

Bin Li <bin.li@canonical.com>
    ALSA: hda/realtek: Enable headset onLenovo M70/M90

Takashi Iwai <tiwai@suse.de>
    ALSA: hda: Fix unhandled register update during auto-suspend period

Adam Stylinski <kungfujesus06@gmail.com>
    ALSA: hda/ca0132: add quirk for EVGA X299 DARK

David Arcari <darcari@redhat.com>
    platform/x86/intel/ifs: Annotate work queue on stack so object debug does not complain

Dave Hansen <dave.hansen@linux.intel.com>
    x86/mm: Avoid incomplete Global INVLPG flushes

Peter Collingbourne <pcc@google.com>
    arm64: Also reset KASAN tag if page is not PG_mte_tagged

Roberto Sassu <roberto.sassu@huawei.com>
    ocfs2: Switch to security_inode_init_security()

Robin Chen <robin.chen@amd.com>
    drm/amd/display: hpd rx irq not working with eDP interface

Steffen Bätz <steffen@innosonix.de>
    net: dsa: mv88e6xxx: Add RGMII delay to 88E6320

Hans de Goede <hdegoede@redhat.com>
    platform/x86: hp-wmi: Fix cast to smaller integer type warning

Kees Cook <keescook@chromium.org>
    skbuff: Proactively round up to kmalloc bucket size

Jack Xiao <Jack.Xiao@amd.com>
    drm/amdgpu/mes11: enable reg active poll

Jack Xiao <Jack.Xiao@amd.com>
    drm/amd/amdgpu: update mes11 api def

Gregory Oakes <gregory.oakes@amd.com>
    watchdog: sp5100_tco: Immediately trigger upon starting.

Jarkko Sakkinen <jarkko@kernel.org>
    tpm: Prevent hwrng from activating during resume

Jarkko Sakkinen <jarkko@kernel.org>
    tpm: Re-enable TPM chip boostrapping non-tpm_tis TPM drivers

Lino Sanfilippo <l.sanfilippo@kunbus.com>
    tpm, tpm_tis: startup chip before testing for interrupts

Jarkko Sakkinen <jarkko@kernel.org>
    tpm_tis: Use tpm_chip_{start,stop} decoration inside tpm_tis_resume

Lino Sanfilippo <l.sanfilippo@kunbus.com>
    tpm, tpm_tis: Only handle supported interrupts

Lino Sanfilippo <l.sanfilippo@kunbus.com>
    tpm, tpm_tis: Avoid cache incoherency in test for interrupts

Linyu Yuan <quic_linyyuan@quicinc.com>
    usb: dwc3: fix gadget mode suspend interrupt handler issue


-------------

Diffstat:

 .../devicetree/bindings/usb/cdns,usb3.yaml         |   2 +-
 Makefile                                           |   4 +-
 arch/arm/boot/dts/imx6qdl-mba6.dtsi                |   1 +
 arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi  |   8 +-
 arch/arm64/mm/copypage.c                           |   5 +-
 arch/m68k/kernel/signal.c                          |  14 +-
 arch/parisc/Kconfig                                |   4 +
 arch/parisc/include/asm/cacheflush.h               |   4 +
 arch/parisc/kernel/alternative.c                   |   2 +-
 arch/parisc/kernel/cache.c                         |   5 +-
 arch/parisc/kernel/process.c                       |  11 +-
 arch/parisc/kernel/traps.c                         |   8 +-
 arch/x86/events/intel/uncore_snbep.c               |  11 ++
 arch/x86/kernel/cpu/topology.c                     |   5 +-
 arch/x86/kernel/dumpstack.c                        |   7 +-
 arch/x86/mm/init.c                                 |  25 +++
 arch/x86/pci/xen.c                                 |   8 +-
 arch/xtensa/kernel/signal.c                        |  35 +++-
 arch/xtensa/kernel/xtensa_ksyms.c                  |   4 +
 arch/xtensa/lib/Makefile                           |   2 +-
 arch/xtensa/lib/bswapdi2.S                         |  21 +++
 arch/xtensa/lib/bswapsi2.S                         |  16 ++
 drivers/android/binder.c                           |  28 ++-
 drivers/android/binder_alloc.c                     |  64 ++++---
 drivers/android/binder_alloc.h                     |   4 +-
 drivers/android/binder_alloc_selftest.c            |   2 +-
 drivers/char/tpm/tpm-chip.c                        |  52 ++++--
 drivers/char/tpm/tpm-interface.c                   |  10 ++
 drivers/char/tpm/tpm.h                             |   1 +
 drivers/char/tpm/tpm_tis.c                         |   2 +-
 drivers/char/tpm/tpm_tis_core.c                    | 187 ++++++++++++---------
 drivers/char/tpm/tpm_tis_core.h                    |   3 +-
 drivers/cxl/core/pci.c                             |  85 +++++++++-
 drivers/cxl/cxlpci.h                               |   2 +
 drivers/firmware/arm_ffa/bus.c                     |  19 ++-
 drivers/firmware/arm_ffa/driver.c                  |   6 +
 drivers/gpio/gpio-mockup.c                         |   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c            |   9 +-
 drivers/gpu/drm/amd/amdgpu/mes_v11_0.c             |   1 +
 drivers/gpu/drm/amd/display/dc/core/dc_link.c      |   9 +-
 drivers/gpu/drm/amd/display/dc/dc_types.h          |   6 +
 drivers/gpu/drm/amd/include/mes_v11_api_def.h      |   6 +-
 drivers/gpu/drm/amd/pm/amdgpu_pm.c                 |  12 +-
 .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c   |   1 +
 drivers/gpu/drm/drm_managed.c                      |  22 +--
 drivers/gpu/drm/mgag200/mgag200_mode.c             |   5 +
 drivers/gpu/drm/radeon/radeon_irq_kms.c            |  10 ++
 drivers/hwtracing/coresight/coresight-tmc-etr.c    |   2 +-
 drivers/irqchip/irq-mips-gic.c                     |  32 ++--
 drivers/media/radio/radio-shark.c                  |  10 ++
 drivers/media/radio/radio-shark2.c                 |  10 ++
 drivers/mmc/core/block.c                           |   5 +
 drivers/mmc/host/sdhci-esdhc-imx.c                 |  18 +-
 drivers/net/bonding/bond_main.c                    |   8 +-
 drivers/net/dsa/mv88e6xxx/chip.c                   |   2 +
 drivers/net/dsa/mv88e6xxx/port.c                   |   9 +
 drivers/net/dsa/mv88e6xxx/port.h                   |   2 +
 drivers/net/ethernet/3com/3c589_cs.c               |  11 +-
 .../net/ethernet/marvell/octeontx2/nic/otx2_txrx.c |   4 +-
 drivers/net/ethernet/mellanox/mlx5/core/cmd.c      |   3 +-
 drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c   |   2 +
 .../ethernet/mellanox/mlx5/core/en/tc_tun_encap.c  |   4 +-
 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h  |   2 +
 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c    |  23 +--
 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c    |  19 ++-
 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c  |  16 +-
 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h  |   4 +
 .../ethernet/mellanox/mlx5/core/eswitch_offloads.c |   7 +-
 .../net/ethernet/mellanox/mlx5/core/lib/devcom.c   |  70 ++++++--
 .../net/ethernet/mellanox/mlx5/core/lib/devcom.h   |   1 +
 drivers/net/ethernet/mellanox/mlx5/core/main.c     |   2 +-
 .../ethernet/mellanox/mlx5/core/steering/dr_cmd.c  |   4 +-
 .../ethernet/mellanox/mlx5/core/steering/dr_ste.c  |   3 +-
 .../net/ethernet/microchip/lan966x/lan966x_main.c  |  10 ++
 drivers/net/ethernet/nvidia/forcedeth.c            |   1 +
 drivers/net/phy/mscc/mscc_main.c                   |   1 +
 drivers/net/team/team.c                            |   7 +-
 drivers/net/usb/cdc_ncm.c                          |  24 ++-
 drivers/platform/mellanox/mlxbf-pmc.c              |   5 +-
 drivers/platform/x86/hp/hp-wmi.c                   |   2 +-
 drivers/platform/x86/intel/ifs/load.c              |   2 +-
 .../x86/intel/speed_select_if/isst_if_common.c     |  12 +-
 drivers/power/supply/axp288_fuel_gauge.c           |   2 +-
 drivers/power/supply/bq24190_charger.c             |   1 +
 drivers/power/supply/bq25890_charger.c             |   5 +-
 drivers/power/supply/bq27xxx_battery.c             | 175 ++++++++++---------
 drivers/power/supply/bq27xxx_battery_i2c.c         |   3 +-
 drivers/power/supply/mt6360_charger.c              |   4 +-
 drivers/power/supply/power_supply_leds.c           |   5 +-
 drivers/power/supply/sbs-charger.c                 |   2 +-
 drivers/regulator/mt6359-regulator.c               |   7 +-
 drivers/regulator/pca9450-regulator.c              |   4 +-
 drivers/tee/optee/smc_abi.c                        |   4 +-
 drivers/usb/core/usb.c                             |  76 +++++++++
 drivers/usb/dwc3/core.h                            |   2 +
 drivers/usb/dwc3/gadget.c                          |  10 +-
 drivers/usb/misc/sisusbvga/sisusb.c                |  14 ++
 drivers/video/fbdev/udlfb.c                        |  13 +-
 drivers/watchdog/sp5100_tco.c                      |   4 +
 drivers/xen/pvcalls-back.c                         |   9 +-
 fs/btrfs/disk-io.c                                 |   9 +
 fs/cifs/fs_context.c                               |   8 +
 fs/ocfs2/namei.c                                   |   2 +
 fs/ocfs2/xattr.c                                   |  30 +++-
 include/drm/drm_managed.h                          |  18 +-
 include/linux/arm_ffa.h                            |   1 +
 include/linux/fs.h                                 |  42 ++---
 include/linux/if_team.h                            |   1 +
 include/linux/mlx5/mlx5_ifc.h                      |   4 +-
 include/linux/msi.h                                |   9 +-
 include/linux/power/bq27xxx_battery.h              |   4 +
 include/linux/tpm.h                                |  14 +-
 include/linux/usb.h                                |   5 +
 include/net/bonding.h                              |   1 +
 include/uapi/sound/skl-tplg-interface.h            |   3 +-
 kernel/bpf/hashtab.c                               |   6 +-
 kernel/bpf/verifier.c                              |   2 +-
 kernel/irq/msi.c                                   |   4 +-
 lib/debugobjects.c                                 |   2 +-
 net/core/skbuff.c                                  |  56 +++---
 net/ipv4/udplite.c                                 |   2 +
 net/ipv6/exthdrs_core.c                            |   2 +
 net/ipv6/udplite.c                                 |   2 +
 net/sctp/transport.c                               |  11 +-
 net/smc/af_smc.c                                   |   9 +-
 net/smc/smc_core.c                                 |   1 +
 net/sunrpc/sched.c                                 |   5 +-
 sound/hda/hdac_device.c                            |   2 +-
 sound/pci/hda/patch_ca0132.c                       |   1 +
 sound/pci/hda/patch_realtek.c                      |   2 +
 sound/soc/codecs/lpass-tx-macro.c                  |   5 +
 sound/soc/codecs/rt5682-i2c.c                      |   4 +-
 sound/soc/codecs/rt5682.c                          |   6 +
 sound/soc/codecs/rt5682.h                          |   1 +
 sound/soc/intel/avs/apl.c                          |   6 +-
 sound/soc/intel/avs/messages.h                     |   2 +-
 tools/testing/selftests/memfd/fuse_test.c          |   1 +
 tools/testing/selftests/net/fib_tests.sh           |   2 +-
 138 files changed, 1201 insertions(+), 511 deletions(-)


Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Florian Fainelli 2 years, 8 months ago
On 5/28/23 12:10, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.31 release.
> There are 119 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
> 
> Responses should be made by Tue, 30 May 2023 19:08:13 +0000.
> Anything received after that time might be too late.
> 
> The whole patch series can be found in one patch at:
> 	https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.31-rc1.gz
> or in the git tree and branch at:
> 	git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.1.y
> and the diffstat can be found below.
> 
> thanks,
> 
> greg k-h

On ARCH_BRCMSTB using 32-bit and 64-bit ARM kernels, build tested on 
BMIPS_GENERIC:

Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
-- 
Florian
Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Allen Pais 2 years, 8 months ago
> This is the start of the stable review cycle for the 6.1.31 release.
> There are 119 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
>
> Responses should be made by Tue, 30 May 2023 19:08:13 +0000.
> Anything received after that time might be too late.
>
> The whole patch series can be found in one patch at:
>         https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.31-rc1.gz
> or in the git tree and branch at:
>         git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.1.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h
>

Compiled and booted on my x86_64 and ARM64 test systems. No errors or
regressions.

Tested-by: Allen Pais <apais@linux.microsoft.com>

Thanks.
RE: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Chris Paterson 2 years, 8 months ago
Hello Greg,

> From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Sent: Sunday, May 28, 2023 8:10 PM
> 
> This is the start of the stable review cycle for the 6.1.31 release.
> There are 119 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
> 
> Responses should be made by Tue, 30 May 2023 19:08:13 +0000.
> Anything received after that time might be too late.

CIP configurations built and booted with Linux 6.1.31-rc1 (8482df0ff7e7):
https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/pipelines/881425030
https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/commits/linux-6.1.y

Tested-by: Chris Paterson (CIP) <chris.paterson2@renesas.com>

Kind regards, Chris
Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by ogasawara takeshi 2 years, 8 months ago
Hi Greg

On Mon, May 29, 2023 at 4:34 AM Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
>
> This is the start of the stable review cycle for the 6.1.31 release.
> There are 119 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
>
> Responses should be made by Tue, 30 May 2023 19:08:13 +0000.
> Anything received after that time might be too late.
>
> The whole patch series can be found in one patch at:
>         https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.31-rc1.gz
> or in the git tree and branch at:
>         git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.1.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h

6.1.31-rc1 tested.

Build successfully completed.
Boot successfully completed.
No dmesg regressions.
Video output normal.
Sound output normal.

Lenovo ThinkPad X1 Carbon Gen10(Intel i7-1260P(x86_64), arch linux)

Thanks

Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com>
Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Bagas Sanjaya 2 years, 8 months ago
On Sun, May 28, 2023 at 08:10:00PM +0100, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.31 release.
> There are 119 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
> 

Successfully compiled and installed bindeb-pkgs on my computer (Acer
Aspire E15, Intel Core i3 Haswell). No noticeable regressions.

Tested-by: Bagas Sanjaya <bagasdotme@gmail.com>

-- 
An old man doll... just what I always wanted! - Clara
Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Jon Hunter 2 years, 8 months ago
On Sun, 28 May 2023 20:10:00 +0100, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.31 release.
> There are 119 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
> 
> Responses should be made by Tue, 30 May 2023 19:08:13 +0000.
> Anything received after that time might be too late.
> 
> The whole patch series can be found in one patch at:
> 	https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.31-rc1.gz
> or in the git tree and branch at:
> 	git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.1.y
> and the diffstat can be found below.
> 
> thanks,
> 
> greg k-h

All tests passing for Tegra ...

Test results for stable-v6.1:
    11 builds:	11 pass, 0 fail
    28 boots:	28 pass, 0 fail
    130 tests:	130 pass, 0 fail

Linux version:	6.1.31-rc1-g8482df0ff7e7
Boards tested:	tegra124-jetson-tk1, tegra186-p2771-0000,
                tegra194-p2972-0000, tegra194-p3509-0000+p3668-0000,
                tegra20-ventana, tegra210-p2371-2180,
                tegra210-p3450-0000, tegra30-cardhu-a04

Tested-by: Jon Hunter <jonathanh@nvidia.com>

Jon
Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Ron Economos 2 years, 8 months ago
On 5/28/23 12:10 PM, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.31 release.
> There are 119 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
>
> Responses should be made by Tue, 30 May 2023 19:08:13 +0000.
> Anything received after that time might be too late.
>
> The whole patch series can be found in one patch at:
> 	https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.31-rc1.gz
> or in the git tree and branch at:
> 	git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.1.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h

Built and booted successfully on RISC-V RV64 (HiFive Unmatched).

Tested-by: Ron Economos <re@w6rz.net>
Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Guenter Roeck 2 years, 8 months ago
On Sun, May 28, 2023 at 08:10:00PM +0100, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.31 release.
> There are 119 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
> 
> Responses should be made by Tue, 30 May 2023 19:08:13 +0000.
> Anything received after that time might be too late.
> 

Build results:
	total: 155 pass: 155 fail: 0
Qemu test results:
	total: 519 pass: 519 fail: 0

Tested-by: Guenter Roeck <linux@roeck-us.net>

Guenter
Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Naresh Kamboju 2 years, 8 months ago
On Mon, 29 May 2023 at 01:04, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
>
> This is the start of the stable review cycle for the 6.1.31 release.
> There are 119 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
>
> Responses should be made by Tue, 30 May 2023 19:08:13 +0000.
> Anything received after that time might be too late.
>
> The whole patch series can be found in one patch at:
>         https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.31-rc1.gz
> or in the git tree and branch at:
>         git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.1.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h


Results from Linaro’s test farm.
No regressions on arm64, arm, x86_64, and i386.

Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>

## Build
* kernel: 6.1.31-rc1
* git: https://gitlab.com/Linaro/lkft/mirrors/stable/linux-stable-rc
* git branch: linux-6.1.y
* git commit: 8482df0ff7e727d4244b8bf8537cce39a474eefc
* git describe: v6.1.29-413-g8482df0ff7e7
* test details:
https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y/build/v6.1.29-413-g8482df0ff7e7

## Test Regressions (compared to v6.1.29-293-ge00a3d96f756)

## Metric Regressions (compared to v6.1.29-293-ge00a3d96f756)

## Test Fixes (compared to v6.1.29-293-ge00a3d96f756)

## Metric Fixes (compared to v6.1.29-293-ge00a3d96f756)

## Test result summary
total: 170063, pass: 146595, fail: 3956, skip: 19237, xfail: 275

## Build Summary
* arc: 5 total, 5 passed, 0 failed
* arm: 151 total, 150 passed, 1 failed
* arm64: 54 total, 53 passed, 1 failed
* i386: 41 total, 38 passed, 3 failed
* mips: 30 total, 28 passed, 2 failed
* parisc: 8 total, 8 passed, 0 failed
* powerpc: 38 total, 36 passed, 2 failed
* riscv: 16 total, 15 passed, 1 failed
* s390: 16 total, 16 passed, 0 failed
* sh: 14 total, 12 passed, 2 failed
* sparc: 8 total, 8 passed, 0 failed
* x86_64: 46 total, 46 passed, 0 failed

## Test suites summary
* boot
* fwts
* igt-gpu-tools
* kselftest-android
* kselftest-arm64
* kselftest-breakpoints
* kselftest-capabilities
* kselftest-cgroup
* kselftest-clone3
* kselftest-core
* kselftest-cpu-hotplug
* kselftest-cpufreq
* kselftest-drivers-dma-buf
* kselftest-efivarfs
* kselftest-exec
* kselftest-filesystems
* kselftest-filesystems-binderfs
* kselftest-firmware
* kselftest-fpu
* kselftest-ftrace
* kselftest-futex
* kselftest-gpio
* kselftest-intel_pstate
* kselftest-ipc
* kselftest-ir
* kselftest-kcmp
* kselftest-kexec
* kselftest-kvm
* kselftest-lib
* kselftest-livepatch
* kselftest-membarrier
* kselftest-memfd
* kselftest-memory-hotplug
* kselftest-mincore
* kselftest-mount
* kselftest-mqueue
* kselftest-net
* kselftest-net-forwarding
* kselftest-net-mptcp
* kselftest-netfilter
* kselftest-nsfs
* kselftest-openat2
* kselftest-pid_namespace
* kselftest-pidfd
* kselftest-proc
* kselftest-pstore
* kselftest-ptrace
* kselftest-rseq
* kselftest-rtc
* kselftest-seccomp
* kselftest-sigaltstack
* kselftest-size
* kselftest-splice
* kselftest-static_keys
* kselftest-sync
* kselftest-sysctl
* kselftest-tc-testing
* kselftest-timens
* kselftest-timers
* kselftest-tmpfs
* kselftest-tpm2
* kselftest-user
* kselftest-user_events
* kselftest-vDSO
* kselftest-watchdog
* kselftest-x86
* kselftest-zram
* kunit
* kvm-unit-tests
* libgpiod
* libhugetlbfs
* log-parser-boot
* log-parser-test
* ltp-cap_bounds
* ltp-commands
* ltp-containers
* ltp-controllers
* ltp-cpuhotplug
* ltp-crypto
* ltp-cve
* ltp-dio
* ltp-fcntl-locktests
* ltp-filecaps
* ltp-fs
* ltp-fs_bind
* ltp-fs_perms_simple
* ltp-fsx
* ltp-hugetlb
* ltp-io
* ltp-ipc
* ltp-math
* ltp-mm
* ltp-nptl
* ltp-pty
* ltp-sched
* ltp-securebits
* ltp-smoke
* ltp-syscalls
* ltp-tracing
* network-basic-tests
* perf
* rcutorture
* v4l2-compliance
* vdso

--
Linaro LKFT
https://lkft.linaro.org
Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Markus Reichelt 2 years, 8 months ago
* Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote:

> This is the start of the stable review cycle for the 6.1.31 release.
> There are 119 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.
> 
> Responses should be made by Tue, 30 May 2023 19:08:13 +0000.
> Anything received after that time might be too late.

Hi Greg

6.1.31-rc1

compiles, boots and runs here on x86_64
(AMD Ryzen 5 PRO 4650G, Slackware64-15.0)

Tested-by: Markus Reichelt <lkt+2023@mareichelt.com>
Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Conor Dooley 2 years, 8 months ago
On Sun, May 28, 2023 at 08:10:00PM +0100, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.31 release.
> There are 119 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.

Tested-by: Conor Dooley <conor.dooley@microchip.com>

Thanks,
Conor
Wrong/strange TPM patches was Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Pavel Machek 2 years, 8 months ago
Hi!

> This is the start of the stable review cycle for the 6.1.31 release.
> There are 119 patches in this series, all will be posted as a response
> to this one.  If anyone has any issues with these being applied, please
> let me know.

> Lino Sanfilippo <l.sanfilippo@kunbus.com>
>     tpm, tpm_tis: Avoid cache incoherency in test for interrupts

Description on this one is wrong/confused. There's no cache problem in
the code. Plus test_bit and friend already use bit number, so

-       bool itpm = priv->flags & TPM_TIS_ITPM_WORKAROUND;
+       bool itpm = test_bit(TPM_TIS_ITPM_WORKAROUND, &priv->flags);

@@ -87,6 +87,7 @@ enum tpm_tis_flags {
        TPM_TIS_ITPM_WORKAROUND         = BIT(0),
        TPM_TIS_INVALID_STATUS          = BIT(1),
        TPM_TIS_DEFAULT_CANCELLATION    = BIT(2),
+       TPM_TIS_IRQ_TESTED              = BIT(3),
 };

this enum needs to go from BIT() to raw numbers.

You can just do return tpm_pm_resume();

> Jarkko Sakkinen <jarkko@kernel.org>
>     tpm: Prevent hwrng from activating during resume

@@ -429,6 +431,14 @@ int tpm_pm_resume(struct device *dev)
        if (chip == NULL)
                return -ENODEV;
 
+       chip->flags &= ~TPM_CHIP_FLAG_SUSPENDED;
+
+       /*
+        * Guarantee that SUSPENDED is written last, so that hwrng does not
+        * activate before the chip has been fully resumed.
+        */
+       wmb();
+
        return 0;
 }
 EXPORT_SYMBOL_GPL(tpm_pm_resume);

This code is confused. First, either you don't need memory barriers
here, or you need real locking. Second, if you want to guarantee flags
are written last, you need to put the barrier before the
assignment. (But ... get rid of that confusion, first).

Best regards,
								Pavel
-- 
DENX Software Engineering GmbH,        Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Re: Wrong/strange TPM patches was Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Greg Kroah-Hartman 2 years, 8 months ago
On Tue, May 30, 2023 at 12:46:49PM +0200, Pavel Machek wrote:
> Hi!
> 
> > This is the start of the stable review cycle for the 6.1.31 release.
> > There are 119 patches in this series, all will be posted as a response
> > to this one.  If anyone has any issues with these being applied, please
> > let me know.
> 
> > Lino Sanfilippo <l.sanfilippo@kunbus.com>
> >     tpm, tpm_tis: Avoid cache incoherency in test for interrupts
> 
> Description on this one is wrong/confused. There's no cache problem in
> the code. Plus test_bit and friend already use bit number, so
> 
> -       bool itpm = priv->flags & TPM_TIS_ITPM_WORKAROUND;
> +       bool itpm = test_bit(TPM_TIS_ITPM_WORKAROUND, &priv->flags);
> 
> @@ -87,6 +87,7 @@ enum tpm_tis_flags {
>         TPM_TIS_ITPM_WORKAROUND         = BIT(0),
>         TPM_TIS_INVALID_STATUS          = BIT(1),
>         TPM_TIS_DEFAULT_CANCELLATION    = BIT(2),
> +       TPM_TIS_IRQ_TESTED              = BIT(3),
>  };
> 
> this enum needs to go from BIT() to raw numbers.
> 
> You can just do return tpm_pm_resume();
> 
> > Jarkko Sakkinen <jarkko@kernel.org>
> >     tpm: Prevent hwrng from activating during resume
> 
> @@ -429,6 +431,14 @@ int tpm_pm_resume(struct device *dev)
>         if (chip == NULL)
>                 return -ENODEV;
>  
> +       chip->flags &= ~TPM_CHIP_FLAG_SUSPENDED;
> +
> +       /*
> +        * Guarantee that SUSPENDED is written last, so that hwrng does not
> +        * activate before the chip has been fully resumed.
> +        */
> +       wmb();
> +
>         return 0;
>  }
>  EXPORT_SYMBOL_GPL(tpm_pm_resume);
> 
> This code is confused. First, either you don't need memory barriers
> here, or you need real locking. Second, if you want to guarantee flags
> are written last, you need to put the barrier before the
> assignment. (But ... get rid of that confusion, first).

Care to submit patches to resolve this?  It's this way in Linus's tree
now from what I can tell, and these changes were needed for another
stable-marked change, so I'll leave them in for now.

thanks,

greg k-h
Re: Wrong/strange TPM patches was Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Lino Sanfilippo 2 years, 8 months ago
Hi,


On 30.05.23 15:02, Greg Kroah-Hartman wrote:
> ATTENTION: This e-mail is from an external sender. Please check attachments and links before opening e.g. with mouseover.
> 
> 
> On Tue, May 30, 2023 at 12:46:49PM +0200, Pavel Machek wrote:
>> Hi!
>>
>>> This is the start of the stable review cycle for the 6.1.31 release.
>>> There are 119 patches in this series, all will be posted as a response
>>> to this one.  If anyone has any issues with these being applied, please
>>> let me know.
>>
>>> Lino Sanfilippo <l.sanfilippo@kunbus.com>
>>>     tpm, tpm_tis: Avoid cache incoherency in test for interrupts
>>
>> Description on this one is wrong/confused. There's no cache problem in
>> the code. Plus test_bit and friend already use bit number, so
>>
>> -       bool itpm = priv->flags & TPM_TIS_ITPM_WORKAROUND;
>> +       bool itpm = test_bit(TPM_TIS_ITPM_WORKAROUND, &priv->flags);
>>
>> @@ -87,6 +87,7 @@ enum tpm_tis_flags {
>>         TPM_TIS_ITPM_WORKAROUND         = BIT(0),
>>         TPM_TIS_INVALID_STATUS          = BIT(1),
>>         TPM_TIS_DEFAULT_CANCELLATION    = BIT(2),
>> +       TPM_TIS_IRQ_TESTED              = BIT(3),
>>  };
>>
>> this enum needs to go from BIT() to raw numbers.
>>
>> You can just do return tpm_pm_resume();
>>
>>> Jarkko Sakkinen <jarkko@kernel.org>
>>>     tpm: Prevent hwrng from activating during resume
>>
>> @@ -429,6 +431,14 @@ int tpm_pm_resume(struct device *dev)
>>         if (chip == NULL)
>>                 return -ENODEV;
>>
>> +       chip->flags &= ~TPM_CHIP_FLAG_SUSPENDED;
>> +
>> +       /*
>> +        * Guarantee that SUSPENDED is written last, so that hwrng does not
>> +        * activate before the chip has been fully resumed.
>> +        */
>> +       wmb();
>> +
>>         return 0;
>>  }
>>  EXPORT_SYMBOL_GPL(tpm_pm_resume);
>>
>> This code is confused. First, either you don't need memory barriers
>> here, or you need real locking. Second, if you want to guarantee flags
>> are written last, you need to put the barrier before the
>> assignment. (But ... get rid of that confusion, first).
> 
> Care to submit patches to resolve this?  It's this way in Linus's tree
> now from what I can tell, and these changes were needed for another
> stable-marked change, so I'll leave them in for now.
> 

First, thanks for the review Pavel and for spotting this.
I will send a patch to fix the enums.

Regards,
Lino
Re: Wrong/strange TPM patches was Re: [PATCH 6.1 000/119] 6.1.31-rc1 review
Posted by Linus Torvalds 2 years, 8 months ago
On Tue, May 30, 2023 at 6:46 AM Pavel Machek <pavel@denx.de> wrote:
>
> > Lino Sanfilippo <l.sanfilippo@kunbus.com>
> >     tpm, tpm_tis: Avoid cache incoherency in test for interrupts
>
> Description on this one is wrong/confused.

Yes. Commit 858e8b792d06 ("tpm, tpm_tis: Avoid cache incoherency in
test for interrupts") in mainline.

The change to test_bit/set_bit may be a good one (and adding the
IRQ_TESTED case to the bit flags), but that commit wasn't it.

As you say, the enum should now enumerate bits, not bitmasks.

             Linus