Skip to contentSkip to conversation

Linux 5.15.227

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Dec 1 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

---------------
Note, this is the LAST 5.15.y kernel release that will happen. This branch is now end-of-life and should not be used. Please move to a newer kernel branch at this point in time.
---------------

I'm announcing the release of the 5.15.227 kernel.

All users of the 5.15 kernel series must upgrade.

The updated 5.15.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.15.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/spi/spi-summary.rst                                            |    8 
 Documentation/trace/kprobes.rst                                              |    2 
 Makefile                                                                     |    2 
 arch/arm/mach-omap2/omap4-common.c                                           |    1 
 arch/arm/mm/flush.c                                                          |    3 
 arch/mips/Kconfig                                                            |    2 
 arch/mips/alchemy/common/prom.c                                              |   23 +
 arch/mips/sibyte/sb1250/irq.c                                                |    3 
 arch/powerpc/kernel/watchdog.c                                               |    3 
 arch/x86/kernel/ldt.c                                                        |   12 
 block/partitions/efi.c                                                       |    1 
 crypto/essiv.c                                                               |    2 
 drivers/acpi/scan.c                                                          |  142 ++++++--
 drivers/ata/libata-scsi.c                                                    |   35 +-
 drivers/base/power/runtime.c                                                 |    8 
 drivers/base/swnode.c                                                        |    7 
 drivers/block/null_blk/zoned.c                                               |   13 
 drivers/bluetooth/btintel.c                                                  |   24 +
 drivers/bluetooth/hci_qca.c                                                  |    5 
 drivers/char/tpm/eventlog/acpi.c                                             |    4 
 drivers/char/tpm/eventlog/tpm1.c                                             |    7 
 drivers/comedi/drivers/addi_apci_1500.c                                      |    2 
 drivers/comedi/drivers/ni_660x.c                                             |    3 
 drivers/comedi/drivers/ni_tio.c                                              |    2 
 drivers/comedi/drivers/vmk80xx.c                                             |   25 -
 drivers/cpufreq/acpi-cpufreq.c                                               |    9 
 drivers/cpufreq/cpufreq.c                                                    |   18 -
 drivers/cpufreq/intel_pstate.c                                               |   14 
 drivers/gpio/gpio-brcmstb.c                                                  |    1 
 drivers/gpio/gpio-mpc8xxx.c                                                  |   99 +++---
 drivers/gpio/gpio-omap.c                                                     |   13 
 drivers/gpio/gpio-rockchip.c                                                 |   15 
 drivers/gpio/gpio-sodaville.c                                                |    9 
 drivers/gpio/gpiolib-of.h                                                    |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c                                       |    3 
 drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c                               |   20 +
 drivers/gpu/drm/bridge/sii902x.c                                             |    8 
 drivers/hwmon/aht10.c                                                        |    2 
 drivers/i3c/master.c                                                         |   39 +-
 drivers/iio/accel/kxsd9.c                                                    |    2 
 drivers/iio/afe/iio-rescale.c                                                |    3 
 drivers/iio/chemical/atlas-ezo-sensor.c                                      |    3 
 drivers/iio/common/hid-sensors/hid-sensor-attributes.c                       |   14 
 drivers/iio/dac/mcp4725.c                                                    |    2 
 drivers/iio/gyro/bmg160_core.c                                               |    2 
 drivers/iio/humidity/am2315.c                                                |   12 
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c                                   |    2 
 drivers/iio/imu/kmx61.c                                                      |    2 
 drivers/iio/industrialio-trigger.c                                           |    1 
 drivers/iio/light/tsl2591.c                                                  |   32 +
 drivers/iio/light/vcnl4035.c                                                 |    4 
 drivers/iio/magnetometer/mmc35240.c                                          |    3 
 drivers/input/ff-core.c                                                      |    2 
 drivers/input/input.c                                                        |    2 
 drivers/md/dm-cache-metadata.c                                               |    4 
 drivers/md/dm-cache-target.c                                                 |    1 
 drivers/md/dm-crypt.c                                                        |   12 
 drivers/md/dm-integrity.c                                                    |   30 +
 drivers/md/dm-log-userspace-base.c                                           |    6 
 drivers/md/dm-mpath.c                                                        |    6 
 drivers/md/dm-raid.c                                                         |    3 
 drivers/md/dm-snap.c                                                         |   12 
 drivers/md/dm-sysfs.c                                                        |   17 -
 drivers/md/dm-thin-metadata.c                                                |    5 
 drivers/md/dm-thin.c                                                         |    6 
 drivers/md/dm-zoned-reclaim.c                                                |   18 +
 drivers/md/persistent-data/dm-btree.c                                        |    8 
 drivers/media/usb/uvc/uvc_driver.c                                           |    4 
 drivers/media/usb/uvc/uvc_video.c                                            |    3 
 drivers/media/usb/uvc/uvcvideo.h                                             |    1 
 drivers/misc/bcm-vk/bcm_vk_sg.c                                              |   43 ++
 drivers/misc/ibmvmc.c                                                        |   16 
 drivers/mmc/host/meson-gx-mmc.c                                              |   23 +
 drivers/mmc/host/mmci.c                                                      |    4 
 drivers/net/bonding/bond_main.c                                              |   24 -
 drivers/net/dsa/b53/b53_common.c                                             |   67 ++++
 drivers/net/dsa/b53/b53_priv.h                                               |    1 
 drivers/net/dsa/b53/b53_regs.h                                               |   17 +
 drivers/net/dsa/bcm_sf2.c                                                    |    5 
 drivers/net/ethernet/amazon/ena/ena_netdev.c                                 |   13 
 drivers/net/ethernet/broadcom/bgmac-platform.c                               |    3 
 drivers/net/ethernet/broadcom/bgmac.c                                        |    8 
 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h                        |    2 
 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c                   |   26 -
 drivers/net/ethernet/microsoft/mana/mana_en.c                                |    7 
 drivers/net/ethernet/realtek/8139cp.c                                        |    8 
 drivers/net/ethernet/renesas/ravb_main.c                                     |    8 
 drivers/net/ethernet/sfc/ptp.c                                               |  108 ++++--
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c                            |    3 
 drivers/net/hyperv/rndis_filter.c                                            |    6 
 drivers/net/team/team.c                                                      |   12 
 drivers/net/tun.c                                                            |    6 
 drivers/net/usb/cdc_ncm.c                                                    |    4 
 drivers/net/wireless/ath/ath9k/htc_drv_main.c                                |    8 
 drivers/nvme/host/core.c                                                     |    4 
 drivers/nvme/host/fc.c                                                       |    4 
 drivers/nvme/host/tcp.c                                                      |   26 +
 drivers/nvme/target/fc.c                                                     |    6 
 drivers/nvme/target/rdma.c                                                   |   57 ++-
 drivers/nvme/target/tcp.c                                                    |    8 
 drivers/nvmem/core.c                                                         |    3 
 drivers/ptp/ptp_clock.c                                                      |    5 
 drivers/ptp/ptp_kvm_x86.c                                                    |    7 
 drivers/ptp/ptp_private.h                                                    |    1 
 drivers/ptp/ptp_sysfs.c                                                      |   14 
 drivers/regulator/Kconfig                                                    |    1 
 drivers/regulator/qcom_spmi-regulator.c                                      |   35 +-
 drivers/s390/block/dasd_eckd.c                                               |    3 
 drivers/s390/block/dasd_ioctl.c                                              |    4 
 drivers/scsi/aha1542.c                                                       |    2 
 drivers/scsi/aic7xxx/aic7xxx_core.c                                          |    2 
 drivers/spi/spi-pic32-sqi.c                                                  |    3 
 drivers/spi/spi.c                                                            |  163 ++++++----
 drivers/staging/media/atomisp/pci/sh_css_param_dvs.c                         |   11 
 drivers/staging/media/atomisp/pci/sh_css_param_shading.c                     |    4 
 drivers/staging/media/atomisp/pci/sh_css_params.c                            |   35 +-
 drivers/target/target_core_pr.c                                              |    9 
 drivers/tty/serial/8250/8250_lpss.c                                          |    3 
 drivers/tty/serial/samsung_tty.c                                             |    8 
 drivers/tty/vt/keyboard.c                                                    |    6 
 drivers/tty/vt/vt.c                                                          |    2 
 drivers/usb/dwc3/gadget.c                                                    |    1 
 drivers/usb/gadget/function/f_mass_storage.c                                 |    8 
 drivers/usb/gadget/function/f_midi.c                                         |    4 
 drivers/usb/gadget/function/f_ncm.c                                          |    7 
 drivers/usb/gadget/function/storage_common.c                                 |    7 
 drivers/usb/gadget/function/storage_common.h                                 |    3 
 drivers/usb/gadget/function/u_serial.c                                       |    3 
 drivers/usb/host/pci-quirks.c                                                |   13 
 drivers/usb/misc/usbtest.c                                                   |    3 
 drivers/usb/serial/garmin_gps.c                                              |   31 -
 drivers/usb/serial/io_edgeport.c                                             |  140 +++-----
 drivers/usb/serial/oti6858.c                                                 |   16 
 drivers/usb/serial/sierra.c                                                  |   18 -
 drivers/usb/storage/uas-detect.h                                             |    8 
 drivers/vfio/fsl-mc/vfio_fsl_mc.c                                            |   10 
 drivers/vfio/platform/vfio_platform_common.c                                 |   10 
 drivers/vhost/scsi.c                                                         |   51 ++-
 drivers/vhost/test.c                                                         |    4 
 drivers/vhost/vhost.c                                                        |    3 
 drivers/w1/masters/ds2482.c                                                  |   36 +-
 drivers/w1/slaves/w1_ds2805.c                                                |    8 
 drivers/w1/slaves/w1_ds28e04.c                                               |   18 -
 drivers/w1/slaves/w1_therm.c                                                 |   37 +-
 drivers/w1/w1.c                                                              |   21 -
 drivers/w1/w1_int.c                                                          |    8 
 drivers/w1/w1_netlink.c                                                      |    8 
 drivers/xen/gntdev.c                                                         |    8 
 drivers/xen/grant-table.c                                                    |   37 ++
 drivers/xen/pvcalls-back.c                                                   |   26 -
 fs/9p/v9fs_vfs.h                                                             |    7 
 fs/9p/vfs_dir.c                                                              |   10 
 fs/9p/vfs_inode.c                                                            |   26 -
 fs/9p/vfs_inode_dotl.c                                                       |    6 
 fs/9p/vfs_super.c                                                            |   29 -
 fs/adfs/dir_fplus.c                                                          |    2 
 fs/aio.c                                                                     |    7 
 fs/btrfs/scrub.c                                                             |    8 
 fs/btrfs/verity.c                                                            |    2 
 fs/ext4/extents.c                                                            |    8 
 fs/inode.c                                                                   |    3 
 fs/ksmbd/smb2pdu.c                                                           |   30 +
 fs/nfs/pnfs.c                                                                |    2 
 fs/proc/proc_sysctl.c                                                        |    5 
 fs/read_write.c                                                              |   14 
 fs/stat.c                                                                    |    3 
 fs/udf/super.c                                                               |   19 +
 include/acpi/acpi_bus.h                                                      |    2 
 include/linux/fs.h                                                           |   10 
 include/linux/i3c/master.h                                                   |    3 
 include/linux/key.h                                                          |    3 
 include/linux/mmzone.h                                                       |    3 
 include/linux/spi/spi.h                                                      |    7 
 include/net/9p/client.h                                                      |    2 
 include/net/arp.h                                                            |    8 
 include/net/bluetooth/hci_core.h                                             |   13 
 include/net/dst_metadata.h                                                   |    2 
 include/net/ndisc.h                                                          |   16 
 include/net/neighbour.h                                                      |   11 
 include/net/netfilter/nf_conntrack_helper.h                                  |    1 
 include/net/sock.h                                                           |   29 -
 kernel/bpf/bpf_lsm.c                                                         |    4 
 kernel/locking/osq_lock.c                                                    |   81 +++-
 kernel/sched/pelt.c                                                          |    2 
 kernel/time/timekeeping.c                                                    |    8 
 kernel/trace/trace_eprobe.c                                                  |   12 
 kernel/trace/trace_kprobe.c                                                  |    3 
 kernel/trace/trace_probe_tmpl.h                                              |   14 
 lib/bootconfig.c                                                             |    7 
 mm/internal.h                                                                |   11 
 mm/khugepaged.c                                                              |    4 
 mm/memory_hotplug.c                                                          |   44 +-
 mm/page_alloc.c                                                              |    4 
 net/9p/protocol.c                                                            |   12 
 net/batman-adv/bat_iv_ogm.c                                                  |    2 
 net/bluetooth/hci_core.c                                                     |   35 +-
 net/bluetooth/l2cap_core.c                                                   |    5 
 net/bridge/br_arp_nd_proxy.c                                                 |    6 
 net/bridge/br_if.c                                                           |    6 
 net/core/filter.c                                                            |   91 ++++-
 net/core/lwt_bpf.c                                                           |   12 
 net/core/skbuff.c                                                            |    2 
 net/core/sock_reuseport.c                                                    |   17 -
 net/ipv4/fib_trie.c                                                          |   14 
 net/ipv4/fou_core.c                                                          |   12 
 net/ipv4/igmp.c                                                              |    2 
 net/ipv4/inet_connection_sock.c                                              |   20 -
 net/ipv4/ip_output.c                                                         |    8 
 net/ipv4/netfilter/arp_tables.c                                              |    5 
 net/ipv4/netfilter/ip_tables.c                                               |    5 
 net/ipv4/route.c                                                             |   25 +
 net/ipv4/tcp_input.c                                                         |    6 
 net/ipv4/tcp_minisocks.c                                                     |    2 
 net/ipv4/udp.c                                                               |    5 
 net/ipv6/calipso.c                                                           |   12 
 net/ipv6/exthdrs.c                                                           |    5 
 net/ipv6/exthdrs_core.c                                                      |    7 
 net/ipv6/icmp.c                                                              |   10 
 net/ipv6/ip6_output.c                                                        |   13 
 net/ipv6/mip6.c                                                              |    9 
 net/ipv6/netfilter/ip6_tables.c                                              |    5 
 net/ipv6/route.c                                                             |   10 
 net/ipv6/seg6_iptunnel.c                                                     |   46 ++
 net/ipv6/seg6_local.c                                                        |   55 +++
 net/ipv6/tcp_ipv6.c                                                          |    6 
 net/ipv6/udp.c                                                               |    5 
 net/iucv/af_iucv.c                                                           |    9 
 net/mac80211/ibss.c                                                          |   21 +
 net/mac80211/ieee80211_i.h                                                   |    3 
 net/mac80211/ocb.c                                                           |   21 +
 net/mac80211/tx.c                                                            |    6 
 net/mctp/af_mctp.c                                                           |    2 
 net/mptcp/options.c                                                          |   12 
 net/mptcp/protocol.c                                                         |   10 
 net/netfilter/ipvs/ip_vs_app.c                                               |    2 
 net/netfilter/ipvs/ip_vs_core.c                                              |   12 
 net/netfilter/nf_conntrack_helper.c                                          |   20 -
 net/netfilter/nf_conntrack_sip.c                                             |    4 
 net/netfilter/nf_nat_masquerade.c                                            |    4 
 net/netfilter/nf_tables_api.c                                                |   21 -
 net/netfilter/nf_tables_offload.c                                            |    3 
 net/netfilter/nft_ct.c                                                       |  126 ++++++-
 net/netfilter/xt_NETMAP.c                                                    |    4 
 net/netfilter/xt_recent.c                                                    |    7 
 net/rds/rdma.c                                                               |    5 
 net/sched/act_ife.c                                                          |    6 
 net/sched/sch_teql.c                                                         |    9 
 net/sctp/sm_make_chunk.c                                                     |   45 +-
 net/sctp/sm_statefuns.c                                                      |   16 
 net/sctp/socket.c                                                            |    2 
 net/sctp/stream.c                                                            |    2 
 net/sctp/stream_interleave.c                                                 |   38 --
 net/socket.c                                                                 |   11 
 net/sunrpc/clnt.c                                                            |    5 
 net/sunrpc/rpc_pipe.c                                                        |    1 
 net/tipc/bearer.c                                                            |   33 ++
 net/tls/tls_sw.c                                                             |   16 
 net/wireless/scan.c                                                          |    3 
 net/xfrm/xfrm_replay.c                                                       |    6 
 security/keys/key.c                                                          |   10 
 security/keys/keyctl.c                                                       |    2 
 security/keys/keyring.c                                                      |   25 +
 security/keys/request_key.c                                                  |   14 
 sound/hda/hdac_controller.c                                                  |   10 
 sound/pci/Kconfig                                                            |    1 
 sound/soc/codecs/max98090.c                                                  |   22 -
 sound/soc/meson/axg-fifo.c                                                   |   28 -
 sound/usb/caiaq/device.c                                                     |   11 
 sound/usb/pcm.c                                                              |    6 
 tools/bootconfig/test-bootconfig.sh                                          |   18 +
 tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc       |    2 
 tools/testing/selftests/net/packetdrill/tcp_bidir_fast_retransmit_nosack.pkt |   42 ++
 272 files changed, 2660 insertions(+), 1184 deletions(-)

Aaditya Kansal (1):
ksmbd: implement error handling for STATUS_INFO_LENGTH_MISMATCH in smb server

Abdifatah Suruur (2):
vfio/platform: prevent read-only region mappings from becoming writable vfio/fsl-mc: prevent read-only region mappings from becoming writable

Adrian Hunter (1):
i3c: master: Fix recursive locking during device registration

Alban Bedel (1):
spi: Fix ACPI SPI resources using relative path

Alex Austin (3):
sfc: ptp: drop the stale frequency reset in efx_ptp_start()
sfc: ptp: serialize host and MC synchronization transactions
sfc: ptp: avoid racing PPS timestamp updates

Alexander Sarmanow (1):
iio: light: vcnl4035: Fix reversed ALS mode bit

Alexei Starovoitov (4):
bpf: Don't let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS
bpf: Don't look for the SRH again in the End.BPF helpers
bpf: Don't leave a stale MAC header in bpf_lwt_push_ip_encap()
ipv6: Check the Home Address option again before its address is used

Andrea Amer (1):
iio: afe: rescale: expose offset if rescaler or source has one

Andrey Misiurov (2):
xen/gntdev: fix deadlock between map ioctl and mmap
sctp: fix ASCONF address change on single-homed hosts

Andy Shevchenko (2):
spi: remove duplicate parameters check in acpi_spi_add_resource()
nvmem: core: Check input parameter for NULL in nvmem_unregister()

Anfernee Cao (1):
mmc: mmci: fix DMA channel leak when mmc_add_host() fails

Arnav Kapoor (1):
iio: imu: inv_mpu6050: fix magnetometer scale of Y and Z axes

Avi Weiss (8):
gpio: omap: Propagate runtime PM failures in probe and request
net: skbuff: reject zero MPLS TTL before decrementing NFSv4.1: retain MDS I/O until both thresholds are met
SUNRPC: wake poll waiters when an empty pipe is unlinked
SUNRPC: preserve timeout policy when cloning clients
SUNRPC: Balance switch queue length on transport removal
SUNRPC: Balance queue accounting when relocating a task
net: ena: avoid RX copybreak for multi-descriptor packets

Baek Kyu, Kim (1):
iio: dac: mcp4725: Update the cached DAC value only on success

Bartosz Golaszewski (3):
gpio: mpc8xxx: use a helper variable to store the address of pdev->dev software node: only let the owner release a managed node
gpio: sodaville: fix use-after-free bug when registering the irqchip

Bas Nieuwenhuizen (1):
drm/amdgpu: Check cs flags.

Binbin Deng (3):
Bluetooth: hci_core: Initialize IRK before publication
Bluetooth: hci_core: Initialize link key before publication
Bluetooth: hci_core: Initialize LTK before publication

Bjorn Helgaas (1):
nvme: fix various comment typos

Breno Leitao (1):
net: ena: Keep the RX buffer mapped if skb allocation fails

Brian Ellis (1):
usb: gadget: u_serial: fix NULL deref in gs_close() after failed open

Bryam Vargas (1):
net/iucv: take a private, writable frame before rewriting it in place

Catherine L (1):
Bluetooth: btintel: fix buffer over-read in fw payload

Cen Zhang (1):
Bluetooth: hci_core: Keep link-key filtering inside RCU

Cen Zhang (Microsoft) (1):
netfilter: xt_recent: do not call remove_proc_entry() under recent_lock

Chase Hiltz (1):
ipv4: route: don't blackhole in-use routes when retiring fnhe routes

Chen Cheng (1):
dm snapshot: fix discard writing into the next COW chunk

Cheng Yongkang (2):
net: bridge: disable MRP ports before the FDB flush in del_nbp() fs/proc: fix the write length returned by proc_sys_call_handler()

Chengfeng Ye (2):
ipvs: Defer application parent freeing until after RCU readers
ipvs: fix protocol data lifetime during namespace teardown

Chris Mason (10):
mm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs
bpf: Reject non-IPv6 packets in BPF_LWT_ENCAP_SEG6
bpf: Limit the SRH length in bpf_lwt_seg6_adjust_srh()
bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()
bpf: Move the transport header with the moved headers
nvmet-rdma: disconnect only established queues
nvmet-rdma: take a device off the list last
nvmet-rdma: queue the release work under the mutex
nvmet-rdma: disconnect a queue on device removal
vt: serialise the producers of the flip buffer

