Linux 5.10.248
Greg Kroah-Hartman
maintainerI'm announcing the release of the 5.10.248 kernel.
All users of the 5.10 kernel series must upgrade.
The updated 5.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.10.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/filesystems/mount_api.rst | 1 Documentation/process/2.Process.rst | 6 Makefile | 2 arch/alpha/include/uapi/asm/ioctls.h | 8 arch/arm/Kconfig | 2 arch/arm/boot/dts/imx6q-ba16.dtsi | 2 arch/arm/include/asm/word-at-a-time.h | 10 arch/arm64/net/bpf_jit_comp.c | 2 arch/mips/sgi-ip22/ip22-gio.c | 3 arch/parisc/kernel/asm-offsets.c | 2 arch/parisc/kernel/entry.S | 16 arch/powerpc/boot/addnote.c | 7 arch/powerpc/kernel/process.c | 5 arch/powerpc/mm/book3s64/internal.h | 1 arch/powerpc/mm/book3s64/mmu_context.c | 2 arch/powerpc/mm/book3s64/slb.c | 88 ---- arch/powerpc/mm/ptdump/hashpagetable.c | 6 arch/powerpc/platforms/pseries/cmm.c | 5 arch/s390/kernel/smp.c | 1 arch/x86/crypto/blake2s-core.S | 4 arch/x86/events/intel/core.c | 4 arch/x86/include/asm/ptrace.h | 20 arch/x86/include/asm/stacktrace.h | 3 arch/x86/kernel/dumpstack.c | 29 + arch/x86/kernel/unwind_frame.c | 11 arch/x86/kvm/lapic.c | 32 + arch/x86/kvm/svm/nested.c | 4 arch/x86/kvm/svm/svm.c | 18 block/blk-mq.c | 18 block/blk-throttle.c | 16 crypto/af_alg.c | 5 crypto/algif_hash.c | 3 crypto/algif_rng.c | 3 crypto/asymmetric_keys/asymmetric_type.c | 14 crypto/seqiv.c | 8 drivers/acpi/acpica/nswalk.c | 9 drivers/acpi/apei/ghes.c | 16 drivers/acpi/cppc_acpi.c | 3 drivers/acpi/processor_core.c | 2 drivers/acpi/property.c | 9 drivers/amba/tegra-ahb.c | 1 drivers/atm/he.c | 3 drivers/base/power/runtime.c | 22 - drivers/block/floppy.c | 2 drivers/block/nbd.c | 92 ++-- drivers/block/rnbd/rnbd-clt.c | 20 drivers/block/rnbd/rnbd-clt.h | 2 drivers/bluetooth/btusb.c | 2 drivers/bus/fsl-mc/fsl-mc-bus.c | 6 drivers/bus/ti-sysc.c | 11 drivers/char/applicom.c | 5 drivers/char/ipmi/ipmi_msghandler.c | 20 drivers/char/tpm/tpm-chip.c | 1 drivers/char/tpm/tpm1-cmd.c | 5 drivers/char/tpm/tpm2-cmd.c | 8 drivers/char/virtio_console.c | 2 drivers/clk/mvebu/cp110-system-controller.c | 20 drivers/clk/renesas/r9a06g032-clocks.c | 7 drivers/cpufreq/cpufreq-nforce2.c | 3 drivers/cpufreq/s5pv210-cpufreq.c | 6 drivers/cpufreq/scmi-cpufreq.c | 10 drivers/crypto/ccree/cc_buffer_mgr.c | 6 drivers/firewire/nosy.c | 47 +- drivers/firmware/efi/cper-arm.c | 52 +- drivers/firmware/efi/cper.c | 60 ++ drivers/firmware/imx/imx-scu-irq.c | 26 - drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 8 drivers/gpu/drm/amd/display/dc/core/dc_surface.c | 2 drivers/gpu/drm/gma500/framebuffer.c | 44 -- drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 2 drivers/gpu/drm/nouveau/dispnv50/atom.h | 13 drivers/gpu/drm/nouveau/dispnv50/wndw.c | 2 drivers/gpu/drm/panel/panel-visionox-rm69299.c | 2 drivers/gpu/drm/pl111/pl111_drv.c | 2 drivers/gpu/drm/vgem/vgem_fence.c | 2 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 17 drivers/hid/hid-core.c | 7 drivers/hid/hid-input.c | 18 drivers/hid/hid-logitech-dj.c | 56 +- drivers/hid/hid-quirks.c | 9 drivers/hwmon/applesmc.c | 34 - drivers/hwmon/ibmpex.c | 9 drivers/hwmon/ina209.c | 6 drivers/hwmon/ina2xx.c | 2 drivers/hwmon/ina3221.c | 2 drivers/hwmon/lineage-pem.c | 8 drivers/hwmon/ltc2945.c | 4 drivers/hwmon/ltc2990.c | 2 drivers/hwmon/ltc4151.c | 2 drivers/hwmon/ltc4215.c | 8 drivers/hwmon/ltc4222.c | 4 drivers/hwmon/ltc4260.c | 4 drivers/hwmon/ltc4261.c | 4 drivers/hwmon/max16065.c | 19 drivers/hwmon/occ/common.c | 69 +-- drivers/hwmon/occ/sysfs.c | 4 drivers/hwmon/pmbus/inspur-ipsps.c | 28 - drivers/hwmon/pmbus/pmbus_core.c | 8 drivers/hwmon/s3c-hwmon.c | 4 drivers/hwmon/sch5627.c | 24 - drivers/hwmon/sch5636.c | 20 drivers/hwmon/smm665.c | 4 drivers/hwmon/stts751.c | 20 drivers/hwmon/vexpress-hwmon.c | 12 drivers/hwmon/w83791d.c | 17 drivers/hwmon/w83l786ng.c | 26 - drivers/hwmon/xgene-hwmon.c | 14 drivers/hwtracing/intel_th/core.c | 20 drivers/i2c/busses/i2c-amd-mp2-pci.c | 5 drivers/i3c/master.c | 8 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 24 + drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c | 71 ++- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 32 - drivers/infiniband/core/addr.c | 33 - drivers/infiniband/core/cma.c | 3 drivers/infiniband/core/device.c | 5 drivers/infiniband/core/verbs.c | 2 drivers/infiniband/hw/bnxt_re/ib_verbs.c | 7 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 2 drivers/infiniband/hw/bnxt_re/qplib_res.c | 8 drivers/infiniband/hw/efa/efa_verbs.c | 4 drivers/infiniband/ulp/rtrs/rtrs-srv.c | 2 drivers/input/serio/i8042-acpipnpio.h | 7 drivers/input/touchscreen/ti_am335x_tsc.c | 2 drivers/iommu/amd/init.c | 28 - drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 27 - drivers/iommu/arm/arm-smmu/qcom_iommu.c | 10 drivers/iommu/exynos-iommu.c | 9 drivers/iommu/ipmmu-vmsa.c | 2 drivers/iommu/mtk_iommu.c | 2 drivers/iommu/mtk_iommu_v1.c | 2 drivers/iommu/omap-iommu.c | 2 drivers/iommu/omap-iommu.h | 2 drivers/iommu/sun50i-iommu.c | 2 drivers/irqchip/qcom-irq-combiner.c | 2 drivers/leds/leds-lp50xx.c | 95 ++-- drivers/leds/leds-netxbig.c | 36 + drivers/macintosh/mac_hid.c | 3 drivers/md/dm-ebs-target.c | 2 drivers/md/dm-log-writes.c | 1 drivers/md/dm-raid.c | 2 drivers/media/cec/core/cec-core.c | 1 drivers/media/i2c/adv7604.c | 4 drivers/media/i2c/adv7842.c | 11 drivers/media/i2c/msp3400-kthreads.c | 2 drivers/media/i2c/tda1997x.c | 1 drivers/media/platform/davinci/vpif_capture.c | 4 drivers/media/platform/exynos4-is/media-dev.c | 10 drivers/media/platform/mtk-vcodec/mtk_vcodec_fw_vpu.c | 4 drivers/media/platform/rcar_drif.c | 1 drivers/media/rc/st_rc.c | 2 drivers/media/test-drivers/vidtv/vidtv_channel.c | 3 drivers/media/usb/dvb-usb/dtv5100.c | 5 drivers/media/usb/pvrusb2/pvrusb2-hdw.c | 2 drivers/mfd/altera-sysmgr.c | 2 drivers/mfd/da9055-core.c | 1 drivers/mfd/max77620.c | 15 drivers/mfd/mt6358-irq.c | 1 drivers/mfd/mt6397-irq.c | 1 drivers/misc/mei/hw-me-regs.h | 2 drivers/misc/mei/pci-me.c | 2 drivers/misc/vmw_balloon.c | 3 drivers/mtd/lpddr/lpddr_cmds.c | 8 drivers/net/dsa/b53/b53_common.c | 3 drivers/net/ethernet/3com/3c59x.c | 2 drivers/net/ethernet/broadcom/b44.c | 3 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 87 ++-- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 4 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 4 drivers/net/ethernet/intel/e1000/e1000_main.c | 10 drivers/net/ethernet/intel/i40e/i40e_main.c | 1 drivers/net/ethernet/intel/iavf/iavf_main.c | 4 drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c | 8 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c | 122 +++++ drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h | 2 drivers/net/ethernet/mellanox/mlx5/core/en.h | 4 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c | 4 drivers/net/ethernet/mellanox/mlx5/core/port.c | 3 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c | 2 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 17 drivers/net/fjes/fjes_hw.c | 12 drivers/net/ipvlan/ipvlan_core.c | 3 drivers/net/mdio/mdio-aspeed.c | 77 ++- drivers/net/team/team.c | 2 drivers/net/usb/pegasus.c | 2 drivers/net/usb/rtl8150.c | 2 drivers/net/usb/sr9700.c | 4 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c | 9 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c | 27 - drivers/net/wireless/st/cw1200/bh.c | 6 drivers/nfc/pn533/usb.c | 2 drivers/nvme/host/fc.c | 6 drivers/parisc/gsc.c | 4 drivers/pci/controller/dwc/pci-keystone.c | 2 drivers/pci/controller/dwc/pcie-designware.h | 2 drivers/pci/controller/pcie-brcmstb.c | 10 drivers/pci/pci-driver.c | 4 drivers/phy/broadcom/phy-bcm63xx-usbh.c | 6 drivers/pinctrl/pinctrl-single.c | 25 - drivers/pinctrl/qcom/pinctrl-msm.c | 2 drivers/pinctrl/stm32/pinctrl-stm32.c | 2 drivers/platform/chrome/cros_ec_ishtp.c | 1 drivers/platform/x86/acer-wmi.c | 4 drivers/platform/x86/asus-wmi.c | 8 drivers/platform/x86/huawei-wmi.c | 4 drivers/platform/x86/ibm_rtl.c | 2 drivers/platform/x86/msi-laptop.c | 3 drivers/power/supply/apm_power.c | 3 drivers/power/supply/wm831x_power.c | 10 drivers/powercap/powercap_sys.c | 22 - drivers/pwm/pwm-bcm2835.c | 93 +--- drivers/pwm/pwm-stm32.c | 3 drivers/regulator/core.c | 37 + drivers/rpmsg/qcom_glink_native.c | 8 drivers/s390/crypto/ap_bus.c | 8 drivers/scsi/aic94xx/aic94xx_init.c | 3 drivers/scsi/ipr.c | 28 + drivers/scsi/iscsi_tcp.c | 11 drivers/scsi/libiscsi.c | 39 + drivers/scsi/libsas/sas_internal.h | 14 drivers/scsi/qla2xxx/qla_mbx.c | 2 drivers/scsi/qla2xxx/qla_os.c | 14 drivers/scsi/sg.c | 20 drivers/scsi/sim710.c | 2 drivers/scsi/stex.c | 1 drivers/scsi/ufs/ufshcd.c | 4 drivers/soc/amlogic/meson-canvas.c | 5 drivers/soc/qcom/ocmem.c | 2 drivers/spi/spi-fsl-spi.c | 2 drivers/spi/spi-imx.c | 15 drivers/spi/spi-xilinx.c | 2 drivers/staging/comedi/comedi_fops.c | 42 + drivers/staging/comedi/drivers/c6xdigio.c | 46 +- drivers/staging/comedi/drivers/multiq3.c | 9 drivers/staging/fbtft/fbtft-core.c | 4 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 5 drivers/target/target_core_configfs.c | 1 drivers/target/target_core_transport.c | 1 drivers/tty/serial/8250/8250_pci.c | 37 + drivers/tty/serial/sprd_serial.c | 6 drivers/usb/core/message.c | 2 drivers/usb/dwc2/platform.c | 16 drivers/usb/dwc3/dwc3-of-simple.c | 7 drivers/usb/dwc3/gadget.c | 2 drivers/usb/dwc3/host.c | 2 drivers/usb/gadget/legacy/raw_gadget.c | 3 drivers/usb/gadget/udc/core.c | 17 drivers/usb/gadget/udc/lpc32xx_udc.c | 20 drivers/usb/gadget/udc/tegra-xudc.c | 6 drivers/usb/host/ohci-nxp.c | 20 drivers/usb/host/xhci-dbgtty.c | 6 drivers/usb/host/xhci-hub.c | 2 drivers/usb/host/xhci-mem.c | 10 drivers/usb/host/xhci-ring.c | 8 drivers/usb/host/xhci.h | 16 drivers/usb/misc/chaoskey.c | 16 drivers/usb/misc/sisusbvga/sisusb_con.c | 21 drivers/usb/phy/phy.c | 4 drivers/usb/renesas_usbhs/pipe.c | 2 drivers/usb/serial/belkin_sa.c | 28 - drivers/usb/serial/ftdi_sio.c | 72 +-- drivers/usb/serial/kobil_sct.c | 18 drivers/usb/serial/option.c | 22 - drivers/usb/storage/unusual_uas.h | 2 drivers/usb/typec/ucsi/ucsi.c | 6 drivers/usb/usbip/vhci_hcd.c | 6 drivers/vhost/vsock.c | 15 drivers/video/backlight/led_bl.c | 18 drivers/video/console/dummycon.c | 20 drivers/video/console/sticore.c | 8 drivers/video/fbdev/core/fbcon.c | 68 --- drivers/video/fbdev/core/fbcon_rotate.c | 3 drivers/video/fbdev/core/tileblit.c | 4 drivers/video/fbdev/gbefb.c | 5 drivers/video/fbdev/pxafb.c | 12 drivers/video/fbdev/ssd1307fb.c | 4 drivers/video/fbdev/tcx.c | 2 drivers/virtio/virtio_balloon.c | 4 drivers/watchdog/via_wdt.c | 1 drivers/watchdog/wdat_wdt.c | 65 ++- fs/bfs/inode.c | 19 fs/btrfs/extent_io.c | 15 fs/btrfs/ioctl.c | 4 fs/btrfs/scrub.c | 5 fs/btrfs/volumes.c | 1 fs/exfat/super.c | 19 fs/ext4/inline.c | 14 fs/ext4/inode.c | 5 fs/ext4/mballoc.c | 58 +- fs/ext4/move_extent.c | 18 fs/ext4/super.c | 7 fs/ext4/xattr.c | 38 - fs/ext4/xattr.h | 10 fs/f2fs/f2fs.h | 3 fs/f2fs/file.c | 3 fs/f2fs/namei.c | 6 fs/f2fs/recovery.c | 9 fs/f2fs/super.c | 53 +- fs/f2fs/xattr.c | 32 - fs/f2fs/xattr.h | 10 fs/hfsplus/bnode.c | 4 fs/hfsplus/dir.c | 7 fs/hfsplus/inode.c | 32 + fs/jbd2/journal.c | 14 fs/jbd2/transaction.c | 21 fs/lockd/svc4proc.c | 4 fs/lockd/svclock.c | 21 fs/lockd/svcproc.c | 5 fs/locks.c | 13 fs/nfs/dir.c | 150 +++++-- fs/nfs/inode.c | 6 fs/nfs/internal.h | 5 fs/nfs/namespace.c | 11 fs/nfs/nfs4proc.c | 13 fs/nfs/nfs4trace.h | 1 fs/nfs/pnfs.c | 1 fs/nfs/super.c | 26 - fs/nfs/unlink.c | 6 fs/nfs/write.c | 8 fs/nfsd/blocklayout.c | 7 fs/nfsd/export.c | 2 fs/nfsd/netns.h | 2 fs/nfsd/nfs4state.c | 46 ++ fs/nfsd/nfs4xdr.c | 5 fs/nfsd/nfsctl.c | 3 fs/nfsd/state.h | 2 fs/nfsd/vfs.c | 2 fs/nls/nls_base.c | 27 - fs/notify/fsnotify.c | 9 fs/ocfs2/alloc.c | 1 fs/ocfs2/move_extents.c | 8 fs/ocfs2/suballoc.c | 10 fs/overlayfs/export.c | 2 fs/overlayfs/overlayfs.h | 2 fs/xfs/xfs_buf_item.c | 1 include/linux/balloon_compaction.h | 65 --- include/linux/blk_types.h | 5 include/linux/compiler-clang.h | 23 + include/linux/compiler-gcc.h | 14 include/linux/console.h | 1 include/linux/cper.h | 12 include/linux/font.h | 1 include/linux/fs_context.h | 1 include/linux/genalloc.h | 1 include/linux/ieee80211.h | 4 include/linux/netdevice.h | 3 include/linux/nfs_fs.h | 9 include/linux/platform_data/lp855x.h | 4 include/linux/rculist_nulls.h | 59 ++ include/linux/security.h | 2 include/linux/tpm.h | 9 include/linux/usb/gadget.h | 5 include/linux/virtio_config.h | 2 include/media/v4l2-mem2mem.h | 3 include/net/netfilter/nf_conntrack_count.h | 16 include/net/sock.h | 13 include/net/xfrm.h | 13 include/scsi/libiscsi.h | 2 include/uapi/linux/kd.h | 2 include/uapi/linux/mptcp.h | 1 include/uapi/sound/asound.h | 2 io_uring/io_uring.c | 2 kernel/dma/pool.c | 2 kernel/livepatch/core.c | 8 kernel/locking/spinlock_debug.c | 4 kernel/scs.c | 2 kernel/trace/trace_events.c | 2 lib/crypto/aes.c | 4 lib/fonts/font_10x18.c | 1 lib/fonts/font_6x10.c | 1 lib/fonts/font_6x11.c | 1 lib/fonts/font_6x8.c | 1 lib/fonts/font_7x14.c | 1 lib/fonts/font_8x16.c | 1 lib/fonts/font_8x8.c | 1 lib/fonts/font_acorn_8x8.c | 1 lib/fonts/font_mini_4x6.c | 1 lib/fonts/font_pearl_8x8.c | 1 lib/fonts/font_sun12x22.c | 1 lib/fonts/font_sun8x16.c | 1 lib/fonts/font_ter16x32.c | 1 lib/idr.c | 2 lib/vsprintf.c | 6 mm/balloon_compaction.c | 15 net/bridge/br_private.h | 1 net/bridge/br_vlan_tunnel.c | 11 net/caif/cffrml.c | 9 net/can/j1939/transport.c | 2 net/ceph/osd_client.c | 11 net/ceph/osdmap.c | 140 +++--- net/core/sock.c | 7 net/core/sock_map.c | 53 +- net/ethtool/ioctl.c | 134 ++++-- net/hsr/hsr_forward.c | 2 net/ipv4/arp.c | 7 net/ipv4/fib_trie.c | 7 net/ipv4/inet_hashtables.c | 8 net/ipv4/ip_output.c | 3 net/ipv4/ipcomp.c | 2 net/ipv4/ping.c | 4 net/ipv4/raw.c | 3 net/ipv6/calipso.c | 3 net/ipv6/ip6_gre.c | 9 net/ipv6/ip6_output.c | 3 net/ipv6/ipcomp6.c | 2 net/ipv6/xfrm6_tunnel.c | 2 net/key/af_key.c | 2 net/mac80211/rx.c | 5 net/mptcp/pm_netlink.c | 3 net/netfilter/ipvs/ip_vs_xmit.c | 3 net/netfilter/nf_conncount.c | 211 ++++++---- net/netfilter/nft_connlimit.c | 69 +-- net/netfilter/nft_synproxy.c | 6 net/netfilter/xt_connlimit.c | 14 net/netrom/nr_out.c | 4 net/nfc/core.c | 9 net/openvswitch/conntrack.c | 16 net/openvswitch/flow_netlink.c | 13 net/openvswitch/vport-netdev.c | 17 net/rose/af_rose.c | 2 net/sched/sch_cake.c | 58 +- net/sched/sch_ets.c | 6 net/sched/sch_qfq.c | 2 net/sunrpc/auth_gss/svcauth_gss.c | 3 net/wireless/wext-core.c | 4 net/wireless/wext-priv.c | 4 net/xfrm/xfrm_ipcomp.c | 1 net/xfrm/xfrm_state.c | 41 - net/xfrm/xfrm_user.c | 2 security/integrity/ima/ima_policy.c | 2 security/smack/smack_lsm.c | 41 + sound/firewire/dice/dice-extension.c | 4 sound/isa/wavefront/wavefront_midi.c | 2 sound/isa/wavefront/wavefront_synth.c | 4 sound/pcmcia/pdaudiocf/pdaudiocf.c | 8 sound/pcmcia/vx/vxpocket.c | 8 sound/soc/bcm/bcm63xx-pcm-whistler.c | 4 sound/soc/codecs/ak4458.c | 10 sound/soc/codecs/ak5558.c | 10 sound/soc/fsl/fsl_sai.c | 3 sound/soc/qcom/qdsp6/q6adm.c | 146 +++--- sound/soc/qcom/qdsp6/q6asm-dai.c | 7 sound/soc/stm/stm32_i2s.c | 62 -- sound/soc/stm/stm32_sai.c | 39 - sound/soc/stm/stm32_sai_sub.c | 46 +- sound/soc/stm/stm32_spdifrx.c | 44 -- sound/usb/mixer_us16x08.c | 20 tools/perf/util/symbol.c | 4 tools/testing/ktest/config-bisect.pl | 4 tools/testing/nvdimm/test/nfit.c | 7 tools/testing/radix-tree/idr-test.c | 21 tools/testing/selftests/bpf/prog_tests/perf_branches.c | 16 tools/testing/selftests/bpf/prog_tests/send_signal.c | 5 tools/testing/selftests/bpf/progs/test_perf_branches.c | 3 tools/testing/selftests/ftrace/test.d/ftrace/func_traceonoff_triggers.tc | 5 456 files changed, 3699 insertions(+), 2386 deletions(-)
Abdun Nihaal (3):
wifi: cw1200: Fix potential memory leak in cw1200_bh_rx_helper()
wifi: rtl818x: Fix potential memory leaks in rtl8180_init_rx_ring()
fbdev: ssd1307fb: fix potential page leak in ssd1307fb_probe()
Ahelenia Ziemiańska (1):
power: supply: apm_power: only unset own apm_get_power_status
Akhil P Oommen (1):
drm/msm/a6xx: Fix out of bound IO access in a6xx_get_gmu_registers
Alan Stern (1):
HID: core: Harden s32ton() against conversion to 0 bits
Alex Deucher (1):
drm/amd/display: Use GFP_ATOMIC in dc_create_plane_state()
Alexander Potapenko (2):
kmsan: introduce __no_sanitize_memory and __no_kmsan_checks
x86: kmsan: don't instrument stack walking functions
Alexander Stein (1):
ASoC: fsl_sai: Add missing registers to cache default
Alexander Sverdlin (1):
locking/spinlock/debug: Fix data-race in do_raw_write_lock
Alexander Usyskin (1):
mei: me: add nova lake point S DID
Alexandre Knecht (1):
bridge: fix C-VLAN preservation in 802.1ad vlan_tunnel egress
Alexei Starovoitov (1):
selftests/bpf: Fix failure paths in send_signal test
Alexey Nepomnyashih (1):
ext4: add i_data_sem protection in ext4_destroy_inline_data_nolock()
Alexey Simakov (2):
dm-raid: fix possible NULL dereference with undefined raid type
broadcom: b44: prevent uninitialized value usage
Alison Schofield (1):
tools/testing/nvdimm: Use per-DIMM device handle
Alok Tiwari (2):
RDMA/bnxt_re: Fix incorrect BAR check in bnxt_qplib_map_creq_db() RDMA/bnxt_re: Fix IB_SEND_IP_CSUM handling in post_send
Alvaro Gamez Machado (1):
spi: xilinx: increase number of retries before declaring stall
Amir Goldstein (1):
fsnotify: do not generate ACCESS/MODIFY events on child for special files
Andres J Rosa (1):
ALSA: uapi: Fix typo in asound.h comment
Andrew Morton (1):
genalloc.h: fix htmldocs warning
Andrey Vatoropin (1):
scsi: target: Reset t_task_cdb pointer in error case
Andy Shevchenko (4):
lib/vsprintf: Check pointer before dereferencing in time_and_date()
nfsd: Mark variable __maybe_unused to avoid W=1 build break
leds: lp50xx: Reduce level of dereferences
leds: lp50xx: Get rid of redundant check in lp50xx_enable_disable()
Anshumali Gaur (1):
octeontx2-pf: fix "UBSAN: shift-out-of-bounds error"
Anton Khirnov (1):
platform/x86: asus-wmi: use brightness_set_blocking() for kbd led
Armin Wolf (3):
platform/x86: acer-wmi: Ignore backlight event
fs/nls: Fix utf16 to utf8 conversion
fs/nls: Fix inconsistency between utf8_to_utf32() and utf32_to_utf8()
Bagas Sanjaya (2):
Documentation: process: Also mention Sasha Levin as stable tree maintainer
net: bridge: Describe @tunnel_hash member in net_bridge_vlan_group struct
Bart Van Assche (1):
scsi: target: Do not write NUL characters into ASCII configfs output
Ben Collins (1):
powerpc/addnote: Fix overflow on 32-bit builds
Byungchul Park (1):
jbd2: use a weaker annotation in journal handling
Chao Yu (5):
f2fs: fix return value of f2fs_recover_fsync_data()
f2fs: use global inline_xattr_slab instead of per-sb slab cache
f2fs: fix to detect recoverable inode during dryrun of find_fsync_dnodes()
f2fs: fix to propagate error from f2fs_enable_checkpoint()
f2fs: fix to avoid updating zero-sized extent in extent cache
Chen Changcheng (2):
usb: usb-storage: No additional quirks need to be added to the EL-R12 optical drive.
usb: usb-storage: Maintain minimal modifications to the bcdDevice range.
Christian Hitz (3):
leds: leds-lp50xx: Allow LED 0 to be added to module bank
leds: leds-lp50xx: LP5009 supports 3 modules for a total of 9 LEDs
leds: leds-lp50xx: Enable chip before any communicationChristoffer Sandberg (1):
Input: i8042 - add TUXEDO InfinityBook Max Gen10 AMD to i8042 quirk table
Christophe JAILLET (3):
block/rnbd: Remove a useless mutex
firewire: nosy: switch from 'pci_' to 'dma_' API
ASoC: stm32: sai: Use the devm_clk_get_optional() helper
Christophe Leroy (1):
spi: fsl-cpm: Check length parity before switching to 16 bit mode
Chuck Lever (2):
NFSD: Clear SECLABEL in the suppattr_exclcreat bitmap
NFSD: NFSv4 file creation neglects setting ACL
Colin Ian King (1):
media: pvrusb2: Fix incorrect variable used in trace message
Cong Zhang (1):
blk-mq: Abort suspend when wakeup events are pending
Cryolitia PukNgae (1):
ACPICA: Avoid walking the Namespace if start_node is NULL
Dai Ngo (1):
NFSD: use correct reservation type in nfsd4_scsi_fence_client
Dan Carpenter (3):
drm/amd/display: Fix logical vs bitwise bug in get_embedded_panel_info_v2_1()
nfc: pn533: Fix error code in pn533_acr122_poweron_rdr()
block: rnbd-clt: Fix signedness bug in init_dev()
Daniel Wagner (1):
nvme-fc: don't hold rport lock when putting ctrl
Daniil Tatianin (2):
net/ethtool/ioctl: remove if n_stats checks from ethtool_get_phy_stats net/ethtool/ioctl: split ethtool_get_phy_stats into multiple helpers
Dapeng Mi (1):
perf/x86/intel: Correct large PEBS flag check
Dave Kleikamp (1):
dma/pool: eliminate alloc_pages warning in atomic_pool_expand
David Hildenbrand (4):
powerpc/pseries/cmm: call balloon_devinfo_init() also without CONFIG_BALLOON_COMPACTION mm/balloon_compaction: we cannot have isolated pages in the balloon list mm/balloon_compaction: convert balloon_page_delete() to balloon_page_finalize() powerpc/pseries/cmm: adjust BALLOON_MIGRATE when migrating pages
Deepakkumar Karn (1):
net: usb: rtl8150: fix memory leak on usb_submit_urb() failure
Deepanshu Kartikey (4):
ext4: refresh inline data size before write operations
btrfs: fix memory leak of fs_devices in degraded seed device path
f2fs: invalidate dentry cache on failed whiteout creation
net: nfc: fix deadlock between nfc_unregister_device and rfkill_fop_write
Di Zhu (1):
netdev: preserve NETIF_F_ALL_FOR_ALL across TSO updates
Diogo Ivo (1):
usb: phy: Initialize struct usb_phy list_head
Dmitry Antipov (2):
ocfs2: relax BUG() to ocfs2_error() in __ocfs2_move_extent()
ocfs2: fix memory leak in ocfs2_merge_rec_left()
Dmitry Skorodumov (1):
ipvlan: Ignore PACKET_LOOPBACK in handle_mode_l2()
Donet Tom (1):
powerpc/64s/slb: Fix SLB multihit issue during SLB preload
Duoming Zhou (3):
media: TDA1997x: Remove redundant cancel_delayed_work in probe
media: i2c: ADV7604: Remove redundant cancel_delayed_work in probe
media: i2c: adv7842: Remove redundant cancel_delayed_work in probe
Eric Biggers (2):
lib/crypto: x86/blake2s: Fix 32-bit arg treated as 64-bit lib/crypto: aes: Fix missing MMU protection for AES S-box
Eric Dumazet (3):
ip6_gre: make ip6gre_header() robust
wifi: avoid kernel-infoleak from struct iw_point
arp: do not assume dev_hard_header() does not change skb->head
Eric Whitney (1):
ext4: minor defrag code improvements
Ethan Nelson-Moore (1):
net: usb: sr9700: fix incorrect command used to write single register
Fabio Porcedda (2):
USB: serial: option: add Telit Cinterion FE910C04 new compositions
USB: serial: option: move Telit 0x10c7 composition in the right place
Fedor Pchelkin (1):
ext4: fix string copying in parse_apply_sb_mount_options()
Fernando Fernandez Mancera (5):
netfilter: nf_conncount: rework API to use sk_buff directly
netfilter: nft_connlimit: update the count if add was skipped
netfilter: nf_conncount: fix leaked ct in error paths
netfilter: nft_synproxy: avoid possible data-race on update operation
netfilter: nf_conncount: update last_gc only when GC has been performed
Francesco Lavra (1):
iio: imu: st_lsm6dsx: Fix measurement unit for odr struct member
Frank Li (1):
i3c: fix refcount inconsistency in i3c_master_register
Gabor Juhos (1):
regulator: core: disable supply if enabling main regulator fails
Gal Pressman (2):
ethtool: Avoid overflowing userspace buffer on stats query net/mlx5e: Don't print error message due to invalid module
Gongwei Li (1):
Bluetooth: btusb: Add new VID/PID 13d3/3533 for RTL8821CE
Gopi Krishna Menon (1):
usb: raw-gadget: cap raw_io transfer length to KMALLOC_MAX_SIZE
Greg Kroah-Hartman (2):
Revert "iommu/amd: Skip enabling command/event buffers for kdump" Linux 5.10.248
Guangshuo Li (1):
e1000: fix OOB in e1000_tbi_should_accept()
Guenter Roeck (1):
hwmon: replace snprintf in show functions with sysfs_emit
Gui-Dong Han (3):
hwmon: (w83791d) Convert macros to functions to avoid TOCTOU
hwmon: (w83l786ng) Convert macros to functions to avoid TOCTOU
hwmon: (max16065) Use local variable to avoid TOCTOU
Guido Günther (1):
drm/panel: visionox-rm69299: Don't clear all mode flags
Guoqing Jiang (1):
block/rnbd-clt: fix wrong max ID in ida_alloc_max
Hans de Goede (1):
HID: logitech-dj: Remove duplicate error logging
Haotian Zhang (18):
pinctrl: stm32: fix hwspinlock resource leak in probe function
mfd: da9055: Fix missing regmap_del_irq_chip() in error path
scsi: stex: Fix reboot_notifier leak in probe error path
clk: renesas: r9a06g032: Fix memory leak in error path
ACPI: property: Fix fwnode refcount leak in acpi_fwnode_graph_parse_endpoint()
scsi: sim710: Fix resource leak by adding missing ioport_unmap() calls
leds: netxbig: Fix GPIO descriptor leak in error paths
watchdog: wdat_wdt: Fix ACPI table leak in probe function
mfd: mt6397-irq: Fix missing irq_domain_remove() in error path
mfd: mt6358-irq: Fix missing irq_domain_remove() in error path
crypto: ccree - Correctly handle return of sg_nents_for_len
pinctrl: single: Fix incorrect type for error return variable
ASoC: bcm: bcm63xx-pcm-whistler: Check return value of of_dma_configure() dm log-writes: Add missing set_freezable() for freezable kthread
ALSA: vxpocket: Fix resource leak in vxpocket_probe error path
ALSA: pcmcia: Fix resource leak in snd_pdacf_probe error path
media: rc: st_rc: Fix reset control resource leak
media: cec: Fix debugfs leak on bus_register() failure
Haotien Hsu (1):
usb: gadget: tegra-xudc: Always reinitialize data toggle when clear halt
Haoxiang Li (6):
MIPS: Fix a reference leak bug in ip22_check_gio()
usb: renesas_usbhs: Fix a resource leak in usbhs_pipe_malloc()
fjes: Add missing iounmap in fjes_hw_init()
nfsd: Drop the client reference in client_states_open()
xfs: fix a memory leak in xfs_buf_item_init()
media: mediatek: vcodec: Fix a reference leak in mtk_vcodec_fw_vpu_init()
Heiko Carstens (2):
s390/smp: Fix fallback CPU detection
s390/ap: Don't leak debug feature files if AP instructions are not available
Helge Deller (1):
parisc: Do not reprogram affinitiy on ASP chip
Henry Martin (1):
cpufreq: scmi: Fix null-ptr-deref in scmi_cpufreq_get_rate()
Herbert Xu (1):
crypto: seqiv - Do not use req->iv after crypto_aead_encrypt
Hongyu Xie (1):
usb: xhci: limit run_graceperiod for only usb 3.0 devices
Hui Su (1):
x86/dumpstack: Make show_trace_log_lvl() static
Ian Abbott (1):
comedi: c6xdigio: Fix invalid PNP driver unregistration
Ian Ray (1):
ARM: dts: imx6q-ba16: fix RTC interrupt level
Ido Schimmel (3):
mlxsw: spectrum_router: Fix neighbour use-after-free
mlxsw: spectrum_mr: Fix use-after-free when updating multicast route stats
ipv4: Fix reference count leak when using error routes with nexthop objects
Ilya Dryomov (3):
libceph: make decode_pool() more resilient against corrupted osdmaps
libceph: replace overzealous BUG_ON in osdmap_apply_incremental()
libceph: make calc_target() set t->paused, not just clear it
Ilya Maximets (1):
net: openvswitch: fix middle attribute validation in push_nsh() action
Ivan Abramov (3):
power: supply: wm831x: Check wm831x_set_bits() return value
media: adv7842: Avoid possible out-of-bounds array accesses in adv7842_cp_log_status()
media: msp3400: Avoid possible out-of-bounds array accesses in msp3400c_thread()
Ivan Stepchenko (1):
mtd: lpddr_cmds: fix signed shifts in lpddr_cmds
Jacky Chou (1):
net: mdio: aspeed: add dummy read to avoid read-after-write issue
Jakub Kicinski (1):
eth: bnxt: move and rename reset helpers
Jakub Sitnicki (1):
bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself
Jamal Hadi Salim (1):
net/sched: ets: Always remove class from active list before deleting in ets_qdisc_change
Jang Ingyu (1):
RDMA/core: Fix logic error in ib_get_gids_from_rdma_hdr()
Janusz Krzysztofik (1):
drm/vgem-fence: Fix potential deadlock on release
Jarkko Sakkinen (1):
tpm: Cap the number of PCR banks
Jason Gunthorpe (2):
RDMA/core: Check for the presence of LS_NLA_TYPE_DGID correctly RDMA/cm: Fix leaking the multicast GID table reference
Jeongjun Park (2):
media: dvb-usb: dtv5100: fix out-of-bounds in dtv5100_i2c_msg()
media: vidtv: initialize local pointers upon transfer of memory ownership
Jia Ston (1):
platform/x86: huawei-wmi: add keys for HONOR models
Jian Shen (2):
net: hns3: using the num_tqps in the vf driver to apply for resources
net: hns3: add VLAN id validation before using
Jianglei Nie (1):
staging: fbtft: core: fix potential memory leak in fbtft_probe_common()
Jim Quinlan (1):
PCI: brcmstb: Fix disabling L0s capability
Jimmy Hu (1):
usb: gadget: udc: fix use-after-free in usb_gadget_state_work
Jinhui Guo (2):
ipmi: Fix the race between __scan_channels() and deliver_response()
ipmi: Fix __scan_channels() failing to rescan channels
Jiri Pirko (1):
team: fix check for port enabled in team_queue_override_port_prio_changed()
Jisheng Zhang (3):
usb: dwc2: disable platform lowlevel hw resources during shutdown
usb: dwc2: fix hang during shutdown if set as peripheral
usb: dwc2: fix hang during suspend if set as peripheral
Johan Hovold (21):
USB: serial: ftdi_sio: match on interface number for jtag
USB: serial: belkin_sa: fix TIOCMBIS and TIOCMBIC
USB: serial: kobil_sct: fix TIOCMBIS and TIOCMBIC irqchip/qcom-irq-combiner: Fix section mismatch
phy: broadcom: bcm63xx-usbh: fix section mismatches
amba: tegra-ahb: Fix device leak on SMMU enable
soc: qcom: ocmem: fix device leak on lookup
soc: amlogic: canvas: fix device leak on lookup
ASoC: stm32: sai: fix device leak on probe iommu/exynos: fix device leak on of_xlate() iommu/ipmmu-vmsa: fix device leak on of_xlate() iommu/mediatek-v1: fix device leak on probe_device() iommu/mediatek: fix device leak on of_xlate() iommu/omap: fix device leaks on probe_device() iommu/sun50i: fix device leak on of_xlate()
mfd: altera-sysmgr: Fix device leak on sysmgr regmap lookup
usb: ohci-nxp: fix device leak on probe failure iommu/qcom: fix device leak on of_xlate()
ASoC: stm32: sai: fix clk prepare imbalance on probe failure
media: vpif_capture: fix section mismatch
usb: gadget: lpc32xx_udc: fix clock imbalance in error path
Jonas Gorski (1):
net: dsa: b53: skip multicast entries for fdb_dump()
Jonathan Curley (1):
NFSv4/pNFS: Clear NFS_INO_LAYOUTCOMMIT in pnfs_mark_layout_stateid_invalid
Josef Bacik (2):
btrfs: don't rewrite ret from inode_permission
btrfs: do not clean up repair bio if submit fails
Joshua Rogers (1):
SUNRPC: svcauth_gss: avoid NULL deref on zero length gss_token in gss_read_proxy_verf
Josua Mayer (1):
clk: mvebu: cp110 add CLK_IGNORE_UNUSED to pcie_x10, pcie_x11 & pcie_x4
Jouni Malinen (1):
wifi: mac80211: Discard Beacon frames to non-broadcast address
Junjie Cao (1):
Input: ti_am335x_tsc - fix off-by-one error in wire_order validation
Junrui Luo (7):
ALSA: dice: fix buffer overflow in detect_stream_formats()
caif: fix integer underflow in cffrml_receive()
hwmon: (ibmpex) fix use-after-free in high/low store
scsi: aic94xx: fix use-after-free in device removal path platform/x86: ibm_rtl: fix EBDA signature search pointer arithmetic
ALSA: wavefront: Clear substream pointers on close
ALSA: wavefront: Fix integer overflow in sample size validation
Kalesh AP (1):
RDMA/bnxt_re: Fix to use correct page size for PDE table
Karina Yankevich (1):
ext4: xattr: fix null pointer deref in ext4_raw_inode()
Kees Cook (3):
compiler-gcc.h: Define __SANITIZE_ADDRESS__ under hwaddress sanitizer net/mlx5e: Avoid field-overflowing memcpy()
ovl: Use "buf" flexible array for memcpy() destination
Kemeng Shi (1):
ext4: remove unused return value of __mb_check_buddy
Kohei Enju (1):
iavf: fix off-by-one issues in iavf_config_rss_reg()
Konstantin Andreev (1):
smack: fix bug: unprivileged task can create labels
Krzysztof Kozlowski (1):
mfd: max77620: Fix potential IRQ chip conflict when probing two devices
Kuninori Morimoto (1):
ASoC: stm: Use dev_err_probe() helper
Laibin Qiu (1):
blk-throttle: Set BIO_THROTTLED when bio has been throttled
Laurent Pinchart (1):
media: v4l2-mem2mem: Fix outdated documentation
Li Qiang (1):
via_wdt: fix critical boot hang due to unnamed resource allocation
Lino Sanfilippo (1):
pwm: bcm2835: Support apply function for atomic configuration
Liu Xinpeng (1):
watchdog: wdat_wdt: Stop watchdog when uninstalling module
Liyuan Pang (1):
ARM: 9464/1: fix input-only operand modification in load_unaligned_zeropad()
Lizhi Xu (1):
usbip: Fix locking bug in RT-enabled kernels
Long Li (1):
macintosh/mac_hid: fix race condition in mac_hid_toggle_emumouse
Lorenzo Bianconi (2):
iio: imu: st_lsm6dsx: introduce st_lsm6dsx_device_set_enable routine
iio: imu: st_lsm6dsx: discard samples during filters settling time
Luca Ceresoli (1):
backlight: led-bl: Add devlink to supplier LEDs
Lukas Wunner (1):
PCI/PM: Reinstate clearing state_saved in legacy and !PM codepaths
Lyude Paul (1):
drm/nouveau/dispnv50: Don't call drm_atomic_get_crtc_state() in prepare_fb
Ma Ke (4):
RDMA/rtrs: server: Fix error handling in get_or_create_srv
USB: lpc32xx_udc: Fix error handling in probe
intel_th: Fix error handling in intel_th_output_open
i2c: amd-mp2: fix reference leak in MP2 PCI device
Magne Bruno (1):
serial: add support of CPCI cards
Mans Rullgard (1):
backlight: led_bl: Take led_access lock when required
Marek Szyprowski (1):
media: samsung: exynos4-is: fix potential ABBA deadlock on init
Mark Pearson (1):
usb: typec: ucsi: Handle incorrect num_connectors capability
Matt Bobrowski (1):
selftests/bpf: Improve reliability of test_perf_branches_no_hw()
Matthew Wilcox (Oracle) (1):
idr: fix idr_alloc() returning an ID out of range
Matthias Schiffer (1):
ti-sysc: allow OMAP2 and OMAP4 timers to be reserved on AM33xx
Matthieu Baerts (NGI0) (1):
mptcp: pm: ignore unknown endpoint flags
Matthijs Kooijman (1):
pinctrl: single: Fix PIN_CONFIG_BIAS_DISABLE handling
Mauro Carvalho Chehab (3):
efi/cper: Add a new helper function to print bitmasks efi/cper: Adjust infopfx size to accept an extra space efi/cper: align ARM CPER type with UEFI 2.9A/2.10 specs
Maximilian Immanuel Brandtner (1):
virtio_console: fix order of fields cols and rows
Miaohe Lin (1):
mm/balloon_compaction: make balloon page compaction callbacks static
Miaoqian Lin (4):
usb: dwc3: of-simple: fix clock resource leak in dwc3_of_simple_probe
cpufreq: nforce2: fix reference count leak in nforce2
media: renesas: rcar_drif: fix device node reference leak in rcar_drif_bond_enabled drm/pl111: Fix error handling in pl111_amba_probe
Michael Margolin (1):
RDMA/efa: Remove possible negative shift
Michael S. Tsirkin (1):
virtio: fix virtqueue_set_affinity() docs
Michal Pecio (1):
usb: xhci: Apply the link chain quirk on NEC isoc endpoints
Michal Rábek (1):
scsi: sg: Fix occasional bogus elapsed time that exceeds timeout
Mike Christie (2):
scsi: iscsi: Move pool freeing
scsi: iscsi_tcp: Fix UAF during logout when accessing the shost ipaddress
Morduan Zang (1):
efi/cper: Fix cper_bits_to_str buffer handling and return value
Namhyung Kim (1):
perf tools: Fix split kallsyms DSO counting
Navaneeth K (1):
staging: rtl8723bs: fix stack buffer overflow in OnAssocReq IE parsing
NeilBrown (5):
NFS: don't unhash dentry during unlink/rename
lockd: fix vfs_test_lock() calls
nfsd: provide locking for v4_end_grace
NFS: unlink/rmdir shouldn't call d_delete() twice on ENOENT
NFS: add barriers when testing for NFS_FSDATA_BLOCKED
Nicklas Bo Jensen (1):
netfilter: nf_conncount: garbage collection is not skipped when jiffies wrap around
Nikita Zhandarovich (2):
comedi: multiq3: sanitize config options in multiq3_attach()
comedi: check device's attached status in compat ioctls
Niklas Neronin (1):
usb: xhci: move link chain bit quirk checks into one helper function.
Oliver Neukum (1):
usb: chaoskey: fix locking for O_NONBLOCK
Ondrej Mosnacek (2):
fs_context: drop the unused lsm_flags member bpf, arm64: Do not audit capability check in do_jit()
Pablo Neira Ayuso (2):
netfilter: nft_connlimit: move stateful fields out of expression data
netfilter: nft_connlimit: memleak if nf_ct_netns_get() fails
Peilin Ye (5):
console: Delete unused con_font_copy() callback implementations
console: Delete dummy con_font_set() and con_font_default() callback implementations
Fonts: Add charcount field to font_desc
parisc/sticore: Avoid hard-coding built-in font charcount
fbcon: Avoid using FNTCHARCNT() and hard-coded built-in font charcount
Peng Fan (3):
firmware: imx: scu-irq: fix OF node leak in
firmware: imx: scu-irq: Init workqueue before request mbox channel
firmware: imx: scu-irq: Set mu_resource_id before get handle
Pengjie Zhang (1):
ACPI: CPPC: Fix missing PCC check for guaranteed_perf
Peter Zijlstra (1):
x86/ptrace: Always inline trivial accessors
Petko Manolov (1):
net: usb: pegasus: fix memory leak in update_eth_regs_async()
Ping Cheng (1):
HID: input: map HID_GD_Z to ABS_DISTANCE for stylus/pen
Potin Lai (1):
net: mdio: aspeed: move reg accessing part into separate functions
Praveen Talari (1):
pinctrl: qcom: msm: Fix deadlock in pinmux configuration
Prithvi Tambewagh (2):
ocfs2: fix kernel BUG in ocfs2_find_victim_chain
io_uring: fix filename leak in __io_openat_prep()
Przemyslaw Korba (1):
i40e: fix scheduling in set_rx_mode
Pwnverse (1):
net: rose: fix invalid array index in rose_kill_by_device()
Qu Wenruo (1):
btrfs: scrub: always update btrfs_scrub_progress::last_physical
Rafael J. Wysocki (1):
PM: runtime: Do not clear needs_force_resume with enabled runtime PM
Randy Dunlap (1):
backlight: lp855x: Fix lp855x.h kernel-doc warnings
Rene Rebe (2):
floppy: fix for PAGE_SIZE != 4KB
fbdev: gbefb: fix to use physical address instead of dma address
René Rebe (3):
ACPI: processor_core: fix map_x2apic_id for amd-pstate on am4
fbdev: tcx.c fix mem_map to correct smem_start offset
HID: quirks: work around VID/PID conflict for appledisplay
Ria Thomas (1):
wifi: ieee80211: correct FILS status codes
Ritesh Harjani (IBM) (1):
powerpc/64s/ptdump: Fix kernel_hash_pagetable dump for ISA v3.00 HPTE format
Robin Gong (1):
spi: imx: keep dma request disabled before dma transfer setup
Sabrina Dubroca (4):
xfrm: delete x->tunnel as we delete x
Revert "xfrm: destroy xfrm_state synchronously on net exit path"
xfrm: also call xfrm_state_delete_tunnel at destroy time for states that were never added
xfrm: flush all states in xfrm_state_fini
Sakari Ailus (1):
ACPI: property: Use ACPI functions in acpi_graph_get_next_endpoint() only
Sam James (1):
alpha: don't reference obsolete termio struct for TC* constants
Sanjeev Yadav (1):
scsi: core: ufs: Fix a hang in the error handler
Scott Mayhew (1):
NFSv4: ensure the open stateid seqid doesn't go backwards
Sean Christopherson (2):
KVM: x86: WARN if hrtimer callback for periodic APIC timer fires with period=0
KVM: nSVM: Set exit_code_hi to -1 when synthesizing SVM_EXIT_ERR (failed VMRUN)
Sean Nyekjaer (1):
pwm: stm32: Always program polarity
Sebastian Andrzej Siewior (1):
ARM: 9461/1: Disable HIGHPTE on PREEMPT_RT kernels
Sergey Bashirov (1):
NFSD/blocklayout: Fix minlength check in proc_layoutget
Seungjin Bae (2):
USB: Fix descriptor count when handling invalid MBIM extended descriptor
wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb()
Shaurya Rane (1):
net/hsr: fix NULL pointer dereference in prp_get_untagged_frame()
Shawn Lin (1):
PCI: dwc: Fix wrong PORT_LOGIC_LTSSM_STATE_MASK definition
Shay Drory (3):
net/mlx5: fw_tracer, Add support for unrecognized string net/mlx5: fw_tracer, Validate format string parameters net/mlx5: fw_tracer, Handle escaped percent properly
Shengjiu Wang (2):
ASoC: ak4458: Disable regulator when error happens
ASoC: ak5558: Disable regulator when error happens
Shigeru Yoshida (2):
ipv6: Fix potential uninit-value access in __ip6_make_skb()
ipv4: Fix uninit-value access in __ip_make_skb()
Shin'ichiro Kawasaki (1):
bus: fsl-mc-bus: fix KASAN use-after-free in fsl_mc_bus_remove()
Shipei Qu (1):
ALSA: usb-mixer: us16x08: validate meter packet indices
Shivani Agarwal (1):
crypto: af_alg - zero initialize memory allocated via sock_kmalloc
Shuhao Fu (1):
cpufreq: s5pv210: fix refcount leak
Siddharth Vadapalli (1):
PCI: keystone: Exit ks_pcie_probe() for invalid mode
Slark Xiao (1):
USB: serial: option: add Foxconn T99W760
Slavin Liu (1):
ipvs: fix ipv4 null-ptr-deref in route error path
Song Liu (1):
livepatch: Match old_sympos 0 and 1 in klp_find_func()
Srijit Bose (1):
bnxt_en: Fix potential data corruption with HW GRO/LRO
Srinivas Kandagatla (4):
rpmsg: glink: fix rpmsg device leak
ASoC: qcom: q6asm-dai: perform correct state check before closing
ASoC: qcom: q6adm: the the copp device only during last instance
ASoC: qcom: qdsp6: q6asm-dai: set 10 ms period and buffer alignment.
Stefano Garzarella (1):
vhost/vsock: improve RCU read sections around vhost_vsock_get()
Stephan Gerhold (1):
iommu/arm-smmu-qcom: Enable use of all SMR groups when running bare-metal
Steven Rostedt (2):
ktest.pl: Fix uninitialized var in config-bisect.pl
tracing: Do not register unsupported perf events
Su Hui (1):
net: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()
Sumeet Pawnikar (2):
powercap: fix race condition in register_control_type()
powercap: fix sscanf() error return value handling
Sun Ke (1):
NFS: Fix missing unlock in nfs_unlink()
Sven Schnelle (2):
parisc: entry.S: fix space adjustment on interruption for 64-bit userspace
parisc: entry: set W bit for !compat tasks in syscall_restore_rfi()
Tengda Wu (1):
x86/dumpstack: Prevent KASAN false positive warnings in __show_regs()
Tetsuo Handa (3):
bfs: Reconstruct file type when loading from disk
hfsplus: Verify inode mode when loading from disk
can: j1939: make j1939_session_activate() fail if device is no longer registered
Thomas Fourier (6):
block: rnbd-clt: Fix leaked ID in init_dev() platform/x86: msi-laptop: add missing sysfs_remove_group()
firewire: nosy: Fix dma_free_coherent() size RDMA/bnxt_re: fix dma_free_coherent() pointer
atm: Fix dma_free_coherent() size
net: 3com: 3c59x: fix possible null dereference in vortex_probe1()
Thomas Zimmermann (1):
drm/gma500: Remove unused helper psb_fbdev_fb_setcolreg()
Thorsten Blum (2):
crypto: asymmetric_keys - prevent overflow in asymmetric_key_generate_id
fbdev: pxafb: Fix multiple clamped values in pxafb_adjust_timing
Tianchu Chen (1):
char: applicom: fix NULL pointer dereference in ac_ioctl
Toke Høiland-Jørgensen (1):
net: openvswitch: Avoid needlessly taking the RTNL on vport destroy
Tom Rix (1):
ethtool: use phydev variable
Tony Battersby (3):
scsi: qla2xxx: Fix initiator mode with qlini_mode=exclusive
scsi: qla2xxx: Use reinit_completion on mbx_intr_comp
scsi: Revert "scsi: qla2xxx: Perform lockless command completion in abort path"
Trond Myklebust (9):
NFS: Clean up function nfs_mark_dir_for_revalidate()
NFS: Fix open coded versions of nfs_set_cache_invalid()
NFS: Label the dentry with a verifier in nfs_rmdir() and nfs_unlink()
NFS: Avoid changing nlink when file removes and attribute updates race Revert "nfs: ignore SB_RDONLY when remounting nfs"
Revert "nfs: clear SB_RDONLY before getting superblock" Revert "nfs: ignore SB_RDONLY when mounting nfs"
NFS: Automounted filesystems should inherit ro,noexec,nodev,sync flags
NFS: Fix up the automount fs_context to use the correct cred
Tuo Li (1):
libceph: make free_choose_arg_map() resilient to partial allocation
Tzung-Bi Shih (1):
platform/chrome: cros_ec_ishtp: Fix UAF after unbinding driver
Udipto Goswami (1):
usb: dwc3: keep susphy enabled during exit to avoid controller faults
Uladzislau Rezki (Sony) (1):
dm-ebs: Mark full buffer dirty even on partial write
Uwe Kleine-König (2):
pwm: bcm2835: Make sure the channel is enabled after pwm_request()
leds: lp50xx: Remove duplicated error reporting in .remove()
Viacheslav Dubeyko (2):
hfsplus: fix volume corruption issue for generic/070
hfsplus: fix volume corruption issue for generic/073
Victor Nogueira (1):
net/sched: ets: Remove drr class from the active list if it changes to strict
Wang Liang (1):
netrom: Fix memory leak in nr_sendmsg()
Weiming Shi (1):
net: sock: fix hardened usercopy panic in sock_recv_errqueue
Wen Xiong (1):
scsi: ipr: Enable/disable IRQD_NO_BALANCING during reset
Wenhua Lin (1):
serial: sprd: Return -EPROBE_DEFER when uart clock is not ready
Will Rosenberg (1):
ipv6: BUG() in pskb_expand_head() as part of calipso_skbuff_setattr()
William Tu (1):
netfilter: nf_conncount: reduce unnecessary GC
Xiang Mei (2):
net/sched: sch_cake: Fix incorrect qlen reduction in cake_drop net/sched: sch_qfq: Fix NULL deref when deactivating inactive aggregate in qfq_reset
Xingui Yang (1):
scsi: Revert "scsi: libsas: Fix exp-attached device scan after probe failure scanned in again after probe failed"
Xuanqiang Luo (2):
rculist: Add hlist_nulls_replace_rcu() and hlist_nulls_replace_init_rcu()
inet: Avoid ehash lookup race in inet_ehash_insert()
Yang Chenzhi (1):
hfsplus: fix missing hfs_bnode_get() in __hfs_bnode_create
Ye Bin (4):
jbd2: avoid bug_on in jbd2_journal_get_create_access() when file system corrupted
jbd2: fix the inconsistency between checksum and data in memory for journal sb
ext4: introduce ITAIL helper
ext4: fix out-of-bound read in ext4_xattr_inode_dec_ref_all()
Yipeng Zou (1):
selftests/ftrace: traceonoff_triggers: strip off names
Yongjian Sun (2):
ext4: improve integrity checking in __mb_check_buddy by enhancing order-0 validation
ext4: fix incorrect group number assertion in mb_check_buddy
Yosry Ahmed (1):
KVM: nSVM: Propagate SVM_EXIT_CR0_SEL_WRITE correctly for LMSW emulation
Yu Kuai (2):
nbd: clean up return value checking of sock_xmit()
nbd: partition nbd_read_stat() into nbd_read_reply() and nbd_handle_reply()
Yuezhang Mo (1):
exfat: fix remount failure in different process environments
Zack Rusin (1):
drm/vmwgfx: Fix a null-ptr access in the cursor snooper
Zhang Yi (1):
ext4: correct the checking of quota files before moving extents
Zhang Zekun (1):
usb: ohci-nxp: Use helper function devm_clk_get_enabled()
Zhao Yipeng (1):
ima: Handle error code returned by ima_filter_rule_match()
Zheng Qixing (2):
nbd: defer config put in recv_work
nbd: defer config unlock in nbd_genl_connect
Zhichi Lin (1):
scs: fix a wrong parameter in __scs_magic
Zhu Yanjun (1):
RDMA/core: Fix "KASAN: slab-use-after-free Read in ib_register_device" problem
fuqiang wang (2):
KVM: x86: Explicitly set new periodic hrtimer expiration in apic_timer_fn()
KVM: x86: Fix VM hard lockup after prolonged inactivity with periodic HV timer
shechenglong (1):
block: fix comment for op_is_zone_mgmt() to include RESET_ALL
sparkhuang (1):
regulator: core: Protect regulator_supply_alias_list with regulator_list_mutex
yuan.gao (1):
inet: ping: Fix icmp out counting
Łukasz Bartosik (1):
xhci: dbgtty: fix device unregister
Greg Kroah-Hartman
maintainerDocumentation/filesystems/mount_api.rst +0 -1
@@ -79,7 +79,6 @@ context. This is represented by the fs_context structure:: unsigned int sb_flags; unsigned int sb_flags_mask; unsigned int s_iflags; - unsigned int lsm_flags; enum fs_context_purpose purpose:8; ... };
Documentation/process/2.Process.rst +4 -2
@@ -104,8 +104,10 @@ kernels go out with a handful of known regressions though, hopefully, none of them are serious. Once a stable release is made, its ongoing maintenance is passed off to the -"stable team," currently Greg Kroah-Hartman. The stable team will release -occasional updates to the stable release using the 5.x.y numbering scheme. +"stable team," currently consists of Greg Kroah-Hartman and Sasha Levin. The +stable team will release occasional updates to the stable release using the +5.x.y numbering scheme. + To be considered for an update release, a patch must (1) fix a significant bug, and (2) already be merged into the mainline for the next development kernel. Kernels will typically receive stable updates for a little more
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 10 -SUBLEVEL = 247 +SUBLEVEL = 248 EXTRAVERSION = NAME = Dare mighty things
arch/alpha/include/uapi/asm/ioctls.h +4 -4
@@ -23,10 +23,10 @@#define TCSETSW _IOW('t', 21, struct termios)#define TCSETSF _IOW('t', 22, struct termios) -#define TCGETA _IOR('t', 23, struct termio) -#define TCSETA _IOW('t', 24, struct termio) -#define TCSETAW _IOW('t', 25, struct termio) -#define TCSETAF _IOW('t', 28, struct termio) +#define TCGETA 0x40127417 +#define TCSETA 0x80127418 +#define TCSETAW 0x80127419 +#define TCSETAF 0x8012741c#define TCSBRK _IO('t', 29)#define TCXONC _IO('t', 30)
arch/arm/Kconfig +1 -1
@@ -1513,7 +1513,7 @@ config HIGHMEM config HIGHPTE bool "Allocate 2nd-level pagetables from highmem" if EXPERT - depends on HIGHMEM + depends on HIGHMEM && !PREEMPT_RT default y help The VM uses one page of physical memory for each page table.
arch/arm/boot/dts/imx6q-ba16.dtsi +1 -1
@@ -320,7 +320,7 @@ rtc@32 { pinctrl-0 = <&pinctrl_rtc>; reg = <0x32>; interrupt-parent = <&gpio4>; - interrupts = <10 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <10 IRQ_TYPE_LEVEL_LOW>; }; };
arch/arm/include/asm/word-at-a-time.h +5 -5
@@ -66,7 +66,7 @@ static inline unsigned long find_zero(unsigned long mask)*/ static inline unsigned long load_unaligned_zeropad (const void *addr) { -unsigned long ret, offset; +unsigned long ret, tmp;/* Load word from unaligned pointer addr */ asm(
@@ -74,9 +74,9 @@ static inline unsigned long load_unaligned_zeropad(const void *addr)"2:\n" " .pushsection .text.fixup,\"ax\"\n" " .align 2\n" -"3: and %1, %2, #0x3\n" -" bic %2, %2, #0x3\n" -" ldr %0, [%2]\n" +"3: bic %1, %2, #0x3\n" +" ldr %0, [%1]\n" +" and %1, %2, #0x3\n" " lsl %1, %1, #0x3\n" #ifndef __ARMEB__" lsr %0, %0, %1\n"
@@ -89,7 +89,7 @@ static inline unsigned long load_unaligned_zeropad(const void *addr)" .align 3\n" " .long 1b, 3b\n" " .popsection" - : "=&r" (ret), "=&r" (offset) + : "=&r" (ret), "=&r" (tmp) : "r" (addr), "Qo" (*(unsigned long *)addr)); return ret;
arch/arm64/net/bpf_jit_comp.c +1 -1
@@ -342,7 +342,7 @@ static void __maybe_unused build_bhb_mitigation(struct jit_ctx *ctx) arm64_get_spectre_v2_state() == SPECTRE_VULNERABLE)return ; -if (capable (CAP_SYS_ADMIN )) +if (ns_capable_noaudit (&init_user_ns,CAP_SYS_ADMIN ))return ;if (supports_clearbhb (SCOPE_SYSTEM )) {
arch/mips/sgi-ip22/ip22-gio.c +2 -1
@@ -372,7 +372,8 @@ static void ip22_check_gio(int slotno, unsigned long addr, int irq) gio_dev->resource.flags =IORESOURCE_MEM ; gio_dev->irq = irq;dev_set_name (&gio_dev->dev,"%d" , slotno); -gio_device_register (gio_dev); +if (gio_device_register (gio_dev)) +gio_dev_put (gio_dev); }else printk (KERN_INFO "GIO: slot %d : Empty\n" , slotno); }
arch/parisc/kernel/asm-offsets.c +2 -0
@@ -262,6 +262,8 @@ int main(void)BLANK ();DEFINE (TIF_BLOCKSTEP_PA_BIT ,31 -TIF_BLOCKSTEP );DEFINE (TIF_SINGLESTEP_PA_BIT ,31 -TIF_SINGLESTEP ); +DEFINE (TIF_32BIT_PA_BIT ,31 -TIF_32BIT ); +BLANK ();DEFINE (ASM_PMD_SHIFT ,PMD_SHIFT );DEFINE (ASM_PGDIR_SHIFT ,PGDIR_SHIFT );
arch/parisc/kernel/entry.S +12 -4
@@ -1072,8 +1072,6 @@ ENTRY_CFI(intr_save) /* for os_hpmc */ STREG %r17, PT_IOR(%r29) #if defined(CONFIG_64BIT) - b,n intr_save2 - skip_save_ior: /* We have a itlb miss, and when executing code above 4 Gb on ILP64, we * need to adjust iasq/iaoq here in the same way we adjusted isr/ior
@@ -1082,10 +1080,17 @@ skip_save_ior: bb,COND(>=),n %r8,PSW_W_BIT,intr_save2 LDREG PT_IASQ0(%r29), %r16 LDREG PT_IAOQ0(%r29), %r17 - /* adjust iasq/iaoq */ + /* adjust iasq0/iaoq0 */ space_adjust %r16,%r17,%r1 STREG %r16, PT_IASQ0(%r29) STREG %r17, PT_IAOQ0(%r29) + + LDREG PT_IASQ1(%r29), %r16 + LDREG PT_IAOQ1(%r29), %r17 + /* adjust iasq1/iaoq1 */ + space_adjust %r16,%r17,%r1 + STREG %r16, PT_IASQ1(%r29) + STREG %r17, PT_IAOQ1(%r29) #else skip_save_ior: #endif
@@ -1908,6 +1913,10 @@ syscall_restore_rfi: extru,= %r19,TIF_BLOCKSTEP_PA_BIT,1,%r0 depi -1,7,1,%r20 /* T bit */ +#ifdef CONFIG_64BIT + extru,<> %r19,TIF_32BIT_PA_BIT,1,%r0 + depi -1,4,1,%r20 /* W bit */ +#endif STREG %r20,TASK_PT_PSW(%r1) /* Always store space registers, since sr3 can be changed (e.g. fork) */
@@ -1921,7 +1930,6 @@ syscall_restore_rfi: STREG %r25,TASK_PT_IASQ0(%r1) STREG %r25,TASK_PT_IASQ1(%r1) - /* XXX W bit??? */ /* Now if old D bit is clear, it means we didn't save all registers * on syscall entry, so do that now. This only happens on TRACEME * calls, or if someone attached to us while we were on a syscall.
arch/powerpc/boot/addnote.c +4 -3
@@ -68,8 +68,8 @@ static int e_class = ELFCLASS32;#define PUT_16BE (off, v)(buf[off] = ((v) >> 8) & 0xff, \ buf[(off) + 1] = (v) & 0xff)#define PUT_32BE (off, v)(PUT_16BE((off), (v) >> 16L), PUT_16BE((off) + 2, (v))) -#define PUT_64BE (off, v)((PUT_32BE((off), (v) >> 32L), \ - PUT_32BE((off) + 4, (v)))) +#define PUT_64BE (off, v)((PUT_32BE((off), (unsigned long long)(v) >> 32L), \ + PUT_32BE((off) + 4, (unsigned long long)(v))))#define GET_16LE (off) ((buf[off]) + (buf[(off)+1] << 8))#define GET_32LE (off) (GET_16LE(off) + (GET_16LE((off)+2U) << 16U))
@@ -78,7 +78,8 @@ static int e_class = ELFCLASS32;#define PUT_16LE (off, v) (buf[off] = (v) & 0xff, \ buf[(off) + 1] = ((v) >> 8) & 0xff)#define PUT_32LE (off, v) (PUT_16LE((off), (v)), PUT_16LE((off) + 2, (v) >> 16L)) -#define PUT_64LE (off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L)) +#define PUT_64LE (off, v) (PUT_32LE((off), (unsigned long long)(v)), \ + PUT_32LE((off) + 4, (unsigned long long)(v) >> 32L))#define GET_16 (off) (e_data == ELFDATA2MSB ? GET_16BE(off) : GET_16LE(off))#define GET_32 (off) (e_data == ELFDATA2MSB ? GET_32BE(off) : GET_32LE(off))
arch/powerpc/kernel/process.c +0 -5
@@ -1767,8 +1767,6 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,return 0 ; } -void preload_new_slb_context (unsigned long start,unsigned long sp); -/* * Set up a thread for executing a new program */
@@ -1776,9 +1774,6 @@ void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp) {#ifdef CONFIG_PPC64 unsigned long load_addr = regs->gpr[2 ];/* saved by ELF_PLAT_INIT */ - -if (IS_ENABLED (CONFIG_PPC_BOOK3S_64 ) && !radix_enabled ()) -preload_new_slb_context (start, sp);#endif /*
arch/powerpc/mm/book3s64/internal.h +0 -1
@@ -13,6 +13,5 @@ static inline bool stress_slb(void) return static_branch_unlikely(&stress_slb_key); } -void slb_setup_new_exec (void );#endif /* ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H */
arch/powerpc/mm/book3s64/mmu_context.c +0 -2
@@ -147,8 +147,6 @@ static int hash__init_new_context(struct mm_struct *mm)void hash__setup_new_exec (void ) {slice_setup_new_exec (); - -slb_setup_new_exec (); }static int radix__init_new_context (struct mm_struct *mm)
arch/powerpc/mm/book3s64/slb.c +0 -88
94 lines not on this page · raw message
arch/powerpc/mm/ptdump/hashpagetable.c +6 -0
@@ -216,6 +216,8 @@ static int native_find(unsigned long ea, int psize, bool primary, u64 *v, u64 vpn =hpt_vpn (ea, vsid, ssize); hash =hpt_hash (vpn, shift, ssize); want_v =hpte_encode_avpn (vpn, psize, ssize); +if (cpu_has_feature (CPU_FTR_ARCH_300 )) + want_v =hpte_old_to_new_v (want_v);/* to check in the secondary hash table, we invert the hash */ if (!primary)
@@ -229,6 +231,10 @@ static int native_find(unsigned long ea, int psize, bool primary, u64 *v, u64/* HPTE matches */ *v =be64_to_cpu (hptep->v); *r =be64_to_cpu (hptep->r); +if (cpu_has_feature (CPU_FTR_ARCH_300 )) { + *v =hpte_new_to_old_v (*v, *r); + *r =hpte_new_to_old_r (*r); + }return 0 ; } ++hpte_group;
arch/powerpc/platforms/pseries/cmm.c +3 -2
@@ -550,7 +550,7 @@ static int cmm_migratepage(struct balloon_dev_info *b_dev_info,spin_lock_irqsave (&b_dev_info->pages_lock, flags);balloon_page_insert (b_dev_info, newpage); -balloon_page_delete (page); +__count_vm_event (BALLOON_MIGRATE ); b_dev_info->isolated_pages--;spin_unlock_irqrestore (&b_dev_info->pages_lock, flags);
@@ -560,6 +560,7 @@ static int cmm_migratepage(struct balloon_dev_info *b_dev_info,*/ plpar_page_set_active (page); +balloon_page_finalize (page);/* balloon page list reference */ put_page (page);
@@ -570,7 +571,6 @@ static int cmm_balloon_compaction_init(void) {int rc; -balloon_devinfo_init (&b_dev_info); b_dev_info.migratepage = cmm_migratepage; balloon_mnt =kern_mount (&balloon_fs);
@@ -624,6 +624,7 @@ static int cmm_init(void)if (!firmware_has_feature (FW_FEATURE_CMO ) && !simulate)return -EOPNOTSUPP ; +balloon_devinfo_init (&b_dev_info); rc =cmm_balloon_compaction_init ();if (rc)return rc;
arch/s390/kernel/smp.c +1 -0
@@ -732,6 +732,7 @@ static void __ref smp_get_core_info(struct sclp_core_info *info, int early)continue ; info->core[info->configured].core_id = address >> smp_cpu_mt_shift; + info->core[info->configured].type = boot_core_type; info->configured++; } info->combined = info->configured;
arch/x86/crypto/blake2s-core.S +2 -2
@@ -54,7 +54,7 @@ SYM_FUNC_START(blake2s_compress_ssse3) movdqa ROT16(%rip),%xmm12 movdqa ROR328(%rip),%xmm13 movdqu 0x20(%rdi),%xmm14 - movq %rcx,%xmm15 + movd %ecx,%xmm15 leaq SIGMA+0xa0(%rip),%r8 jmp .Lbeginofloop .align 32
@@ -179,7 +179,7 @@ SYM_FUNC_START(blake2s_compress_avx512) vmovdqu (%rdi),%xmm0 vmovdqu 0x10(%rdi),%xmm1 vmovdqu 0x20(%rdi),%xmm4 - vmovq %rcx,%xmm5 + vmovd %ecx,%xmm5 vmovdqa IV(%rip),%xmm14 vmovdqa IV+16(%rip),%xmm15 jmp .Lblake2s_compress_avx512_mainloop
arch/x86/events/intel/core.c +3 -1
@@ -3515,7 +3515,9 @@ static unsigned long intel_pmu_large_pebs_flags(struct perf_event *event)if (!event->attr.exclude_kernel) flags &= ~PERF_SAMPLE_REGS_USER ;if (event->attr.sample_regs_user & ~PEBS_GP_REGS ) - flags &= ~(PERF_SAMPLE_REGS_USER |PERF_SAMPLE_REGS_INTR ); + flags &= ~PERF_SAMPLE_REGS_USER ; +if (event->attr.sample_regs_intr & ~PEBS_GP_REGS ) + flags &= ~PERF_SAMPLE_REGS_INTR ;return flags; }
arch/x86/include/asm/ptrace.h +10 -10
@@ -109,12 +109,12 @@ convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);extern void send_sigtrap (struct pt_regs *regs,int error_code,int si_code); -static inline unsigned long regs_return_value (struct pt_regs *regs) +static __always_inline unsigned long regs_return_value (struct pt_regs *regs) {return regs->ax; } -static inline void regs_set_return_value (struct pt_regs *regs,unsigned long rc) +static __always_inline void regs_set_return_value(struct pt_regs *regs, unsigned long rc) { regs->ax = rc; }
@@ -195,34 +195,34 @@ static inline bool ip_within_syscall_gap(struct pt_regs *regs) }#endif -static inline unsigned long kernel_stack_pointer (struct pt_regs *regs) +static __always_inline unsigned long kernel_stack_pointer (struct pt_regs *regs) {return regs->sp; } -static inline unsigned long instruction_pointer (struct pt_regs *regs) +static __always_inline unsigned long instruction_pointer (struct pt_regs *regs) {return regs->ip; } -static inline void instruction_pointer_set (struct pt_regs *regs, -unsigned long val) +static __always_inline +void instruction_pointer_set(struct pt_regs *regs, unsigned long val) { regs->ip = val; } -static inline unsigned long frame_pointer (struct pt_regs *regs) +static __always_inline unsigned long frame_pointer (struct pt_regs *regs) {return regs->bp; } -static inline unsigned long user_stack_pointer (struct pt_regs *regs) +static __always_inline unsigned long user_stack_pointer (struct pt_regs *regs) {return regs->sp; } -static inline void user_stack_pointer_set (struct pt_regs *regs, -unsigned long val) +static __always_inline +void user_stack_pointer_set(struct pt_regs *regs, unsigned long val) { regs->sp = val; }
arch/x86/include/asm/stacktrace.h +0 -3
@@ -88,9 +88,6 @@ get_stack_pointer(struct task_struct *task, struct pt_regs *regs)return (unsigned long *)task->thread.sp; } -void show_trace_log_lvl (struct task_struct *task,struct pt_regs *regs, -unsigned long *stack,const char *log_lvl); -/* The form of the top of the frame on the stack */ struct stack_frame {struct stack_frame *next_frame;
arch/x86/kernel/dumpstack.c +27 -2
@@ -183,8 +183,14 @@ static void show_regs_if_on_stack(struct stack_info *info, struct pt_regs *regs, } } -void show_trace_log_lvl (struct task_struct *task,struct pt_regs *regs, -unsigned long *stack,const char *log_lvl) +/* +* This function reads pointers from the stack and dereferences them. The +* pointers may not have their KMSAN shadow set up properly, which may result +* in false positive reports. Disable instrumentation to avoid those. +*/ +__no_kmsan_checks +static void __show_trace_log_lvl(struct task_struct *task, struct pt_regs *regs, +unsigned long *stack,const char *log_lvl) {struct unwind_state state;struct stack_info stack_info = {0 };
@@ -305,6 +311,25 @@ void show_trace_log_lvl(struct task_struct *task, struct pt_regs *regs, } } +static void show_trace_log_lvl (struct task_struct *task,struct pt_regs *regs, +unsigned long *stack,const char *log_lvl) +{ +/* +* Disable KASAN to avoid false positives during walking another +* task's stacks, as values on these stacks may change concurrently +* with task execution. +*/ +bool disable_kasan = task && task != current; + +if (disable_kasan) +kasan_disable_current (); + +__show_trace_log_lvl (task, regs, stack, log_lvl); + +if (disable_kasan) +kasan_enable_current (); +} +void show_stack (struct task_struct *task,unsigned long *sp,const char *loglvl) {
arch/x86/kernel/unwind_frame.c +11 -0
@@ -183,6 +183,16 @@ static struct pt_regs *decode_frame_pointer(unsigned long *bp) }#endif +/* +* While walking the stack, KMSAN may stomp on stale locals from other +* functions that were marked as uninitialized upon function exit, and +* now hold the call frame information for the current function (e.g. the frame +* pointer). Because KMSAN does not specifically mark call frames as +* initialized, false positive reports are possible. To prevent such reports, +* we mark the functions scanning the stack (here and below) with +* __no_kmsan_checks. +*/ +__no_kmsan_checks static bool update_stack_state(struct unwind_state *state,unsigned long *next_bp) {
@@ -251,6 +261,7 @@ static bool update_stack_state(struct unwind_state *state,return true; } +__no_kmsan_checks bool unwind_next_frame(struct unwind_state *state) {struct pt_regs *regs;
arch/x86/kvm/lapic.c +25 -7
@@ -1790,15 +1790,33 @@ static void advance_periodic_target_expiration(struct kvm_lapic *apic)ktime_t delta;/* -* Synchronize both deadlines to the same time source or -* differences in the periods (caused by differences in the -* underlying clocks or numerical approximation errors) will -* cause the two to drift apart over time as the errors -* accumulate. +* Use kernel time as the time source for both the hrtimer deadline and +* TSC-based deadline so that they stay synchronized. Computing each +* deadline independently will cause the two deadlines to drift apart +* over time as differences in the periods accumulate, e.g. due to +* differences in the underlying clocks or numerical approximation errors. */ apic->lapic_timer.target_expiration =ktime_add_ns (apic->lapic_timer.target_expiration, apic->lapic_timer.period); + +/* +* If the new expiration is in the past, e.g. because userspace stopped +* running the VM for an extended duration, then force the expiration +* to "now" and don't try to play catch-up with the missed events. KVM +* will only deliver a single interrupt regardless of how many events +* are pending, i.e. restarting the timer with an expiration in the +* past will do nothing more than waste host cycles, and can even lead +* to a hard lockup in extreme cases. +*/ +if (ktime_before (apic->lapic_timer.target_expiration, now)) + apic->lapic_timer.target_expiration = now; + +/* +* Note, ensuring the expiration isn't in the past also prevents delta +* from going negative, which could cause the TSC deadline to become +* excessively large due to it an unsigned value. +*/ delta =ktime_sub (apic->lapic_timer.target_expiration, now); apic->lapic_timer.tscdeadline =kvm_read_l1_tsc (apic->vcpu, tscl) +nsec_to_cycles (apic->vcpu, delta);
@@ -2434,9 +2452,9 @@ static enum hrtimer_restart apic_timer_fn(struct hrtimer *data)apic_timer_expired (apic, true); -if (lapic_is_periodic (apic)) { +if (lapic_is_periodic (apic) && !WARN_ON_ONCE (!apic->lapic_timer.period)) {advance_periodic_target_expiration (apic); -hrtimer_add_expires_ns (&ktimer->timer, ktimer->period); +hrtimer_set_expires (&ktimer->timer, ktimer->target_expiration);return HRTIMER_RESTART ; }else return HRTIMER_NORESTART ;
arch/x86/kvm/svm/nested.c +2 -2
@@ -528,7 +528,7 @@ int nested_svm_vmrun(struct vcpu_svm *svm)if (!nested_vmcb_check_save (svm, vmcb12) || !nested_vmcb_check_controls (&svm->nested.ctl)) { vmcb12->control.exit_code =SVM_EXIT_ERR ; - vmcb12->control.exit_code_hi =0 ; + vmcb12->control.exit_code_hi =-1u ; vmcb12->control.exit_info_1 =0 ; vmcb12->control.exit_info_2 =0 ; goto out;
@@ -587,7 +587,7 @@ int nested_svm_vmrun(struct vcpu_svm *svm) svm->nested.nested_run_pending =0 ; svm->vmcb->control.exit_code =SVM_EXIT_ERR ; - svm->vmcb->control.exit_code_hi =0 ; + svm->vmcb->control.exit_code_hi =-1u ; svm->vmcb->control.exit_info_1 =0 ; svm->vmcb->control.exit_info_2 =0 ;
arch/x86/kvm/svm/svm.c +9 -9
@@ -3900,20 +3900,20 @@ static int svm_check_intercept(struct kvm_vcpu *vcpu, INTERCEPT_SELECTIVE_CR0)))break ; - cr0 = vcpu->arch.cr0 & ~SVM_CR0_SELECTIVE_MASK ; - val = info->src_val & ~SVM_CR0_SELECTIVE_MASK ; - +/* LMSW always triggers INTERCEPT_SELECTIVE_CR0 */ if (info->intercept == x86_intercept_lmsw) { - cr0 &=0xfUL ; - val &=0xfUL ; -/* lmsw can't clear PE - catch this here */ -if (cr0 &X86_CR0_PE ) - val |=X86_CR0_PE ; + icpt_info.exit_code =SVM_EXIT_CR0_SEL_WRITE ; +break ; } +/* +* MOV-to-CR0 only triggers INTERCEPT_SELECTIVE_CR0 if any bit +* other than SVM_CR0_SELECTIVE_MASK is changed. +*/ + cr0 = vcpu->arch.cr0 & ~SVM_CR0_SELECTIVE_MASK ; + val = info->src_val & ~SVM_CR0_SELECTIVE_MASK ;if (cr0 ^ val) icpt_info.exit_code =SVM_EXIT_CR0_SEL_WRITE ; -break ; }case SVM_EXIT_READ_DR0 :
block/blk-mq.c +16 -2
@@ -23,6 +23,7 @@#include <linux/sched/sysctl.h> #include <linux/sched/topology.h> #include <linux/sched/signal.h> +#include <linux/suspend.h> #include <linux/delay.h> #include <linux/crash_dump.h> #include <linux/prefetch.h>
@@ -2548,6 +2549,7 @@ static int blk_mq_hctx_notify_offline(unsigned int cpu, struct hlist_node *node) {struct blk_mq_hw_ctx *hctx =hlist_entry_safe (node, struct blk_mq_hw_ctx, cpuhp_online); +int ret =0 ;if (!cpumask_test_cpu (cpu, hctx->cpumask) || !blk_mq_last_cpu_in_hctx (cpu, hctx))
@@ -2569,12 +2571,24 @@ static int blk_mq_hctx_notify_offline(unsigned int cpu, struct hlist_node *node)* frozen and there are no requests. */ if (percpu_ref_tryget (&hctx->queue->q_usage_counter)) { -while (blk_mq_hctx_has_requests (hctx)) +while (blk_mq_hctx_has_requests (hctx)) { +/* +* The wakeup capable IRQ handler of block device is +* not called during suspend. Skip the loop by checking +* pm_wakeup_pending to prevent the deadlock and improve +* suspend latency. +*/ +if (pm_wakeup_pending ()) { +clear_bit (BLK_MQ_S_INACTIVE , &hctx->state); + ret = -EBUSY ; +break ; + }msleep (5 ); + }percpu_ref_put (&hctx->queue->q_usage_counter); } -return 0 ; +return ret; }static int blk_mq_hctx_notify_online (unsigned int cpu,struct hlist_node *node)
block/blk-throttle.c +10 -6
@@ -2216,8 +2216,10 @@ bool blk_throtl_bio(struct bio *bio)rcu_read_lock ();/* see throtl_charge_bio() */ -if (bio_flagged (bio,BIO_THROTTLED )) - goto out; +if (bio_flagged (bio,BIO_THROTTLED )) { +rcu_read_unlock (); +return false; + }if (!cgroup_subsys_on_dfl (io_cgrp_subsys)) { blkg_rwstat_add(&tg->stat_bytes, bio->bi_opf,
@@ -2225,8 +2227,10 @@ bool blk_throtl_bio(struct bio *bio)blkg_rwstat_add (&tg->stat_ios, bio->bi_opf,1 ); } -if (!tg->has_rules[rw]) - goto out; +if (!tg->has_rules[rw]) { +rcu_read_unlock (); +return false; + }spin_lock_irq (&q->queue_lock);
@@ -2310,14 +2314,14 @@ bool blk_throtl_bio(struct bio *bio) } out_unlock: -spin_unlock_irq (&q->queue_lock); -out:bio_set_flag (bio,BIO_THROTTLED );#ifdef CONFIG_BLK_DEV_THROTTLING_LOW if (throttled || !td->track_bio_latency) bio->bi_issue.value |=BIO_ISSUE_THROTL_SKIP_LATENCY ;#endif +spin_unlock_irq (&q->queue_lock); +rcu_read_unlock ();return throttled; }
crypto/af_alg.c +2 -3
@@ -1127,14 +1127,13 @@ struct af_alg_async_req *af_alg_alloc_areq(struct sock *sk,if (unlikely (!areq))return ERR_PTR (-ENOMEM ); +memset (areq,0 , areqlen); + ctx->inflight = true; areq->areqlen = areqlen; areq->sk = sk; - areq->last_rsgl =NULL ;INIT_LIST_HEAD (&areq->rsgl_list); - areq->tsgl =NULL ; - areq->tsgl_entries =0 ;return areq; }
crypto/algif_hash.c +1 -2
@@ -423,9 +423,8 @@ static int hash_accept_parent_nokey(void *private, struct sock *sk)if (!ctx)return -ENOMEM ; - ctx->result =NULL ; +memset (ctx,0 , len); ctx->len = len; - ctx->more = false;crypto_init_wait (&ctx->wait); ask->private = ctx;
crypto/algif_rng.c +1 -2
@@ -250,9 +250,8 @@ static int rng_accept_parent(void *private, struct sock *sk)if (!ctx)return -ENOMEM ; +memset (ctx,0 , len); ctx->len = len; - ctx->addtl =NULL ; - ctx->addtl_len =0 ;/* * No seeding done at that point -- if multiple accepts are
crypto/asymmetric_keys/asymmetric_type.c +10 -4
@@ -11,6 +11,7 @@#include <crypto/public_key.h> #include <linux/seq_file.h> #include <linux/module.h> +#include <linux/overflow.h> #include <linux/slab.h> #include <linux/ctype.h> #include <keys/system_keyring.h>
@@ -138,12 +139,17 @@ struct asymmetric_key_id *asymmetric_key_generate_id(const void *val_1, size_t len_2) {struct asymmetric_key_id *kid; - - kid =kmalloc (sizeof (struct asymmetric_key_id ) + len_1 + len_2, -GFP_KERNEL ); +size_t kid_sz; +size_t len; + +if (check_add_overflow (len_1, len_2, &len)) +return ERR_PTR (-EOVERFLOW ); +if (check_add_overflow (sizeof (struct asymmetric_key_id ), len, &kid_sz)) +return ERR_PTR (-EOVERFLOW ); + kid =kmalloc (kid_sz,GFP_KERNEL );if (!kid)return ERR_PTR (-ENOMEM ); - kid->len = len_1 + len_2; + kid->len = len;memcpy (kid->data, val_1, len_1);memcpy (kid->data + len_1, val_2, len_2);return kid;
crypto/seqiv.c +5 -3
@@ -51,6 +51,7 @@ static int seqiv_aead_encrypt(struct aead_request *req)struct aead_geniv_ctx *ctx =crypto_aead_ctx (geniv);struct aead_request *subreq =aead_request_ctx (req);crypto_completion_t compl; +bool unaligned_info;void *data;u8 *info;unsigned int ivsize =8 ;
@@ -80,8 +81,9 @@ static int seqiv_aead_encrypt(struct aead_request *req)return err; } -if (unlikely (!IS_ALIGNED ((unsigned long )info, -crypto_aead_alignmask (geniv) +1 ))) { + unaligned_info = !IS_ALIGNED ((unsigned long )info, +crypto_aead_alignmask (geniv) +1 ); +if (unlikely (unaligned_info)) { info =kmemdup (req->iv, ivsize, req->base.flags &CRYPTO_TFM_REQ_MAY_SLEEP ?GFP_KERNEL :GFP_ATOMIC );
@@ -101,7 +103,7 @@ static int seqiv_aead_encrypt(struct aead_request *req)scatterwalk_map_and_copy (info, req->dst, req->assoclen, ivsize,1 ); err =crypto_aead_encrypt (subreq); -if (unlikely (info != req->iv)) +if (unlikely (unaligned_info))seqiv_aead_encrypt_complete2 (req, err);return err; }
drivers/acpi/acpica/nswalk.c +6 -3
@@ -169,9 +169,12 @@ acpi_ns_walk_namespace(acpi_object_type type,if (start_node ==ACPI_ROOT_OBJECT ) { start_node = acpi_gbl_root_node; -if (!start_node) { -return_ACPI_STATUS (AE_NO_NAMESPACE ); - } + } + +/* Avoid walking the namespace if the StartNode is NULL */ + +if (!start_node) { +return_ACPI_STATUS (AE_NO_NAMESPACE ); }/* Null child means "get first node" */
drivers/acpi/apei/ghes.c +10 -6
@@ -22,6 +22,7 @@#include <linux/moduleparam.h> #include <linux/init.h> #include <linux/acpi.h> +#include <linux/bitfield.h> #include <linux/io.h> #include <linux/interrupt.h> #include <linux/timer.h>
@@ -500,6 +501,7 @@ static bool ghes_handle_arm_hw_error(struct acpi_hest_generic_data *gdata, {struct cper_sec_proc_arm *err =acpi_hest_get_payload (gdata);int flags = sync ?MF_ACTION_REQUIRED :0 ; +char error_type[120 ];bool queued = false;int sec_sev, i;char *p;
@@ -513,9 +515,8 @@ static bool ghes_handle_arm_hw_error(struct acpi_hest_generic_data *gdata, p = (char *)(err +1 );for (i =0 ; i < err->err_info_num; i++) {struct cper_arm_err_info *err_info = (struct cper_arm_err_info *)p; -bool is_cache = (err_info->type ==CPER_ARM_CACHE_ERROR ); +bool is_cache = err_info->type &CPER_ARM_CACHE_ERROR ;bool has_pa = (err_info->validation_bits &CPER_ARM_INFO_VALID_PHYSICAL_ADDR ); -const char *error_type ="unknown error" ;/* * The field (err_info->error_info & BIT(26)) is fixed to set to
@@ -529,12 +530,15 @@ static bool ghes_handle_arm_hw_error(struct acpi_hest_generic_data *gdata,continue ; } -if (err_info->type <ARRAY_SIZE (cper_proc_error_type_strs)) - error_type = cper_proc_error_type_strs[err_info->type]; +cper_bits_to_str (error_type,sizeof (error_type), +FIELD_GET (CPER_ARM_ERR_TYPE_MASK , err_info->type), + cper_proc_error_type_strs, +ARRAY_SIZE (cper_proc_error_type_strs)); pr_warn_ratelimited(FW_WARN GHES_PFX -"Unhandled processor error type: %s\n" , - error_type); +"Unhandled processor error type 0x%02x: %s%s\n" , + err_info->type, error_type, + (err_info->type & ~CPER_ARM_ERR_TYPE_MASK) ? " with reserved bit(s)" : ""); p += err_info->length; }
drivers/acpi/cppc_acpi.c +2 -1
@@ -1097,7 +1097,8 @@ int cppc_get_perf_caps(int cpunum, struct cppc_perf_caps *perf_caps)/* Are any of the regs PCC ?*/ if (CPC_IN_PCC (highest_reg) ||CPC_IN_PCC (lowest_reg) ||CPC_IN_PCC (lowest_non_linear_reg) ||CPC_IN_PCC (nominal_reg) || -CPC_IN_PCC (low_freq_reg) ||CPC_IN_PCC (nom_freq_reg)) { +CPC_IN_PCC (low_freq_reg) ||CPC_IN_PCC (nom_freq_reg) || +CPC_IN_PCC (guaranteed_reg)) {if (pcc_ss_id <0 ) {pr_debug ("Invalid pcc_ss_id\n" );return -ENODEV ;
drivers/acpi/processor_core.c +1 -1
@@ -54,7 +54,7 @@ static int map_x2apic_id(struct acpi_subtable_header *entry,if (!(apic->lapic_flags &ACPI_MADT_ENABLED ))return -ENODEV ; -if (device_declaration && (apic->uid == acpi_id)) { +if (apic->uid == acpi_id && (device_declaration || acpi_id <255 )) { *apic_id = apic->local_apic_id;return 0 ; }
drivers/acpi/property.c +5 -4
@@ -1188,7 +1188,7 @@ static struct fwnode_handle *acpi_graph_get_next_endpoint(if (!prev) { do { - port = fwnode_get_next_child_node(fwnode, port); + port = acpi_get_next_subnode(fwnode, port); /* * The names of the port nodes begin with "port@" * followed by the number of the port node and they also
@@ -1206,13 +1206,13 @@ static struct fwnode_handle *acpi_graph_get_next_endpoint(if (!port)return NULL ; - endpoint =fwnode_get_next_child_node (port, prev); + endpoint =acpi_get_next_subnode (port, prev);while (!endpoint) { - port =fwnode_get_next_child_node (fwnode, port); + port =acpi_get_next_subnode (fwnode, port);if (!port)break ;if (is_acpi_graph_node (port,"port" )) - endpoint =fwnode_get_next_child_node (port,NULL ); + endpoint =acpi_get_next_subnode (port,NULL ); }/*
@@ -1423,6 +1423,7 @@ static int acpi_fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode,if (fwnode_property_read_u32 (fwnode,"reg" , &endpoint->id))fwnode_property_read_u32 (fwnode,"endpoint" , &endpoint->id); +fwnode_handle_put (port_fwnode);return 0 ; }
drivers/amba/tegra-ahb.c +1 -0
@@ -144,6 +144,7 @@ int tegra_ahb_enable_smmu(struct device_node *dn)if (!dev)return -EPROBE_DEFER ; ahb =dev_get_drvdata (dev); +put_device (dev); val =gizmo_readl (ahb,AHB_ARBITRATION_XBAR_CTRL ); val |=AHB_ARBITRATION_XBAR_CTRL_SMMU_INIT_DONE ;gizmo_writel (ahb, val,AHB_ARBITRATION_XBAR_CTRL );
drivers/atm/he.c +2 -1
@@ -1590,7 +1590,8 @@ he_stop(struct he_dev *he_dev) he_dev->tbrq_base, he_dev->tbrq_phys);if (he_dev->tpdrq_base) -dma_free_coherent (&he_dev->pci_dev->dev,CONFIG_TBRQ_SIZE *sizeof (struct he_tbrq ), +dma_free_coherent (&he_dev->pci_dev->dev, +CONFIG_TPDRQ_SIZE *sizeof (struct he_tpdrq ), he_dev->tpdrq_base, he_dev->tpdrq_phys);dma_pool_destroy (he_dev->tpd_pool);
drivers/base/power/runtime.c +12 -10
@@ -1749,16 +1749,18 @@ void pm_runtime_init(struct device *dev)*/ void pm_runtime_reinit (struct device *dev) { -if (!pm_runtime_enabled (dev)) { -if (dev->power.runtime_status ==RPM_ACTIVE ) -pm_runtime_set_suspended (dev); -if (dev->power.irq_safe) { -spin_lock_irq (&dev->power.lock); - dev->power.irq_safe =0 ; -spin_unlock_irq (&dev->power.lock); -if (dev->parent) -pm_runtime_put (dev->parent); - } +if (pm_runtime_enabled (dev)) +return ; + +if (dev->power.runtime_status ==RPM_ACTIVE ) +pm_runtime_set_suspended (dev); + +if (dev->power.irq_safe) { +spin_lock_irq (&dev->power.lock); + dev->power.irq_safe =0 ; +spin_unlock_irq (&dev->power.lock); +if (dev->parent) +pm_runtime_put (dev->parent); }/* * Clear power.needs_force_resume in case it has been set by
drivers/block/floppy.c +1 -1
@@ -332,7 +332,7 @@ static bool initialized;* This default is used whenever the current disk size is unknown. * [Now it is rather a minimum] */ -#define MAX_DISK_SIZE 4/* 3984 */ +#define MAX_DISK_SIZE (PAGE_SIZE / 1024)/* * globals used by 'result()'
drivers/block/nbd.c +54 -38
186 lines not on this page · raw message
drivers/block/rnbd/rnbd-clt.c +9 -11
@@ -23,7 +23,6 @@ MODULE_LICENSE("GPL");static int rnbd_client_major;static DEFINE_IDA (index_ida); -static DEFINE_MUTEX (ida_lock);static DEFINE_MUTEX (sess_lock);static LIST_HEAD (sess_list);
@@ -55,9 +54,7 @@ static void rnbd_clt_put_dev(struct rnbd_clt_dev *dev)if (!refcount_dec_and_test (&dev->refcount))return ; -mutex_lock (&ida_lock); -ida_simple_remove (&index_ida, dev->clt_device_id); -mutex_unlock (&ida_lock); +ida_free (&index_ida, dev->clt_device_id);kfree (dev->hw_queues);kfree (dev->pathname);rnbd_clt_put_sess (dev->sess);
@@ -1381,11 +1378,11 @@ static struct rnbd_clt_dev *init_dev(struct rnbd_clt_session *sess, goto out_alloc; } -mutex_lock (&ida_lock); - ret =ida_simple_get (&index_ida,0 ,1 << (MINORBITS -RNBD_PART_BITS ), -GFP_KERNEL ); -mutex_unlock (&ida_lock); -if (ret <0 ) { + dev->clt_device_id =ida_alloc_max (&index_ida, + (1 << (MINORBITS -RNBD_PART_BITS )) -1 , +GFP_KERNEL ); +if (dev->clt_device_id <0 ) { + ret = dev->clt_device_id;pr_err ("Failed to initialize device '%s' from session %s, allocating idr failed, err: %d\n" , pathname, sess->sessname, ret); goto out_queues;
@@ -1394,10 +1391,9 @@ static struct rnbd_clt_dev *init_dev(struct rnbd_clt_session *sess, dev->pathname =kstrdup (pathname,GFP_KERNEL );if (!dev->pathname) { ret = -ENOMEM ; - goto out_queues; + goto out_ida; } - dev->clt_device_id = ret; dev->sess = sess; dev->access_mode = access_mode;mutex_init (&dev->lock);
@@ -1412,6 +1408,8 @@ static struct rnbd_clt_dev *init_dev(struct rnbd_clt_session *sess,return dev; +out_ida: +ida_free (&index_ida, dev->clt_device_id); out_queues:kfree (dev->hw_queues); out_alloc:
drivers/block/rnbd/rnbd-clt.h +1 -1
@@ -105,7 +105,7 @@ struct rnbd_clt_dev {struct rnbd_queue *hw_queues;u32 device_id;/* local Idr index - used to track minor number allocations. */ -u32 clt_device_id; +int clt_device_id;struct mutex lock;enum rnbd_clt_dev_state dev_state;char *pathname;
drivers/bluetooth/btusb.c +2 -0
@@ -396,6 +396,8 @@ static const struct usb_device_id blacklist_table[] = {/* Realtek 8821CE Bluetooth devices */ { USB_DEVICE(0x13d3, 0x3529), .driver_info = BTUSB_REALTEK | BTUSB_WIDEBAND_SPEECH }, + { USB_DEVICE(0x13d3, 0x3533), .driver_info = BTUSB_REALTEK | + BTUSB_WIDEBAND_SPEECH }, /* Realtek 8822CE Bluetooth devices */ { USB_DEVICE(0x0bda, 0xb00c), .driver_info = BTUSB_REALTEK |
drivers/bus/fsl-mc/fsl-mc-bus.c +3 -3
@@ -1085,14 +1085,14 @@ static int fsl_mc_bus_probe(struct platform_device *pdev)static int fsl_mc_bus_remove (struct platform_device *pdev) {struct fsl_mc *mc =platform_get_drvdata (pdev); +struct fsl_mc_io *mc_io;if (!fsl_mc_is_root_dprc (&mc->root_mc_bus_dev->dev))return -EINVAL ; + mc_io = mc->root_mc_bus_dev->mc_io;fsl_mc_device_remove (mc->root_mc_bus_dev); - -fsl_destroy_mc_io (mc->root_mc_bus_dev->mc_io); - mc->root_mc_bus_dev->mc_io =NULL ; +fsl_destroy_mc_io (mc_io);return 0 ; }
drivers/bus/ti-sysc.c +9 -2
@@ -37,6 +37,7 @@ enum sysc_soc {SOC_UNKNOWN ,SOC_2420 ,SOC_2430 , +SOC_AM33 ,SOC_3430 ,SOC_AM35 , SOC_3630,
@@ -2933,6 +2934,7 @@ static void ti_sysc_idle(struct work_struct *work)static const struct soc_device_attribute sysc_soc_match[] = {SOC_FLAG ("OMAP242*" ,SOC_2420 ),SOC_FLAG ("OMAP243*" ,SOC_2430 ), +SOC_FLAG ("AM33*" ,SOC_AM33 ),SOC_FLAG ("AM35*" ,SOC_AM35 ),SOC_FLAG ("OMAP3[45]*" ,SOC_3430 ),SOC_FLAG ("OMAP3[67]*" ,SOC_3630 ),
@@ -3121,10 +3123,15 @@ static int sysc_check_active_timer(struct sysc *ddata)* can be dropped if we stop supporting old beagleboard revisions * A to B4 at some point. */ -if (sysc_soc->soc ==SOC_3430 || sysc_soc->soc ==SOC_AM35 ) +switch (sysc_soc->soc) { +case SOC_AM33 : +case SOC_3430 : +case SOC_AM35 : error = -ENXIO ; -else +break ; +default : error = -EBUSY ; + }if ((ddata->cfg.quirks &SYSC_QUIRK_NO_RESET_ON_INIT ) && (ddata->cfg.quirks &SYSC_QUIRK_NO_IDLE ))
drivers/char/applicom.c +4 -1
@@ -836,7 +836,10 @@ static long ac_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ret = -ENOTTY ;break ; } - Dummy =readb (apbs[IndexCard].RamIO +VERS ); + +if (cmd !=6 ) + Dummy =readb (apbs[IndexCard].RamIO +VERS ); +kfree (adgl);mutex_unlock (&ac_mutex);return 0 ;
drivers/char/ipmi/ipmi_msghandler.c +13 -7
@@ -605,7 +605,8 @@ static void __ipmi_bmc_unregister(struct ipmi_smi *intf);static int __ipmi_bmc_register (struct ipmi_smi *intf,struct ipmi_device_id *id,bool guid_set,guid_t *guid,int intf_num); -static int __scan_channels (struct ipmi_smi *intf,struct ipmi_device_id *id); +static int __scan_channels (struct ipmi_smi *intf, +struct ipmi_device_id *id,bool rescan);/**
@@ -2556,7 +2557,7 @@ static int __bmc_get_device_id(struct ipmi_smi *intf, struct bmc_device *bmc,if (__ipmi_bmc_register (intf, &id, guid_set, &guid, intf_num))need_waiter (intf);/* Retry later on an error. */ else -__scan_channels (intf, &id); +__scan_channels (intf, &id, false);if (!intf_set) {
@@ -2576,7 +2577,7 @@ static int __bmc_get_device_id(struct ipmi_smi *intf, struct bmc_device *bmc, goto out_noprocessing; }else if (memcmp (&bmc->fetch_id, &bmc->id,sizeof (bmc->id)))/* Version info changes, scan the channels again. */ -__scan_channels (intf, &bmc->fetch_id); +__scan_channels (intf, &bmc->fetch_id, true); bmc->dyn_id_expiry = jiffies +IPMI_DYN_DEV_ID_EXPIRY ;
@@ -3305,8 +3306,6 @@ channel_handler(struct ipmi_smi *intf, struct ipmi_recv_msg *msg) intf->channels_ready = true;wake_up (&intf->waitq); }else { - intf->channel_list = intf->wchannels + set; - intf->channels_ready = true; rv =send_channel_info_cmd (intf, intf->curr_channel); }
@@ -3328,10 +3327,17 @@ channel_handler(struct ipmi_smi *intf, struct ipmi_recv_msg *msg)/* * Must be holding intf->bmc_reg_mutex to call this. */ -static int __scan_channels (struct ipmi_smi *intf,struct ipmi_device_id *id) +static int __scan_channels (struct ipmi_smi *intf, +struct ipmi_device_id *id, +bool rescan) {int rv; +if (rescan) { +/* Clear channels_ready to force channels rescan. */ + intf->channels_ready = false; + } +if (ipmi_version_major (id) >1 || (ipmi_version_major (id) ==1 &&ipmi_version_minor (id) >=5 )) {
@@ -3503,7 +3509,7 @@ int ipmi_add_smi(struct module *owner, }mutex_lock (&intf->bmc_reg_mutex); - rv =__scan_channels (intf, &id); + rv =__scan_channels (intf, &id, false);mutex_unlock (&intf->bmc_reg_mutex);if (rv) goto out_err_bmc_reg;
drivers/char/tpm/tpm-chip.c +0 -1
@@ -269,7 +269,6 @@ static void tpm_dev_release(struct device *dev)kfree (chip->work_space.context_buf);kfree (chip->work_space.session_buf); -kfree (chip->allocated_banks);kfree (chip); }
drivers/char/tpm/tpm1-cmd.c +0 -5
@@ -794,11 +794,6 @@ int tpm1_pm_suspend(struct tpm_chip *chip, u32 tpm_suspend_pcr)*/ int tpm1_get_pcr_allocation (struct tpm_chip *chip) { - chip->allocated_banks =kcalloc (1 ,sizeof (*chip->allocated_banks), -GFP_KERNEL ); -if (!chip->allocated_banks) -return -ENOMEM ; - chip->allocated_banks[0 ].alg_id =TPM_ALG_SHA1 ; chip->allocated_banks[0 ].digest_size = hash_digest_size[HASH_ALGO_SHA1 ]; chip->allocated_banks[0 ].crypto_id =HASH_ALGO_SHA1 ;
drivers/char/tpm/tpm2-cmd.c +3 -5
@@ -574,11 +574,9 @@ ssize_t tpm2_get_pcr_allocation(struct tpm_chip *chip) nr_possible_banks =be32_to_cpup ( (__be32 *)&buf.data[TPM_HEADER_SIZE +5 ]); - - chip->allocated_banks =kcalloc (nr_possible_banks, -sizeof (*chip->allocated_banks), -GFP_KERNEL ); -if (!chip->allocated_banks) { +if (nr_possible_banks >TPM2_MAX_PCR_BANKS ) { +pr_err ("tpm: out of bank capacity: %u > %u\n" , + nr_possible_banks,TPM2_MAX_PCR_BANKS ); rc = -ENOMEM ; goto out; }
drivers/char/virtio_console.c +1 -1
@@ -1617,8 +1617,8 @@ static void handle_control_message(struct virtio_device *vdev,break ;case VIRTIO_CONSOLE_RESIZE : {struct { -__virtio16 rows;__virtio16 cols; +__virtio16 rows; } size;if (!is_console_port (port))
drivers/clk/mvebu/cp110-system-controller.c +20 -0
@@ -110,6 +110,25 @@ static const char * const gate_base_names[] = { [CP110_GATE_EIP197 ] ="eip197" }; +static unsigned long gate_flags (const u8 bit_idx) +{ +switch (bit_idx) { +case CP110_GATE_PCIE_X1_0 : +case CP110_GATE_PCIE_X1_1 : +case CP110_GATE_PCIE_X4 : +/* +* If a port had an active link at boot time, stopping +* the clock creates a failed state from which controller +* driver can not recover. +* Prevent stopping this clock till after a driver has taken +* ownership. +*/ +return CLK_IGNORE_UNUSED ; +default : +return 0 ; + } +}; +struct cp110_gate_clk {struct clk_hw hw;struct regmap *regmap;
@@ -171,6 +190,7 @@ static struct clk_hw *cp110_register_gate(const char *name, init.ops = &cp110_gate_ops; init.parent_names = &parent_name; init.num_parents =1 ; + init.flags =gate_flags (bit_idx); gate->regmap = regmap; gate->bit_idx = bit_idx;
drivers/clk/renesas/r9a06g032-clocks.c +4 -3
@@ -917,9 +917,10 @@ static int __init r9a06g032_clocks_probe(struct platform_device *pdev)if (IS_ERR (mclk))return PTR_ERR (mclk); - clocks->reg =of_iomap (np,0 ); -if (WARN_ON (!clocks->reg)) -return -ENOMEM ; + clocks->reg =devm_of_iomap (dev, np,0 ,NULL ); +if (IS_ERR (clocks->reg)) +return PTR_ERR (clocks->reg); +for (i =0 ; i <ARRAY_SIZE (r9a06g032_clocks); ++i) {const struct r9a06g032_clkdesc *d = &r9a06g032_clocks[i]; const char *parent_name = d->source ?
drivers/cpufreq/cpufreq-nforce2.c +3 -0
@@ -145,6 +145,8 @@ static unsigned int nforce2_fsb_read(int bootfsb)pci_read_config_dword (nforce2_sub5,NFORCE2_BOOTFSB , &fsb); fsb /=1000000 ; +pci_dev_put (nforce2_sub5); +/* Check if PLL register is already set */ pci_read_config_byte (nforce2_dev,NFORCE2_PLLENABLE , (u8 *)&temp);
@@ -432,6 +434,7 @@ static int __init nforce2_init(void) static void __exit nforce2_exit(void) {cpufreq_unregister_driver (&nforce2_driver); +pci_dev_put (nforce2_dev); }module_init (nforce2_init);
drivers/cpufreq/s5pv210-cpufreq.c +4 -2
@@ -518,7 +518,7 @@ static int s5pv210_cpu_init(struct cpufreq_policy *policy)if (policy->cpu !=0 ) { ret = -EINVAL ; - goto out_dmc1; + goto out; }/*
@@ -530,7 +530,7 @@ static int s5pv210_cpu_init(struct cpufreq_policy *policy)if ((mem_type !=LPDDR ) && (mem_type !=LPDDR2 )) {pr_err ("CPUFreq doesn't support this memory type\n" ); ret = -EINVAL ; - goto out_dmc1; + goto out; }/* Find current refresh counter and frequency each DMC */
@@ -544,6 +544,8 @@ static int s5pv210_cpu_init(struct cpufreq_policy *policy)cpufreq_generic_init (policy, s5pv210_freq_table,40000 );return 0 ; +out: +clk_put (dmc1_clk); out_dmc1:clk_put (dmc0_clk); out_dmc0:
drivers/cpufreq/scmi-cpufreq.c +8 -2
@@ -29,12 +29,18 @@ static const struct scmi_handle *handle;static unsigned int scmi_cpufreq_get_rate (unsigned int cpu) { -struct cpufreq_policy *policy =cpufreq_cpu_get_raw (cpu); +struct cpufreq_policy *policy; +struct scmi_data *priv;const struct scmi_perf_ops *perf_ops = handle->perf_ops; -struct scmi_data *priv = policy->driver_data;unsigned long rate;int ret; + policy =cpufreq_cpu_get_raw (cpu); +if (unlikely (!policy)) +return 0 ; + + priv = policy->driver_data; + ret = perf_ops->freq_get (handle, priv->domain_id, &rate, false);if (ret)return 0 ;
drivers/crypto/ccree/cc_buffer_mgr.c +5 -1
@@ -1235,6 +1235,7 @@ int cc_map_hash_request_update(struct cc_drvdata *drvdata, void *ctx,int rc =0 ;u32 dummy =0 ;u32 mapped_nents =0 ; +int sg_nents;dev_dbg (dev," update params : curr_buff=%pK curr_buff_cnt=0x%X nbytes=0x%X src=%pK curr_index=%u\n" , curr_buff, *curr_buff_cnt, nbytes, src, areq_ctx->buff_index);
@@ -1248,7 +1249,10 @@ int cc_map_hash_request_update(struct cc_drvdata *drvdata, void *ctx,if (total_in_len < block_size) {dev_dbg (dev," less than one block: curr_buff=%pK *curr_buff_cnt=0x%X copy_to=%pK\n" , curr_buff, *curr_buff_cnt, &curr_buff[*curr_buff_cnt]); - areq_ctx->in_nents =sg_nents_for_len (src, nbytes); + sg_nents =sg_nents_for_len (src, nbytes); +if (sg_nents <0 ) +return sg_nents; + areq_ctx->in_nents = sg_nents;sg_copy_to_buffer (src, areq_ctx->in_nents, &curr_buff[*curr_buff_cnt], nbytes); *curr_buff_cnt += nbytes;
drivers/firewire/nosy.c +26 -21
85 lines not on this page · raw message
drivers/firmware/efi/cper-arm.c +25 -27
99 lines not on this page · raw message
drivers/firmware/efi/cper.c +60 -0
72 lines not on this page · raw message
drivers/firmware/imx/imx-scu-irq.c +14 -12
@@ -137,6 +137,18 @@ int imx_scu_enable_general_irq_channel(struct device *dev)struct mbox_chan *ch;int ret =0 , i =0 ; +if (!of_parse_phandle_with_args (dev->of_node,"mboxes" , +"#mbox-cells" ,0 , &spec)) { + i =of_alias_get_id (spec.np,"mu" ); +of_node_put (spec.np); + } + +/* use mu1 as general mu irq channel if failed */ +if (i <0 ) + i =1 ; + + mu_resource_id =IMX_SC_R_MU_0A + i; + ret =imx_scu_get_handle (&imx_sc_irq_ipc_handle);if (ret)return ret;
@@ -148,6 +160,8 @@ int imx_scu_enable_general_irq_channel(struct device *dev) cl->dev = dev; cl->rx_callback = imx_scu_irq_callback; +INIT_WORK (&imx_sc_irq_work, imx_scu_irq_work_handler); +/* SCU general IRQ uses general interrupt channel 3 */ ch =mbox_request_channel_byname (cl,"gip3" );if (IS_ERR (ch)) {
@@ -157,18 +171,6 @@ int imx_scu_enable_general_irq_channel(struct device *dev)return ret; } -INIT_WORK (&imx_sc_irq_work, imx_scu_irq_work_handler); - -if (!of_parse_phandle_with_args (dev->of_node,"mboxes" , -"#mbox-cells" ,0 , &spec)) - i =of_alias_get_id (spec.np,"mu" ); - -/* use mu1 as general mu irq channel if failed */ -if (i <0 ) - i =1 ; - - mu_resource_id =IMX_SC_R_MU_0A + i; -return ret; }EXPORT_SYMBOL (imx_scu_enable_general_irq_channel);
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +4 -4
@@ -961,10 +961,10 @@ static enum bp_result get_embedded_panel_info_v2_1(/* not provided by VBIOS */ info->lcd_timing.misc_info.HORIZONTAL_CUT_OFF =0 ; - info->lcd_timing.misc_info.H_SYNC_POLARITY = ~(uint32_t ) (lvds->lcd_timing.miscinfo - &ATOM_HSYNC_POLARITY ); - info->lcd_timing.misc_info.V_SYNC_POLARITY = ~(uint32_t ) (lvds->lcd_timing.miscinfo - &ATOM_VSYNC_POLARITY ); + info->lcd_timing.misc_info.H_SYNC_POLARITY = !(lvds->lcd_timing.miscinfo & +ATOM_HSYNC_POLARITY ); + info->lcd_timing.misc_info.V_SYNC_POLARITY = !(lvds->lcd_timing.miscinfo & +ATOM_VSYNC_POLARITY );/* not provided by VBIOS */ info->lcd_timing.misc_info.VERTICAL_CUT_OFF =0 ;
drivers/gpu/drm/amd/display/dc/core/dc_surface.c +1 -1
@@ -104,7 +104,7 @@ void enable_surface_flip_reporting(struct dc_plane_state *plane_state,struct dc_plane_state *dc_create_plane_state (struct dc *dc) {struct dc_plane_state *plane_state =kvzalloc (sizeof (*plane_state), -GFP_KERNEL ); +GFP_ATOMIC );if (NULL == plane_state)return NULL ;
drivers/gpu/drm/gma500/framebuffer.c +0 -44
68 lines not on this page · raw message
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c +1 -1
@@ -794,7 +794,7 @@ static void a6xx_get_gmu_registers(struct msm_gpu *gpu,return ;/* Set the fence to ALLOW mode so we can access the registers */ -gpu_write (gpu,REG_A6XX_GMU_AO_AHB_FENCE_CTRL ,0 ); +gmu_write (&a6xx_gpu->gmu,REG_A6XX_GMU_AO_AHB_FENCE_CTRL ,0 );_a6xx_get_gmu_registers (gpu, a6xx_state, &a6xx_gmu_reglist[2 ], &a6xx_state->gmu_registers[2 ], false);
drivers/gpu/drm/nouveau/dispnv50/atom.h +13 -0
@@ -152,8 +152,21 @@ static inline struct nv50_head_atom * nv50_head_atom_get(struct drm_atomic_state *state, struct drm_crtc *crtc) { struct drm_crtc_state *statec = drm_atomic_get_crtc_state(state, crtc); +if (IS_ERR (statec))return (void *)statec; + +return nv50_head_atom (statec); +} + +static inline struct nv50_head_atom * +nv50_head_atom_get_new (struct drm_atomic_state *state,struct drm_crtc *crtc) +{ +struct drm_crtc_state *statec =drm_atomic_get_new_crtc_state (state, crtc); + +if (!statec) +return NULL ; +return nv50_head_atom (statec); }
drivers/gpu/drm/nouveau/dispnv50/wndw.c +1 -1
@@ -561,7 +561,7 @@ nv50_wndw_prepare_fb(struct drm_plane *plane, struct drm_plane_state *state) asyw->image.offset[0 ] = nvbo->offset;if (wndw->func->prepare) { - asyh =nv50_head_atom_get (asyw->state.state, asyw->state.crtc); + asyh =nv50_head_atom_get_new (asyw->state.state, asyw->state.crtc);if (IS_ERR (asyh))return PTR_ERR (asyh);
drivers/gpu/drm/panel/panel-visionox-rm69299.c +1 -1
@@ -64,7 +64,7 @@ static int visionox_rm69299_unprepare(struct drm_panel *panel)struct visionox_rm69299 *ctx =panel_to_ctx (panel);int ret; - ctx->dsi->mode_flags =0 ; + ctx->dsi->mode_flags &= ~MIPI_DSI_MODE_LPM ; ret =mipi_dsi_dcs_write (ctx->dsi,MIPI_DCS_SET_DISPLAY_OFF ,NULL ,0 );if (ret <0 )
drivers/gpu/drm/pl111/pl111_drv.c +1 -1
@@ -302,7 +302,7 @@ static int pl111_amba_probe(struct amba_device *amba_dev, variant->name, priv);if (ret !=0 ) {dev_err (dev,"%s failed irq %d\n" , __func__, ret); -return ret; + goto dev_put; } ret =pl111_modeset_init (drm);
drivers/gpu/drm/vgem/vgem_fence.c +1 -1
@@ -94,7 +94,7 @@ static struct dma_fence *vgem_fence_create(struct vgem_file *vfile,dma_fence_init (&fence->base, &vgem_fence_ops, &fence->lock,dma_fence_context_alloc (1 ),1 ); -timer_setup (&fence->timer, vgem_fence_timeout,0 ); +timer_setup (&fence->timer, vgem_fence_timeout,TIMER_IRQSAFE );/* We force the fence to expire within 10s to prevent driver hangs */ mod_timer (&fence->timer, jiffies +VGEM_FENCE_TIMEOUT );
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +12 -5
@@ -1520,6 +1520,7 @@ static int vmw_cmd_dma(struct vmw_private *dev_priv, SVGA3dCmdHeader *header) {struct vmw_buffer_object *vmw_bo =NULL ; +struct vmw_resource *res;struct vmw_surface *srf =NULL ;VMW_DECLARE_CMD_VAR (*cmd, SVGA3dCmdSurfaceDMA);int ret;
@@ -1555,18 +1556,24 @@ static int vmw_cmd_dma(struct vmw_private *dev_priv, dirty = (cmd->body.transfer ==SVGA3D_WRITE_HOST_VRAM ) ?VMW_RES_DIRTY_SET :0 ; - ret =vmw_cmd_res_check (dev_priv, sw_context, vmw_res_surface, - dirty, user_surface_converter, - &cmd->body.host.sid,NULL ); + ret =vmw_cmd_res_check (dev_priv, sw_context, vmw_res_surface, dirty, + user_surface_converter, &cmd->body.host.sid, +NULL );if (unlikely (ret !=0 )) {if (unlikely (ret != -ERESTARTSYS ))VMW_DEBUG_USER ("could not find surface for DMA.\n" );return ret; } - srf =vmw_res_to_srf (sw_context->res_cache[vmw_res_surface].res); + res = sw_context->res_cache[vmw_res_surface].res; +if (!res) { +VMW_DEBUG_USER ("Invalid DMA surface.\n" ); +return -EINVAL ; + } -vmw_kms_cursor_snoop (srf, sw_context->fp->tfile, &vmw_bo->base, header); + srf =vmw_res_to_srf (res); +vmw_kms_cursor_snoop (srf, sw_context->fp->tfile, &vmw_bo->base, + header);return 0 ; }
drivers/hid/hid-core.c +6 -1
@@ -1349,7 +1349,12 @@ EXPORT_SYMBOL_GPL(hid_snto32);static u32 s32ton (__s32 value,unsigned n) { -s32 a = value >> (n -1 ); +s32 a; + +if (!value || !n) +return 0 ; + + a = value >> (n -1 );if (a && a !=-1 )return value <0 ?1 << (n -1 ) : (1 << (n -1 )) -1 ;return value & ((1 << n) -1 );
drivers/hid/hid-input.c +17 -1
@@ -718,7 +718,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fielswitch (usage->hid) {/* These usage IDs map directly to the usage codes. */ -case HID_GD_X :case HID_GD_Y :case HID_GD_Z : +case HID_GD_X :case HID_GD_Y :case HID_GD_RX :case HID_GD_RY :case HID_GD_RZ :if (field->flags &HID_MAIN_ITEM_RELATIVE )map_rel (usage->hid &0xf );
@@ -726,6 +726,22 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fielmap_abs_clear (usage->hid &0xf );break ; +case HID_GD_Z : +/* HID_GD_Z is mapped to ABS_DISTANCE for stylus/pen */ +if (field->flags &HID_MAIN_ITEM_RELATIVE ) { +map_rel (usage->hid &0xf ); + }else { +if (field->application ==HID_DG_PEN || + field->physical ==HID_DG_PEN || + field->logical ==HID_DG_STYLUS || + field->physical ==HID_DG_STYLUS || + field->application ==HID_DG_DIGITIZER ) +map_abs_clear (ABS_DISTANCE ); +else +map_abs_clear (usage->hid &0xf ); + } +break ; +case HID_GD_WHEEL :if (field->flags &HID_MAIN_ITEM_RELATIVE ) {set_bit (REL_WHEEL , input->relbit);
drivers/hid/hid-logitech-dj.c +23 -33
123 lines not on this page · raw message
drivers/hid/hid-quirks.c +9 -0
@@ -220,6 +220,15 @@ static const struct hid_device_id hid_quirks[] = {* used as a driver. See hid_scan_report(). */ static const struct hid_device_id hid_have_special_driver[] = { +#if IS_ENABLED(CONFIG_APPLEDISPLAY) + {HID_USB_DEVICE (USB_VENDOR_ID_APPLE ,0x9218 ) }, + {HID_USB_DEVICE (USB_VENDOR_ID_APPLE ,0x9219 ) }, + {HID_USB_DEVICE (USB_VENDOR_ID_APPLE ,0x921c ) }, + {HID_USB_DEVICE (USB_VENDOR_ID_APPLE ,0x921d ) }, + {HID_USB_DEVICE (USB_VENDOR_ID_APPLE ,0x9222 ) }, + {HID_USB_DEVICE (USB_VENDOR_ID_APPLE ,0x9226 ) }, + {HID_USB_DEVICE (USB_VENDOR_ID_APPLE ,0x9236 ) }, +#endif #if IS_ENABLED(CONFIG_HID_A4TECH) {HID_USB_DEVICE (USB_VENDOR_ID_A4TECH ,USB_DEVICE_ID_A4TECH_WCP32PU ) }, { HID_USB_DEVICE(USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_X5_005D) },
drivers/hwmon/applesmc.c +17 -17
@@ -741,7 +741,7 @@ static void applesmc_idev_poll(struct input_dev *idev)static ssize_t applesmc_name_show (struct device *dev,struct device_attribute *attr,char *buf) { -return snprintf (buf,PAGE_SIZE ,"applesmc\n" ); +return sysfs_emit (buf,"applesmc\n" ); } static ssize_t applesmc_position_show(struct device *dev,
@@ -763,8 +763,8 @@ static ssize_t applesmc_position_show(struct device *dev, out:if (ret)return ret; -else -return snprintf (buf,PAGE_SIZE ,"(%d,%d,%d)\n" , x, y, z); + +return sysfs_emit (buf,"(%d,%d,%d)\n" , x, y, z); } static ssize_t applesmc_light_show(struct device *dev,
@@ -804,8 +804,8 @@ static ssize_t applesmc_light_show(struct device *dev, out:if (ret)return ret; -else -return snprintf (sysfsbuf,PAGE_SIZE ,"(%d,%d)\n" , left, right); + +return sysfs_emit (sysfsbuf,"(%d,%d)\n" , left, right); }/* Displays sensor key as label */
@@ -814,7 +814,7 @@ static ssize_t applesmc_show_sensor_label(struct device *dev, {const char *key = smcreg.index[to_index (devattr)]; -return snprintf (sysfsbuf,PAGE_SIZE ,"%s\n" , key); +return sysfs_emit (sysfsbuf,"%s\n" , key); }/* Displays degree Celsius * 1000 */
@@ -832,7 +832,7 @@ static ssize_t applesmc_show_temperature(struct device *dev, temp =250 * (value >>6 ); -return snprintf (sysfsbuf,PAGE_SIZE ,"%d\n" , temp); +return sysfs_emit (sysfsbuf,"%d\n" , temp); } static ssize_t applesmc_show_fan_speed(struct device *dev,
@@ -851,7 +851,7 @@ static ssize_t applesmc_show_fan_speed(struct device *dev,return ret; speed = ((buffer[0 ] <<8 | buffer[1 ]) >>2 ); -return snprintf (sysfsbuf,PAGE_SIZE ,"%u\n" , speed); +return sysfs_emit (sysfsbuf,"%u\n" , speed); } static ssize_t applesmc_store_fan_speed(struct device *dev,
@@ -891,7 +891,7 @@ static ssize_t applesmc_show_fan_manual(struct device *dev,return ret; manual = ((buffer[0 ] <<8 | buffer[1 ]) >>to_index (attr)) &0x01 ; -return snprintf (sysfsbuf,PAGE_SIZE ,"%d\n" , manual); +return sysfs_emit (sysfsbuf,"%d\n" , manual); } static ssize_t applesmc_store_fan_manual(struct device *dev,
@@ -943,14 +943,14 @@ static ssize_t applesmc_show_fan_position(struct device *dev,if (ret)return ret; -else -return snprintf (sysfsbuf,PAGE_SIZE ,"%s\n" , buffer+4 ); + +return sysfs_emit (sysfsbuf,"%s\n" , buffer +4 ); }static ssize_t applesmc_calibrate_show (struct device *dev,struct device_attribute *attr,char *sysfsbuf) { -return snprintf (sysfsbuf,PAGE_SIZE ,"(%d,%d)\n" , rest_x, rest_y); +return sysfs_emit (sysfsbuf,"(%d,%d)\n" , rest_x, rest_y); } static ssize_t applesmc_calibrate_store(struct device *dev,
@@ -992,7 +992,7 @@ static ssize_t applesmc_key_count_show(struct device *dev, count = ((u32 )buffer[0 ]<<24 ) + ((u32 )buffer[1 ]<<16 ) + ((u32 )buffer[2 ]<<8 ) + buffer[3 ]; -return snprintf (sysfsbuf,PAGE_SIZE ,"%d\n" , count); +return sysfs_emit (sysfsbuf,"%d\n" , count); } static ssize_t applesmc_key_at_index_read_show(struct device *dev,
@@ -1020,7 +1020,7 @@ static ssize_t applesmc_key_at_index_data_length_show(struct device *dev,if (IS_ERR (entry))return PTR_ERR (entry); -return snprintf (sysfsbuf,PAGE_SIZE ,"%d\n" , entry->len); +return sysfs_emit (sysfsbuf,"%d\n" , entry->len); } static ssize_t applesmc_key_at_index_type_show(struct device *dev,
@@ -1032,7 +1032,7 @@ static ssize_t applesmc_key_at_index_type_show(struct device *dev,if (IS_ERR (entry))return PTR_ERR (entry); -return snprintf (sysfsbuf,PAGE_SIZE ,"%s\n" , entry->type); +return sysfs_emit (sysfsbuf,"%s\n" , entry->type); } static ssize_t applesmc_key_at_index_name_show(struct device *dev,
@@ -1044,13 +1044,13 @@ static ssize_t applesmc_key_at_index_name_show(struct device *dev,if (IS_ERR (entry))return PTR_ERR (entry); -return snprintf (sysfsbuf,PAGE_SIZE ,"%s\n" , entry->key); +return sysfs_emit (sysfsbuf,"%s\n" , entry->key); }static ssize_t applesmc_key_at_index_show (struct device *dev,struct device_attribute *attr,char *sysfsbuf) { -return snprintf (sysfsbuf,PAGE_SIZE ,"%d\n" , key_at_index); +return sysfs_emit (sysfsbuf,"%d\n" , key_at_index); } static ssize_t applesmc_key_at_index_store(struct device *dev,
drivers/hwmon/ibmpex.c +7 -2
@@ -282,6 +282,9 @@ static ssize_t ibmpex_high_low_store(struct device *dev, {struct ibmpex_bmc_data *data =dev_get_drvdata (dev); +if (!data) +return -ENODEV ; +ibmpex_reset_high_low_data (data);return count;
@@ -514,6 +517,9 @@ static void ibmpex_bmc_delete(struct ibmpex_bmc_data *data) {int i, j; +hwmon_device_unregister (data->hwmon_dev); +dev_set_drvdata (data->bmc_device,NULL ); +device_remove_file (data->bmc_device, &sensor_dev_attr_reset_high_low.dev_attr);device_remove_file (data->bmc_device, &sensor_dev_attr_name.dev_attr);
@@ -527,8 +533,7 @@ static void ibmpex_bmc_delete(struct ibmpex_bmc_data *data) }list_del (&data->list); -dev_set_drvdata (data->bmc_device,NULL ); -hwmon_device_unregister (data->hwmon_dev); +ipmi_destroy_user (data->user);kfree (data->sensors);kfree (data);
drivers/hwmon/ina209.c +3 -3
@@ -259,7 +259,7 @@ static ssize_t ina209_interval_show(struct device *dev, {struct ina209_data *data =dev_get_drvdata (dev); -return snprintf (buf,PAGE_SIZE ,"%d\n" , data->update_interval); +return sysfs_emit (buf,"%d\n" , data->update_interval); }/*
@@ -343,7 +343,7 @@ static ssize_t ina209_value_show(struct device *dev,return PTR_ERR (data); val =ina209_from_reg (attr->index, data->regs[attr->index]); -return snprintf (buf,PAGE_SIZE ,"%ld\n" , val); +return sysfs_emit (buf,"%ld\n" , val); } static ssize_t ina209_alarm_show(struct device *dev,
@@ -363,7 +363,7 @@ static ssize_t ina209_alarm_show(struct device *dev,* All alarms are in the INA209_STATUS register. To avoid a long * switch statement, the mask is passed in attr->index */ -return snprintf (buf,PAGE_SIZE ,"%u\n" , !!(status & mask)); +return sysfs_emit (buf,"%u\n" , !!(status & mask)); }/* Shunt voltage, history, limits, alarms */
drivers/hwmon/ina2xx.c +1 -1
@@ -386,7 +386,7 @@ static ssize_t ina226_alert_show(struct device *dev, val =ina226_reg_to_alert (data, attr->index, regval); } - ret =snprintf (buf,PAGE_SIZE ,"%d\n" , val); + ret =sysfs_emit (buf,"%d\n" , val); abort:mutex_unlock (&data->config_lock);return ret;
drivers/hwmon/ina3221.c +1 -1
@@ -698,7 +698,7 @@ static ssize_t ina3221_shunt_show(struct device *dev,unsigned int channel = sd_attr->index;struct ina3221_input *input = &ina->inputs[channel]; -return snprintf (buf,PAGE_SIZE ,"%d\n" , input->shunt_resistor); +return sysfs_emit (buf,"%d\n" , input->shunt_resistor); } static ssize_t ina3221_shunt_store(struct device *dev,
drivers/hwmon/lineage-pem.c +4 -4
@@ -280,7 +280,7 @@ static ssize_t pem_bool_show(struct device *dev, struct device_attribute *da,return PTR_ERR (data); status = data->data_string[attr->nr] & attr->index; -return snprintf (buf,PAGE_SIZE ,"%d\n" , !!status); +return sysfs_emit (buf,"%d\n" , !!status); } static ssize_t pem_data_show(struct device *dev, struct device_attribute *da,
@@ -296,7 +296,7 @@ static ssize_t pem_data_show(struct device *dev, struct device_attribute *da, value =pem_get_data (data->data_string,sizeof (data->data_string), attr->index); -return snprintf (buf,PAGE_SIZE ,"%ld\n" , value); +return sysfs_emit (buf,"%ld\n" , value); } static ssize_t pem_input_show(struct device *dev, struct device_attribute *da,
@@ -312,7 +312,7 @@ static ssize_t pem_input_show(struct device *dev, struct device_attribute *da, value =pem_get_input (data->input_string,sizeof (data->input_string), attr->index); -return snprintf (buf,PAGE_SIZE ,"%ld\n" , value); +return sysfs_emit (buf,"%ld\n" , value); } static ssize_t pem_fan_show(struct device *dev, struct device_attribute *da,
@@ -328,7 +328,7 @@ static ssize_t pem_fan_show(struct device *dev, struct device_attribute *da, value =pem_get_fan (data->fan_speed,sizeof (data->fan_speed), attr->index); -return snprintf (buf,PAGE_SIZE ,"%ld\n" , value); +return sysfs_emit (buf,"%ld\n" , value); }/* Voltages */
drivers/hwmon/ltc2945.c +2 -2
@@ -226,7 +226,7 @@ static ssize_t ltc2945_value_show(struct device *dev, value =ltc2945_reg_to_val (dev, attr->index);if (value <0 )return value; -return snprintf (buf,PAGE_SIZE ,"%lld\n" , value); +return sysfs_emit (buf,"%lld\n" , value); } static ssize_t ltc2945_value_store(struct device *dev,
@@ -335,7 +335,7 @@ static ssize_t ltc2945_bool_show(struct device *dev,if (fault)/* Clear reported faults in chip register */ regmap_update_bits (regmap,LTC2945_FAULT , attr->index,0 ); -return snprintf (buf,PAGE_SIZE ,"%d\n" , !!fault); +return sysfs_emit (buf,"%d\n" , !!fault); }/* Input voltages */
drivers/hwmon/ltc2990.c +1 -1
@@ -147,7 +147,7 @@ static ssize_t ltc2990_value_show(struct device *dev,if (unlikely (ret <0 ))return ret; -return snprintf (buf,PAGE_SIZE ,"%d\n" , value); +return sysfs_emit (buf,"%d\n" , value); } static umode_t ltc2990_attrs_visible(struct kobject *kobj,
drivers/hwmon/ltc4151.c +1 -1
@@ -128,7 +128,7 @@ static ssize_t ltc4151_value_show(struct device *dev,return PTR_ERR (data); value =ltc4151_get_value (data, attr->index); -return snprintf (buf,PAGE_SIZE ,"%d\n" , value); +return sysfs_emit (buf,"%d\n" , value); }/*
drivers/hwmon/ltc4215.c +4 -4
@@ -139,7 +139,7 @@ static ssize_t ltc4215_voltage_show(struct device *dev,struct sensor_device_attribute *attr =to_sensor_dev_attr (da);const int voltage =ltc4215_get_voltage (dev, attr->index); -return snprintf (buf,PAGE_SIZE ,"%d\n" , voltage); +return sysfs_emit (buf,"%d\n" , voltage); } static ssize_t ltc4215_current_show(struct device *dev,
@@ -147,7 +147,7 @@ static ssize_t ltc4215_current_show(struct device *dev, {const unsigned int curr =ltc4215_get_current (dev); -return snprintf (buf,PAGE_SIZE ,"%u\n" , curr); +return sysfs_emit (buf,"%u\n" , curr); } static ssize_t ltc4215_power_show(struct device *dev,
@@ -159,7 +159,7 @@ static ssize_t ltc4215_power_show(struct device *dev,/* current in mA * voltage in mV == power in uW */ const unsigned int power =abs (output_voltage * curr); -return snprintf (buf,PAGE_SIZE ,"%u\n" , power); +return sysfs_emit (buf,"%u\n" , power); } static ssize_t ltc4215_alarm_show(struct device *dev,
@@ -170,7 +170,7 @@ static ssize_t ltc4215_alarm_show(struct device *dev,const u8 reg = data->regs[LTC4215_STATUS ];const u32 mask = attr->index; -return snprintf (buf,PAGE_SIZE ,"%u\n" , !!(reg & mask)); +return sysfs_emit (buf,"%u\n" , !!(reg & mask)); }/*
drivers/hwmon/ltc4222.c +2 -2
@@ -94,7 +94,7 @@ static ssize_t ltc4222_value_show(struct device *dev, value =ltc4222_get_value (dev, attr->index);if (value <0 )return value; -return snprintf (buf,PAGE_SIZE ,"%d\n" , value); +return sysfs_emit (buf,"%d\n" , value); } static ssize_t ltc4222_bool_show(struct device *dev,
@@ -112,7 +112,7 @@ static ssize_t ltc4222_bool_show(struct device *dev,if (fault)/* Clear reported faults in chip register */ regmap_update_bits (regmap, attr->nr, attr->index,0 ); -return snprintf (buf,PAGE_SIZE ,"%d\n" , !!fault); +return sysfs_emit (buf,"%d\n" , !!fault); }/* Voltages */
drivers/hwmon/ltc4260.c +2 -2
@@ -79,7 +79,7 @@ static ssize_t ltc4260_value_show(struct device *dev, value =ltc4260_get_value (dev, attr->index);if (value <0 )return value; -return snprintf (buf,PAGE_SIZE ,"%d\n" , value); +return sysfs_emit (buf,"%d\n" , value); } static ssize_t ltc4260_bool_show(struct device *dev,
@@ -98,7 +98,7 @@ static ssize_t ltc4260_bool_show(struct device *dev,if (fault)/* Clear reported faults in chip register */ regmap_update_bits (regmap,LTC4260_FAULT , attr->index,0 ); -return snprintf (buf,PAGE_SIZE ,"%d\n" , !!fault); +return sysfs_emit (buf,"%d\n" , !!fault); }/* Voltages */
drivers/hwmon/ltc4261.c +2 -2
@@ -130,7 +130,7 @@ static ssize_t ltc4261_value_show(struct device *dev,return PTR_ERR (data); value =ltc4261_get_value (data, attr->index); -return snprintf (buf,PAGE_SIZE ,"%d\n" , value); +return sysfs_emit (buf,"%d\n" , value); } static ssize_t ltc4261_bool_show(struct device *dev,
@@ -147,7 +147,7 @@ static ssize_t ltc4261_bool_show(struct device *dev,if (fault)/* Clear reported faults in chip register */ i2c_smbus_write_byte_data (data->client,LTC4261_FAULT , ~fault); -return snprintf (buf,PAGE_SIZE ,"%d\n" , fault ?1 :0 ); +return sysfs_emit (buf,"%d\n" , fault ?1 :0 ); }/*
drivers/hwmon/max16065.c +10 -9
@@ -195,7 +195,7 @@ static ssize_t max16065_alarm_show(struct device *dev,i2c_smbus_write_byte_data (data->client,MAX16065_FAULT (attr2->nr), val); -return snprintf (buf,PAGE_SIZE ,"%d\n" , !!val); +return sysfs_emit (buf,"%d\n" , !!val); } static ssize_t max16065_input_show(struct device *dev,
@@ -208,20 +208,21 @@ static ssize_t max16065_input_show(struct device *dev,if (unlikely (adc <0 ))return adc; -return snprintf (buf,PAGE_SIZE ,"%d\n" , -ADC_TO_MV (adc, data->range[attr->index])); +return sysfs_emit (buf,"%d\n" , +ADC_TO_MV (adc, data->range[attr->index])); }static ssize_t max16065_current_show (struct device *dev,struct device_attribute *da,char *buf) {struct max16065_data *data =max16065_update_device (dev); +int curr_sense = data->curr_sense; -if (unlikely (data->curr_sense <0 )) -return data->curr_sense; +if (unlikely (curr_sense <0 )) +return curr_sense; -return snprintf (buf,PAGE_SIZE ,"%d\n" , -ADC_TO_CURR (data->curr_sense, data->curr_gain)); +return sysfs_emit (buf,"%d\n" , +ADC_TO_CURR (curr_sense, data->curr_gain)); } static ssize_t max16065_limit_store(struct device *dev,
@@ -257,8 +258,8 @@ static ssize_t max16065_limit_show(struct device *dev,struct sensor_device_attribute_2 *attr2 =to_sensor_dev_attr_2 (da);struct max16065_data *data =dev_get_drvdata (dev); -return snprintf (buf,PAGE_SIZE ,"%d\n" , - data->limit[attr2->nr][attr2->index]); +return sysfs_emit (buf,"%d\n" , + data->limit[attr2->nr][attr2->index]); }/* Construct a sensor_device_attribute structure for each register */
drivers/hwmon/occ/common.c +35 -34
181 lines not on this page · raw message
drivers/hwmon/occ/sysfs.c +2 -2
@@ -67,7 +67,7 @@ static ssize_t occ_sysfs_show(struct device *dev,return -EINVAL ; } -return snprintf (buf,PAGE_SIZE -1 ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t occ_error_show(struct device *dev,
@@ -77,7 +77,7 @@ static ssize_t occ_error_show(struct device *dev,occ_update_response (occ); -return snprintf (buf,PAGE_SIZE -1 ,"%d\n" , occ->error); +return sysfs_emit (buf,"%d\n" , occ->error); } static SENSOR_DEVICE_ATTR(occ_master, 0444, occ_sysfs_show, NULL, 0);
drivers/hwmon/pmbus/inspur-ipsps.c +14 -14
@@ -70,7 +70,7 @@ static ssize_t ipsps_string_show(struct device *dev, p =memscan (data,'#' , rc); *p ='\0' ; -return snprintf (buf,PAGE_SIZE ,"%s\n" , data); +return sysfs_emit (buf,"%s\n" , data); } static ssize_t ipsps_fw_version_show(struct device *dev,
@@ -91,9 +91,9 @@ static ssize_t ipsps_fw_version_show(struct device *dev,if (rc !=6 )return -EPROTO ; -return snprintf (buf,PAGE_SIZE ,"%u.%02u%u-%u.%02u\n" , - data[1 ], data[2 ]/* < 100 */ , data[3 ]/*< 10*/ , - data[4 ], data[5 ]/* < 100 */ ); +return sysfs_emit (buf,"%u.%02u%u-%u.%02u\n" , + data[1 ], data[2 ]/* < 100 */ , data[3 ]/*< 10*/ , + data[4 ], data[5 ]/* < 100 */ ); } static ssize_t ipsps_mode_show(struct device *dev,
@@ -111,19 +111,19 @@ static ssize_t ipsps_mode_show(struct device *dev,switch (rc) {case MODE_ACTIVE : -return snprintf (buf,PAGE_SIZE ,"[%s] %s %s\n" , -MODE_ACTIVE_STRING , -MODE_STANDBY_STRING ,MODE_REDUNDANCY_STRING ); +return sysfs_emit (buf,"[%s] %s %s\n" , +MODE_ACTIVE_STRING , +MODE_STANDBY_STRING ,MODE_REDUNDANCY_STRING );case MODE_STANDBY : -return snprintf (buf,PAGE_SIZE ,"%s [%s] %s\n" , -MODE_ACTIVE_STRING , -MODE_STANDBY_STRING ,MODE_REDUNDANCY_STRING ); +return sysfs_emit (buf,"%s [%s] %s\n" , +MODE_ACTIVE_STRING , +MODE_STANDBY_STRING ,MODE_REDUNDANCY_STRING );case MODE_REDUNDANCY : -return snprintf (buf,PAGE_SIZE ,"%s %s [%s]\n" , -MODE_ACTIVE_STRING , -MODE_STANDBY_STRING ,MODE_REDUNDANCY_STRING ); +return sysfs_emit (buf,"%s %s [%s]\n" , +MODE_ACTIVE_STRING , +MODE_STANDBY_STRING ,MODE_REDUNDANCY_STRING );default : -return snprintf (buf,PAGE_SIZE ,"unspecified\n" ); +return sysfs_emit (buf,"unspecified\n" ); } }
drivers/hwmon/pmbus/pmbus_core.c +4 -4
@@ -962,7 +962,7 @@ static ssize_t pmbus_show_boolean(struct device *dev, val =pmbus_get_boolean (client, boolean, attr->index);if (val <0 )return val; -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t pmbus_show_sensor(struct device *dev,
@@ -978,7 +978,7 @@ static ssize_t pmbus_show_sensor(struct device *dev,if (sensor->data <0 ) ret = sensor->data;else - ret =snprintf (buf,PAGE_SIZE ,"%lld\n" ,pmbus_reg2data (data, sensor)); + ret =sysfs_emit (buf,"%lld\n" ,pmbus_reg2data (data, sensor));mutex_unlock (&data->update_lock);return ret; }
@@ -1014,7 +1014,7 @@ static ssize_t pmbus_show_label(struct device *dev, {struct pmbus_label *label =to_pmbus_label (da); -return snprintf (buf,PAGE_SIZE ,"%s\n" , label->label); +return sysfs_emit (buf,"%s\n" , label->label); }static int pmbus_add_attribute (struct pmbus_data *data,struct attribute *attr)
@@ -2054,7 +2054,7 @@ static ssize_t pmbus_show_samples(struct device *dev,if (val <0 )return val; -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t pmbus_set_samples(struct device *dev,
drivers/hwmon/s3c-hwmon.c +2 -2
@@ -166,7 +166,7 @@ static ssize_t s3c_hwmon_ch_show(struct device *dev, ret *= cfg->mult; ret =DIV_ROUND_CLOSEST (ret, cfg->div); -return snprintf (buf,PAGE_SIZE ,"%d\n" , ret); +return sysfs_emit (buf,"%d\n" , ret); }/**
@@ -187,7 +187,7 @@ static ssize_t s3c_hwmon_label_show(struct device *dev, cfg = pdata->in[sen_attr->index]; -return snprintf (buf,PAGE_SIZE ,"%s\n" , cfg->name); +return sysfs_emit (buf,"%s\n" , cfg->name); }/**
drivers/hwmon/sch5627.c +12 -12
@@ -195,7 +195,7 @@ static int reg_to_rpm(u16 reg)static ssize_t name_show (struct device *dev,struct device_attribute *devattr,char *buf) { -return snprintf (buf,PAGE_SIZE ,"%s\n" ,DEVNAME ); +return sysfs_emit (buf,"%s\n" ,DEVNAME ); } static ssize_t temp_show(struct device *dev, struct device_attribute *devattr,
@@ -209,7 +209,7 @@ static ssize_t temp_show(struct device *dev, struct device_attribute *devattr,return PTR_ERR (data); val =reg_to_temp (data->temp[attr->index]); -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t temp_fault_show(struct device *dev,
@@ -221,7 +221,7 @@ static ssize_t temp_fault_show(struct device *dev,if (IS_ERR (data))return PTR_ERR (data); -return snprintf (buf,PAGE_SIZE ,"%d\n" , data->temp[attr->index] ==0 ); +return sysfs_emit (buf,"%d\n" , data->temp[attr->index] ==0 ); } static ssize_t temp_max_show(struct device *dev,
@@ -232,7 +232,7 @@ static ssize_t temp_max_show(struct device *dev,int val; val =reg_to_temp_limit (data->temp_max[attr->index]); -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t temp_crit_show(struct device *dev,
@@ -243,7 +243,7 @@ static ssize_t temp_crit_show(struct device *dev,int val; val =reg_to_temp_limit (data->temp_crit[attr->index]); -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t fan_show(struct device *dev, struct device_attribute *devattr,
@@ -260,7 +260,7 @@ static ssize_t fan_show(struct device *dev, struct device_attribute *devattr,if (val <0 )return val; -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t fan_fault_show(struct device *dev,
@@ -272,8 +272,8 @@ static ssize_t fan_fault_show(struct device *dev,if (IS_ERR (data))return PTR_ERR (data); -return snprintf (buf,PAGE_SIZE ,"%d\n" , - data->fan[attr->index] ==0xffff ); +return sysfs_emit (buf,"%d\n" , + data->fan[attr->index] ==0xffff ); } static ssize_t fan_min_show(struct device *dev,
@@ -285,7 +285,7 @@ static ssize_t fan_min_show(struct device *dev,if (val <0 )return val; -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t in_show(struct device *dev, struct device_attribute *devattr,
@@ -301,7 +301,7 @@ static ssize_t in_show(struct device *dev, struct device_attribute *devattr, val =DIV_ROUND_CLOSEST ( data->in[attr->index] *SCH5627_REG_IN_FACTOR [attr->index],10000 ); -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t in_label_show(struct device *dev,
@@ -309,8 +309,8 @@ static ssize_t in_label_show(struct device *dev, {struct sensor_device_attribute *attr =to_sensor_dev_attr (devattr); -return snprintf (buf,PAGE_SIZE ,"%s\n" , -SCH5627_IN_LABELS [attr->index]); +return sysfs_emit (buf,"%s\n" , +SCH5627_IN_LABELS [attr->index]); }static DEVICE_ATTR_RO (name);
drivers/hwmon/sch5636.c +10 -10
@@ -160,7 +160,7 @@ static int reg_to_rpm(u16 reg)static ssize_t name_show (struct device *dev,struct device_attribute *devattr,char *buf) { -return snprintf (buf,PAGE_SIZE ,"%s\n" ,DEVNAME ); +return sysfs_emit (buf,"%s\n" ,DEVNAME ); } static ssize_t in_value_show(struct device *dev,
@@ -176,7 +176,7 @@ static ssize_t in_value_show(struct device *dev, val =DIV_ROUND_CLOSEST ( data->in[attr->index] *SCH5636_REG_IN_FACTORS [attr->index],255 ); -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t in_label_show(struct device *dev,
@@ -184,8 +184,8 @@ static ssize_t in_label_show(struct device *dev, {struct sensor_device_attribute *attr =to_sensor_dev_attr (devattr); -return snprintf (buf,PAGE_SIZE ,"%s\n" , -SCH5636_IN_LABELS [attr->index]); +return sysfs_emit (buf,"%s\n" , +SCH5636_IN_LABELS [attr->index]); } static ssize_t temp_value_show(struct device *dev,
@@ -199,7 +199,7 @@ static ssize_t temp_value_show(struct device *dev,return PTR_ERR (data); val = (data->temp_val[attr->index] -64 ) *1000 ; -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t temp_fault_show(struct device *dev,
@@ -213,7 +213,7 @@ static ssize_t temp_fault_show(struct device *dev,return PTR_ERR (data); val = (data->temp_ctrl[attr->index] &SCH5636_TEMP_WORKING ) ?0 :1 ; -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t temp_alarm_show(struct device *dev,
@@ -227,7 +227,7 @@ static ssize_t temp_alarm_show(struct device *dev,return PTR_ERR (data); val = (data->temp_ctrl[attr->index] &SCH5636_TEMP_ALARM ) ?1 :0 ; -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t fan_value_show(struct device *dev,
@@ -244,7 +244,7 @@ static ssize_t fan_value_show(struct device *dev,if (val <0 )return val; -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t fan_fault_show(struct device *dev,
@@ -258,7 +258,7 @@ static ssize_t fan_fault_show(struct device *dev,return PTR_ERR (data); val = (data->fan_ctrl[attr->index] &SCH5636_FAN_NOT_PRESENT ) ?1 :0 ; -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t fan_alarm_show(struct device *dev,
@@ -272,7 +272,7 @@ static ssize_t fan_alarm_show(struct device *dev,return PTR_ERR (data); val = (data->fan_ctrl[attr->index] &SCH5636_FAN_ALARM ) ?1 :0 ; -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); }static struct sensor_device_attribute sch5636_attr[] = {
drivers/hwmon/smm665.c +2 -2
@@ -351,7 +351,7 @@ static ssize_t smm665_show_crit_alarm(struct device *dev,if (data->faults & (1 << attr->index)) val =1 ; -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); } static ssize_t smm665_show_input(struct device *dev,
@@ -366,7 +366,7 @@ static ssize_t smm665_show_input(struct device *dev,return PTR_ERR (data); val =smm665_convert (data->adc[adc], adc); -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); +return sysfs_emit (buf,"%d\n" , val); }#define SMM665_SHOW (what) \
drivers/hwmon/stts751.c +10 -10
@@ -387,7 +387,7 @@ static ssize_t max_alarm_show(struct device *dev,if (ret <0 )return ret; -return snprintf (buf,PAGE_SIZE ,"%d\n" , priv->max_alert); +return sysfs_emit (buf,"%d\n" , priv->max_alert); } static ssize_t min_alarm_show(struct device *dev,
@@ -404,7 +404,7 @@ static ssize_t min_alarm_show(struct device *dev,if (ret <0 )return ret; -return snprintf (buf,PAGE_SIZE ,"%d\n" , priv->min_alert); +return sysfs_emit (buf,"%d\n" , priv->min_alert); } static ssize_t input_show(struct device *dev, struct device_attribute *attr,
@@ -419,7 +419,7 @@ static ssize_t input_show(struct device *dev, struct device_attribute *attr,if (ret <0 )return ret; -return snprintf (buf,PAGE_SIZE ,"%d\n" , priv->temp); +return sysfs_emit (buf,"%d\n" , priv->temp); } static ssize_t therm_show(struct device *dev, struct device_attribute *attr,
@@ -427,7 +427,7 @@ static ssize_t therm_show(struct device *dev, struct device_attribute *attr, {struct stts751_priv *priv =dev_get_drvdata (dev); -return snprintf (buf,PAGE_SIZE ,"%d\n" , priv->therm); +return sysfs_emit (buf,"%d\n" , priv->therm);
Lines of this file are not shown. View the raw message.
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h +23 -1
Lines of this file are not shown. View the raw message.
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c +52 -19
71 lines not on this page · raw message
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c +20 -12
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/bnxt_re/ib_verbs.c +1 -6
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/bnxt_re/qplib_res.c +3 -5
Lines of this file are not shown. View the raw message.
drivers/input/touchscreen/ti_am335x_tsc.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +17 -10
Lines of this file are not shown. View the raw message.
drivers/iommu/arm/arm-smmu/qcom_iommu.c +4 -6
Lines of this file are not shown. View the raw message.
drivers/leds/leds-lp50xx.c +56 -39
95 lines not on this page · raw message
drivers/media/platform/davinci/vpif_capture.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/media/platform/exynos4-is/media-dev.c +6 -4
Lines of this file are not shown. View the raw message.
drivers/media/platform/mtk-vcodec/mtk_vcodec_fw_vpu.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/media/test-drivers/vidtv/vidtv_channel.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/media/usb/pvrusb2/pvrusb2-hdw.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bnxt/bnxt.c +48 -39
87 lines not on this page · raw message
drivers/net/ethernet/broadcom/bnxt/bnxt.h +1 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/e1000/e1000_main.c +9 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/i40e/i40e_main.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/iavf/iavf_main.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c +8 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c +107 -15
122 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/port.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +9 -8
Lines of this file are not shown. View the raw message.
drivers/net/mdio/mdio-aspeed.c +45 -32
77 lines not on this page · raw message
drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c +2 -7
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c +19 -8
Lines of this file are not shown. View the raw message.
drivers/pci/controller/dwc/pci-keystone.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/pci/controller/dwc/pcie-designware.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/phy/broadcom/phy-bcm63xx-usbh.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/platform/chrome/cros_ec_ishtp.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/pwm/pwm-bcm2835.c +25 -68
93 lines not on this page · raw message
drivers/staging/comedi/comedi_fops.c +36 -6
42 lines not on this page · raw message
drivers/staging/comedi/drivers/c6xdigio.c +35 -11
46 lines not on this page · raw message
drivers/staging/comedi/drivers/multiq3.c +9 -0
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/usb/misc/sisusbvga/sisusb_con.c +0 -21
Lines of this file are not shown. View the raw message.
drivers/usb/serial/ftdi_sio.c +24 -48
72 lines not on this page · raw message
drivers/video/fbdev/core/fbcon.c +21 -47
68 lines not on this page · raw message
drivers/video/fbdev/core/fbcon_rotate.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/watchdog/wdat_wdt.c +44 -21
65 lines not on this page · raw message
fs/ext4/mballoc.c +37 -21
58 lines not on this page · raw message
fs/f2fs/super.c +31 -22
53 lines not on this page · raw message
fs/nfs/dir.c +111 -39
150 lines not on this page · raw message
fs/nfsd/nfs4state.c +43 -3
46 lines not on this page · raw message
include/linux/balloon_compaction.h +16 -49
65 lines not on this page · raw message
include/linux/rculist_nulls.h +59 -0
59 lines not on this page · raw message
include/net/netfilter/nf_conntrack_count.h +8 -8
Lines of this file are not shown. View the raw message.
net/ceph/osdmap.c +67 -73
140 lines not on this page · raw message
net/core/sock_map.c +30 -23
53 lines not on this page · raw message
net/ethtool/ioctl.c +92 -42
134 lines not on this page · raw message
net/netfilter/nf_conncount.c +146 -65
211 lines not on this page · raw message
net/netfilter/nft_connlimit.c +41 -28
69 lines not on this page · raw message
net/sched/sch_cake.c +32 -26
58 lines not on this page · raw message
net/xfrm/xfrm_state.c +17 -24
41 lines not on this page · raw message
security/smack/smack_lsm.c +27 -14
41 lines not on this page · raw message
sound/soc/qcom/qdsp6/q6adm.c +71 -75
146 lines not on this page · raw message
sound/soc/stm/stm32_i2s.c +21 -41
62 lines not on this page · raw message
sound/soc/stm/stm32_sai_sub.c +24 -22
46 lines not on this page · raw message
sound/soc/stm/stm32_spdifrx.c +15 -29
44 lines not on this page · raw message
tools/testing/selftests/bpf/prog_tests/perf_branches.c +14 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/prog_tests/send_signal.c +5 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/progs/test_perf_branches.c +3 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/ftrace/test.d/ftrace/func_traceonoff_triggers.tc +3 -2
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.