Skip to contentSkip to conversation

Linux 6.1.57

DISCUSSION Greg Kroah-Hartman 2 participants 3 messages Oct 10, 2023 – Oct 11, 2023 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.1.57 kernel.

All users of the 6.1 kernel series must upgrade.

The updated 6.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.1.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

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

 Documentation/arm64/silicon-errata.rst                  |    2 
 Documentation/networking/ip-sysctl.rst                  |    8 
 Makefile                                                |    2 
 arch/arm64/Kconfig                                      |   13 
 arch/arm64/include/asm/cpufeature.h                     |    8 
 arch/arm64/include/asm/cputype.h                        |    2 
 arch/arm64/kernel/cpu_errata.c                          |    8 
 arch/arm64/kernel/cpufeature.c                          |    3 
 arch/arm64/kernel/entry.S                               |    4 
 arch/arm64/tools/cpucaps                                |    1 
 arch/arm64/tools/sysreg                                 |    6 
 arch/parisc/include/asm/ldcw.h                          |   36 -
 arch/parisc/include/asm/spinlock_types.h                |    5 
 arch/parisc/kernel/smp.c                                |    4 
 arch/x86/events/amd/core.c                              |   24 
 arch/x86/kernel/sev-shared.c                            |   69 ++
 block/blk-sysfs.c                                       |    3 
 drivers/ata/libata-core.c                               |   16 
 drivers/ata/libata-scsi.c                               |   43 -
 drivers/base/regmap/regcache-rbtree.c                   |    3 
 drivers/block/rbd.c                                     |  412 ++++++++--------
 drivers/firewire/sbp2.c                                 |    9 
 drivers/gpio/gpio-aspeed.c                              |    2 
 drivers/gpio/gpio-pxa.c                                 |    1 
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c              |    2 
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c       |   93 +++
 drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c |   41 -
 drivers/hid/hid-sony.c                                  |    2 
 drivers/hid/intel-ish-hid/ipc/pci-ish.c                 |    8 
 drivers/hwmon/nzxt-smart2.c                             |    2 
 drivers/idle/intel_idle.c                               |    2 
 drivers/infiniband/core/cma.c                           |    2 
 drivers/infiniband/core/cma_configfs.c                  |    2 
 drivers/infiniband/core/nldev.c                         |    1 
 drivers/infiniband/core/uverbs_main.c                   |    2 
 drivers/infiniband/hw/mlx4/sysfs.c                      |    2 
 drivers/infiniband/hw/mlx5/fs.c                         |    2 
 drivers/infiniband/hw/mlx5/main.c                       |    2 
 drivers/infiniband/sw/siw/siw_cm.c                      |   16 
 drivers/infiniband/ulp/srp/ib_srp.c                     |   16 
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c             |   18 
 drivers/iommu/intel/iommu.c                             |   16 
 drivers/iommu/intel/iommu.h                             |    2 
 drivers/iommu/mtk_iommu.c                               |    9 
 drivers/leds/led-core.c                                 |    4 
 drivers/md/dm-zoned-target.c                            |   15 
 drivers/md/raid5.c                                      |    7 
 drivers/mtd/ubi/build.c                                 |    7 
 drivers/net/dsa/mv88e6xxx/chip.c                        |    6 
 drivers/net/dsa/mv88e6xxx/global1.c                     |   31 -
 drivers/net/dsa/mv88e6xxx/global1.h                     |    1 
 drivers/net/dsa/mv88e6xxx/global2.c                     |    2 
 drivers/net/dsa/mv88e6xxx/global2.h                     |    1 
 drivers/net/ethernet/ibm/ibmveth.c                      |   25 
 drivers/net/ethernet/intel/i40e/i40e_ptp.c              |    4 
 drivers/net/ethernet/mediatek/mtk_eth_soc.c             |    4 
 drivers/net/ethernet/qlogic/qed/qed_ll2.h               |    2 
 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c       |    7 
 drivers/net/ethernet/ti/am65-cpsw-nuss.c                |    1 
 drivers/net/usb/smsc75xx.c                              |    4 
 drivers/net/vrf.c                                       |   12 
 drivers/net/vxlan/vxlan_core.c                          |    4 
 drivers/net/wan/fsl_ucc_hdlc.c                          |   12 
 drivers/net/wireless/intel/iwlwifi/fw/error-dump.h      |    6 
 drivers/net/wireless/intel/iwlwifi/mvm/fw.c             |    2 
 drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c    |    4 
 drivers/net/wireless/marvell/mwifiex/sta_rx.c           |   16 
 drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c     |    7 
 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c      |   13 
 drivers/of/dynamic.c                                    |    6 
 drivers/pci/controller/dwc/pcie-qcom.c                  |    4 
 drivers/ptp/ptp_ocp.c                                   |    1 
 drivers/regulator/core.c                                |    4 
 drivers/regulator/mt6358-regulator.c                    |  153 ++---
 drivers/s390/scsi/zfcp_aux.c                            |    9 
 drivers/scsi/aacraid/commsup.c                          |    2 
 drivers/scsi/mvumi.c                                    |    2 
 drivers/scsi/scsi_lib.c                                 |    2 
 drivers/scsi/scsi_priv.h                                |    1 
 drivers/scsi/scsi_scan.c                                |   20 
 drivers/scsi/scsi_sysfs.c                               |    4 
 drivers/scsi/sd.c                                       |  110 +++-
 drivers/scsi/sd.h                                       |    1 
 drivers/scsi/smartpqi/smartpqi_init.c                   |    2 
 drivers/scsi/storvsc_drv.c                              |    2 
 drivers/scsi/virtio_scsi.c                              |    2 
 drivers/spi/spi-zynqmp-gqspi.c                          |   12 
 drivers/target/target_core_device.c                     |   11 
 drivers/vhost/vringh.c                                  |   12 
 drivers/xen/events/events_base.c                        |   87 +--
 fs/btrfs/ctree.h                                        |   28 -
 fs/btrfs/dir-item.c                                     |   50 -
 fs/btrfs/file.c                                         |   16 
 fs/btrfs/inode-item.c                                   |   73 +-
 fs/btrfs/inode-item.h                                   |   20 
 fs/btrfs/inode.c                                        |  267 ++++++----
 fs/btrfs/ioctl.c                                        |    7 
 fs/btrfs/root-tree.c                                    |   19 
 fs/btrfs/send.c                                         |   12 
 fs/btrfs/super.c                                        |    3 
 fs/btrfs/transaction.c                                  |   40 +
 fs/btrfs/tree-log.c                                     |  279 +++++-----
 fs/btrfs/tree-log.h                                     |    4 
 fs/erofs/decompressor_lzma.c                            |    5 
 fs/nfs/nfs4proc.c                                       |   10 
 fs/nfs/nfs4state.c                                      |   47 +
 fs/nfs/sysfs.c                                          |   16 
 fs/smb/client/connect.c                                 |   10 
 fs/smb/server/connection.c                              |    2 
 fs/smb/server/connection.h                              |    1 
 fs/smb/server/mgmt/user_session.c                       |   10 
 fs/smb/server/smb2pdu.c                                 |    4 
 include/linux/bpf.h                                     |    2 
 include/linux/ipv6.h                                    |    1 
 include/linux/mm.h                                      |    2 
 include/linux/netfilter/nf_conntrack_sctp.h             |    1 
 include/linux/regulator/mt6358-regulator.h              |    4 
 include/net/arp.h                                       |    8 
 include/net/cfg80211.h                                  |   99 +++
 include/net/ndisc.h                                     |   12 
 include/net/neighbour.h                                 |   10 
 include/net/netlink.h                                   |   21 
 include/net/nexthop.h                                   |   23 
 include/net/tcp.h                                       |    6 
 include/scsi/scsi_device.h                              |    6 
 include/scsi/scsi_host.h                                |    2 
 include/uapi/linux/bpf.h                                |    6 
 include/uapi/linux/ipv6.h                               |    1 
 kernel/trace/ring_buffer.c                              |   32 -
 mm/memory.c                                             |   10 
 mm/mempolicy.c                                          |  122 ++--
 mm/page_alloc.c                                         |  138 ++---
 net/bluetooth/hci_core.c                                |    1 
 net/bluetooth/hci_event.c                               |    1 
 net/bluetooth/hci_request.h                             |    2 
 net/bluetooth/hci_sync.c                                |   14 
 net/bluetooth/iso.c                                     |    9 
 net/bridge/br_arp_nd_proxy.c                            |    4 
 net/bridge/br_netfilter_hooks.c                         |    5 
 net/core/filter.c                                       |   59 +-
 net/core/neighbour.c                                    |  106 ++--
 net/core/sock_map.c                                     |    4 
 net/ipv4/arp.c                                          |    8 
 net/ipv4/fib_semantics.c                                |    8 
 net/ipv4/ip_output.c                                    |    6 
 net/ipv4/nexthop.c                                      |   12 
 net/ipv4/route.c                                        |    8 
 net/ipv4/tcp.c                                          |   10 
 net/ipv4/tcp_bpf.c                                      |    4 
 net/ipv4/tcp_input.c                                    |   13 
 net/ipv4/tcp_output.c                                   |    7 
 net/ipv6/addrconf.c                                     |   27 -
 net/ipv6/ip6_fib.c                                      |   16 
 net/ipv6/ip6_output.c                                   |   12 
 net/ipv6/ndisc.c                                        |   17 
 net/ipv6/route.c                                        |   22 
 net/ipv6/tcp_ipv6.c                                     |   10 
 net/l2tp/l2tp_ip6.c                                     |    2 
 net/mac80211/cfg.c                                      |    3 
 net/mac80211/key.c                                      |    2 
 net/mptcp/pm_netlink.c                                  |    2 
 net/mptcp/pm_userspace.c                                |    6 
 net/mptcp/protocol.c                                    |  177 ++++--
 net/mptcp/protocol.h                                    |   24 
 net/mptcp/subflow.c                                     |   41 -
 net/netfilter/ipvs/ip_vs_sync.c                         |    4 
 net/netfilter/nf_conntrack_proto_sctp.c                 |   43 +
 net/netfilter/nf_tables_api.c                           |   44 +
 net/netfilter/nft_set_rbtree.c                          |   46 +
 net/netlink/af_netlink.c                                |   37 -
 net/nfc/llcp_core.c                                     |    2 
 net/rds/tcp_connect.c                                   |    2 
 net/sctp/associola.c                                    |    3 
 net/sctp/socket.c                                       |    1 
 net/socket.c                                            |   29 -
 net/tipc/crypto.c                                       |    4 
 net/wireless/core.c                                     |  150 +++++
 net/wireless/core.h                                     |   14 
 net/wireless/nl80211.c                                  |   93 ++-
 net/wireless/sme.c                                      |    4 
 net/wireless/sysfs.c                                    |    8 
 scripts/mod/file2alias.c                                |    2 
 security/integrity/ima/Kconfig                          |   22 
 sound/soc/soc-utils.c                                   |    1 
 sound/soc/tegra/tegra_audio_graph_card.c                |   30 -
 tools/include/uapi/linux/bpf.h                          |    6 
 tools/testing/selftests/netfilter/.gitignore            |    1 
 tools/testing/selftests/netfilter/Makefile              |    4 
 tools/testing/selftests/netfilter/audit_logread.c       |  165 ++++++
 tools/testing/selftests/netfilter/config                |    1 
 tools/testing/selftests/netfilter/nft_audit.sh          |  193 +++++++
 191 files changed, 2867 insertions(+), 1681 deletions(-)

Aleksandr Mezin (1):
hwmon: (nzxt-smart2) add another USB ID

Alexandra Diupina (1):
drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close()

Arnd Bergmann (2):
wifi: iwlwifi: dbg_ini: fix structure packing
ima: rework CONFIG_IMA dependency block

Artem Bityutskiy (1):
intel_idle: add Emerald Rapids Xeon support

Bart Van Assche (2):
scsi: core: Improve type safety of scsi_rescan_device() RDMA/srp: Do not call scsi_done() from srp_abort()

Bartosz Golaszewski (1):
gpio: aspeed: fix the GPIO number passed to pinctrl_gpio_set_config()

Ben Wolsieffer (1):
net: stmmac: dwmac-stm32: fix resume on STM32 MCU

Benjamin Coddington (3):
NFS: Cleanup unused rpc_clnt variable
NFS: rename nfs_client_kset to nfs_kset
Revert "NFSv4: Retry LOCK on OLD_STATEID during delegation return"

Benjamin Poirier (1):
ipv4: Set offload_failed flag in fibmatch results

Bernard Metzler (1):
RDMA/siw: Fix connection failure handling

Bernd Schubert (1):
btrfs: file_remove_privs needs an exclusive lock in direct io write

Breno Leitao (1):
perf/x86/amd: Do not WARN() on every IRQ

Chen-Yu Tsai (3):
regulator: mt6358: Drop *_SSHUB regulators
regulator: mt6358: Use linear voltage helpers for single range regulators
regulator: mt6358: split ops for buck and linear range LDO regulators

Chengfeng Ye (1):

      tipc: fix a potential deadlock on &tx->lock

Christian Marangi (1):
net: ethernet: mediatek: disable irq before schedule napi

Christophe JAILLET (4):
HID: sony: Fix a potential memory leak in sony_probe()
wifi: iwlwifi: mvm: Fix a memory corruption issue IB/mlx4: Fix the size of a buffer in add_port_entries()
btrfs: fix an error handling path in btrfs_rename()

Damien Le Moal (5):
ata,scsi: do not issue START STOP UNIT on resume
scsi: sd: Differentiate system and runtime start/stop management
scsi: sd: Do not issue commands to suspended disks on shutdown
scsi: Do not attempt to rescan suspended devices
ata: libata-scsi: Fix delayed scsi_rescan_device() execution

Dan Carpenter (2):
net: ethernet: ti: am65-cpsw: Fix error code in am65_cpsw_nuss_init_tx_chns()
of: dynamic: Fix potential memory leak in of_changeset_action()

David Howells (1):
ipv4, ipv6: Fix handling of transhdrlen in __ip{,6}_append_data()

David Jeffery (1):
md/raid5: release batch_last before waiting for another stripe_head

David Wilder (1):
ibmveth: Remove condition to recompute TCP header checksum.

Dinghao Liu (2):
scsi: zfcp: Fix a double put in zfcp_port_enqueue()
ptp: ocp: Fix error handling in ptp_ocp_device_init

Duje Mihanović (1):
gpio: pxa: disable pinctrl calls for MMP_GPIO