Christian Brauner (1):
aio: don't let exit_aio() return before complete() is done

Christian Loehle (2):
cpufreq: Preserve global boost state on failed updates
cpufreq: Serialize global boost updates

Colton Pawielski (1):
net: 8139cp: keep Rx masked while NAPI is scheduled

Cosmin Tanislav (1):
usb: gadget: f_ncm: restart the TX timer if the TX freelist is empty

Cunhao Lu (1):
gpio: rockchip: Fix debounce arithmetic for GPIO v2

Damien Le Moal (1):
ata: libata-scsi: Simplify ata_scsi_mode_select_xlat()

Daniel Wagner (1):
nvme-tcp: handle number of queue changes

Daniël Trujillo (1):
ipv4: fib_trie: prevent speculative out-of-bounds child access

Dave Hansen (1):
x86/mm: Ensure write visibility during LDT installation

David Laight (1):
locking/osq_lock: Clarify osq_wait_next() calling convention

Davidlohr Bueso (1):
mctp: accept MSG_CMSG_COMPAT in recvmsg

Deepanshu Kartikey (1):
batman-adv: avoid WARN_ON for orig_ifinfo allocation failure

Dmitry Baryshkov (1):
regulator: qcom_spmi: don't take a sleeping lock in the SAW IPI

Dmitry Torokhov (2):
Input: destroy force-feedback device on input unregistration
gpiolib: of: return -ENOENT from of_gpio_count() stub

Eduardo Mucelli Rezende Oliveira (1):
bootconfig: Trim unquoted values at end of file

Edward Adam Davis (2):
ext4: avoid infinite loops caused by residual data dm cache: reject kcopyd client destory if it setup failed

Eric Dumazet (7):
soreuseport: annotate data-races around reuse->socks[] and num_socks ipv6/tcp: small drop monitor changes
tcp: ipv6: free ireq->ipv6_opt after an RCU grace period
calipso: do not charge request socket options to the listener
bonding: fix slave_cnt leak on XDP enslave failure
fou: gue: check IP version of held packets for direct IP encapsulation
udp: do not use a cross-family sk_rx_dst in early demux

Eric Van Hensbergen (2):
fs/9p: switch vfsmount to use v9fs_get_new_inode fs/9p: rework qid2ino logic

Erni Sri Satya Vennela (1):
hv_netvsc: Stop PPI parsing on invalid metadata

Feng Ning (1):
staging: media: atomisp: use array3_size() for overflow-safe allocation

Fernando Fernandez Mancera (1):
netfilter: x_tables: check target name before accessing verdict

Filipe Manana (1):
btrfs: scrub: fix lost wakeup and hang when cancelling a scrub that is finishing

Florian Fainelli (6):
net: dsa: b53: Enable IGMP and MLD control packet CPU copies
net: ethernet: bgmac: preserve forced 2.5 Gbps link speed
net: dsa: b53: Force flow control for BCM5301X CPU port(s)
net: dsa: b53: restore the NSP IMP port 2 Gbps mode
MIPS: Alchemy: Save the Ethernet address before reusing PROM memory
MIPS: SB1250: Validate and update IRQ affinity

Florian Westphal (2):
netfilter: nft_ct: expectation timeouts are passed in milliseconds
netfilter: nat: zero newrange before filling it in

Gichoon Han (1):
ALSA: usb-audio: Drop capture packets with bogus actual_length

Greg Kroah-Hartman (1):

      Linux 5.15.227

Gregory Price (Meta) (2):
mm/mmzone: read the zoneref slot once in zonelist_zone() mm/page_alloc: detect zonelist rebuilds from memory hot-add

Guanglei Zhu (1):
tpm: eventlog: check the payload size before reading tag events

Guangshuo Li (4):
gpio: mpc8xxx: Fix potential use-after-free of IRQ domain
gpio: brcmstb: fix UAF after IRQ domain setup failure
misc: bcm-vk: fix DMA allocation memory leak
iio: accel: kxsd9: Fix potential use-after-free on removal

Guillaume Nault (1):
tcp: Fix dup-ack detection on non-SACK bidirectional data transfer.

Guixiong Wei (1):
KEYS: do not let an unmatched key decide the search result

Hamza Mahfooz (1):
net: mana: report RX checksum offload for IPv6

Haobin Wu (1):
9p: skip intermediate directory entry name copy in p9dirent_read()

Henry Martin (1):
sctp: fix skb_over_panic when adding addresses with a pending delete of another family

Hongjian Dai (1):
spi: pic32-sqi: fail transfer when the BD ring is exhausted

Hui Peng (2):
udf: validate vat20->lengthHeader and VAT inode size in udf_load_vat()
USB: serial: garmin_gps: validate packet data length in nat_receive()

Hui Su (1):
sched/pelt: Fix u32 truncation of the PELT period count

Hungyu Lin (2):
vfs: preserve subsecond timestamps at filesystem time limits
timekeeping: Read getboottime64() offsets under the sequence counter

HyeongJun An (1):
fs/adfs: bound directory entry name length in adfs_fplus_getnext()

Hyunwoo Kim (1):
tcp: fix NULL pointer dereference when restarting a Fast Open listener

Igor Velkov (3):
mmc: meson-gx: report busy from DAT0 alone
mmc: meson-gx: honour the busy timeout for R1b commands
mmc: meson-gx: name the limit of the CMD_CFG timeout field

Imre Kaloz (1):
scsi: aic7xxx: Fix REQUEST SENSE allocation length on big-endian hosts

Jamal Hadi Salim (2):
net/sched: sch_teql: reject qdiscs from another network namespace net/sched: act_ife: encode configured zero metadata values

James Hilliard (2):
ptp: drain virtual clock sysfs operations before unregistering children
ptp: unwind partially completed virtual clock creation

Jan Beulich (1):
Xen/gnttab: improve error handling in gnttab_dma_{alloc,free}_pages()

Jan Kara (1):
udf: validate VAT inode size for old VAT format

Jan Remes (1):
iio: light: tsl2591: don't divide by zero

Jarkko Sakkinen (2):
KEYS: Reject descriptions larger than KEY_MAX_DESC_SIZE
KEYS: Verify the key identity in __key_unlink_begin

Jay Vadayath (1):
dm-raid: bound array_position before indexing failed_devices

Jean-Paul Sergent (1):
net: dst_metadata: fix memcmp overread in skb_metadata_dst_cmp

Jens Axboe (1):
net: leave O_NONBLOCK to the sendmsg and recvmsg syscalls

Jerome Brunet (1):
ASoC: meson: axg-fifo: request the irq with the clock enabled

Jia Jia (2):
scsi: target: Validate REGISTER AND MOVE TransportID length
vhost-scsi: preserve event ordering

Jiahao Xu (1):
net: usb: cdc_ncm: don't underflow the NDP room check

Jiale Yao (3):
misc: ibmvmc: initialize HMC state before device registration
iio: gyro: bmg160: reject duplicate event disable
iio: imu: kmx61: reject duplicate event disable

Jiapeng Chong (1):
ipv6: ICMPV6: Use swap() instead of open coding it

Jiayuan Chen (1):
mptcp: fix UAF of child socket on listener close

Joas Antonio dos Santos (1):
netfilter: nf_conntrack_sip: fix OOB read in ct_sip_parse_transport()

Johan Hovold (8):
USB: serial: garmin_gps: fix deadlock on reset request
USB: serial: io_edgeport: fix NULL-deref on early status
USB: serial: io_edgeport: fix potential close() use-after-free
USB: serial: io_edgeport: fix potential NULL-deref at open
USB: serial: io_edgeport: fix potential fifo corruption
USB: serial: io_edgeport: fix potential use-after-free on disconnect
USB: serial: io_edgeport: move initial termios update to open()
USB: serial: io_edgeport: serialise MCR accesses

Johannes Weiner (1):
mm: page_alloc: remove ALLOC_NON_BLOCK from ALLOC_RESERVES

Josef Bacik (19):
nvmet-tcp: limit the connections accepted per work run mm/memory_hotplug: resize zones under their seqlock
comedi: addi_apci_1500: fix clearing of the gate enable
comedi: ni_660x: don't poll without a DMA channel
comedi: ni_tio: Fix overflow of the clock period
comedi: vmk80xx: report failed transfers of the K8061
iio: hid-sensors: fix a division by zero
serial: 8250_lpss: don't divide by 0 above 6.25 Mbaud
serial: samsung: don't leak the tty on an RX IRQ
serial: samsung: put the previous baud clock
USB: serial: oti6858: fix the teardown order in close
w1: don't hold list_mutex while a slave is torn down
w1: ds2482: set the strong pull-up with its byte
w1: ds2805: use the bus mutex to talk on the bus
w1: ds28e04: use the bus mutex to talk on the bus
w1: netlink: drop the slave after the bus is unlocked
w1: remove the master's files before taking its locks
w1: use the bus mutex for the "rw" file
w1: w1_therm: leave the slaves of other families alone

Jude Gyimah (1):
ALSA: aw2-alsa: select SND_PCM

Jun Yang (1):
net: bridge: use one headroom snapshot for ND replies

Junyoung Jang (1):
igmp: use the joined device when leaving a multicast group

Jérémy Jean (1):
crypto: essiv - fix use-after-free in AEAD path

Kalpesh Solanki (1):
tun: disallow setting IEEE 802.15.4 and 6LoWPAN link types via TUNSETLINK

Karl Mehltretter (1):
iio: trigger: Return an error when the trigger has no free irq

Kavitha Daula (1):
xen/grant-table: annotate on-stack work in gnttab_unmap_refs_sync()

Kory Maincent (1):
net: ravb: Fix missing rtnl lock in suspend/resume path

Kuniyuki Iwashima (2):
ipv4: Call rt_add_uncached_list() if !do_cache in ip_route_input_slow().
tcp: Pass req->rsk_listener to inet_csk_reqsk_queue_drop() in tcp_check_req().

Kyle Pepper (1):
Bluetooth: reject invalid LE supervision timeout relationships

Kyle Zeng (6):
net: protect negative destination advice with RCU
net: require a full socket in sock_confirm_neigh() net/rds: Do not unpin a page after a failed atomic pin
mptcp: reject DATA_ACKs against a reversed send interval
ipv4: keep XFRM headers out of corked skb lengths
sctp: avoid requeueing pending control chunks

Kyrylo Biryuk (2):
dm zoned: back off when reclaim cannot make progress dm zoned: do not reclaim a random zone into another random zone

Li RongQing (2):
team: fix promisc/allmulti leak in team_port_add error path
cpufreq: acpi-cpufreq: fix P-state index mismatch in extract_io()

Liang He (1):
ARM: OMAP2+: omap4-common: Fix refcount leak bug

LiangCheng Wang (1):
ASoC: max98090: keep the MIC boost across mic input power-up

Lifeng Zheng (1):
cpufreq: Return -EOPNOTSUPP if no policy supports boost

Linfeng Sun (4):
vhost: reject invalid IOTLB update permissions
vhost-scsi: validate event queue descriptor direction
vhost-scsi: reject delayed virtqueue setup
vhost: reject backend enable without a kick file

Lorenzo Bianconi (1):
net: stmmac: copy XDP metadata in AF_XDP zero-copy RX

Luiz Augusto von Dentz (1):
Bluetooth: hci_core: Fix not checking skb length on hci_scodata_packet

Luiz Capitulino (Red Hat) (1):
powerpc/watchdog: disable watchdog when watchdog_thresh=0

Mani Tofigh (1):
nvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsystem()

Manuel Ebner (1):
docs, kprobes: Fix bracket

Mario Limonciello (1):
drm/amd/pm: track BACO state in the SMU v11 ArmD3 sequence

Martyn Welch (1):
gpio: mpc8xxx: Add wake on GPIO support

Masami Hiramatsu (Google) (1):
tracing/eprobe: Fix 1-byte signed field fetch in get_event_field()

Matthew Whitehead (1):
scsi: aha1542: Remove unneeded scsi_dma_unmap() call

Max Kellermann (2):
include/linux/fs.h: add inode_lock_killable() fs/read_write: make default_llseek() killable

Maximilian Czirr (1):
iio: hid-sensor: Fix scale for magnetic north heading

Mehmet Fide (2):
wifi: ath9k_htc: start ANI when an AP interface begins to beacon
wifi: ath9k_htc: do not start ANI before the first channel is set

Michał Kopeć (1):
ALSA: hda/core: Stop capability walk on empty capability header

Mike Christie (1):
vhost-scsi: Fix handling of multiple calls to vhost_scsi_set_endpoint

Mikulas Patocka (7):
dm-sysfs: fix misbehavior if kobject_init_and_add fails dm persistent data: don't leak bufio buffer if find_leaf fails
dm-cache: fix NULL pointer dereference on open failure
dm-cache: fix ending a cursor that never began
dm-integrity: don't attempt to commit journal on disabled device
dm-thin: fix leak if __set_snapshot_details fails
dm-thin: fix parsing of feature arguments

Nikhil Gautam (1):
iio: atlas-ezo: Fix humidity channel read support

Niklas Cassel (4):
null_blk: fix opening closed zones at the active zone limit
ata: libata-scsi: fix MODE SELECT handling of data after the mode page
ata: libata-scsi: reject MODE SELECT mode pages with a wrong SPF bit
ata: libata-scsi: fix MODE SELECT field pointer for block descriptor length

Nikola Z. Ivanov (1):
team: Add matching error label for failed action

Ofri Zangi (1):
tls: fix async encryption race on weakly ordered architectures

Olivier Kaloudoff (1):
usb: uas: ignore UAS for ASMT135x bridges (174c:55aa)

Pablo Neira Ayuso (2):
netfilter: nft_ct: move custom expectation support to helper
netfilter: nf_tables: fix memleak when rule deletion fails with hardware offload

Pengpeng Hou (1):
drm/bridge: sii902x: validate I2S data lane values

Peter Zijlstra (2):
locking/osq: Switch osq_wait_next()/atomic_cmpxchg() ordering locking/osq: Fix unlink queue corruption

Prathamesh Deshpande (1):
net/mlx5e: IPoIB, Fix QPN lookup race

Rafael J. Wysocki (4):
ACPI: scan: Introduce acpi_fetch_acpi_dev()
PM: runtime: Update last_busy in rpm_resume() for active devices
cpufreq: intel_pstate: Clear last written P-state value on suspend
cpufreq: Cache post-resolution target frequency in __resolve_freq()

Ricardo Ribalda (1):
media: uvcvideo: Undup use uvc_endpoint_max_bpi() code

Rishabh Jain (1):
usb: pci-quirks: always assert xHCI OS ownership

Rishikesh Jethwani (1):
tls: only install push_pending_record for a TX context

Rob Herring (Arm) (1):
regulator: qcom_spmi: Drop unnecessary of_find_property() call

Rosen Penev (2):
spi: acpi: only look up the IRQ of confirmed SPI devices
MIPS: Avoid dead code/data elimination when using recordmcount

Rupesh Majhi (1):
hwmon: (aht10) Fix update_interval overflow on 64-bit

Sasha Levin (3):
bpf: Drop inet_conn_established from lsm sleepable hooks
ACPI: scan: Print the offline failure message in acpi_bus_offline()
ACPI: scan: Do not hold physical_node_lock across device_offline() and device_online()

Sergei Nizovtsev (1):
ALSA: caiaq: Kill EP1 URB before unregistering the input device

Shashank Mohan Jain (1):
iio: magnetometer: mmc35240: leave cache-only mode before the cache sync

Shubham Antil (1):
xfrm: zero-initialise km_event in the replay-notify path

Siddharth Chintamaneni (1):
fs: reject negative offsets for SEEK_DATA and SEEK_HOLE in default_llseek()

Sinan Polat (1):
dm-integrity: don't recalculate with HMAC because of a dirty bitmap

Sonali Pradhan (1):
usb: gadget: f_midi: fix UAF race during IN request handling

Srinivas Pandruvada (1):
iio: hid-sensors: fix fractional part for unit exponents -7 and -8

Stefan Binding (2):
spi: Create helper API to lookup ACPI info for spi device
spi: Support selection of the index of the ACPI Spi Resource before alloc

Stefan Haberland (2):
s390/dasd: Fix wrong free and refcount leak in build_check_tcw error path s390/dasd: Don't trust userspace-supplied result field in format check

Steven Rostedt (1):
tracing/selftests: Fix false bashism in kprobe_non_uniq_symbol.tc

Su Hui (1):
fs/stat.c: avoid harmless garbage value problem in vfs_statx_path()

Takashi Iwai (1):
tpm: acpi: Fix memory leak at tpm_read_log_acpi() error path

Thinh Nguyen (1):
usb: dwc3: gadget: Clear delayed stop on End Transfer completion

Tim Budding (3):
sctp: abort unordered partial delivery when its message is skipped
sctp: fix I-FORWARD-TSN handling of fragments on other streams
sctp: report the partially delivered MID in PARTIAL_DELIVERY_ABORTED

Timur Stukan (1):
bonding: 3ad: don't set BOND_LINK_FAIL on a slave that is not up

Tristan Madani (1):
USB: serial: sierra: validate URB length in instat callback

Tung Nguyen (1):
tipc: reject attaching bearer of different media to the same occupied device

Umang Pokhriyal (1):
tun: delete the flow entries of the moved queue on detach

Uwe Kleine-König (2):
spi: Remove unused function spi_busnum_to_master()
gpio: mpc8xxx: Convert to platform remove callback returning void

Vidhu Sarwal (1):
iio: humidity: am2315: fix negative temperature decoding

Wahid Khan (1):
wifi: cfg80211: don't truncate the merged MBSSID profile length

Weiming Shi (1):
sctp: reset stored flag for each association

Wenwen Fu (1):
tracing: skip boot kprobe setup when no events were requested

Xia Yan (1):
ipv6: fix cached route reuse for control messages

Yajun Deng (1):
neigh: introduce neigh_confirm() helper function

Yaroslav Dudkov (1):
ipv6: ignore link state in gateway check

Yehyeong Lee (2):
xen/pvcalls: unwind pvcalls_new_active_socket() step by step xen/pvcalls: destroy the per-socket workqueue on release

Yifan Zhang (2):
ksmbd: require NUL-terminated EA names tracing/probes: bound symstr stores to reserved length

Yingjie Wang (3):
ipv6: reject routes without an inet6_dev
dm mpath: cap queue_if_no_path_timeout_secs
dm thin: avoid wrapping no_space_timeout

Yongqiang Liu (1):
ARM: 9359/1: flush: check if the folio is reserved for no-mapping addresses

Yu Zhang (1):
usb: gadget: f_mass_storage: take filesem in nofua store to fix backing-file UAF

YuanZhe Liu (2):
Bluetooth: hci_qca: fix use-after-free in ibs debugfs files
usb: usbtest: prevent divide by zero in simple_io() with zero length

Yuho Choi (1):
ptp: kvm: x86: Leak clock_pair page if changing its encryption fails

Yuqiang Sun (1):
bpf: lwt: Free the skb when bpf_xmit() fails to expand the headroom

Zhao Feng (1):
dm crypt: fix use of uninitialized percpu_counter in ctr error path

Zhao Li (7):
Bluetooth: L2CAP: Clear request identifiers on incoming LE connections
wifi: cfg80211: release rejected nontransmitted BSS reference
wifi: mac80211: recheck injected headers after removing FCS
wifi: mac80211: recheck the IBSS station limit before insertion
wifi: mac80211: recheck the OCB station limit before insertion
wifi: mac80211: bound pending IBSS station allocations
wifi: mac80211: bound pending OCB station allocations

Zhiqi Zhang (1):
bootconfig: Allow keys with the maximum supported depth

Zhou Minqiang (1):
PM: runtime: Fix check_flush_dependency warning from pm_runtime_remove

Zixuan Chai (1):
seg6: validate state in netfilter continuations

Zizhi Wo (2):
fs: aio: reject partial mremap to avoid Null-pointer-dereference error
block: partitions: reject GPT entries with starting_lba > ending_lba

guolingxing (1):
btrfs: verity: propagate orphan insertion errors when enabling verity

[email protected] (2):
dm log userspace: drop the device reference on error dm mpath: fix buffer overflow in parse_hw_handler()

author maintainer
#1 lore raw
Documentation/spi/spi-summary.rst +0 -8
index d4239025461d..aab5d07cb3d7 100644
@@ -336,14 +336,6 @@ certainly includes SPI devices hooked up through the card connectors!
 Non-static Configurations
 ^^^^^^^^^^^^^^^^^^^^^^^^^
 
-Developer boards often play by different rules than product boards, and one
-example is the potential need to hotplug SPI devices and/or controllers.
-
-For those cases you might need to use spi_busnum_to_master() to look
-up the spi bus master, and will likely need spi_new_device() to provide the
-board info based on the board that was hotplugged.  Of course, you'd later
-call at least spi_unregister_device() when that board is removed.
-
 When Linux includes support for MMC/SD/SDIO/DataFlash cards through SPI, those
 configurations will also be dynamic.  Fortunately, such devices all support
 basic device identification probes, so they should hotplug normally.
Documentation/trace/kprobes.rst +1 -1
index 998149ce2fd9..1aebcd752d0f 100644
@@ -31,7 +31,7 @@ can trap at almost any kernel code address [1]_, specifying a handler
 routine to be invoked when the breakpoint is hit.
 
 .. [1] some parts of the kernel code can not be trapped, see
