Linux 5.15.212
Greg Kroah-Hartman
maintainerI'm announcing the release of the 5.15.212 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/admin-guide/pm/cpufreq.rst | 6 Documentation/crypto/userspace-if.rst | 31 Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml | 10 Documentation/driver-api/pci/pci.rst | 3 Makefile | 2 arch/alpha/kernel/pci-sysfs.c | 13 arch/arm/boot/dts/am335x-sl50.dts | 4 arch/arm/configs/sunxi_defconfig | 1 arch/arm/mach-davinci/board-da850-evm.c | 12 arch/arm/mach-imx/cpu-imx31.c | 9 arch/arm/mach-imx/mm-imx3.c | 2 arch/arm64/boot/dts/qcom/sdm630.dtsi | 9 arch/arm64/kernel/hw_breakpoint.c | 9 arch/arm64/kvm/vgic/vgic-its.c | 15 arch/arm64/kvm/vgic/vgic.c | 11 arch/arm64/mm/mmu.c | 11 arch/mips/dec/int-handler.S | 2 arch/mips/dec/prom/init.c | 6 arch/mips/dec/setup.c | 6 arch/mips/fw/lib/call_o32.S | 2 arch/mips/include/asm/dec/prom.h | 15 arch/mips/kernel/mips-mt-fpaff.c | 28 arch/mips/mm/init.c | 12 arch/mips/n64/init.c | 2 arch/mips/ralink/mt7621.c | 2 arch/mips/sgi-ip22/ip22-gio.c | 7 arch/powerpc/kexec/core_64.c | 4 arch/powerpc/perf/core-fsl-emb.c | 3 arch/powerpc/platforms/cell/spufs/file.c | 6 arch/powerpc/platforms/powernv/setup.c | 3 arch/riscv/kernel/machine_kexec.c | 3 arch/riscv/kernel/stacktrace.c | 2 arch/s390/kernel/process.c | 2 arch/sparc/kernel/led.c | 2 arch/x86/boot/compressed/acpi.c | 7 arch/x86/boot/early_serial_console.c | 11 arch/x86/events/amd/core.c | 6 arch/x86/kvm/vmx/vmx.c | 3 arch/x86/mm/numa_emulation.c | 17 arch/x86/platform/olpc/olpc-xo15-sci.c | 1 block/bdev.c | 4 block/partitions/aix.c | 9 certs/common.c | 2 crypto/af_alg.c | 54 crypto/algif_skcipher.c | 49 crypto/asymmetric_keys/verify_pefile.c | 2 crypto/drbg.c | 4 crypto/ecc.c | 31 crypto/ecrdsa.c | 2 crypto/pcrypt.c | 4 crypto/rng.c | 11 drivers/acpi/acpi_ipmi.c | 2 drivers/acpi/cppc_acpi.c | 11 drivers/acpi/nfit/core.c | 15 drivers/acpi/resource.c | 6 drivers/android/binder.c | 19 drivers/ata/pata_pxa.c | 1 drivers/ata/sata_gemini.c | 2 drivers/base/firmware_loader/main.c | 3 drivers/base/power/main.c | 6 drivers/base/property.c | 4 drivers/block/drbd/drbd_receiver.c | 5 drivers/bluetooth/bpa10x.c | 8 drivers/bluetooth/btrtl.c | 5 drivers/bluetooth/btusb.c | 37 drivers/bus/sunxi-rsb.c | 3 drivers/char/hw_random/virtio-rng.c | 23 drivers/char/tlclk.c | 4 drivers/char/tpm/eventlog/tpm1.c | 4 drivers/char/tpm/tpm-dev.c | 2 drivers/char/tpm/tpmrm-dev.c | 2 drivers/clk/clk-scmi.c | 4 drivers/clk/imx/clk.c | 2 drivers/clk/qcom/a53-pll.c | 2 drivers/cpufreq/cpufreq.c | 2 drivers/cpufreq/cpufreq_conservative.c | 12 drivers/cpufreq/intel_pstate.c | 6 drivers/cpufreq/pcc-cpufreq.c | 2 drivers/crypto/allwinner/Kconfig | 8 drivers/crypto/allwinner/sun4i-ss/Makefile | 1 drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c | 36 drivers/crypto/allwinner/sun4i-ss/sun4i-ss-prng.c | 69 drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h | 20 drivers/crypto/amcc/crypto4xx_alg.c | 106 drivers/crypto/amcc/crypto4xx_core.c | 130 drivers/crypto/amcc/crypto4xx_core.h | 11 drivers/crypto/amcc/crypto4xx_reg_def.h | 11 drivers/crypto/amlogic/amlogic-gxl-core.c | 2 drivers/crypto/atmel-ecc.c | 2 drivers/crypto/atmel-sha204a.c | 29 drivers/crypto/caam/caamalg.c | 12 drivers/crypto/caam/caamalg_qi.c | 12 drivers/crypto/caam/caamalg_qi2.c | 12 drivers/crypto/caam/caamhash.c | 4 drivers/crypto/caam/key_gen.c | 4 drivers/crypto/cavium/cpt/cptvf_reqmanager.c | 4 drivers/crypto/ccp/sev-dev.c | 3 drivers/crypto/hisilicon/Kconfig | 1 drivers/crypto/hisilicon/qm.c | 4 drivers/crypto/hisilicon/trng/trng.c | 298 - drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c | 4 drivers/crypto/qat/qat_common/adf_accel_devices.h | 2 drivers/crypto/qat/qat_common/adf_aer.c | 7 drivers/crypto/qat/qat_common/adf_common_drv.h | 4 drivers/crypto/qat/qat_common/adf_isr.c | 18 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c | 27 drivers/crypto/qat/qat_common/adf_sriov.c | 27 drivers/crypto/qat/qat_common/qat_asym_algs.c | 10 drivers/crypto/talitos.c | 26 drivers/dax/kmem.c | 6 drivers/dma-buf/dma-fence-unwrap.c | 176 - drivers/dma-buf/udmabuf.c | 5 drivers/dma/dmaengine.c | 3 drivers/dma/qcom/gpi.c | 1 drivers/edac/skx_common.c | 3 drivers/firmware/arm_scmi/power.c | 6 drivers/firmware/arm_scmi/sensors.c | 2 drivers/gpio/gpio-eic-sprd.c | 8 drivers/gpio/gpio-htc-egpio.c | 6 drivers/gpio/gpio-mvebu.c | 5 drivers/gpio/gpio-palmas.c | 19 drivers/gpio/gpio-pca953x.c | 11 drivers/gpio/gpio-sch.c | 32 drivers/gpio/gpio-timberdale.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c | 2 drivers/gpu/drm/drm_edid.c | 8 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 80 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 11 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 22 drivers/gpu/drm/i2c/sil164_drv.c | 7 drivers/gpu/drm/msm/dp/dp_display.c | 4 drivers/gpu/drm/msm/dp/dp_reg.h | 4 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c | 3 drivers/gpu/drm/radeon/radeon_ring.c | 4 drivers/gpu/drm/tegra/dc.c | 4 drivers/gpu/drm/tegra/gem.c | 9 drivers/gpu/drm/tidss/tidss_kms.c | 2 drivers/gpu/host1x/bus.c | 2 drivers/hid/hid-appleir.c | 45 drivers/hid/hid-core.c | 7 drivers/hid/hid-lg-g15.c | 16 drivers/hid/hid-logitech-hidpp.c | 1 drivers/hid/hid-multitouch.c | 32 drivers/hid/hid-picolcd_core.c | 3 drivers/hid/hid-sensor-hub.c | 77 drivers/hid/wacom_sys.c | 12 drivers/hwmon/Kconfig | 1 drivers/hwmon/asus_atk0110.c | 3 drivers/hwmon/pmbus/adm1275.c | 2 drivers/hwmon/w83627hf.c | 4 drivers/hwmon/w83793.c | 1 drivers/hwspinlock/qcom_hwspinlock.c | 5 drivers/hwtracing/coresight/coresight-cti-platform.c | 1 drivers/hwtracing/coresight/coresight-etb10.c | 6 drivers/hwtracing/coresight/coresight-etm4x-core.c | 4 drivers/i2c/busses/i2c-mlxbf.c | 4 drivers/i2c/busses/i2c-mt65xx.c | 2 drivers/i2c/busses/i2c-stm32f7.c | 9 drivers/i2c/i2c-core-base.c | 83 drivers/i3c/master.c | 19 drivers/iio/accel/bmc150-accel-core.c | 2 drivers/iio/accel/kxsd9.c | 5 drivers/iio/accel/mma8452.c | 2 drivers/iio/adc/lpc32xx_adc.c | 4 drivers/iio/adc/spear_adc.c | 3 drivers/iio/adc/ti-ads124s08.c | 3 drivers/iio/chemical/scd30_core.c | 19 drivers/iio/common/Kconfig | 1 drivers/iio/common/Makefile | 1 drivers/iio/common/inv_sensors/Kconfig | 7 drivers/iio/common/inv_sensors/Makefile | 6 drivers/iio/common/inv_sensors/inv_sensors_timestamp.c | 191 + drivers/iio/common/st_sensors/st_sensors_core.c | 23 drivers/iio/gyro/bmg160_core.c | 16 drivers/iio/imu/adis_trigger.c | 2 drivers/iio/imu/bmi160/bmi160_core.c | 3 drivers/iio/imu/inv_icm42600/Kconfig | 1 drivers/iio/imu/inv_icm42600/Makefile | 1 drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c | 35 drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c | 61 drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.h | 3 drivers/iio/imu/inv_icm42600/inv_icm42600_core.c | 24 drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c | 35 drivers/iio/imu/inv_icm42600/inv_icm42600_timestamp.c | 195 - drivers/iio/imu/inv_icm42600/inv_icm42600_timestamp.h | 85 drivers/iio/imu/inv_mpu6050/Kconfig | 1 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 30 drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h | 18 drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c | 83 drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c | 11 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 21 drivers/iio/industrialio-event.c | 5 drivers/iio/light/al3010.c | 2 drivers/iio/light/gp2ap002.c | 2 drivers/iio/light/opt3001.c | 6 drivers/iio/light/si1133.c | 14 drivers/iio/light/tsl2591.c | 6 drivers/iio/light/veml6030.c | 8 drivers/iio/magnetometer/ak8975.c | 15 drivers/iio/orientation/hid-sensor-rotation.c | 40 drivers/iio/temperature/ltc2983.c | 5 drivers/infiniband/core/cm.c | 13 drivers/infiniband/hw/hns/hns_roce_hem.c | 8 drivers/infiniband/hw/hns/hns_roce_main.c | 2 drivers/infiniband/hw/irdma/verbs.c | 18 drivers/infiniband/hw/irdma/verbs.h | 1 drivers/infiniband/hw/mlx4/mlx4_ib.h | 1 drivers/infiniband/hw/mlx4/mr.c | 9 drivers/infiniband/hw/mlx4/sysfs.c | 45 drivers/infiniband/hw/mlx5/devx.c | 30 drivers/infiniband/hw/mlx5/mr.c | 17 drivers/infiniband/hw/mlx5/qp.c | 12 drivers/infiniband/sw/siw/siw_qp_rx.c | 9 drivers/infiniband/ulp/rtrs/rtrs-srv.c | 5 drivers/infiniband/ulp/srpt/ib_srpt.c | 5 drivers/input/joystick/iforce/iforce-packets.c | 18 drivers/input/joystick/maplecontrol.c | 3 drivers/input/keyboard/maple_keyb.c | 4 drivers/input/misc/ims-pcu.c | 115 drivers/input/mouse/elan_i2c_core.c | 36 drivers/input/mouse/maplemouse.c | 9 drivers/input/rmi4/rmi_bus.c | 4 drivers/input/rmi4/rmi_f30.c | 2 drivers/input/rmi4/rmi_f3a.c | 2 drivers/input/touchscreen/goodix.c | 3 drivers/input/touchscreen/mms114.c | 2 drivers/input/touchscreen/touchwin.c | 15 drivers/iommu/amd/amd_iommu_types.h | 11 drivers/irqchip/irq-crossbar.c | 10 drivers/irqchip/irq-gic-v3-its.c | 6 drivers/leds/flash/leds-lm3601x.c | 11 drivers/leds/leds-lm3697.c | 4 drivers/leds/uleds.c | 3 drivers/md/dm-bufio.c | 4 drivers/md/dm-era-target.c | 10 drivers/md/dm-ioctl.c | 7 drivers/md/dm-log.c | 3 drivers/md/dm-stats.c | 10 drivers/md/dm-thin-metadata.c | 67 drivers/md/dm-verity-target.c | 2 drivers/md/raid10.c | 1 drivers/media/platform/qcom/venus/helpers.c | 4 drivers/media/platform/qcom/venus/hfi_platform_v4.c | 20 drivers/media/platform/qcom/venus/hfi_platform_v6.c | 16 drivers/media/platform/rockchip/rga/rga-hw.c | 2 drivers/media/platform/rockchip/rga/rga-hw.h | 2 drivers/media/usb/uvc/uvc_video.c | 30 drivers/memstick/core/ms_block.c | 4 drivers/mfd/cros_ec_dev.c | 3 drivers/mfd/sm501.c | 4 drivers/mfd/tps6586x.c | 2 drivers/mmc/host/vub300.c | 26 drivers/mtd/devices/mchp23k256.c | 2 drivers/mtd/devices/slram.c | 22 drivers/mtd/maps/vmu-flash.c | 1 drivers/mtd/nand/onenand/onenand_samsung.c | 7 drivers/mtd/nand/raw/fsl_ifc_nand.c | 9 drivers/mtd/nand/raw/lpc32xx_mlc.c | 12 drivers/mtd/nand/raw/lpc32xx_slc.c | 12 drivers/mtd/nand/raw/nand_base.c | 2 drivers/mtd/nand/raw/pl35x-nand-controller.c | 2 drivers/mtd/spi-nor/Kconfig | 1 drivers/net/bonding/bond_3ad.c | 1 drivers/net/dsa/sja1105/sja1105_ptp.c | 2 drivers/net/ethernet/amazon/ena/ena_netdev.c | 23 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 3 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c | 18 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 8 drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c | 2 drivers/net/ethernet/freescale/fman/fman.c | 4 drivers/net/ethernet/freescale/gianfar.c | 16 drivers/net/ethernet/marvell/mvneta.c | 3 drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 28 drivers/net/ethernet/marvell/octeontx2/af/npc.h | 30 drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 16 drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 25 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 1 drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c | 8 drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c | 71 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c | 73 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 307 + drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.h | 17 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c | 1645 ++++++++++ drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.h | 214 + drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.h | 15 drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c | 27 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 44 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c | 3 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 1 drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c | 4 drivers/net/ethernet/microsoft/mana/gdma_main.c | 2 drivers/net/ethernet/microsoft/mana/mana_en.c | 3 drivers/net/ethernet/qlogic/qede/qede_fp.c | 9 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 5 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h | 20 drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c | 23 drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h | 7 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 263 + drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c | 9 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.h | 1 drivers/net/ethernet/sun/sungem.c | 13 drivers/net/ieee802154/ca8210.c | 9 drivers/net/macsec.c | 7 drivers/net/usb/gl620a.c | 6 drivers/net/usb/kalmia.c | 8 drivers/net/usb/lan78xx.c | 18 drivers/net/usb/net1080.c | 2 drivers/net/veth.c | 2 drivers/net/virtio_net.c | 3 drivers/net/wireless/ath/ath9k/xmit.c | 5 drivers/net/wireless/ath/wcn36xx/smd.c | 6 drivers/net/wireless/marvell/mwifiex/join.c | 1 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c | 12 drivers/net/wireless/realtek/rtw88/pci.c | 5 drivers/ntb/hw/epf/ntb_hw_epf.c | 20 drivers/nvdimm/btt.c | 14 drivers/nvme/host/core.c | 2 drivers/nvme/host/multipath.c | 6 drivers/nvme/target/rdma.c | 18 drivers/nvme/target/tcp.c | 33 drivers/pci/Makefile | 2 drivers/pci/controller/dwc/pci-imx6.c | 5 drivers/pci/controller/dwc/pcie-designware-host.c | 2 drivers/pci/controller/mobiveil/pcie-mobiveil-host.c | 8 drivers/pci/controller/pci-host-common.c | 4 drivers/pci/controller/pcie-altera-msi.c | 2 drivers/pci/controller/pcie-altera.c | 32 drivers/pci/controller/pcie-mediatek-gen3.c | 2 drivers/pci/controller/pcie-mediatek.c | 123 drivers/pci/controller/pcie-rcar-host.c | 1 drivers/pci/controller/pcie-xilinx-nwl.c | 2 drivers/pci/endpoint/functions/pci-epf-ntb.c | 21 drivers/pci/endpoint/functions/pci-epf-vntb.c | 9 drivers/pci/pci.c | 136 drivers/pci/pci.h | 4 drivers/pci/rebar.c | 218 + drivers/pci/setup-bus.c | 101 drivers/pci/setup-res.c | 53 drivers/phy/phy-can-transceiver.c | 3 drivers/pinctrl/mediatek/pinctrl-mt8167.c | 2 drivers/pinctrl/mediatek/pinctrl-mt8516.c | 2 drivers/pinctrl/sunxi/pinctrl-sunxi.c | 2 drivers/platform/x86/xo15-ebook.c | 7 drivers/power/supply/charger-manager.c | 6 drivers/pwm/pwm-imx27.c | 8 drivers/rapidio/devices/tsi721.c | 3 drivers/regulator/core.c | 33 drivers/regulator/ltc3676.c | 10 drivers/regulator/scmi-regulator.c | 1 drivers/reset/reset-sunxi.c | 4 drivers/rtc/rtc-abx80x.c | 3 drivers/rtc/rtc-cmos.c | 6 drivers/rtc/rtc-ds1307.c | 30 drivers/s390/char/monwriter.c | 3 drivers/scsi/elx/efct/efct_hw.c | 2 drivers/scsi/elx/efct/efct_unsol.c | 1 drivers/scsi/hpsa.c | 4 drivers/scsi/pm8001/pm8001_ctl.c | 5 drivers/scsi/scsi_scan.c | 2 drivers/scsi/scsi_transport_sas.c | 60 drivers/scsi/sg.c | 7 drivers/scsi/smartpqi/smartpqi_init.c | 2 drivers/slimbus/qcom-ctrl.c | 5 drivers/slimbus/qcom-ngd-ctrl.c | 107 drivers/soc/fsl/qe/qe.c | 3 drivers/soc/ti/k3-ringacc.c | 4 drivers/spi/spi-ep93xx.c | 1 drivers/spi/spi-fsl-lpspi.c | 18 drivers/spi/spi-sh-msiof.c | 10 drivers/spi/spi-uniphier.c | 4 drivers/spi/spi-xilinx.c | 11 drivers/staging/media/atomisp/pci/atomisp_cmd.c | 6 drivers/staging/media/atomisp/pci/sh_css.c | 6 drivers/staging/media/ipu3/ipu3-css-params.c | 8 drivers/staging/media/sunxi/cedrus/cedrus.c | 4 drivers/staging/most/video/video.c | 7 drivers/staging/nvec/nvec.c | 4 drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 129 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 20 drivers/staging/rtl8723bs/core/rtw_security.c | 2 drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 23 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 88 drivers/target/target_core_fabric_lib.c | 89 drivers/target/target_core_internal.h | 3 drivers/target/target_core_pr.c | 12 drivers/thermal/intel/therm_throt.c | 7 drivers/thermal/thermal_hwmon.c | 5 drivers/tty/serial/8250/8250_mid.c | 31 drivers/tty/serial/8250/8250_omap.c | 3 drivers/tty/serial/msm_serial.c | 3 drivers/usb/atm/ueagle-atm.c | 36 drivers/usb/cdns3/cdnsp-mem.c | 2 drivers/usb/class/cdc-acm.c | 3 drivers/usb/common/ulpi.c | 23 drivers/usb/core/quirks.c | 6 drivers/usb/dwc3/dwc3-meson-g12a.c | 14 drivers/usb/dwc3/gadget.c | 43 drivers/usb/gadget/composite.c | 5 drivers/usb/gadget/function/f_fs.c | 5 drivers/usb/gadget/function/rndis.c | 20 drivers/usb/gadget/udc/core.c | 29 drivers/usb/host/max3421-hcd.c | 8 drivers/usb/host/sl811-hcd.c | 1 drivers/usb/host/xhci.c | 11 drivers/usb/misc/chaoskey.c | 1 drivers/usb/misc/idmouse.c | 45 drivers/usb/misc/iowarrior.c | 21 drivers/usb/misc/ldusb.c | 38 drivers/usb/misc/legousbtower.c | 37 drivers/usb/misc/uss720.c | 5 drivers/usb/mtu3/mtu3_gadget.c | 1 drivers/usb/serial/digi_acceleport.c | 43 drivers/usb/serial/keyspan_pda.c | 2 drivers/usb/serial/option.c | 16 drivers/usb/storage/ene_ub6250.c | 3 drivers/usb/storage/usb.c | 2 drivers/usb/typec/tcpm/tcpm.c | 7 drivers/usb/typec/ucsi/displayport.c | 7 drivers/usb/typec/ucsi/ucsi_ccg.c | 2 drivers/usb/usbip/vudc.h | 1 drivers/usb/usbip/vudc_dev.c | 4 drivers/vdpa/vdpa_user/vduse_dev.c | 64 drivers/vfio/pci/vfio_pci_core.c | 1 drivers/vhost/vdpa.c | 29 drivers/video/fbdev/aty/radeon_base.c | 1 drivers/video/fbdev/broadsheetfb.c | 8 drivers/video/fbdev/carminefb.c | 1 drivers/video/fbdev/core/fbcon.c | 14 drivers/video/fbdev/hecubafb.c | 6 drivers/video/fbdev/i740fb.c | 1 drivers/video/fbdev/metronomefb.c | 8 drivers/video/fbdev/nvidia/nvidia.c | 1 drivers/video/fbdev/s3fb.c | 1 drivers/video/fbdev/sm501fb.c | 16 drivers/video/fbdev/sm712.h | 2 drivers/video/fbdev/tdfxfb.c | 1 drivers/video/fbdev/tridentfb.c | 1 drivers/video/fbdev/uvesafb.c | 4 drivers/virtio/virtio_mmio.c | 26 drivers/watchdog/sp5100_tco.c | 3 drivers/watchdog/sprd_wdt.c | 5 drivers/watchdog/watchdog_core.c | 3 drivers/xen/gntdev.c | 8 drivers/xen/xen-scsiback.c | 30 fs/afs/cell.c | 2 fs/afs/cmservice.c | 2 fs/afs/rxrpc.c | 11 fs/afs/super.c | 3 fs/afs/vl_list.c | 10 fs/afs/volume.c | 2 fs/btrfs/extent-tree.c | 17 fs/btrfs/inode.c | 77 fs/btrfs/ordered-data.c | 13 fs/btrfs/ordered-data.h | 2 fs/cifs/cifs_debug.c | 2 fs/cifs/cifs_swn.c | 331 +- fs/cifs/cifsacl.c | 2 fs/cifs/cifsfs.c | 3 fs/cifs/cifsglob.h | 6 fs/cifs/cifsproto.h | 11 fs/cifs/connect.c | 38 fs/cifs/dfs_cache.c | 2 fs/cifs/ioctl.c | 12 fs/cifs/misc.c | 14 fs/cifs/netmisc.c | 2 fs/cifs/readdir.c | 6 fs/cifs/smb2maperror.c | 16 fs/cifs/smb2misc.c | 130 fs/cifs/smb2ops.c | 118 fs/cifs/smb2pdu.c | 118 fs/cifs/smb2pdu.h | 373 -- fs/cifs/smb2proto.h | 4 fs/cifs/smb2transport.c | 38 fs/cifs/trace.h | 95 fs/configfs/dir.c | 57 fs/efs/file.c | 21 fs/exfat/dir.c | 13 fs/ext4/ioctl.c | 12 fs/f2fs/checkpoint.c | 13 fs/f2fs/data.c | 29 fs/f2fs/debug.c | 2 fs/f2fs/f2fs.h | 1 fs/f2fs/file.c | 17 fs/f2fs/gc.c | 4 fs/f2fs/inode.c | 39 fs/f2fs/segment.c | 14 fs/f2fs/segment.h | 8 fs/f2fs/xattr.c | 4 fs/fuse/cuse.c | 4 fs/fuse/dev.c | 2 fs/hfs/bfind.c | 2 fs/hfs/bnode.c | 56 fs/hfs/brec.c | 2 fs/hfs/btree.c | 2 fs/hfs/btree.h | 71 fs/hfs/hfs_fs.h | 85 fs/hfs/inode.c | 2 fs/hfsplus/bfind.c | 2 fs/hfsplus/bnode.c | 62 fs/hfsplus/brec.c | 2 fs/hfsplus/btree.c | 2 fs/hfsplus/hfsplus_fs.h | 40 fs/isofs/rock.c | 11 fs/jbd2/journal.c | 2 fs/ksmbd/connection.c | 49 fs/ksmbd/connection.h | 3 fs/ksmbd/oplock.c | 10 fs/ksmbd/smb2pdu.c | 23 fs/ksmbd/smbacl.c | 4 fs/ksmbd/vfs_cache.c | 30 fs/ksmbd/vfs_cache.h | 1 fs/lockd/svcsubs.c | 4 fs/nfs/callback_proc.c | 9 fs/nfs/dir.c | 2 fs/nfs/filelayout/filelayout.c | 2 fs/nfs/flexfilelayout/flexfilelayout.c | 33 fs/nfs/flexfilelayout/flexfilelayout.h | 16 fs/nfs/pnfs.c | 4 fs/nfsd/nfs4layouts.c | 4 fs/nfsd/nfs4recover.c | 120 fs/nfsd/nfs4state.c | 22 fs/nfsd/vfs.c | 9 fs/nilfs2/segment.c | 22 fs/ntfs3/fslog.c | 97 fs/ntfs3/index.c | 31 fs/ntfs3/lznt.c | 2 fs/ntfs3/namei.c | 2 fs/ocfs2/alloc.c | 2 fs/ocfs2/aops.c | 13 fs/ocfs2/buffer_head_io.c | 7 fs/ocfs2/dlm/dlmdebug.c | 16 fs/ocfs2/dlmglue.c | 17 fs/ocfs2/inode.c | 150 fs/ocfs2/journal.c | 13 fs/ocfs2/move_extents.c | 4 fs/ocfs2/ocfs2.h | 2 fs/ocfs2/quota_local.c | 2 fs/ocfs2/stack_user.c | 10 fs/ocfs2/super.c | 2 fs/ocfs2/sysfile.c | 9 fs/orangefs/dir.c | 7 fs/proc/array.c | 6 fs/proc/base.c | 182 - fs/proc/fd.c | 73 fs/proc/generic.c | 9 fs/proc/internal.h | 6 fs/proc/namespaces.c | 16 fs/proc/proc_net.c | 1 fs/smbfs_common/smb2pdu.h | 318 + fs/sysfs/file.c | 4 fs/udf/balloc.c | 5 fs/udf/super.c | 11 fs/userfaultfd.c | 14 fs/xfs/xfs_dquot.c | 16 fs/xfs/xfs_log_recover.c | 76 fs/xfs/xfs_reflink.c | 36 include/crypto/drbg.h | 18 include/linux/audit.h | 8 include/linux/bitops.h | 2 include/linux/bpf.h | 4 include/linux/device.h | 5 include/linux/fwnode.h | 2 include/linux/glob.h | 1 include/linux/hid-sensor-hub.h | 25 include/linux/hid.h | 29 include/linux/iio/common/inv_sensors_timestamp.h | 94 include/linux/netlink.h | 2 include/linux/pci.h | 4 include/linux/platform_data/pca953x.h | 2 include/linux/skmsg.h | 22 include/linux/vmalloc.h | 4 include/net/addrconf.h | 10 include/net/bluetooth/hci.h | 5 include/net/bluetooth/l2cap.h | 2 include/net/fib_rules.h | 5 include/net/gue.h | 2 include/net/ip_fib.h | 8 include/net/ip_vs.h | 3 include/net/rtnetlink.h | 3 include/net/sctp/sctp.h | 3 include/net/sock.h | 2 include/net/xdp.h | 29 include/net/xfrm.h | 7 include/sound/asequencer.h | 4 include/sound/seq_kernel.h | 8 include/uapi/sound/asequencer.h | 54 io_uring/io-wq.c | 2 kernel/audit.c | 85 kernel/bpf/core.c | 2 kernel/bpf/devmap.c | 19 kernel/bpf/hashtab.c | 21 kernel/bpf/helpers.c | 9 kernel/bpf/inode.c | 13 kernel/bpf/lpm_trie.c | 10 kernel/bpf/verifier.c | 3 kernel/cgroup/cpuset.c | 7 kernel/cpu.c | 20 kernel/locking/rtmutex.c | 14 kernel/locking/rtmutex_api.c | 2 kernel/sched/fair.c | 2 kernel/sched/features.h | 8 kernel/time/posix-cpu-timers.c | 3 kernel/time/time.c | 2 kernel/trace/ring_buffer.c | 3 kernel/trace/trace_eprobe.c | 2 kernel/trace/trace_events_filter.c | 6 kernel/trace/trace_probe.c | 3 kernel/trace/trace_probe.h | 2 kernel/workqueue.c | 2 lib/debugobjects.c | 17 lib/glob.c | 31 lib/test_meminit.c | 2 net/6lowpan/nhc.c | 2 net/9p/client.c | 2 net/9p/trans_rdma.c | 19 net/atm/common.c | 2 net/batman-adv/distributed-arp-table.c | 30 net/batman-adv/fragmentation.c | 8 net/batman-adv/gateway_client.c | 3 net/batman-adv/main.c | 13 net/batman-adv/routing.c | 3 net/batman-adv/soft-interface.c | 17 net/batman-adv/soft-interface.h | 2 net/batman-adv/translation-table.c | 5 net/bluetooth/af_bluetooth.c | 17 net/bluetooth/bnep/core.c | 27 net/bluetooth/l2cap_core.c | 125 net/bluetooth/l2cap_sock.c | 4 net/bluetooth/sco.c | 60 net/bridge/br_cfm.c | 6 net/bridge/br_cfm_netlink.c | 4 net/bridge/br_if.c | 3 net/bridge/br_stp.c | 3 net/bridge/netfilter/ebtables.c | 22 net/bridge/netfilter/nft_meta_bridge.c | 4 net/can/bcm.c | 90 net/can/isotp.c | 9 net/core/fib_rules.c | 6 net/core/filter.c | 44 net/core/lwt_bpf.c | 12 net/core/rtnetlink.c | 10 net/core/skbuff.c | 23 net/core/skmsg.c | 2 net/dsa/tag_ksz.c | 18 net/ieee802154/core.c | 2 net/ieee802154/header_ops.c | 9 net/ieee802154/ieee802154.h | 17 net/ieee802154/netlink.c | 36 net/ife/ife.c | 2 net/ipv4/fib_frontend.c | 15 net/ipv4/igmp.c | 1 net/ipv4/ip_gre.c | 6 net/ipv4/ip_vti.c | 3 net/ipv4/ipmr.c | 4 net/ipv4/netfilter/nf_reject_ipv4.c | 2 net/ipv4/sysctl_net_ipv4.c | 10 net/ipv4/tcp_output.c | 4 net/ipv6/addrconf.c | 23 net/ipv6/ip6_fib.c | 73 net/ipv6/ip6_gre.c | 6 net/ipv6/ip6_vti.c | 3 net/ipv6/ip6mr.c | 4 net/ipv6/mcast.c | 165 - net/ipv6/netfilter.c | 4 net/ipv6/netfilter/ip6t_ah.c | 5 net/ipv6/netfilter/ip6t_hbh.c | 1 net/ipv6/netfilter/ip6t_rt.c | 3 net/ipv6/netfilter/nf_conntrack_reasm.c | 3 net/ipv6/route.c | 9 net/ipv6/seg6.c | 3 net/ipv6/sit.c | 3 net/kcm/kcmsock.c | 8 net/key/af_key.c | 1 net/llc/af_llc.c | 1 net/llc/llc_conn.c | 1 net/mac80211/main.c | 3 net/mac80211/tx.c | 17 net/mac802154/iface.c | 2 net/mpls/af_mpls.c | 4 net/netfilter/ipset/ip_set_core.c | 12 net/netfilter/ipvs/ip_vs_app.c | 10 net/netfilter/ipvs/ip_vs_conn.c | 4 net/netfilter/ipvs/ip_vs_core.c | 36 net/netfilter/ipvs/ip_vs_proto_sctp.c | 18 net/netfilter/ipvs/ip_vs_proto_tcp.c | 11 net/netfilter/ipvs/ip_vs_proto_udp.c | 3 net/netfilter/nf_conncount.c | 23 net/netfilter/nf_conntrack_core.c | 18 net/netfilter/nf_conntrack_irc.c | 6 net/netfilter/nf_conntrack_seqadj.c | 2 net/netfilter/nf_nat_sip.c | 9 net/netfilter/nf_tables_api.c | 41 net/netfilter/nfnetlink_cthelper.c | 4 net/netfilter/nfnetlink_osf.c | 6 net/netfilter/nft_log.c | 58 net/netfilter/nft_set_bitmap.c | 4 net/netfilter/nft_set_hash.c | 8 net/netfilter/nft_set_pipapo.c | 5 net/netfilter/nft_set_rbtree.c | 4 net/netfilter/nft_synproxy.c | 9 net/netfilter/xt_AUDIT.c | 58 net/netfilter/xt_cluster.c | 2 net/netfilter/xt_connmark.c | 14 net/netfilter/xt_nat.c | 9 net/netfilter/xt_rateest.c | 2 net/netfilter/xt_u32.c | 12 net/netlink/af_netlink.c | 35 net/netlink/af_netlink.h | 5 net/nfc/llcp_sock.c | 14 net/openvswitch/conntrack.c | 2 net/openvswitch/flow_netlink.c | 201 - net/psample/psample.c | 6 net/qrtr/af_qrtr.c | 2 net/sched/act_bpf.c | 2 net/sched/act_pedit.c | 11 net/sched/cls_api.c | 3 net/sched/cls_bpf.c | 10 net/sched/sch_cake.c | 5 net/sched/sch_codel.c | 48 net/sched/sch_drr.c | 8 net/sched/sch_fq_codel.c | 41 net/sched/sch_hfsc.c | 24 net/sched/sch_hhf.c | 27 net/sched/sch_htb.c | 14 net/sched/sch_multiq.c | 2 net/sctp/diag.c | 67 net/sctp/sm_make_chunk.c | 10 net/sctp/sm_statefuns.c | 23 net/sctp/socket.c | 29 net/smc/smc_cdc.c | 15 net/socket.c | 2 net/sunrpc/xprtrdma/rpc_rdma.c | 4 net/tipc/bcast.c | 22 net/tipc/bcast.h | 2 net/tipc/bearer.c | 1 net/tipc/name_distr.c | 13 net/tipc/netlink.c | 12 net/tipc/node.c | 15 net/tipc/socket.c | 3 net/tls/tls_sw.c | 4 net/xfrm/xfrm_interface_core.c | 3 net/xfrm/xfrm_policy.c | 3 net/xfrm/xfrm_state.c | 2 net/xfrm/xfrm_user.c | 2 samples/trace_events/trace-events-sample.c | 4 scripts/kconfig/conf.c | 6 security/apparmor/domain.c | 58 security/apparmor/include/policy_unpack.h | 19 security/apparmor/label.c | 2 security/apparmor/lsm.c | 16 security/apparmor/net.c | 1 security/apparmor/policy.c | 14 security/apparmor/procattr.c | 2 security/integrity/evm/evm_secfs.c | 16 security/keys/keyring.c | 2 sound/aoa/fabrics/layout.c | 6 sound/core/seq/Kconfig | 7 sound/core/seq/seq_clientmgr.c | 172 - sound/core/seq/seq_clientmgr.h | 2 sound/core/seq/seq_compat.c | 1 sound/core/seq/seq_memory.c | 10 sound/core/seq/seq_memory.h | 19 sound/firewire/isight.c | 3 sound/pci/es1938.c | 2 sound/soc/codecs/adau1372.c | 5 sound/soc/codecs/hdac_hdmi.c | 4 sound/soc/fsl/fsl_audmix.c | 6 sound/soc/tegra/tegra210_ahub.c | 4 sound/usb/caiaq/input.c | 2 sound/usb/mixer_quirks.c | 101 sound/usb/mixer_scarlett.c | 4 sound/usb/mixer_us16x08.c | 127 sound/virtio/virtio_pcm.c | 3 sound/virtio/virtio_pcm_ops.c | 3 tools/bpf/bpftool/net.c | 4 tools/include/linux/bitops.h | 2 tools/lib/api/fs/fs.c | 19 tools/lib/bpf/strset.c | 62 tools/perf/util/probe-finder.c | 4 tools/testing/selftests/bpf/progs/bpf_iter_task_vma.c | 2 tools/testing/selftests/vm/compaction_test.c | 3 tools/testing/selftests/vm/hmm-tests.c | 63 tools/usb/usbip/libsrc/usbip_common.c | 2 tools/usb/usbip/libsrc/usbip_device_driver.c | 4 tools/usb/usbip/libsrc/vhci_driver.c | 1 tools/virtio/vringh_test.c | 5 tools/vm/slabinfo.c | 4 virt/kvm/eventfd.c | 12 virt/kvm/kvm_main.c | 16 791 files changed, 11155 insertions(+), 5454 deletions(-)
Aaron Tomlin (1):
mips: sched: Fix CPUMASK_OFFSTACK memory corruption
Abdun Nihaal (14):
fbdev: metronomefb: fix potential memory leak in metronomefb_probe()
fbdev: broadsheetfb: fix potential memory leak in broadsheetfb_probe()
fbdev: hecubafb: fix potential memory leak in hecubafb_probe()
fbdev: radeon: fix potential memory leak in radeonfb_pci_register()
fbdev: i740fb: fix potential memory leak in i740fb_probe()
fbdev: s3fb: fix potential memory leak in s3_pci_probe()
fbdev: uvesafb: fix potential memory leak in uvesafb_probe()
fbdev: tdfxfb: fix potential memory leak in tdfxfb_probe()
fbdev: carminefb: fix potential memory leak in alloc_carmine_fb()
fbdev: nvidia: fix potential memory leak in nvidiafb_probe()
fbdev: tridentfb: fix potential memory leak in trident_pci_probe() nvdimm/btt: Free arenas on btt_init() error paths nvdimm/btt: Free arena sub-allocations on discover_arenas() error path
bnx2x: fix potential memory leak in bnx2x_alloc_mem_bp()
Abhishek Ojha (1):
regulator: ltc3676: Fix incorrect IRQSTAT bit offsets
Aboorva Devarajan (4):
powerpc/perf: fix preempt count underflow in fsl_emb_pmu_del powerpc/powernv: fix preempt count leak in pnv_kexec_wait_secondaries_down powerpc/kexec: fix double get_cpu() imbalance in kexec_prepare_cpus selftests/mm: fix exclusive_cow test fork() handling
Achkinazi, Igor (1):
nvme-multipath: set BIO_REMAPPED on bios remapped to per-path namespace disks
Adam Li (1):
sched/fair: Only update stats for allowed CPUs when looking for dst group
Aditya Garg (2):
net: mana: initialize gdma queue id to INVALID_QUEUE_ID
net: mana: guard TX wq object destroy with INVALID_MANA_HANDLE check
Adrian Hunter (1):
i3c: master: Prevent reuse of dynamic address on device add failure
Ahsan Atta (1):
crypto: qat - fix restarting state leak on allocation failure
Al Viro (2):
configfs_lookup(): don't leave ->s_dentry dangling on failure
configfs: fix lockless traversals of ->s_childrenAlan Stern (1):
USB: chaoskey: Fix slab-use-after-free in chaoskey_release()
Alberto Ruiz (1):
fuse: fix device node leak in cuse_process_init_reply()
Aleksandr Nogikh (2):
ocfs2: fix circular locking dependency in ocfs2_dio_end_io_write
ieee802154: fix kernel-infoleak in dgram_recvmsg()
Aleksandrova Alyona (1):
net: dsa: sja1105: round up PTP perout pin duration
Alex Williamson (1):
vfio/pci: Release the VGA arbiter client on register_device() failure
Alexander Chesnokov (1):
RDMA/hns: Fix arithmetic overflow in calc_hem_config()
Alexander Lobakin (1):
bitops: make BYTES_TO_BITS() treewide-available
Alexander Potapenko (1):
lib/test_meminit: use && for bools
Alexandru Hossu (9):
staging: rtl8723bs: fix WEP length underflow and OOB read in OnAuth()
staging: rtl8723bs: fix OOB read in OnAssocRsp() IE loop
staging: rtl8723bs: fix OOB read in update_beacon_info() IE loop
staging: rtl8723bs: fix OOB reads in IE loops in issue_assocreq() and join_cmd_hdl()
staging: rtl8723bs: fix OOB reads in is_ap_in_tkip() IE loop
staging: rtl8723bs: fix OOB write in HT_caps_handler()
staging: nvec: fix use-after-free in nvec_rx_completed()
staging: rtl8723bs: fix heap buffer overflow in rtw_cfg80211_set_wpa_ie()
staging: rtl8723bs: fix OOB reads in rtw_get_sec_ie(), rtw_get_wapi_ie(), and rtw_get_wps_attr()
Alexey Nepomnyashih (1):
xfs: fix unreachable BIGTIME check in dquot flush validation
Anastasia Tishchenko (1):
crypto: ecc - Fix carry overflow in vli multiplication
Andreas Kemnade (1):
gpios: palmas: add .get_direction() op
Andreas Kempe (1):
iio: imu: st_lsm6dsx: deselect shub page before reading whoami
Andrei Kuchynski (2):
mfd: cros_ec: Delay dev_set_drvdata() until probe success
usb: typec: ucsi: Invert DisplayPort role assignment
Andrii Nakryiko (1):
bpf: Consistently use bpf_rcu_lock_held() everywhere
Andy Shevchenko (4):
iio: magnetometer: ak8975: Add missed pm_runtime_put_autosuspend() call
phy: phy-can-transceiver: Check driver match and driver data against NULL
ACPI: resource: Amend kernel-doc style
serial: 8250_mid: Disable DMA for selected platforms
Andy Yan (1):
usb: typec: tcpm: Fix VDM type for Enter Mode commands
Angela Czubak (1):
HID: add haptics page defines
Anshuman Khandual (1):
arm64/mm: Optimize TLB flush in unmap_hotplug_[pmd|pud]_range()
Antoni Pokusinski (1):
rtc: abx80x: fix the RTC_VL_CLR clearing all status flags
Armin Wolf (1):
leds: uleds: Fix potential buffer overread
Arnaldo Carvalho de Melo (3):
tools lib api: Fix missing null termination in filename__read_int/ull() tools lib api: Fix filename__write_int() writing uninitialized stack data tools lib api: Fix mount_overload() snprintf truncation and toupper range
Arnd Bergmann (1):
staging: media: atomisp: reduce load_primary_binaries() stack usage
Arseniy Krasnov (1):
mtd: rawnand: fix condition in 'nand_select_target()'
Asim Viladi Oglu Manizada (1):
net: openvswitch: reject oversized nested action attrs
Avinash Duduskar (1):
bpf: zero-initialize the fib lookup flow struct
Badhri Jagan Sridharan (1):
usb: typec: tcpm: Validate SVID index in svdm_consume_modes()
Bartosz Golaszewski (3):
device property: initialize the remaining fields of fwnode_handle in fwnode_init()
mfd: tps6586x: Fix OF node refcount
gpio: sch: use new GPIO line value setter callbacks
Bastien Curutchet (1):
mtd: rawnand: pl353: fix probe resource allocation
Benjamin Coddington (1):
NFSv4: include MAY_WRITE in open permission mask for O_TRUNC
Benjamin Marzinski (1):
dm-log: fix a bitset_size overflow on 32bit machines
Bhargav Joshi (2):
irqchip/crossbar: Fix parent domain resource leak irqchip/crossbar: Use correct index in crossbar_domain_free()
Biren Pandya (2):
iio: accel: kxsd9: fix runtime PM imbalance on write_raw() error
iio: light: gp2ap002: fix runtime PM leak on read error
Bjorn Andersson (4):
slimbus: qcom-ngd-ctrl: Fix up platform_driver registration
slimbus: qcom-ngd-ctrl: Fix probe error path ordering
slimbus: qcom-ngd-ctrl: Correct PDR and SSR cleanup ownership
slimbus: qcom-ngd-ctrl: Register callbacks after creating the ngd
Bradley Morgan (2):
cpu: hotplug: Preserve per instance callback errors
cpu: hotplug: Bound hotplug states sysfs output
Breno Leitao (2):
workqueue: drop spurious '*' from print_worker_info() fn declaration arm64/hw_breakpoint: reject unaligned watchpoints that would truncate BAS
Bryam Vargas (18):
apparmor: mediate the implicit connect of TCP fast open sendmsg
f2fs: bound i_inline_xattr_size for non-inline-xattr inodes
iio: accel: bmc150: clamp the device-reported FIFO frame count
udf: validate VAT header length against the VAT inode size
udf: validate sparing table length as an entry count, not a byte count
partitions: aix: bound the pp_count scan to the ppe array
isofs: bound Rock Ridge symlink components to the SL record
exfat: bound uniname advance in exfat_find_dir_entry()
Input: synaptics-rmi4 - bound the F3A keymap to the GPIO count
Input: synaptics-rmi4 - bound the F30 keymap to the GPIO/LED count
Input: goodix - clamp the device-reported contact count
Input: iforce - bound the device-reported force-feedback effect index
Input: touchwin - reset the packet index on every complete packet
nvmet-rdma: handle inline data with a nonzero offset
scsi: target: Bound PR-OUT TransportID parsing to the received buffer
scsi: target: core: Fix iSCSI ISID use-after-free in REGISTER AND MOVE net/sched: sch_multiq: Replace direct dequeue call with peek and qdisc_dequeue_peeked
orangefs: keep the readdir entry size 64-bit in fill_from_part()
Cao Guanghui (1):
dm era: fix NULL pointer dereference in metadata_open()
Carlos Llamas (3):
binder: fix UAF in binder_thread_release()
binder: fix UAF in binder_free_transaction()
libbpf: Fix UAF in strset__add_str()
Carlos Song (2):
spi: fsl-lpspi: replace dmaengine_terminate_all() with dmaengine_terminate_sync()
spi: fsl-lpspi: terminate the RX channel on TX prepare failure path
Chaitanya Kulkarni (1):
nvmet-tcp: fix race between ICReq handling and queue teardown
Chao Yu (2):
f2fs: fix to detect corrupted meta ino
f2fs: fix potential deadlock in gc_merge path of f2fs_balance_fs()
Chen Cheng (1):
md/raid10: reset read_slot when reusing r10bio for discard
Chen-Yu Tsai (1):
dt-bindings: media: sun4i-a10-video-engine: Add interconnect properties
Chi Wang (1):
audit: Fix data races of skb_queue_len() readers on audit_queue
Chris Mason (2):
nfsd: release layout stid on setlease failure
xprtrdma: Fix bcall rep leak and unbounded peek
Christian Marangi (1):
PCI: mediatek: Convert bool to single quirks entry and bitmap
Christoph Hellwig (1):
proc: rename proc_setattr to proc_nochmod_setattr
Chuck Lever (2):
lockd: Plug nlm_file leak when nlm_do_fopen() fails
lockd: Plug nlm_file refcount leak on cached nlm_do_fopen() failure
Colin Ian King (1):
iio: invensense: remove redundant initialization of variable period
Cristian Marussi (1):
clk: scmi: Fix clock rate rounding
Cássio Gabriel (6):
ALSA: virtio: Add missing 384 kHz PCM rate mapping
ALSA: usb-audio: Propagate errors in scarlett_ctl_enum_put()
ALSA: usb-audio: Propagate US-16x08 write errors in route/mix EQ-switch put callbacks
ALSA: usb-audio: Roll back quirk control caches on write errors
ALSA: usb-audio: Update Babyface Pro control caches only after successful writes
ALSA: usb-audio: Update US-16x08 EQ/comp shadow state after successful writes
DaeMyung Kang (2):
ksmbd: destroy async_ida in ksmbd_conn_free()
ksmbd: centralize ksmbd_conn final release to plug transport leak
Dai Ngo (1):
NFSv4/pnfs: defer return_range callbacks until after inode unlock
Dan Carpenter (3):
rapidio/tsi721: prevent a bad dereference in tsi721_db_dpc()
scsi: pm8001: Fix error code in non_fatal_log_show()
afs: Fix error code in afs_extract_vl_addrs()
Daniel Borkmann (1):
bpf: Tighten cgroup storage cookie checks for prog arrays
Daniele Palmas (1):
net: qualcomm: rmnet: add tx packets aggregation
Danilo Krummrich (1):
driver core: use READ_ONCE() for dev->driver in dev_has_sync_state()
Darrick J. Wong (1):
xfs: resample the data fork mapping after cycling ILOCK
Darvell Long (1):
ALSA: usb-audio: avoid kobject path lookup in DualSense match
David Carlier (1):
netfilter: nfnl_cthelper: apply per-class values when updating policies
David Howells (7):
afs: Fix netns teardown to cancel the preallocation charger
afs: Fix further netns teardown to cancel the preallocation charger
afs: Fix callback service message parsers to pass through -EAGAIN
afs: Fix vllist leak
afs: Fix the volume AFS_VOLUME_RM_TREE is set on
afs: Fix unchecked-length string display in debug statement
cifs: Add tracing for the cifs_tcon struct refcounting
David Laight (1):
fbdev: sm501fb: Fix buffer errors in OF binding code
Davidlohr Bueso (2):
locking/rtmutex: Skip remove_waiter() when waiter is not enqueued dax/kmem: account for partial discontiguous resource upon removal
Dawei Feng (3):
crypto: amlogic - avoid double cleanup in meson_crypto_probe()
net: ena: clean up XDP TX queues when regular TX setup fails
wifi: mac80211: fix memory leak in ieee80211_register_hw()
Deepanshu Kartikey (2):
nilfs2: reject CLEAN_SEGMENTS ioctl with out-of-range segment numbers
bpf: fix UAF by restoring RCU-delayed inode freeing in bpffs
Denis Arefev (1):
block: Avoid mounting the bdev pseudo-filesystem in userspace
Dmitry Antipov (1):
ocfs2: fix buffer head management in ocfs2_read_blocks()
Dmitry Torokhov (12):
Input: mms114 - fix multi-touch slot corruption
Input: maple_keyb - set driver data before registering input device
Input: maplemouse - set driver data before registering input device
Input: maplecontrol - set driver data before registering input device
Input: ims-pcu - fix use-after-free and double-free in disconnect
Input: ims-pcu - release data interface on disconnect
Input: ims-pcu - validate control endpoint type
Input: ims-pcu - add response length checks
Input: ims-pcu - fix DMA mapping violation in line setup
Input: ims-pcu - fix out-of-bounds read in ims_pcu_irq() debug logging
Input: ims-pcu - fix potential infinite loop in CDC union descriptor parsing
Input: ims-pcu - fix type confusion in CDC union descriptor parsing
Dmitry Vyukov (1):
firmware_loader: Fix recursive lock in device_cache_fw_images()
Douglas Anderson (1):
regulator: core: Make regulator_lock_two() logic easier to follow
Enrico Pozzobon (1):
net: usb: lan78xx: disable VLAN filter in promiscuous mode
Enzo Matsumiya (2):
smb2: small refactor in smb2_check_message()
cifs: remove unused server parameter from calc_smb_size()
Eric Biggers (7):
crypto: drbg - Fix returning success on failure in CTR_DRBG
crypto: drbg - Fix drbg_max_addtl() on 64-bit kernels
crypto: drbg - Fix the fips_enabled priority boost
crypto: af_alg - Remove zero-copy support from skcipher and aead
crypto: sun4i-ss - Remove insecure and unused rng_alg
crypto: crypto4xx - Remove insecure and unused rng_alg
crypto: hisi-trng - Remove crypto_rng interface
Eric Dumazet (15):
skmsg: convert struct sk_msg_sg::copy to a bitmap net/sched: sch_hfsc: annotate data-races in hfsc_dump_class_stats() net/sched: sch_htb: do not change sch->flags in htb_dump() net/sched: sch_htb: annotate data-races (I)
net/sched: sch_drr: annotate data-races around cl->deficit
ipv6: guard against possible NULL deref in __in6_dev_stats_get()
tipc: fix UAF in tipc_l2_send_msg()
tcp: ipv6: clamp default adverting MSS to avoid GSO_BY_FRAGS (0xFFFF)
xfrm: validate selector family and prefixlen during match
veth: fix NAPI leak in XDP enable error path
rtnetlink: change nlk->cb_mutex role
rtnetlink: add RTNL_FLAG_DUMP_UNLOCKED flag
inet: allow ip_valid_fib_dump_req() to be called with RTNL or RCU
ipv6: remove RTNL protection from inet6_dump_fib()
ipv6: mcast: Fix potential UAF in MLD delayed work
Erich E. Hoover (1):
USB: quirks: add NO_LPM for the Samsung T5 EVO Portable SSD
Fabio Porcedda (1):
USB: serial: option: add Telit Cinterion FE990D50 compositions
Fan Wu (1):
usb: typec: ucsi: ccg: Fix use-after-free of ucsi on remove
Farhad Alemi (1):
cgroup/cpuset: rebind mm mempolicy to effective_mems, not mems_allowed
Felix Gu (6):
watchdog: sprd_wdt: Remove redundant sprd_wdt_disable() on register failure
pinctrl: sunxi: fix regulator leak in sunxi_pmx_request() error path drm/tegra: dc: Fix device node reference leak in tegra_dc_has_output()
spi: ep93xx: fix double-free of zeropage on DMA setup failure
crypto: marvell/octeontx - fix DMA cleanup using wrong loop index
crypto: cavium/cpt - fix DMA cleanup using wrong loop index
Feng Wu (1):
netfilter: xt_rateest: fix u64 truncation in xt_rateest_mt()
Fernando Fernandez Mancera (7):
netfilter: nfnetlink_osf: fix mss parsing on big-endian architectures
netfilter: synproxy: protect nf_ct_seqadj_init() with conntrack lock
netfilter: nf_conncount: prevent connlimit drops for early confirmed ct
ipv6: fix error handling in disable_ipv6 sysctl
ipv6: fix error handling in ignore_routes_with_linkdown sysctl
ipv6: fix error handling in forwarding sysctl
ipv6: fix error handling in disable_policy sysctl
Filipe Manana (1):
btrfs: fix invalid pointer dereference in __btrfs_run_delayed_refs()
Florian Fuchs (2):
Input: maplemouse - fix NULL pointer dereference in open()
mtd: maps: vmu-flash: fix NULL pointer dereference in initialization
Florian Westphal (6):
netfilter: ebtables: module names must be null-terminated
netfilter: nf_conncount: callers must hold rcu read lock
netfilter: nf_reject: skip iphdr options when looking for icmp header
netfilter: nft_meta_bridge: fix NFT_META_BRI_IIFPVID stack leak
netfilter: nf_nat_sip: reload possible stale data pointer
netfilter: ebtables: zero chainstack array
Franziska Naepelt (2):
staging: rtl8723bs: Fix indentation issues
staging: rtl8723bs: Fix space issues
Fredrik M Olsson (1):
rtc: ds1307: Fix off-by-one issue with wday for rx8130
Fushuai Wang (1):
cpufreq: intel_pstate: Sync policy->cur during CPU offline
Geert Uytterhoeven (1):
firmware: arm_scmi: Fix OOB in scmi_power_name_get()
Genjian Zhang (1):
dm thin metadata: fix superblock refcount leak on snapshot shadow failure
Georgiy Osokin (1):
HID: picolcd: prevent NULL pointer dereference in picolcd_send_and_wait()
Gerald Schaefer (1):
s390/monwriter: Reject buffer reuse with different data length
Gil Portnoy (1):
ksmbd: fix use-after-free of conn->preauth_info in concurrent SMB2 NEGOTIATE
Giovanni Cabiddu (2):
crypto: qat - fix VF2PF work teardown race in adf_disable_sriov()
crypto: qat - validate RSA CRT component lengths
Gleb Markov (1):
cxgb4: Fix decode strings dump for T6 adapters
Greg Kroah-Hartman (3):
sysfs: clamp show() return value in sysfs_kf_read()
ksmbd: fix mechToken leak when SPNEGO decode fails after token alloc Linux 5.15.212
Griffin Kroah-Hartman (2):
usb: gadget: function: rndis: add length check to response query
usb: gadget: function: rndis: add length check for header
Guangshuo Li (7):
IB/mlx4: Fix refcount leak in add_port() error path
ASoC: adau1372: Clear PLL_EN on failed PLL lock without reset GPIO
ksmbd: fix use-after-free in same_client_has_lease()
staging: most: video: avoid double free on video register failure
smb: client: fix overflow in passthrough ioctl bounds check
gpu: host1x: Fix device reference leak in host1x_device_parse_dt() error path
mfd: sm501: Fix reference leak on failed device registration
Gui-Dong Han (1):
KEYS: Use acquire when reading state in keyring search
Guillermo Rodríguez (1):
i2c: stm32f7: truncate clock period instead of rounding it
Haoxiang Li (10):
usb: cdnsp: fix stream context array leak in cdnsp_alloc_stream_info()
usb: mtu3: unmap request DMA on queue failure
Input: synaptics-rmi4 - unregister function handlers on physical driver registration failure
rtc: cmos: unregister HPET IRQ handler on probe failure
net: sparx5: unregister blocking notifier on init failure
scsi: hpsa: Fix DMA mapping leak on IOACCEL2 reset path
scsi: elx: efct: Fix I/O leak on unsupported additional CDB
net: liquidio: fix BAR resource leak on PF number failure
fsl/fman: Free init resources on KeyGen failure in fman_init()
smb: client: Fix next buffer leak in receive_encrypted_standard()
Heiko Carstens (1):
s390/process: Fix kernel thread function pointer type
Hem Parekh (1):
ksmbd: fix out-of-bounds read in smb_check_perm_dacl()
Herbert Xu (2):
crypto: crypto4xx - Remove ahash-related code
crypto: rng - Free default RNG on module exit
Herman van Hazendonk (1):
iio: common: st_sensors: honour channel endianness in read_axis_data
Hui Wang (1):
ring-buffer: Fix event length with forced 8-byte alignment
Hui Zhu (1):
vmalloc: fix NULL pointer dereference in is_vm_area_hugepages()
Huihui Huang (1):
tracing: Prevent out-of-bounds read in glob matching
Huiwen He (2):
smb/client: always return a value for FS_IOC_GETFLAGS smb/client: preserve errors from smb2_set_sparse()
HyeongJun An (5):
ASoC: codecs: hdac_hdmi: Validate written enum value
ASoC: fsl: fsl_audmix: Validate written enum values
ASoC: tegra: tegra210_ahub: Validate written enum value
hwmon: (asus_atk0110) Check package count before accessing element
ALSA: seq: Fix uninitialised heap leak in snd_seq_event_dup()
Hyunwoo Kim (2):
KVM: arm64: vgic: Check the interrupt is still ours before migrating it
Bluetooth: L2CAP: Fix deadlock in l2cap_conn_del()
Ian Bridges (2):
fbcon: fix NULL pointer dereference for a console without vc_data
ocfs2: fix NULL h_transaction deref in ocfs2_assure_trans_credits
Icenowy Zheng (1):
dmaengine: qcom: gpi: set DMA_PRIVATE capability
Ido Schimmel (1):
bridge: stp: Fix a potential use-after-free when deleting a bridge
Ilpo Järvinen (6):
PCI: Prevent resource tree corruption when BAR resize fails
PCI: Free saved list without holding pci_bus_sem
PCI: Fix restoring BARs on BAR resize rollback path
PCI: Add kerneldoc for pci_resize_resource()
PCI: Move Resizable BAR code to rebar.c
serial: 8250_mid: Remove 8250_pci usage
Ioana Ciornei (1):
dpaa2-switch: fix VLAN upper check not rejecting bridge join
Ivan Abramov (1):
ieee802154: Remove WARN_ON() in cfg802154_pernet_exit()
Jacob Moroni (2):
RDMA/irdma: Fix out-of-bounds write in irdma_copy_user_pgaddrs RDMA/irdma: Fix OOB read during CQ MR registration
Jaegeuk Kim (1):
f2fs: adjust zone capacity when considering valid block count
Jaewon Yang (1):
tpm: Make the TPM character devices non-seekable
Jakob Koschel (1):
cifs: remove check of list iterator against head past the loop body
Jakub Kicinski (1):
net: psample: fix info leak in PSAMPLE_ATTR_DATA
Jamal Hadi Salim (1):
net/sched: cls_api: Handle TC_ACT_CONSUMED in tcf_qevent_handle
James Kim (1):
char: tlclk: fix use-after-free in tlclk_cleanup()
James Raphael Tiovalen (1):
macsec: fix promiscuity refcount leak in macsec_dev_open()
Jann Horn (2):
proc: protect ptrace_may_access() with exec_update_lock (FD links)
proc: protect ptrace_may_access() with exec_update_lock (part 1)
Jared Baldridge (1):
usb: cdc_acm: Add quirk for Uniden BC125AT scanner
Jason Gunthorpe (4):
IB/cm: Fix av cm device leak on an error path in cm_init_av_by_path() IB/mlx5: Don't take the rereg_mr fallback without a new translation IB/mlx5: Properly support implicit ODP rereg_mr
IB/mlx4: Fill in the access_flags if IB_MR_REREG_ACCESS is not specified
Javier Carrasco (1):
iio: light: veml6030: fix channel type when pushing events
Jean-Baptiste Maneyrol (10):
iio: imu: inv_icm42600: make timestamp module chip independent
iio: move inv_icm42600 timestamp module in common
iio: make invensense timestamp module generic
iio: imu: inv_mpu6050: use the common inv_sensors timestamp module
iio: invensense: fix timestamp glitches when switching frequency
iio: imu: inv_icm42600: stabilized timestamp in interrupt
iio: imu: inv_icm42600: fix timestamping by limiting FIFO reading
iio: imu: inv_mpu6050: fix frequency setting when chip is off
iio: invensense: fix odr switching to same value
iio: imu: inv_icm42600: fix timestamp clock period by using lower value
Jeff Layton (1):
nfsd: reset write verifier on deferred writeback errors
Jeremy Linton (1):
ACPI: CPPC: Suppress UBSAN warning caused by field misuse
Jessica Zhang (2):
drm/msm/dp: fix HPD state status bit shift value drm/msm/dp: Fix the ISR_* enum values
Jiakai Xu (1):
PM: sleep: Use complete() in device_pm_sleep_init()
Jiapeng Chong (2):
xfs: Remove redundant assignment of mp
xfs: Remove dead code
Jiasheng Jiang (1):
clk: imx: Add check for kcalloc
Jiayuan Chen (1):
net/sched: cls_bpf: prevent unbounded recursion in offload rollback
Jihed Chaibi (1):
ARM: dts: am335x-sl50: Fix audio bitclock and frame master endpoint
Jimmy Hu (1):
usb: gadget: udc: Fix use-after-free in gadget_match_driver
Jiri Slaby (SUSE) (1):
PCI: controller: Use dev_fwnode() instead of of_fwnode_handle()
Joanne Koong (1):
fuse: re-lock request before returning from fuse_ref_folio()
Johan Hovold (22):
i2c: core: fix irq domain leak on adapter registration failure
i2c: core: fix hang on adapter registration failure
i2c: core: fix NULL-deref on adapter registration failure
i2c: core: fix adapter debugfs creation
i2c: core: fix adapter registration race
Bluetooth: btusb: fix use-after-free on registration failure
Bluetooth: btusb: fix use-after-free on marvell probe failure
Bluetooth: btusb: fix wakeup source leak on probe failure
virtio-mmio: fix device release warning on module unload
USB: idmouse: fix use-after-free on disconnect race
USB: ldusb: fix use-after-free on disconnect race
USB: iowarrior: fix use-after-free on disconnect
USB: legousbtower: fix use-after-free on disconnect race
USB: serial: keyspan_pda: fix information leak
USB: serial: digi_acceleport: fix broken rx after throttle
USB: serial: digi_acceleport: fix hard lockup on disconnect
USB: serial: digi_acceleport: fix write buffer corruption
USB: ulpi: fix memory leak on registration failure
i2c: core: fix adapter deregistration race
MIPS: ip22-gio: fix gio device memory leak
MIPS: ip22-gio: fix kfree() of static object
MIPS: ip22-gio: fix device reference leak in probe
John Johansen (1):
apparmor: fix label can not be immediately before a declaration
Joseph Qi (1):
ocfs2: fix race between ocfs2_control_install_private() and ocfs2_control_release()
Joshua Crofts (5):
iio: light: opt3001: fix missing state reset on timeout
iio: light: si1133: reset counter to prevent race condition
iio: light: si1133: prevent race condition on timeout
iio: magnetometer: ak8975: fix potential kernel stack memory leak
hwmon: (ltc2992) add missing 'select REGMAP_I2C' to Kconfig
Jozsef Kadlecsik (1):
netfilter: ipset: fix order of kfree_rcu() and rcu_assign_pointer()
Julian Anastasov (2):
ipvs: ensure inner headers in ICMP errors are in headroom
ipvs: fix more places with wrong ipv6 transport offsets
Junrui Luo (2):
jbd2: fix integer underflow in jbd2_journal_initialize_fast_commit() powerpc/spufs: fix out-of-bounds access in spufs_mem_mmap_access()
Keenan Dong (1):
rtmutex: Use waiter::task instead of current in remove_waiter()
Keshav Verma (1):
f2fs: fix listxattr handling of corrupted xattr entries
Kiryl Shutsemau (1):
userfaultfd: gate must_wait writability check on pte_present()
Koichiro Den (3):
NTB: epf: Avoid calling pci_irq_vector() from hardirq context
NTB: epf: Fix request_irq() unwind in ntb_epf_init_isr()
NTB: epf: Make db_valid_mask cover only real doorbell bits
Konstantin Komarov (3):
fs/ntfs3: bound DeleteIndexEntryAllocation memmove length fs/ntfs3: bound attr_off in UpdateResidentValue against data_off fs/ntfs3: validate lcns_follow in log_replay conversion
Krzysztof Kozlowski (2):
nfc: llcp: protect nfc_llcp_sock_unlink() calls
crypto: atmel-sha204a - Mark OF related data as maybe unused
Krzysztof Wilczyński (3):
alpha/PCI: Add security_locked_down() check to pci_mmap_resource() alpha/PCI: Fix __pci_mmap_fits() overflow for zero-length BARs
proc: only bump parent nlink when registering directories
Kumar Kartikeya Dwivedi (1):
bpf: Convert lpm_trie.c to rqspinlock
Kunihiko Hayashi (1):
spi: uniphier: Fix completion initialization order before devm_request_irq()
Kuniyuki Iwashima (3):
net: fib_rules: Don't dump dying fib_rule in fib_rules_dump().
ipv4: fib: Don't ignore error route in local/main tables.
ipv6: mcast: Replace locking comments with lockdep annotations.
Kyle Zeng (2):
ALSA: seq: Clear variable event pointer on read
ocfs2: avoid moving extents to occupied clusters
Lad Prabhakar (1):
PCI: rcar-host: Remove unused LIST_HEAD(res)
Lars Pöschel (1):
spi: xilinx: use FIFO occupancy register to determine buffer size
Lars-Peter Clausen (1):
iio: event: Fix event FIFO reset race
Laxman Acharya Padhya (1):
Bluetooth: btrtl: validate firmware patch bounds
Lee Jones (1):
HID: core: Fix OOB read in hid_get_report for numbered reports
Leo Yan (1):
coresight: etm4x: Correct TRCVMIDCCTLR1 save and restore
Leon Hwang (1):
bpf: Update transport_header when encapsulating UDP tunnel in lwt
Li RongQing (3):
PCI: mediatek: Fix operator precedence in PCIE_FTS_NUM_L0 macro net/mlx5: Fix L3 tunnel entropy refcount leak
fbdev: sm712: Fix operator precedence in big_swap macro
Lianfa Weng (1):
RDMA/hns: Fix warning in poll cq direct mode
Lifeng Zheng (1):
cpufreq: conservative: Simplify frequency limit handling
Lin He (2):
drm/hisilicon/hibmc: move display contrl config to hibmc_probe() drm/hisilicon/hibmc: use clock to look up the PLL value
Linmao Li (1):
ipv6: addrconf: bail out of dad_failure when state is no longer POSTDAD
Liviu Stan (2):
iio: temperature: ltc2983: Fix reinit_completion() called after conversion start
iio: temperature: ltc2983: Fix n_wires default bypassing rotation check
Longjun Tang (1):
virtio_net: disable cb when NAPI is busy-polled
Lorenzo Bianconi (1):
xdp: introduce flags field in xdp_buff/xdp_frame
Lothar Rubusch (1):
crypto: atmel-sha204a - fix blocking and non-blocking rng logic
Louis Scalbert (1):
bonding: 3ad: fix mux port state on oper down
Luca Leonardo Scorcia (2):
pinctrl: mediatek: mt8516: Fix Schmitt trigger register offset of pins 34-39
pinctrl: mediatek: mt8167: Fix Schmitt trigger register offset of pins 34-39
Luiz Augusto von Dentz (2):
Bluetooth: L2CAP: Fix not tracking outstanding TX ident
Bluetooth: L2CAP: Fix regressions caused by reusing ident
Lukas Wunner (1):
X.509: Fix validation of ASN.1 certificate header
Maciej W. Rozycki (3):
MIPS: Fix big-endian stack argument fetching in o32 wrapper
MIPS: DEC: Remove do_IRQ() call indirection
MIPS: DEC: Ensure 32-bit stack location for o32 prom_printf()
Madhu M (1):
usb: typec: ucsi: Pass full DP config payload in SET_NEW_CAM for DP alt mode
Maher Sanalla (1):
RDMA/mlx5: Fix undefined shift of user RQ WQE size
Mahesh Vaidya (2):
PCI: altera: Do not dispose parent IRQ mapping
PCI: altera: Fix resource leaks on probe failure
Manish Khadka (1):
HID: appleir: fix UAF on pending key_up_timer in remove()
Manivannan Sadhasivam (4):
PCI: mediatek: Use actual physical address instead of virt_to_phys()
PCI: endpoint: pci-epf-vntb: Add check to detect 'db_count' value of 0
PCI: endpoint: pci-epf-ntb: Add check to detect 'db_count' value of 0
PCI: mediatek: Fix IRQ domain leak when port fails to enable
Maoyi Xie (12):
net: ip_gre: require CAP_NET_ADMIN in the device netns for changelink
ALSA: caiaq: fix out-of-bounds read in the Traktor Kontrol S4 input parser
ALSA: firewire: isight: bound the sample count to the packet payload
HID: lg-g15: cancel pending work on remove to fix a use-after-free
net: usb: kalmia: bound RX frame length in kalmia_rx_fixup()
usb: gadget: composite: fix dead empty check in the USB_DT_OTG handler
xfrm: xfrm_interface: require CAP_NET_ADMIN in the device netns for changelink
net: sit: require CAP_NET_ADMIN in the device netns for changelink
net: ip6_vti: require CAP_NET_ADMIN in the device netns for changelink
net: ip_vti: require CAP_NET_ADMIN in the device netns for changelink
net: ip6_gre: require CAP_NET_ADMIN in the device netns for changelink
memstick: ms_block: reject a card that reports too many blocks
Marc Zyngier (1):
KVM: Move kvm_io_bus_get_dev() locking responsibilities to callers
Marco Nenciarini (1):
PCI: Skip Resizable BAR restore on read error
Martin Kaiser (2):
tracing: probes: fix typo in a log message
tracing: eprobe: read the complete FILTER_PTR_STRING pointer
Martin Wilck (2):
scsi: Revert "scsi: Fix sas_user_scan() to handle wildcard and multi-channel scans"
scsi: smartpqi: Use shost_to_hba() in pqi_scan_finished()
Masami Hiramatsu (Google) (2):
tracing/events: Fix to check the simple_tsk_fn creation tracing/probes: Fix double addition of offset for @+FOFFSET
Matthias Feser (1):
serial: 8250_omap: clear rx_running on zero-length DMA completes
Matti Vaittinen (1):
hwmon: adm1275: Prevent reading uninitialized stack
Matvey Kovalev (2):
afs: fix NULL pointer dereference in afs_get_tree()
qede: fix out-of-bounds check for cqe->len_list[]
Mauricio Faria de Oliveira (1):
usb: atm: ueagle-atm: wait for pre-firmware load in .disconnect()
Maxime Bélair (1):
apparmor: fix potential UAF in aa_replace_profiles
Maxwell Doose (4):
iio: adc: lpc32xx: Initialize completion before requesting IRQ
iio: adc: spear: Initialize completion before requesting IRQ
iio: chemical: scd30: Cleanup initializations and fix sign-extension bug
fs: efs: remove unneeded debug prints
Michael Bommarito (21):
NFSv4/flexfiles: reject zero filehandle version count
hwrng: virtio: clamp device-reported used.len at copy_data()
udf: validate free block extents against the partition length RDMA/siw: bound Read Response placement to the RREAD length
tipc: require net admin for TIPCv2 netlink mutators
tipc: prevent snt_unacked underflow on CONN_ACK
tipc: reject inverted service ranges from peer bindings
net: qrtr: fix 32-bit integer overflow in qrtr_endpoint_post() fs/ntfs3: add depth limit to indx_find_buffer to prevent stack overflow fs/ntfs3: bound NTFS_DE view.data_off in UpdateRecordData{Root,Allocation}
ntfs3: cap RESTART_TABLE free-chain walker at rt->used
ntfs3: bound to_move in indx_insert_into_root before hdr_insert_head
ocfs2: reject dinodes with non-canonical i_mode type
ocfs2: reject dinodes whose i_rdev disagrees with the file type
ocfs2: reject non-inline dinodes with i_size and zero i_clusters
scsi: xen: scsiback: Free the command tag on the TMR submit-failure path
scsi: xen: scsiback: Free unsubmitted command instead of double-putting it
ieee802154: admin-gate legacy LLSEC dump operations
ieee802154: allow legacy LLSEC ADD/DEL ops to pass strict validation
drbd: reject data replies with an out-of-range payload size
smb: client: resolve SWN tcon from live registrations
Mike Snitzer (2):
NFSv4/flexfiles: honor FF_FLAGS_NO_IO_THRU_MDS on fatal DS connect errors NFSv4/flexfiles: honor FF_FLAGS_NO_IO_THRU_MDS in pg_get_mirror_count_write
Mikhail Gavrilov (1):
udmabuf: fix DMA direction mismatch in release_udmabuf()
Mikko Perttunen (1):
drm/tegra: Fix iommu_map_sgtable() return value check
Mikulas Patocka (6):
dm-ioctl: report an error if a device has no table
dm-bufio: fix wrong count calculation in dm_bufio_issue_discard
dm-stats: fix dm_jiffies_to_msec64
dm-stats: fix merge accounting
dm_early_create: fix freeing used table on dm_resume failure
dm-verity: increase sprintf buffer size
Ming-Hung Tsai (1):
dm thin metadata: fix metadata snapshot consistency on commit failure
Mingyu Wang (1):
fbdev: fbcon: fix out-of-bounds read in err_out of fbcon_do_set_font()
Miquel Raynal (1):
mtd: spi-nor: Drop duplicate Kconfig dependency
Muhammad Bilal (2):
Bluetooth: L2CAP: validate option length before reading conf opt value
netfilter: nf_conntrack_irc: fix parse_dcc() off-by-one OOB read
Muhammet Kaan KILINÇ (1):
crypto: algif_skcipher - force synchronous processing on trees without ctx->state
Myeonghun Pak (4):
HID: wacom: stop hardware after post-start probe failures
usb: sl811-hcd: disable controller wakeup on remove
USB: misc: uss720: unregister parport on probe failure
ata: sata_gemini: unwind clocks on IDE pinctrl errors
Namjae Jeon (2):
ksmbd: fix use-after-free in __ksmbd_close_fd() via durable scavenger
ksmbd: track the connection owning a byte-range lock
NeilBrown (2):
nfsd: move name lookup out of nfsd4_list_rec_dir()
nfsd: change nfs4_client_to_reclaim() to allocate data
Neill Kapron (1):
usb: gadget: f_fs: Tie read_buffer lifetime to ffs_epfile
Nickolay Goppen (1):
arm64: dts: qcom: sdm630: describe adsp_mem region properly
Nikolay Kulikov (1):
staging: rtl8723bs: fix spaces around binary operators
Nilay Shroff (1):
nvme-multipath: fix flex array size in struct nvme_ns_head
Norbert Manthey (1):
smb: client: mask server-provided mode to 07777 in modefromsid
Nuno Sá (1):
dmaengine: Fix possible use after free
Nuoqi Gui (2):
bpf: Fix stack slot index in nospec checks
seg6: validate SRH length before reading fixed fields
Oliver Hartkopp (3):
can: isotp: use unconditional synchronize_rcu() in isotp_release()
can: bcm: fix lockless bound/ifindex race and silent RX_SETUP failure
can: bcm: add missing rcu list annotations and operations
Oliver Neukum (1):
usb: iowarrior: remove inherent race with minor number
Pablo Neira Ayuso (2):
netfilter: nf_tables: restore set elements when delete set fails
netfilter: conntrack: call nf_ct_gre_keymap_destroy() if master helper is pptp
Patrisious Haddad (1):
RDMA/mlx5: Remove raw RSS QP restrack tracking
Paul Louvel (1):
crypto: talitos - use dma_sync_single_for_cpu() before reading descriptor header
Pauli Virtanen (3):
Bluetooth: ISO: exclude RFU bits from ISO_SDU_Length
Bluetooth: SCO: fix sleeping under spinlock in sco_conn_ready
Bluetooth: SCO: hold sk properly in sco_conn_ready
Pedro Tammela (1):
net/sched: act_pedit: use NLA_POLICY for parsing 'ex' keys
Pengfei Zhang (1):
ipv6: fib6: fix NULL deref in fib6_walk_continue() on multi-batch dump
Pengjie Zhang (2):
cpufreq: Documentation: fix sampling_down_factor range
cpufreq: Documentation: fix conservative governor freq_step description
Pengpeng Hou (13):
iio: adc: ti-ads124s08: Return reset GPIO lookup errors
evm: terminate and bound the evm_xattrs read buffer
sparc: led: avoid trimming a newline from empty writes
spi: sh-msiof: abort transfers when reset times out
gpio: mvebu: fail probe if gpiochip registration fails
gpio: htc-egpio: use managed gpiochip registration
hwmon: (w83627hf) remove VID sysfs files on error and remove
hwmon: (w83793) remove vrm sysfs file on probe failure
mtd: onenand: samsung: report DMA completion timeouts
mtd: mchp23k256: use SPI match data for chip caps
mtd: rawnand: fsl_ifc: return errors for failed page reads
mtd: rawnand: lpc32xx_mlc: fail DMA transfers on timeout
mtd: rawnand: lpc32xx_slc: fail DMA transfer on completion timeout
Phillip Varney (1):
clk: qcom: a53: Corrected frequency multiplier for 1152MHz
Prathamesh Deshpande (1):
RDMA/mlx5: Fix devx subscribe-event unwind NULL dereference
Qianfeng Rong (1):
netfilter: ebtables: Use vmalloc_array() to improve code
Qihang (1):
gue: validate REMCSUM private option length
Qihang Tang (2):
vduse: hold vduse_lock across IDR lookup in open path vhost/vdpa: validate virtqueue index in mmap and fault paths
Qu Wenruo (3):
btrfs: do not trim a device which is not writeable
btrfs: fix false IO failure after falling back to buffered write
btrfs: fix incorrect buffered IO fallback for append direct writes
Rafael Beims (1):
wifi: mwifiex: fix permanently busy scans after multiple roam iterations
Rafael J. Wysocki (4):
thermal: hwmon: Fix critical temperature attribute removal x86/platform/olpc: xo15: Drop wakeup source on driver removal platform/x86: xo15-ebook: Fix wakeup source and GPE handling
ACPI: NFIT: core: Fix acpi_nfit_init() error cleanup
Rakesh Babu (1):
octeontx2-af: debugfs: Add channel and channel mask.
Ranjan Kumar (1):
Input: elan_i2c - prevent division by zero and arithmetic underflow
Ratheesh Kannoth (8):
PCI: host-common: Request bus reassignment when not probe-only
octeontx2-pf: Fix leak of SQ timestamp buffer on teardown
octeontx2-af: Use hashed field in MCAM key
octeontx2-af: Exact match support
octeontx2-af: Exact match scan from kex profile
octeontx2-af: devlink configuration support
octeontx2-af: FLR handler for exact match table.
octeontx2-af: Drop rules for NPC MCAM
Renjiang Han (3):
media: qcom: venus: drop extra padding in NV12 raw size calculation
media: qcom: venus: relax encoder frame/blur dimension steps on v4
media: qcom: venus: relax encoder frame/blur step size on v6
Ricardo Neri (1):
thermal: intel: Fix dangling resources on thermal_throttle_online() failure
Ricardo Ribalda (3):
media: staging: ipu3-imgu: Add range check for imgu_css_cfg_acc_stripe
media: uvcvideo: Avoid partial metadata buffers
media: uvcvideo: Fix buffer sequence in frame gaps
Ricardo Robaina (2):
audit: add audit_log_nf_skb helper function
audit: fix potential integer overflow in audit_log_n_hex()
Richard Zhu (1):
PCI: imx6: Fix IMX6SX_GPR12_PCIE_TEST_POWERDOWN handling
Rodrigo Lugathe da Conceição Alves (1):
USB: core: add USB_QUIRK_NO_LPM for VIA Labs USB 2.0 hub
Roman Vivchar (1):
i2c: mediatek: fix WRRD for SoCs without auto_restart option
Ronaldo Nunez (1):
pwm: imx27: Fix variable truncation in .apply()
Ronan Dalton (1):
rtc: ds1307: handle oscillator stop flag for ds1337/ds1339/ds3231
Ronnie Sahlberg (1):
cifs: Create a new shared file holding smb2 pdu definitions
Rosen Penev (4):
mips: ralink: mt7621: add missing __iomem
mips: n64: add __iomem for writel call
HID: logitech-hidpp: remove excess kernel-doc member in hidpp_scroll_counter
net: gianfar: dispose irq mappings on probe failure and device removal
Rui Qi (1):
riscv: stacktrace: Remove bogus -0x4 offset in non-FP walk_stackframe
Ruijie Li (1):
crypto: pcrypt - restore callback for non-parallel fallback
Ruipeng Qi (1):
f2fs: fix potential deadlock in f2fs_balance_fs()
Runyu Xiao (12):
iio: imu: bmi160: add IRQF_NO_THREAD to data-ready trigger IRQ
usb: dwc3: run gadget disconnect from sleepable suspend context
gpio: eic-sprd: use raw_spinlock_t in the irq startup path io_uring/io-wq: re-check IO_WQ_BIT_EXIT for each linked work item
kcm: use WRITE_ONCE() when changing lower socket callbacks
netfilter: nft_synproxy: stop bypassing the priv->info snapshot
wifi: rt2x00: avoid full teardown before work setup in probe
mmc: vub300: defer reset until cmd_mutex is unlocked
iio: imu: adis: add IRQF_NO_THREAD to non-FIFO trigger IRQ
coresight: etb10: restore atomic_t for shared reading state
gpio: sch: use raw_spinlock_t in the irq startup path
Bluetooth: L2CAP: cancel pending_rx_work before taking conn->lock
Ruoyu Wang (3):
apparmor: check label build before no_new_privs test
net: sungem: fix probe error cleanup
mtd: slram: remove failed entries from the device list
Ruslan Valiyev (1):
apparmor: fix use-after-free in rawdata dedup loop
Ryan Lee (1):
apparmor: grab ns lock and refresh when looking up changehat child profiles
Ryder Lee (1):
PCI: mediatek: Fix possible truncation in mtk_pcie_parse_port()
Sagi Grimberg (1):
pNFS/filelayout: fix cheking if a layout is striped
Sam Day (1):
usbip: vudc: fix NULL deref in vep_dequeue()
Samuel Holland (2):
media: cedrus: Fix failure to clean up hardware on probe failure
bus: sunxi-rsb: Always check register address validity
Samuel Moelius (3):
net/sched: hhf: clear heavy-hitter state on reset net/sched: cake: reject overhead values that underflow length dm era: fix out-of-bounds memory access for non-zero start sector
Samuel Page (1):
tipc: fix out-of-bounds read in broadcast Gap ACK blocks
Sandipan Das (1):
perf/x86/amd/core: Always use the NMI latency mitigation
Sang-Heon Jeon (1):
mm/fake-numa: fix under-allocation detection in uniform split
Sanjay Chitroda (1):
iio: accel: mma8452: handle I2C read error(s) in mma8452_read()
Sanman Pradhan (1):
xfrm: use compat translator only for u64 alignment mismatch
Sara Venkatesh (1):
RDMA/srpt: fix integer overflow in immediate data length check
Sayali Patil (2):
selftests/mm: clarify alternate unmapping in compaction_test selftests/mm: allow PUD-level entries in compound testcase of hmm tests
Sean Christopherson (4):
KVM: Replace guest-triggerable BUG_ON() in ioeventfd datamatch with get_unaligned()
KVM: VMX: Grab vmcs12 on CR8 interception update iff vCPU is in guest mode iommu/amd: Fix a stale comment about which legacy mode is user visible
crypto: ccp - Treat zero-length cert chain as query for blob lengths
Sebastian Andrzej Siewior (1):
net: Drop the lock in skb_may_tx_timestamp()
Sechang Lim (2):
bpf, sockmap: fix integer overflow in bpf_msg_pop_data() bounds check net/sched: act_bpf: use rcu_dereference_bh() to read the filter
Seungjin Bae (2):
usb: host: max3421: Fix shift-out-of-bounds in max3421_hub_control()
usb: host: max3421: Reject hub port requests for non-existent ports
Sevinj Aghayeva (2):
staging: rtl8723bs: Remove redundant else branches.
staging: rtl8723bs: remove redundant braces in if statements
Shigeru Yoshida (1):
qede: fix off-by-one in BD ring consumption on build_skb failure
Shitalkumar Gandhi (2):
ieee802154: ca8210: fix cas_ctl leak on spi_async failure
ieee802154: ca8210: fix pointer truncation in kfifo on 64-bit
Shivam Kumar (1):
nvmet-tcp: check INIT_FAILED before nvmet_req_uninit in digest error path
Shoichiro Miyamoto (1):
smb: client: restrict implied bcc[0] exemption to responses without data area
Shuangpeng Bai (1):
llc: fix SAP refcount leak in llc_ui_autobind()
Siddharth Vadapalli (1):
soc: ti: k3-ringacc: Fix access mode for k3_ringacc_ring_pop_tail_io/proxy
Srinivas Pandruvada (1):
HID: sensor-hub: Add sensor_hub_input_attr_read_values() for multi-byte reads
Srinivasan Shanmugam (1):
drm/amd/display: Add missing kdoc for ALLM parameters
Stepan Ionichev (4):
iio: gyro: bmg160: bail out when bandwidth/filter is not in table
iio: gyro: bmg160: wait full startup time after mode change at probe
iio: light: tsl2591: return actual error from probe IRQ failure device property: fix fwnode reference leak in fwnode_graph_get_endpoint_by_id()
Stephan Gerhold (1):
serial: msm: Disable DMA for kernel console UART
Steven Rostedt (1):
sched/rt: Have RT_PUSH_IPI be default off for non PREEMPT_RT
Sudeep Holla (1):
firmware: arm_scmi: Read sensor config as 32-bit value
Suman Ghosh (3):
octeontx2-af: Allow mkex profile without DMAC and add L2M/L2B header extraction support
octeontx2-pf: Add additional checks while configuring ucast/bcast/mcast rules
octeontx2-pf: check DMAC extraction support before filtering
Sun Jian (1):
bpf: Run generic devmap egress prog on private skb
Sunmin Jeong (1):
f2fs: fix to round down start offset of fallocate for pin file
Sven Eckelmann (14):
batman-adv: gw: acquire ethernet header only after skb realloc
batman-adv: access unicast_ttvn skb->data only after skb realloc
batman-adv: dat: acquire ARP hw source only after skb realloc
batman-adv: bla: reacquire gw address after skb realloc
batman-adv: dat: ensure accessible eth_hdr proto field
batman-adv: dat: fix tie-break for candidate selection
batman-adv: tt: avoid request storms during pending request
batman-adv: fix VLAN priority offset
batman-adv: frag: free unfragmentable packet
batman-adv: frag: fix primary_if leak on failed linearization
batman-adv: tt: prevent TVLV OOB check overflow
batman-adv: retrieve ethhdr after potential skb realloc on RX
batman-adv: ensure minimal ethernet header on TX
batman-adv: clean untagged VLAN on netdev registration failure
Sven Püschel (1):
media: rockchip: rga: fix too small buffer size
Takashi Iwai (5):
ALSA: seq: Introduce SNDRV_SEQ_IOCTL_USER_PVERSION ioctl
ALSA: seq: Add UMP support
ALSA: seq: Avoid confusion of aligned read size
ALSA: seq: Skip event type filtering for UMP events
ALSA: seq: Check UMP support for midi_version change
Tao Liu (1):
riscv: Prevent NULL pointer dereference in machine_kexec_prepare()
Tetsuo Handa (1):
ocfs2: kill osb->system_file_mutex lock
Thomas Gleixner (2):
debugobjects: Plug race against a concurrent OOM disable
treewide: Switch/rename to timer_delete[_sync]()
Thomas Weißschuh (1):
proc: use generic setattr() for /proc/$PID/net
Thorsten Blum (7):
crypto: caam - use print_hex_dump_devel to guard key hex dumps
crypto: caam - use print_hex_dump_devel to guard key hex dumps again
crypto: ecrdsa - fix unknown OID check in ecrdsa_param_curve x86/boot: Validate console=uart8250 baud rate to fix early boot hang x86/boot: Reject too long acpi_rsdp= values
tpm: fix event_size output in tpm1_binary_bios_measurements_show
crypto: atmel-sha204a - drop hwrng quality reduction for ATSHA204A
Tianxiang Chen (1):
cpufreq: Fix hotplug-suspend race during reboot
Timur Tabi (2):
drm/nouveau/bios: specify correct display fuse register for Ampere and Ada
regulator: core: regulator_lock_two() should test for EDEADLK not EDEADLOCK
Tomi Valkeinen (1):
drm/tidss: Drop extra drm_mode_config_reset() call
Tristan Madani (7):
hfs/hfsplus: zero-initialize buffer in hfs_bnode_read
wifi: rtw88: fix OOB read from firmware RX descriptor exceeding DMA buffer
wifi: ath9k: fix OOB access from firmware tx status queue ID
wifi: wcn36xx: fix OOB read from firmware count in PRINT_REG_INFO indication
ntfs3: fix out-of-bounds read in decompress_lznt
ocfs2: use kzalloc for quota recovery bitmap allocation hfs/hfsplus: fix u32 overflow in check_and_correct_requested_length
Trung Nguyen (1):
HID: multitouch: fix out-of-bounds bit access on mt_io_flags
Tudor Ambarus (1):
dma-buf: remove unused dma-fence-unwrap.c (stable/linux-5.15.y only)
Tyler Baker (1):
usb: gadget: f_fs: initialize reset_work at allocation time
Tyler Hicks (Microsoft) (1):
proc: Move fdinfo PTRACE_MODE_READ check into the inode .permission operation
Uwe Kleine-König (6):
slimbus: Convert to platform remove callback returning void drm/i2c/sil164: Drop no-op remove function
leds: lm3697: Remove duplicated error reporting in .remove()
leds: lm3601x: Improve error reporting for problems during .remove()
gpio: pca953x: Make platform teardown callback return void
crypto: atmel - Drop explicit initialization of struct i2c_device_id::driver_data to 0
Vasiliy Kovalev (1):
net/9p: fix infinite loop in p9_client_rpc on fatal signal
Viacheslav Dubeyko (1):
hfs/hfsplus: prevent getting negative values of offset/length
Victor Nogueira (3):
net/sched: sch_hfsc: Don't make class passive twice
net/sched: sch_fq_codel: Do not call qdisc_tree_reduce_backlog during peek before restoring qlen net/sched: sch_codel: Do not call qdisc_tree_reduce_backlog during peek before restoring qlen
Vidhu Sarwal (1):
iio: light: al3010: fix incorrect scale for the highest gain range
Vlad Poenaru (1):
bpf: Allow LPM map access from sleepable BPF programs
Vladimir Oltean (1):
net: dsa: tag_ksz: do not rely on skb_mac_header() in TX paths
Vladimir Zapolskiy (1):
gpio: timberdale: Return -ENOMEM on dynamic memory allocation in probe
Wang Jun (1):
soc: fsl: qe: panic on ioremap() failure in qe_reset()
Wang Yan (1):
time: Fix off-by-one in compat settimeofday() usec validation
Weili Qian (1):
crypto: hisilicon/qm - disable error report before flr
Weiming Shi (5):
xfs: fail recovery on a committed log item with no regions
crypto: asymmetric_keys - fix OOB read in pefile_digest_pe_contents bpf, sockmap: reject overflowing copy + len in bpf_msg_push_data()
Bluetooth: bpa10x: avoid OOB read of revision string in bpa10x_setup()
sctp: validate STALE_COOKIE cause length before reading staleness
WenTao Liang (4):
posix-cpu-timers: Fix pid refcount leak in do_cpu_nanosleep() error path
usb: dwc3: meson-g12a: fix refcount leak in dwc3_meson_g12a_resume()
power: supply: charger-manager: fix refcount leak in is_full_charged()
scsi: elx: efct: Fix refcount leak in efct_hw_io_abort()
Wenjie Qi (2):
f2fs: validate compress cache inode only when enabled
f2fs: validate orphan inode entry count
Wentao Liang (4):
mlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace() xen/gntdev: fix error handling in ioctl
ata: pata_pxa: Fix DMA channel leak on probe error
regulator: scmi: fix of_node refcount leak in scmi_regulator_probe()
William Hansen-Baird (1):
staging: rtl8723bs: core: move constants to right side in comparison
Wolfram Sang (1):
hwspinlock: qcom: avoid uninitialized struct members
Woojin Ji (1):
bpftool: Use libbpf error code for flow dissector query
Wyatt Feng (5):
net: ipv4: bound TCP reordering sysctl writes and MTU probe sizes
netfilter: xt_u32: reject invalid shift counts
netfilter: xt_connmark: reject invalid shift parameters
netfilter: xt_cluster: reject template conntracks in hash match
netfilter: xt_nat: reject unsupported target families
Xiang Mei (11):
netfilter: ipset: fix race between dump and ip_set_list resize
netfilter: ebtables: terminate table name before find_table_lock()
bridge: cfm: reject invalid CCM interval at configuration time drm/edid: fix OOB read in drm_parse_tiled_block()
ipv6: Fix null-ptr-deref in fib6_nh_mtu_change().
net, bpf: check master for NULL in xdp_master_redirect()
usbnet: gl620a: fix out-of-bounds read in genelink_rx_fixup()
net: usb: net1080: validate packet_len before pad-byte access in rx_fixup
net: qualcomm: rmnet: validate MAP frame length before ingress parsing net/smc: fix UAF in smc_cdc_rx_handler() by pinning the socket
netfilter: nf_conntrack_reasm: guard mac_header adjustment after IPv6 defrag
Xiang Mei (Microsoft) (1):
netfilter: bridge: fix stale prevhdr pointer in br_ip6_fragment()
Xin Long (2):
sctp: validate embedded address parameter length
sctp: hold socket lock when dumping endpoints in sctp_diag
Xingjing Deng (1):
kconfig: fix potential NULL pointer dereference in conf_askvalue
Xu Rao (3):
USB: storage: include US_FL_NO_SAME in quirks mask
USB: usb-storage: ene_ub6250: restore media-ready check
scsi: sg: Report request-table problems when any status is set
Xuanqiang Luo (2):
i2c: mlxbf: Fix use-after-free in mlxbf_i2c_init_resource()
llc: fix SAP refcount leak when creating incoming sockets
Yadan Fan (1):
MIPS: mm: Fix out-of-bounds write in maar_res_walk()
Yichong Chen (2):
usbip: tools: support SuperSpeedPlus devices tools/mm/slabinfo: fix total_objects attribute name
Yiming Qian (1):
net: skmsg: preserve sg.copy across SG transforms
Yingchao Deng (1):
coresight: cti: Fix DT filter signals silently ignored
Yingjie Gao (1):
watchdog: sp5100_tco: Use EFCH MMIO for newer Hygon FCH
Yizhou Zhao (8):
6lowpan: fix NHC entry use-after-free on error path net/9p: fix race condition on rdma->state in trans_rdma.c
ipvs: pass parsed transport offset to state handlers
ipvs: use parsed transport offset in TCP state lookup
ipvs: fix PMTU for GUE/GRE tunnel ICMP errors
netfilter: nf_conncount: fix zone comparison in tuple dedup
ipvs: use parsed transport offset in SCTP state lookup
ipvs: reset full ip_vs_seq structs in ip_vs_conn_new
Yong Wang (1):
net: ife: require ETH_HLEN to be pullable in ife_decode()
Yonghong Song (1):
selftests/bpf: Fix bpf_iter/task_vma test
Yousef Alhouseen (4):
Bluetooth: bnep: pin L2CAP connection during netdev registration
Bluetooth: fix UAF in bt_accept_dequeue()
mac802154: remove interfaces with RCU list deletion
xfs: use null daddr for unset first bad log block
Yuho Choi (7):
cpufreq: pcc: fix use-after-free and double free in _OSC evaluation drm/radeon: fix memory leak in radeon_ring_restore() on lock failure
ARM: imx3: Fix CCM node reference leak
ARM: imx31: Fix IIM mapping leak in revision check
ACPI: IPMI: Fix message kref handling on dead device
watchdog: unregister PM notifier on watchdog unregister irqchip/gic-v3-its: Fix OF node reference leak
Yun Zhou (1):
net: mvneta: re-enable percpu interrupt on resume
Yunpeng Tian (1):
fs/ntfs3: validate Dirty Page Table capacity in log_replay copy_lcns
Yuyang Huang (1):
ipv4: igmp: remove multicast group from hash table on device destruction
Zhan Xusheng (2):
fs/ntfs3: fix syncing wrong inode on DIRSYNC cross-directory rename
posix-cpu-timers: Use u64 multiplication in update_rlimit_cpu()
Zhang Cen (3):
ocfs2: rebase copied fsdlm LVB pointers in locking_state
ocfs2: reject FITRIM ranges shorter than a cluster ocfs2/dlm: require a ref for locking_state debugfs open
Zhang Lixu (1):
iio: hid-sensor-rotation: Fix stale or zero output when reading raw values
Zhang Tianci (2):
vduse: Requeue failed read to send_list head
vduse: Fix race in vduse_dev_msg_sync and vduse_dev_read_iter
Zhang Yi (1):
ext4: fix LOGFLUSH shutdown ordering to allow ordered-mode data writeback
Zhao Dongdong (3):
ALSA: es1938: check snd_ctl_new1() return value
reset: sunxi: fix memory region leak on ioremap failure
ALSA: aoa: check snd_ctl_new1() return value
Zhao Zhang (1):
bpf: Reject fragmented frames in devmap
ZhengYuan Huang (1):
ocfs2: don't BUG_ON an invalid journal dinode
Zhengchuan Liang (1):
net: atm: reject out-of-range traffic classes in QoS validation
Zhenhao Wan (1):
RDMA/rtrs-srv: Bound RDMA-Write length to chunk size in rdma_write_sg
Zhiling Zou (1):
wifi: mac80211: free ack status frame on TX header build failure
Zhixing Chen (1):
netfilter: ip6tables: mark malformed IPv6 extension headers for hotdrop
Zihan Xi (2):
smb: client: use unaligned reads in parse_posix_ctxt()
smb: client: harden POSIX SID length parsing
Zijing Yin (1):
net: af_key: initialize alg_key_len for IPComp states
Zilin Guan (1):
media: atomisp: Fix memory leak in atomisp_fixed_pattern_table()
Zygmunt Krynicki (3):
apparmor: aa_label_alloc use aa_label_free on alloc failure
apparmor: aa_getprocattr free procattr leak on format failure
apparmor: put secmark label after secid lookup
longlong yan (1):
tools/virtio: check mmap return value in vringh_test
zhoumin (1):
EDAC/{skx_common,skx}: Fix UBSAN shift-out-of-bounds in skx_get_dimm_info
胡连勤 (1):
usb: xhci: Fix sleep in atomic context in xhci_free_streams()
Greg Kroah-Hartman
maintainerDocumentation/admin-guide/pm/cpufreq.rst +3 -3
@@ -499,7 +499,7 @@ This governor exposes the following tunables: of those tasks above 0 and set this attribute to 1. ``sampling_down_factor`` - Temporary multiplier, between 1 (default) and 100 inclusive, to apply to + Temporary multiplier, between 1 (default) and 100000 inclusive, to apply to the ``sampling_rate`` value if the CPU load goes above ``up_threshold``. This causes the next execution of the governor's worker routine (after
@@ -569,8 +569,8 @@ This governor exposes the following tunables: 100 (5 by default). This is how much the frequency is allowed to change in one go. Setting - it to 0 will cause the default frequency step (5 percent) to be used - and setting it to 100 effectively causes the governor to periodically + it to 0 disables frequency changes by the governor entirely and setting + it to 100 effectively causes the governor to periodically switch the frequency between the ``scaling_min_freq`` and ``scaling_max_freq`` policy limits.
Documentation/crypto/userspace-if.rst +4 -27
@@ -328,33 +328,10 @@ CRYPTO_USER_API_RNG_CAVP option: Zero-Copy Interface ------------------- -In addition to the send/write/read/recv system call family, the AF_ALG -interface can be accessed with the zero-copy interface of -splice/vmsplice. As the name indicates, the kernel tries to avoid a copy -operation into kernel space. - -The zero-copy operation requires data to be aligned at the page -boundary. Non-aligned data can be used as well, but may require more -operations of the kernel which would defeat the speed gains obtained -from the zero-copy interface. - -The system-inherent limit for the size of one zero-copy operation is 16 -pages. If more data is to be sent to AF_ALG, user space must slice the -input into segments with a maximum size of 16 pages. - -Zero-copy can be used with the following code example (a complete -working example is provided with libkcapi): - -:: - - int pipes[2]; - - pipe(pipes); - /* input data in iov */ - vmsplice(pipes[1], iov, iovlen, SPLICE_F_GIFT); - /* opfd is the file descriptor returned from accept() system call */ - splice(pipes[0], NULL, opfd, NULL, ret, 0); - read(opfd, out, outlen); +AF_ALG used to have zero-copy support, but it was removed due to it being a +frequent source of vulnerabilities. For backwards compatibility the splice() +and sendfile() system calls are still supported, but the kernel will make an +internal copy of the data before passing it to the crypto code. Setsockopt Interface
Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml +10 -0
@@ -58,6 +58,16 @@ properties: CMA pool to use for buffers allocation instead of the default CMA pool. + # FIXME: This should be made required eventually once every SoC will + # have the MBUS declared. + interconnects: + maxItems: 1 + + # FIXME: This should be made required eventually once every SoC will + # have the MBUS declared. + interconnect-names: + const: dma-mem + required: - compatible - reg
Documentation/driver-api/pci/pci.rst +3 -0
@@ -31,6 +31,9 @@ PCI Support Library .. kernel-doc:: drivers/pci/slot.c :export: +.. kernel-doc:: drivers/pci/rebar.c + :export: + .. kernel-doc:: drivers/pci/rom.c :export:
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 15 -SUBLEVEL = 211 +SUBLEVEL = 212 EXTRAVERSION = NAME = Trick or Treat
arch/alpha/kernel/pci-sysfs.c +11 -2
@@ -11,6 +11,7 @@*/ #include <linux/sched.h> +#include <linux/security.h> #include <linux/stat.h> #include <linux/slab.h> #include <linux/pci.h>
@@ -36,12 +37,16 @@ static int hose_mmap_page_range(struct pci_controller *hose,static int __pci_mmap_fits (struct pci_dev *pdev,int num,struct vm_area_struct *vma,int sparse) { +resource_size_t len =pci_resource_len (pdev, num);unsigned long nr, start, size;int shift = sparse ?5 :0 ; +if (!len) +return 0 ; + nr =vma_pages (vma); start = vma->vm_pgoff; - size = ((pci_resource_len (pdev, num) -1 ) >> (PAGE_SHIFT - shift)) +1 ; + size = ((len -1 ) >> (PAGE_SHIFT - shift)) +1 ;if (start < size && size - start >= nr)return 1 ;
@@ -71,7 +76,11 @@ static int pci_mmap_resource(struct kobject *kobj,struct resource *res = attr->private;enum pci_mmap_state mmap_type;struct pci_bus_region bar; -int i; +int i, ret; + + ret =security_locked_down (LOCKDOWN_PCI_ACCESS ); +if (ret) +return ret;for (i =0 ; i <PCI_STD_NUM_BARS ; i++)if (res == &pdev->resource[i])
arch/arm/boot/dts/am335x-sl50.dts +2 -2
@@ -557,8 +557,8 @@ cpu_endpoint: endpoint { remote-endpoint = <&codec_endpoint>; dai-format = "dsp_b"; - bitclock-master = <&codec_port>; - frame-master = <&codec_port>; + bitclock-master = <&codec_endpoint>; + frame-master = <&codec_endpoint>; bitclock-inversion; clocks = <&audio_mclk>; };
arch/arm/configs/sunxi_defconfig +0 -1
@@ -168,7 +168,6 @@ CONFIG_ROOT_NFS=y CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_ISO8859_1=y CONFIG_CRYPTO_DEV_SUN4I_SS=y -CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG=y CONFIG_CRYPTO_DEV_SUN8I_CE=y CONFIG_CRYPTO_DEV_SUN8I_SS=y CONFIG_DMA_CMA=y
arch/arm/mach-davinci/board-da850-evm.c +4 -8
@@ -517,8 +517,8 @@ static int da850_evm_ui_expander_setup(struct i2c_client *client, unsigned gpio,return ret; } -static int da850_evm_ui_expander_teardown (struct i2c_client *client, -unsigned gpio,unsigned ngpio,void *c) +static void da850_evm_ui_expander_teardown (struct i2c_client *client, +unsigned gpio,unsigned ngpio,void *c) {platform_device_unregister (&da850_evm_ui_keys_device);
@@ -530,8 +530,6 @@ static int da850_evm_ui_expander_teardown(struct i2c_client *client,gpio_free (gpio +DA850_EVM_UI_EXP_SEL_C );gpio_free (gpio +DA850_EVM_UI_EXP_SEL_B );gpio_free (gpio +DA850_EVM_UI_EXP_SEL_A ); - -return 0 ; }/* assign the baseboard expander's GPIOs after the UI board's */
@@ -698,13 +696,11 @@ static int da850_evm_bb_expander_setup(struct i2c_client *client,return ret; } -static int da850_evm_bb_expander_teardown (struct i2c_client *client, -unsigned gpio,unsigned ngpio,void *c) +static void da850_evm_bb_expander_teardown (struct i2c_client *client, +unsigned gpio,unsigned ngpio,void *c) {platform_device_unregister (&da850_evm_bb_leds_device);platform_device_unregister (&da850_evm_bb_keys_device); - -return 0 ; }static struct pca953x_platform_data da850_evm_ui_expander_info = {
arch/arm/mach-imx/cpu-imx31.c +7 -2
@@ -36,6 +36,7 @@ static int mx31_read_cpu_rev(void)void __iomem *iim_base;struct device_node *np;u32 i, srev; +int rev =IMX_CHIP_REVISION_UNKNOWN ; np =of_find_compatible_node (NULL ,NULL ,"fsl,imx31-iim" ); iim_base =of_iomap (np,0 );
@@ -48,13 +49,17 @@ static int mx31_read_cpu_rev(void)for (i =0 ; i <ARRAY_SIZE (mx31_cpu_type); i++)if (srev == mx31_cpu_type[i].srev) { + rev = mx31_cpu_type[i].rev;imx_print_silicon_rev (mx31_cpu_type[i].name, mx31_cpu_type[i].rev); -return mx31_cpu_type[i].rev; + goto out; }imx_print_silicon_rev ("i.MX31" ,IMX_CHIP_REVISION_UNKNOWN ); -return IMX_CHIP_REVISION_UNKNOWN ; + +out: +iounmap (iim_base); +return rev; }int mx31_revision (void )
arch/arm/mach-imx/mm-imx3.c +2 -0
@@ -107,6 +107,7 @@ void __init imx31_init_early(void) arm_pm_idle = imx31_idle; np =of_find_compatible_node (NULL ,NULL ,"fsl,imx31-ccm" ); mx3_ccm_base =of_iomap (np,0 ); +of_node_put (np); BUG_ON(!mx3_ccm_base); }#endif /* ifdef CONFIG_SOC_IMX31 */
@@ -144,6 +145,7 @@ void __init imx35_init_early(void) arch_ioremap_caller = imx3_ioremap_caller; np =of_find_compatible_node (NULL ,NULL ,"fsl,imx35-ccm" ); mx3_ccm_base =of_iomap (np,0 ); +of_node_put (np); BUG_ON(!mx3_ccm_base); }#endif /* ifdef CONFIG_SOC_IMX35 */
arch/arm64/boot/dts/qcom/sdm630.dtsi +6 -3
@@ -397,9 +397,12 @@ venus_region: venus@9f800000 { no-map; }; - adsp_mem: adsp-region@f6000000 { - reg = <0x0 0xf6000000 0x0 0x800000>; - no-map; + adsp_mem: adsp-region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x0 0x80000000 0x0 0x80000000>; + alignment = <0x0 0x400000>; + size = <0x0 0x800000>; + reusable; }; qseecom_mem: qseecom-region@f6800000 {
arch/arm64/kernel/hw_breakpoint.c +9 -0
@@ -557,6 +557,15 @@ int hw_breakpoint_arch_parse(struct perf_event *bp,else alignment_mask =0x7 ; offset = hw->address & alignment_mask; + +/* +* BAS is an 8-bit field in WCR/BCR; the shift below would +* silently drop the high bits of ctrl.len when offset + len +* exceeds 8, programming hardware to watch fewer bytes than +* the user requested. +*/ +if (((u32 )hw->ctrl.len << offset) >ARM_BREAKPOINT_LEN_8 ) +return -EINVAL ; } hw->address &= ~alignment_mask;
arch/arm64/kvm/vgic/vgic-its.c +11 -4
@@ -704,6 +704,8 @@ struct vgic_its *vgic_msi_to_its(struct kvm *kvm, struct kvm_msi *msi)u64 address;struct kvm_io_device *kvm_io_dev;struct vgic_io_device *iodev; +struct vgic_its *its =NULL ; +int srcu_idx;if (!vgic_has_its (kvm))return ERR_PTR (-ENODEV );
@@ -713,18 +715,23 @@ struct vgic_its *vgic_msi_to_its(struct kvm *kvm, struct kvm_msi *msi) address = (u64 )msi->address_hi <<32 | msi->address_lo; + srcu_idx =srcu_read_lock (&kvm->srcu); + kvm_io_dev =kvm_io_bus_get_dev (kvm,KVM_MMIO_BUS , address);if (!kvm_io_dev) -return ERR_PTR (-EINVAL ); + goto out;if (kvm_io_dev->ops != &kvm_io_gic_ops) -return ERR_PTR (-EINVAL ); + goto out; iodev = container_of(kvm_io_dev, struct vgic_io_device, dev);if (iodev->iodev_type !=IODEV_ITS ) -return ERR_PTR (-EINVAL ); + goto out; -return iodev->its; + its = iodev->its; +out: +srcu_read_unlock (&kvm->srcu, srcu_idx); +return its ?:ERR_PTR (-EINVAL ); }/*
arch/arm64/kvm/vgic/vgic.c +6 -5
@@ -684,15 +684,16 @@ static void vgic_prune_ap_list(struct kvm_vcpu *vcpu)raw_spin_lock (&irq->irq_lock);/* -* If the affinity has been preserved, move the -* interrupt around. Otherwise, it means things have -* changed while the interrupt was unlocked, and we -* need to replay this. +* If the interrupt is still ours and its affinity has +* been preserved, move it around. Otherwise, it means +* things have changed while the interrupt was unlocked +* (it may even have been taken off the list with its +* affinity left untouched), and we need to replay this. * * In all cases, we cannot trust the list not to have * changed, so we restart from the beginning. */ -if (target_vcpu ==vgic_target_oracle (irq)) { +if (irq->vcpu == vcpu && target_vcpu ==vgic_target_oracle (irq)) {struct vgic_cpu *new_cpu = &target_vcpu->arch.vgic_cpu;list_del (&irq->ap_list);
arch/arm64/mm/mmu.c +9 -2
@@ -917,7 +917,13 @@ static void unmap_hotplug_pmd_range(pud_t *pudp, unsigned long addr,if (free_mapped) {/* CONT blocks are not supported in the vmemmap */ WARN_ON (pmd_cont (pmd)); -flush_tlb_kernel_range (addr, addr +PMD_SIZE ); +/* +* Invalidating a block entry requires just +* a single overlapping TLB invalidation, +* so limit the range of the flush to a single +* page. +*/ +flush_tlb_kernel_range (addr, addr +PAGE_SIZE );free_hotplug_page_range (pmd_page (pmd),PMD_SIZE , altmap); }
@@ -947,7 +953,8 @@ static void unmap_hotplug_pud_range(p4d_t *p4dp, unsigned long addr,if (pud_sect (pud)) {pud_clear (pudp);if (free_mapped) { -flush_tlb_kernel_range (addr, addr +PUD_SIZE ); +/* See comment in unmap_hotplug_pmd_range(). */ +flush_tlb_kernel_range (addr, addr +PAGE_SIZE );free_hotplug_page_range (pud_page (pud),PUD_SIZE , altmap); }
arch/mips/dec/int-handler.S +1 -1
@@ -277,7 +277,7 @@ srlv t3,t1,t2 handle_it: - j dec_irq_dispatch + j do_IRQ nop #if defined(CONFIG_32BIT) && defined(CONFIG_MIPS_FP_SUPPORT)
arch/mips/dec/prom/init.c +5 -1
@@ -3,7 +3,7 @@* init.c: PROM library initialisation code. * * Copyright (C) 1998 Harald Koerfgen -* Copyright (C) 2002, 2004 Maciej W. Rozycki +* Copyright (C) 2002, 2004, 2026 Maciej W. Rozycki */ #include <linux/init.h> #include <linux/kernel.h>
@@ -20,6 +20,10 @@#include <asm/dec/prom.h> +#ifdef CONFIG_64BIT +unsigned long o32_stk[O32_STK_SIZE ]__initdata = {0 }; +#endif +int (*__rex_bootinit)(void );int (*__rex_bootread)(void );int (*__rex_getbitmap)(memmap *);
arch/mips/dec/setup.c +0 -6
@@ -776,9 +776,3 @@ void __init arch_init_irq(void)pr_err ("Failed to register halt interrupt\n" ); } } - -asmlinkage unsigned int dec_irq_dispatch(unsigned int irq) -{ -do_IRQ (irq); -return 0 ; -}
arch/mips/fw/lib/call_o32.S +1 -1
@@ -74,7 +74,7 @@ NESTED(call_o32, O32_FRAMESZ, ra) PTR_LA t1,6*O32_SZREG(fp) li t2,O32_ARGC-6 1: - lw t3,(t0) + ld t3,(t0) REG_ADDU t0,SZREG sw t3,(t1) REG_SUBU t2,1
arch/mips/include/asm/dec/prom.h +13 -2
@@ -4,7 +4,7 @@* * DECstation PROM interface. * -* Copyright (C) 2002 Maciej W. Rozycki +* Copyright (C) 2002, 2026 Maciej W. Rozycki * * Based on arch/mips/dec/prom/prom.h by the Anonymous. */
@@ -97,6 +97,17 @@ extern int (*__pmax_close)(int);#ifdef CONFIG_64BIT +#define O32_STK_SIZE 512 +extern unsigned long o32_stk[]; + +/* Switch the stack if outside the 32-bit address space. */ +static inline unsigned long *o32_get_stk (void ) +{ +long fp = (long )__builtin_frame_address (0 ); + +return fp != (int )fp ? o32_stk +O32_STK_SIZE :NULL ; +} +/* * On MIPS64 we have to call PROM functions via a helper * dispatcher to accommodate ABI incompatibilities.
@@ -128,7 +139,7 @@ int __DEC_PROM_O32(_prom_printf, (int (*)(char *, ...), void *, char *, ...));#define prom_getchar () _prom_getchar(__prom_getchar, NULL)#define prom_getenv (x) _prom_getenv(__prom_getenv, NULL, x) -#define prom_printf(x...) _prom_printf(__prom_printf, NULL, x) +#define prom_printf(x...) _prom_printf(__prom_printf, o32_get_stk(), x)#else /* !CONFIG_64BIT */
arch/mips/kernel/mips-mt-fpaff.c +15 -13
@@ -70,11 +70,16 @@ asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len,struct task_struct *p;int retval; -if (len <sizeof (new_mask)) -return -EINVAL ; - -if (copy_from_user (&new_mask, user_mask_ptr,sizeof (new_mask))) -return -EFAULT ; +if (!alloc_cpumask_var (&new_mask,GFP_KERNEL )) +return -ENOMEM ; +if (len <cpumask_size ()) +cpumask_clear (new_mask); +else if (len >cpumask_size ()) + len =cpumask_size (); +if (copy_from_user (new_mask, user_mask_ptr, len)) { + retval = -EFAULT ; + goto out_free_new_mask; + }cpus_read_lock ();rcu_read_lock ();
@@ -83,7 +88,8 @@ asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len,if (!p) {rcu_read_unlock ();cpus_read_unlock (); -return -ESRCH ; + retval = -ESRCH ; + goto out_free_new_mask; }/* Prevent p going away */
@@ -94,13 +100,9 @@ asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len, retval = -ENOMEM ; goto out_put_task; } -if (!alloc_cpumask_var (&new_mask,GFP_KERNEL )) { - retval = -ENOMEM ; - goto out_free_cpus_allowed; - }if (!alloc_cpumask_var (&effective_mask,GFP_KERNEL )) { retval = -ENOMEM ; - goto out_free_new_mask; + goto out_free_cpus_allowed; }if (!check_same_owner (p) && !capable (CAP_SYS_NICE )) { retval = -EPERM ;
@@ -141,13 +143,13 @@ asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len, } out_unlock:free_cpumask_var (effective_mask); -out_free_new_mask: -free_cpumask_var (new_mask); out_free_cpus_allowed:free_cpumask_var (cpus_allowed); out_put_task:put_task_struct (p);cpus_read_unlock (); +out_free_new_mask: +free_cpumask_var (new_mask);return retval; }
arch/mips/mm/init.c +8 -4
@@ -276,9 +276,15 @@ static int maar_res_walk(unsigned long start_pfn, unsigned long nr_pages, void *data) {struct maar_walk_info *wi = data; -struct maar_config *cfg = &wi->cfg[wi->num_cfg]; +struct maar_config *cfg;unsigned int maar_align; +/* Ensure we don't overflow the cfg array */ +if (WARN_ON (wi->num_cfg >=ARRAY_SIZE (wi->cfg))) +return -1 ; + + cfg = &wi->cfg[wi->num_cfg]; +/* MAAR registers hold physical addresses right shifted by 4 bits */ maar_align =BIT (MIPS_MAAR_ADDR_SHIFT +4 );
@@ -287,9 +293,7 @@ static int maar_res_walk(unsigned long start_pfn, unsigned long nr_pages, cfg->upper =ALIGN_DOWN (PFN_PHYS (start_pfn + nr_pages), maar_align) -1 ; cfg->attrs =MIPS_MAAR_S ; -/* Ensure we don't overflow the cfg array */ -if (!WARN_ON (wi->num_cfg >=ARRAY_SIZE (wi->cfg))) - wi->num_cfg++; + wi->num_cfg++;return 0 ; }
arch/mips/n64/init.c +1 -1
@@ -50,7 +50,7 @@ void __init prom_init(void)#define W 320#define H 240 -#define REG_BASE ((u32 *) CKSEG1ADDR(0x4400000)) +#define REG_BASE ((u32 __iomem *) CKSEG1ADDR(0x4400000))static void __init n64rdp_write_reg (const u8 reg,const u32 value) {
arch/mips/ralink/mt7621.c +1 -1
@@ -32,7 +32,7 @@ phys_addr_t mips_cpc_default_phys_base(void)static bool __init mt7621_addr_wraparound_test (phys_addr_t size) { -void *dm = (void *)KSEG1ADDR (&detect_magic); +void __iomem *dm = (void __iomem *)KSEG1ADDR (&detect_magic);if (CPHYSADDR (dm + size) >=MT7621_LOWMEM_MAX_SIZE )return true;
arch/mips/sgi-ip22/ip22-gio.c +2 -5
@@ -30,7 +30,6 @@ static struct {static void gio_bus_release (struct device *dev) { -kfree (dev); }static struct device gio_bus = {
@@ -101,6 +100,8 @@ int gio_device_register(struct gio_device *giodev) { giodev->dev.bus = &gio_bus_type; giodev->dev.parent = &gio_bus; + giodev->dev.release = gio_release_dev; +return device_register (&giodev->dev); }EXPORT_SYMBOL_GPL (gio_device_register);
@@ -132,13 +133,9 @@ static int gio_device_probe(struct device *dev)if (!drv->probe)return error; -gio_dev_get (gio_dev); - match =gio_match_device (drv->id_table, gio_dev);if (match) error = drv->probe (gio_dev, match); -if (error) -gio_dev_put (gio_dev);return error; }
arch/powerpc/kexec/core_64.c +1 -3
@@ -167,7 +167,7 @@ static void kexec_prepare_cpus_wait(int wait_state)int my_cpu, i, notified=-1 ;hw_breakpoint_disable (); - my_cpu =get_cpu (); + my_cpu =raw_smp_processor_id ();/* Make sure each CPU has at least made it to the state we need. * * FIXME: There is a (slim) chance of a problem if not all of the CPUs
@@ -246,8 +246,6 @@ static void kexec_prepare_cpus(void)/* after we tell the others to go down */ if (ppc_md.kexec_cpu_down) ppc_md.kexec_cpu_down(0, 0); - - put_cpu(); }#else /* ! SMP */
arch/powerpc/perf/core-fsl-emb.c +2 -1
@@ -366,9 +366,10 @@ static void fsl_emb_pmu_del(struct perf_event *event, int flags) cpuhw->n_events--; +put_cpu_var (cpu_hw_events); + out:perf_pmu_enable (event->pmu); -put_cpu_var (cpu_hw_events); }static void fsl_emb_pmu_start (struct perf_event *event,int ef_flags)
arch/powerpc/platforms/cell/spufs/file.c +4 -2
@@ -268,10 +268,12 @@ static int spufs_mem_mmap_access(struct vm_area_struct *vma,if (write && !(vma->vm_flags &VM_WRITE ))return -EACCES ; +if (offset >=LS_SIZE ) +return -EFAULT ;if (spu_acquire (ctx))return -EINTR ; -if ((offset + len) > vma->vm_end) - len = vma->vm_end - offset; +if ((offset + len) >LS_SIZE ) + len =LS_SIZE - offset; local_store = ctx->ops->get_ls (ctx);if (write)memcpy_toio (local_store + offset, buf, len);
arch/powerpc/platforms/powernv/setup.c +2 -1
@@ -359,7 +359,8 @@ static void pnv_kexec_wait_secondaries_down(void) {int my_cpu, i, notified =-1 ; - my_cpu =get_cpu (); +/* Called with interrupts disabled, so the CPU is pinned. */ + my_cpu =raw_smp_processor_id ();for_each_online_cpu (i) {uint8_t status;
arch/riscv/kernel/machine_kexec.c +3 -0
@@ -67,6 +67,9 @@ machine_kexec_prepare(struct kimage *image)if (image->segment[i].memsz <=sizeof (fdt))continue ; +if (!image->segment[i].buf) +continue ; +if (image->file_mode)memcpy (&fdt, image->segment[i].buf,sizeof (fdt));else if (copy_from_user (&fdt, image->segment[i].buf,sizeof (fdt)))
arch/riscv/kernel/stacktrace.c +1 -1
@@ -112,7 +112,7 @@ void notrace walk_stackframe(struct task_struct *task,while (!kstack_end (ksp)) {if (__kernel_text_address (pc) &&unlikely (!fn (arg, pc)))break ; - pc =READ_ONCE_NOCHECK (*ksp++) -0x4 ; + pc =READ_ONCE_NOCHECK (*ksp++); } }
arch/s390/kernel/process.c +1 -1
@@ -48,7 +48,7 @@ void ret_from_fork(void) asm("ret_from_fork");void __ret_from_fork (struct task_struct *prev,struct pt_regs *regs) { -void (*func)(void *arg); +int (*func)(void *arg);schedule_tail (prev);
arch/sparc/kernel/led.c +1 -1
@@ -78,7 +78,7 @@ static ssize_t led_proc_write(struct file *file, const char __user *buffer,return PTR_ERR (buf);/* work around \n when echo'ing into proc */ -if (buf[count -1 ] =='\n' ) +if (count >0 && buf[count -1 ] =='\n' ) buf[count -1 ] ='\0' ;/* before we change anything we want to stop any running timers,
arch/x86/boot/compressed/acpi.c +6 -1
@@ -288,10 +288,15 @@ static unsigned long get_cmdline_acpi_rsdp(void)char val[MAX_ADDR_LEN ] = { };int ret; - ret =cmdline_find_option ("acpi_rsdp" , val,MAX_ADDR_LEN ); + ret =cmdline_find_option ("acpi_rsdp" , val,sizeof (val));if (ret <0 )return 0 ; +if (ret >=sizeof (val)) { +warn ("acpi_rsdp= value too long; ignoring" ); +return 0 ; + } +if (boot_kstrtoul (val,16 , &addr))return 0 ;#endif
arch/x86/boot/early_serial_console.c +7 -4
@@ -117,7 +117,7 @@ static unsigned int probe_baud(int port)static void parse_console_uart8250 (void ) {char optstr[64 ], *options; -int baud =DEFAULT_BAUD ; +int baud;int port =0 ;/*
@@ -136,10 +136,13 @@ static void parse_console_uart8250(void)else return ; -if (options && (options[0 ] ==',' )) - baud =simple_strtoull (options +1 , &options,0 ); -else +if (options && (options[0 ] ==',' )) { + baud =simple_strtoull (options +1 ,NULL ,0 ); +if (!baud) + baud =DEFAULT_BAUD ; + }else { baud =probe_baud (port); + }if (port)early_serial_init (port, baud);
arch/x86/events/amd/core.c +3 -3
@@ -943,12 +943,12 @@ static int __init amd_core_pmu_init(void)u64 even_ctr_mask =0ULL ;int i; -if (!boot_cpu_has (X86_FEATURE_PERFCTR_CORE )) -return 0 ; -/* Avoid calculating the value each time in the NMI handler */ perf_nmi_window =msecs_to_jiffies (100 ); +if (!boot_cpu_has (X86_FEATURE_PERFCTR_CORE )) +return 0 ; +/* * If core performance counter extensions exists, we must use * MSR_F15H_PERF_CTL/MSR_F15H_PERF_CTR msrs. See also
arch/x86/kvm/vmx/vmx.c +1 -2
@@ -6273,11 +6273,10 @@ static noinstr void vmx_l1d_flush(struct kvm_vcpu *vcpu)static void vmx_update_cr8_intercept (struct kvm_vcpu *vcpu,int tpr,int irr) { -struct vmcs12 *vmcs12 =get_vmcs12 (vcpu);int tpr_threshold;if (is_guest_mode (vcpu) && -nested_cpu_has (vmcs12,CPU_BASED_TPR_SHADOW )) +nested_cpu_has (get_vmcs12 (vcpu),CPU_BASED_TPR_SHADOW ))return ; tpr_threshold = (irr ==-1 || tpr < irr) ?0 : irr;
arch/x86/mm/numa_emulation.c +13 -4
@@ -211,7 +211,7 @@ static u64 uniform_size(u64 max_addr, u64 base, u64 hole, int nr_nodes)* Sets up fake nodes of `size' interleaved over physical nodes ranging from * `addr' to `max_addr'. * -* Returns zero on success or negative on error. +* Returns node ID of the next node on success or negative error code. */ static int __init split_nodes_size_interleave_uniform(struct numa_meminfo *ei, struct numa_meminfo *pi,
@@ -395,7 +395,7 @@ void __init numa_emulation(struct numa_meminfo *numa_meminfo, int numa_dist_cnt)if (strchr (emu_cmdline,'U' )) {nodemask_t physnode_mask = numa_nodes_parsed;unsigned long n; -int nid =0 ; +int nid =0 , nr_created; n =simple_strtoul (emu_cmdline, &emu_cmdline,0 ); ret =-1 ;
@@ -413,9 +413,18 @@ void __init numa_emulation(struct numa_meminfo *numa_meminfo, int numa_dist_cnt) n, &pi.blk[0], nid);if (ret <0 )break ; -if (ret < n) { + +/* +* If no memory was found for this physical node, +* skip the under-allocation check. +*/ +if (ret == nid) +continue ; + + nr_created = ret - nid; +if (nr_created < n) {pr_info ("%s: phys: %d only got %d of %ld nodes, failing\n" , - __func__, i, ret, n); + __func__, i, nr_created, n); ret =-1 ;break ; }
arch/x86/platform/olpc/olpc-xo15-sci.c +1 -0
@@ -185,6 +185,7 @@ static int xo15_sci_add(struct acpi_device *device)static int xo15_sci_remove (struct acpi_device *device) { +device_init_wakeup (&device->dev, false);acpi_disable_gpe (NULL , xo15_sci_gpe);acpi_remove_gpe_handler (NULL , xo15_sci_gpe, xo15_sci_gpe_handler);cancel_work_sync (&sci_work);
block/bdev.c +0 -4
@@ -459,16 +459,12 @@ EXPORT_SYMBOL_GPL(blockdev_superblock);void __init bdev_cache_init (void ) { -int err;static struct vfsmount *bd_mnt; bdev_cachep =kmem_cache_create ("bdev_cache" ,sizeof (struct bdev_inode ),0 , (SLAB_HWCACHE_ALIGN |SLAB_RECLAIM_ACCOUNT |SLAB_MEM_SPREAD |SLAB_ACCOUNT |SLAB_PANIC ), init_once); - err =register_filesystem (&bd_type); -if (err) -panic ("Cannot register bdev pseudo-fs" ); bd_mnt =kern_mount (&bd_type);if (IS_ERR (bd_mnt))panic ("Cannot create bdev pseudo-fs" );
block/partitions/aix.c +9 -0
@@ -228,6 +228,15 @@ int aix_partition(struct parsed_partitions *state)int next_lp_ix =1 ;int lp_ix; +/* +* pvd was read into a fixed-size struct pvd whose ppe[] array +* holds ARRAY_SIZE(pvd->ppe) entries. pp_count is an +* unvalidated on-disk __be16, so clamp the scan to the array +* size to avoid walking past the allocation. +*/ +if (numpps >ARRAY_SIZE (pvd->ppe)) + numpps =ARRAY_SIZE (pvd->ppe); +for (i =0 ; i < numpps; i +=1 ) {struct ppe *p = pvd->ppe + i;unsigned int lv_ix;
certs/common.c +1 -1
@@ -20,7 +20,7 @@ int load_certificate_list(const u8 cert_list[],*/ if (end - p <4 ) goto dodgy_cert; -if (p[0 ] !=0x30 && +if (p[0 ] !=0x30 || p[1 ] !=0x82 ) goto dodgy_cert; plen = (p[2 ] <<8 ) | p[3 ];
crypto/af_alg.c +10 -44
63 lines not on this page · raw message
crypto/algif_skcipher.c +18 -31
55 lines not on this page · raw message
crypto/asymmetric_keys/verify_pefile.c +2 -0
@@ -305,6 +305,8 @@ static int pefile_digest_pe_contents(const void *pebuf, unsigned int pelen,if (pelen > hashed_bytes) { tmp = hashed_bytes + ctx->certs_size; +if (tmp <= hashed_bytes || pelen < tmp) +return -ELIBBAD ; ret =crypto_shash_update (desc, pebuf + hashed_bytes, pelen - tmp);
crypto/drbg.c +2 -2
@@ -602,7 +602,7 @@ static int drbg_ctr_generate(struct drbg_state *drbg,if (addtl && !list_empty (addtl)) { ret =drbg_ctr_update (drbg, addtl,2 );if (ret) -return 0 ; +return ret; }/* 10.2.1.5.2 step 4.1 */
@@ -2070,7 +2070,7 @@ static inline void __init drbg_fill_array(struct rng_alg *alg,* it is selected. */ if (fips_enabled) - alg->base.cra_priority +=200 ; + alg->base.cra_priority +=2000 ; alg->base.cra_ctxsize =sizeof (struct drbg_state ); alg->base.cra_module =THIS_MODULE ;
crypto/ecc.c +20 -11
@@ -375,14 +375,26 @@ static uint128_t mul_64_64(u64 left, u64 right)return result; } -static uint128_t add_128_128 (uint128_t a,uint128_t b) +/* Calculate addition with overflow checking. Returns true on wrap-around, +* false otherwise. +*/ +static bool check_add_128_128_overflow (uint128_t *result,uint128_t a, +uint128_t b) { -uint128_t result; +bool carry; - result.m_low = a.m_low + b.m_low; - result.m_high = a.m_high + b.m_high + (result.m_low < a.m_low); + result->m_low = a.m_low + b.m_low; + carry = (result->m_low < a.m_low); -return result; + result->m_high = a.m_high + b.m_high + carry; + +/* Using constant-time bitwise arithmetic to prevent timing +* side-channels. +*/ + carry = (result->m_high < a.m_high) | + ((result->m_high == a.m_high) & carry); + +return carry; } static void vli_mult(u64 *result, const u64 *left, const u64 *right,
@@ -407,9 +419,7 @@ static void vli_mult(u64 *result, const u64 *left, const u64 *right,uint128_t product; product =mul_64_64 (left[i], right[k - i]); - - r01 =add_128_128 (r01, product); - r2 += (r01.m_high < product.m_high); + r2 +=check_add_128_128_overflow (&r01, r01, product); } result[k] = r01.m_low;
@@ -432,7 +442,7 @@ static void vli_umult(u64 *result, const u64 *left, u32 right,uint128_t product; product =mul_64_64 (left[k], right); - r01 =add_128_128 (r01, product); +check_add_128_128_overflow (&r01, r01, product);/* no carry */ result[k] = r01.m_low; r01.m_low = r01.m_high;
@@ -469,8 +479,7 @@ static void vli_square(u64 *result, const u64 *left, unsigned int ndigits) product.m_low <<=1 ; } - r01 =add_128_128 (r01, product); - r2 += (r01.m_high < product.m_high); + r2 +=check_add_128_128_overflow (&r01, r01, product); } result[k] = r01.m_low;
crypto/ecrdsa.c +1 -1
@@ -153,7 +153,7 @@ int ecrdsa_param_curve(void *context, size_t hdrlen, unsigned char tag,struct ecrdsa_ctx *ctx = context; ctx->curve_oid =look_up_OID (value, vlen); -if (!ctx->curve_oid) +if (ctx->curve_oid ==OID__NR )return -EINVAL ; ctx->curve =get_curve_by_oid (ctx->curve_oid);return 0 ;
crypto/pcrypt.c +4 -0
@@ -122,6 +122,8 @@ static int pcrypt_aead_encrypt(struct aead_request *req)return -EINPROGRESS ;if (err == -EBUSY ) {/* try non-parallel mode */ +aead_request_set_callback (creq, flags, req->base.complete, + req->base.data);return crypto_aead_encrypt (creq); }
@@ -173,6 +175,8 @@ static int pcrypt_aead_decrypt(struct aead_request *req)return -EINPROGRESS ;if (err == -EBUSY ) {/* try non-parallel mode */ +aead_request_set_callback (creq, flags, req->base.complete, + req->base.data);return crypto_aead_decrypt (creq); }
crypto/rng.c +11 -0
@@ -232,5 +232,16 @@ void crypto_unregister_rngs(struct rng_alg *algs, int count) }EXPORT_SYMBOL_GPL (crypto_unregister_rngs); +static void __exit rng_exit(void) +{ +int err; + + err =crypto_del_default_rng (); +if (err) +pr_err ("Failed delete default RNG: %d\n" , err); +} + +module_exit (rng_exit); +MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Random Number Generator" );
drivers/acpi/acpi_ipmi.c +1 -1
@@ -548,7 +548,6 @@ acpi_ipmi_space_handler(u32 function, acpi_physical_address address,return AE_TYPE ; } -acpi_ipmi_msg_get (tx_msg);mutex_lock (&driver_data.ipmi_lock);/* Do not add a tx_msg that can not be flushed. */ if (ipmi_device->dead) {
@@ -556,6 +555,7 @@ acpi_ipmi_space_handler(u32 function, acpi_physical_address address,ipmi_msg_release (tx_msg);return AE_NOT_EXIST ; } +acpi_ipmi_msg_get (tx_msg);spin_lock_irqsave (&ipmi_device->tx_msg_lock, flags);list_add_tail (&tx_msg->head, &ipmi_device->tx_msg_list);spin_unlock_irqrestore (&ipmi_device->tx_msg_lock, flags);
drivers/acpi/cppc_acpi.c +7 -4
@@ -161,8 +161,13 @@ show_cppc_data(cppc_get_perf_caps, cppc_perf_caps, nominal_freq);show_cppc_data (cppc_get_perf_ctrs, cppc_perf_fb_ctrs, reference_perf);show_cppc_data (cppc_get_perf_ctrs, cppc_perf_fb_ctrs, wraparound_time); -/* Check for valid access_width, otherwise, fallback to using bit_width */ -#define GET_BIT_WIDTH (reg) ((reg)->access_width ? (8 << ((reg)->access_width - 1)) : (reg)->bit_width) +/* +* PCC reuses the access_width field as the subspace id, so only decode access +* size for non-PCC registers. Otherwise, use the bit_width. +*/ +#define GET_BIT_WIDTH (reg) (((reg)->access_width && \ + (reg)->space_id != ACPI_ADR_SPACE_PLATFORM_COMM) ? \ + (8 << ((reg)->access_width - 1)) : (reg)->bit_width)/* Shift and apply the mask for CPC reads/writes */ #define MASK_VAL_READ (reg, val) (((val) >> (reg)->bit_offset) & \
@@ -970,7 +975,6 @@ static int cpc_read(int cpu, struct cpc_register_resource *reg_res, u64 *val)* by the bit width field; the access size is used to indicate * the PCC subspace id. */ - size = reg->bit_width; vaddr =GET_PCC_VADDR (reg->address, pcc_ss_id); }else if (reg->space_id ==ACPI_ADR_SPACE_SYSTEM_MEMORY )
@@ -1030,7 +1034,6 @@ static int cpc_write(int cpu, struct cpc_register_resource *reg_res, u64 val)* by the bit width field; the access size is used to indicate * the PCC subspace id. */ - size = reg->bit_width; vaddr =GET_PCC_VADDR (reg->address, pcc_ss_id); }else if (reg->space_id ==ACPI_ADR_SPACE_SYSTEM_MEMORY )
drivers/acpi/nfit/core.c +11 -4
@@ -3445,6 +3445,8 @@ static void acpi_nfit_unregister(void *data)struct acpi_nfit_desc *acpi_desc = data;nvdimm_bus_unregister (acpi_desc->nvdimm_bus); +/* The nvdimm_bus object may have been freed, so clear the pointer. */ + acpi_desc->nvdimm_bus =NULL ; }int acpi_nfit_init (struct acpi_nfit_desc *acpi_desc,void *data,acpi_size sz)
@@ -3669,7 +3671,10 @@ static void acpi_nfit_put_table(void *table)void acpi_nfit_shutdown (void *data) {struct acpi_nfit_desc *acpi_desc = data; -struct device *bus_dev =to_nvdimm_bus_dev (acpi_desc->nvdimm_bus); +struct device *bus_dev; + +if (!acpi_desc || !acpi_desc->nvdimm_bus) +return ;/* * Destruct under acpi_desc_lock so that nfit_handle_mce does not
@@ -3684,6 +3689,7 @@ void acpi_nfit_shutdown(void *data)mutex_unlock (&acpi_desc->init_mutex);cancel_delayed_work_sync (&acpi_desc->dwork); + bus_dev =to_nvdimm_bus_dev (acpi_desc->nvdimm_bus);/* * Bounce the nvdimm bus lock to make sure any in-flight * acpi_nfit_ars_rescan() submissions have had a chance to
@@ -3751,13 +3757,14 @@ static int acpi_nfit_add(struct acpi_device *adev) sz - sizeof(struct acpi_table_nfit));if (rc) -return rc; -return devm_add_action_or_reset (dev, acpi_nfit_shutdown, acpi_desc); +acpi_nfit_shutdown (acpi_desc); + +return rc; }static int acpi_nfit_remove (struct acpi_device *adev) { -/* see acpi_nfit_unregister */ +acpi_nfit_shutdown (dev_get_drvdata (&adev->dev));return 0 ; }
drivers/acpi/resource.c +3 -3
@@ -808,7 +808,7 @@ bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index,EXPORT_SYMBOL_GPL (acpi_dev_resource_interrupt);/** -* acpi_dev_free_resource_list - Free resource from %acpi_dev_get_resources(). +* acpi_dev_free_resource_list - Free resource from acpi_dev_get_resources(). * @list: The head of the resource list to free. */ void acpi_dev_free_resource_list (struct list_head *list)
@@ -928,7 +928,7 @@ static int __acpi_dev_get_resources(struct acpi_device *adev,* * The resultant struct resource objects are put on the list pointed to by * @list, that must be empty initially, as members of struct resource_entry -* objects. Callers of this routine should use %acpi_dev_free_resource_list() to +* objects. Callers of this routine should use acpi_dev_free_resource_list() to * free that list. * * The number of resources in the output list is returned on success, an error
@@ -966,7 +966,7 @@ static int is_memory(struct acpi_resource *ares, void *not_used)* The resultant struct resource objects are put on the list pointed to * by @list, that must be empty initially, as members of struct * resource_entry objects. Callers of this routine should use -* %acpi_dev_free_resource_list() to free that list. +* acpi_dev_free_resource_list() to free that list. * * The number of resources in the output list is returned on success, * an error code reflecting the error condition is returned otherwise.
drivers/android/binder.c +18 -1
@@ -1537,7 +1537,20 @@ static void binder_txn_latency_free(struct binder_transaction *t)static void binder_free_transaction (struct binder_transaction *t) { -struct binder_proc *target_proc = t->to_proc; +struct binder_thread *target_thread; +struct binder_proc *target_proc; + +spin_lock (&t->lock); + target_proc = t->to_proc; + target_thread = t->to_thread; +/* +* Pin target_thread to keep target_proc alive. Undelivered +* transactions with !target_thread are safe, as target_proc +* can only be the current context there. +*/ +if (target_thread) +atomic_inc (&target_thread->tmp_ref); +spin_unlock (&t->lock);if (target_proc) {binder_inner_proc_lock (target_proc);
@@ -1551,6 +1564,10 @@ static void binder_free_transaction(struct binder_transaction *t) t->buffer->transaction =NULL ;binder_inner_proc_unlock (target_proc); } + +if (target_thread) +binder_thread_dec_tmpref (target_thread); +if (trace_binder_txn_latency_free_enabled ())binder_txn_latency_free (t);/*
drivers/ata/pata_pxa.c +1 -0
@@ -287,6 +287,7 @@ static int pxa_ata_probe(struct platform_device *pdev) ret =dmaengine_slave_config (data->dma_chan, &config);if (ret <0 ) {dev_err (&pdev->dev,"dma configuration failed: %d\n" , ret); +dma_release_channel (data->dma_chan);return ret; }
drivers/ata/sata_gemini.c +1 -1
@@ -391,7 +391,7 @@ static int gemini_sata_probe(struct platform_device *pdev)if (sg->ide_pins) { ret =gemini_setup_ide_pins (dev);if (ret) -return ret; + goto out_unprep_clk; }dev_info (dev,"set up the Gemini IDE/SATA nexus\n" );
drivers/base/firmware_loader/main.c +2 -1
@@ -1444,9 +1444,10 @@ static void device_cache_fw_images(void)mutex_lock (&fw_lock); fwc->state =FW_LOADER_START_CACHE ; -dpm_for_each_dev (NULL , dev_cache_fw_image);mutex_unlock (&fw_lock); +dpm_for_each_dev (NULL , dev_cache_fw_image); +/* wait for completion of caching firmware for all devices */ async_synchronize_full_domain (&fw_cache_domain);
drivers/base/power/main.c +5 -1
@@ -102,7 +102,7 @@ void device_pm_sleep_init(struct device *dev) dev->power.is_noirq_suspended = false; dev->power.is_late_suspended = false;init_completion (&dev->power.completion); -complete_all (&dev->power.completion); +complete (&dev->power.completion); dev->power.wakeup =NULL ;INIT_LIST_HEAD (&dev->power.entry); }
@@ -239,6 +239,10 @@ static void dpm_wait(struct device *dev, bool async)if (!dev)return ; +/* Devices with no PM support don't use the completion. */ +if (dev->power.no_pm) +return ; +if (async || (pm_async_enabled && dev->power.async_suspend))wait_for_completion (&dev->power.completion); }
drivers/base/property.c +3 -1
@@ -1290,8 +1290,10 @@ fwnode_graph_get_endpoint_by_id(const struct fwnode_handle *fwnode,if (fwnode_ep.port != port)continue ; -if (fwnode_ep.id == endpoint) +if (fwnode_ep.id == endpoint) { +fwnode_handle_put (best_ep);return ep; + }if (!endpoint_next)continue ;
drivers/block/drbd/drbd_receiver.c +5 -0
@@ -2025,6 +2025,11 @@ static int recv_dless_read(struct drbd_peer_device *peer_device, struct drbd_req data_size -= digest_size; } +if (data_size <0 ) { +drbd_err (peer_device,"Invalid data reply size\n" ); +return -EIO ; + } +/* optimistically update recv_cnt. if receiving fails below, * we disconnect anyways, and counters will be reset. */ peer_device->device->recv_cnt += data_size>>9 ;
drivers/bluetooth/bpa10x.c +6 -2
@@ -254,9 +254,13 @@ static int bpa10x_setup(struct hci_dev *hdev)if (IS_ERR (skb))return PTR_ERR (skb); -bt_dev_info (hdev,"%s" , (char *)(skb->data +1 )); +/* Bounded print: the device controls skb->len. */ +if (skb->len >1 ) { +int len = skb->len -1 ; -hci_set_fw_info (hdev,"%s" , skb->data +1 ); +bt_dev_info (hdev,"%.*s" , len, (char *)(skb->data +1 )); +hci_set_fw_info (hdev,"%.*s" , len, skb->data +1 ); + }kfree_skb (skb);return 0 ;
drivers/bluetooth/btrtl.c +3 -2
@@ -389,8 +389,9 @@ static int rtlbt_parse_firmware(struct hci_dev *hdev, }BT_DBG ("length=%x offset=%x index %d" , patch_length, patch_offset, i); - min_size = patch_offset + patch_length; -if (btrtl_dev->fw_len < min_size) +if (patch_length <sizeof (epatch_info->fw_version) || + patch_offset > btrtl_dev->fw_len || + patch_length > btrtl_dev->fw_len - patch_offset)return -EINVAL ;/* Copy the firmware into a new buffer and write the version at
drivers/bluetooth/btusb.c +30 -7
@@ -3196,6 +3196,11 @@ static int marvell_config_oob_wake(struct hci_dev *hdev)return 0 ; } +#else +static inline int marvell_config_oob_wake (struct hci_dev *hdev) +{ +return 0 ; +}#endif static int btusb_set_bdaddr_marvell(struct hci_dev *hdev,
@@ -3725,6 +3730,11 @@ static int btusb_config_oob_wake(struct hci_dev *hdev)bt_dev_info (hdev,"OOB Wake-on-BT configured at IRQ %u" , irq); return 0; } +#else +static inline int btusb_config_oob_wake (struct hci_dev *hdev) +{ +return 0 ; +}#endif static void btusb_check_needs_reset_resume (struct usb_interface *intf)
@@ -3900,7 +3910,6 @@ static int btusb_probe(struct usb_interface *intf, hdev->notify = btusb_notify; hdev->prevent_wake = btusb_prevent_wake; -#ifdef CONFIG_PM err =btusb_config_oob_wake (hdev);if (err) goto out_free_dev;
@@ -3909,9 +3918,9 @@ static int btusb_probe(struct usb_interface *intf,if (id->driver_info &BTUSB_MARVELL && data->oob_wake_irq) { err =marvell_config_oob_wake (hdev);if (err) - goto out_free_dev; + goto err_disable_wakeup; } -#endif +if (id->driver_info &BTUSB_CW6622 )set_bit (HCI_QUIRK_BROKEN_STORED_LINK_KEY , &hdev->quirks);
@@ -3946,7 +3955,7 @@ static int btusb_probe(struct usb_interface *intf,if (id->driver_info &BTUSB_INTEL_COMBINED ) { err =btintel_configure_setup (hdev);if (err) - goto out_free_dev; + goto err_kill_tx_urbs;/* Transport specific configuration */ hdev->send = btusb_send_frame_intel;
@@ -4084,7 +4093,7 @@ static int btusb_probe(struct usb_interface *intf, err =usb_set_interface (data->udev,0 ,0 );if (err <0 ) {BT_ERR ("failed to set interface 0, alt 0 %d" , err); - goto out_free_dev; + goto err_kill_tx_urbs; } }
@@ -4092,7 +4101,7 @@ static int btusb_probe(struct usb_interface *intf, err =usb_driver_claim_interface (&btusb_driver, data->isoc, data);if (err <0 ) - goto out_free_dev; + goto err_kill_tx_urbs; }if (IS_ENABLED (CONFIG_BT_HCIBTUSB_BCM ) && data->diag) {
@@ -4108,12 +4117,26 @@ static int btusb_probe(struct usb_interface *intf, err =hci_register_dev (hdev);if (err <0 ) - goto out_free_dev; + goto err_release_siblings;usb_set_intfdata (intf, data);return 0 ; +err_release_siblings: +if (data->diag) { +usb_set_intfdata (data->diag,NULL ); +usb_driver_release_interface (&btusb_driver, data->diag); + } +if (data->isoc) { +usb_set_intfdata (data->isoc,NULL ); +usb_driver_release_interface (&btusb_driver, data->isoc); + } +err_kill_tx_urbs: +usb_kill_anchored_urbs (&data->tx_anchor); +err_disable_wakeup: +if (data->oob_wake_irq) +device_init_wakeup (&data->udev->dev, false); out_free_dev:if (data->reset_gpio)gpiod_put (data->reset_gpio);
drivers/bus/sunxi-rsb.c +3 -0
@@ -446,6 +446,9 @@ static int regmap_sunxi_rsb_reg_write(void *context, unsigned int reg,struct sunxi_rsb_ctx *ctx = context;struct sunxi_rsb_device *rdev = ctx->rdev; +if (reg >0xff ) +return -EINVAL ; +return sunxi_rsb_write (rdev->rsb, rdev->rtaddr, reg, &val, ctx->size); }
drivers/char/hw_random/virtio-rng.c +21 -2
@@ -7,6 +7,7 @@#include <asm/barrier.h> #include <linux/err.h> #include <linux/hw_random.h> +#include <linux/nospec.h> #include <linux/scatterlist.h> #include <linux/spinlock.h> #include <linux/virtio.h>
@@ -66,8 +67,26 @@ static void request_entropy(struct virtrng_info *vi)static unsigned int copy_data (struct virtrng_info *vi,void *buf,unsigned int size) { - size = min_t(unsigned int, size, vi->data_avail); -memcpy (buf, vi->data + vi->data_idx, size); +unsigned int idx, avail; + +/* +* vi->data_avail was set from the device-reported used.len and +* vi->data_idx was advanced by previous copy_data() calls. A +* malicious or buggy virtio-rng backend can drive either past +* sizeof(vi->data). Clamp at point of use and harden the index +* with array_index_nospec() so the memcpy() below cannot be +* steered into adjacent slab memory, including under +* speculation. +*/ + avail = min_t(unsigned int, vi->data_avail, sizeof(vi->data)); +if (vi->data_idx >= avail) { + vi->data_avail =0 ; +request_entropy (vi); +return 0 ; + } + size = min_t(unsigned int, size, avail - vi->data_idx); + idx =array_index_nospec (vi->data_idx,sizeof (vi->data)); +memcpy (buf, vi->data + idx, size); vi->data_idx += size; vi->data_avail -= size;if (vi->data_avail ==0 )
drivers/char/tlclk.c +4 -0
@@ -263,6 +263,7 @@ static ssize_t tlclk_read(struct file *filp, char __user *buf, size_t count, }static const struct file_operations tlclk_fops = { + .owner =THIS_MODULE , .read = tlclk_read, .open = tlclk_open, .release = tlclk_release,
@@ -852,6 +853,9 @@ static void __exit tlclk_cleanup(void)misc_deregister (&tlclk_miscdev);unregister_chrdev (tlclk_major,"telco_clock" ); + got_event =1 ; +wake_up_all (&wq); +release_region (TLCLK_BASE ,8 );del_timer_sync (&switchover_timer);kfree (alarm_events);
drivers/char/tpm/eventlog/tpm1.c +2 -2
@@ -236,12 +236,12 @@ static int tpm1_binary_bios_measurements_show(struct seq_file *m, void *v) temp_ptr = (char *) &temp_event; -for (i =0 ; i < (sizeof (struct tcpa_event ) -1 ) ; i++) +for (i =0 ; i <sizeof (struct tcpa_event ); i++)seq_putc (m, temp_ptr[i]); temp_ptr = (char *) v; -for (i = (sizeof (struct tcpa_event ) -1 ); +for (i =sizeof (struct tcpa_event ); i < (sizeof (struct tcpa_event ) + temp_event.event_size); i++)seq_putc (m, temp_ptr[i]);
drivers/char/tpm/tpm-dev.c +1 -1
@@ -36,7 +36,7 @@ static int tpm_open(struct inode *inode, struct file *file)tpm_common_open (file, chip, priv,NULL ); -return 0 ; +return nonseekable_open (inode, file); out:clear_bit (0 , &chip->is_open);
drivers/char/tpm/tpmrm-dev.c +1 -1
@@ -29,7 +29,7 @@ static int tpmrm_open(struct inode *inode, struct file *file)tpm_common_open (file, chip, &priv->priv, &priv->space); -return 0 ; +return nonseekable_open (inode, file); }static int tpmrm_release (struct inode *inode,struct file *file)
drivers/clk/clk-scmi.c +2 -2
@@ -9,9 +9,9 @@#include <linux/device.h> #include <linux/err.h> #include <linux/of.h> +#include <linux/math64.h> #include <linux/module.h> #include <linux/scmi_protocol.h> -#include <asm/div64.h> static const struct scmi_clk_proto_ops *scmi_proto_clk_ops;
@@ -61,7 +61,7 @@ static long scmi_clk_round_rate(struct clk_hw *hw, unsigned long rate, ftmp = rate - fmin; ftmp += clk->info->range.step_size -1 ;/* to round up */ -do_div (ftmp, clk->info->range.step_size); + ftmp =div64_ul (ftmp, clk->info->range.step_size);return ftmp * clk->info->range.step_size + fmin; }
drivers/clk/imx/clk.c +2 -0
@@ -173,6 +173,8 @@ void imx_register_uart_clocks(unsigned int clk_count)int i; imx_uart_clocks =kcalloc (clk_count,sizeof (struct clk *),GFP_KERNEL ); +if (!imx_uart_clocks) +return ;if (!of_stdout)return ;
drivers/clk/qcom/a53-pll.c +1 -1
@@ -20,7 +20,7 @@static const struct pll_freq_tbl a53pll_freq[] = { {998400000 ,52 ,0x0 ,0x1 ,0 }, {1094400000 ,57 ,0x0 ,0x1 ,0 }, - {1152000000 ,62 ,0x0 ,0x1 ,0 }, + {1152000000 ,60 ,0x0 ,0x1 ,0 }, {1209600000 ,63 ,0x0 ,0x1 ,0 }, {1248000000 ,65 ,0x0 ,0x1 ,0 }, {1363200000 ,71 ,0x0 ,0x1 ,0 },
drivers/cpufreq/cpufreq.c +2 -0
@@ -1891,6 +1891,7 @@ void cpufreq_suspend(void)if (!cpufreq_driver)return ; +cpus_read_lock ();if (!has_target () && !cpufreq_driver->suspend) goto suspend;
@@ -1910,6 +1911,7 @@ void cpufreq_suspend(void) suspend: cpufreq_suspended = true; +cpus_read_unlock (); }/**
drivers/cpufreq/cpufreq_conservative.c +1 -11
@@ -103,10 +103,6 @@ static unsigned int cs_dbs_update(struct cpufreq_policy *policy)if (load > dbs_data->up_threshold) { dbs_info->down_skip =0 ; -/* if we are already at full speed then break out early */ -if (requested_freq == policy->max) - goto out; - requested_freq += freq_step;if (requested_freq > policy->max) requested_freq = policy->max;
@@ -123,13 +119,7 @@ static unsigned int cs_dbs_update(struct cpufreq_policy *policy)/* Check for frequency decrease */ if (load < cs_tuners->down_threshold) { -/* -* if we cannot reduce the frequency anymore, break out early -*/ -if (requested_freq == policy->min) - goto out; - -if (requested_freq > freq_step) +if (requested_freq > policy->min + freq_step) requested_freq -= freq_step;else requested_freq = policy->min;
drivers/cpufreq/intel_pstate.c +4 -2
@@ -2498,10 +2498,12 @@ static int intel_cpufreq_cpu_offline(struct cpufreq_policy *policy)* from getting to lower performance levels, so force the minimum * performance on CPU offline to prevent that from happening. */ -if (hwp_active) +if (hwp_active) {intel_pstate_hwp_offline (cpu); -else + }else {intel_pstate_set_min_pstate (cpu); + policy->cur = cpu->pstate.min_freq; + }intel_pstate_exit_perf_limits (policy);
drivers/cpufreq/pcc-cpufreq.c +2 -0
@@ -351,6 +351,8 @@ static int __init pcc_cpufreq_do_osc(acpi_handle *handle) }kfree (output.pointer); + output.pointer =NULL ; + output.length =ACPI_ALLOCATE_BUFFER ; capabilities[0 ] =0x0 ; capabilities[1 ] =0x1 ;
drivers/crypto/allwinner/Kconfig +0 -8
@@ -24,14 +24,6 @@ config CRYPTO_DEV_SUN4I_SS To compile this driver as a module, choose M here: the module will be called sun4i-ss. -config CRYPTO_DEV_SUN4I_SS_PRNG - bool "Support for Allwinner Security System PRNG" - depends on CRYPTO_DEV_SUN4I_SS - select CRYPTO_RNG - help - Select this option if you want to provide kernel-side support for - the Pseudo-Random Number Generator found in the Security System. - config CRYPTO_DEV_SUN4I_SS_DEBUG bool "Enable sun4i-ss stats" depends on CRYPTO_DEV_SUN4I_SS
drivers/crypto/allwinner/sun4i-ss/Makefile +0 -1
@@ -1,4 +1,3 @@ # SPDX-License-Identifier: GPL-2.0-only obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sun4i-ss.o sun4i-ss-y += sun4i-ss-core.o sun4i-ss-hash.o sun4i-ss-cipher.o -sun4i-ss-$(CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG) += sun4i-ss-prng.o
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c +0 -36
@@ -216,23 +216,6 @@ static struct sun4i_ss_alg_template ss_algs[] = { } } }, -#ifdef CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG -{ - .type = CRYPTO_ALG_TYPE_RNG, - .alg.rng = { - .base = { - .cra_name = "stdrng", - .cra_driver_name = "sun4i_ss_rng", - .cra_priority = 300, - .cra_ctxsize = 0, - .cra_module = THIS_MODULE, - }, - .generate = sun4i_ss_prng_generate, - .seed = sun4i_ss_prng_seed, - .seedsize = SS_SEED_LEN / BITS_PER_BYTE, - } -}, -#endif };static int sun4i_ss_dbgfs_read (struct seq_file *seq,void *v)
@@ -250,12 +233,6 @@ static int sun4i_ss_dbgfs_read(struct seq_file *seq, void *v) ss_algs[i].stat_req, ss_algs[i].stat_opti, ss_algs[i].stat_fb, ss_algs[i].stat_bytes);break ; -case CRYPTO_ALG_TYPE_RNG : -seq_printf (seq,"%s %s reqs=%lu tsize=%lu\n" , - ss_algs[i].alg.rng.base.cra_driver_name, - ss_algs[i].alg.rng.base.cra_name, - ss_algs[i].stat_req, ss_algs[i].stat_bytes); -break ;case CRYPTO_ALG_TYPE_AHASH : seq_printf(seq, "%s %s reqs=%lu\n", ss_algs[i].alg.hash.halg.base.cra_driver_name,
@@ -486,13 +463,6 @@ static int sun4i_ss_probe(struct platform_device *pdev) goto error_alg; }break ; -case CRYPTO_ALG_TYPE_RNG : - err =crypto_register_rng (&ss_algs[i].alg.rng); -if (err) { -dev_err (ss->dev,"Fail to register %s\n" , - ss_algs[i].alg.rng.base.cra_name); - } -break ; } }
@@ -512,9 +482,6 @@ static int sun4i_ss_probe(struct platform_device *pdev)case CRYPTO_ALG_TYPE_AHASH :crypto_unregister_ahash (&ss_algs[i].alg.hash);break ; -case CRYPTO_ALG_TYPE_RNG : -crypto_unregister_rng (&ss_algs[i].alg.rng); -break ; } } error_pm:
@@ -535,9 +502,6 @@ static int sun4i_ss_remove(struct platform_device *pdev)case CRYPTO_ALG_TYPE_AHASH :crypto_unregister_ahash (&ss_algs[i].alg.hash);break ; -case CRYPTO_ALG_TYPE_RNG : -crypto_unregister_rng (&ss_algs[i].alg.rng); -break ; } }
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-prng.c deleted +0 -69
69 lines not on this page · raw message
drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h +0 -20
@@ -31,8 +31,6 @@#include <crypto/internal/skcipher.h> #include <crypto/aes.h> #include <crypto/internal/des.h> -#include <crypto/internal/rng.h> -#include <crypto/rng.h> #define SS_CTL 0x00#define SS_KEY0 0x04
@@ -62,10 +60,6 @@/* SS_CTL configuration values */ -/* PRNG generator mode - bit 15 */ -#define SS_PRNG_ONESHOT (0 << 15) -#define SS_PRNG_CONTINUE (1 << 15) -/* IV mode for hash */ #define SS_IV_ARBITRARY (1 << 14)
@@ -94,14 +88,10 @@#define SS_OP_3DES (2 << 4)#define SS_OP_SHA1 (3 << 4)#define SS_OP_MD5 (4 << 4) -#define SS_OP_PRNG (5 << 4)/* Data end bit - bit 2 */ #define SS_DATA_END (1 << 2) -/* PRNG start bit - bit 1 */ -#define SS_PRNG_START (1 << 1) -/* SS Enable bit - bit 0 */ #define SS_DISABLED (0 << 0)#define SS_ENABLED (1 << 0)
@@ -128,9 +118,6 @@#define SS_RXFIFO_EMP_INT_ENABLE (1 << 2)#define SS_TXFIFO_AVA_INT_ENABLE (1 << 0) -#define SS_SEED_LEN 192 -#define SS_DATA_LEN 160 -/* * struct ss_variant - Describe SS hardware variant * @sha1_in_be: The SHA1 digest is given by SS in BE, and so need to be inverted.
@@ -151,9 +138,6 @@ struct sun4i_ss_ctx {char buf[4 *SS_RX_MAX ];/* buffer for linearize SG src */ char bufo[4 *SS_TX_MAX ];/* buffer for linearize SG dst */ spinlock_t slock;/* control the use of the device */ -#ifdef CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG -u32 seed[SS_SEED_LEN /BITS_PER_LONG ]; -#endif struct dentry *dbgfs_dir;struct dentry *dbgfs_stats; };
@@ -164,7 +148,6 @@ struct sun4i_ss_alg_template {union {struct skcipher_alg crypto;struct ahash_alg hash; -struct rng_alg rng; } alg;struct sun4i_ss_ctx *ss;unsigned long stat_req;
@@ -230,6 +213,3 @@ int sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen);int sun4i_ss_des3_setkey (struct crypto_skcipher *tfm,const u8 *key,unsigned int keylen); -int sun4i_ss_prng_generate (struct crypto_rng *tfm,const u8 *src, -unsigned int slen,u8 *dst,unsigned int dlen); -int sun4i_ss_prng_seed (struct crypto_rng *tfm,const u8 *seed,unsigned int slen);
drivers/crypto/amcc/crypto4xx_alg.c +0 -106
115 lines not on this page · raw message
drivers/crypto/amcc/crypto4xx_core.c +1 -129
203 lines not on this page · raw message
drivers/crypto/amcc/crypto4xx_core.h +0 -11
@@ -14,11 +14,8 @@#define __CRYPTO4XX_CORE_H__#include <linux/ratelimit.h> -#include <linux/mutex.h> #include <linux/scatterlist.h> -#include <crypto/internal/hash.h> #include <crypto/internal/aead.h> -#include <crypto/internal/rng.h> #include <crypto/internal/skcipher.h> #include "crypto4xx_reg_def.h" #include "crypto4xx_sa.h"
@@ -112,7 +109,6 @@ struct crypto4xx_core_device {u32 irq;struct tasklet_struct tasklet;spinlock_t lock; -struct mutex rng_lock; };struct crypto4xx_ctx {
@@ -135,9 +131,7 @@ struct crypto4xx_alg_common {u32 type;union {struct skcipher_alg cipher; -struct ahash_alg hash;struct aead_alg aead; -struct rng_alg rng; } u; };
@@ -182,11 +176,6 @@ int crypto4xx_encrypt_noiv_block(struct skcipher_request *req);int crypto4xx_decrypt_noiv_block (struct skcipher_request *req);int crypto4xx_rfc3686_encrypt (struct skcipher_request *req);int crypto4xx_rfc3686_decrypt (struct skcipher_request *req); -int crypto4xx_sha1_alg_init (struct crypto_tfm *tfm); -int crypto4xx_hash_digest (struct ahash_request *req); -int crypto4xx_hash_final (struct ahash_request *req); -int crypto4xx_hash_update (struct ahash_request *req); -int crypto4xx_hash_init (struct ahash_request *req);/* * Note: Only use this function to copy items that is word aligned.
drivers/crypto/amcc/crypto4xx_reg_def.h +0 -11
@@ -90,20 +90,9 @@#define CRYPTO4XX_BYTE_ORDER_CFG 0x000600d8#define CRYPTO4XX_ENDIAN_CFG 0x000600d8 -#define CRYPTO4XX_PRNG_STAT 0x00070000 -#define CRYPTO4XX_PRNG_STAT_BUSY 0x1#define CRYPTO4XX_PRNG_CTRL 0x00070004#define CRYPTO4XX_PRNG_SEED_L 0x00070008#define CRYPTO4XX_PRNG_SEED_H 0x0007000c - -#define CRYPTO4XX_PRNG_RES_0 0x00070020 -#define CRYPTO4XX_PRNG_RES_1 0x00070024 -#define CRYPTO4XX_PRNG_RES_2 0x00070028 -#define CRYPTO4XX_PRNG_RES_3 0x0007002C - -#define CRYPTO4XX_PRNG_LFSR_L 0x00070030 -#define CRYPTO4XX_PRNG_LFSR_H 0x00070034 -/* * Initialize CRYPTO ENGINE registers, and memory bases. */
drivers/crypto/amlogic/amlogic-gxl-core.c +1 -1
@@ -272,8 +272,8 @@ static int meson_crypto_probe(struct platform_device *pdev)return 0 ; error_alg:meson_unregister_algs (mc); -error_flow:meson_free_chanlist (mc,MAXFLOW -1 ); +error_flow:clk_disable_unprepare (mc->busclk);return err; }
drivers/crypto/atmel-ecc.c +1 -1
@@ -375,7 +375,7 @@ MODULE_DEVICE_TABLE(of, atmel_ecc_dt_ids);#endif static const struct i2c_device_id atmel_ecc_id[] = { - {"atecc508a" ,0 }, + {"atecc508a" }, { } };MODULE_DEVICE_TABLE (i2c, atmel_ecc_id);
drivers/crypto/atmel-sha204a.c +18 -11
@@ -18,6 +18,12 @@#include <linux/workqueue.h> #include "atmel-i2c.h" +/* +* According to review by Bill Cox [1], the ATSHA204 has very low entropy. +* [1] https://www.metzdowd.com/pipermail/cryptography/2014-December/023858.html +*/ +static const unsigned short atsha204_quality =1 ; +static void atmel_sha204a_rng_done (struct atmel_i2c_work_data *work_data,void *areq,int status) {
@@ -47,8 +53,8 @@ static int atmel_sha204a_rng_read_nonblocking(struct hwrng *rng, void *data,if (rng->priv) { work_data = (struct atmel_i2c_work_data *)rng->priv; - max =min (sizeof (work_data->cmd.data), max); -memcpy (data, &work_data->cmd.data, max); + max =min (RANDOM_RSP_SIZE -CMD_OVERHEAD_SIZE , max); +memcpy (data, &work_data->cmd.data[RSP_DATA_IDX ], max); rng->priv =0 ; }else { work_data =kmalloc (sizeof (*work_data),GFP_ATOMIC );
@@ -85,8 +91,8 @@ static int atmel_sha204a_rng_read(struct hwrng *rng, void *data, size_t max,if (ret)return ret; - max =min (sizeof (cmd.data), max); -memcpy (data, cmd.data, max); + max =min (RANDOM_RSP_SIZE -CMD_OVERHEAD_SIZE , max); +memcpy (data, &cmd.data[RSP_DATA_IDX ], max);return max; }
@@ -95,6 +101,7 @@ static int atmel_sha204a_probe(struct i2c_client *client, const struct i2c_device_id *id) {struct atmel_i2c_client_priv *i2c_priv; +const unsigned short *quality;int ret; ret =atmel_i2c_probe (client, id);
@@ -108,11 +115,9 @@ static int atmel_sha204a_probe(struct i2c_client *client, i2c_priv->hwrng.name =dev_name (&client->dev); i2c_priv->hwrng.read = atmel_sha204a_rng_read; -/* -* According to review by Bill Cox [1], this HWRNG has very low entropy. -* [1] https://www.metzdowd.com/pipermail/cryptography/2014-December/023858.html -*/ - i2c_priv->hwrng.quality =1 ; + quality =i2c_get_match_data (client); +if (quality) + i2c_priv->hwrng.quality = *quality; ret =devm_hwrng_register (&client->dev, &i2c_priv->hwrng);if (ret)
@@ -136,14 +141,16 @@ static int atmel_sha204a_remove(struct i2c_client *client)return 0 ; } -static const struct of_device_id atmel_sha204a_dt_ids[] = { +static const struct of_device_id atmel_sha204a_dt_ids[]__maybe_unused = { + { .compatible ="atmel,atsha204" , .data = &atsha204_quality }, { .compatible ="atmel,atsha204a" , }, {/* sentinel */ } };MODULE_DEVICE_TABLE (of, atmel_sha204a_dt_ids);static const struct i2c_device_id atmel_sha204a_id[] = { - {"atsha204a" ,0 }, + {"atsha204" , (kernel_ulong_t)&atsha204_quality }, + {"atsha204a" }, {/* sentinel */ } };MODULE_DEVICE_TABLE (i2c, atmel_sha204a_id);
drivers/crypto/caam/caamalg.c +6 -6
@@ -588,7 +588,7 @@ static int aead_setkey(struct crypto_aead *aead,dev_dbg (jrdev,"keylen %d enckeylen %d authkeylen %d\n" , keys.authkeylen + keys.enckeylen, keys.enckeylen, keys.authkeylen); - print_hex_dump_debug("key in @"__stringify(__LINE__)": ", + print_hex_dump_devel("key in @"__stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 );/*
@@ -624,7 +624,7 @@ static int aead_setkey(struct crypto_aead *aead,dma_sync_single_for_device (jrdev, ctx->key_dma, ctx->adata.keylen_pad + keys.enckeylen, ctx->dir); - print_hex_dump_debug("ctx.key@"__stringify(__LINE__)": ", + print_hex_dump_devel("ctx.key@"__stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , ctx->key, ctx->adata.keylen_pad + keys.enckeylen,1 );
@@ -665,7 +665,7 @@ static int gcm_setkey(struct crypto_aead *aead,if (err)return err; - print_hex_dump_debug("key in @"__stringify(__LINE__)": ", + print_hex_dump_devel("key in @"__stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 );memcpy (ctx->key, key, keylen);
@@ -686,7 +686,7 @@ static int rfc4106_setkey(struct crypto_aead *aead,if (err)return err; - print_hex_dump_debug("key in @"__stringify(__LINE__)": ", + print_hex_dump_devel("key in @"__stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 );memcpy (ctx->key, key, keylen);
@@ -712,7 +712,7 @@ static int rfc4543_setkey(struct crypto_aead *aead,if (err)return err; - print_hex_dump_debug("key in @"__stringify(__LINE__)": ", + print_hex_dump_devel("key in @"__stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 );memcpy (ctx->key, key, keylen);
@@ -739,7 +739,7 @@ static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key,u32 *desc;const bool is_rfc3686 = alg->caam.rfc3686; - print_hex_dump_debug("key in @"__stringify(__LINE__)": ", + print_hex_dump_devel("key in @"__stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 ); ctx->cdata.keylen = keylen;
drivers/crypto/caam/caamalg_qi.c +6 -6
@@ -207,7 +207,7 @@ static int aead_setkey(struct crypto_aead *aead, const u8 *key,dev_dbg (jrdev,"keylen %d enckeylen %d authkeylen %d\n" , keys.authkeylen + keys.enckeylen, keys.enckeylen, keys.authkeylen); - print_hex_dump_debug("key in @" __stringify(__LINE__)": ", + print_hex_dump_devel("key in @" __stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 );/*
@@ -243,7 +243,7 @@ static int aead_setkey(struct crypto_aead *aead, const u8 *key, ctx->adata.keylen_pad + keys.enckeylen, ctx->dir); - print_hex_dump_debug("ctx.key@" __stringify(__LINE__)": ", + print_hex_dump_devel("ctx.key@" __stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , ctx->key, ctx->adata.keylen_pad + keys.enckeylen,1 );
@@ -366,7 +366,7 @@ static int gcm_setkey(struct crypto_aead *aead,if (ret)return ret; - print_hex_dump_debug("key in @" __stringify(__LINE__)": ", + print_hex_dump_devel("key in @" __stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 );memcpy (ctx->key, key, keylen);
@@ -470,7 +470,7 @@ static int rfc4106_setkey(struct crypto_aead *aead,if (ret)return ret; - print_hex_dump_debug("key in @" __stringify(__LINE__)": ", + print_hex_dump_devel("key in @" __stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 );memcpy (ctx->key, key, keylen);
@@ -576,7 +576,7 @@ static int rfc4543_setkey(struct crypto_aead *aead,if (ret)return ret; - print_hex_dump_debug("key in @" __stringify(__LINE__)": ", + print_hex_dump_devel("key in @" __stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 );memcpy (ctx->key, key, keylen);
@@ -626,7 +626,7 @@ static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key,const bool is_rfc3686 = alg->caam.rfc3686;int ret =0 ; - print_hex_dump_debug("key in @" __stringify(__LINE__)": ", + print_hex_dump_devel("key in @" __stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 ); ctx->cdata.keylen = keylen;
drivers/crypto/caam/caamalg_qi2.c +6 -6
@@ -297,7 +297,7 @@ static int aead_setkey(struct crypto_aead *aead, const u8 *key,dev_dbg (dev,"keylen %d enckeylen %d authkeylen %d\n" , keys.authkeylen + keys.enckeylen, keys.enckeylen, keys.authkeylen); - print_hex_dump_debug("key in @" __stringify(__LINE__)": ", + print_hex_dump_devel("key in @" __stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 ); ctx->adata.keylen = keys.authkeylen;
@@ -311,7 +311,7 @@ static int aead_setkey(struct crypto_aead *aead, const u8 *key,memcpy (ctx->key + ctx->adata.keylen_pad, keys.enckey, keys.enckeylen);dma_sync_single_for_device (dev, ctx->key_dma, ctx->adata.keylen_pad + keys.enckeylen, ctx->dir); - print_hex_dump_debug("ctx.key@" __stringify(__LINE__)": ", + print_hex_dump_devel("ctx.key@" __stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , ctx->key, ctx->adata.keylen_pad + keys.enckeylen,1 );
@@ -728,7 +728,7 @@ static int gcm_setkey(struct crypto_aead *aead, ret =aes_check_keylen (keylen);if (ret)return ret; - print_hex_dump_debug("key in @" __stringify(__LINE__)": ", + print_hex_dump_devel("key in @" __stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 );memcpy (ctx->key, key, keylen);
@@ -824,7 +824,7 @@ static int rfc4106_setkey(struct crypto_aead *aead,if (ret)return ret; - print_hex_dump_debug("key in @" __stringify(__LINE__)": ", + print_hex_dump_devel("key in @" __stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 );memcpy (ctx->key, key, keylen);
@@ -923,7 +923,7 @@ static int rfc4543_setkey(struct crypto_aead *aead,if (ret)return ret; - print_hex_dump_debug("key in @" __stringify(__LINE__)": ", + print_hex_dump_devel("key in @" __stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 );memcpy (ctx->key, key, keylen);
@@ -951,7 +951,7 @@ static int skcipher_setkey(struct crypto_skcipher *skcipher, const u8 *key,u32 *desc;const bool is_rfc3686 = alg->caam.rfc3686; - print_hex_dump_debug("key in @" __stringify(__LINE__)": ", + print_hex_dump_devel("key in @" __stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 ); ctx->cdata.keylen = keylen;
drivers/crypto/caam/caamhash.c +2 -2
@@ -495,7 +495,7 @@ static int axcbc_setkey(struct crypto_ahash *ahash, const u8 *key, DMA_TO_DEVICE); ctx->adata.keylen = keylen; - print_hex_dump_debug("axcbc ctx.key@" __stringify(__LINE__)" : ", + print_hex_dump_devel("axcbc ctx.key@" __stringify(__LINE__)" : ",DUMP_PREFIX_ADDRESS ,16 ,4 , ctx->key, keylen,1 );return axcbc_set_sh_desc (ahash);
@@ -515,7 +515,7 @@ static int acmac_setkey(struct crypto_ahash *ahash, const u8 *key, ctx->adata.key_virt = key; ctx->adata.keylen = keylen; - print_hex_dump_debug("acmac ctx.key@" __stringify(__LINE__)" : ", + print_hex_dump_devel("acmac ctx.key@" __stringify(__LINE__)" : ",DUMP_PREFIX_ADDRESS ,16 ,4 , key, keylen,1 );return acmac_set_sh_desc (ahash);
drivers/crypto/caam/key_gen.c +2 -2
@@ -58,7 +58,7 @@ int gen_split_key(struct device *jrdev, u8 *key_out,dev_dbg (jrdev,"split keylen %d split keylen padded %d\n" , adata->keylen, adata->keylen_pad); - print_hex_dump_debug("ctx.key@" __stringify(__LINE__)": ", + print_hex_dump_devel("ctx.key@" __stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key_in, keylen,1 );if (local_max > max_keylen)
@@ -113,7 +113,7 @@ int gen_split_key(struct device *jrdev, u8 *key_out,wait_for_completion (&result.completion); ret = result.err; - print_hex_dump_debug("ctx.key@"__stringify(__LINE__)": ", + print_hex_dump_devel("ctx.key@"__stringify(__LINE__)": ",DUMP_PREFIX_ADDRESS ,16 ,4 , key_out, adata->keylen_pad,1 ); }
drivers/crypto/cavium/cpt/cptvf_reqmanager.c +2 -2
@@ -108,8 +108,8 @@ static int setup_sgio_components(struct cpt_vf *cptvf, struct buf_ptr *list, sg_cleanup:for (j =0 ; j < i; j++) {if (list[j].dma_addr) { -dma_unmap_single (&pdev->dev, list[i].dma_addr, - list[i].size,DMA_BIDIRECTIONAL ); +dma_unmap_single (&pdev->dev, list[j].dma_addr, + list[j].size,DMA_BIDIRECTIONAL ); } list[j].dma_addr =0 ;
drivers/crypto/ccp/sev-dev.c +2 -1
@@ -806,7 +806,8 @@ static int sev_ioctl_do_pdh_export(struct sev_issue_cmd *argp, bool writable)/* Userspace wants to query the certificate length. */ if (!input.pdh_cert_address || !input.pdh_cert_len || - !input.cert_chain_address) + !input.cert_chain_address || + !input.cert_chain_len) goto cmd; input_pdh_cert_address = (void __user *)input.pdh_cert_address;
drivers/crypto/hisilicon/Kconfig +0 -1
@@ -78,6 +78,5 @@ config CRYPTO_DEV_HISI_TRNG tristate "Support for HISI TRNG Driver" depends on ARM64 && ACPI select HW_RANDOM - select CRYPTO_RNG help Support for HiSilicon TRNG Driver.
drivers/crypto/hisilicon/qm.c +2 -2
@@ -5113,8 +5113,6 @@ void hisi_qm_reset_prepare(struct pci_dev *pdev)u32 delay =0 ;int ret; -hisi_qm_dev_err_uninit (pf_qm); -/* * Check whether there is an ECC mbit error, If it occurs, need to * wait for soft reset to fix it.
@@ -5131,6 +5129,8 @@ void hisi_qm_reset_prepare(struct pci_dev *pdev)return ; } +hisi_qm_dev_err_uninit (pf_qm); +/* PF obtains the information of VF by querying the register. */ if (qm->fun_type ==QM_HW_PF )qm_cmd_uninit (qm);
drivers/crypto/hisilicon/trng/trng.c +2 -296
355 lines not on this page · raw message
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c +2 -2
@@ -157,8 +157,8 @@ static inline int setup_sgio_components(struct pci_dev *pdev, sg_cleanup:for (j =0 ; j < i; j++) {if (list[j].dma_addr) { -dma_unmap_single (&pdev->dev, list[i].dma_addr, - list[i].size,DMA_BIDIRECTIONAL ); +dma_unmap_single (&pdev->dev, list[j].dma_addr, + list[j].size,DMA_BIDIRECTIONAL ); } list[j].dma_addr =0 ;
drivers/crypto/qat/qat_common/adf_accel_devices.h +2 -0
@@ -248,6 +248,8 @@ struct adf_accel_dev {struct {/* protects VF2PF interrupts access */ spinlock_t vf2pf_ints_lock; +/* prevents VF2PF handling from racing with VF state teardown */ +bool vf2pf_disabled;/* vf_info is non-zero when SR-IOV is init'ed */ struct adf_accel_vf_info *vf_info; } pf;
drivers/crypto/qat/qat_common/adf_aer.c +4 -3
@@ -116,13 +116,14 @@ static int adf_dev_aer_schedule_reset(struct adf_accel_dev *accel_dev,struct adf_reset_dev_data *reset_data;if (!adf_dev_started (accel_dev) || -test_bit (ADF_STATUS_RESTARTING , &accel_dev->status)) +test_and_set_bit (ADF_STATUS_RESTARTING , &accel_dev->status))return 0 ; -set_bit (ADF_STATUS_RESTARTING , &accel_dev->status); reset_data =kzalloc (sizeof (*reset_data),GFP_KERNEL ); -if (!reset_data) +if (!reset_data) { +clear_bit (ADF_STATUS_RESTARTING , &accel_dev->status);return -ENOMEM ; + } reset_data->accel_dev = accel_dev;init_completion (&reset_data->compl); reset_data->mode = mode;
drivers/crypto/qat/qat_common/adf_common_drv.h +4 -0
@@ -120,6 +120,7 @@ void qat_asym_algs_unregister(void);int adf_isr_resource_alloc (struct adf_accel_dev *accel_dev);void adf_isr_resource_free (struct adf_accel_dev *accel_dev); +void adf_isr_sync_ae_cluster (struct adf_accel_dev *accel_dev);int adf_vf_isr_resource_alloc (struct adf_accel_dev *accel_dev);void adf_vf_isr_resource_free (struct adf_accel_dev *accel_dev);
@@ -189,6 +190,9 @@ void adf_disable_vf2pf_interrupts_irq(struct adf_accel_dev *accel_dev, u32 vf_mask);void adf_enable_vf2pf_interrupts (struct adf_accel_dev *accel_dev,u32 vf_mask); +void adf_enable_all_vf2pf_interrupts (struct adf_accel_dev *accel_dev, +u32 num_vfs); +void adf_disable_all_vf2pf_interrupts (struct adf_accel_dev *accel_dev);void adf_enable_pf2vf_interrupts (struct adf_accel_dev *accel_dev);void adf_disable_pf2vf_interrupts (struct adf_accel_dev *accel_dev);void adf_schedule_vf2pf_handler (struct adf_accel_vf_info *vf_info);
drivers/crypto/qat/qat_common/adf_isr.c +18 -0
@@ -135,6 +135,24 @@ static irqreturn_t adf_msix_isr_ae(int irq, void *dev_ptr)return IRQ_NONE ; } +void adf_isr_sync_ae_cluster (struct adf_accel_dev *accel_dev) +{ +struct adf_accel_pci *pci_dev_info = &accel_dev->accel_pci_dev; +struct adf_hw_device_data *hw_data = accel_dev->hw_device; +struct msix_entry *msixe = pci_dev_info->msix_entries.entries; +u32 num_entries = pci_dev_info->msix_entries.num_entries; +u32 irq_idx; + +if (!test_bit (ADF_STATUS_IRQ_ALLOCATED , &accel_dev->status) || !msixe) +return ; + + irq_idx = num_entries >1 ? hw_data->num_banks :0 ; +if (irq_idx >= num_entries) +return ; + +synchronize_irq (msixe[irq_idx].vector); +} +static int adf_request_irqs (struct adf_accel_dev *accel_dev) {struct adf_accel_pci *pci_dev_info = &accel_dev->accel_pci_dev;
drivers/crypto/qat/qat_common/adf_pf2vf_msg.c +27 -0
@@ -40,6 +40,23 @@ void adf_enable_vf2pf_interrupts(struct adf_accel_dev *accel_dev, u32 vf_mask)unsigned long flags;spin_lock_irqsave (&accel_dev->pf.vf2pf_ints_lock, flags); +if (!READ_ONCE (accel_dev->pf.vf2pf_disabled)) +__adf_enable_vf2pf_interrupts (accel_dev, vf_mask); +spin_unlock_irqrestore (&accel_dev->pf.vf2pf_ints_lock, flags); +} + +void adf_enable_all_vf2pf_interrupts (struct adf_accel_dev *accel_dev, +u32 num_vfs) +{ +unsigned long flags; +u32 vf_mask; + + vf_mask =BIT_ULL (num_vfs) -1 ; +if (!vf_mask) +return ; + +spin_lock_irqsave (&accel_dev->pf.vf2pf_ints_lock, flags); +WRITE_ONCE (accel_dev->pf.vf2pf_disabled, false);__adf_enable_vf2pf_interrupts (accel_dev, vf_mask);spin_unlock_irqrestore (&accel_dev->pf.vf2pf_ints_lock, flags); }
@@ -84,6 +101,16 @@ void adf_disable_vf2pf_interrupts_irq(struct adf_accel_dev *accel_dev, u32 vf_maspin_unlock (&accel_dev->pf.vf2pf_ints_lock); } +void adf_disable_all_vf2pf_interrupts (struct adf_accel_dev *accel_dev) +{ +unsigned long flags; + +spin_lock_irqsave (&accel_dev->pf.vf2pf_ints_lock, flags); +WRITE_ONCE (accel_dev->pf.vf2pf_disabled, true); +__adf_disable_vf2pf_interrupts (accel_dev,GENMASK (31 ,0 )); +spin_unlock_irqrestore (&accel_dev->pf.vf2pf_ints_lock, flags); +} +static int __adf_iov_putmsg (struct adf_accel_dev *accel_dev,u32 msg,u8 vf_nr) {struct adf_accel_pci *pci_info = &accel_dev->accel_pci_dev;
drivers/crypto/qat/qat_common/adf_sriov.c +23 -4
@@ -19,15 +19,26 @@ static void adf_iov_send_resp(struct work_struct *work) {struct adf_pf2vf_resp *pf2vf_resp = container_of(work, struct adf_pf2vf_resp, pf2vf_resp_work); +struct adf_accel_vf_info *vf_info = pf2vf_resp->vf_info; +struct adf_accel_dev *accel_dev = vf_info->accel_dev; -adf_vf2pf_req_hndl (pf2vf_resp->vf_info); +if (READ_ONCE (accel_dev->pf.vf2pf_disabled)) + goto out; + +adf_vf2pf_req_hndl (vf_info); + +out:kfree (pf2vf_resp); }void adf_schedule_vf2pf_handler (struct adf_accel_vf_info *vf_info) { +struct adf_accel_dev *accel_dev = vf_info->accel_dev;struct adf_pf2vf_resp *pf2vf_resp; +if (READ_ONCE (accel_dev->pf.vf2pf_disabled)) +return ; + pf2vf_resp =kzalloc (sizeof (*pf2vf_resp),GFP_ATOMIC );if (!pf2vf_resp)return ;
@@ -37,6 +48,12 @@ void adf_schedule_vf2pf_handler(struct adf_accel_vf_info *vf_info)queue_work (pf2vf_resp_wq, &pf2vf_resp->pf2vf_resp_work); } +static void adf_flush_pf2vf_resp_wq (void ) +{ +if (pf2vf_resp_wq) +flush_workqueue (pf2vf_resp_wq); +} +static int adf_enable_sriov (struct adf_accel_dev *accel_dev) {struct pci_dev *pdev =accel_to_pci_dev (accel_dev);
@@ -63,7 +80,7 @@ static int adf_enable_sriov(struct adf_accel_dev *accel_dev)/* Enable VF to PF interrupts for all VFs */ if (hw_data->get_pf2vf_offset) -adf_enable_vf2pf_interrupts (accel_dev,BIT_ULL (totalvfs) -1 ); +adf_enable_all_vf2pf_interrupts (accel_dev, totalvfs);/* * Due to the hardware design, when SR-IOV and the ring arbiter
@@ -97,9 +114,11 @@ void adf_disable_sriov(struct adf_accel_dev *accel_dev)pci_disable_sriov (accel_to_pci_dev (accel_dev)); -/* Disable VF to PF interrupts */ +/* Block VF2PF work and disable VF to PF interrupts */ if (hw_data->get_pf2vf_offset) -adf_disable_vf2pf_interrupts (accel_dev,GENMASK (31 ,0 )); +adf_disable_all_vf2pf_interrupts (accel_dev); +adf_isr_sync_ae_cluster (accel_dev); +adf_flush_pf2vf_resp_wq ();/* Clear Valid bits in AE Thread to PCIe Function Mapping */ if (hw_data->configure_iov_threads)
drivers/crypto/qat/qat_common/qat_asym_algs.c +5 -5
@@ -1032,7 +1032,7 @@ static void qat_rsa_setkey_crt(struct qat_rsa_ctx *ctx, struct rsa_key *rsa_key) ptr = rsa_key->p; len = rsa_key->p_sz;qat_rsa_drop_leading_zeros (&ptr, &len); -if (!len) +if (!len || len > half_key_sz) goto err; ctx->p =dma_alloc_coherent (dev, half_key_sz, &ctx->dma_p,GFP_KERNEL );if (!ctx->p)
@@ -1043,7 +1043,7 @@ static void qat_rsa_setkey_crt(struct qat_rsa_ctx *ctx, struct rsa_key *rsa_key) ptr = rsa_key->q; len = rsa_key->q_sz;qat_rsa_drop_leading_zeros (&ptr, &len); -if (!len) +if (!len || len > half_key_sz) goto free_p; ctx->q =dma_alloc_coherent (dev, half_key_sz, &ctx->dma_q,GFP_KERNEL );if (!ctx->q)
@@ -1054,7 +1054,7 @@ static void qat_rsa_setkey_crt(struct qat_rsa_ctx *ctx, struct rsa_key *rsa_key) ptr = rsa_key->dp; len = rsa_key->dp_sz;qat_rsa_drop_leading_zeros (&ptr, &len); -if (!len) +if (!len || len > half_key_sz) goto free_q; ctx->dp =dma_alloc_coherent (dev, half_key_sz, &ctx->dma_dp,GFP_KERNEL );
@@ -1066,7 +1066,7 @@ static void qat_rsa_setkey_crt(struct qat_rsa_ctx *ctx, struct rsa_key *rsa_key) ptr = rsa_key->dq; len = rsa_key->dq_sz;qat_rsa_drop_leading_zeros (&ptr, &len); -if (!len) +if (!len || len > half_key_sz) goto free_dp; ctx->dq =dma_alloc_coherent (dev, half_key_sz, &ctx->dma_dq,GFP_KERNEL );
@@ -1078,7 +1078,7 @@ static void qat_rsa_setkey_crt(struct qat_rsa_ctx *ctx, struct rsa_key *rsa_key) ptr = rsa_key->qinv; len = rsa_key->qinv_sz;qat_rsa_drop_leading_zeros (&ptr, &len); -if (!len) +if (!len || len > half_key_sz) goto free_dq; ctx->qinv =dma_alloc_coherent (dev, half_key_sz, &ctx->dma_qinv,GFP_KERNEL );
drivers/crypto/talitos.c +19 -7
@@ -321,19 +321,31 @@ static int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,return -EINPROGRESS ; } -static __be32 get_request_hdr (struct talitos_request *request,bool is_sec1) +static __be32 get_request_hdr (struct device *dev, +struct talitos_request *request,bool is_sec1) {struct talitos_edesc *edesc; -if (!is_sec1) +if (!is_sec1) { +dma_sync_single_for_cpu (dev, request->dma_desc, +TALITOS_DESC_SIZE ,DMA_BIDIRECTIONAL ); +return request->desc->hdr; + } -if (!request->desc->next_desc) +if (!request->desc->next_desc) { +dma_sync_single_for_cpu (dev, request->dma_desc, +TALITOS_DESC_SIZE ,DMA_BIDIRECTIONAL );return request->desc->hdr1; + }else { +dma_sync_single_for_cpu (dev, +be32_to_cpu (request->desc->next_desc), +TALITOS_DESC_SIZE ,DMA_BIDIRECTIONAL );
Lines of this file are not shown. View the raw message.
drivers/dma-buf/dma-fence-unwrap.c deleted +0 -176
176 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c +45 -35
80 lines not on this page · raw message
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +11 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c +0 -22
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/hid/hid-appleir.c +35 -10
45 lines not on this page · raw message
drivers/hid/hid-sensor-hub.c +71 -6
77 lines not on this page · raw message
drivers/hwtracing/coresight/coresight-cti-platform.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/hwtracing/coresight/coresight-etb10.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/hwtracing/coresight/coresight-etm4x-core.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/i2c/i2c-core-base.c +55 -28
83 lines not on this page · raw message
drivers/iio/common/inv_sensors/Kconfig new file +7 -0
Lines of this file are not shown. View the raw message.
drivers/iio/common/inv_sensors/Makefile new file +6 -0
Lines of this file are not shown. View the raw message.
drivers/iio/common/inv_sensors/inv_sensors_timestamp.c new file +191 -0
191 lines not on this page · raw message
drivers/iio/common/st_sensors/st_sensors_core.c +17 -6
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c +22 -13
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c +37 -24
61 lines not on this page · raw message
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.h +3 -0
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_icm42600/inv_icm42600_core.c +19 -5
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c +22 -13
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_icm42600/inv_icm42600_timestamp.c deleted +0 -195
195 lines not on this page · raw message
drivers/iio/imu/inv_icm42600/inv_icm42600_timestamp.h deleted +0 -85
85 lines not on this page · raw message
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +23 -7
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h +8 -10
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c +8 -75
83 lines not on this page · raw message
drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c +10 -1
Lines of this file are not shown. View the raw message.
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c +20 -1
Lines of this file are not shown. View the raw message.
drivers/iio/orientation/hid-sensor-rotation.c +38 -2
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/hns/hns_roce_hem.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/hns/hns_roce_main.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/mlx4/sysfs.c +27 -18
45 lines not on this page · raw message
drivers/input/joystick/iforce/iforce-packets.c +11 -7
Lines of this file are not shown. View the raw message.
drivers/input/misc/ims-pcu.c +101 -14
115 lines not on this page · raw message
drivers/md/dm-thin-metadata.c +21 -46
67 lines not on this page · raw message
drivers/media/platform/qcom/venus/helpers.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/media/platform/qcom/venus/hfi_platform_v4.c +10 -10
Lines of this file are not shown. View the raw message.
drivers/media/platform/qcom/venus/hfi_platform_v6.c +8 -8
Lines of this file are not shown. View the raw message.
drivers/media/platform/rockchip/rga/rga-hw.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/media/platform/rockchip/rga/rga-hw.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/mtd/nand/onenand/onenand_samsung.c +6 -1
Lines of this file are not shown. View the raw message.
drivers/mtd/nand/raw/pl35x-nand-controller.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/amazon/ena/ena_netdev.c +21 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c +10 -8
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +0 -8
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/freescale/fman/fman.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/freescale/gianfar.c +11 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/Makefile +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/mbox.h +28 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/npc.h +30 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu.c +16 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu.h +24 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c +8 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c +69 -2
71 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c +64 -9
73 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c +268 -39
307 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.h new file +17 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c new file +1645 -0
1,645 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.h new file +214 -0
214 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.h +15 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c +25 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +38 -6
44 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microsoft/mana/gdma_main.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microsoft/mana/mana_en.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qede/qede_fp.c +7 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h +20 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c +20 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h +7 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c +231 -32
263 lines not on this page · raw message
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c +7 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/mwifiex/join.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ralink/rt2x00/rt2x00dev.c +10 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtw88/pci.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/pci/controller/dwc/pcie-designware-host.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/pci/controller/mobiveil/pcie-mobiveil-host.c +3 -5
Lines of this file are not shown. View the raw message.
drivers/pci/controller/pci-host-common.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/pci/controller/pcie-altera-msi.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/pci/controller/pcie-mediatek-gen3.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/pci/controller/pcie-mediatek.c +79 -44
123 lines not on this page · raw message
drivers/pci/controller/pcie-rcar-host.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/pci/controller/pcie-xilinx-nwl.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/pci/endpoint/functions/pci-epf-ntb.c +11 -10
Lines of this file are not shown. View the raw message.
drivers/pci/endpoint/functions/pci-epf-vntb.c +3 -6
Lines of this file are not shown. View the raw message.
drivers/pci/pci.c +0 -136
136 lines not on this page · raw message
drivers/pci/rebar.c new file +218 -0
218 lines not on this page · raw message
drivers/pci/setup-bus.c +71 -30
101 lines not on this page · raw message
drivers/pci/setup-res.c +0 -53
53 lines not on this page · raw message
drivers/pinctrl/mediatek/pinctrl-mt8167.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/pinctrl/mediatek/pinctrl-mt8516.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/scsi/scsi_transport_sas.c +12 -48
60 lines not on this page · raw message
drivers/slimbus/qcom-ngd-ctrl.c +68 -39
107 lines not on this page · raw message
drivers/staging/media/atomisp/pci/atomisp_cmd.c +2 -4
Lines of this file are not shown. View the raw message.
drivers/staging/media/atomisp/pci/sh_css.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/staging/media/ipu3/ipu3-css-params.c +6 -2
Lines of this file are not shown. View the raw message.
drivers/staging/media/sunxi/cedrus/cedrus.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8723bs/core/rtw_ieee80211.c +71 -58
129 lines not on this page · raw message
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +19 -1
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8723bs/core/rtw_security.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8723bs/core/rtw_wlan_util.c +18 -5
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +48 -40
88 lines not on this page · raw message
drivers/target/target_core_fabric_lib.c +69 -20
89 lines not on this page · raw message
drivers/usb/dwc3/gadget.c +36 -7
43 lines not on this page · raw message
drivers/usb/misc/idmouse.c +22 -23
45 lines not on this page · raw message
drivers/usb/serial/digi_acceleport.c +33 -10
43 lines not on this page · raw message
drivers/vdpa/vdpa_user/vduse_dev.c +40 -24
64 lines not on this page · raw message
fs/btrfs/inode.c +68 -9
77 lines not on this page · raw message
fs/cifs/cifs_swn.c +266 -65
331 lines not on this page · raw message
fs/cifs/smb2misc.c +82 -48
130 lines not on this page · raw message
fs/cifs/smb2ops.c +63 -55
118 lines not on this page · raw message
fs/cifs/smb2pdu.c +59 -59
118 lines not on this page · raw message
fs/cifs/smb2pdu.h +35 -338
373 lines not on this page · raw message
fs/cifs/trace.h +93 -2
95 lines not on this page · raw message
fs/configfs/dir.c +44 -13
57 lines not on this page · raw message
fs/hfs/bnode.c +29 -27
56 lines not on this page · raw message
fs/hfs/btree.h +36 -35
71 lines not on this page · raw message
fs/hfs/hfs_fs.h +50 -35
85 lines not on this page · raw message
fs/hfsplus/bnode.c +32 -30
62 lines not on this page · raw message
fs/ksmbd/connection.c +48 -1
49 lines not on this page · raw message
fs/nfs/flexfilelayout/flexfilelayout.c +33 -0
Lines of this file are not shown. View the raw message.
fs/nfs/flexfilelayout/flexfilelayout.h +16 -0
Lines of this file are not shown. View the raw message.
fs/nfsd/nfs4recover.c +50 -70
120 lines not on this page · raw message
fs/ntfs3/fslog.c +87 -10
97 lines not on this page · raw message
fs/ocfs2/inode.c +148 -2
150 lines not on this page · raw message
fs/proc/base.c +82 -100
182 lines not on this page · raw message
fs/proc/fd.c +33 -40
73 lines not on this page · raw message
fs/smbfs_common/smb2pdu.h new file +318 -0
318 lines not on this page · raw message
fs/xfs/xfs_log_recover.c +12 -64
76 lines not on this page · raw message
include/linux/iio/common/inv_sensors_timestamp.h new file +94 -0
94 lines not on this page · raw message
include/uapi/sound/asequencer.h +38 -16
54 lines not on this page · raw message
kernel/audit.c +78 -7
85 lines not on this page · raw message
net/batman-adv/distributed-arp-table.c +28 -2
Lines of this file are not shown. View the raw message.
net/bluetooth/l2cap_core.c +92 -33
125 lines not on this page · raw message
net/bluetooth/sco.c +39 -21
60 lines not on this page · raw message
net/can/bcm.c +67 -23
90 lines not on this page · raw message
net/core/filter.c +37 -7
44 lines not on this page · raw message
net/ipv6/ip6_fib.c +38 -35
73 lines not on this page · raw message
net/ipv6/mcast.c +99 -66
165 lines not on this page · raw message
net/ipv6/netfilter/nf_conntrack_reasm.c +2 -1
Lines of this file are not shown. View the raw message.
net/netfilter/nf_tables_api.c +37 -4
41 lines not on this page · raw message
net/netfilter/nft_log.c +1 -57
58 lines not on this page · raw message
net/netfilter/xt_AUDIT.c +1 -57
58 lines not on this page · raw message
net/openvswitch/flow_netlink.c +157 -44
201 lines not on this page · raw message
net/sched/sch_codel.c +43 -5
48 lines not on this page · raw message
net/sched/sch_fq_codel.c +39 -2
41 lines not on this page · raw message
net/sctp/diag.c +32 -35
67 lines not on this page · raw message
samples/trace_events/trace-events-sample.c +4 -0
Lines of this file are not shown. View the raw message.
security/apparmor/domain.c +46 -12
58 lines not on this page · raw message
security/apparmor/include/policy_unpack.h +19 -0
Lines of this file are not shown. View the raw message.
sound/core/seq/seq_clientmgr.c +128 -44
172 lines not on this page · raw message
sound/usb/mixer_quirks.c +59 -42
101 lines not on this page · raw message
sound/usb/mixer_us16x08.c +76 -51
127 lines not on this page · raw message
tools/lib/bpf/strset.c +41 -21
62 lines not on this page · raw message
tools/testing/selftests/bpf/progs/bpf_iter_task_vma.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/vm/compaction_test.c +3 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/vm/hmm-tests.c +52 -11
63 lines not on this page · raw message
tools/usb/usbip/libsrc/usbip_device_driver.c +4 -0
Lines of this file are not shown. View the 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.