Eric Dumazet (8):
mptcp: annotate lockless accesses to sk->sk_err
net: fix possible store tearing in neigh_periodic_work()
neighbour: annotate lockless accesses to n->nud_state
neighbour: switch to standard rcu, instead of rcu_bh
neighbour: fix data-races around n->output
netlink: annotate data-races around sk->sk_err
ipv6: remove nexthop_fib6_nh_bh()
ipv6: remove one read_lock()/read_unlock() pair in rt6_check_neigh()

Fabio Estevam (1):
net: dsa: mv88e6xxx: Avoid EEPROM timeout when EEPROM is absent

Fedor Pchelkin (1):

      dm zoned: free dmz->ddev array in dmz_put_zoned_devices

Felix Fietkau (1):
wifi: mt76: mt76x02: fix MT76x0 external LNA gain handling

Filipe Manana (1):
btrfs: fix fscrypt name leak after failure to join log transaction

Florian Westphal (1):
netfilter: nf_tables: nft_set_rbtree: fix spurious insertion failure

Gabriel Krisman Bertazi (1):
arm64: Avoid repeated AA64MMFR1_EL1 register read on pagefault path

Gao Xiang (1):
erofs: fix memory leak of LZMA global compressed deduplication

Geliang Tang (1):
mptcp: userspace pm allow creating id 0 subflow

Greg Kroah-Hartman (1):

      Linux 6.1.57

Gustavo A. R. Silva (2):
qed/red_ll2: Fix undefined behavior bug in struct qed_ll2_info
wifi: mwifiex: Fix tlv_buf_left calculation

Hamdan Igbaria (1):
RDMA/mlx5: Fix mutex unlocking on error flow for steering anchor creation

Helge Deller (1):
parisc: Fix crash with nr_cpus=1 option

Herman Fries (1):
hwmon: (nzxt-smart2) Add device id

Ido Schimmel (1):
vrf: Fix lockdep splat in output path

Ilya Dryomov (4):
rbd: move rbd_dev_refresh() definition
rbd: decouple header read-in from updating rbd_dev->header
rbd: decouple parent info read-in from updating rbd_dev
rbd: take header_rwsem in rbd_dev_refresh() only when updating

Ilya Maximets (1):
ipv6: tcp: add a missing nf_reset_ct() in 3WHS handling

Jakub Kicinski (2):
netlink: split up copies in the ack construction
netlink: remove the flex array from struct nlmsghdr

Jakub Sitnicki (1):
bpf, sockmap: Reject sk_msg egress redirects to non-TCP sockets

Jeremy Cline (1):
net: nfc: llcp: Add lock when modifying device list

Jiri Kosina (1):
HID: sony: remove duplicate NULL check before calling usb_free_urb()

Johan Hovold (1):
spi: zynqmp-gqspi: fix clock imbalance on probe failure

Johannes Berg (6):
wifi: cfg80211: hold wiphy lock in auto-disconnect
wifi: cfg80211: move wowlan disable under locks
wifi: cfg80211: add a work abstraction with special semantics
wifi: cfg80211: fix cqm_config access race
wifi: cfg80211: add missing kernel-doc for cqm_rssi_work
wifi: mac80211: fix potential key use-after-free

Johannes Weiner (1):
mm: page_alloc: fix CMA and HIGHATOMIC landing on the wrong buddy list

John David Anglin (1):
parisc: Restore __ldcw_align for PA-RISC 2.0 processors

John Fastabend (2):
bpf: tcp_read_skb needs to pop skb regardless of seq bpf, sockmap: Do not inc copied_seq when PEEK flag set

Jordan Rife (3):
net: replace calls to sock->ops->connect() with kernel_connect()
net: prevent rewrite of msg_name in sock_sendmsg()
smb: use kernel_connect() and kernel_bind()

Juergen Gross (1):
xen/events: replace evtchn_rwlock with RCU

Junxiao Bi (1):
scsi: target: core: Fix deadlock due to recursive locking

Konstantin Meskhidze (1):
RDMA/uverbs: Fix typo of sizeof argument

Kristina Martsenko (1):
arm64: cpufeature: Fix CLRBHB and BC detection

Leon Hwang (1):
bpf: Fix tr dereferencing

Leon Romanovsky (2):
RDMA/core: Require admin capabilities to set system parameters RDMA/cma: Fix truncation compilation warning in make_cma_ports

Luiz Augusto von Dentz (3):
Bluetooth: hci_codec: Fix leaking content of local_codecs
Bluetooth: hci_sync: Fix handling of HCI_QUIRK_STRICT_DUPLICATE_FILTER
Bluetooth: ISO: Fix handling of listen for unicast

Marek Behún (1):
leds: Drop BUG_ON check for LED_COLOR_ID_MULTI

Mario Limonciello (2):
drm/amd: Fix detection of _PR3 on the PCIe root port drm/amd: Fix logic error in sienna_cichlid_update_pcie_parameters()

Mark Zhang (1):
RDMA/cma: Initialize ib_sa_multicast structure to 0 when join

Martin KaFai Lau (1):
bpf: Add BPF_FIB_LOOKUP_SKIP_NEIGH for bpf_fib_lookup

Mauricio Faria de Oliveira (1):
modpost: add missing else to the "of" check

Mel Gorman (2):
mm/page_alloc: always remove pages from temporary list mm/page_alloc: leave IRQs enabled for per-cpu page allocations

Michał Mirosław (1):

      regulator/core: regulator_register: set device->class earlier

Ming Lei (1):

      block: fix use-after-free of q->q_usage_counter

Namjae Jeon (1):
ksmbd: fix race condition between session lookup and expire

Neal Cardwell (2):
tcp: fix quick-ack counting to count actual ACKs of new data
tcp: fix delayed ACKs for MSS boundary condition

Oleksandr Tymoshenko (1):
ima: Finish deprecation of IMA_TRUSTED_KEYRING Kconfig

Paolo Abeni (4):
mptcp: rename timer related helper to less confusing names
mptcp: fix dangling connection hang-up
mptcp: move __mptcp_error_report in protocol.c
mptcp: process pending subflow error on close

Patrick Rohr (3):
net: add sysctl accept_ra_min_rtr_lft
net: change accept_ra_min_rtr_lft to affect all RA lifetimes
net: release reference to inet6_dev pointer

Phil Sutter (3):
selftests: netfilter: Test nf_tables audit logging
selftests: netfilter: Extend nft_audit.sh
netfilter: nf_tables: Deduplicate nft_register_obj audit logs

Pin-yen Lin (1):
wifi: mwifiex: Fix oob check condition in mwifiex_process_rx_packet

Richard Fitzgerald (1):
regmap: rbtree: Fix wrong register marked as in-cache when creating new node

Rob Herring (2):
arm64: Add Cortex-A520 CPU part definition
arm64: errata: Add Cortex-A520 speculative unprivileged load workaround

Robin Murphy (2):
iommu/arm-smmu-v3: Set TTL invalidation hint better iommu/arm-smmu-v3: Avoid constructing invalid range commands

Sameer Pujar (2):
ASoC: soc-utils: Export snd_soc_dai_is_dummy() symbol
ASoC: tegra: Fix redundant PLLA and PLLA_OUT0 updates

Sandipan Das (1):
perf/x86/amd/core: Fix overflow reset on hotplug

Shay Drory (1):
RDMA/mlx5: Fix NULL string error

Shigeru Yoshida (1):
net: usb: smsc75xx: Fix uninit-value access in __smsc75xx_read_reg

Sricharan Ramabadhran (1):
PCI: qcom: Fix IPQ8074 enumeration

Srinivas Pandruvada (1):
HID: intel-ish-hid: ipc: Disable and reenable ACPI GPE bit

Stefano Garzarella (1):
vringh: don't use vringh_kiov_advance() in vringh_iov_xfer()

Sweet Tea Dorminy (3):
btrfs: use struct qstr instead of name and namelen pairs
btrfs: setup qstr from dentrys using fscrypt helper
btrfs: use struct fscrypt_str instead of struct qstr

Tao Chen (1):
netlink: Fix potential skb memleak in netlink_ack

Tom Lendacky (1):
x86/sev: Use the GHCB protocol when available for SNP CPUID requests

Trond Myklebust (2):
NFSv4: Fix a state manager thread deadlock regression
NFSv4: Fix a nfs4_state_manager() race

Vishal Moola (Oracle) (4):
mm/memory: add vm_normal_folio()
mm/mempolicy: convert queue_pages_pmd() to queue_folios_pmd() mm/mempolicy: convert queue_pages_pte_range() to queue_folios_pte_range() mm/mempolicy: convert migrate_page_add() to migrate_folio_add()

Vlastimil Babka (1):
ring-buffer: remove obsolete comment for free_buffer_page()

Wayne Lin (1):
drm/amd/display: Adjust the MST resume flow

Xin Long (3):
netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp
sctp: update transport state when processing a dupcook packet
sctp: update hb timer immediately after users change hb_interval

Yajun Deng (1):
i40e: fix the wrong PTP frequency calculation

Yang Shi (1):
mm: mempolicy: keep VMA walk if both MPOL_MF_STRICT and MPOL_MF_MOVE are specified

Yao Xiao (1):
Bluetooth: Delete unused hci_req_prepare_suspend() declaration

Yong Wu (1):
iommu/mediatek: Fix share pgtable for iova over 4GB

Zhang Rui (1):
iommu/vt-d: Avoid memory allocation in iommu_suspend()

Zheng Yejian (1):
ring-buffer: Fix bytes info in per_cpu buffer stats

Zhihao Cheng (1):
ubi: Refuse attaching if mtd's erasesize is 0

luosili (1):
ksmbd: fix uaf in smb20_oplock_break_ack

author maintainer
#1 lore raw
Documentation/arm64/silicon-errata.rst +2 -0
index 9000640f7f7a..d9fce65b2f04 100644
@@ -63,6 +63,8 @@ stable kernels.
 +----------------+-----------------+-----------------+-----------------------------+
 | ARM            | Cortex-A510     | #1902691        | ARM64_ERRATUM_1902691       |
 +----------------+-----------------+-----------------+-----------------------------+
+| ARM            | Cortex-A520     | #2966298        | ARM64_ERRATUM_2966298       |
++----------------+-----------------+-----------------+-----------------------------+
 | ARM            | Cortex-A53      | #826319         | ARM64_ERRATUM_826319        |
 +----------------+-----------------+-----------------+-----------------------------+
 | ARM            | Cortex-A53      | #827319         | ARM64_ERRATUM_827319        |
Documentation/networking/ip-sysctl.rst +8 -0
index 3301288a7c69..f5f7a464605f 100644
@@ -2148,6 +2148,14 @@ accept_ra_min_hop_limit - INTEGER
 
 	Default: 1
 
+accept_ra_min_lft - INTEGER
+	Minimum acceptable lifetime value in Router Advertisement.
+
+	RA sections with a lifetime less than this value shall be
+	ignored. Zero lifetimes stay unaffected.
+
+	Default: 0
+
 accept_ra_pinfo - BOOLEAN
 	Learn Prefix Information in Router Advertisement.
 
Makefile +1 -1
index 9ceda3dad5eb..b435b56594f0 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 1
-SUBLEVEL = 56
+SUBLEVEL = 57
 EXTRAVERSION =
 NAME = Curry Ramen
 
arch/arm64/Kconfig +13 -0
index d5eb2fbab473..9ee9e17eb2ca 100644
@@ -983,6 +983,19 @@ config ARM64_ERRATUM_2457168
 
 	  If unsure, say Y.
 
+config ARM64_ERRATUM_2966298
+	bool "Cortex-A520: 2966298: workaround for speculatively executed unprivileged load"
+	default y
+	help
+	  This option adds the workaround for ARM Cortex-A520 erratum 2966298.
+
+	  On an affected Cortex-A520 core, a speculatively executed unprivileged
+	  load might leak data from a privileged level via a cache side channel.
+
+	  Work around this problem by executing a TLBI before returning to EL0.
+
+	  If unsure, say Y.
+
 config CAVIUM_ERRATUM_22375
 	bool "Cavium erratum 22375, 24313"
 	default y
arch/arm64/include/asm/cpufeature.h +6 -2
index f73f11b55042..a0badda3a8d1 100644
@@ -670,7 +670,7 @@ static inline bool supports_clearbhb(int scope)
 		isar2 = read_sanitised_ftr_reg(SYS_ID_AA64ISAR2_EL1);
 
 	return cpuid_feature_extract_unsigned_field(isar2,
-						    ID_AA64ISAR2_EL1_BC_SHIFT);
+						    ID_AA64ISAR2_EL1_CLRBHB_SHIFT);
 }
 
 const struct cpumask *system_32bit_el0_cpumask(void);
@@ -863,7 +863,11 @@ static inline bool cpu_has_hw_af(void)
 	if (!IS_ENABLED(CONFIG_ARM64_HW_AFDBM))
 		return false;
 
-	mmfr1 = read_cpuid(ID_AA64MMFR1_EL1);
+	/*
+	 * Use cached version to avoid emulated msr operation on KVM
+	 * guests.
+	 */
+	mmfr1 = read_sanitised_ftr_reg(SYS_ID_AA64MMFR1_EL1);
 	return cpuid_feature_extract_unsigned_field(mmfr1,
 						ID_AA64MMFR1_EL1_HAFDBS_SHIFT);
 }
arch/arm64/include/asm/cputype.h +2 -0
index 65e53ef5a396..357932938b5a 100644
@@ -79,6 +79,7 @@
 #define ARM_CPU_PART_CORTEX_A78AE	0xD42
 #define ARM_CPU_PART_CORTEX_X1		0xD44
 #define ARM_CPU_PART_CORTEX_A510	0xD46
+#define ARM_CPU_PART_CORTEX_A520	0xD80
 #define ARM_CPU_PART_CORTEX_A710	0xD47
 #define ARM_CPU_PART_CORTEX_X2		0xD48
 #define ARM_CPU_PART_NEOVERSE_N2	0xD49
@@ -141,6 +142,7 @@
 #define MIDR_CORTEX_A78AE	MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A78AE)
 #define MIDR_CORTEX_X1	MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X1)
 #define MIDR_CORTEX_A510 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A510)
+#define MIDR_CORTEX_A520 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A520)
 #define MIDR_CORTEX_A710 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A710)
 #define MIDR_CORTEX_X2 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X2)
 #define MIDR_NEOVERSE_N2 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_N2)