-       :ref:`kprobes_blacklist`)
+       :ref:`kprobes_blacklist`
 
 There are currently two types of probes: kprobes, and kretprobes
 (also called return probes).  A kprobe can be inserted on virtually
Makefile +1 -1
index b4c8f2b85610..3bf3dff0387e 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 5
 PATCHLEVEL = 15
-SUBLEVEL = 226
+SUBLEVEL = 227
 EXTRAVERSION =
 NAME = Trick or Treat
 
arch/arm/mach-omap2/omap4-common.c +1 -0
index 0b80f8bcd304..1553d70546c1 100644
@@ -140,6 +140,7 @@ static int __init omap4_sram_init(void)
 			__func__);
 	else
 		sram_sync = (void *)gen_pool_alloc(sram_pool, PAGE_SIZE);
+	of_node_put(np);
 
 	return 0;
 }
arch/arm/mm/flush.c +3 -0
index 7ff9feea13a6..26690a8751a1 100644
@@ -280,6 +280,9 @@ void __sync_icache_dcache(pte_t pteval)
 		return;
 
 	page = pfn_to_page(pfn);
+	if (PageReserved(page))
+		return;
+
 	if (cache_is_vipt_aliasing())
 		mapping = page_mapping_file(page);
 	else
arch/mips/Kconfig +1 -1
index b2869b606fd8..a113a7f505d1 100644
@@ -79,7 +79,7 @@ config MIPS
 	select HAVE_IRQ_TIME_ACCOUNTING
 	select HAVE_KPROBES
 	select HAVE_KRETPROBES
-	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
+	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if !FTRACE_MCOUNT_USE_RECORDMCOUNT
 	select HAVE_MOD_ARCH_SPECIFIC
 	select HAVE_NMI
 	select HAVE_PATA_PLATFORM
arch/mips/alchemy/common/prom.c +20 -3
index b13d8adf3be4..11dc800f7566 100644
@@ -45,6 +45,11 @@ int prom_argc;
 char **prom_argv;
 char **prom_envp;
 
+static char prom_ethaddr[6] __initdata;
+static bool prom_ethaddr_valid __initdata;
+
+static void __init prom_init_ethernet_addr(void);
+
 void __init prom_init_cmdline(void)
 {
 	int i;
@@ -94,6 +99,9 @@ void __init prom_init(void)
 	if (!memsize_str || kstrtoul(memsize_str, 0, &memsize))
 		memsize = SZ_64M; /* minimum memsize is 64MB RAM */
 
+	/* Save the MAC before the allocator can reuse the PROM environment. */
+	prom_init_ethernet_addr();
+
 	memblock_add(0, memsize);
 }
 
@@ -124,7 +132,7 @@ static inline void str2eaddr(unsigned char *ea, unsigned char *str)
 	}
 }
 
-int __init prom_get_ethernet_addr(char *ethernet_addr)
+static void __init prom_init_ethernet_addr(void)
 {
 	char *ethaddr_str;
 
@@ -134,12 +142,21 @@ int __init prom_get_ethernet_addr(char *ethernet_addr)
 		/* Check command line */
 		ethaddr_str = strstr(arcs_cmdline, "ethaddr=");
 		if (!ethaddr_str)
-			return -1;
+			return;
 
 		ethaddr_str += strlen("ethaddr=");
 	}
 
-	str2eaddr(ethernet_addr, ethaddr_str);
+	str2eaddr(prom_ethaddr, ethaddr_str);
+	prom_ethaddr_valid = true;
+}
+
+int __init prom_get_ethernet_addr(char *ethernet_addr)
+{
+	if (!prom_ethaddr_valid)
+		return -1;
+
+	memcpy(ethernet_addr, prom_ethaddr, sizeof(prom_ethaddr));
 
 	return 0;
 }
arch/mips/sibyte/sb1250/irq.c +3 -0
index 86f49c48fc34..6859a0c4ca55 100644
@@ -76,6 +76,8 @@ static int sb1250_set_affinity(struct irq_data *d, const struct cpumask *mask,
 	unsigned long flags;
 
 	i = cpumask_first_and(mask, cpu_online_mask);
+	if (i >= nr_cpu_ids)
+		return -EINVAL;
 
 	/* Convert logical CPU to physical CPU */
 	cpu = cpu_logical_map(i);
@@ -103,6 +105,7 @@ static int sb1250_set_affinity(struct irq_data *d, const struct cpumask *mask,
 		____raw_writeq(cur_ints, IOADDR(A_IMR_MAPPER(cpu) +
 					R_IMR_INTERRUPT_MASK));
 	}
+	irq_data_update_effective_affinity(d, cpumask_of(i));
 	raw_spin_unlock_irqrestore(&sb1250_imr_lock, flags);
 
 	return 0;
arch/powerpc/kernel/watchdog.c +3 -0
index ad94a2c6b733..be67876d507d 100644
@@ -380,6 +380,9 @@ static void start_watchdog(void *arg)
 	if (!(watchdog_enabled & NMI_WATCHDOG_ENABLED))
 		return;
 
+	if (!watchdog_thresh)
+		return;
+
 	if (!cpumask_test_cpu(cpu, &watchdog_cpumask))
 		return;
 
arch/x86/kernel/ldt.c +9 -3
index 525876e7b9f4..b577ce4e56c2 100644
@@ -43,7 +43,7 @@ void load_mm_ldt(struct mm_struct *mm)
 {
 	struct ldt_struct *ldt;
 
-	/* READ_ONCE synchronizes with smp_store_release */
+	/* Pairs with WRITE_ONCE() in install_ldt() */
 	ldt = READ_ONCE(mm->context.ldt);
 
 	/*
@@ -420,8 +420,14 @@ static void install_ldt(struct mm_struct *mm, struct ldt_struct *ldt)
 {
 	mutex_lock(&mm->context.lock);
 
-	/* Synchronizes with READ_ONCE in load_mm_ldt. */
-	smp_store_release(&mm->context.ldt, ldt);
+	/*
+	 * Ensure that new mm user CPUs either see the new LDT value
+	 * or get an IPI. Make the store visible before reading
+	 * mm_cpumask(). New mm users make their mm_cpumask() writes
+	 * visible before reading mm->context.ldt.
+	 */
+	WRITE_ONCE(mm->context.ldt, ldt);
+	smp_mb();
 
 	/* Activate the LDT for all CPUs using currents mm. */
 	on_each_cpu_mask(mm_cpumask(mm), flush_ldt, mm, true);
block/partitions/efi.c +1 -0
index c94569585838..2d98263141a3 100644
@@ -461,6 +461,7 @@ static inline int
 is_pte_valid(const gpt_entry *pte, const u64 lastlba)
 {
 	if ((!efi_guidcmp(pte->partition_type_guid, NULL_GUID)) ||
+	    le64_to_cpu(pte->starting_lba) > le64_to_cpu(pte->ending_lba) ||
 	    le64_to_cpu(pte->starting_lba) > lastlba         ||
 	    le64_to_cpu(pte->ending_lba)   > lastlba)
 		return 0;
crypto/essiv.c +1 -1
index 365f3082ea04..42063068614d 100644
@@ -250,7 +250,7 @@ static int essiv_aead_crypt(struct aead_request *req, bool enc)
 	err = enc ? crypto_aead_encrypt(subreq) :
 		    crypto_aead_decrypt(subreq);
 
-	if (rctx->assoc && err != -EINPROGRESS && err != -EBUSY)
+	if (err != -EINPROGRESS && err != -EBUSY)
 		kfree(rctx->assoc);
 	return err;
 }
drivers/acpi/scan.c +112 -30

228 lines not on this page · raw message

drivers/ata/libata-scsi.c +24 -11
index 231e1d2faa2f..c5ce4df945de 100644
@@ -3730,7 +3730,7 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc)
 			goto invalid_fld;
 		}
 
-		len = (cdb[7] << 8) + cdb[8];
+		len = get_unaligned_be16(&cdb[7]);
 		hdr_len = 8;
 	}
 
@@ -3756,7 +3756,7 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc)
 	if (six_byte)
 		bd_len = p[3];
 	else
-		bd_len = (p[6] << 8) + p[7];
+		bd_len = get_unaligned_be16(&p[6]);
 
 	len -= hdr_len;
 	p += hdr_len;
@@ -3764,7 +3764,6 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc)
 		goto invalid_param_len;
 	if (bd_len != 0 && bd_len != 8) {
 		fp = (six_byte) ? 3 : 6;
-		fp += bd_len + hdr_len;
 		goto invalid_param;
 	}
 
@@ -3779,8 +3778,18 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc)
 		if (len < 4)
 			goto invalid_param_len;
 
+		/*
+		 * Mode pages with subpage code 00h use the page_0 format: SAT
+		 * defines the SPF bit of the Caching and Control mode pages,
+		 * for subpage code 00h, as not changeable and set to zero.
+		 */
 		spg = p[1];
-		pg_len = (p[2] << 8) | p[3];
+		if (!spg) {
+			fp = hdr_len + bd_len;
+			goto invalid_param;
+		}
+
+		pg_len = get_unaligned_be16(&p[2]);
 		p += 4;
 		len -= 4;
 	} else {
@@ -3805,6 +3814,17 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc)
 	if (pg_len > len)
 		goto invalid_param_len;
 
+	/*
+	 * A MODE SELECT command is translated into at most one ATA command, so
+	 * only one mode page per command is supported. Reject any data after
+	 * the mode page before calling the mode page handlers, which may
+	 * already update the device flags.
+	 */
+	if (len > pg_len) {
+		fp = p - buffer + pg_len;
+		goto invalid_param;
+	}
+
 	switch (pg) {
 	case CACHE_MPAGE:
 		if (ata_mselect_caching(qc, p, pg_len, &fp) < 0) {
@@ -3825,13 +3845,6 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc)
 		goto invalid_param;
 	}
 
-	/*
-	 * Only one page has changeable data, so we only support setting one
-	 * page at a time.
-	 */
-	if (len > pg_len)
-		goto invalid_param;
-
 	return 0;
 
  invalid_fld:
drivers/base/power/runtime.c +7 -1
index f94d9223ab15..4f396efd7081 100644
@@ -791,6 +791,12 @@ static int rpm_resume(struct device *dev, int rpmflags)
 		pm_runtime_deactivate_timer(dev);
 
 	if (dev->power.runtime_status == RPM_ACTIVE) {
+		/*
+		 * The attempt to resume the device means that it is needed for
+		 * something, so update its last_busy timestamp as in the case
+		 * in which it actually resumes below.
+		 */
+		pm_runtime_mark_last_busy(dev);
 		retval = 1;
 		goto out;
 	}
@@ -1774,7 +1780,7 @@ void pm_runtime_reinit(struct device *dev)
 void pm_runtime_remove(struct device *dev)
 {
 	__pm_runtime_disable(dev, false);
-	flush_work(&dev->power.work);
+	cancel_work_sync(&dev->power.work);
 	pm_runtime_reinit(dev);
 }
 
drivers/base/swnode.c +4 -3
index d4f012677bd4..9cc2742ffe02 100644
@@ -18,6 +18,8 @@ struct swnode {
 	struct fwnode_handle fwnode;
 	const struct software_node *node;
 	int id;
+	/* Device the managed node's lifetime is tied to. */
+	struct device *owner;
 
 	/* hierarchy */
 	struct ida child_ids;
@@ -26,7 +28,6 @@ struct swnode {
 	struct swnode *parent;
 
 	unsigned int allocated:1;
-	unsigned int managed:1;
 };
 
 static DEFINE_IDA(swnode_root_ids);
@@ -1116,7 +1117,7 @@ int device_create_managed_software_node(struct device *dev,
 	if (IS_ERR(fwnode))
 		return PTR_ERR(fwnode);
 
-	to_swnode(fwnode)->managed = true;
+	to_swnode(fwnode)->owner = dev;
 	set_secondary_fwnode(dev, fwnode);
 
 	if (device_is_registered(dev))
@@ -1160,7 +1161,7 @@ void software_node_notify_remove(struct device *dev)
 	sysfs_remove_link(&dev->kobj, "software_node");
 	kobject_put(&swnode->kobj);
 
-	if (swnode->managed) {
+	if (swnode->owner == dev) {
 		set_secondary_fwnode(dev, NULL);
 		kobject_put(&swnode->kobj);
 	}
drivers/block/null_blk/zoned.c +7 -6
index e41ec5096a63..d0c882a121c3 100644
@@ -338,10 +338,8 @@ static blk_status_t null_check_open(struct nullb_device *dev)
 		return BLK_STS_OK;
 
 	if (dev->nr_zones_imp_open) {
-		if (null_check_active(dev) == BLK_STS_OK) {
-			null_close_imp_open_zone(dev);
-			return BLK_STS_OK;
-		}
+		null_close_imp_open_zone(dev);
+		return BLK_STS_OK;
 	}
 
 	return BLK_STS_ZONE_OPEN_RESOURCE;
@@ -357,8 +355,11 @@ static blk_status_t null_check_open(struct nullb_device *dev)
  *
  * ZBC states that an implicit open zone shall be closed only if there is not
  * room within the open limit. However, with the addition of an active limit,
- * it is not certain that closing an implicit open zone will allow a new zone
- * to be opened, since we might already be at the active limit capacity.
+ * it is not certain that closing an implicit open zone will allow an empty
+ * zone to be opened, since we might already be at the active limit capacity.
+ * Therefore, the active limit is checked first for an empty zone. A closed
+ * zone already holds an active zone resource, so only the open limit has to
+ * be checked for a closed zone.
  */
 static blk_status_t null_check_zone_resources(struct nullb_device *dev,
 					      struct nullb_zone *zone)
drivers/bluetooth/btintel.c +23 -1
index 8b8dad2e1f4a..2842a3dc20fe 100644
@@ -996,7 +996,29 @@ static int btintel_download_firmware_payload(struct hci_dev *hdev,
 	err = -EINVAL;
 
 	while (fw_ptr - fw->data < fw->size) {
-		struct hci_command_hdr *cmd = (void *)(fw_ptr + frag_len);
+		struct hci_command_hdr *cmd;
+		size_t remain = fw->size - (fw_ptr - fw->data);
+
+		/* Ensure the header fits before dereferencing */
+		if (frag_len + sizeof(*cmd) > remain) {
+			bt_dev_err(hdev,
+				   "Firmware buffer overrun at header (frag_len %u, need %zu, remain %zu)",
+				   frag_len, frag_len + sizeof(*cmd), remain);
+			err = -EINVAL;
+			goto done;
+		}
+
+		cmd = (void *)(fw_ptr + frag_len);
+
+		/* Ensure the full command (header + payload) fits before use */
+		if (frag_len + sizeof(*cmd) + cmd->plen > remain) {
+			bt_dev_err(hdev,
+				   "Firmware buffer overrun at payload (frag_len %u, plen %u, need %zu, remain %zu)",
+				   frag_len, cmd->plen,
+				   frag_len + sizeof(*cmd) + cmd->plen, remain);
+			err = -EINVAL;
+			goto done;
+		}
 
 		frag_len += sizeof(*cmd) + cmd->plen;
 
drivers/bluetooth/hci_qca.c +5 -0
index d6bf5058a430..8fe2a6cc56a2 100644
@@ -161,6 +161,7 @@ struct qca_data {
 	struct delayed_work ctrl_memdump_timeout;
 	struct qca_memdump_data *qca_memdump;
 	unsigned long flags;
+	struct dentry *debugfs_ibs_dir;
 	struct completion drop_ev_comp;
 	wait_queue_head_t suspend_wait_q;
 	enum qca_memdump_states memdump_state;
@@ -648,6 +649,7 @@ static void qca_debugfs_init(struct hci_dev *hdev)
 		return;
 
 	ibs_dir = debugfs_create_dir("ibs", hdev->debugfs);
+	qca->debugfs_ibs_dir = ibs_dir;
 
 	/* read only */
 	mode = 0444;
@@ -723,6 +725,9 @@ static int qca_close(struct hci_uart *hu)
 
 	hu->priv = NULL;
 
+	debugfs_remove_recursive(qca->debugfs_ibs_dir);
+	qca->debugfs_ibs_dir = NULL;
+
 	kfree(qca);
 
 	return 0;
drivers/char/tpm/eventlog/acpi.c +1 -3
index 1a5644051d31..8a6a8763797b 100644
@@ -168,10 +168,8 @@ int tpm_read_log_acpi(struct tpm_chip *chip)
 	}
 
 	ret = devm_add_action(&chip->dev, tpm_bios_log_free, log->bios_event_log);
-	if (ret) {
-		log->bios_event_log = NULL;
+	if (ret)
 		goto err;
-	}
 
 	return format;
 
drivers/char/tpm/eventlog/tpm1.c +7 -0
index bdc301b21e0d..c4279e0b2e79 100644
@@ -178,6 +178,10 @@ static int get_event_name(char *dest, struct tcpa_event *event,
 		}
 		break;
 	case EVENT_TAG:
+		if (do_endian_conversion(event->event_size) <
+		    sizeof(pc_event->event_id))
+			break;
+
 		pc_event = (struct tcpa_pc_event *)event_entry;
 
 		/* ToDo Row data -> Base64 */
@@ -203,6 +207,9 @@ static int get_event_name(char *dest, struct tcpa_event *event,
 			name = tcpa_pc_event_id_strings[do_endian_conversion
 							(pc_event->event_id)];
 			n_len = strlen(name);
+			if (do_endian_conversion(event->event_size) <
+			    sizeof(struct tcpa_pc_event) + 20)
+				break;
 			for (i = 0; i < 20; i++)
 				d_len += sprintf(&data[2*i], "%02x",
 						pc_event->event_data[i]);
drivers/comedi/drivers/addi_apci_1500.c +1 -1
index b04c15dcfb57..1f12a11ab184 100644
@@ -696,7 +696,7 @@ static int apci1500_timer_insn_config(struct comedi_device *dev,
 			return -EINVAL;
 
 		val = z8536_read(dev, Z8536_CT_MODE_REG(chan));
-		val &= Z8536_CT_MODE_EGE;
+		val &= ~Z8536_CT_MODE_EGE;
 		if (data[1] == 1)
 			val |= Z8536_CT_MODE_EGE;
 		else if (data[1] > 1)
drivers/comedi/drivers/ni_660x.c +2 -1
index e60d0125bcb2..f65b61542477 100644
@@ -460,7 +460,8 @@ static int ni_660x_input_poll(struct comedi_device *dev,
 
 	/* lock to avoid race with comedi_poll */
 	spin_lock_irqsave(&devpriv->interrupt_lock, flags);
-	mite_sync_dma(counter->mite_chan, s);
+	if (counter->mite_chan)
+		mite_sync_dma(counter->mite_chan, s);
 	spin_unlock_irqrestore(&devpriv->interrupt_lock, flags);
 	return comedi_buf_read_n_available(s);
 }
drivers/comedi/drivers/ni_tio.c +1 -1
index da6826d77e60..98b5b44416cf 100644
@@ -800,7 +800,7 @@ static int ni_tio_set_clock_src(struct ni_gpct *counter,
 				GI_PRESCALE_X2(counter_dev->variant) |
 				GI_PRESCALE_X8(counter_dev->variant), bits);
 	}
-	counter->clock_period_ps = period_ns * 1000;
+	counter->clock_period_ps = (u64)period_ns * 1000;
 	ni_tio_set_sync_mode(counter);
 	return 0;
 }
drivers/comedi/drivers/vmk80xx.c +12 -13
index 07d10373b954..9574124638bd 100644
@@ -152,7 +152,7 @@ struct vmk80xx_private {
 	enum vmk80xx_model model;
 };
 
-static void vmk80xx_do_bulk_msg(struct comedi_device *dev)
+static int vmk80xx_do_bulk_msg(struct comedi_device *dev)
 {
 	struct vmk80xx_private *devpriv = dev->private;
 	struct usb_device *usb = comedi_to_usb_dev(dev);
@@ -162,6 +162,7 @@ static void vmk80xx_do_bulk_msg(struct comedi_device *dev)
 	unsigned int rx_pipe;
 	size_t tx_size;
 	size_t rx_size;
+	int ret;
 
 	tx_addr = devpriv->ep_tx->bEndpointAddress;
 	rx_addr = devpriv->ep_rx->bEndpointAddress;
@@ -170,11 +171,13 @@ static void vmk80xx_do_bulk_msg(struct comedi_device *dev)
 	tx_size = usb_endpoint_maxp(devpriv->ep_tx);
 	rx_size = usb_endpoint_maxp(devpriv->ep_rx);
 
-	usb_bulk_msg(usb, tx_pipe, devpriv->usb_tx_buf, tx_size, NULL,
-		     PACKET_TIMEOUT);
+	ret = usb_bulk_msg(usb, tx_pipe, devpriv->usb_tx_buf, tx_size, NULL,
+			   PACKET_TIMEOUT);
+	if (ret)
+		return ret;
 
-	usb_bulk_msg(usb, rx_pipe, devpriv->usb_rx_buf, rx_size, NULL,
-		     PACKET_TIMEOUT);
+	return usb_bulk_msg(usb, rx_pipe, devpriv->usb_rx_buf, rx_size, NULL,
+			    PACKET_TIMEOUT);
 }
 
 static int vmk80xx_read_packet(struct comedi_device *dev)
@@ -184,10 +187,8 @@ static int vmk80xx_read_packet(struct comedi_device *dev)
 	struct usb_endpoint_descriptor *ep;
 	unsigned int pipe;
 
-	if (devpriv->model == VMK8061_MODEL) {
-		vmk80xx_do_bulk_msg(dev);
-		return 0;
-	}
+	if (devpriv->model == VMK8061_MODEL)
+		return vmk80xx_do_bulk_msg(dev);
 
 	ep = devpriv->ep_rx;
 	pipe = usb_rcvintpipe(usb, ep->bEndpointAddress);
@@ -205,10 +206,8 @@ static int vmk80xx_write_packet(struct comedi_device *dev, int cmd)
 
 	devpriv->usb_tx_buf[0] = cmd;
 
-	if (devpriv->model == VMK8061_MODEL) {
-		vmk80xx_do_bulk_msg(dev);
-		return 0;
-	}
+	if (devpriv->model == VMK8061_MODEL)
+		return vmk80xx_do_bulk_msg(dev);
 
 	ep = devpriv->ep_tx;
 	pipe = usb_sndintpipe(usb, ep->bEndpointAddress);
drivers/cpufreq/acpi-cpufreq.c +4 -5
index 7fc831cbe12b..c8cd637f75db 100644
@@ -196,14 +196,13 @@ static unsigned extract_io(struct cpufreq_policy *policy, u32 value)
 {
 	struct acpi_cpufreq_data *data = policy->driver_data;
 	struct acpi_processor_performance *perf;
-	int i;
+	struct cpufreq_frequency_table *pos;
 
 	perf = to_perf_data(data);
 
-	for (i = 0; i < perf->state_count; i++) {
-		if (value == perf->states[i].status)
-			return policy->freq_table[i].frequency;
-	}
+	cpufreq_for_each_entry(pos, policy->freq_table)
+		if (value == perf->states[pos->driver_data].status)
+			return pos->frequency;
 	return 0;
 }
 
drivers/cpufreq/cpufreq.c +14 -4
index b8d347d0f68e..59301722974c 100644
@@ -539,8 +539,8 @@ static unsigned int __resolve_freq(struct cpufreq_policy *policy,
 
 	idx = cpufreq_frequency_table_target(policy, target_freq, relation);
 	policy->cached_resolved_idx = idx;
-	policy->cached_target_freq = target_freq;
-	return policy->freq_table[idx].frequency;
+	policy->cached_target_freq = policy->freq_table[idx].frequency;
+	return policy->cached_target_freq;
 }
 
 /**
@@ -2697,11 +2697,16 @@ static int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state)
 	return 0;
 }
 
+static DEFINE_MUTEX(cpufreq_boost_mutex);
+
 int cpufreq_boost_trigger_state(int state)
 {
 	struct cpufreq_policy *policy;
 	unsigned long flags;
-	int ret = 0;
+	bool boost_enabled;
+	int ret = -EOPNOTSUPP;
+
+	guard(mutex)(&cpufreq_boost_mutex);
 
 	/*
 	 * Don't compare 'cpufreq_driver->boost_enabled' with 'state' here to
@@ -2709,6 +2714,7 @@ int cpufreq_boost_trigger_state(int state)
 	 */
 
 	write_lock_irqsave(&cpufreq_driver_lock, flags);
+	boost_enabled = cpufreq_driver->boost_enabled;
 	cpufreq_driver->boost_enabled = state;
 	write_unlock_irqrestore(&cpufreq_driver_lock, flags);
 
@@ -2718,6 +2724,10 @@ int cpufreq_boost_trigger_state(int state)
 		if (ret)
 			goto err_reset_state;
 	}
+
+	if (ret)
+		goto err_reset_state;
+
 	cpus_read_unlock();
 
 	return 0;
@@ -2726,7 +2736,7 @@ int cpufreq_boost_trigger_state(int state)
 	cpus_read_unlock();
 
 	write_lock_irqsave(&cpufreq_driver_lock, flags);
-	cpufreq_driver->boost_enabled = !state;
+	cpufreq_driver->boost_enabled = boost_enabled;
 	write_unlock_irqrestore(&cpufreq_driver_lock, flags);
 
 	pr_err("%s: Cannot %s BOOST\n",
drivers/cpufreq/intel_pstate.c +13 -1
index a382ab8ba68c..267e8dbe10d4 100644
@@ -2898,10 +2898,11 @@ static int intel_cpufreq_cpu_exit(struct cpufreq_policy *policy)
 
 static int intel_cpufreq_suspend(struct cpufreq_policy *policy)
 {
+	struct cpudata *cpu = all_cpu_data[policy->cpu];
+
 	intel_pstate_suspend(policy);
 
 	if (hwp_active) {
-		struct cpudata *cpu = all_cpu_data[policy->cpu];
 		u64 value = READ_ONCE(cpu->hwp_req_cached);
 
 		/*
@@ -2912,6 +2913,17 @@ static int intel_cpufreq_suspend(struct cpufreq_policy *policy)
 		value &= ~HWP_DESIRED_PERF(~0L);
 		wrmsrl_on_cpu(cpu->cpu, MSR_HWP_REQUEST, value);
 		WRITE_ONCE(cpu->hwp_req_cached, value);
+	} else {
+		/*
+		 * Invalidate the cached P-state value that may be stale when
+		 * the governor is started again during resume and may prevent
+		 * MSR_IA32_PERF_CTL from being updated.
+		 *
+		 * This does not require synchronization because the core
+		 * prevents frequency updates for suspended policies from
+		 * occurring.
+		 */
+		cpu->pstate.current_pstate = 0;
 	}
 
 	return 0;
drivers/gpio/gpio-brcmstb.c +1 -0
index c5d85e931f2a..7bf750197733 100644
@@ -505,6 +505,7 @@ static int brcmstb_gpio_irq_setup(struct platform_device *pdev,
 
 out_free_domain:
 	irq_domain_remove(priv->irq_domain);
+	priv->irq_domain = NULL;
 
 	return err;
 }
drivers/gpio/gpio-mpc8xxx.c +65 -34

170 lines not on this page · raw message

drivers/gpio/gpio-omap.c +11 -2
index 171e2150c362..cdb17d4bce74 100644
@@ -777,8 +777,11 @@ static int omap_gpio_request(struct gpio_chip *chip, unsigned offset)
 {
 	struct gpio_bank *bank = gpiochip_get_data(chip);
 	unsigned long flags;
+	int ret;
 
-	pm_runtime_get_sync(chip->parent);
+	ret = pm_runtime_resume_and_get(chip->parent);
+	if (ret < 0)
+		return ret;
 
 	raw_spin_lock_irqsave(&bank->lock, flags);
 	omap_enable_gpio_module(bank, offset);
@@ -1465,7 +1468,13 @@ static int omap_gpio_probe(struct platform_device *pdev)
 	platform_set_drvdata(pdev, bank);
 
 	pm_runtime_enable(dev);
-	pm_runtime_get_sync(dev);
+	ret = pm_runtime_resume_and_get(dev);
+	if (ret < 0) {
+		pm_runtime_disable(dev);
+		if (bank->dbck_flag)
+			clk_unprepare(bank->dbck);
+		return ret;
+	}
 
 	if (bank->is_mpuio)
 		omap_mpuio_init(bank);
drivers/gpio/gpio-rockchip.c +10 -5
index 6b70b61c0284..6a102c6905e3 100644
@@ -198,20 +198,25 @@ static int rockchip_gpio_set_debounce(struct gpio_chip *gc,
 {
 	struct rockchip_pin_bank *bank = gpiochip_get_data(gc);
 	const struct rockchip_gpio_regs	*reg = bank->gpio_regs;
-	unsigned long flags, div_reg, freq, max_debounce;
+	unsigned long flags, div_reg, freq;
 	bool div_debounce_support;
 	unsigned int cur_div_reg;
-	u64 div;
+	u64 div, max_debounce;
 
 	if (bank->gpio_type == GPIO_TYPE_V2 && !IS_ERR(bank->db_clk)) {
 		div_debounce_support = true;
 		freq = clk_get_rate(bank->db_clk);
-		max_debounce = (GENMASK(23, 0) + 1) * 2 * 1000000 / freq;
+		if (!freq)
+			return -EINVAL;
+
+		div = (u64)(GENMASK(23, 0) + 1) * 2 * USEC_PER_SEC;
+		max_debounce = div64_u64(div, freq);
 		if (debounce > max_debounce)
 			return -EINVAL;
 
-		div = debounce * freq;
-		div_reg = DIV_ROUND_CLOSEST_ULL(div, 2 * USEC_PER_SEC) - 1;
+		div = (u64)debounce * freq;
+		div_reg = DIV_ROUND_CLOSEST_ULL(div, 2 * USEC_PER_SEC);
+		div_reg = div_reg ? div_reg - 1 : 0;
 	} else {
 		div_debounce_support = false;
 	}
drivers/gpio/gpio-sodaville.c +6 -3
index c2a2c76c1652..4b16b7387882 100644
@@ -165,9 +165,12 @@ static int sdv_register_irqsupport(struct sdv_gpio_chip_data *sd,
 	ct->chip.irq_eoi = irq_gc_eoi;
 	ct->chip.irq_set_type = sdv_gpio_pub_set_type;
 
-	irq_setup_generic_chip(sd->gc, IRQ_MSK(SDV_NUM_PUB_GPIOS),
-			IRQ_GC_INIT_MASK_CACHE, IRQ_NOREQUEST,
-			IRQ_LEVEL | IRQ_NOPROBE);
+	ret = devm_irq_setup_generic_chip(&pdev->dev, sd->gc,
+					  IRQ_MSK(SDV_NUM_PUB_GPIOS),
+					  IRQ_GC_INIT_MASK_CACHE, IRQ_NOREQUEST,
+					  IRQ_LEVEL | IRQ_NOPROBE);
+	if (ret)
+		return ret;
 
 	sd->id = irq_domain_add_legacy(pdev->dev.of_node, SDV_NUM_PUB_GPIOS,
 				sd->irq_base, 0, &irq_domain_sdv_ops, sd);
drivers/gpio/gpiolib-of.h +1 -1
index 8af2bc899aab..9cab0194554e 100644
@@ -28,7 +28,7 @@ static inline int of_gpiochip_add(struct gpio_chip *gc) { return 0; }
 static inline void of_gpiochip_remove(struct gpio_chip *gc) { }
 static inline int of_gpio_get_count(struct device *dev, const char *con_id)
 {
-	return 0;
+	return -ENOENT;
 }
 static inline bool of_gpio_need_valid_mask(const struct gpio_chip *gc)
 {
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +3 -0
index a87dbd3173d6..e30dbb3cca7b 100644
@@ -113,6 +113,9 @@ static int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, union drm_amdgpu_cs
 	if (cs->in.num_chunks == 0)
 		return -EINVAL;
 
+	if (cs->in.flags)
+		return -EINVAL;
+
 	chunk_array = kvmalloc_array(cs->in.num_chunks, sizeof(uint64_t), GFP_KERNEL);
 	if (!chunk_array)
 		return -ENOMEM;
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c +19 -1
index 83fa3d20a1d5..d7dbff65e239 100644
@@ -1585,7 +1585,25 @@ int smu_v11_0_set_azalia_d3_pme(struct smu_context *smu)
 int smu_v11_0_baco_set_armd3_sequence(struct smu_context *smu,
 				      enum smu_v11_0_baco_seq baco_seq)
 {
-	return smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_ArmD3, baco_seq, NULL);
+	struct smu_baco_context *smu_baco = &smu->smu_baco;
+	int ret;
+
+	ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_ArmD3, baco_seq, NULL);
+	if (ret)
+		return ret;
+
+	/*
+	 * PMFW owns the BACO transition once armed, so keep the driver's view
+	 * in sync.  Otherwise smu_v11_0_get_bamaco_support() falls back to the
+	 * live BACO feature bit, which PMFW clears when armed, and the runtime
+	 * resume wrongly concludes BACO is unsupported and skips the exit.
+	 */
+	if (baco_seq == BACO_SEQ_BAMACO || baco_seq == BACO_SEQ_BACO)
+		smu_baco->state = SMU_BACO_STATE_ENTER;
+	else
+		smu_baco->state = SMU_BACO_STATE_EXIT;
+
+	return 0;
 }
 
 bool smu_v11_0_baco_is_support(struct smu_context *smu)
drivers/gpu/drm/bridge/sii902x.c +7 -1
index 89558e581530..91c627ff6d6e 100644
@@ -781,9 +781,15 @@ static int sii902x_audio_codec_init(struct sii902x *sii902x,
 	}
 	codec_data.max_i2s_channels = 2 * num_lanes;
 
-	for (i = 0; i < num_lanes; i++)
+	for (i = 0; i < num_lanes; i++) {
+		if (lanes[i] >= ARRAY_SIZE(i2s_lane_id))
+			return dev_err_probe(dev, -EINVAL,
+					     "invalid sil,i2s-data-lanes value %u\n",
+					     lanes[i]);
+
 		sii902x->audio.i2s_fifo_sequence[i] |= audio_fifo_id[i] |
 			i2s_lane_id[lanes[i]] |	SII902X_TPI_I2S_FIFO_ENABLE;
+	}
 
 	sii902x->audio.mclk = devm_clk_get_optional(dev, "mclk");
 	if (IS_ERR(sii902x->audio.mclk)) {
drivers/hwmon/aht10.c +1 -1
index 2d9770cb4401..9bdaf7d65a9a 100644
@@ -182,7 +182,7 @@ static int aht10_read_values(struct aht10_data *data)
 static ssize_t aht10_interval_write(struct aht10_data *data,
 				    long val)
 {
-	data->min_poll_interval = ms_to_ktime(clamp_val(val, 2000, LONG_MAX));
+	data->min_poll_interval = ms_to_ktime(clamp_val(val, 2000, INT_MAX));
 	return 0;
 }
 
drivers/i3c/master.c +27 -12
index 6e02c91060ab..40aca5006b87 100644
@@ -1481,12 +1481,16 @@ static int i3c_master_early_i3c_dev_add(struct i3c_master_controller *master,
 static void
 i3c_master_register_new_i3c_devs(struct i3c_master_controller *master)
 {
+	struct i3c_device *i3cdev, *tmp;
 	struct i3c_dev_desc *desc;
+	LIST_HEAD(i3c_unreg_devs);
 	int ret;
 
 	if (!master->init_done)
 		return;
 
+	i3c_bus_maintenance_lock(&master->bus);
+
 	i3c_bus_for_each_i3cdev(&master->bus, desc) {
 		if (desc->dev || !desc->info.dyn_addr || desc == master->this)
 			continue;
@@ -1507,15 +1511,30 @@ i3c_master_register_new_i3c_devs(struct i3c_master_controller *master)
 		if (desc->boardinfo)
 			desc->dev->dev.of_node = desc->boardinfo->of_node;
 
-		ret = device_register(&desc->dev->dev);
-		if (ret) {
-			dev_err(&master->dev,
-				"Failed to add I3C device (err = %d)\n", ret);
-			desc->dev->desc = NULL;
-			put_device(&desc->dev->dev);
-			desc->dev = NULL;
-		}
+		list_add_tail(&desc->dev->node, &i3c_unreg_devs);
+	}
+
+	i3c_bus_maintenance_unlock(&master->bus);
+
+	list_for_each_entry_safe(i3cdev, tmp, &i3c_unreg_devs, node) {
+		ret = device_register(&i3cdev->dev);
+		if (ret)
+			dev_err(&master->dev, "Failed to add I3C device (err = %d)\n", ret);
+		else
+			list_del_init(&i3cdev->node);
 	}
+
+	i3c_bus_maintenance_lock(&master->bus);
+
+	list_for_each_entry_safe(i3cdev, tmp, &i3c_unreg_devs, node) {
+		list_del(&i3cdev->node);
+		desc = i3cdev->desc;
+		i3cdev->desc = NULL;
+		put_device(&i3cdev->dev);
+		desc->dev = NULL;
+	}
+
+	i3c_bus_maintenance_unlock(&master->bus);
 }
 
 /**
@@ -1544,9 +1563,7 @@ int i3c_master_do_daa(struct i3c_master_controller *master)
 	if (ret)
 		return ret;
 
-	i3c_bus_normaluse_lock(&master->bus);
 	i3c_master_register_new_i3c_devs(master);
-	i3c_bus_normaluse_unlock(&master->bus);
 
 	return 0;
 }
@@ -2585,9 +2602,7 @@ int i3c_master_register(struct i3c_master_controller *master,
 	 * register I3C devices discovered during the initial DAA.
 	 */
 	master->init_done = true;
-	i3c_bus_normaluse_lock(&master->bus);
 	i3c_master_register_new_i3c_devs(master);
-	i3c_bus_normaluse_unlock(&master->bus);
 
 	return 0;
 
drivers/iio/accel/kxsd9.c +1 -1
index 168c09c8ce06..42cd75db6775 100644
@@ -484,8 +484,8 @@ int kxsd9_common_remove(struct device *dev)
 	struct iio_dev *indio_dev = dev_get_drvdata(dev);
 	struct kxsd9_state *st = iio_priv(indio_dev);
 
-	iio_triggered_buffer_cleanup(indio_dev);
 	iio_device_unregister(indio_dev);
+	iio_triggered_buffer_cleanup(indio_dev);
 	pm_runtime_get_sync(dev);
 	pm_runtime_put_noidle(dev);
 	pm_runtime_disable(dev);
drivers/iio/afe/iio-rescale.c +2 -1
index ea0a39882eb2..59d15bf0c0f0 100644
@@ -242,7 +242,8 @@ static int rescale_configure_channel(struct device *dev,
 	chan->info_mask_separate = BIT(IIO_CHAN_INFO_RAW) |
 		BIT(IIO_CHAN_INFO_SCALE);
 
-	if (rescale->offset)
+	if (rescale->offset ||
+	    iio_channel_has_info(schan, IIO_CHAN_INFO_OFFSET))
 		chan->info_mask_separate |= BIT(IIO_CHAN_INFO_OFFSET);
 
 	/*
drivers/iio/chemical/atlas-ezo-sensor.c +0 -3
index b1bacfe3c3ce..e10bfe228146 100644
@@ -115,9 +115,6 @@ static int atlas_ezo_read_raw(struct iio_dev *indio_dev,
 	struct atlas_ezo_data *data = iio_priv(indio_dev);
 	struct i2c_client *client = data->client;
 
-	if (chan->type != IIO_CONCENTRATION)
-		return -EINVAL;
-
 	switch (mask) {
 	case IIO_CHAN_INFO_RAW: {
 		int ret;
drivers/iio/common/hid-sensors/hid-sensor-attributes.c +12 -2
index 9b279937a24e..650016e4a40f 100644
@@ -38,6 +38,8 @@ static struct {
 	{HID_USAGE_SENSOR_COMPASS_3D, 0, 0, 1000000},
 	{HID_USAGE_SENSOR_COMPASS_3D, HID_USAGE_SENSOR_UNITS_GAUSS, 1, 0},
 
+	{HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH, 0, 1, 0},
+
 	{HID_USAGE_SENSOR_INCLINOMETER_3D, 0, 0, 17453293},
 	{HID_USAGE_SENSOR_INCLINOMETER_3D,
 		HID_USAGE_SENSOR_UNITS_DEGREES, 0, 17453293},
@@ -93,9 +95,14 @@ static void simple_div(int dividend, int divisor, int *whole,
 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2)
 {
 	int divisor = int_pow(10, exp);
+	unsigned int rem;
 
 	*val1 = no / divisor;
-	*val2 = no % divisor * int_pow(10, 6 - exp);
+	rem = no % divisor;
+	if (exp > 6)
+		*val2 = rem / (unsigned int)int_pow(10, exp - 6);
+	else
+		*val2 = rem * int_pow(10, 6 - exp);
 }
 
 /*
@@ -137,7 +144,10 @@ static u32 convert_to_vtf_format(int size, int exp, int val1, int val2)
 	if (val1 < 0 || val2 < 0)
 		sign = -1;
 	exp = hid_sensor_convert_exponent(exp);
-	if (exp < 0) {
+	if (exp < -6) {
+		value = abs(val1) * int_pow(10, -exp);
+		value += abs(val2) * int_pow(10, -exp - 6);
+	} else if (exp < 0) {
 		divisor = int_pow(10, 6 + exp);
 		value = abs(val1) * int_pow(10, -exp);
 		value += abs(val2) / divisor;
drivers/iio/dac/mcp4725.c +2 -0
index 795b5b9e6772..b0fabf767fbe 100644
@@ -353,6 +353,8 @@ static int mcp4725_write_raw(struct iio_dev *indio_dev,
 	switch (mask) {
 	case IIO_CHAN_INFO_RAW:
 		ret = mcp4725_set_value(indio_dev, val);
+		if (ret)
+			return ret;
 		data->dac_value = val;
 		break;
 	default:
drivers/iio/gyro/bmg160_core.c +1 -1
index f943ba557d56..e823a8ba4066 100644
@@ -767,7 +767,7 @@ static int bmg160_write_event_config(struct iio_dev *indio_dev,
 	struct bmg160_data *data = iio_priv(indio_dev);
 	int ret;
 
-	if (state && data->ev_enable_state)
+	if (state == data->ev_enable_state)
 		return 0;
 
 	mutex_lock(&data->mutex);
drivers/iio/humidity/am2315.c +10 -2
index 4a39f1019347..c26b55e702d8 100644
@@ -113,6 +113,7 @@ static int am2315_read_data(struct am2315_data *data,
 	 */
 	u8 rx_buf[8];
 	u16 crc;
+	u16 temp_raw;
 
 	/* First wake up the device. */
 	am2315_ping(data->client);
@@ -144,8 +145,15 @@ static int am2315_read_data(struct am2315_data *data,
 
 	sensor_data->hum_data = (rx_buf[AM2315_HUM_OFFSET] << 8) |
 				 rx_buf[AM2315_HUM_OFFSET + 1];
-	sensor_data->temp_data = (rx_buf[AM2315_TEMP_OFFSET] << 8) |
-				  rx_buf[AM2315_TEMP_OFFSET + 1];
+
+	/*
+	 * Temperature is sign-magnitude, not two's complement:
+	 * bit 15 is the sign, bits 14-0 are the magnitude (x0.1 degC).
+	 */
+	temp_raw = (rx_buf[AM2315_TEMP_OFFSET] << 8) |
+		   rx_buf[AM2315_TEMP_OFFSET + 1];
+	sensor_data->temp_data = (temp_raw & 0x8000) ?
+				  -(temp_raw & 0x7fff) : temp_raw;
 
 	return ret;
 
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +2 -0
index b79304e16af5..d2a8a65dd3a8 100644
@@ -1153,6 +1153,8 @@ static const unsigned long inv_mpu_scan_masks[] = {
 		.type = IIO_MAGN,					\
 		.modified = 1,						\
 		.channel2 = _chan2,					\
+		/* index of the axis in magn_raw_to_gauss[] */		\
+		.address = (_chan2) - IIO_MOD_X,			\
 		.info_mask_separate = BIT(IIO_CHAN_INFO_SCALE) |	\
 				      BIT(IIO_CHAN_INFO_RAW),		\
 		.scan_index = _index,					\
drivers/iio/imu/kmx61.c +1 -1
index 950570ae2980..6a3a0ef02194 100644
@@ -946,7 +946,7 @@ static int kmx61_write_event_config(struct iio_dev *indio_dev,
 	struct kmx61_data *data = kmx61_get_data(indio_dev);
 	int ret = 0;
 
-	if (state && data->ev_enable_state)
+	if (state == data->ev_enable_state)
 		return 0;
 
 	mutex_lock(&data->lock);
drivers/iio/industrialio-trigger.c +1 -0
index cbc2bf79d2b7..f85478742d50 100644
@@ -290,6 +290,7 @@ int iio_trigger_attach_poll_func(struct iio_trigger *trig,
 	if (pf->irq < 0) {
 		pr_err("Could not find an available irq for trigger %s, CONFIG_IIO_CONSUMERS_PER_TRIGGER=%d limit might be exceeded\n",
 			trig->name, CONFIG_IIO_CONSUMERS_PER_TRIGGER);
+		ret = pf->irq;
 		goto out_put_module;
 	}
 
drivers/iio/light/tsl2591.c +22 -10
index 511b6d574ca0..a113a8348a83 100644
@@ -16,6 +16,7 @@
 #include <linux/interrupt.h>
 #include <linux/iopoll.h>
 #include <linux/kernel.h>
+#include <linux/math64.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/pm_runtime.h>
@@ -425,6 +426,10 @@ static int tsl2591_wait_adc_complete(struct tsl2591_chip *chip)
  * Scale values to get more representative value of lux i.e.
  * lux = ((C0DATA - C1DATA) * (1000 - ((C1DATA * 1000) / C0DATA))) / CPL
  *
+ * CPL is not computed on its own: at 1x gain it is below 1 for integration
+ * times under 500 ms, so the division by LUX DF is folded into the final
+ * division instead.
+ *
  * Channel 0 = IR + Visible
  * Channel 1 = IR only
  */
@@ -436,8 +441,10 @@ static int tsl2591_read_channel_data(struct iio_dev *indio_dev,
 	struct tsl2591_als_settings *settings = &chip->als_settings;
 	struct i2c_client *client = chip->client;
 	u8 als_data[TSL2591_NUM_DATA_REGISTERS];
-	int counts_per_lux, int_time_fval, gain_multi, lux;
+	int int_time_fval, gain_multi;
 	u16 als_ch0, als_ch1;
+	u64 lux;
+	u32 rem;
 	int ret;
 
 	ret = tsl2591_wait_adc_complete(chip);
@@ -473,23 +480,28 @@ static int tsl2591_read_channel_data(struct iio_dev *indio_dev,
 			return gain_multi;
 		}
 
-		int_time_fval = TSL2591_FVAL_TO_MSEC(settings->als_int_time);
-		/* Calculate counts per lux value */
-		counts_per_lux = (int_time_fval * gain_multi) / TSL2591_LUX_COEFFICIENT;
+		/* No visible light, this also catches C0DATA == 0 */
+		if (als_ch0 <= als_ch1) {
+			*val = 0;
+			*val2 = 0;
+			break;
+		}
 
-		dev_dbg(&client->dev, "Counts Per Lux: %d\n", counts_per_lux);
+		int_time_fval = TSL2591_FVAL_TO_MSEC(settings->als_int_time);
 
 		/* Calculate lux value */
-		lux = ((als_ch0 - als_ch1) *
-		       (1000 - ((als_ch1 * 1000) / als_ch0))) / counts_per_lux;
+		lux = (u64)(als_ch0 - als_ch1) *
+		      (1000 - ((als_ch1 * 1000) / als_ch0)) *
+		      TSL2591_LUX_COEFFICIENT;
+		lux = div_u64(lux, int_time_fval * gain_multi);
 
-		dev_dbg(&client->dev, "Raw lux calculation: %d\n", lux);
+		dev_dbg(&client->dev, "Raw lux calculation: %llu\n", lux);
 
 		/* Divide by 1000 to get real lux value before scaling */
-		*val = lux / 1000;
+		*val = div_u64_rem(lux, 1000, &rem);
 
 		/* Get the decimal part of lux reading */
-		*val2 = (lux - (*val * 1000)) * 1000;
+		*val2 = rem * 1000;
 
 		break;
 	default:
drivers/iio/light/vcnl4035.c +2 -2
index db8df596bafa..4a3d50798e4d 100644
@@ -46,8 +46,8 @@
 #define VCNL4035_DEV_ID_MASK		GENMASK(7, 0)
 
 /* Default values */
-#define VCNL4035_MODE_ALS_ENABLE	BIT(0)
-#define VCNL4035_MODE_ALS_DISABLE	0x00
+#define VCNL4035_MODE_ALS_ENABLE	0x00
+#define VCNL4035_MODE_ALS_DISABLE	BIT(0)
 #define VCNL4035_MODE_ALS_INT_ENABLE	BIT(1)
 #define VCNL4035_MODE_ALS_INT_DISABLE	0
 #define VCNL4035_DEV_ID_VAL		0x80
drivers/iio/magnetometer/mmc35240.c +1 -2
index 65f3d1ed0d59..1e324be9ad93 100644
@@ -538,14 +538,13 @@ static int mmc35240_resume(struct device *dev)
 	struct mmc35240_data *data = iio_priv(indio_dev);
 	int ret;
 
+	regcache_cache_only(data->regmap, false);
 	regcache_mark_dirty(data->regmap);
 	ret = regcache_sync_region(data->regmap, MMC35240_REG_CTRL0,
 				   MMC35240_REG_CTRL1);
 	if (ret < 0)
 		dev_err(dev, "Failed to restore control registers\n");
 
-	regcache_cache_only(data->regmap, false);
-
 	return 0;
 }
 #endif
drivers/input/ff-core.c +1 -1
index a765e185c7a1..41609fd328b1 100644
@@ -361,7 +361,7 @@ EXPORT_SYMBOL_GPL(input_ff_create);
  *
  * This function is only needed in error path as input core will
  * automatically free force feedback structures when device is
- * destroyed.
+ * unregistered or destroyed.
  */
 void input_ff_destroy(struct input_dev *dev)
 {
drivers/input/input.c +2 -0
index 171f71bd4c2a..18b642ef6145 100644
@@ -2291,6 +2291,8 @@ static void __input_unregister_device(struct input_dev *dev)
 	mutex_unlock(&input_mutex);
 
 	device_del(&dev->dev);
+
+	input_ff_destroy(dev);
 }
 
 static void devm_input_device_unregister(struct device *dev, void *res)
drivers/md/dm-cache-metadata.c +3 -1
index c183c2fc1691..ad8e7ee918cf 100644
@@ -760,6 +760,7 @@ static struct dm_cache_metadata *metadata_open(struct block_device *bdev,
 		return ERR_PTR(-ENOMEM);
 	}
 
+	INIT_LIST_HEAD(&cmd->list);
 	cmd->version = metadata_version;
 	refcount_set(&cmd->ref_count, 1);
 	init_rwsem(&cmd->root_lock);
@@ -1443,7 +1444,8 @@ static int __load_mappings(struct dm_cache_metadata *cmd,
 					   from_cblock(cmd->cache_blocks),
 					   &cmd->dirty_cursor);
 		if (r) {
-			dm_array_cursor_end(&cmd->hint_cursor);
+			if (hints_valid)
+				dm_array_cursor_end(&cmd->hint_cursor);
 			dm_array_cursor_end(&cmd->mapping_cursor);
 			return r;
 		}
drivers/md/dm-cache-target.c +1 -0
index 04b11ad0d7c7..ea1843bb70b3 100644
@@ -2512,6 +2512,7 @@ static int cache_create(struct cache_args *ca, struct cache **result)
 	if (IS_ERR(cache->copier)) {
 		*error = "could not create kcopyd client";
 		r = PTR_ERR(cache->copier);
+		cache->copier = NULL;
 		goto bad;
 	}
 
drivers/md/dm-crypt.c +8 -4
index 4899b6d16d0f..611d92ae3218 100644
@@ -3157,6 +3157,14 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)
 		ti->error = "Cannot allocate encryption context";
 		return -ENOMEM;
 	}
+
+	ret = percpu_counter_init(&cc->n_allocated_pages, 0, GFP_KERNEL);
+	if (ret < 0) {
+		ti->error = "Cannot initialize page counter";
+		kfree_sensitive(cc);
+		return ret;
+	}
+
 	cc->key_size = key_size;
 	cc->sector_size = (1 << SECTOR_SHIFT);
 	cc->sector_shift = 0;
@@ -3168,10 +3176,6 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)
 	crypt_calculate_pages_per_client();
 	spin_unlock(&dm_crypt_clients_lock);
 
-	ret = percpu_counter_init(&cc->n_allocated_pages, 0, GFP_KERNEL);
-	if (ret < 0)
-		goto bad;
-
 	/* Optional parameters need to be read before cipher constructor */
 	if (argc > 5) {
 		ret = crypt_ctr_optional(ti, argc - 5, &argv[5]);
drivers/md/dm-integrity.c +27 -3
index a3a223f096a3..7f11536ec845 100644
@@ -2345,6 +2345,11 @@ static void integrity_commit(struct work_struct *w)
 
 	spin_lock_irq(&ic->endio_wait.lock);
 	flushes = bio_list_get(&ic->flush_bio_list);
+	if (unlikely(dm_integrity_failed(ic))) {
+		wake_up_locked(&ic->endio_wait);
+		spin_unlock_irq(&ic->endio_wait.lock);
+		goto release_flush_bios;
+	}
 	if (unlikely(ic->mode != 'J')) {
 		spin_unlock_irq(&ic->endio_wait.lock);
 		dm_integrity_flush_buffers(ic, true);
@@ -3111,6 +3116,24 @@ static void dm_integrity_postsuspend(struct dm_target *ti)
 	ic->journal_uptodate = true;
 }
 
+/*
+ * The superblock is authenticated only if fix_hmac and journal_mac are used,
+ * so SB_FLAG_DIRTY_BITMAP may have been set by someone who doesn't know the
+ * key. Apply the policy that the constructor applies to SB_FLAG_RECALCULATING.
+ */
+static bool dm_integrity_may_recalc_dirty_bitmap(struct dm_integrity_c *ic)
+{
+	if (!ic->internal_hash) {
+		DMERR("Dirty bitmap found, but internal_hash is not used");
+		return false;
+	}
+	if (dm_integrity_disable_recalculate(ic)) {
+		DMERR("Dirty bitmap found, but HMAC recalculation requires \"legacy_recalculate\"");
+		return false;
+	}
+	return true;
+}
+
 static void dm_integrity_resume(struct dm_target *ti)
 {
 	struct dm_integrity_c *ic = (struct dm_integrity_c *)ti->private;
@@ -3169,8 +3192,10 @@ static void dm_integrity_resume(struct dm_target *ti)
 			if (!(ic->sb->log2_blocks_per_bitmap_bit == ic->log2_blocks_per_bitmap_bit &&
 			      block_bitmap_op(ic, ic->journal, 0, ic->provided_data_sectors, BITMAP_OP_TEST_ALL_CLEAR)) ||
 			    ic->reset_recalculate_flag) {
-				ic->sb->flags |= cpu_to_le32(SB_FLAG_RECALCULATING);
-				ic->sb->recalc_sector = cpu_to_le64(0);
+				if (dm_integrity_may_recalc_dirty_bitmap(ic)) {
+					ic->sb->flags |= cpu_to_le32(SB_FLAG_RECALCULATING);
+					ic->sb->recalc_sector = cpu_to_le64(0);
+				}
 			}
 			init_journal(ic, 0, ic->journal_sections, 0);
 			replay_journal(ic);
@@ -4444,7 +4469,6 @@ static int dm_integrity_ctr(struct dm_target *ti, unsigned argc, char **argv)
 		r = create_journal(ic, &ti->error);
 		if (r)
 			goto bad;
-
 	}
 
 	if (ic->mode == 'B') {
drivers/md/dm-log-userspace-base.c +5 -1
index 7fcebfe2cfc2..ece6f48c00b6 100644
@@ -293,9 +293,11 @@ static int userspace_ctr(struct dm_dirty_log *log, struct dm_target *ti,
 		}
 		r = dm_get_device(ti, devices_rdata,
 				  dm_table_get_mode(ti->table), &lc->log_dev);
-		if (r)
+		if (r) {
 			DMERR("Failed to register %s with device-mapper",
 			      devices_rdata);
+			goto out;
+		}
 	}
 
 	if (lc->integrated_flush) {
@@ -313,6 +315,8 @@ static int userspace_ctr(struct dm_dirty_log *log, struct dm_target *ti,
 out:
 	kfree(devices_rdata);
 	if (r) {
+		if (lc->log_dev)
+			dm_put_device(lc->ti, lc->log_dev);
 		mempool_exit(&lc->flush_entry_pool);
 		kfree(lc);
 		kfree(ctr_str);
drivers/md/dm-mpath.c +4 -2
index 278cc9dff4b8..f2a26854133f 100644
@@ -792,7 +792,8 @@ static void queue_if_no_path_timeout_work(struct timer_list *t)
 static void enable_nopath_timeout(struct multipath *m)
 {
 	unsigned long queue_if_no_path_timeout =
-		READ_ONCE(queue_if_no_path_timeout_secs) * HZ;
+		min_t(unsigned long, READ_ONCE(queue_if_no_path_timeout_secs),
+		      MAX_JIFFY_OFFSET / HZ) * HZ;
 
 	lockdep_assert_held(&m->lock);
 
@@ -1074,8 +1075,9 @@ static int parse_hw_handler(struct dm_arg_set *as, struct multipath *m)
 
 	if (hw_argc > 1) {
 		char *p;
-		int i, j, len = 4;
+		int i, j, len;
 
+		len = snprintf(NULL, 0, "%d", hw_argc - 1) + 1;
 		for (i = 0; i <= hw_argc - 2; i++)
 			len += strlen(as->argv[i]) + 1;
 		p = m->hw_handler_params = kzalloc(len, GFP_KERNEL);
drivers/md/dm-raid.c +2 -1
index d4a44dca33fd..9ecaf48f5c81 100644
@@ -2395,7 +2395,8 @@ static int super_init_validation(struct raid_set *rs, struct md_rdev *rdev)
 		 */
 		if (!test_bit(FirstUse, &r->flags) && (r->raid_disk >= 0)) {
 			role = le32_to_cpu(sb2->array_position);
-			if (role < 0)
+			/* Bound @role before it indexes the failed_devices stack bitmap. */
+			if (role < 0 || role >= rs->raid_disks)
 				continue;
 
 			if (role != r->raid_disk) {
drivers/md/dm-snap.c +7 -5
index 3a026f543478..6f239a281e38 100644
@@ -1976,8 +1976,8 @@ static void zero_exception(struct dm_snapshot *s, struct dm_exception *e,
 
 static bool io_overlaps_chunk(struct dm_snapshot *s, struct bio *bio)
 {
-	return bio->bi_iter.bi_size ==
-		(s->store->chunk_size << SECTOR_SHIFT);
+	return bio->bi_iter.bi_size == (s->store->chunk_size << SECTOR_SHIFT) &&
+	       !(bio->bi_iter.bi_sector & s->store->chunk_mask);
 }
 
 static int snapshot_map(struct dm_target *ti, struct bio *bio)
@@ -2037,11 +2037,13 @@ static int snapshot_map(struct dm_target *ti, struct bio *bio)
 	e = dm_lookup_exception(&s->complete, chunk);
 	if (e) {
 		remap_exception(s, e, bio, chunk);
-		if (unlikely(bio_op(bio) == REQ_OP_DISCARD) &&
-		    io_overlaps_chunk(s, bio)) {
+		if (unlikely(bio_op(bio) == REQ_OP_DISCARD)) {
 			dm_exception_table_unlock(&lock);
 			up_read(&s->lock);
-			zero_exception(s, e, bio, chunk);
+			if (io_overlaps_chunk(s, bio))
+				zero_exception(s, e, bio, chunk);
+			else
+				bio_endio(bio);
 			r = DM_MAPIO_SUBMITTED; /* discard is not issued */
 			goto out;
 		}
drivers/md/dm-sysfs.c +14 -3
index a05fcd50e1b9..c3bd060b22a8 100644
@@ -130,9 +130,20 @@ static struct kobj_type dm_ktype = {
  */
 int dm_sysfs_init(struct mapped_device *md)
 {
-	return kobject_init_and_add(dm_kobject(md), &dm_ktype,
-				    &disk_to_dev(dm_disk(md))->kobj,
-				    "%s", "dm");
+	struct kobject *kobj = dm_kobject(md);
+	int r;
+
+	/* The kobject must be zeroed before calling kobject_init */
+	memset(kobj, 0, sizeof(struct kobject));
+	r = kobject_init_and_add(kobj, &dm_ktype,
+				 &disk_to_dev(dm_disk(md))->kobj,
+				 "%s", "dm");
+	if (unlikely(r)) {
+		/* Weird semantics - we must call kobject_put on failure */
+		dm_sysfs_exit(md);
+		return r;
+	}
+	return 0;
 }
 
 /*
drivers/md/dm-thin-metadata.c +4 -1
index aeb00fdf7bc0..9a2b1b672853 100644
@@ -1203,10 +1203,13 @@ static int __create_snap(struct dm_pool_metadata *pmd,
 	__close_device(td);
 
 	if (r)
-		goto bad;
+		goto bad2;
 
 	return 0;
 
+bad2:
+	list_del(&td->list);
+	kfree(td);
 bad:
 	dm_btree_remove(&pmd->tl_info, pmd->root, &key, &pmd->root);
 	dm_btree_remove(&pmd->details_info, pmd->details_root,
drivers/md/dm-thin.c +4 -2
index afdd1efed614..57ae14695194 100644
@@ -2531,7 +2531,9 @@ static void set_pool_mode(struct pool *pool, enum pool_mode new_mode)
 	struct pool_c *pt = pool->ti->private;
 	bool needs_check = dm_pool_metadata_needs_check(pool->pmd);
 	enum pool_mode old_mode = get_pool_mode(pool);
-	unsigned long no_space_timeout = READ_ONCE(no_space_timeout_secs) * HZ;
+	unsigned long no_space_timeout =
+		min_t(unsigned long, READ_ONCE(no_space_timeout_secs),
+		      MAX_JIFFY_OFFSET / HZ) * HZ;
 
 	/*
 	 * Never allow the pool to transition to PM_WRITE mode if user
@@ -3139,7 +3141,7 @@ static int parse_pool_features(struct dm_arg_set *as, struct pool_features *pf,
 	const char *arg_name;
 
 	static const struct dm_arg _args[] = {
-		{0, 4, "Invalid number of pool feature arguments"},
+		{0, 5, "Invalid number of pool feature arguments"},
 	};
 
 	/*
drivers/md/dm-zoned-reclaim.c +17 -1
index d58db9a27e6c..4c0ce1e38a15 100644
@@ -290,7 +290,13 @@ static int dmz_reclaim_rnd_data(struct dmz_reclaim *zrc, struct dm_zone *dzone)
 again:
 	szone = dmz_alloc_zone(zmd, zrc->dev_idx,
 			       alloc_flags | DMZ_ALLOC_RECLAIM);
-	if (!szone && alloc_flags == DMZ_ALLOC_SEQ && dmz_nr_cache_zones(zmd)) {
+	/*
+	 * If no free sequential zone is available, a cache zone can still be
+	 * moved into a free random zone of the zoned device, which frees cache
+	 * space. Do not do this for a random zone: moving it into another
+	 * random zone frees nothing and, on an idle target, repeats forever.
+	 */
+	if (!szone && alloc_flags == DMZ_ALLOC_SEQ && dmz_is_cache(dzone)) {
 		alloc_flags = DMZ_ALLOC_RND;
 		goto again;
 	}
@@ -539,6 +545,16 @@ static void dmz_reclaim_work(struct work_struct *work)
 		dmz_nr_rnd_zones(zmd, zrc->dev_idx));
 
 	ret = dmz_do_reclaim(zrc);
+	if (ret == -ENOSPC || ret == -EBUSY) {
+		/*
+		 * No zone to copy into (-ENOSPC) or no zone to reclaim
+		 * (-EBUSY): retrying at once cannot make progress and would
+		 * spin. Poll again after the idle period instead, without
+		 * postponing work that an allocation has already queued.
+		 */
+		queue_delayed_work(zrc->wq, &zrc->work, DMZ_IDLE_PERIOD);
+		return;
+	}
 	if (ret && ret != -EINTR) {
 		if (!dmz_check_dev(zmd))
 			return;
drivers/md/persistent-data/dm-btree.c +7 -1
index 5ce64e93aae7..39004fe16b1f 100644
@@ -1571,7 +1571,13 @@ int dm_btree_cursor_begin(struct dm_btree_info *info, dm_block_t root,
 	if (r)
 		return r;
 
-	return find_leaf(c);
+	r = find_leaf(c);
+	if (unlikely(r)) {
+		dm_btree_cursor_end(c);
+		return r;
+	}
+
+	return 0;
 }
 EXPORT_SYMBOL_GPL(dm_btree_cursor_begin);
 
drivers/media/usb/uvc/uvc_driver.c +1 -3
index a521038903f2..2cd4ae6342fd 100644
@@ -1023,9 +1023,7 @@ static int uvc_parse_streaming(struct uvc_device *dev,
 				streaming->header.bEndpointAddress);
 		if (ep == NULL)
 			continue;
-
-		psize = le16_to_cpu(ep->desc.wMaxPacketSize);
-		psize = (psize & 0x07ff) * (1 + ((psize >> 11) & 3));
+		psize = uvc_endpoint_max_bpi(dev->udev, ep);
 		if (psize > streaming->maxpsize)
 			streaming->maxpsize = psize;
 	}
drivers/media/usb/uvc/uvc_video.c +1 -2
index d0415ebe54d0..4d84726b605e 100644
@@ -1841,8 +1841,7 @@ static void uvc_video_stop_transfer(struct uvc_streaming *stream,
 /*
  * Compute the maximum number of bytes per interval for an endpoint.
  */
-static unsigned int uvc_endpoint_max_bpi(struct usb_device *dev,
-					 struct usb_host_endpoint *ep)
+u16 uvc_endpoint_max_bpi(struct usb_device *dev, struct usb_host_endpoint *ep)
 {
 	u16 psize;
 	u16 mult;
drivers/media/usb/uvc/uvcvideo.h +1 -0
index 2dd8d04589ab..e2732986b7e8 100644
@@ -926,6 +926,7 @@ void uvc_simplify_fraction(u32 *numerator, u32 *denominator,
 u32 uvc_fraction_to_interval(u32 numerator, u32 denominator);
 struct usb_host_endpoint *uvc_find_endpoint(struct usb_host_interface *alts,
 					    u8 epaddr);
+u16 uvc_endpoint_max_bpi(struct usb_device *dev, struct usb_host_endpoint *ep);
 
 /* Quirks support */
 void uvc_video_decode_isight(struct uvc_urb *uvc_urb,
drivers/misc/bcm-vk/bcm_vk_sg.c +36 -7

73 lines not on this page · raw message

drivers/misc/ibmvmc.c +8 -8
index cd9fc0086887..8d4f237aad1d 100644
@@ -2359,14 +2359,6 @@ static int __init ibmvmc_module_init(void)
 	ibmvmc.state = ibmvmc_state_initial;
 	pr_info("ibmvmc: version %s\n", IBMVMC_DRIVER_VERSION);
 
-	rc = misc_register(&ibmvmc_miscdev);
-	if (rc) {
-		pr_err("ibmvmc: misc registration failed\n");
-		goto misc_register_failed;
-	}
-	pr_info("ibmvmc: node %d:%d\n", MISC_MAJOR,
-		ibmvmc_miscdev.minor);
-
 	/* Initialize data structures */
 	memset(hmcs, 0, sizeof(struct ibmvmc_hmc) * MAX_HMCS);
 	for (i = 0; i < MAX_HMCS; i++) {
@@ -2376,6 +2368,14 @@ static int __init ibmvmc_module_init(void)
 			hmcs[i].queue_outbound_msgs[j] = VMC_INVALID_BUFFER_ID;
 	}
 
+	rc = misc_register(&ibmvmc_miscdev);
+	if (rc) {
+		pr_err("ibmvmc: misc registration failed\n");
+		goto misc_register_failed;
+	}
+	pr_info("ibmvmc: node %d:%d\n", MISC_MAJOR,
+		ibmvmc_miscdev.minor);
+
 	/* Sanity check module parms */
 	ibmvmc_scrub_module_parms();
 
drivers/mmc/host/meson-gx-mmc.c +19 -4
index db2491d9a95c..76065decbb18 100644
@@ -123,6 +123,7 @@
 #define SD_EMMC_CFG_RESP_TIMEOUT 256 /* in clock cycles */
 #define SD_EMMC_CMD_TIMEOUT 1024 /* in ms */
 #define SD_EMMC_CMD_TIMEOUT_DATA 4096 /* in ms */
+#define SD_EMMC_CMD_TIMEOUT_MAX 32768 /* in ms, 2^15: limit of CMD_CFG_TIMEOUT_MASK */
 #define SD_EMMC_CFG_CMD_GAP 16 /* in clock cycles */
 #define SD_EMMC_DESC_BUF_LEN PAGE_SIZE
 
@@ -209,7 +210,21 @@ static unsigned int meson_mmc_get_timeout_msecs(struct mmc_data *data)
 
 	timeout = roundup_pow_of_two(timeout);
 
-	return min(timeout, 32768U); /* max. 2^15 ms */
+	return min_t(unsigned int, timeout, SD_EMMC_CMD_TIMEOUT_MAX);
+}
+
+/* For R1b the controller waits for busy to be released within this timeout. */
+static unsigned int meson_mmc_get_cmd_timeout_msecs(struct mmc_command *cmd)
+{
+	unsigned int timeout = cmd->busy_timeout;
+
+	if (!timeout)
+		return SD_EMMC_CMD_TIMEOUT;
+
+	timeout = clamp_t(unsigned int, timeout, SD_EMMC_CMD_TIMEOUT,
+			  SD_EMMC_CMD_TIMEOUT_MAX);
+
+	return roundup_pow_of_two(timeout);
 }
 
 static struct mmc_command *meson_mmc_get_next_command(struct mmc_command *cmd)
@@ -850,7 +865,7 @@ static void meson_mmc_start_cmd(struct mmc_host *mmc, struct mmc_command *cmd)
 		cmd_data = host->bounce_dma_addr & CMD_DATA_MASK;
 	} else {
 		cmd_cfg |= FIELD_PREP(CMD_CFG_TIMEOUT_MASK,
-				      ilog2(SD_EMMC_CMD_TIMEOUT));
+				      ilog2(meson_mmc_get_cmd_timeout_msecs(cmd)));
 	}
 
 	/* Last descriptor */
@@ -1086,8 +1101,8 @@ static int meson_mmc_card_busy(struct mmc_host *mmc)
 
 	regval = readl(host->regs + SD_EMMC_STATUS);
 
-	/* We are only interrested in lines 0 to 3, so mask the other ones */
-	return !(FIELD_GET(STATUS_DATI, regval) & 0xf);
+	/* The card signals busy on DAT0 alone. */
+	return !(FIELD_GET(STATUS_DATI, regval) & BIT(0));
 }
 
 static int meson_mmc_voltage_switch(struct mmc_host *mmc, struct mmc_ios *ios)
drivers/mmc/host/mmci.c +3 -1
index 1ffb9dbdf78e..0e471c94f860 100644
@@ -2257,11 +2257,13 @@ static int mmci_probe(struct amba_device *dev,
 
 	ret = mmc_add_host(mmc);
 	if (ret)
-		goto clk_disable;
+		goto dma_release;
 
 	pm_runtime_put(&dev->dev);
 	return 0;
 
+dma_release:
+	mmci_dma_release(host);
  clk_disable:
 	clk_disable_unprepare(host->clk);
  host_free:
drivers/net/bonding/bond_main.c +11 -13
index 558bff14740b..13c85464842a 100644
@@ -2195,7 +2195,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev,
 			SLAVE_NL_ERR(bond_dev, slave_dev, extack,
 				     "Slave does not support XDP");
 			res = -EOPNOTSUPP;
-			goto err_sysfs_del;
+			goto err_dec_slave_cnt;
 		}
 	} else if (bond->xdp_prog) {
 		struct netdev_bpf xdp = {
@@ -2209,14 +2209,14 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev,
 			SLAVE_NL_ERR(bond_dev, slave_dev, extack,
 				     "Slave has XDP program loaded, please unload before enslaving");
 			res = -EOPNOTSUPP;
-			goto err_sysfs_del;
+			goto err_dec_slave_cnt;
 		}
 
 		res = slave_dev->netdev_ops->ndo_bpf(slave_dev, &xdp);
 		if (res < 0) {
 			/* ndo_bpf() sets extack error message */
 			slave_dbg(bond_dev, slave_dev, "Error %d calling ndo_bpf\n", res);
-			goto err_sysfs_del;
+			goto err_dec_slave_cnt;
 		}
 		if (bond->xdp_prog)
 			bpf_prog_inc(bond->xdp_prog);
@@ -2231,6 +2231,9 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev,
 	return 0;
 
 /* Undo stages on error */
+err_dec_slave_cnt:
+	WRITE_ONCE(bond->slave_cnt, bond->slave_cnt - 1);
+
 err_sysfs_del:
 	bond_sysfs_slave_del(new_slave);
 
@@ -3607,18 +3610,13 @@ static int bond_slave_netdev_event(unsigned long event,
 	case NETDEV_CHANGE:
 		/* For 802.3ad mode only:
 		 * Getting invalid Speed/Duplex values here will put slave
-		 * in weird state. Mark it as link-fail if the link was
-		 * previously up or link-down if it hasn't yet come up, and
-		 * let link-monitoring (miimon) set it right when correct
-		 * speeds/duplex are available.
+		 * in weird state. Mark an up slave as link-fail and let
+		 * miimon set it right when correct speed/duplex are available.
 		 */
 		if (bond_update_speed_duplex(slave) &&
-		    BOND_MODE(bond) == BOND_MODE_8023AD) {
-			if (slave->last_link_up)
-				slave->link = BOND_LINK_FAIL;
-			else
-				slave->link = BOND_LINK_DOWN;
-		}
+		    BOND_MODE(bond) == BOND_MODE_8023AD &&
+		    slave->link == BOND_LINK_UP)
+			slave->link = BOND_LINK_FAIL;
 
 		if (BOND_MODE(bond) == BOND_MODE_8023AD)
 			bond_3ad_adapter_speed_duplex_changed(slave);
drivers/net/dsa/b53/b53_common.c +67 -0

85 lines not on this page · raw message

drivers/net/dsa/b53/b53_priv.h +1 -0
index 959a52d41f0a..07a1c765f4cb 100644
@@ -319,6 +319,7 @@ static inline int b53_switch_get_reset_gpio(struct b53_device *dev)
 /* Exported functions towards other drivers */
 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port);
 int b53_configure_vlan(struct dsa_switch *ds);
+int b53_enable_mcast_snooping(struct b53_device *dev);
 void b53_get_strings(struct dsa_switch *ds, int port, u32 stringset,
 		     uint8_t *data);
 void b53_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data);
drivers/net/dsa/b53/b53_regs.h +17 -0
index 95f70248c194..0b4343fcfcfd 100644
@@ -255,6 +255,23 @@
 /* Revision ID register (8 bit) */
 #define B53_REV_ID			0x40
 
+/* High-level protocol control (16 bit on BCM5395, otherwise 32 bit) */
+#define B53_HL_PRTC_CTRL			0x50
+#define   HL_PRTC_ICMPV6_EN		BIT(4)
+#define   HL_PRTC_ICMPV6_FWD_MODE		BIT(5)
+#define   HL_PRTC_IGMP_IP_EN_5395		BIT(6)
+#define   HL_PRTC_IGMP_FWD_MODE_5395	BIT(8)
+#define   HL_PRTC_IGMP_RPTLVE_EN		BIT(9)
+#define   HL_PRTC_IGMP_RPTLVE_FWD_MODE	BIT(10)
+#define   HL_PRTC_IGMP_QRY_EN		BIT(11)
+#define   HL_PRTC_IGMP_QRY_FWD_MODE	BIT(12)
+#define   HL_PRTC_IGMP_UKN_EN		BIT(13)
+#define   HL_PRTC_IGMP_UKN_FWD_MODE	BIT(14)
+#define   HL_PRTC_MLD_RPTDONE_EN		BIT(15)
+#define   HL_PRTC_MLD_RPTDONE_FWD_MODE	BIT(16)
+#define   HL_PRTC_MLD_QRY_EN		BIT(17)
+#define   HL_PRTC_MLD_QRY_FWD_MODE		BIT(18)
+
 /* Broadcom header RX control (16 bit) */
 #define B53_BRCM_HDR_RX_DIS		0x60
 
drivers/net/dsa/bcm_sf2.c +5 -0
index 6105f4d8faf0..f7b2ef0f3df3 100644
@@ -1041,6 +1041,7 @@ static int bcm_sf2_sw_setup(struct dsa_switch *ds)
 {
 	struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds);
 	unsigned int port;
+	int ret;
 
 	/* Enable all valid ports and disable those unused */
 	for (port = 0; port < priv->hw_params.num_ports; port++) {
@@ -1056,6 +1057,10 @@ static int bcm_sf2_sw_setup(struct dsa_switch *ds)
 	b53_configure_vlan(ds);
 	bcm_sf2_enable_acb(ds);
 
+	ret = b53_enable_mcast_snooping(priv->dev);
+	if (ret)
+		return ret;
+
 	return b53_setup_devlink_resources(ds);
 }
 
drivers/net/ethernet/amazon/ena/ena_netdev.c +7 -6
index 5831f7bd81c2..be6c6e8c35b7 100644
@@ -1502,7 +1502,7 @@ static struct sk_buff *ena_rx_skb(struct ena_ring *rx_ring,
 	page_offset = rx_info->page_offset;
 	buf_addr = page_address(rx_info->page) + page_offset;
 
-	if (len <= rx_ring->rx_copybreak) {
+	if (len <= rx_ring->rx_copybreak && likely(descs == 1)) {
 		skb = ena_alloc_skb(rx_ring, NULL, len);
 		if (unlikely(!skb))
 			return NULL;
@@ -1525,6 +1525,10 @@ static struct sk_buff *ena_rx_skb(struct ena_ring *rx_ring,
 
 	buf_len = SKB_DATA_ALIGN(len + buf_offset + tailroom);
 
+	skb = ena_alloc_skb(rx_ring, buf_addr, buf_len);
+	if (unlikely(!skb))
+		return NULL;
+
 	/* If XDP isn't loaded try to reuse part of the RX buffer */
 	reuse_rx_buf_page = !is_xdp_loaded &&
 			    ena_try_rx_buf_page_reuse(rx_info, buf_len, len, pkt_offset);
@@ -1532,10 +1536,6 @@ static struct sk_buff *ena_rx_skb(struct ena_ring *rx_ring,
 	if (!reuse_rx_buf_page)
 		ena_unmap_rx_buff_attrs(rx_ring, rx_info, DMA_ATTR_SKIP_CPU_SYNC);
 
-	skb = ena_alloc_skb(rx_ring, buf_addr, buf_len);
-	if (unlikely(!skb))
-		return NULL;
-
 	/* Populate skb's linear part */
 	skb_reserve(skb, buf_offset);
 	skb_put(skb, len);
@@ -1808,7 +1808,8 @@ static int ena_clean_rx_irq(struct ena_ring *rx_ring, struct napi_struct *napi,
 
 		skb_record_rx_queue(skb, rx_ring->qid);
 
-		if (rx_ring->ena_bufs[0].len <= rx_ring->rx_copybreak)
+		if (rx_ring->ena_bufs[0].len <= rx_ring->rx_copybreak &&
+		    ena_rx_ctx.descs == 1)
 			rx_copybreak_pkt++;
 
 		total_len += skb->len;
drivers/net/ethernet/broadcom/bgmac-platform.c +2 -1
index 3f4e8bac40c1..f7ff7ddc690e 100644
@@ -243,7 +243,8 @@ static int bgmac_probe(struct platform_device *pdev)
 		bgmac->phy_connect = platform_phy_connect;
 	} else {
 		bgmac->phy_connect = bgmac_phy_connect_direct;
-		bgmac->feature_flags |= BGMAC_FEAT_FORCE_SPEED_2500;
+		if (of_machine_is_compatible("brcm,nsp"))
+			bgmac->feature_flags |= BGMAC_FEAT_FORCE_SPEED_2500;
 	}
 
 	return bgmac_enet_probe(bgmac);
drivers/net/ethernet/broadcom/bgmac.c +6 -2
index 8abb8179ecc2..9f29571a46f1 100644
@@ -1429,11 +1429,15 @@ void bgmac_adjust_link(struct net_device *net_dev)
 {
 	struct bgmac *bgmac = netdev_priv(net_dev);
 	struct phy_device *phy_dev = net_dev->phydev;
+	int speed = phy_dev->speed;
 	bool update = false;
 
+	if (bgmac->feature_flags & BGMAC_FEAT_FORCE_SPEED_2500)
+		speed = SPEED_2500;
+
 	if (phy_dev->link) {
-		if (phy_dev->speed != bgmac->mac_speed) {
-			bgmac->mac_speed = phy_dev->speed;
+		if (speed != bgmac->mac_speed) {
+			bgmac->mac_speed = speed;
 			update = true;
 		}
 
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h +1 -1
index 99d46fda9f82..69a666d91c64 100644
@@ -78,7 +78,7 @@ void mlx5i_pkey_qpn_ht_cleanup(struct net_device *netdev);
 int mlx5i_pkey_add_qpn(struct net_device *netdev, u32 qpn);
 int mlx5i_pkey_del_qpn(struct net_device *netdev, u32 qpn);
 
-/* Get the net-device corresponding to the given underlay QPN */
+/* Get the net-device for a QPN. Caller must hold rcu_read_lock(). */
 struct net_device *mlx5i_pkey_get_netdev(struct net_device *netdev, u32 qpn);
 
 /* Shared ndo functions */
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c +15 -11
index 5308f23702bc..f0df52aa26a7 100644
@@ -31,6 +31,7 @@
  */
 
 #include <linux/hash.h>
+#include <linux/rculist.h>
 #include "ipoib.h"
 
 #define MLX5I_MAX_LOG_PKEY_SUP 7
@@ -39,11 +40,12 @@ struct qpn_to_netdev {
 	struct net_device *netdev;
 	struct hlist_node hlist;
 	u32 underlay_qpn;
+	struct rcu_head rcu;
 };
 
 struct mlx5i_pkey_qpn_ht {
 	struct hlist_head buckets[1 << MLX5I_MAX_LOG_PKEY_SUP];
-	spinlock_t ht_lock; /* Synchronise with NAPI */
+	spinlock_t ht_lock; /* Serialize hash table updates */
 };
 
 int mlx5i_pkey_qpn_ht_init(struct net_device *netdev)
@@ -68,13 +70,14 @@ void mlx5i_pkey_qpn_ht_cleanup(struct net_device *netdev)
 	kfree(ipriv->qpn_htbl);
 }
 
-static struct qpn_to_netdev *mlx5i_find_qpn_to_netdev_node(struct hlist_head *buckets,
-							   u32 qpn)
+static struct qpn_to_netdev *
+mlx5i_find_qpn_to_netdev_node(struct mlx5i_pkey_qpn_ht *ht, u32 qpn)
 {
-	struct hlist_head *h = &buckets[hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP)];
+	struct hlist_head *h = &ht->buckets[hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP)];
 	struct qpn_to_netdev *node;
 
-	hlist_for_each_entry(node, h, hlist) {
+	hlist_for_each_entry_rcu(node, h, hlist,
+				 lockdep_is_held(&ht->ht_lock)) {
 		if (node->underlay_qpn == qpn)
 			return node;
 	}
@@ -96,7 +99,7 @@ int mlx5i_pkey_add_qpn(struct net_device *netdev, u32 qpn)
 	new_node->netdev = netdev;
 	new_node->underlay_qpn = qpn;
 	spin_lock_bh(&ht->ht_lock);
-	hlist_add_head(&new_node->hlist, &ht->buckets[key]);
+	hlist_add_head_rcu(&new_node->hlist, &ht->buckets[key]);
 	spin_unlock_bh(&ht->ht_lock);
 
 	return 0;
@@ -109,16 +112,17 @@ int mlx5i_pkey_del_qpn(struct net_device *netdev, u32 qpn)
 	struct mlx5i_pkey_qpn_ht *ht = ipriv->qpn_htbl;
 	struct qpn_to_netdev *node;
 
-	node = mlx5i_find_qpn_to_netdev_node(ht->buckets, qpn);
+	spin_lock_bh(&ht->ht_lock);
+	node = mlx5i_find_qpn_to_netdev_node(ht, qpn);
 	if (!node) {
+		spin_unlock_bh(&ht->ht_lock);
 		mlx5_core_warn(epriv->mdev, "QPN to netdev delete from HT failed\n");
 		return -EINVAL;
 	}
 
-	spin_lock_bh(&ht->ht_lock);
-	hlist_del_init(&node->hlist);
+	hlist_del_rcu(&node->hlist);
 	spin_unlock_bh(&ht->ht_lock);
-	kfree(node);
+	kfree_rcu(node, rcu);
 
 	return 0;
 }
@@ -128,7 +132,7 @@ struct net_device *mlx5i_pkey_get_netdev(struct net_device *netdev, u32 qpn)
 	struct mlx5i_priv *ipriv = netdev_priv(netdev);
 	struct qpn_to_netdev *node;
 
-	node = mlx5i_find_qpn_to_netdev_node(ipriv->qpn_htbl->buckets, qpn);
+	node = mlx5i_find_qpn_to_netdev_node(ipriv->qpn_htbl, qpn);
 	if (!node)
 		return NULL;
 
drivers/net/ethernet/microsoft/mana/mana_en.c +3 -4
index 27c93d6b9de4..e131b4cc3d85 100644
@@ -946,10 +946,9 @@ static void mana_rx_skb(void *buf_va, struct mana_rxcomp_oob *cqe,
 	skb_checksum_none_assert(skb);
 	skb_record_rx_queue(skb, rxq_idx);
 
-	if ((ndev->features & NETIF_F_RXCSUM) && cqe->rx_iphdr_csum_succeed) {
-		if (cqe->rx_tcp_csum_succeed || cqe->rx_udp_csum_succeed)
-			skb->ip_summed = CHECKSUM_UNNECESSARY;
-	}
+	if ((ndev->features & NETIF_F_RXCSUM) &&
+	    (cqe->rx_tcp_csum_succeed || cqe->rx_udp_csum_succeed))
+		skb->ip_summed = CHECKSUM_UNNECESSARY;
 
 	if (cqe->rx_hashtype != 0 && (ndev->features & NETIF_F_RXHASH)) {
 		hash_value = cqe->ppi[0].pkt_hash;
drivers/net/ethernet/realtek/8139cp.c +4 -4
index 6938093e36ac..b8cb0d589b9d 100644
@@ -600,11 +600,11 @@ static irqreturn_t cp_interrupt (int irq, void *dev_instance)
 		goto out_unlock;
 	}
 
-	if (status & (RxOK | RxErr | RxEmpty | RxFIFOOvr))
-		if (napi_schedule_prep(&cp->napi)) {
-			cpw16_f(IntrMask, cp_norx_intr_mask);
+	if (status & (RxOK | RxErr | RxEmpty | RxFIFOOvr)) {
+		cpw16_f(IntrMask, cp_norx_intr_mask);
+		if (napi_schedule_prep(&cp->napi))
 			__napi_schedule(&cp->napi);
-		}
+	}
 
 	if (status & (TxOK | TxErr | TxEmpty | SWInt))
 		cp_tx(cp);
drivers/net/ethernet/renesas/ravb_main.c +7 -1
index 4f115058eba1..0a8f65152369 100644
@@ -2502,10 +2502,12 @@ static int __maybe_unused ravb_suspend(struct device *dev)
 
 	netif_device_detach(ndev);
 
+	rtnl_lock();
 	if (priv->wol_enabled)
 		ret = ravb_wol_setup(ndev);
 	else
 		ret = ravb_close(ndev);
+	rtnl_unlock();
 
 	if (priv->info->ccc_gac)
 		ravb_ptp_stop(ndev);
@@ -2552,12 +2554,16 @@ static int __maybe_unused ravb_resume(struct device *dev)
 		ravb_ptp_init(ndev, priv->pdev);
 
 	if (netif_running(ndev)) {
+		rtnl_lock();
 		if (priv->wol_enabled) {
 			ret = ravb_wol_restore(ndev);
-			if (ret)
+			if (ret) {
+				rtnl_unlock();
 				return ret;
+			}
 		}
 		ret = ravb_open(ndev);
+		rtnl_unlock();
 		if (ret < 0)
 			return ret;
 		ravb_set_rx_mode(ndev);
drivers/net/ethernet/sfc/ptp.c +71 -37

252 lines not on this page · raw message

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +2 -1
index a7347cd844b7..773c64dd130a 100644
@@ -4857,7 +4857,8 @@ static struct sk_buff *stmmac_construct_skb_zc(struct stmmac_channel *ch,
 		return NULL;
 
 	skb_reserve(skb, xdp->data - xdp->data_hard_start);
-	memcpy(__skb_put(skb, datasize), xdp->data, datasize);
+	__skb_put(skb, datasize);
+	memcpy(skb->data - metasize, xdp->data_meta, datasize + metasize);
 	if (metasize)
 		skb_metadata_set(skb, metasize);
 
drivers/net/hyperv/rndis_filter.c +3 -3
index f6c9c2a670f9..579d2654703e 100644
@@ -411,12 +411,12 @@ static inline void *rndis_get_ppi(struct net_device *ndev,
 		/* Validate ppi_offset and ppi_size */
 		if (ppi->size > len) {
 			netdev_err(ndev, "Invalid ppi size: %u\n", ppi->size);
-			continue;
+			return NULL;
 		}
 
 		if (ppi->ppi_offset >= ppi->size) {
 			netdev_err(ndev, "Invalid ppi_offset: %u\n", ppi->ppi_offset);
-			continue;
+			return NULL;
 		}
 
 		if (ppi->type == type && ppi->internal == internal) {
@@ -424,7 +424,7 @@ static inline void *rndis_get_ppi(struct net_device *ndev,
 			if (ppi->size - ppi->ppi_offset < ppi_size) {
 				netdev_err(ndev, "Invalid ppi: size %u ppi_offset %u\n",
 					   ppi->size, ppi->ppi_offset);
-				continue;
+				return NULL;
 			}
 			return (void *)((ulong)ppi + ppi->ppi_offset);
 		}
drivers/net/team/team.c +7 -5
index 64f8215fc2f1..9d7d4bf5caf3 100644
@@ -1304,11 +1304,8 @@ static int team_port_add(struct team *team, struct net_device *port_dev,
 	/* set allmulti level to new slave */
 	if (dev->flags & IFF_ALLMULTI) {
 		err = dev_set_allmulti(port_dev, 1);
-		if (err) {
-			if (dev->flags & IFF_PROMISC)
-				dev_set_promiscuity(port_dev, -1);
-			goto err_set_slave_promisc;
-		}
+		if (err)
+			goto err_set_slave_allmulti;
 	}
 
 	err = team_dev_type_check_change(dev, port_dev);
@@ -1334,6 +1331,11 @@ static int team_port_add(struct team *team, struct net_device *port_dev,
 	return 0;
 
 err_set_dev_type:
+	if (dev->flags & IFF_ALLMULTI)
+		dev_set_allmulti(port_dev, -1);
+err_set_slave_allmulti:
+	if (dev->flags & IFF_PROMISC)
+		dev_set_promiscuity(port_dev, -1);
 err_set_slave_promisc:
 	__team_option_inst_del_port(team, port);
 
drivers/net/tun.c +5 -1
index 652cb1c63808..374ff3c16905 100644
@@ -672,7 +672,7 @@ static void __tun_detach(struct tun_file *tfile, bool clean)
 		}
 
 		synchronize_net();
-		tun_flow_delete_by_queue(tun, tun->numqueues + 1);
+		tun_flow_delete_by_queue(tun, tun->numqueues);
 		/* Drop read queue */
 		tun_queue_purge(tfile);
 		tun_set_real_num_queues(tun);
@@ -3186,6 +3186,10 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd,
 			netif_info(tun, drv, tun->dev,
 				   "Linktype set failed because interface is up\n");
 			ret = -EBUSY;
+		} else if ((unsigned short)arg == ARPHRD_IEEE802154 ||
+			   (unsigned short)arg == ARPHRD_IEEE802154_MONITOR ||
+			   (unsigned short)arg == ARPHRD_6LOWPAN) {
+			ret = -EINVAL;
 		} else {
 			ret = call_netdevice_notifiers(NETDEV_PRE_TYPE_CHANGE,
 						       tun->dev);
drivers/net/usb/cdc_ncm.c +2 -2
index 7c9108205743..6c2aa3aae771 100644
@@ -1120,7 +1120,7 @@ static struct usb_cdc_ncm_ndp16 *cdc_ncm_ndp16(struct cdc_ncm_ctx *ctx, struct s
 		cdc_ncm_align_tail(skb, ctx->tx_ndp_modulus, 0, ctx->tx_curr_size);
 
 	/* verify that there is room for the NDP and the datagram (reserve) */
-	if ((ctx->tx_curr_size - skb->len - reserve) < ctx->max_ndp_size)
+	if (skb->len + reserve + ctx->max_ndp_size > ctx->tx_curr_size)
 		return NULL;
 
 	/* link to it */
@@ -1175,7 +1175,7 @@ static struct usb_cdc_ncm_ndp32 *cdc_ncm_ndp32(struct cdc_ncm_ctx *ctx, struct s
 		cdc_ncm_align_tail(skb, ctx->tx_ndp_modulus, 0, ctx->tx_curr_size);
 
 	/* verify that there is room for the NDP and the datagram (reserve) */
-	if ((ctx->tx_curr_size - skb->len - reserve) < ctx->max_ndp_size)
+	if (skb->len + reserve + ctx->max_ndp_size > ctx->tx_curr_size)
 		return NULL;
 
 	/* link to it */
drivers/net/wireless/ath/ath9k/htc_drv_main.c +4 -4
index 72ef319feeda..195fc1d92417 100644
@@ -1098,11 +1098,8 @@ static int ath9k_htc_add_interface(struct ieee80211_hw *hw,
 
 	ath9k_htc_set_opmode(priv);
 
-	if ((priv->ah->opmode == NL80211_IFTYPE_AP) &&
-	    !test_bit(ATH_OP_ANI_RUN, &common->op_flags)) {
+	if (priv->ah->opmode == NL80211_IFTYPE_AP)
 		ath9k_hw_set_tsfadjust(priv->ah, true);
-		ath9k_htc_start_ani(priv);
-	}
 
 	ath_dbg(common, CONFIG, "Attach a VIF of type: %d at idx: %d\n",
 		vif->type, avp->index);
@@ -1552,6 +1549,9 @@ static void ath9k_htc_bss_info_changed(struct ieee80211_hw *hw,
 		ath9k_htc_set_tsfadjust(priv, vif);
 		priv->cur_beacon_conf.enable_beacon = 1;
 		ath9k_htc_beacon_config(priv, vif);
+		if (priv->ah->opmode == NL80211_IFTYPE_AP &&
+		    !test_bit(ATH_OP_ANI_RUN, &common->op_flags))
+			ath9k_htc_start_ani(priv);
 	}
 
 	if ((changed & BSS_CHANGED_BEACON_ENABLED) && !bss_conf->enable_beacon) {
drivers/nvme/host/core.c +4 -0
index 9d6cb96f7078..c6f8bf15b682 100644
@@ -2850,7 +2850,11 @@ static int nvme_init_subsystem(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id)
 	return 0;
 
 out_put_subsystem:
+	if (!found)
+		list_del_init(&subsys->entry);
+	mutex_unlock(&nvme_subsystems_lock);
 	nvme_put_subsystem(subsys);
+	return ret;
 out_unlock:
 	mutex_unlock(&nvme_subsystems_lock);
 	return ret;
drivers/nvme/host/fc.c +2 -2
index 10d45906c5ee..835e4dd12e6d 100644
@@ -1404,7 +1404,7 @@ nvme_fc_disconnect_assoc_done(struct nvmefc_ls_req *lsreq, int status)
  * down, and the related FC-NVME Association ID and Connection IDs
  * become invalid.
  *
- * The behavior of the fc-nvme initiator is such that it's
+ * The behavior of the fc-nvme initiator is such that its
  * understanding of the association and connections will implicitly
  * be torn down. The action is implicit as it may be due to a loss of
  * connectivity with the fc-nvme target, so you may never get a
@@ -2793,7 +2793,7 @@ nvme_fc_queue_rq(struct blk_mq_hw_ctx *hctx,
 	 * as WRITE ZEROES will return a non-zero rq payload_bytes yet
 	 * there is no actual payload to be transferred.
 	 * To get it right, key data transmission on there being 1 or
-	 * more physical segments in the sg list. If there is no
+	 * more physical segments in the sg list. If there are no
 	 * physical segments, there is no payload.
 	 */
 	if (blk_rq_nr_phys_segments(rq)) {
drivers/nvme/host/tcp.c +21 -5
index 6a5d21d3e14f..ec7064536879 100644
@@ -1794,11 +1794,12 @@ static void nvme_tcp_stop_io_queues(struct nvme_ctrl *ctrl)
 		nvme_tcp_wait_queue(ctrl, i);
 }
 
-static int nvme_tcp_start_io_queues(struct nvme_ctrl *ctrl)
+static int nvme_tcp_start_io_queues(struct nvme_ctrl *ctrl,
+				    int first, int last)
 {
 	int i, ret = 0;
 
-	for (i = 1; i < ctrl->queue_count; i++) {
+	for (i = first; i < last; i++) {
 		ret = nvme_tcp_start_queue(ctrl, i);
 		if (ret)
 			goto out_stop_queues;
@@ -1807,7 +1808,7 @@ static int nvme_tcp_start_io_queues(struct nvme_ctrl *ctrl)
 	return 0;
 
 out_stop_queues:
-	for (i--; i >= 1; i--)
+	for (i--; i >= first; i--)
 		nvme_tcp_stop_queue(ctrl, i);
 	return ret;
 }
@@ -1934,7 +1935,7 @@ static void nvme_tcp_destroy_io_queues(struct nvme_ctrl *ctrl, bool remove)
 
 static int nvme_tcp_configure_io_queues(struct nvme_ctrl *ctrl, bool new)
 {
-	int ret;
+	int ret, nr_queues;
 
 	ret = nvme_tcp_alloc_io_queues(ctrl);
 	if (ret)
@@ -1954,7 +1955,13 @@ static int nvme_tcp_configure_io_queues(struct nvme_ctrl *ctrl, bool new)
 		}
 	}
 
-	ret = nvme_tcp_start_io_queues(ctrl);
+	/*
+	 * Only start IO queues for which we have allocated the tagset
+	 * and limited it to the available queues. On reconnects, the
+	 * queue number might have changed.
+	 */
+	nr_queues = min(ctrl->tagset->nr_hw_queues + 1, ctrl->queue_count);
+	ret = nvme_tcp_start_io_queues(ctrl, 1, nr_queues);
 	if (ret)
 		goto out_cleanup_connect_q;
 
@@ -1976,6 +1983,15 @@ static int nvme_tcp_configure_io_queues(struct nvme_ctrl *ctrl, bool new)
 		nvme_unfreeze(ctrl);
 	}
 
+	/*
+	 * If the number of queues has increased (reconnect case)
+	 * start all new queues now.
+	 */
+	ret = nvme_tcp_start_io_queues(ctrl, nr_queues,
+				       ctrl->tagset->nr_hw_queues + 1);
+	if (ret)
+		goto out_wait_freeze_timed_out;
+
 	return 0;
 
 out_wait_freeze_timed_out:
drivers/nvme/target/fc.c +3 -3
index 8580afd8327e..e84289adf917 100644
@@ -460,7 +460,7 @@ nvmet_fc_disconnect_assoc_done(struct nvmefc_ls_req *lsreq, int status)
  * down, and the related FC-NVME Association ID and Connection IDs
  * become invalid.
  *
- * The behavior of the fc-nvme target is such that it's
+ * The behavior of the fc-nvme target is such that its
  * understanding of the association and connections will implicitly
  * be torn down. The action is implicit as it may be due to a loss of
  * connectivity with the fc-nvme host, so the target may never get a
@@ -2290,7 +2290,7 @@ nvmet_fc_transfer_fcp_data(struct nvmet_fc_tgtport *tgtport,
 	ret = tgtport->ops->fcp_op(&tgtport->fc_target_port, fod->fcpreq);
 	if (ret) {
 		/*
-		 * should be ok to set w/o lock as its in the thread of
+		 * should be ok to set w/o lock as it's in the thread of
 		 * execution (not an async timer routine) and doesn't
 		 * contend with any clearing action
 		 */
@@ -2608,7 +2608,7 @@ nvmet_fc_handle_fcp_rqst(struct nvmet_fc_tgtport *tgtport,
  * and the api of the FC LLDD which may issue a hw command to send the
  * response, but the LLDD may not get the hw completion for that command
  * and upcall the nvmet_fc layer before a new command may be
- * asynchronously received - its possible for a command to be received
+ * asynchronously received - it's possible for a command to be received
  * before the LLDD and nvmet_fc have recycled the job structure. It gives
  * the appearance of more commands received than fits in the sq.
  * To alleviate this scenario, a temporary queue is maintained in the
drivers/nvme/target/rdma.c +36 -21

114 lines not on this page · raw message

drivers/nvme/target/tcp.c +6 -2
index 76f9dae1086f..deb2b31a01b0 100644
@@ -43,6 +43,7 @@ MODULE_PARM_DESC(idle_poll_period_usecs,
 #define NVMET_TCP_RECV_BUDGET		8
 #define NVMET_TCP_SEND_BUDGET		8
 #define NVMET_TCP_IO_WORK_BUDGET	64
+#define NVMET_TCP_ACCEPT_BUDGET		16
 
 enum nvmet_tcp_send_state {
 	NVMET_TCP_SEND_DATA_PDU,
@@ -1733,9 +1734,9 @@ static void nvmet_tcp_accept_work(struct work_struct *w)
 	struct nvmet_tcp_port *port =
 		container_of(w, struct nvmet_tcp_port, accept_work);
 	struct socket *newsock;
-	int ret;
+	int ret, i;
 
-	while (true) {
+	for (i = 0; i < NVMET_TCP_ACCEPT_BUDGET; i++) {
 		ret = kernel_accept(port->sock, &newsock, O_NONBLOCK);
 		if (ret < 0) {
 			if (ret != -EAGAIN)
@@ -1748,6 +1749,9 @@ static void nvmet_tcp_accept_work(struct work_struct *w)
 			sock_release(newsock);
 		}
 	}
+
+	/* There may be more. Come to an end for those who flush nvmet_wq. */
+	queue_work(nvmet_wq, &port->accept_work);
 }
 
 static void nvmet_tcp_listen_data_ready(struct sock *sk)
drivers/nvmem/core.c +2 -1
index 4ded50d6176e..374fae334812 100644
@@ -896,7 +896,8 @@ static void nvmem_device_release(struct kref *kref)
  */
 void nvmem_unregister(struct nvmem_device *nvmem)
 {
-	kref_put(&nvmem->refcnt, nvmem_device_release);
+	if (nvmem)
+		kref_put(&nvmem->refcnt, nvmem_device_release);
 }
 EXPORT_SYMBOL_GPL(nvmem_unregister);
 
drivers/ptp/ptp_clock.c +5 -0
index d6dee90bed35..d1e76f9ecea2 100644
@@ -348,6 +348,11 @@ static int unregister_vclock(struct device *dev, void *data)
 
 int ptp_clock_unregister(struct ptp_clock *ptp)
 {
+	/*
+	 * Stop and drain virtual-clock creation and deletion before walking the
+	 * children. Do not hold n_vclocks_mux while waiting for sysfs callbacks.
+	 */
+	ptp_vclock_remove_sysfs(ptp);
 	if (ptp_vclock_in_use(ptp)) {
 		device_for_each_child(&ptp->dev, NULL, unregister_vclock);
 	}
drivers/ptp/ptp_kvm_x86.c +4 -3
index 5e5b2ef78547..ab35b20dfb7d 100644
@@ -36,7 +36,7 @@ int kvm_arch_ptp_init(void)
 		clock_pair = page_address(p);
 		ret = set_memory_decrypted((unsigned long)clock_pair, 1);
 		if (ret) {
-			__free_page(p);
+			/* The page may be left shared, so leak it. */
 			clock_pair = NULL;
 			goto nofree;
 		}
@@ -68,8 +68,9 @@ int kvm_arch_ptp_init(void)
 void kvm_arch_ptp_exit(void)
 {
 	if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) {
-		WARN_ON(set_memory_encrypted((unsigned long)clock_pair, 1));
-		free_page((unsigned long)clock_pair);
+		/* Leak the page if it cannot be made private again. */
+		if (!WARN_ON(set_memory_encrypted((unsigned long)clock_pair, 1)))
+			free_page((unsigned long)clock_pair);
 		clock_pair = NULL;
 	}
 }
drivers/ptp/ptp_private.h +1 -0
index 1787fb7a9e1d..2497c37b2de0 100644
@@ -146,6 +146,7 @@ extern const struct attribute_group *ptp_groups[];
 
 int ptp_populate_pin_groups(struct ptp_clock *ptp);
 void ptp_cleanup_pin_groups(struct ptp_clock *ptp);
+void ptp_vclock_remove_sysfs(struct ptp_clock *ptp);
 
 struct ptp_vclock *ptp_vclock_register(struct ptp_clock *pclock);
 void ptp_vclock_unregister(struct ptp_vclock *vclock);
drivers/ptp/ptp_sysfs.c +13 -1
index be58d5257bcb..2bde9f516af5 100644
@@ -212,7 +212,7 @@ static ssize_t n_vclocks_store(struct device *dev,
 		for (i = 0; i < num - ptp->n_vclocks; i++) {
 			vclock = ptp_vclock_register(ptp);
 			if (!vclock)
-				goto out;
+				goto err_register;
 
 			*(ptp->vclock_index + ptp->n_vclocks + i) =
 				vclock->clock->index;
@@ -241,12 +241,24 @@ static ssize_t n_vclocks_store(struct device *dev,
 	mutex_unlock(&ptp->n_vclocks_mux);
 
 	return count;
+err_register:
+	num = i;
+	if (num)
+		device_for_each_child_reverse(dev, &num, unregister_vclock);
+	for (num = 0; num < i; num++)
+		ptp->vclock_index[ptp->n_vclocks + num] = -1;
 out:
 	mutex_unlock(&ptp->n_vclocks_mux);
 	return err;
 }
 static DEVICE_ATTR_RW(n_vclocks);
 
+void ptp_vclock_remove_sysfs(struct ptp_clock *ptp)
+{
+	if (!ptp->is_virtual_clock)
+		device_remove_file(&ptp->dev, &dev_attr_n_vclocks);
+}
+
 static ssize_t max_vclocks_show(struct device *dev,
 				struct device_attribute *attr, char *page)
 {
drivers/regulator/Kconfig +1 -0
index 4fd13b06231f..672cdffb6f9d 100644
@@ -953,6 +953,7 @@ config REGULATOR_QCOM_SMD_RPM
 config REGULATOR_QCOM_SPMI
 	tristate "Qualcomm SPMI regulator driver"
 	depends on SPMI || COMPILE_TEST
+	select REGMAP_MMIO
 	help
 	  If you say yes to this option, support will be included for the
 	  regulators found in Qualcomm SPMI PMICs.
drivers/regulator/qcom_spmi-regulator.c +27 -8
index 41424a3366d0..26c92d8f5e5e 100644
@@ -12,13 +12,13 @@
 #include <linux/bitops.h>
 #include <linux/slab.h>
 #include <linux/of.h>
+#include <linux/of_address.h>
 #include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/ktime.h>
 #include <linux/regulator/driver.h>
 #include <linux/regmap.h>
 #include <linux/list.h>
-#include <linux/mfd/syscon.h>
 #include <linux/io.h>
 
 /* Pin control enable input pins. */
@@ -1223,6 +1223,14 @@ static irqreturn_t spmi_regulator_vs_ocp_isr(int irq, void *data)
 
 static struct regmap *saw_regmap;
 
+static const struct regmap_config saw_regmap_config = {
+	.name = "saw",
+	.reg_bits = 32,
+	.val_bits = 32,
+	.reg_stride = 4,
+	.use_raw_spinlock = true,
+};
+
[… more lines in the raw message]

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

drivers/s390/block/dasd_eckd.c +2 -1
index f94221d9c145..a209ef79bb04 100644

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

drivers/s390/block/dasd_ioctl.c +3 -1
index 16806f144d21..6bc780a61a46 100644

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

drivers/scsi/aha1542.c +0 -2
index 584a59522038..f13a49b665c1 100644

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

drivers/scsi/aic7xxx/aic7xxx_core.c +1 -1
index d747d0b72a13..989e8c9bda4a 100644

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

drivers/spi/spi-pic32-sqi.c +2 -1
index 86ad17597f5f..0b32714633e9 100644

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

drivers/spi/spi.c +105 -58

163 lines not on this page · raw message

drivers/staging/media/atomisp/pci/sh_css_param_dvs.c +7 -4
index ff0082d02af3..0d08629797a4 100644

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

drivers/staging/media/atomisp/pci/sh_css_param_shading.c +3 -1
index 69cc4e423d8b..460a8099af8e 100644

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

drivers/staging/media/atomisp/pci/sh_css_params.c +21 -14
index 85cf280bd12a..a7983a656a48 100644

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

drivers/target/target_core_pr.c +5 -4
index 94200c1553ca..524fe2c15bd0 100644

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

drivers/tty/serial/8250/8250_lpss.c +3 -0
index 39414272a784..e29ef331a38c 100644

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

drivers/tty/serial/samsung_tty.c +5 -3
index 1d8f5d3f440b..c1927d0bc2ab 100644

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

drivers/tty/vt/keyboard.c +6 -0
index 760a71d90ff0..ed9c1eb5d1fb 100644

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

drivers/tty/vt/vt.c +2 -0
index 187d42f61426..0465f30568c7 100644

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

drivers/usb/dwc3/gadget.c +1 -0
index f17eafe2a1b0..570dfdc56141 100644

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

drivers/usb/gadget/function/f_mass_storage.c +6 -2
index 5a4edb856e92..5c9d37dfb6a2 100644

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

drivers/usb/gadget/function/f_midi.c +4 -0
index f9b1cea7382f..8014228167c0 100644

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

drivers/usb/gadget/function/f_ncm.c +6 -1
index 9ec6bdf81f91..498a1a77b1be 100644

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

drivers/usb/gadget/function/storage_common.c +5 -2
index e122050eebaf..50685c9f75e8 100644

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

drivers/usb/gadget/function/storage_common.h +2 -1
index bdeb1e233fc9..da2bc14004bc 100644

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

drivers/usb/gadget/function/u_serial.c +3 -0
index 2e5ce075935a..8cd1d51203a2 100644

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

drivers/usb/host/pci-quirks.c +8 -5
index e676f9aa778f..bdf3075009d6 100644

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

drivers/usb/misc/usbtest.c +3 -0
index 1b3e4718cfca..7e483af41358 100644

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

drivers/usb/serial/garmin_gps.c +15 -16
index e5c75944ebb7..38e8bc86b212 100644

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

drivers/usb/serial/io_edgeport.c +63 -77

140 lines not on this page · raw message

drivers/usb/serial/oti6858.c +12 -4
index a5caedbe72e2..dbbda3c03ac7 100644

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

drivers/usb/serial/sierra.c +15 -3
index e54bde833f28..314389ea489b 100644

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

drivers/usb/storage/uas-detect.h +7 -1
index d73282c0ec50..7817aeb79c4c 100644

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

drivers/vfio/fsl-mc/vfio_fsl_mc.c +7 -3
index 0ead91bfa838..411bb8fbecd2 100644

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

drivers/vfio/platform/vfio_platform_common.c +7 -3
index 2b268f4fc2f0..eb6efced851d 100644

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

drivers/vhost/scsi.c +36 -15

51 lines not on this page · raw message

drivers/vhost/test.c +4 -0
index a09dedc79f68..e68611a56627 100644

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

drivers/vhost/vhost.c +2 -1
index d8c81c25b747..15ded95d4117 100644

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

drivers/w1/masters/ds2482.c +21 -15
index e4cd059a67f1..6ec89efd3605 100644

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

drivers/w1/slaves/w1_ds2805.c +4 -4
index 6b5d12ba1b65..cf8525a75217 100644

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

drivers/w1/slaves/w1_ds28e04.c +9 -9
index 6cef6e2edb89..27a97a9912df 100644

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

drivers/w1/slaves/w1_therm.c +23 -14
index 7ebf8db6e1d7..7d82f75d4008 100644

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

drivers/w1/w1.c +14 -7
index d800f062acd1..965d361b5948 100644

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

drivers/w1/w1_int.c +7 -1
index 3a71c5eb2f83..933bb9679b3e 100644

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

drivers/w1/w1_netlink.c +5 -3
index fa490aa4407c..8291e41d472c 100644

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

drivers/xen/gntdev.c +6 -2
index 6b538c3c7bab..e327b79a283b 100644

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

drivers/xen/grant-table.c +35 -2
index a10e0741bec5..2b50ee6fa236 100644

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

drivers/xen/pvcalls-back.c +16 -10
index 50dc72c5e4ab..94b710a11692 100644

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

fs/9p/v9fs_vfs.h +6 -1
index bc417da7e9c1..efdb943a51d7 100644

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

fs/9p/vfs_dir.c +7 -3
index 78a9a1838142..4ce08e3125b0 100644

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

fs/9p/vfs_inode.c +2 -24
index 6b9c6590a265..9b35a9f6f86a 100644

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

fs/9p/vfs_inode_dotl.c +2 -4
index 0f73aa26ddf4..619c62f564e5 100644

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

fs/9p/vfs_super.c +1 -28
index 51ac2653984a..118fe8069bf7 100644

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

fs/adfs/dir_fplus.c +2 -0
index 4a15924014da..c68c301d8903 100644

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

fs/aio.c +4 -3
index 86532d483a8e..d6f18b3d9ac6 100644

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

fs/btrfs/scrub.c +7 -1
index 5a44cd54d071..df98aa5c099f 100644

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

fs/btrfs/verity.c +1 -1
index 4968535dfff0..e5d7763fe6e0 100644

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

fs/ext4/extents.c +6 -2
index 33624c68a3d7..f6dbd3eaaccd 100644

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

fs/inode.c +2 -1
index 34e0a0482bff..284427beebbe 100644

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

fs/ksmbd/smb2pdu.c +20 -10
index a3b4b09d2281..bb4695b61ec3 100644

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

fs/nfs/pnfs.c +1 -1
index 6d53fe9eb9a6..9866ae5366ee 100644

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

fs/proc/proc_sysctl.c +4 -1
index 780d182d7542..8361341d547b 100644

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

fs/read_write.c +9 -5
index b2d9a27a7414..87862c127395 100644

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

fs/stat.c +3 -0
index fdea43738d50..3036bb36cbd2 100644

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

fs/udf/super.c +17 -2
index 6857c15f5a0f..c7e3cf9721c1 100644

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

include/acpi/acpi_bus.h +2 -0
index 7ce4e01b2406..26e9678b63a7 100644

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

include/linux/fs.h +10 -0
index a6845fdc73cf..fe4bcaefff09 100644

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

include/linux/i3c/master.h +3 -0
index 604a126b78c8..d73770f5f69e 100644

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

include/linux/key.h +3 -0
index 4a81a5242f4b..36ac0f46a533 100644

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

include/linux/mmzone.h +2 -1
index 34d02383023a..225065f7669c 100644

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

include/linux/spi/spi.h +6 -1
index 9ab3dab9568a..c7d865ffcc90 100644

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

include/net/9p/client.h +1 -1
index 7060de84c559..0a068e206205 100644

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

include/net/arp.h +1 -7
index 4a23a97195f3..d7ef4ec71dfe 100644

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

include/net/bluetooth/hci_core.h +3 -10
index bb5c8fdd9d33..8656ce27eb33 100644

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

include/net/dst_metadata.h +2 -0
index adab27ba1ecb..f7db9c92a5b5 100644

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

include/net/ndisc.h +2 -14
index e97ef508664f..8f137404714b 100644

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

include/net/neighbour.h +11 -0
index 0e9d33e4439e..1dbd543d8378 100644

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

include/net/netfilter/nf_conntrack_helper.h +1 -0
index 9939c366f720..53d957ffbaa6 100644

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

include/net/sock.h +15 -14
index 2b13a41cd99a..095a3490c99e 100644

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

kernel/bpf/bpf_lsm.c +0 -4
index 07be0ecfd020..ba14e8f76eb7 100644

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

kernel/locking/osq_lock.c +54 -27

81 lines not on this page · raw message

kernel/sched/pelt.c +1 -1
index a554e3bbab2b..5cd0e188f000 100644

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

kernel/time/timekeeping.c +7 -1
index 84bb2549c44e..e9f83ef5235e 100644

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

kernel/trace/trace_eprobe.c +6 -6
index dbe6ef2489a4..0bc8c1b4f470 100644

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

kernel/trace/trace_kprobe.c +3 -0
index 03d4ac41d903..354ad90ceb68 100644

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

kernel/trace/trace_probe_tmpl.h +13 -1
index 3e2f5a43b974..5c6a3fd1bd16 100644

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

lib/bootconfig.c +4 -3
index ac878b861c0b..a3b0c721acd6 100644

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

mm/internal.h +5 -6
index fa8f43cdc39e..85b9faf74eca 100644

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

mm/khugepaged.c +4 -0
index bd909aa4b8fe..19c2a749e85d 100644

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

mm/memory_hotplug.c +28 -16

44 lines not on this page · raw message

mm/page_alloc.c +2 -2
index b31f50daad31..e58f3f514e64 100644

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

net/9p/protocol.c +2 -10
index d473e5eb29cc..d4387f972447 100644

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

net/batman-adv/bat_iv_ogm.c +1 -1
index 375fe4882543..7378a2d73a3e 100644

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

net/bluetooth/hci_core.c +23 -12
index cae27a76f44d..9821984ade29 100644

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

net/bluetooth/l2cap_core.c +3 -2
index 3d6bfe6c000e..8aaa30e65b5b 100644

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

net/bridge/br_arp_nd_proxy.c +4 -2
index a411b7fa5f9d..e67674fa7299 100644

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

net/bridge/br_if.c +3 -3
index 7fb8014b8469..fd11b0417389 100644

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

net/core/filter.c +75 -16

91 lines not on this page · raw message

net/core/lwt_bpf.c +11 -1
index 7953a3d0f94e..efec218bbe15 100644

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

net/core/skbuff.c +1 -1
index 32511b77d812..7dc2498b544f 100644

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

net/core/sock_reuseport.c +9 -8
index 5a165286e4d8..e7685956b09d 100644

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

net/ipv4/fib_trie.c +13 -1
index 3657e61defd4..0b91def919c3 100644

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

net/ipv4/fou_core.c +12 -0
index 556323c687e5..9636a31e0a63 100644

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

net/ipv4/igmp.c +2 -0
index ed0e342e9bc6..6164c8e51dd8 100644

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

net/ipv4/inet_connection_sock.c +9 -11
index ef18e663a547..0c76b5f1c9d4 100644

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

net/ipv4/ip_output.c +4 -4
index e7baf948c6dd..c6af68f59d10 100644

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

net/ipv4/netfilter/arp_tables.c +3 -2
index 2c39529769f1..0590ef05458e 100644

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

net/ipv4/netfilter/ip_tables.c +3 -2
index 15a9e303a153..a71829a65cf6 100644

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

net/ipv4/route.c +17 -8
index 92c70648651b..0440fe07e0a1 100644

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

net/ipv4/tcp_input.c +3 -3
index 8b8c892810ee..54e30bc368ca 100644

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

net/ipv4/tcp_minisocks.c +1 -1
index be4fb0ce2574..1abe28b8bfc5 100644

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

net/ipv4/udp.c +4 -1
index 65780cf993ea..b3878e610c2a 100644

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

net/ipv6/calipso.c +4 -8
index 583c912ffe60..e7e85c2c1293 100644

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

net/ipv6/exthdrs.c +3 -2
index fe192625c46b..7538d14d1729 100644

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

net/ipv6/exthdrs_core.c +4 -3
index ce3724f49e33..f5b6e25580e8 100644

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

net/ipv6/icmp.c +6 -4
index fcfb0f79b07a..db9dffa592a1 100644

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

net/ipv6/ip6_output.c +8 -5
index bc6c02918ca7..0e5a49d81d5a 100644

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

net/ipv6/mip6.c +8 -1
index aeb35d26e474..a28ff5814da6 100644

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

net/ipv6/netfilter/ip6_tables.c +3 -2
index 6fdd00ac2f84..1ffd93f124a2 100644

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

net/ipv6/route.c +8 -2
index 521ee189235d..28ae96e29a2f 100644

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

net/ipv6/seg6_iptunnel.c +42 -4

46 lines not on this page · raw message

net/ipv6/seg6_local.c +52 -3

55 lines not on this page · raw message

net/ipv6/tcp_ipv6.c +3 -3
index c950d4907cd6..4303d46fd405 100644

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

net/ipv6/udp.c +4 -1
index 21f34a3a4e8e..46b98f46dca3 100644

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

net/iucv/af_iucv.c +9 -0
index 8247f1f6c20b..b4238fbac2d1 100644

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

net/mac80211/ibss.c +18 -3
index 13fa4d64a84d..3f8a40f6118b 100644

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

net/mac80211/ieee80211_i.h +3 -0
index 9769aaa181e7..fbde31edda5d 100644

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

net/mac80211/ocb.c +18 -3
index 6688b1dd8aaa..b496424f818d 100644

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

net/mac80211/tx.c +6 -0
index 4e25a7af7d86..11cf2fa8d1f6 100644

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

net/mctp/af_mctp.c +1 -1
index 61476eb6aac7..19a4be43f2a8 100644

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

net/mptcp/options.c +8 -4
index 28bdff9ee8e3..cc6d43ca7072 100644

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

net/mptcp/protocol.c +10 -0
index 2f18dcb8d034..f1122038d17c 100644

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

net/netfilter/ipvs/ip_vs_app.c +1 -1
index f9132b359f0c..62b4f451aa56 100644

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

net/netfilter/ipvs/ip_vs_core.c +6 -6
index a28713ef68dd..26fbd6b301e4 100644

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

net/netfilter/nf_conntrack_helper.c +13 -7
index b5f4bfc60f89..0688428f4d2b 100644

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

net/netfilter/nf_conntrack_sip.c +2 -2
index 44b21e180241..2ba47c1a6018 100644

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

net/netfilter/nf_nat_masquerade.c +2 -2
index acd73f717a08..1cd5341ad1ce 100644

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

net/netfilter/nf_tables_api.c +9 -12
index c12b2ded6519..fa258466b52c 100644

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

net/netfilter/nf_tables_offload.c +3 -0
index 27907fa6f157..6c91cba23d13 100644

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

net/netfilter/nft_ct.c +99 -27

126 lines not on this page · raw message

net/netfilter/xt_NETMAP.c +2 -2
index cb2ee80d84fa..591a6af6c61f 100644

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

net/netfilter/xt_recent.c +4 -3
index 39937ff24527..2138c1225da4 100644

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

net/rds/rdma.c +4 -1
index f3b6a7b554f8..5dde9cc1a609 100644

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

net/sched/act_ife.c +2 -4
index 2dccad61e23b..8934f3a8edf7 100644

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

net/sched/sch_teql.c +7 -2
index 9057d4f2ee5c..24c81f9ffb71 100644

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

net/sctp/sm_make_chunk.c +24 -21

45 lines not on this page · raw message

net/sctp/sm_statefuns.c +10 -6
index aec07ab9b951..bc1a812510eb 100644

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

net/sctp/socket.c +1 -1
index cb2c20152095..2f61515125df 100644

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

net/sctp/stream.c +2 -0
index 3bcb8541875a..ae5bb51dea00 100644

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

net/sctp/stream_interleave.c +14 -24
index e3aad75cb11d..c25e7492752b 100644

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

net/socket.c +6 -5
index 0c87e99c8e69..5c9cf3f0a2a9 100644

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

net/sunrpc/clnt.c +4 -1
index 48ffdd419253..799b61a1be01 100644

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

net/sunrpc/rpc_pipe.c +1 -0
index 35588f0afa86..248fa843efc8 100644

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

net/tipc/bearer.c +33 -0
index e72318f1a418..58544cc62fef 100644

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

net/tls/tls_sw.c +12 -4
index 37e92d1386e2..35a390aa964e 100644

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

net/wireless/scan.c +2 -1
index bd1f702edada..71b27a3dad14 100644

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

net/xfrm/xfrm_replay.c +3 -3
index 6f6a18dc375b..9937d0e61b7d 100644

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

security/keys/key.c +9 -1
index e671876619fc..8b1777895c2e 100644

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

security/keys/keyctl.c +0 -2
index e9fa1b94d0d0..d79f25c5790e 100644

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

security/keys/keyring.c +18 -7
index 83fa6f0a54d4..aea1a90f78d4 100644

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

security/keys/request_key.c +12 -2
index a7673ad86d18..b153f36973ac 100644

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

sound/hda/hdac_controller.c +9 -1
index f7bd6e2db085..d5c58cdb8f49 100644

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

sound/pci/Kconfig +1 -0
index 41ce12597177..ad7ef4d12f85 100644

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

sound/soc/codecs/max98090.c +12 -10
index 4f173f86e157..2a3da1bc630e 100644

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

sound/soc/meson/axg-fifo.c +14 -14
index 5218e40aeb1b..4a81aa3f384f 100644

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

sound/usb/caiaq/device.c +8 -3
index 39b88f5fc481..a10d7aefe798 100644

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

sound/usb/pcm.c +6 -0
index 2f3fadeeb3a3..38b1df40b713 100644

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

tools/bootconfig/test-bootconfig.sh +18 -0
index a2c484c243f5..be8d05833704 100755

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

tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc +1 -1
index 07b1177c1634..5b95c7f312f4 100644

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

tools/testing/selftests/net/packetdrill/tcp_bidir_fast_retransmit_nosack.pkt new file +42 -0

42 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.