arch/arm64/kernel/cpu_errata.c +8 -0
index 8dbf3c21ea22..3f917124684c 100644
@@ -723,6 +723,14 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
 		.cpu_enable = cpu_clear_bf16_from_user_emulation,
 	},
 #endif
+#ifdef CONFIG_ARM64_ERRATUM_2966298
+	{
+		.desc = "ARM erratum 2966298",
+		.capability = ARM64_WORKAROUND_2966298,
+		/* Cortex-A520 r0p0 - r0p1 */
+		ERRATA_MIDR_REV_RANGE(MIDR_CORTEX_A520, 0, 0, 1),
+	},
+#endif
 #ifdef CONFIG_AMPERE_ERRATUM_AC03_CPU_38
 	{
 		.desc = "AmpereOne erratum AC03_CPU_38",
arch/arm64/kernel/cpufeature.c +2 -1
index b3eb53847c96..770a31c6ed81 100644
@@ -212,7 +212,8 @@ static const struct arm64_ftr_bits ftr_id_aa64isar1[] = {
 };
 
 static const struct arm64_ftr_bits ftr_id_aa64isar2[] = {
-	ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_HIGHER_SAFE, ID_AA64ISAR2_EL1_BC_SHIFT, 4, 0),
+	ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64ISAR2_EL1_CLRBHB_SHIFT, 4, 0),
+	ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64ISAR2_EL1_BC_SHIFT, 4, 0),
 	ARM64_FTR_BITS(FTR_VISIBLE_IF_IS_ENABLED(CONFIG_ARM64_PTR_AUTH),
 		       FTR_STRICT, FTR_EXACT, ID_AA64ISAR2_EL1_APA3_SHIFT, 4, 0),
 	ARM64_FTR_BITS(FTR_VISIBLE_IF_IS_ENABLED(CONFIG_ARM64_PTR_AUTH),
arch/arm64/kernel/entry.S +4 -0
index beb4db21c89c..de16fa917e1b 100644
@@ -419,6 +419,10 @@ alternative_else_nop_endif
 	ldp	x28, x29, [sp, #16 * 14]
 
 	.if	\el == 0
+alternative_if ARM64_WORKAROUND_2966298
+	tlbi	vale1, xzr
+	dsb	nsh
+alternative_else_nop_endif
 alternative_if_not ARM64_UNMAP_KERNEL_AT_EL0
 	ldr	lr, [sp, #S_LR]
 	add	sp, sp, #PT_REGS_SIZE		// restore sp
arch/arm64/tools/cpucaps +1 -0
index 14d31d1b2ff0..e73830d9f136 100644
@@ -71,6 +71,7 @@ WORKAROUND_2064142
 WORKAROUND_2077057
 WORKAROUND_2457168
 WORKAROUND_2658417
+WORKAROUND_2966298
 WORKAROUND_AMPERE_AC03_CPU_38
 WORKAROUND_TRBE_OVERWRITE_FILL_MODE
 WORKAROUND_TSB_FLUSH_FAILURE
arch/arm64/tools/sysreg +5 -1
index 384757a7eda9..11c3f7a7cec7 100644
@@ -484,7 +484,11 @@ EndEnum
 EndSysreg
 
 Sysreg	ID_AA64ISAR2_EL1	3	0	0	6	2
-Res0	63:28
+Res0	63:32
+Enum	31:28	CLRBHB
+	0b0000	NI
+	0b0001	IMP
+EndEnum
 Enum	27:24	PAC_frac
 	0b0000	NI
 	0b0001	IMP
arch/parisc/include/asm/ldcw.h +20 -16
index 6d28b5514699..10a061d6899c 100644
@@ -2,14 +2,28 @@
 #ifndef __PARISC_LDCW_H
 #define __PARISC_LDCW_H
 
-#ifndef CONFIG_PA20
 /* Because kmalloc only guarantees 8-byte alignment for kmalloc'd data,
    and GCC only guarantees 8-byte alignment for stack locals, we can't
    be assured of 16-byte alignment for atomic lock data even if we
    specify "__attribute ((aligned(16)))" in the type declaration.  So,
    we use a struct containing an array of four ints for the atomic lock
    type and dynamically select the 16-byte aligned int from the array
-   for the semaphore.  */
+   for the semaphore. */
+
+/* From: "Jim Hull" <jim.hull of hp.com>
+   I've attached a summary of the change, but basically, for PA 2.0, as
+   long as the ",CO" (coherent operation) completer is implemented, then the
+   16-byte alignment requirement for ldcw and ldcd is relaxed, and instead
+   they only require "natural" alignment (4-byte for ldcw, 8-byte for
+   ldcd).
+
+   Although the cache control hint is accepted by all PA 2.0 processors,
+   it is only implemented on PA8800/PA8900 CPUs. Prior PA8X00 CPUs still
+   require 16-byte alignment. If the address is unaligned, the operation
+   of the instruction is undefined. The ldcw instruction does not generate
+   unaligned data reference traps so misaligned accesses are not detected.
+   This hid the problem for years. So, restore the 16-byte alignment dropped
+   by Kyle McMartin in "Remove __ldcw_align for PA-RISC 2.0 processors". */
 
 #define __PA_LDCW_ALIGNMENT	16
 #define __PA_LDCW_ALIGN_ORDER	4
@@ -19,22 +33,12 @@
 		& ~(__PA_LDCW_ALIGNMENT - 1);			\
 	(volatile unsigned int *) __ret;			\
 })
-#define __LDCW	"ldcw"
 
-#else /*CONFIG_PA20*/
-/* From: "Jim Hull" <jim.hull of hp.com>
-   I've attached a summary of the change, but basically, for PA 2.0, as
-   long as the ",CO" (coherent operation) completer is specified, then the
-   16-byte alignment requirement for ldcw and ldcd is relaxed, and instead
-   they only require "natural" alignment (4-byte for ldcw, 8-byte for
-   ldcd). */
-
-#define __PA_LDCW_ALIGNMENT	4
-#define __PA_LDCW_ALIGN_ORDER	2
-#define __ldcw_align(a) (&(a)->slock)
+#ifdef CONFIG_PA20
 #define __LDCW	"ldcw,co"
-
-#endif /*!CONFIG_PA20*/
+#else
+#define __LDCW	"ldcw"
+#endif
 
 /* LDCW, the only atomic read-write operation PA-RISC has. *sigh*.
    We don't explicitly expose that "*a" may be written as reload
arch/parisc/include/asm/spinlock_types.h +0 -5
index ca39ee350c3f..35c5086b74d7 100644
@@ -3,13 +3,8 @@
 #define __ASM_SPINLOCK_TYPES_H
 
 typedef struct {
-#ifdef CONFIG_PA20
-	volatile unsigned int slock;
-# define __ARCH_SPIN_LOCK_UNLOCKED { 1 }
-#else
 	volatile unsigned int lock[4];
 # define __ARCH_SPIN_LOCK_UNLOCKED	{ { 1, 1, 1, 1 } }
-#endif
 } arch_spinlock_t;
 
 
arch/parisc/kernel/smp.c +3 -1
index 7dbd92cafae3..e37ec0548730 100644
@@ -443,7 +443,9 @@ int __cpu_up(unsigned int cpu, struct task_struct *tidle)
 	if (cpu_online(cpu))
 		return 0;
 
-	if (num_online_cpus() < setup_max_cpus && smp_boot_one_cpu(cpu, tidle))
+	if (num_online_cpus() < nr_cpu_ids &&
+		num_online_cpus() < setup_max_cpus &&
+		smp_boot_one_cpu(cpu, tidle))
 		return -EIO;
 
 	return cpu_online(cpu) ? 0 : -EIO;
arch/x86/events/amd/core.c +17 -7
index 6672a3f05fc6..04f4b96dec6d 100644
@@ -534,8 +534,12 @@ static void amd_pmu_cpu_reset(int cpu)
 	/* Clear enable bits i.e. PerfCntrGlobalCtl.PerfCntrEn */
 	wrmsrl(MSR_AMD64_PERF_CNTR_GLOBAL_CTL, 0);
 
-	/* Clear overflow bits i.e. PerfCntrGLobalStatus.PerfCntrOvfl */
-	wrmsrl(MSR_AMD64_PERF_CNTR_GLOBAL_STATUS_CLR, amd_pmu_global_cntr_mask);
+	/*
+	 * Clear freeze and overflow bits i.e. PerfCntrGLobalStatus.LbrFreeze
+	 * and PerfCntrGLobalStatus.PerfCntrOvfl
+	 */
+	wrmsrl(MSR_AMD64_PERF_CNTR_GLOBAL_STATUS_CLR,
+	       GLOBAL_STATUS_LBRS_FROZEN | amd_pmu_global_cntr_mask);
 }
 
 static int amd_pmu_cpu_prepare(int cpu)
@@ -570,6 +574,7 @@ static void amd_pmu_cpu_starting(int cpu)
 	int i, nb_id;
 
 	cpuc->perf_ctr_virt_mask = AMD64_EVENTSEL_HOSTONLY;
+	amd_pmu_cpu_reset(cpu);
 
 	if (!x86_pmu.amd_nb_constraints)
 		return;
@@ -591,8 +596,6 @@ static void amd_pmu_cpu_starting(int cpu)
 
 	cpuc->amd_nb->nb_id = nb_id;
 	cpuc->amd_nb->refcnt++;
-
-	amd_pmu_cpu_reset(cpu);
 }
 
 static void amd_pmu_cpu_dead(int cpu)
@@ -601,6 +604,7 @@ static void amd_pmu_cpu_dead(int cpu)
 
 	kfree(cpuhw->lbr_sel);
 	cpuhw->lbr_sel = NULL;
+	amd_pmu_cpu_reset(cpu);
 
 	if (!x86_pmu.amd_nb_constraints)
 		return;
@@ -613,8 +617,6 @@ static void amd_pmu_cpu_dead(int cpu)
 
 		cpuhw->amd_nb = NULL;
 	}
-
-	amd_pmu_cpu_reset(cpu);
 }
 
 static inline void amd_pmu_set_global_ctl(u64 ctl)
@@ -884,7 +886,7 @@ static int amd_pmu_v2_handle_irq(struct pt_regs *regs)
 	struct hw_perf_event *hwc;
 	struct perf_event *event;
 	int handled = 0, idx;
-	u64 status, mask;
+	u64 reserved, status, mask;
 	bool pmu_enabled;
 
 	/*
@@ -909,6 +911,14 @@ static int amd_pmu_v2_handle_irq(struct pt_regs *regs)
 		status &= ~GLOBAL_STATUS_LBRS_FROZEN;
 	}
 
+	reserved = status & ~amd_pmu_global_cntr_mask;
+	if (reserved)
+		pr_warn_once("Reserved PerfCntrGlobalStatus bits are set (0x%llx), please consider updating microcode\n",
+			     reserved);
+
+	/* Clear any reserved bits set by buggy microcode */
+	status &= amd_pmu_global_cntr_mask;
+
 	for (idx = 0; idx < x86_pmu.num_counters; idx++) {
 		if (!test_bit(idx, cpuc->active_mask))
 			continue;
arch/x86/kernel/sev-shared.c +55 -14

150 lines not on this page · raw message

block/blk-sysfs.c +1 -2
index a582ea0da74f..a82bdec923b2 100644
@@ -737,6 +737,7 @@ static void blk_free_queue_rcu(struct rcu_head *rcu_head)
 	struct request_queue *q = container_of(rcu_head, struct request_queue,
 					       rcu_head);
 
+	percpu_ref_exit(&q->q_usage_counter);
 	kmem_cache_free(blk_get_queue_kmem_cache(blk_queue_has_srcu(q)), q);
 }
 
@@ -762,8 +763,6 @@ static void blk_release_queue(struct kobject *kobj)
 
 	might_sleep();
 
-	percpu_ref_exit(&q->q_usage_counter);
-
 	if (q->poll_stat)
 		blk_stat_remove_callback(q, q->poll_cb);
 	blk_stat_free_callback(q->poll_cb);
drivers/ata/libata-core.c +16 -0
index 25b9bdf2fc38..6a053cd0cf41 100644
@@ -5022,11 +5022,27 @@ static const unsigned int ata_port_suspend_ehi = ATA_EHI_QUIET
 
 static void ata_port_suspend(struct ata_port *ap, pm_message_t mesg)
 {
+	/*
+	 * We are about to suspend the port, so we do not care about
+	 * scsi_rescan_device() calls scheduled by previous resume operations.
+	 * The next resume will schedule the rescan again. So cancel any rescan
+	 * that is not done yet.
+	 */
+	cancel_delayed_work_sync(&ap->scsi_rescan_task);
+
 	ata_port_request_pm(ap, mesg, 0, ata_port_suspend_ehi, false);
 }
 
 static void ata_port_suspend_async(struct ata_port *ap, pm_message_t mesg)
 {
+	/*
+	 * We are about to suspend the port, so we do not care about
+	 * scsi_rescan_device() calls scheduled by previous resume operations.
+	 * The next resume will schedule the rescan again. So cancel any rescan
+	 * that is not done yet.
+	 */
+	cancel_delayed_work_sync(&ap->scsi_rescan_task);
+
 	ata_port_request_pm(ap, mesg, 0, ata_port_suspend_ehi, true);
 }
 
drivers/ata/libata-scsi.c +24 -19

75 lines not on this page · raw message

drivers/base/regmap/regcache-rbtree.c +2 -1
index ae6b8788d5f3..d65715b9e129 100644
@@ -453,7 +453,8 @@ static int regcache_rbtree_write(struct regmap *map, unsigned int reg,
 		if (!rbnode)
 			return -ENOMEM;
 		regcache_rbtree_set_register(map, rbnode,
-					     reg - rbnode->base_reg, value);
+					     (reg - rbnode->base_reg) / map->reg_stride,
+					     value);
 		regcache_rbtree_insert(map, &rbtree_ctx->root, rbnode);
 		rbtree_ctx->cached_rbnode = rbnode;
 	}
drivers/block/rbd.c +225 -187

654 lines not on this page · raw message

drivers/firewire/sbp2.c +6 -3
index 60051c0cabea..e322a326546b 100644
@@ -81,7 +81,8 @@ MODULE_PARM_DESC(exclusive_login, "Exclusive login to sbp2 device "
  *
  * - power condition
  *   Set the power condition field in the START STOP UNIT commands sent by
- *   sd_mod on suspend, resume, and shutdown (if manage_start_stop is on).
+ *   sd_mod on suspend, resume, and shutdown (if manage_system_start_stop or
+ *   manage_runtime_start_stop is on).
  *   Some disks need this to spin down or to resume properly.
  *
  * - override internal blacklist
@@ -1517,8 +1518,10 @@ static int sbp2_scsi_slave_configure(struct scsi_device *sdev)
 
 	sdev->use_10_for_rw = 1;
 
-	if (sbp2_param_exclusive_login)
-		sdev->manage_start_stop = 1;
+	if (sbp2_param_exclusive_login) {
+		sdev->manage_system_start_stop = true;
+		sdev->manage_runtime_start_stop = true;
+	}
 
 	if (sdev->type == TYPE_ROM)
 		sdev->use_10_for_ms = 1;
drivers/gpio/gpio-aspeed.c +1 -1
index 318a7d95a1a8..42d3e1cf7352 100644
@@ -963,7 +963,7 @@ static int aspeed_gpio_set_config(struct gpio_chip *chip, unsigned int offset,
 	else if (param == PIN_CONFIG_BIAS_DISABLE ||
 			param == PIN_CONFIG_BIAS_PULL_DOWN ||
 			param == PIN_CONFIG_DRIVE_STRENGTH)
-		return pinctrl_gpio_set_config(offset, config);
+		return pinctrl_gpio_set_config(chip->base + offset, config);
 	else if (param == PIN_CONFIG_DRIVE_OPEN_DRAIN ||
 			param == PIN_CONFIG_DRIVE_OPEN_SOURCE)
 		/* Return -ENOTSUPP to trigger emulation, as per datasheet */
drivers/gpio/gpio-pxa.c +1 -0
index 1198ab0305d0..b90357774dc0 100644
@@ -243,6 +243,7 @@ static bool pxa_gpio_has_pinctrl(void)
 	switch (gpio_type) {
 	case PXA3XX_GPIO:
 	case MMP2_GPIO:
+	case MMP_GPIO:
 		return false;
 
 	default:
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
index 5f5999cea7d2..92fa2faf63e4 100644
@@ -2179,7 +2179,7 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
 		adev->flags |= AMD_IS_PX;
 
 	if (!(adev->flags & AMD_IS_APU)) {
-		parent = pci_upstream_bridge(adev->pdev);
+		parent = pcie_find_root_port(adev->pdev);
 		adev->has_pr3 = parent ? pci_pr3_present(parent) : false;
 	}
 
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +80 -13

132 lines not on this page · raw message

drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +23 -18

59 lines not on this page · raw message

drivers/hid/hid-sony.c +2 -0
index 03691cdcfb8e..f7f7252d839e 100644
@@ -3074,6 +3074,8 @@ static int sony_probe(struct hid_device *hdev, const struct hid_device_id *id)
 	return ret;
 
 err:
+	usb_free_urb(sc->ghl_urb);
+
 	hid_hw_stop(hdev);
 	return ret;
 }
drivers/hid/intel-ish-hid/ipc/pci-ish.c +8 -0
index 55cb25038e63..710fda5f19e1 100644
@@ -133,6 +133,14 @@ static int enable_gpe(struct device *dev)
 	}
 	wakeup = &adev->wakeup;
 
+	/*
+	 * Call acpi_disable_gpe(), so that reference count
+	 * gpe_event_info->runtime_count doesn't overflow.
+	 * When gpe_event_info->runtime_count = 0, the call
+	 * to acpi_disable_gpe() simply return.
+	 */
+	acpi_disable_gpe(wakeup->gpe_device, wakeup->gpe_number);
+
 	acpi_sts = acpi_enable_gpe(wakeup->gpe_device, wakeup->gpe_number);
 	if (ACPI_FAILURE(acpi_sts)) {
 		dev_err(dev, "enable ose_gpe failed\n");
drivers/hwmon/nzxt-smart2.c +2 -0
index 533f38b0b4e9..a8e72d8fd060 100644
@@ -791,6 +791,8 @@ static const struct hid_device_id nzxt_smart2_hid_id_table[] = {
 	{ HID_USB_DEVICE(0x1e71, 0x2009) }, /* NZXT RGB & Fan Controller */
 	{ HID_USB_DEVICE(0x1e71, 0x200e) }, /* NZXT RGB & Fan Controller */
 	{ HID_USB_DEVICE(0x1e71, 0x2010) }, /* NZXT RGB & Fan Controller */
+	{ HID_USB_DEVICE(0x1e71, 0x2011) }, /* NZXT RGB & Fan Controller (6 RGB) */
+	{ HID_USB_DEVICE(0x1e71, 0x2019) }, /* NZXT RGB & Fan Controller (6 RGB) */
 	{},
 };
 
drivers/idle/intel_idle.c +2 -0
index cfeb24d40d37..bb3d10099ba4 100644
@@ -1430,6 +1430,7 @@ static const struct x86_cpu_id intel_idle_ids[] __initconst = {
 	X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L,		&idle_cpu_adl_l),
 	X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N,		&idle_cpu_adl_n),
 	X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,	&idle_cpu_spr),
+	X86_MATCH_INTEL_FAM6_MODEL(EMERALDRAPIDS_X,	&idle_cpu_spr),
 	X86_MATCH_INTEL_FAM6_MODEL(XEON_PHI_KNL,	&idle_cpu_knl),
 	X86_MATCH_INTEL_FAM6_MODEL(XEON_PHI_KNM,	&idle_cpu_knl),
 	X86_MATCH_INTEL_FAM6_MODEL(ATOM_GOLDMONT,	&idle_cpu_bxt),
@@ -1862,6 +1863,7 @@ static void __init intel_idle_init_cstates_icpu(struct cpuidle_driver *drv)
 		skx_idle_state_table_update();
 		break;
 	case INTEL_FAM6_SAPPHIRERAPIDS_X:
+	case INTEL_FAM6_EMERALDRAPIDS_X:
 		spr_idle_state_table_update();
 		break;
 	case INTEL_FAM6_ALDERLAKE:
drivers/infiniband/core/cma.c +1 -1
index 4632b1833381..0773ca7ace24 100644
@@ -4936,7 +4936,7 @@ static int cma_iboe_join_multicast(struct rdma_id_private *id_priv,
 	int err = 0;
 	struct sockaddr *addr = (struct sockaddr *)&mc->addr;
 	struct net_device *ndev = NULL;
-	struct ib_sa_multicast ib;
+	struct ib_sa_multicast ib = {};
 	enum ib_gid_type gid_type;
 	bool send_only;
 
drivers/infiniband/core/cma_configfs.c +1 -1
index 7b68b3ea979f..f2fb2d8a6597 100644
@@ -217,7 +217,7 @@ static int make_cma_ports(struct cma_dev_group *cma_dev_group,
 		return -ENOMEM;
 
 	for (i = 0; i < ports_num; i++) {
-		char port_str[10];
+		char port_str[11];
 
 		ports[i].port_num = i + 1;
 		snprintf(port_str, sizeof(port_str), "%u", i + 1);
drivers/infiniband/core/nldev.c +1 -0
index 222733a83ddb..1adf20198afd 100644
@@ -2501,6 +2501,7 @@ static const struct rdma_nl_cbs nldev_cb_table[RDMA_NLDEV_NUM_OPS] = {
 	},
 	[RDMA_NLDEV_CMD_SYS_SET] = {
 		.doit = nldev_set_sys_set_doit,
+		.flags = RDMA_NL_ADMIN_PERM,
 	},
 	[RDMA_NLDEV_CMD_STAT_SET] = {
 		.doit = nldev_stat_set_doit,
drivers/infiniband/core/uverbs_main.c +1 -1
index fa937cd26821..6fe825800494 100644
@@ -535,7 +535,7 @@ static ssize_t verify_hdr(struct ib_uverbs_cmd_hdr *hdr,
 	if (hdr->in_words * 4 != count)
 		return -EINVAL;
 
-	if (count < method_elm->req_size + sizeof(hdr)) {
+	if (count < method_elm->req_size + sizeof(*hdr)) {
 		/*
 		 * rdma-core v18 and v19 have a bug where they send DESTROY_CQ
 		 * with a 16 byte write instead of 24. Old kernels didn't
drivers/infiniband/hw/mlx4/sysfs.c +1 -1
index 24ee79aa2122..88f534cf690e 100644
@@ -223,7 +223,7 @@ void del_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num,
 static int add_port_entries(struct mlx4_ib_dev *device, int port_num)
 {
 	int i;
-	char buff[11];
+	char buff[12];
 	struct mlx4_ib_iov_port *port = NULL;
 	int ret = 0 ;
 	struct ib_port_attr attr;
drivers/infiniband/hw/mlx5/fs.c +1 -1
index 5a13d902b064..1022cebd0a46 100644
@@ -2471,8 +2471,8 @@ static int UVERBS_HANDLER(MLX5_IB_METHOD_STEERING_ANCHOR_CREATE)(
 	mlx5_steering_anchor_destroy_res(ft_prio);
 put_flow_table:
 	put_flow_table(dev, ft_prio, true);
-	mutex_unlock(&dev->flow_db->lock);
 free_obj:
+	mutex_unlock(&dev->flow_db->lock);
 	kfree(obj);
 
 	return err;
drivers/infiniband/hw/mlx5/main.c +1 -1
index 3178df55c4d8..0baf3b5518b4 100644
@@ -2074,7 +2074,7 @@ static inline char *mmap_cmd2str(enum mlx5_ib_mmap_cmd cmd)
 	case MLX5_IB_MMAP_DEVICE_MEM:
 		return "Device Memory";
 	default:
-		return NULL;
+		return "Unknown";
 	}
 }
 
drivers/infiniband/sw/siw/siw_cm.c +12 -4
index 552d8271e423..dc679c34ceef 100644
@@ -973,6 +973,7 @@ static void siw_accept_newconn(struct siw_cep *cep)
 			siw_cep_put(cep);
 			new_cep->listen_cep = NULL;
 			if (rv) {
+				siw_cancel_mpatimer(new_cep);
 				siw_cep_set_free(new_cep);
 				goto error;
 			}
@@ -1097,9 +1098,12 @@ static void siw_cm_work_handler(struct work_struct *w)
 				/*
 				 * Socket close before MPA request received.
 				 */
-				siw_dbg_cep(cep, "no mpareq: drop listener\n");
-				siw_cep_put(cep->listen_cep);
-				cep->listen_cep = NULL;
+				if (cep->listen_cep) {
+					siw_dbg_cep(cep,
+						"no mpareq: drop listener\n");
+					siw_cep_put(cep->listen_cep);
+					cep->listen_cep = NULL;
+				}
 			}
 		}
 		release_cep = 1;
@@ -1222,7 +1226,11 @@ static void siw_cm_llp_data_ready(struct sock *sk)
 	if (!cep)
 		goto out;
 
-	siw_dbg_cep(cep, "state: %d\n", cep->state);
+	siw_dbg_cep(cep, "cep state: %d, socket state %d\n",
+		    cep->state, sk->sk_state);
+
+	if (sk->sk_state != TCP_ESTABLISHED)
+		goto out;
 
 	switch (cep->state) {
 	case SIW_EPSTATE_RDMA_MODE:
drivers/infiniband/ulp/srp/ib_srp.c +5 -11
index a7580c4855fe..c4dcef76e964 100644
@@ -2789,7 +2789,6 @@ static int srp_abort(struct scsi_cmnd *scmnd)
 	u32 tag;
 	u16 ch_idx;
 	struct srp_rdma_ch *ch;
-	int ret;
 
 	shost_printk(KERN_ERR, target->scsi_host, "SRP abort called\n");
 
@@ -2803,19 +2802,14 @@ static int srp_abort(struct scsi_cmnd *scmnd)
 	shost_printk(KERN_ERR, target->scsi_host,
 		     "Sending SRP abort for tag %#x\n", tag);
 	if (srp_send_tsk_mgmt(ch, tag, scmnd->device->lun,
-			      SRP_TSK_ABORT_TASK, NULL) == 0)
-		ret = SUCCESS;
-	else if (target->rport->state == SRP_RPORT_LOST)
-		ret = FAST_IO_FAIL;
-	else
-		ret = FAILED;
-	if (ret == SUCCESS) {
+			      SRP_TSK_ABORT_TASK, NULL) == 0) {
 		srp_free_req(ch, req, scmnd, 0);
-		scmnd->result = DID_ABORT << 16;
-		scsi_done(scmnd);
+		return SUCCESS;
 	}
+	if (target->rport->state == SRP_RPORT_LOST)
+		return FAST_IO_FAIL;
 
-	return ret;
+	return FAILED;
 }
 
 static int srp_reset_device(struct scsi_cmnd *scmnd)
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +14 -4
index db33dc87f69e..8966f7d5aab6 100644
@@ -1886,13 +1886,23 @@ static void __arm_smmu_tlb_inv_range(struct arm_smmu_cmdq_ent *cmd,
 		/* Get the leaf page size */
 		tg = __ffs(smmu_domain->domain.pgsize_bitmap);
 
+		num_pages = size >> tg;
+
 		/* Convert page size of 12,14,16 (log2) to 1,2,3 */
 		cmd->tlbi.tg = (tg - 10) / 2;
 
-		/* Determine what level the granule is at */
-		cmd->tlbi.ttl = 4 - ((ilog2(granule) - 3) / (tg - 3));
-
-		num_pages = size >> tg;
+		/*
+		 * Determine what level the granule is at. For non-leaf, both
+		 * io-pgtable and SVA pass a nominal last-level granule because
+		 * they don't know what level(s) actually apply, so ignore that
+		 * and leave TTL=0. However for various errata reasons we still
+		 * want to use a range command, so avoid the SVA corner case
+		 * where both scale and num could be 0 as well.
+		 */
+		if (cmd->tlbi.leaf)
+			cmd->tlbi.ttl = 4 - ((ilog2(granule) - 3) / (tg - 3));
+		else if ((num_pages & CMDQ_TLBI_RANGE_NUM_MAX) == 1)
+			num_pages++;
 	}
 
 	cmds.num = 0;
drivers/iommu/intel/iommu.c +0 -16
index d4b5d20bd6dd..5c4f5aa8e87e 100644
@@ -3163,13 +3163,6 @@ static int iommu_suspend(void)
 	struct intel_iommu *iommu = NULL;
 	unsigned long flag;
 
-	for_each_active_iommu(iommu, drhd) {
-		iommu->iommu_state = kcalloc(MAX_SR_DMAR_REGS, sizeof(u32),
-					     GFP_KERNEL);
-		if (!iommu->iommu_state)
-			goto nomem;
-	}
-
 	iommu_flush_all();
 
 	for_each_active_iommu(iommu, drhd) {
@@ -3189,12 +3182,6 @@ static int iommu_suspend(void)
 		raw_spin_unlock_irqrestore(&iommu->register_lock, flag);
 	}
 	return 0;
-
-nomem:
-	for_each_active_iommu(iommu, drhd)
-		kfree(iommu->iommu_state);
-
-	return -ENOMEM;
 }
 
 static void iommu_resume(void)
@@ -3226,9 +3213,6 @@ static void iommu_resume(void)
 
 		raw_spin_unlock_irqrestore(&iommu->register_lock, flag);
 	}
-
-	for_each_active_iommu(iommu, drhd)
-		kfree(iommu->iommu_state);
 }
 
 static struct syscore_ops iommu_syscore_ops = {
drivers/iommu/intel/iommu.h +1 -1
index db9df7c3790c..c99cb715bd9a 100644
@@ -595,7 +595,7 @@ struct intel_iommu {
 	struct iopf_queue *iopf_queue;
 	unsigned char iopfq_name[16];
 	struct q_inval  *qi;            /* Queued invalidation info */
-	u32 *iommu_state; /* Store iommu states between suspend and resume.*/
+	u32 iommu_state[MAX_SR_DMAR_REGS]; /* Store iommu states between suspend and resume.*/
 
 #ifdef CONFIG_IRQ_REMAP
 	struct ir_table *ir_table;	/* Interrupt remapping info */
drivers/iommu/mtk_iommu.c +4 -5
index 9673cd60c84f..0ba2a63a9538 100644
@@ -223,7 +223,7 @@ struct mtk_iommu_data {
 	struct device			*smicomm_dev;
 
 	struct mtk_iommu_bank_data	*bank;
-	struct mtk_iommu_domain		*share_dom; /* For 2 HWs share pgtable */
+	struct mtk_iommu_domain		*share_dom;
 
 	struct regmap			*pericfg;
 	struct mutex			mutex; /* Protect m4u_group/m4u_dom above */
@@ -579,8 +579,8 @@ static int mtk_iommu_domain_finalise(struct mtk_iommu_domain *dom,
 	struct mtk_iommu_domain	*share_dom = data->share_dom;
 	const struct mtk_iommu_iova_region *region;
 
-	/* Always use share domain in sharing pgtable case */
-	if (MTK_IOMMU_HAS_FLAG(data->plat_data, SHARE_PGTABLE) && share_dom) {
+	/* Share pgtable when 2 MM IOMMU share the pgtable or one IOMMU use multiple iova ranges */
+	if (share_dom) {
 		dom->iop = share_dom->iop;
 		dom->cfg = share_dom->cfg;
 		dom->domain.pgsize_bitmap = share_dom->cfg.pgsize_bitmap;
@@ -613,8 +613,7 @@ static int mtk_iommu_domain_finalise(struct mtk_iommu_domain *dom,
 	/* Update our support page sizes bitmap */
 	dom->domain.pgsize_bitmap = dom->cfg.pgsize_bitmap;
 
-	if (MTK_IOMMU_HAS_FLAG(data->plat_data, SHARE_PGTABLE))
-		data->share_dom = dom;
+	data->share_dom = dom;
 
 update_iova_region:
 	/* Update the iova region for this domain */
drivers/leds/led-core.c +0 -4
index aad8bc44459f..d94d60b52646 100644
@@ -424,10 +424,6 @@ int led_compose_name(struct device *dev, struct led_init_data *init_data,
 
 	led_parse_fwnode_props(dev, fwnode, &props);
 
-	/* We want to label LEDs that can produce full range of colors
-	 * as RGB, not multicolor */
-	BUG_ON(props.color == LED_COLOR_ID_MULTI);
-
 	if (props.label) {
 		/*
 		 * If init_data.devicename is NULL, then it indicates that
drivers/md/dm-zoned-target.c +7 -8
index 95b132b52f33..4abe1e2f8ad8 100644
@@ -748,17 +748,16 @@ static int dmz_get_zoned_device(struct dm_target *ti, char *path,
 /*
  * Cleanup zoned device information.
  */
-static void dmz_put_zoned_device(struct dm_target *ti)
+static void dmz_put_zoned_devices(struct dm_target *ti)
 {
 	struct dmz_target *dmz = ti->private;
 	int i;
 
-	for (i = 0; i < dmz->nr_ddevs; i++) {
-		if (dmz->ddev[i]) {
+	for (i = 0; i < dmz->nr_ddevs; i++)
+		if (dmz->ddev[i])
 			dm_put_device(ti, dmz->ddev[i]);
-			dmz->ddev[i] = NULL;
-		}
-	}
+
+	kfree(dmz->ddev);
 }
 
 static int dmz_fixup_devices(struct dm_target *ti)
@@ -948,7 +947,7 @@ static int dmz_ctr(struct dm_target *ti, unsigned int argc, char **argv)
 err_meta:
 	dmz_dtr_metadata(dmz->metadata);
 err_dev:
-	dmz_put_zoned_device(ti);
+	dmz_put_zoned_devices(ti);
 err:
 	kfree(dmz->dev);
 	kfree(dmz);
@@ -978,7 +977,7 @@ static void dmz_dtr(struct dm_target *ti)
 
 	bioset_exit(&dmz->bio_set);
 
-	dmz_put_zoned_device(ti);
+	dmz_put_zoned_devices(ti);
 
 	mutex_destroy(&dmz->chunk_lock);
 
drivers/md/raid5.c +7 -0
index fbef3c9badb6..98d4e93efa31 100644
@@ -854,6 +854,13 @@ struct stripe_head *raid5_get_active_stripe(struct r5conf *conf,
 
 		set_bit(R5_INACTIVE_BLOCKED, &conf->cache_state);
 		r5l_wake_reclaim(conf->log, 0);
+
+		/* release batch_last before wait to avoid risk of deadlock */
+		if (ctx && ctx->batch_last) {
+			raid5_release_stripe(ctx->batch_last);
+			ctx->batch_last = NULL;
+		}
+
 		wait_event_lock_irq(conf->wait_for_stripe,
 				    is_inactive_blocked(conf, hash),
 				    *(conf->hash_locks + hash));
drivers/mtd/ubi/build.c +7 -0
index 1662c12e24ad..6fbd77dc1d18 100644
@@ -893,6 +893,13 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
 		return -EINVAL;
 	}
 
+	/* UBI cannot work on flashes with zero erasesize. */
+	if (!mtd->erasesize) {
+		pr_err("ubi: refuse attaching mtd%d - zero erasesize flash is not supported\n",
+			mtd->index);
+		return -EINVAL;
+	}
+
 	if (ubi_num == UBI_DEV_NUM_AUTO) {
 		/* Search for an empty slot in the @ubi_devices array */
 		for (ubi_num = 0; ubi_num < UBI_MAX_DEVICES; ubi_num++)
drivers/net/dsa/mv88e6xxx/chip.c +4 -2
index a73008b9e0b3..ba906dfab055 100644
@@ -3012,14 +3012,16 @@ static void mv88e6xxx_hardware_reset(struct mv88e6xxx_chip *chip)
 		 * from the wrong location resulting in the switch booting
 		 * to wrong mode and inoperable.
 		 */
-		mv88e6xxx_g1_wait_eeprom_done(chip);
+		if (chip->info->ops->get_eeprom)
+			mv88e6xxx_g2_eeprom_wait(chip);
 
 		gpiod_set_value_cansleep(gpiod, 1);
 		usleep_range(10000, 20000);
 		gpiod_set_value_cansleep(gpiod, 0);
 		usleep_range(10000, 20000);
 
-		mv88e6xxx_g1_wait_eeprom_done(chip);
+		if (chip->info->ops->get_eeprom)
+			mv88e6xxx_g2_eeprom_wait(chip);
 	}
 }
 
drivers/net/dsa/mv88e6xxx/global1.c +0 -31
index 5848112036b0..964928285782 100644
@@ -75,37 +75,6 @@ static int mv88e6xxx_g1_wait_init_ready(struct mv88e6xxx_chip *chip)
 	return mv88e6xxx_g1_wait_bit(chip, MV88E6XXX_G1_STS, bit, 1);
 }
 
-void mv88e6xxx_g1_wait_eeprom_done(struct mv88e6xxx_chip *chip)
-{
-	const unsigned long timeout = jiffies + 1 * HZ;
-	u16 val;
-	int err;
-
-	/* Wait up to 1 second for the switch to finish reading the
-	 * EEPROM.
-	 */
-	while (time_before(jiffies, timeout)) {
-		err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_STS, &val);
-		if (err) {
-			dev_err(chip->dev, "Error reading status");
-			return;
-		}
-
-		/* If the switch is still resetting, it may not
-		 * respond on the bus, and so MDIO read returns
-		 * 0xffff. Differentiate between that, and waiting for
-		 * the EEPROM to be done by bit 0 being set.
-		 */
-		if (val != 0xffff &&
-		    val & BIT(MV88E6XXX_G1_STS_IRQ_EEPROM_DONE))
-			return;
-
-		usleep_range(1000, 2000);
-	}
-
-	dev_err(chip->dev, "Timeout waiting for EEPROM done");
-}
-
 /* Offset 0x01: Switch MAC Address Register Bytes 0 & 1
  * Offset 0x02: Switch MAC Address Register Bytes 2 & 3
  * Offset 0x03: Switch MAC Address Register Bytes 4 & 5
drivers/net/dsa/mv88e6xxx/global1.h +0 -1
index 65958b2a0d3a..04b57a21f786 100644
@@ -281,7 +281,6 @@ int mv88e6xxx_g1_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr);
 int mv88e6185_g1_reset(struct mv88e6xxx_chip *chip);
 int mv88e6352_g1_reset(struct mv88e6xxx_chip *chip);
 int mv88e6250_g1_reset(struct mv88e6xxx_chip *chip);
-void mv88e6xxx_g1_wait_eeprom_done(struct mv88e6xxx_chip *chip);
 
 int mv88e6185_g1_ppu_enable(struct mv88e6xxx_chip *chip);
 int mv88e6185_g1_ppu_disable(struct mv88e6xxx_chip *chip);
drivers/net/dsa/mv88e6xxx/global2.c +1 -1
index ec49939968fa..ac302a935ce6 100644
@@ -340,7 +340,7 @@ int mv88e6xxx_g2_pot_clear(struct mv88e6xxx_chip *chip)
  * Offset 0x15: EEPROM Addr (for 8-bit data access)
  */
 
-static int mv88e6xxx_g2_eeprom_wait(struct mv88e6xxx_chip *chip)
+int mv88e6xxx_g2_eeprom_wait(struct mv88e6xxx_chip *chip)
 {
 	int bit = __bf_shf(MV88E6XXX_G2_EEPROM_CMD_BUSY);
 	int err;
drivers/net/dsa/mv88e6xxx/global2.h +1 -0
index c05fad5c9f19..751a6c988de4 100644
@@ -359,6 +359,7 @@ int mv88e6xxx_g2_trunk_clear(struct mv88e6xxx_chip *chip);
 
 int mv88e6xxx_g2_device_mapping_write(struct mv88e6xxx_chip *chip, int target,
 				      int port);
+int mv88e6xxx_g2_eeprom_wait(struct mv88e6xxx_chip *chip);
 
 extern const struct mv88e6xxx_irq_ops mv88e6097_watchdog_ops;
 extern const struct mv88e6xxx_irq_ops mv88e6250_watchdog_ops;
drivers/net/ethernet/ibm/ibmveth.c +12 -13
index 0b4ec6e41eb4..1d21a281222d 100644
@@ -1308,24 +1308,23 @@ static void ibmveth_rx_csum_helper(struct sk_buff *skb,
 	 * the user space for finding a flow. During this process, OVS computes
 	 * checksum on the first packet when CHECKSUM_PARTIAL flag is set.
 	 *
-	 * So, re-compute TCP pseudo header checksum when configured for
-	 * trunk mode.
+	 * So, re-compute TCP pseudo header checksum.
 	 */
+
 	if (iph_proto == IPPROTO_TCP) {
 		struct tcphdr *tcph = (struct tcphdr *)(skb->data + iphlen);
+
 		if (tcph->check == 0x0000) {
 			/* Recompute TCP pseudo header checksum  */
-			if (adapter->is_active_trunk) {
-				tcphdrlen = skb->len - iphlen;
-				if (skb_proto == ETH_P_IP)
-					tcph->check =
-					 ~csum_tcpudp_magic(iph->saddr,
-					iph->daddr, tcphdrlen, iph_proto, 0);
-				else if (skb_proto == ETH_P_IPV6)
-					tcph->check =
-					 ~csum_ipv6_magic(&iph6->saddr,
-					&iph6->daddr, tcphdrlen, iph_proto, 0);
-			}
+			tcphdrlen = skb->len - iphlen;
+			if (skb_proto == ETH_P_IP)
+				tcph->check =
+				 ~csum_tcpudp_magic(iph->saddr,
+				iph->daddr, tcphdrlen, iph_proto, 0);
+			else if (skb_proto == ETH_P_IPV6)
+				tcph->check =
+				 ~csum_ipv6_magic(&iph6->saddr,
+				&iph6->daddr, tcphdrlen, iph_proto, 0);
 			/* Setup SKB fields for checksum offload */
 			skb_partial_csum_set(skb, iphlen,
 					     offsetof(struct tcphdr, check));
drivers/net/ethernet/intel/i40e/i40e_ptp.c +2 -2
index ffea0c9c82f1..97a9efe7b713 100644
@@ -361,9 +361,9 @@ static int i40e_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm)
 				   1000000ULL << 16);
 
 	if (neg_adj)
-		adj = I40E_PTP_40GB_INCVAL - diff;
+		adj = freq - diff;
 	else
-		adj = I40E_PTP_40GB_INCVAL + diff;
+		adj = freq + diff;
 
 	wr32(hw, I40E_PRTTSYN_INC_L, adj & 0xFFFFFFFF);
 	wr32(hw, I40E_PRTTSYN_INC_H, adj >> 32);
drivers/net/ethernet/mediatek/mtk_eth_soc.c +2 -2
index 0ac5ae16308f..17e6ac4445af 100644
@@ -2862,8 +2862,8 @@ static irqreturn_t mtk_handle_irq_rx(int irq, void *_eth)
 
 	eth->rx_events++;
 	if (likely(napi_schedule_prep(&eth->rx_napi))) {
-		__napi_schedule(&eth->rx_napi);
 		mtk_rx_irq_disable(eth, eth->soc->txrx.rx_irq_done_mask);
+		__napi_schedule(&eth->rx_napi);
 	}
 
 	return IRQ_HANDLED;
@@ -2875,8 +2875,8 @@ static irqreturn_t mtk_handle_irq_tx(int irq, void *_eth)
 
 	eth->tx_events++;
 	if (likely(napi_schedule_prep(&eth->tx_napi))) {
-		__napi_schedule(&eth->tx_napi);
 		mtk_tx_irq_disable(eth, MTK_TX_DONE_INT);
+		__napi_schedule(&eth->tx_napi);
 	}
 
 	return IRQ_HANDLED;
drivers/net/ethernet/qlogic/qed/qed_ll2.h +1 -1
index 0bfc375161ed..a174c6fc626a 100644
@@ -110,9 +110,9 @@ struct qed_ll2_info {
 	enum core_tx_dest tx_dest;
 	u8 tx_stats_en;
 	bool main_func_queue;
+	struct qed_ll2_cbs cbs;
 	struct qed_ll2_rx_queue rx_queue;
 	struct qed_ll2_tx_queue tx_queue;
-	struct qed_ll2_cbs cbs;
 };
 
 extern const struct qed_ll2_ops qed_ll2_ops_pass;
drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c +5 -2
index 2b38a499a404..533f5245ad94 100644
@@ -105,6 +105,7 @@ struct stm32_ops {
 	int (*parse_data)(struct stm32_dwmac *dwmac,
 			  struct device *dev);
 	u32 syscfg_eth_mask;
+	bool clk_rx_enable_in_suspend;
 };
 
 static int stm32_dwmac_init(struct plat_stmmacenet_data *plat_dat)
@@ -122,7 +123,8 @@ static int stm32_dwmac_init(struct plat_stmmacenet_data *plat_dat)
 	if (ret)
 		return ret;
 
-	if (!dwmac->dev->power.is_suspended) {
+	if (!dwmac->ops->clk_rx_enable_in_suspend ||
+	    !dwmac->dev->power.is_suspended) {
 		ret = clk_prepare_enable(dwmac->clk_rx);
 		if (ret) {
 			clk_disable_unprepare(dwmac->clk_tx);
@@ -515,7 +517,8 @@ static struct stm32_ops stm32mp1_dwmac_data = {
 	.suspend = stm32mp1_suspend,
 	.resume = stm32mp1_resume,
 	.parse_data = stm32mp1_parse_data,
-	.syscfg_eth_mask = SYSCFG_MP1_ETH_MASK
+	.syscfg_eth_mask = SYSCFG_MP1_ETH_MASK,
+	.clk_rx_enable_in_suspend = true
 };
 
 static const struct of_device_id stm32_dwmac_match[] = {
drivers/net/ethernet/ti/am65-cpsw-nuss.c +1 -0
index 25466cbdc16b..9f2553799895 100644
@@ -1614,6 +1614,7 @@ static int am65_cpsw_nuss_init_tx_chns(struct am65_cpsw_common *common)
 		if (tx_chn->irq <= 0) {
 			dev_err(dev, "Failed to get tx dma irq %d\n",
 				tx_chn->irq);
+			ret = tx_chn->irq ?: -ENXIO;
 			goto err;
 		}
 
drivers/net/usb/smsc75xx.c +3 -1
index 5d6454fedb3f..78ad2da3ee29 100644
@@ -90,7 +90,9 @@ static int __must_check __smsc75xx_read_reg(struct usbnet *dev, u32 index,
 	ret = fn(dev, USB_VENDOR_REQUEST_READ_REGISTER, USB_DIR_IN
 		 | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
 		 0, index, &buf, 4);
-	if (unlikely(ret < 0)) {
+	if (unlikely(ret < 4)) {
+		ret = ret < 0 ? ret : -ENODATA;
+
 		netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n",
 			    index, ret);
 		return ret;
drivers/net/vrf.c +6 -6
index f6dcec66f0a4..208df4d41939 100644
@@ -664,7 +664,7 @@ static int vrf_finish_output6(struct net *net, struct sock *sk,
 	skb->protocol = htons(ETH_P_IPV6);
 	skb->dev = dev;
 
-	rcu_read_lock_bh();
+	rcu_read_lock();
 	nexthop = rt6_nexthop((struct rt6_info *)dst, &ipv6_hdr(skb)->daddr);
 	neigh = __ipv6_neigh_lookup_noref(dst->dev, nexthop);
 	if (unlikely(!neigh))
@@ -672,10 +672,10 @@ static int vrf_finish_output6(struct net *net, struct sock *sk,
 	if (!IS_ERR(neigh)) {
 		sock_confirm_neigh(skb, neigh);
 		ret = neigh_output(neigh, skb, false);
-		rcu_read_unlock_bh();
+		rcu_read_unlock();
 		return ret;
 	}
-	rcu_read_unlock_bh();
+	rcu_read_unlock();
 
 	IP6_INC_STATS(dev_net(dst->dev),
 		      ip6_dst_idev(dst), IPSTATS_MIB_OUTNOROUTES);
@@ -889,7 +889,7 @@ static int vrf_finish_output(struct net *net, struct sock *sk, struct sk_buff *s
 		}
 	}
 
-	rcu_read_lock_bh();
+	rcu_read_lock();
 
 	neigh = ip_neigh_for_gw(rt, skb, &is_v6gw);
 	if (!IS_ERR(neigh)) {
@@ -898,11 +898,11 @@ static int vrf_finish_output(struct net *net, struct sock *sk, struct sk_buff *s
 		sock_confirm_neigh(skb, neigh);
 		/* if crossing protocols, can not use the cached header */
 		ret = neigh_output(neigh, skb, is_v6gw);
-		rcu_read_unlock_bh();
+		rcu_read_unlock();
 		return ret;
 	}
 
-	rcu_read_unlock_bh();
+	rcu_read_unlock();
 	vrf_tx_error(skb->dev, skb);
 	return -EINVAL;
 }
drivers/net/vxlan/vxlan_core.c +2 -2
index 0c3eb850fcb7..619dd71c9d75 100644
@@ -1910,7 +1910,7 @@ static int arp_reduce(struct net_device *dev, struct sk_buff *skb, __be32 vni)
 		struct vxlan_fdb *f;
 		struct sk_buff	*reply;
 
-		if (!(n->nud_state & NUD_CONNECTED)) {
+		if (!(READ_ONCE(n->nud_state) & NUD_CONNECTED)) {
 			neigh_release(n);
 			goto out;
 		}
@@ -2074,7 +2074,7 @@ static int neigh_reduce(struct net_device *dev, struct sk_buff *skb, __be32 vni)
 		struct vxlan_fdb *f;
 		struct sk_buff *reply;
 
-		if (!(n->nud_state & NUD_CONNECTED)) {
+		if (!(READ_ONCE(n->nud_state) & NUD_CONNECTED)) {
 			neigh_release(n);
 			goto out;
 		}
drivers/net/wan/fsl_ucc_hdlc.c +10 -2
index 1c53b5546927..5fec8abe8e1d 100644
@@ -34,6 +34,8 @@
 #define TDM_PPPOHT_SLIC_MAXIN
 #define RX_BD_ERRORS (R_CD_S | R_OV_S | R_CR_S | R_AB_S | R_NO_S | R_LG_S)
 
+static int uhdlc_close(struct net_device *dev);
+
 static struct ucc_tdm_info utdm_primary_info = {
 	.uf_info = {
 		.tsa = 0,
@@ -708,6 +710,7 @@ static int uhdlc_open(struct net_device *dev)
 	hdlc_device *hdlc = dev_to_hdlc(dev);
 	struct ucc_hdlc_private *priv = hdlc->priv;
 	struct ucc_tdm *utdm = priv->utdm;
+	int rc = 0;
 
 	if (priv->hdlc_busy != 1) {
 		if (request_irq(priv->ut_info->uf_info.irq,
@@ -731,10 +734,13 @@ static int uhdlc_open(struct net_device *dev)
 		napi_enable(&priv->napi);
 		netdev_reset_queue(dev);
 		netif_start_queue(dev);
-		hdlc_open(dev);
+
+		rc = hdlc_open(dev);
+		if (rc)
+			uhdlc_close(dev);
 	}
 
-	return 0;
+	return rc;
 }
 
 static void uhdlc_memclean(struct ucc_hdlc_private *priv)
@@ -824,6 +830,8 @@ static int uhdlc_close(struct net_device *dev)
 	netdev_reset_queue(dev);
 	priv->hdlc_busy = 0;
 
+	hdlc_close(dev);
+
 	return 0;
 }
 
drivers/net/wireless/intel/iwlwifi/fw/error-dump.h +3 -3
index c62576e442bd..2d481849a9c2 100644
@@ -295,9 +295,9 @@ struct iwl_fw_ini_fifo_hdr {
 struct iwl_fw_ini_error_dump_range {
 	__le32 range_data_size;
 	union {
-		__le32 internal_base_addr;
-		__le64 dram_base_addr;
-		__le32 page_num;
+		__le32 internal_base_addr __packed;
+		__le64 dram_base_addr __packed;
+		__le32 page_num __packed;
 		struct iwl_fw_ini_fifo_hdr fifo_hdr;
 		struct iwl_cmd_header fw_pkt_hdr;
 	};
drivers/net/wireless/intel/iwlwifi/mvm/fw.c +1 -1
index 887d0789c96c..2e3c98eaa400 100644
@@ -796,7 +796,7 @@ int iwl_run_init_mvm_ucode(struct iwl_mvm *mvm)
 		mvm->nvm_data->bands[0].n_channels = 1;
 		mvm->nvm_data->bands[0].n_bitrates = 1;
 		mvm->nvm_data->bands[0].bitrates =
-			(void *)((u8 *)mvm->nvm_data->channels + 1);
+			(void *)(mvm->nvm_data->channels + 1);
 		mvm->nvm_data->bands[0].bitrates->hw_value = 10;
 	}
 
drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c +2 -2
index a04b66284af4..7351acac6932 100644
@@ -965,8 +965,8 @@ void mwifiex_11n_rxba_sync_event(struct mwifiex_private *priv,
 			}
 		}
 
-		tlv_buf_left -= (sizeof(*tlv_rxba) + tlv_len);
-		tmp = (u8 *)tlv_rxba + tlv_len + sizeof(*tlv_rxba);
+		tlv_buf_left -= (sizeof(tlv_rxba->header) + tlv_len);
+		tmp = (u8 *)tlv_rxba  + sizeof(tlv_rxba->header) + tlv_len;
 		tlv_rxba = (struct mwifiex_ie_types_rxba_sync *)tmp;
 	}
 }
drivers/net/wireless/marvell/mwifiex/sta_rx.c +9 -7
index 65420ad67416..257737137cd7 100644
@@ -86,7 +86,8 @@ int mwifiex_process_rx_packet(struct mwifiex_private *priv,
 	rx_pkt_len = le16_to_cpu(local_rx_pd->rx_pkt_length);
 	rx_pkt_hdr = (void *)local_rx_pd + rx_pkt_off;
 
-	if (sizeof(*rx_pkt_hdr) + rx_pkt_off > skb->len) {
+	if (sizeof(rx_pkt_hdr->eth803_hdr) + sizeof(rfc1042_header) +
+	    rx_pkt_off > skb->len) {
 		mwifiex_dbg(priv->adapter, ERROR,
 			    "wrong rx packet offset: len=%d, rx_pkt_off=%d\n",
 			    skb->len, rx_pkt_off);
@@ -95,12 +96,13 @@ int mwifiex_process_rx_packet(struct mwifiex_private *priv,
 		return -1;
 	}
 
-	if ((!memcmp(&rx_pkt_hdr->rfc1042_hdr, bridge_tunnel_header,
-		     sizeof(bridge_tunnel_header))) ||
-	    (!memcmp(&rx_pkt_hdr->rfc1042_hdr, rfc1042_header,
-		     sizeof(rfc1042_header)) &&
-	     ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_AARP &&
-	     ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_IPX)) {
+	if (sizeof(*rx_pkt_hdr) + rx_pkt_off <= skb->len &&
+	    ((!memcmp(&rx_pkt_hdr->rfc1042_hdr, bridge_tunnel_header,
+		      sizeof(bridge_tunnel_header))) ||
+	     (!memcmp(&rx_pkt_hdr->rfc1042_hdr, rfc1042_header,
+		      sizeof(rfc1042_header)) &&
+	      ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_AARP &&
+	      ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_IPX))) {
 		/*
 		 *  Replace the 803 header and rfc1042 header (llc/snap) with an
 		 *    EthernetII header, keep the src/dst and snap_type
drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c +0 -7
index 0acabba2d1a5..5d402cf2951c 100644
@@ -131,15 +131,8 @@ u8 mt76x02_get_lna_gain(struct mt76x02_dev *dev,
 			s8 *lna_2g, s8 *lna_5g,
 			struct ieee80211_channel *chan)
 {
-	u16 val;
 	u8 lna;
 
-	val = mt76x02_eeprom_get(dev, MT_EE_NIC_CONF_1);
-	if (val & MT_EE_NIC_CONF_1_LNA_EXT_2G)
-		*lna_2g = 0;
-	if (val & MT_EE_NIC_CONF_1_LNA_EXT_5G)
-		memset(lna_5g, 0, sizeof(s8) * 3);
-
 	if (chan->band == NL80211_BAND_2GHZ)
 		lna = *lna_2g;
 	else if (chan->hw_value <= 64)
drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c +11 -2
index c57e05a5c65e..91807bf662dd 100644
@@ -256,7 +256,8 @@ void mt76x2_read_rx_gain(struct mt76x02_dev *dev)
 	struct ieee80211_channel *chan = dev->mphy.chandef.chan;
 	int channel = chan->hw_value;
 	s8 lna_5g[3], lna_2g;
-	u8 lna;
+	bool use_lna;
+	u8 lna = 0;
 	u16 val;
 
 	if (chan->band == NL80211_BAND_2GHZ)
@@ -275,7 +276,15 @@ void mt76x2_read_rx_gain(struct mt76x02_dev *dev)
 	dev->cal.rx.mcu_gain |= (lna_5g[1] & 0xff) << 16;
 	dev->cal.rx.mcu_gain |= (lna_5g[2] & 0xff) << 24;
 
-	lna = mt76x02_get_lna_gain(dev, &lna_2g, lna_5g, chan);
+	val = mt76x02_eeprom_get(dev, MT_EE_NIC_CONF_1);
+	if (chan->band == NL80211_BAND_2GHZ)
+		use_lna = !(val & MT_EE_NIC_CONF_1_LNA_EXT_2G);
+	else
+		use_lna = !(val & MT_EE_NIC_CONF_1_LNA_EXT_5G);
+
+	if (use_lna)
+		lna = mt76x02_get_lna_gain(dev, &lna_2g, lna_5g, chan);
+
 	dev->cal.rx.lna_gain = mt76x02_sign_extend(lna, 8);
 }
 EXPORT_SYMBOL_GPL(mt76x2_read_rx_gain);
drivers/of/dynamic.c +3 -3
index 95501b77ef31..0fbf331a748f 100644
@@ -902,13 +902,13 @@ int of_changeset_action(struct of_changeset *ocs, unsigned long action,
 {
 	struct of_changeset_entry *ce;
 
+	if (WARN_ON(action >= ARRAY_SIZE(action_names)))
+		return -EINVAL;
+
 	ce = kzalloc(sizeof(*ce), GFP_KERNEL);
 	if (!ce)
 		return -ENOMEM;
 
-	if (WARN_ON(action >= ARRAY_SIZE(action_names)))
-		return -EINVAL;
-
 	/* get a reference to the node */
 	ce->action = action;
 	ce->np = of_node_get(np);
drivers/pci/controller/dwc/pcie-qcom.c +1 -3
index d24712a76ba7..0ccd92faf078 100644
@@ -40,7 +40,6 @@
 #define PARF_PHY_REFCLK				0x4c
 #define PARF_CONFIG_BITS			0x50
 #define PARF_DBI_BASE_ADDR			0x168
-#define PARF_SLV_ADDR_SPACE_SIZE_2_3_3		0x16c /* Register offset specific to IP ver 2.3.3 */
 #define PARF_MHI_CLOCK_RESET_CTRL		0x174
 #define PARF_AXI_MSTR_WR_ADDR_HALT		0x178
 #define PARF_AXI_MSTR_WR_ADDR_HALT_V2		0x1a8
@@ -1148,8 +1147,7 @@ static int qcom_pcie_post_init_2_3_3(struct qcom_pcie *pcie)
 	u16 offset = dw_pcie_find_capability(pci, PCI_CAP_ID_EXP);
 	u32 val;
 
-	writel(SLV_ADDR_SPACE_SZ,
-		pcie->parf + PARF_SLV_ADDR_SPACE_SIZE_2_3_3);
+	writel(SLV_ADDR_SPACE_SZ, pcie->parf + PARF_SLV_ADDR_SPACE_SIZE);
 
 	val = readl(pcie->parf + PARF_PHY_CTRL);
 	val &= ~BIT(0);
drivers/ptp/ptp_ocp.c +0 -1
index a48d9b7d2921..8fee9b330b61 100644
@@ -3532,7 +3532,6 @@ ptp_ocp_device_init(struct ptp_ocp *bp, struct pci_dev *pdev)
 	return 0;
 
 out:
-	ptp_ocp_dev_release(&bp->dev);
 	put_device(&bp->dev);
 	return err;
 }
drivers/regulator/core.c +2 -2
index 351f0fd225b1..f6a95f72af18 100644
@@ -5543,6 +5543,8 @@ regulator_register(struct device *dev,
 		goto rinse;
 	}
 	device_initialize(&rdev->dev);
+	dev_set_drvdata(&rdev->dev, rdev);
+	rdev->dev.class = &regulator_class;
 	spin_lock_init(&rdev->err_lock);
 
 	/*
@@ -5604,11 +5606,9 @@ regulator_register(struct device *dev,
 		rdev->supply_name = regulator_desc->supply_name;
 
 	/* register with sysfs */
-	rdev->dev.class = &regulator_class;
 	rdev->dev.parent = config->dev;
 	dev_set_name(&rdev->dev, "regulator.%lu",
 		    (unsigned long) atomic_inc_return(&regulator_no));
-	dev_set_drvdata(&rdev->dev, rdev);
 
 	/* set regulator constraints */
 	if (init_data)
drivers/regulator/mt6358-regulator.c +55 -98

270 lines not on this page · raw message

drivers/s390/scsi/zfcp_aux.c +5 -4
index df782646e856..ab2f35bc294d 100644
@@ -518,12 +518,12 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn,
 	if (port) {
 		put_device(&port->dev);
 		retval = -EEXIST;
-		goto err_out;
+		goto err_put;
 	}
 
 	port = kzalloc(sizeof(struct zfcp_port), GFP_KERNEL);
 	if (!port)
-		goto err_out;
+		goto err_put;
 
 	rwlock_init(&port->unit_list_lock);
 	INIT_LIST_HEAD(&port->unit_list);
@@ -546,7 +546,7 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn,
 
 	if (dev_set_name(&port->dev, "0x%016llx", (unsigned long long)wwpn)) {
 		kfree(port);
-		goto err_out;
+		goto err_put;
 	}
 	retval = -EINVAL;
 
@@ -563,7 +563,8 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn,
 
 	return port;
 
-err_out:
+err_put:
 	zfcp_ccw_adapter_put(adapter);
+err_out:
 	return ERR_PTR(retval);
 }
drivers/scsi/aacraid/commsup.c +1 -1
index 3f062e4013ab..013a9a334972 100644
@@ -1451,7 +1451,7 @@ static void aac_handle_aif(struct aac_dev * dev, struct fib * fibptr)
 #endif
 				break;
 			}
-			scsi_rescan_device(&device->sdev_gendev);
+			scsi_rescan_device(device);
 			break;
 
 		default:
drivers/scsi/mvumi.c +1 -1
index 05d3ce9b72db..c4acf65379d2 100644
@@ -1500,7 +1500,7 @@ static void mvumi_rescan_devices(struct mvumi_hba *mhba, int id)
 
 	sdev = scsi_device_lookup(mhba->shost, 0, id, 0);
 	if (sdev) {
-		scsi_rescan_device(&sdev->sdev_gendev);
+		scsi_rescan_device(sdev);
 		scsi_device_put(sdev);
 	}
 }
drivers/scsi/scsi_lib.c +1 -1
index fb6e9a7a7f58..d25e1c247253 100644
@@ -2445,7 +2445,7 @@ static void scsi_evt_emit(struct scsi_device *sdev, struct scsi_event *evt)
 		envp[idx++] = "SDEV_MEDIA_CHANGE=1";
 		break;
 	case SDEV_EVT_INQUIRY_CHANGE_REPORTED:
-		scsi_rescan_device(&sdev->sdev_gendev);
+		scsi_rescan_device(sdev);
 		envp[idx++] = "SDEV_UA=INQUIRY_DATA_HAS_CHANGED";
 		break;
 	case SDEV_EVT_CAPACITY_CHANGE_REPORTED:
drivers/scsi/scsi_priv.h +0 -1
index c52de9a973e4..b14545acb40f 100644
@@ -132,7 +132,6 @@ extern int scsi_complete_async_scans(void);
 extern int scsi_scan_host_selected(struct Scsi_Host *, unsigned int,
 				   unsigned int, u64, enum scsi_scan_mode);
 extern void scsi_forget_host(struct Scsi_Host *);
-extern void scsi_rescan_device(struct device *);
 
 /* scsi_sysctl.c */
 #ifdef CONFIG_SYSCTL
drivers/scsi/scsi_scan.c +18 -2
index d12f2dcb4040..ed26c52ed847 100644
@@ -1611,12 +1611,24 @@ int scsi_add_device(struct Scsi_Host *host, uint channel,
 }
 EXPORT_SYMBOL(scsi_add_device);
 
-void scsi_rescan_device(struct device *dev)
+int scsi_rescan_device(struct scsi_device *sdev)
 {
-	struct scsi_device *sdev = to_scsi_device(dev);
+	struct device *dev = &sdev->sdev_gendev;
+	int ret = 0;
 
 	device_lock(dev);
 
+	/*
+	 * Bail out if the device is not running. Otherwise, the rescan may
+	 * block waiting for commands to be executed, with us holding the
+	 * device lock. This can result in a potential deadlock in the power
+	 * management core code when system resume is on-going.
+	 */
+	if (sdev->sdev_state != SDEV_RUNNING) {
+		ret = -EWOULDBLOCK;
+		goto unlock;
+	}
+
 	scsi_attach_vpd(sdev);
 
 	if (sdev->handler && sdev->handler->rescan)
@@ -1629,7 +1641,11 @@ void scsi_rescan_device(struct device *dev)
 			drv->rescan(dev);
 		module_put(dev->driver->owner);
 	}
+
+unlock:
 	device_unlock(dev);
+
+	return ret;
 }
 EXPORT_SYMBOL(scsi_rescan_device);
 
drivers/scsi/scsi_sysfs.c +2 -2
index cac7c902cf70..1f531063d633 100644
@@ -762,7 +762,7 @@ static ssize_t
 store_rescan_field (struct device *dev, struct device_attribute *attr,
 		    const char *buf, size_t count)
 {
-	scsi_rescan_device(dev);
+	scsi_rescan_device(to_scsi_device(dev));
 	return count;
 }
 static DEVICE_ATTR(rescan, S_IWUSR, NULL, store_rescan_field);
@@ -855,7 +855,7 @@ store_state_field(struct device *dev, struct device_attribute *attr,
 		 * waiting for pending I/O to finish.
 		 */
 		blk_mq_run_hw_queues(sdev->request_queue, true);
-		scsi_rescan_device(dev);
+		scsi_rescan_device(sdev);
 	}
 
 	return ret == 0 ? count : -EINVAL;
drivers/scsi/sd.c +88 -22

201 lines not on this page · raw message

drivers/scsi/sd.h +1 -0
index 5eea762f84d1..409dda5350d1 100644
@@ -131,6 +131,7 @@ struct scsi_disk {
 	u8		provisioning_mode;
 	u8		zeroing_mode;
 	u8		nr_actuators;		/* Number of actuators */
+	bool		suspended;	/* Disk is suspended (stopped) */
 	unsigned	ATO : 1;	/* state of disk ATO bit */
 	unsigned	cache_override : 1; /* temp override of WCE,RCD */
 	unsigned	WCE : 1;	/* state of disk WCE bit */
drivers/scsi/smartpqi/smartpqi_init.c +1 -1
index 9f0f69c1ed66..47d487729635 100644
@@ -2278,7 +2278,7 @@ static void pqi_update_device_list(struct pqi_ctrl_info *ctrl_info,
 			device->advertised_queue_depth = device->queue_depth;
 			scsi_change_queue_depth(device->sdev, device->advertised_queue_depth);
 			if (device->rescan) {
-				scsi_rescan_device(&device->sdev->sdev_gendev);
+				scsi_rescan_device(device->sdev);
 				device->rescan = false;
 			}
 		}
drivers/scsi/storvsc_drv.c +1 -1
index 7a1dc5c7c49e..c2d981d5a2dd 100644
@@ -471,7 +471,7 @@ static void storvsc_device_scan(struct work_struct *work)
 	sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun);
 	if (!sdev)
 		goto done;
-	scsi_rescan_device(&sdev->sdev_gendev);
+	scsi_rescan_device(sdev);
 	scsi_device_put(sdev);
 
 done:
drivers/scsi/virtio_scsi.c +1 -1
index 2a79ab16134b..3f8c553f3d91 100644
@@ -325,7 +325,7 @@ static void virtscsi_handle_param_change(struct virtio_scsi *vscsi,
 	/* Handle "Parameters changed", "Mode parameters changed", and
 	   "Capacity data has changed".  */
 	if (asc == 0x2a && (ascq == 0x00 || ascq == 0x01 || ascq == 0x09))
-		scsi_rescan_device(&sdev->sdev_gendev);
+		scsi_rescan_device(sdev);
 
 	scsi_device_put(sdev);
 }
drivers/spi/spi-zynqmp-gqspi.c +8 -4
index c760aac070e5..3b56d5e7080e 100644
@@ -1218,9 +1218,9 @@ static int zynqmp_qspi_probe(struct platform_device *pdev)
 	return 0;
 
 clk_dis_all:
-	pm_runtime_put_sync(&pdev->dev);
-	pm_runtime_set_suspended(&pdev->dev);
 	pm_runtime_disable(&pdev->dev);
+	pm_runtime_put_noidle(&pdev->dev);
+	pm_runtime_set_suspended(&pdev->dev);
 	clk_disable_unprepare(xqspi->refclk);
 clk_dis_pclk:
 	clk_disable_unprepare(xqspi->pclk);
@@ -1244,11 +1244,15 @@ static int zynqmp_qspi_remove(struct platform_device *pdev)
 {
 	struct zynqmp_qspi *xqspi = platform_get_drvdata(pdev);
 
+	pm_runtime_get_sync(&pdev->dev);
+
 	zynqmp_gqspi_write(xqspi, GQSPI_EN_OFST, 0x0);
+
+	pm_runtime_disable(&pdev->dev);
+	pm_runtime_put_noidle(&pdev->dev);
+	pm_runtime_set_suspended(&pdev->dev);
 	clk_disable_unprepare(xqspi->refclk);
 	clk_disable_unprepare(xqspi->pclk);
-	pm_runtime_set_suspended(&pdev->dev);
-	pm_runtime_disable(&pdev->dev);
 
 	return 0;
 }
drivers/target/target_core_device.c +4 -7
index d21f88de197c..301fe376a120 100644
@@ -883,7 +883,6 @@ sector_t target_to_linux_sector(struct se_device *dev, sector_t lb)
 EXPORT_SYMBOL(target_to_linux_sector);
 
 struct devices_idr_iter {
-	struct config_item *prev_item;
 	int (*fn)(struct se_device *dev, void *data);
 	void *data;
 };
@@ -893,11 +892,9 @@ static int target_devices_idr_iter(int id, void *p, void *data)
 {
 	struct devices_idr_iter *iter = data;
 	struct se_device *dev = p;
+	struct config_item *item;
 	int ret;
 
-	config_item_put(iter->prev_item);
-	iter->prev_item = NULL;
-
 	/*
 	 * We add the device early to the idr, so it can be used
 	 * by backend modules during configuration. We do not want
@@ -907,12 +904,13 @@ static int target_devices_idr_iter(int id, void *p, void *data)
 	if (!target_dev_configured(dev))
 		return 0;
 
-	iter->prev_item = config_item_get_unless_zero(&dev->dev_group.cg_item);
-	if (!iter->prev_item)
+	item = config_item_get_unless_zero(&dev->dev_group.cg_item);
+	if (!item)
 		return 0;
 	mutex_unlock(&device_mutex);
 
 	ret = iter->fn(dev, iter->data);
+	config_item_put(item);
 
 	mutex_lock(&device_mutex);
 	return ret;
@@ -935,7 +933,6 @@ int target_for_each_device(int (*fn)(struct se_device *dev, void *data),
 	mutex_lock(&device_mutex);
 	ret = idr_for_each(&devices_idr, target_devices_idr_iter, &iter);
 	mutex_unlock(&device_mutex);
-	config_item_put(iter.prev_item);
 	return ret;
 }
 
drivers/vhost/vringh.c +11 -1
index 33eb941fcf15..10bfc5f1c50d 100644
@@ -123,8 +123,18 @@ static inline ssize_t vringh_iov_xfer(struct vringh *vrh,
 		done += partlen;
 		len -= partlen;
 		ptr += partlen;
+		iov->consumed += partlen;
+		iov->iov[iov->i].iov_len -= partlen;
+		iov->iov[iov->i].iov_base += partlen;
 
-		vringh_kiov_advance(iov, partlen);
+		if (!iov->iov[iov->i].iov_len) {
+			/* Fix up old iov element then increment. */
+			iov->iov[iov->i].iov_len = iov->consumed;
+			iov->iov[iov->i].iov_base -= iov->consumed;
+
+			iov->consumed = 0;
+			iov->i++;
+		}
 	}
 	return done;
 }
drivers/xen/events/events_base.c +46 -41

70 lines not on this page · raw message

fs/btrfs/ctree.h +14 -14
index 3bcef0c4d6fc..27d06bb5e5c0 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/dir-item.c +24 -26

50 lines not on this page · raw message

fs/btrfs/file.c +14 -2
index 77202addead8..0a46fff3dd06 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/inode-item.c +36 -37

73 lines not on this page · raw message

fs/btrfs/inode-item.h +9 -11
index a8fc16d0147f..b80aeb715701 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/inode.c +166 -101

267 lines not on this page · raw message

fs/btrfs/ioctl.c +4 -3
index 2e29fafe0e7d..9e323420c96d 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/root-tree.c +9 -10
index e1f599d7a916..7d783f094306 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/send.c +8 -4
index 35e889fe2a95..547b5c229218 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/super.c +2 -1
index 582b71b7fa77..2c562febd801 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/transaction.c +27 -13
index a55556759441..1193214ba8c1 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/tree-log.c +133 -146

279 lines not on this page · raw message

fs/btrfs/tree-log.h +2 -2
index bcca74128c3b..8adebf4c9ada 100644

Lines of this file are not shown. View the raw message.

fs/erofs/decompressor_lzma.c +4 -1
index 5cd612a8f858..49addc345aeb 100644

Lines of this file are not shown. View the raw message.

fs/nfs/nfs4proc.c +5 -5
index be570c65ae15..e1297c6bcfbe 100644

Lines of this file are not shown. View the raw message.

fs/nfs/nfs4state.c +32 -15

47 lines not on this page · raw message

fs/nfs/sysfs.c +8 -8
index a6f740366963..edb535a0ff97 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/connect.c +5 -5
index 57da4f23c1e4..acb8951eb757 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/connection.c +2 -0
index e1d2be19cddf..ff97cad8d5b4 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/connection.h +1 -0
index ad8dfaa48ffb..335fdd714d59 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/mgmt/user_session.c +7 -3
index ea4b56d570fb..cf6621e21ba3 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/smb2pdu.c +2 -2
index f6fd5cf976a5..683152007566 100644

Lines of this file are not shown. View the raw message.

include/linux/bpf.h +1 -1
index 1ed2ec035e77..1fba826f0ace 100644

Lines of this file are not shown. View the raw message.

include/linux/ipv6.h +1 -0
index 15d7529ac953..9a44de45cc1f 100644

Lines of this file are not shown. View the raw message.

include/linux/mm.h +2 -0
index 104ec00823da..eefb0948110a 100644

Lines of this file are not shown. View the raw message.

include/linux/netfilter/nf_conntrack_sctp.h +1 -0
index 625f491b95de..fb31312825ae 100644

Lines of this file are not shown. View the raw message.

include/linux/regulator/mt6358-regulator.h +0 -4
index bdcf83cd719e..be9f61e3e8e6 100644

Lines of this file are not shown. View the raw message.

include/net/arp.h +4 -4
index d7ef4ec71dfe..e8747e0713c7 100644

Lines of this file are not shown. View the raw message.

include/net/cfg80211.h +94 -5

99 lines not on this page · raw message

include/net/ndisc.h +6 -6
index da7eec8669ec..325a6fb65c89 100644

Lines of this file are not shown. View the raw message.

include/net/neighbour.h +5 -5
index 794e45981891..ccc4a0f8b4ad 100644

Lines of this file are not shown. View the raw message.

include/net/netlink.h +21 -0
index 6bfa972f2fbf..a686c9041ddc 100644

Lines of this file are not shown. View the raw message.

include/net/nexthop.h +0 -23
index 28085b995ddc..2b12725de9c0 100644

Lines of this file are not shown. View the raw message.

include/net/tcp.h +4 -2
index 5fd69f2342a4..9ebb54122bb7 100644

Lines of this file are not shown. View the raw message.

include/scsi/scsi_device.h +5 -1
index 006858ed04e8..dc2cff18b68b 100644

Lines of this file are not shown. View the raw message.

include/scsi/scsi_host.h +1 -1
index d27d9fb7174c..71def41b1ad7 100644

Lines of this file are not shown. View the raw message.

include/uapi/linux/bpf.h +6 -0
index 53bc48794719..92dbe89dafbf 100644

Lines of this file are not shown. View the raw message.

include/uapi/linux/ipv6.h +1 -0
index 53326dfc59ec..4fa8511b1e35 100644

Lines of this file are not shown. View the raw message.

kernel/trace/ring_buffer.c +15 -17
index 2f562cf961e0..b7383358c4ea 100644

Lines of this file are not shown. View the raw message.

mm/memory.c +10 -0
index 2083078cd061..0d1b3ee8fcd7 100644

Lines of this file are not shown. View the raw message.

mm/mempolicy.c +61 -61

122 lines not on this page · raw message

mm/page_alloc.c +62 -76

138 lines not on this page · raw message

net/bluetooth/hci_core.c +1 -0
index fa4dd5fab0d4..d13b498f148c 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/hci_event.c +1 -0
index 83eaf25ece46..e4d8857716eb 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/hci_request.h +0 -2
index b9c5a9823837..0be75cf0efed 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/hci_sync.c +5 -9
index 2ae038dfc39f..5218c4dfe0a8 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/iso.c +6 -3
index 5cd2e775915b..91e990accbf2 100644

Lines of this file are not shown. View the raw message.

net/bridge/br_arp_nd_proxy.c +2 -2
index e5e48c6e35d7..b45c00c01dea 100644

Lines of this file are not shown. View the raw message.

net/bridge/br_netfilter_hooks.c +3 -2
index 812bd7e1750b..01d690d9fe5f 100644

Lines of this file are not shown. View the raw message.

net/core/filter.c +38 -21

59 lines not on this page · raw message

net/core/neighbour.c +54 -52

106 lines not on this page · raw message

net/core/sock_map.c +4 -0
index 96db7409baa1..38e01f82f2ef 100644

Lines of this file are not shown. View the raw message.

net/ipv4/arp.c +4 -4
index 4f7237661afb..9456f5bb35e5 100644

Lines of this file are not shown. View the raw message.

net/ipv4/fib_semantics.c +4 -4
index 3b6e6bc80dc1..eafa4a033515 100644

Lines of this file are not shown. View the raw message.

net/ipv4/ip_output.c +3 -3
index 66908ce2dd11..493c679ea54f 100644

Lines of this file are not shown. View the raw message.

net/ipv4/nexthop.c +6 -6
index 9cc287902454..be5498f5dd31 100644

Lines of this file are not shown. View the raw message.

net/ipv4/route.c +5 -3
index 84a0a71a6f4e..9cbaae4f5ee7 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp.c +2 -8
index fab25d4f3a6f..96fdde6e42b1 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp_bpf.c +3 -1
index 5f93918c063c..f53380fd89bc 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp_input.c +13 -0
index c697836f2b5b..068221e74242 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp_output.c +3 -4
index dc3166e56169..5921b0f6f9f4 100644

Lines of this file are not shown. View the raw message.

net/ipv6/addrconf.c +20 -7
index 83be84219824..c63ccd39fc55 100644

Lines of this file are not shown. View the raw message.

net/ipv6/ip6_fib.c +8 -8
index 413f66781e50..eb6640f9a792 100644

Lines of this file are not shown. View the raw message.

net/ipv6/ip6_output.c +6 -6
index 34192f7a166f..ce2c5e728745 100644

Lines of this file are not shown. View the raw message.

net/ipv6/ndisc.c +13 -4
index a4d43eb45a9d..8c5a99fe6803 100644

Lines of this file are not shown. View the raw message.

net/ipv6/route.c +11 -11
index 93957b20fccc..0bcdb675ba2c 100644

Lines of this file are not shown. View the raw message.

net/ipv6/tcp_ipv6.c +7 -3
index 4bdd356bb5c4..7be89dcfd5fc 100644

Lines of this file are not shown. View the raw message.

net/l2tp/l2tp_ip6.c +1 -1
index bce4132b0a5c..314ec3a51e8d 100644

Lines of this file are not shown. View the raw message.

net/mac80211/cfg.c +3 -0
index cf3453b532d6..0167413d5697 100644

Lines of this file are not shown. View the raw message.

net/mac80211/key.c +1 -1
index e8f6c1e5eabf..23bb24243c6e 100644

Lines of this file are not shown. View the raw message.

net/mptcp/pm_netlink.c +1 -1
index 9127a7fd5269..5d845fcf3d09 100644

Lines of this file are not shown. View the raw message.

net/mptcp/pm_userspace.c +0 -6
index 8a2aa63caa51..38cbdc66d8bf 100644

Lines of this file are not shown. View the raw message.

net/mptcp/protocol.c +108 -69

177 lines not on this page · raw message

net/mptcp/protocol.h +23 -1
index d77b25636125..91d89a0aeb58 100644

Lines of this file are not shown. View the raw message.

net/mptcp/subflow.c +3 -38

41 lines not on this page · raw message

net/netfilter/ipvs/ip_vs_sync.c +2 -2
index d4fe7bb4f853..6574f4e651b1 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_conntrack_proto_sctp.c +33 -10

43 lines not on this page · raw message

net/netfilter/nf_tables_api.c +28 -16

44 lines not on this page · raw message

net/netfilter/nft_set_rbtree.c +29 -17

46 lines not on this page · raw message

net/netlink/af_netlink.c +25 -12
index 387e430a35cc..cb833302270a 100644

Lines of this file are not shown. View the raw message.

net/nfc/llcp_core.c +2 -0
index f60e424e0607..6705bb895e23 100644

Lines of this file are not shown. View the raw message.

net/rds/tcp_connect.c +1 -1
index f0c477c5d1db..d788c6d28986 100644

Lines of this file are not shown. View the raw message.

net/sctp/associola.c +1 -2
index 3460abceba44..2965a12fe8aa 100644

Lines of this file are not shown. View the raw message.

net/sctp/socket.c +1 -0
index 32e3669adf14..e25dc1709131 100644

Lines of this file are not shown. View the raw message.

net/socket.c +23 -6
index d281a7ef4b1d..b0169168e3f4 100644

Lines of this file are not shown. View the raw message.

net/tipc/crypto.c +2 -2
index 2b236d95a646..65f59739a041 100644

Lines of this file are not shown. View the raw message.

net/wireless/core.c +135 -15

150 lines not on this page · raw message

net/wireless/core.h +12 -2
index 775e16cb99ed..86fd79912254 100644

Lines of this file are not shown. View the raw message.

net/wireless/nl80211.c +61 -32

93 lines not on this page · raw message

net/wireless/sme.c +3 -1
index 6e87d2cd8345..b97834284bae 100644

Lines of this file are not shown. View the raw message.

net/wireless/sysfs.c +7 -1
index 0c3f05c9be27..4d3b65803010 100644

Lines of this file are not shown. View the raw message.

scripts/mod/file2alias.c +1 -1
index 80d973144fde..111d5464c12d 100644

Lines of this file are not shown. View the raw message.

security/integrity/ima/Kconfig +8 -14
index c17660bf5f34..6ef7bde55126 100644

Lines of this file are not shown. View the raw message.

sound/soc/soc-utils.c +1 -0
index a4dba0b751e7..1bbd1d077dfd 100644

Lines of this file are not shown. View the raw message.

sound/soc/tegra/tegra_audio_graph_card.c +17 -13
index 1f2c5018bf5a..4737e776d383 100644

Lines of this file are not shown. View the raw message.

tools/include/uapi/linux/bpf.h +6 -0
index 53bc48794719..92dbe89dafbf 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/netfilter/.gitignore +1 -0
index 4cb887b57413..4b2928e1c19d 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/netfilter/Makefile +2 -2
index 3686bfa6c58d..321db8850da0 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/netfilter/audit_logread.c new file +165 -0

165 lines not on this page · raw message

tools/testing/selftests/netfilter/config +1 -0
index 4faf2ce021d9..7c42b1b2c69b 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/netfilter/nft_audit.sh new file +193 -0

193 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.

#2 lore raw
In reply to Greg Kroah-Hartman

Hi,

Quoted 8 lines

I'm announcing the release of the 6.1.57 kernel.

All users of the 6.1 kernel series must upgrade.

The updated 6.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.1.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

a warn of 'make bzImage' happened in 6.1.57, but not happen on 6.1.56.

/usr/bin/make -s 'HOSTCFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' 'HOSTLDFLAGS=-Wl,-z,relro ' ARCH=x86_64 'KCFLAGS= ' WITH_GCOV=0 -j80 bzImage
arch/x86/tools/insn_decoder_test: warning: Found an x86 instruction decoder bug, please report this.
arch/x86/tools/insn_decoder_test: warning: ffffffff81076309: f3 43 repz rex.XB
arch/x86/tools/insn_decoder_test: warning: objdump says 2 bytes, but insn_get_length() says 4 arch/x86/tools/insn_decoder_test: warning: Decoded and checked 5528143 instructions with 1 failures

Best Regards
Wang Yugui ([email protected])
2023/10/12