Linux 4.19.31
Greg KH
maintainerI'm announcing the release of the 4.19.31 kernel.
All users of the 4.19 kernel series must upgrade.
The updated 4.19.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/arm64/silicon-errata.txt | 2 Documentation/process/stable-kernel-rules.rst | 3 Makefile | 2 arch/arc/Kconfig | 8 arch/arc/include/asm/arcregs.h | 8 arch/arc/include/asm/entry-arcv2.h | 54 +++ arch/arc/include/asm/uaccess.h | 8 arch/arc/kernel/entry-arcv2.S | 4 arch/arc/kernel/intc-arcv2.c | 2 arch/arc/kernel/setup.c | 26 + arch/arc/lib/memcpy-archs.S | 14 arch/arc/plat-hsdk/Kconfig | 1 arch/arm/Kconfig | 1 arch/arm/boot/dts/armada-xp-db.dts | 46 +-- arch/arm/boot/dts/armada-xp-gp.dts | 13 arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts | 85 +++-- arch/arm/boot/dts/omap4-droid4-xt894.dts | 11 arch/arm/boot/dts/tegra124-nyan.dtsi | 17 + arch/arm/crypto/crct10dif-ce-core.S | 14 arch/arm/crypto/crct10dif-ce-glue.c | 23 - arch/arm/include/asm/irq.h | 1 arch/arm/include/asm/kvm_host.h | 10 arch/arm/kernel/irq.c | 62 ---- arch/arm/kernel/smp.c | 2 arch/arm/kvm/coproc.c | 4 arch/arm/kvm/reset.c | 24 + arch/arm/mach-omap2/cpuidle44xx.c | 16 - arch/arm/mach-omap2/display.c | 7 arch/arm/mach-s3c24xx/mach-osiris-dvs.c | 8 arch/arm/mm/dma-mapping.c | 2 arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts | 2 arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 2 arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dts | 2 arch/arm64/crypto/aes-ce-ccm-core.S | 5 arch/arm64/crypto/aes-ce-ccm-glue.c | 4 arch/arm64/crypto/aes-neonbs-core.S | 8 arch/arm64/crypto/crct10dif-ce-glue.c | 25 - arch/arm64/include/asm/hardirq.h | 31 ++ arch/arm64/include/asm/kvm_host.h | 11 arch/arm64/kernel/head.S | 3 arch/arm64/kernel/irq.c | 3 arch/arm64/kernel/kgdb.c | 14 arch/arm64/kernel/probes/kprobes.c | 6 arch/arm64/kvm/hyp/switch.c | 5 arch/arm64/kvm/hyp/sysreg-sr.c | 5 arch/arm64/kvm/reset.c | 50 +++ arch/arm64/kvm/sys_regs.c | 10 arch/m68k/Makefile | 5 arch/mips/include/asm/kvm_host.h | 2 arch/powerpc/include/asm/book3s/64/hugetlb.h | 8 arch/powerpc/include/asm/kvm_host.h | 2 arch/powerpc/include/asm/powernv.h | 2 arch/powerpc/kernel/entry_32.S | 9 arch/powerpc/kernel/process.c | 2 arch/powerpc/kernel/ptrace.c | 10 arch/powerpc/kernel/traps.c | 12 arch/powerpc/platforms/83xx/suspend-asm.S | 34 +- arch/powerpc/platforms/embedded6xx/wii.c | 4 arch/powerpc/platforms/powernv/idle.c | 27 - arch/powerpc/platforms/powernv/opal-msglog.c | 2 arch/powerpc/platforms/powernv/smp.c | 25 + arch/s390/include/asm/kvm_host.h | 2 arch/s390/kernel/setup.c | 31 +- arch/x86/crypto/aegis128-aesni-glue.c | 38 +- arch/x86/crypto/aegis128l-aesni-glue.c | 38 +- arch/x86/crypto/aegis256-aesni-glue.c | 38 +- arch/x86/crypto/aesni-intel_glue.c | 13 arch/x86/crypto/morus1280_glue.c | 40 +- arch/x86/crypto/morus640_glue.c | 39 +- arch/x86/events/intel/uncore.c | 1 arch/x86/events/intel/uncore.h | 12 arch/x86/events/intel/uncore_snb.c | 4 arch/x86/include/asm/intel-family.h | 2 arch/x86/include/asm/kvm_host.h | 2 arch/x86/kernel/kprobes/opt.c | 5 arch/x86/kvm/mmu.c | 23 + arch/x86/kvm/vmx.c | 41 ++ arch/x86/kvm/x86.c | 4 arch/x86/kvm/x86.h | 7 arch/x86/xen/mmu_pv.c | 13 block/blk-mq.c | 12 crypto/aead.c | 4 crypto/aegis128.c | 14 crypto/aegis128l.c | 14 crypto/aegis256.c | 14 crypto/ahash.c | 42 +- crypto/cfb.c | 14 crypto/morus1280.c | 13 crypto/morus640.c | 13 crypto/pcbc.c | 14 crypto/shash.c | 18 - crypto/skcipher.c | 27 + crypto/testmgr.c | 14 crypto/testmgr.h | 25 + drivers/acpi/device_sysfs.c | 6 drivers/acpi/nfit/core.c | 43 +- drivers/auxdisplay/ht16k33.c | 2 drivers/base/power/wakeup.c | 8 drivers/block/floppy.c | 2 drivers/char/ipmi/ipmi_si_intf.c | 5 drivers/char/ipmi/ipmi_si_mem_io.c | 5 drivers/char/ipmi/ipmi_si_port_io.c | 5 drivers/char/tpm/st33zp24/st33zp24.c | 2 drivers/char/tpm/tpm-interface.c | 11 drivers/char/tpm/tpm_atmel.c | 2 drivers/char/tpm/tpm_crb.c | 22 + drivers/char/tpm/tpm_i2c_atmel.c | 6 drivers/char/tpm/tpm_i2c_infineon.c | 2 drivers/char/tpm/tpm_i2c_nuvoton.c | 2 drivers/char/tpm/tpm_ibmvtpm.c | 8 drivers/char/tpm/tpm_infineon.c | 2 drivers/char/tpm/tpm_nsc.c | 2 drivers/char/tpm/tpm_tis_core.c | 2 drivers/char/tpm/tpm_vtpm_proxy.c | 3 drivers/char/tpm/xen-tpmfront.c | 2 drivers/clk/clk-twl6040.c | 53 +++ drivers/clk/ingenic/cgu.c | 10 drivers/clk/ingenic/cgu.h | 2 drivers/clk/samsung/clk-exynos5-subcmu.c | 13 drivers/clk/sunxi-ng/ccu-sun6i-a31.c | 4 drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 2 drivers/clk/uniphier/clk-uniphier-cpugear.c | 2 drivers/clocksource/Kconfig | 10 drivers/clocksource/arm_arch_timer.c | 55 +++ drivers/clocksource/exynos_mct.c | 23 - drivers/clocksource/timer-ti-dm.c | 4 drivers/cpufreq/pxa2xx-cpufreq.c | 4 drivers/cpufreq/qcom-cpufreq-kryo.c | 20 + drivers/cpufreq/tegra124-cpufreq.c | 2 drivers/crypto/caam/caamalg.c | 1 drivers/crypto/caam/caamhash.c | 93 +----- drivers/crypto/ccree/cc_buffer_mgr.c | 8 drivers/crypto/ccree/cc_cipher.c | 7 drivers/crypto/rockchip/rk3288_crypto.c | 2 drivers/crypto/rockchip/rk3288_crypto.h | 4 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c | 39 ++ drivers/crypto/rockchip/rk3288_crypto_ahash.c | 2 drivers/dma/sh/usb-dmac.c | 2 drivers/gpio/gpio-pca953x.c | 3 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c | 8 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 6 drivers/gpu/drm/drm_fb_helper.c | 4 drivers/gpu/drm/i915/i915_gem.c | 3 drivers/gpu/drm/imx/imx-ldb.c | 25 + drivers/gpu/drm/imx/ipuv3-plane.c | 4 drivers/gpu/drm/radeon/evergreen_cs.c | 1 drivers/gpu/ipu-v3/ipu-common.c | 8 drivers/hwtracing/intel_th/gth.c | 4 drivers/hwtracing/stm/core.c | 11 drivers/i2c/busses/i2c-bcm2835.c | 12 drivers/i2c/busses/i2c-cadence.c | 9 drivers/i2c/busses/i2c-tegra.c | 2 drivers/iio/adc/exynos_adc.c | 2 drivers/infiniband/hw/hfi1/hfi.h | 2 drivers/infiniband/hw/hfi1/init.c | 14 drivers/input/keyboard/cap11xx.c | 35 -- drivers/input/keyboard/matrix_keypad.c | 2 drivers/input/keyboard/st-keyscan.c | 4 drivers/input/misc/pwm-vibra.c | 19 - drivers/input/serio/ps2-gpio.c | 1 drivers/irqchip/irq-brcmstb-l2.c | 10 drivers/irqchip/irq-gic-v3-its.c | 2 drivers/mailbox/bcm-flexrm-mailbox.c | 4 drivers/md/bcache/request.c | 7 drivers/md/bcache/writeback.h | 3 drivers/md/dm-integrity.c | 8 drivers/md/raid10.c | 2 drivers/md/raid5.c | 2 drivers/media/common/videobuf2/videobuf2-v4l2.c | 1 drivers/media/dvb-frontends/lgdt330x.c | 2 drivers/media/i2c/ov5640.c | 2 drivers/media/platform/vimc/Makefile | 3 drivers/media/platform/vimc/vimc-capture.c | 18 - drivers/media/platform/vimc/vimc-common.c | 35 -- drivers/media/platform/vimc/vimc-common.h | 15 - drivers/media/platform/vimc/vimc-debayer.c | 26 - drivers/media/platform/vimc/vimc-scaler.c | 28 - drivers/media/platform/vimc/vimc-sensor.c | 56 --- drivers/media/platform/vimc/vimc-streamer.c | 188 +++++++++++++ drivers/media/platform/vimc/vimc-streamer.h | 38 ++ drivers/media/usb/uvc/uvc_video.c | 8 drivers/mfd/sm501.c | 3 drivers/misc/cxl/guest.c | 2 drivers/misc/cxl/pci.c | 39 ++ drivers/misc/mei/bus.c | 21 - drivers/misc/mei/hbm.c | 7 drivers/mmc/core/core.c | 4 drivers/mmc/host/sdhci-esdhc-imx.c | 1 drivers/net/can/flexcan.c | 2 drivers/net/dsa/bcm_sf2.c | 12 drivers/net/ethernet/atheros/atlx/atl2.c | 4 drivers/net/ethernet/broadcom/bcmsysport.c | 4 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 4 drivers/net/ethernet/broadcom/bnxt/bnxt.h | 2 drivers/net/ethernet/cavium/thunder/nic_main.c | 2 drivers/net/ethernet/cavium/thunder/nicvf_main.c | 27 + drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 2 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 7 drivers/net/ethernet/marvell/mv643xx_eth.c | 7 drivers/net/ethernet/marvell/mvneta.c | 2 drivers/net/ethernet/netronome/nfp/bpf/jit.c | 17 - drivers/net/ethernet/qlogic/qed/qed_iwarp.c | 21 + drivers/net/ethernet/qlogic/qed/qed_iwarp.h | 1 drivers/net/usb/qmi_wwan.c | 4 drivers/net/wireless/mac80211_hwsim.c | 2 drivers/net/wireless/marvell/libertas_tf/if_usb.c | 2 drivers/nvdimm/label.c | 23 + drivers/nvdimm/namespace_devs.c | 4 drivers/nvdimm/pfn_devs.c | 4 drivers/parport/parport_pc.c | 2 drivers/pci/controller/dwc/pcie-designware-host.c | 2 drivers/pci/pcie/dpc.c | 27 + drivers/pci/probe.c | 36 +- drivers/pinctrl/meson/pinctrl-meson8b.c | 2 drivers/power/supply/cpcap-charger.c | 1 drivers/regulator/max77620-regulator.c | 10 drivers/regulator/s2mpa01.c | 10 drivers/regulator/s2mps11.c | 6 drivers/s390/block/dasd_eckd.c | 8 drivers/s390/virtio/virtio_ccw.c | 4 drivers/scsi/aacraid/linit.c | 13 drivers/scsi/libiscsi.c | 6 drivers/scsi/qla2xxx/qla_init.c | 17 - drivers/scsi/sd.c | 59 +++- drivers/scsi/virtio_scsi.c | 2 drivers/soc/qcom/rpmh.c | 34 +- drivers/spi/spi-pxa2xx.c | 1 drivers/spi/spi-ti-qspi.c | 6 drivers/staging/media/imx/imx-ic-prpencvf.c | 26 + drivers/staging/media/imx/imx-media-csi.c | 42 +- drivers/target/iscsi/iscsi_target.c | 4 drivers/tty/serial/8250/8250_of.c | 4 drivers/tty/serial/8250/8250_pci.c | 141 ++++++++- drivers/tty/serial/xilinx_uartps.c | 8 drivers/tty/vt/vt.c | 15 - drivers/usb/chipidea/ci_hdrc_tegra.c | 1 drivers/usb/typec/tps6598x.c | 26 + fs/9p/v9fs_vfs.h | 23 + fs/9p/vfs_file.c | 6 fs/9p/vfs_inode.c | 23 - fs/9p/vfs_inode_dotl.c | 27 - fs/9p/vfs_super.c | 4 fs/btrfs/acl.c | 9 fs/btrfs/disk-io.c | 8 fs/btrfs/extent_io.c | 4 fs/btrfs/volumes.c | 4 fs/cifs/cifsglob.h | 19 + fs/cifs/file.c | 12 fs/cifs/smb2misc.c | 17 - fs/cifs/smb2ops.c | 28 + fs/cifs/smb2transport.c | 14 fs/cifs/transport.c | 6 fs/devpts/inode.c | 1 fs/ext2/super.c | 39 +- fs/ext4/ext4.h | 3 fs/ext4/ioctl.c | 100 +++++- fs/ext4/resize.c | 3 fs/jbd2/transaction.c | 33 +- fs/kernfs/mount.c | 8 fs/nfs/nfs4idmap.c | 31 +- fs/nfs/nfs4proc.c | 12 fs/nfs/pagelist.c | 29 +- fs/nfs/write.c | 11 fs/nfsd/nfs3proc.c | 16 - fs/nfsd/nfs3xdr.c | 1 fs/nfsd/nfs4state.c | 8 fs/nfsd/nfsctl.c | 2 fs/overlayfs/copy_up.c | 59 +++- fs/overlayfs/overlayfs.h | 2 fs/overlayfs/util.c | 55 ++- fs/pipe.c | 14 fs/splice.c | 4 include/asm-generic/vmlinux.lds.h | 2 include/keys/request_key_auth-type.h | 36 ++ include/kvm/arm_vgic.h | 2 include/linux/device-mapper.h | 2 include/linux/hardirq.h | 7 include/linux/key-type.h | 22 - include/linux/kvm_host.h | 2 include/linux/pipe_fs_i.h | 1 include/linux/property.h | 2 include/linux/skbuff.h | 6 include/net/phonet/pep.h | 5 init/main.c | 3 kernel/bpf/lpm_trie.c | 1 kernel/bpf/stackmap.c | 8 kernel/cgroup/cgroup.c | 9 kernel/rcu/tree.c | 20 - kernel/sysctl.c | 11 kernel/trace/trace.c | 1 kernel/trace/trace_event_perf.c | 16 - kernel/trace/trace_events_hist.c | 5 lib/assoc_array.c | 8 mm/gup.c | 3 mm/memory-failure.c | 14 mm/memory.c | 5 mm/page_alloc.c | 8 mm/page_ext.c | 4 mm/shmem.c | 12 mm/swap.c | 17 - mm/vmalloc.c | 2 net/9p/client.c | 2 net/core/filter.c | 12 net/ipv4/esp4.c | 2 net/ipv4/netfilter/ipt_CLUSTERIP.c | 2 net/ipv6/esp6.c | 2 net/key/af_key.c | 40 +- net/mac80211/agg-tx.c | 4 net/mac80211/util.c | 6 net/netfilter/ipvs/Kconfig | 1 net/netfilter/ipvs/ip_vs_core.c | 10 net/netfilter/ipvs/ip_vs_ctl.c | 10 net/netfilter/x_tables.c | 2 net/phonet/pep.c | 32 +- net/sunrpc/svcsock.c | 20 - net/sunrpc/xprtrdma/verbs.c | 3 net/xfrm/xfrm_interface.c | 4 net/xfrm/xfrm_policy.c | 4 scripts/kallsyms.c | 4 security/keys/internal.h | 13 security/keys/keyctl.c | 1 security/keys/process_keys.c | 1 security/keys/request_key.c | 72 ++-- security/keys/request_key_auth.c | 16 - security/selinux/hooks.c | 8 sound/soc/codecs/pcm186x.c | 8 sound/soc/codecs/rt5682.c | 2 sound/soc/fsl/fsl_esai.c | 7 sound/soc/samsung/i2s.c | 10 sound/soc/sh/rcar/ssi.c | 2 sound/soc/soc-dapm.c | 24 + sound/soc/soc-topology.c | 8 tools/perf/util/auxtrace.c | 4 tools/perf/util/auxtrace.h | 3 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 37 ++ tools/perf/util/intel-pt.c | 2 tools/perf/util/symbol.c | 2 tools/testing/selftests/bpf/test_lpm_map.c | 10 tools/testing/selftests/net/fib_tests.sh | 1 virt/kvm/arm/arm.c | 10 virt/kvm/arm/mmu.c | 2 virt/kvm/arm/psci.c | 36 +- virt/kvm/arm/vgic/vgic-init.c | 24 + virt/kvm/arm/vgic/vgic-its.c | 8 virt/kvm/arm/vgic/vgic.c | 10 virt/kvm/kvm_main.c | 7 346 files changed, 3061 insertions(+), 1579 deletions(-)
Aditya Pakki (1):
md: Fix failed allocation of md_register_thread
Adrian Hunter (5):
perf intel-pt: Fix CYC timestamp calculation after OVF perf tools: Fix split_kallsyms_for_kcore() for trampoline symbols perf auxtrace: Define auxtrace record alignment
perf intel-pt: Fix overlap calculation for padding perf intel-pt: Fix divide by zero when TSC is not available
Al Viro (1):
fix cgroup_do_mount() handling of failure exits
Alban Crequy (1):
bpf, lpm: fix lookup bug in map_delete_elem
Alexander Shishkin (2):
stm class: Prevent division by zero
intel_th: Don't reference unassigned outputs
Alexander Shiyan (1):
gpu: ipu-v3: Fix i.MX51 CSI control registers offset
Alexander Usyskin (2):
mei: hbm: clean the feature flags on link reset
mei: bus: move hw module get/put to probe/release
Alexei Starovoitov (1):
bpf: fix lockdep false positive in stackmap
Alexey Khoroshilov (1):
net: mv643xx_eth: disable clk on error path in mv643xx_eth_shared_probe()
Anders Roxell (1):
netfilter: ipt_CLUSTERIP: fix warning unused variable cn
Andre Przywara (1):
clk: sunxi: A31: Fix wrong AHB gate number
Andrea Claudi (1):
ipvs: fix dependency on nf_defrag_ipv6
Andy Shevchenko (2):
ACPI / device_sysfs: Avoid OF modalias creation for removed device
spi: pxa2xx: Setup maximum supported DMA transfer length
Aneesh Kumar K.V (1):
powerpc/hugetlb: Don't do runtime allocation of 16G pages in LPAR configuration
Anoob Soman (1):
scsi: libiscsi: Fix race between iscsi_xmit_task and iscsi_complete_task
Anssi Hannula (1):
serial: uartps: Fix stuck ISR if RX disabled with non-empty FIFO
Ard Biesheuvel (4):
crypto: arm/crct10dif - revert to C code for short inputs
crypto: arm64/crct10dif - revert to C code for short inputs
crypto: arm64/aes-ccm - fix logical bug in AAD MAC handling
crypto: arm64/aes-ccm - fix bugs in non-NEON fallback routine
Arnd Bergmann (2):
phonet: fix building with clang
cpufreq: pxa2xx: remove incorrect __init annotation
BOUGH CHEN (1):
mmc: sdhci-esdhc-imx: fix HS400 timing issue
Bard liao (1):
ASoC: topology: free created components in tplg load error
Bart Van Assche (1):
scsi: target/iscsi: Avoid iscsit_release_commands_from_conn() deadlock
Beniamino Galvani (1):
qmi_wwan: apply SET_DTR quirk to Sierra WP7607
Benjamin Coddington (1):
NFS: Don't use page_file_mapping after removing the page
Bill Kuzeja (1):
scsi: qla2xxx: Fix panic from use after free in qla2x00_async_tm_cmd
Bjorn Helgaas (1):
PCI/ASPM: Use LTR if already enabled by platform
Christoffer Dall (2):
KVM: arm/arm64: Reset the VCPU without preemption and vcpu state loaded
KVM: arm/arm64: vgic: Always initialize the group of private IRQs
Christophe Leroy (5):
powerpc/32: Clear on-stack exception marker upon exception return powerpc/wii: properly disable use of BATs when requested. powerpc/83xx: Also save/restore SPRG4-7 during suspend powerpc/traps: fix recoverability of machine check handling on book3s/32 powerpc/traps: Fix the message printed when stack overflows
Codrin Ciubotariu (2):
ASoC: codecs: pcm186x: fix wrong usage of DECLARE_TLV_DB_SCALE()
ASoC: codecs: pcm186x: Fix energysense SLEEP bit
Coly Li (1):
bcache: use (REQ_META|REQ_PRIO) to indicate bio for metadata
Dan Carpenter (1):
net: dsa: bcm_sf2: potential array overflow in bcm_sf2_sw_suspend()
Dan Williams (5):
acpi/nfit: Fix bus command validation
nfit/ars: Attempt a short-ARS whenever the ARS state is idle at boot nfit/ars: Attempt short-ARS even in the no_init_ars case libnvdimm/label: Clear 'updating' flag after label-set update libnvdimm/pmem: Honor force_raw for legacy pmem regions
Daniel Axtens (1):
bcache: never writeback a discard operation
Darrick J. Wong (2):
tmpfs: fix link accounting when a tmpfile is linked in
tmpfs: fix uninitialized return value in shmem_link
Dave Martin (1):
arm64: KVM: Fix architecturally invalid reset value for FPEXC32_EL2
David Howells (2):
assoc_array: Fix shortcut creation
keys: Fix dependency loop between construction record and auth key
Dexuan Cui (1):
nfit: acpi_nfit_ctl(): Check out_obj->type in the right place
Dietmar Eggemann (1):
ARM: 8824/1: fix a migrating irq bug when hotplug cpu
Dmitry Osipenko (1):
usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()
Dmitry Torokhov (3):
Input: cap11xx - switch to using set_brightness_blocking()
Input: ps2-gpio - flush TX work when closing port
Input: matrix_keypad - use flush_delayed_work()
Dongdong Liu (1):
PCI/DPC: Fix print AER status in DPC event handling
Doug Berger (1):
irqchip/brcmstb-l2: Use _irqsave locking variants in non-interrupt code
Enric Balletbo i Serra (1):
arm64: dts: rockchip: fix graph_port warning on rk3399 bob kevin and excavator
Eric Biggers (14):
crypto: cfb - add missing 'chunksize' property
crypto: cfb - remove bogus memcpy() with src == dest
crypto: ahash - fix another early termination in hash walk
crypto: aead - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
crypto: aegis - fix handling chunked inputs
crypto: arm64/aes-neonbs - fix returning final keystream block
crypto: hash - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
crypto: morus - fix handling chunked inputs
crypto: pcbc - remove bogus memcpy()s with src == dest
crypto: skcipher - set CRYPTO_TFM_NEED_KEY if ->setkey() fails
crypto: testmgr - skip crc32c context test for ahash algorithms
crypto: x86/aegis - fix handling chunked inputs and MAY_SLEEP
crypto: x86/aesni-gcm - fix crash on empty plaintext
crypto: x86/morus - fix handling chunked inputs and MAY_SLEEP
Eugene Loh (1):
kallsyms: Handle too long symbols in kallsyms.c
Eugeniy Paltsev (1):
ARCv2: lib: memcpy: fix doing prefetchw outside of buffer
Evan Quan (1):
drm/amd/powerplay: correct power reading on fiji
Felipe Franciosi (1):
scsi: virtio_scsi: don't send sc payload with tmfs
Filipe Manana (3):
Btrfs: setup a nofs context for memory allocation at btrfs_create_tree()
Btrfs: setup a nofs context for memory allocation at __btrfs_set_acl
Btrfs: fix corruption reading shared and compressed extents after hole punching
Finn Thain (1):
m68k: Add -ffreestanding to CFLAGS
Florian Fainelli (2):
net: systemport: Fix reception of BPDUs
net: dsa: bcm_sf2: Do not assume DSA master supports WoL
Francesco Ruggeri (1):
netfilter: compat: initialize all fields in xt_init
Franck LENORMAND (1):
crypto: caam - fix hash context DMA unmap size
French, Nicholas A (1):
media: lgdt330x: fix lock status reporting
Gabriel Fernandez (1):
Input: st-keyscan - fix potential zalloc NULL dereference
Gilad Ben-Yossef (2):
crypto: ccree - unmap buffer before copying IV
crypto: ccree - don't copy zero size ciphertext
Greg Kroah-Hartman (2):
stable-kernel-rules.rst: add link to networking patch queue Linux 4.19.31
Gustavo A. R. Silva (4):
crypto: ccree - fix missing break in switch statement
ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify
mfd: sm501: Fix potential NULL pointer dereference drm/radeon/evergreen_cs: fix missing break in switch statement
Hadar Gat (1):
crypto: ccree - fix free of unallocated mlli buffer
Halil Pasic (1):
s390/virtio: handle find on invalid queue gracefully
Hans Verkuil (1):
media: videobuf2-v4l2: drop WARN_ON in vb2_warn_zero_bytesused()
Harry Wentland (1):
drm/amd/display: don't call dm_pp_ function from an fpu block
Heikki Krogerus (1):
device property: Fix the length used in PROPERTY_ENTRY_STRING()
Himanshu Madhani (1):
scsi: qla2xxx: Fix LUN discovery if loop id is not assigned yet by firmware
Horia Geantă (1):
crypto: caam - fix DMA mapping of stack memory
Hou Tao (1):
9p: use inode->i_lock to protect i_size_write() under 32-bit
Huang Zijiang (1):
net: hns: Fix object reference leaks in hns_dsaf_roce_reset()
Ilan Peer (1):
mac80211: Fix Tx aggregation session tear down with ITXQs
J. Bruce Fields (3):
security/selinux: fix SECURITY_LSM_NATIVE_LABELS on reused superblock
nfsd: fix performance-limiting session calculation
svcrpc: fix UDP on servers with lots of threads
James Morse (1):
KVM: arm64: Forbid kprobing of the VHE world-switch code
Jan Kara (2):
ext4: fix crash during online resizing
ext2: Fix underflow in ext2_max_size()
Jan Stancek (1):
mm/memory.c: do_fault: avoid usage of stale vm_area_struct
Jann Horn (3):
mm: page_alloc: fix ref bias in page_frag_alloc() for 1-byte allocs tracing/perf: Use strndup_user() instead of buggy open-coded version
splice: don't merge into linked buffers
Jarkko Sakkinen (2):
tpm/tpm_crb: Avoid unaligned reads in crb_recv()
tpm: Unify the send callback behaviour
Jay Dolan (2):
serial: 8250_pci: Fix number of ports for ACCES serial cards
serial: 8250_pci: Have ACCES cards that use the four port Pericom PI7C9X7954 chip use the pci_pericom_setup()
Jeff Kirsher (1):
ixgbe: fix older devices that do not support IXGBE_MRQC_L3L4TXSWEN
Jianchao Wang (1):
blk-mq: insert rq with DONTPREP to hctx dispatch list when requeue
Jiong Wang (2):
nfp: bpf: fix code-gen bug on BPF_ALU | BPF_XOR | BPF_K
nfp: bpf: fix ALU32 high bits clearance bug
Jiong Wu (1):
mmc:fix a bug when max_discard is 0
Johannes Berg (1):
mac80211: call drv_ibss_join() on restart
Johannes Thumshirn (1):
btrfs: ensure that a DUP or RAID1 block group has exactly two stripes
Jonathan Bakker (1):
Input: pwm-vibra - prevent unbalanced regulator
Jordan Niethe (1):
powerpc/powernv: Make opal log only readable by root
Josh Poimboeuf (1):
x86/unwind/orc: Fix ORC unwind table alignment
Juergen Gross (1):
xen: fix dom0 boot on huge systems
Julia Lawall (1):
drm/imx: imx-ldb: add missing of_node_puts
Julien Thierry (2):
KVM: arm/arm64: vgic: Make vgic_dist->lpi_list_lock a raw_spinlock
arm64: Fix HCR.TGE status for NMI contexts
Kan Liang (1):
perf/x86/intel/uncore: Fix client IMC events return huge result
Krzysztof Kozlowski (4):
iio: adc: exynos-adc: Fix NULL pointer exception on unbind
regulator: s2mps11: Fix steps for buck7, buck8 and LDO35
clk: samsung: exynos5: Fix possible NULL pointer exception on platform_device_alloc() failure
clk: samsung: exynos5: Fix kfree() of const memory on setting driver_override
Kunihiko Hayashi (1):
clk: uniphier: Fix update register for CPU-gear
Kuninori Morimoto (1):
ASoC: rsnd: fixup rsnd_ssi_master_clk_start() user count check
Li RongQing (1):
mac80211_hwsim: propagate genlmsg_reply return code
Loic Poulain (1):
media: i2c: ov5640: Fix post-reset delay
Lubomir Rintel (2):
libertas_tf: don't set URB_ZERO_PACKET on IN USB transfer
serial: 8250_of: assume reg-shift of 2 for mrvl,mmp-uart
Lucas A. M. Magalhães (1):
media: vimc: Add vimc-streamer for stream control
Lucas Stach (1):
PCI: dwc: skip MSI init if MSIs have been explicitly disabled
Mao Wenan (1):
net: set static variable an initial value in atl2_probe()
Marc Kleine-Budde (1):
can: flexcan: FLEXCAN_IFLAG_MB: add () around macro argument
Marc Zyngier (2):
arm/arm64: KVM: Allow a VCPU to fully reset itself arm/arm64: KVM: Don't panic on failure to properly reset system registers
Mark Cave-Ayland (1):
powerpc: Fix 32-bit KVM-PR lockup and host crash with MacOS guest
Mark Walton (1):
gpio: pca953x: Fix dereference of irq data in shutdown
Mark Zhang (1):
regulator: max77620: Initialize values for DT properties
Martin Blumenstingl (1):
pinctrl: meson: meson8b: fix the sdxc_a data 1..3 pins
Martin K. Petersen (1):
scsi: sd: Optimal I/O size should be a multiple of physical block size
Martin Schwidefsky (2):
s390/setup: fix early warning messages s390/setup: fix boot crash for machine without EDAT-1
Martin Willi (1):
esp: Skip TX bytes accounting when sending from a request socket
Masami Hiramatsu (1):
x86/kprobes: Prohibit probing on optprobe template code
Michael Chan (2):
bnxt_en: Fix typo in firmware message timeout logic.
bnxt_en: Wait longer for the firmware message response to complete.
Michael Ellerman (1):
powerpc/ptrace: Simplify vr_get/set() to avoid GCC warning
Michael J. Ruhl (1):
IB/hfi1: Close race condition on user context disable and close
Michal Hocko (1):
mm: handle lru_add_drain_all for UP properly
Michal Kalderon (2):
qed: Fix iWARP buffer size provided for syn packet processing.
qed: Fix iWARP syn packet mac address validation.
Miguel Ojeda (1):
auxdisplay: ht16k33: fix potential user-after-free on module unload
Mikulas Patocka (1):
dm integrity: limit the rate of error messages
NeilBrown (2):
dm: fix to_sector() for 32bit
nfsd: fix memory corruption caused by readdir
Nicolas Morey-Chaisemartin (1):
xprtrdma: Make sure Send CQ is allocated on an existing compvec
Nicolas Pitre (1):
vt: perform safe console erase in the right order
Nikolaus Voss (1):
usb: typec: tps6598x: handle block writes separately with plain-I2C adapters
Noralf Trønnes (1):
drm/fb-helper: generic: Fix drm_fbdev_client_restore()
Oliver O'Halloran (1):
libnvdimm: Fix altmap reservation size calculation
Pankaj Gupta (1):
crypto: caam - fixed handling of sg list
Paul Cercueil (2):
clk: ingenic: Fix round_rate misbehaving with non-integer dividers
clk: ingenic: Fix doc of ingenic_cgu_div_info
Paul Kocialkowski (2):
i2c: bcm2835: Clear current buffer pointers and counts after a transfer
clk: sunxi-ng: v3s: Fix TCON reset de-assert bit
Paul Mackerras (1):
powerpc/powernv: Don't reprogram SLW image on every KVM guest entry/exit
Pavel Machek (1):
cpcap-charger: generate events for userspace
Pavel Shilovsky (3):
CIFS: Do not reset lease state to NONE on lease break
CIFS: Do not skip SMB2 message IDs on send failures
CIFS: Fix read after write for files with read caching
Paweł Chmiel (1):
Input: pwm-vibra - stop regulator after disabling pwm, not before
Philipp Zabel (1):
drm/imx: ignore plane updates on disabled crtcs
Phuong Nguyen (1):
dmaengine: usb-dmac: Make DMAC system sleep callbacks explicit
Pierre-Louis Bossart (1):
ASoC: dapm: fix out-of-bounds accesses to DAPM lookup tables
Qian Cai (1):
Revert "mm: use early_pfn_to_nid in page_ext_init"
QiaoChong (1):
parport_pc: fix find_superio io compare code, should use equal test.
Rajneesh Bhardwaj (1):
x86/CPU: Add Icelake model number
Rayagonda Kokatanur (1):
mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush timeout issue
Robin Murphy (1):
ARM: 8835/1: dma-mapping: Clear DMA ops on teardown
Roman Penyaev (1):
mm/vmalloc: fix size check for remap_vmalloc_range_partial()
Russell King (2):
ARM: OMAP2+: fix lack of timer interrupts on CPU1 after hotplug
net: marvell: mvneta: fix DMA debug warning
S.j. Wang (1):
ASoC: fsl_esai: fix register setting issue in RIGHT_J mode
Sagar Biradar (1):
scsi: aacraid: Fix performance issue on logical drives
Sakari Ailus (1):
media: uvcvideo: Avoid NULL pointer dereference at the end of streaming
Samuel Holland (1):
clocksource/drivers/arch_timer: Workaround for Allwinner A64 timer instability
Sean Christopherson (6):
KVM: Call kvm_arch_memslots_updated() before updating memslots
KVM: x86/mmu: Detect MMIO generation wrap in any address space
KVM: x86/mmu: Do not cache MMIO accesses while memslots are in flux
KVM: nVMX: Sign extend displacements of VMX instr's mem operands
KVM: nVMX: Apply addr size mask to effective address for VMX instructions
KVM: nVMX: Ignore limit checks on VMX instructions using flat segments
Sean Tranchetti (1):
af_key: unconditionally clone on broadcast
Shubhrajyoti Datta (1):
i2c: cadence: Fix the hold bit setting
Shuming Fan (1):
ASoC: rt5682: Correct the setting while select ASRC clk for AD/DA filter
Sowjanya Komatineni (1):
i2c: tegra: fix maximum transfer size
Stefan Haberland (1):
s390/dasd: fix using offset into zero size array error
Stephen Boyd (1):
soc: qcom: rpmh: Avoid accessing freed memory from batch API
Steve Longerbeam (4):
gpu: ipu-v3: Fix CSI offsets for imx53
media: imx: prpencvf: Stop upstream before disabling IDMA channel
media: imx: csi: Disable CSI immediately after last EOF
media: imx: csi: Stop upstream before disabling IDMA channel
Stuart Menefy (3):
regulator: s2mpa01: Fix step values for some LDOs clocksource/drivers/exynos_mct: Move one-shot check from tick clear to ISR clocksource/drivers/exynos_mct: Clear timer interrupt when shutdown
Sylwester Nawrocki (1):
ASoC: samsung: Prevent clk_get_rate() calls in atomic context
Thadeu Lima de Souza Cascardo (1):
selftests: fib_tests: sleep after changing carrier. again.
Thierry Reding (1):
ARM: tegra: Restore DT ABI on Tegra124 Chromebooks
Thomas Petazzoni (1):
ARM: dts: armada-xp: fix Armada XP boards NAND description
Tobias Brunner (1):
xfrm: Fix inbound traffic via XFRM interfaces across network namespaces
Tom Zanussi (1):
tracing: Use strncpy instead of memcpy for string keys in hist triggers
Tony Lindgren (3):
clocksource: timer-ti-dm: Fix pwm dmtimer usage of fck reparenting
ARM: dts: Configure clock parent for pwm vibra
clk: clk-twl6040: Fix imprecise external abort for pdmclk
Trond Myklebust (4):
NFS: Fix I/O request leakages
NFS: Fix an I/O request leakage in nfs_do_recoalesce
NFS: Don't recoalesce on error in nfs_pageio_complete_mirror() NFSv4.1: Reinitialise sequence results before retransmitting a request
Tvrtko Ursulin (1):
drm/i915: Relax mmap VMA check
Vadim Lomovtsev (2):
net: thunderx: make CFG_DONE message to run through generic send-ack sequence
net: thunderx: add nicvf_send_msg_to_pf result check for set_rx_mode_task
Vaibhav Jain (1):
cxl: Wrap iterations over afu slices inside 'afu_list_lock'
Varad Gautam (1):
fs/devpts: always delete dcache dentry-s in dput()
Vignesh R (1):
spi: ti-qspi: Fix mmap read when more than one CS in use
Vineet Gupta (3):
ARC: uacces: remove lp_start, lp_end from clobber list
ARCv2: support manual regfile save on interrupts
ARCv2: don't assume core 0x54 has dual issue
Viresh Kumar (2):
cpufreq: kryo: Release OPP tables on module removal PM / wakeup: Rework wakeup source timer cancellation
Vivek Goyal (2):
ovl: During copy up, first copy up data and then xattrs
ovl: Do not lose security.capability xattr over metadata file copy-up
Vladimir Murzin (1):
arm64: Relax GIC version check during early boot
Wei Yang (1):
libnvdimm, pfn: Fix over-trim in trim_pfn_device()
Will Deacon (1):
arm64: debug: Ensure debug handlers check triggering exception level
Willem de Bruijn (2):
bpf: only adjust gso_size on bytestream protocols
bpf: only test gso type on gso packets
Xin Long (1):
selinux: add the missing walk_size + len check in selinux_sctp_bind_connect
Yang Yingliang (1):
ipmi_si: fix use-after-free of resource->name
Yangtao Li (1):
cpufreq: tegra124: add missing of_node_put()
Yihao Wu (1):
nfsd: fix wrong check in write_v4_end_grace()
Yizhuo (1):
ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized
Yu Zhao (1):
mm/gup: fix gup_pmd_range() for dax
Yufen Yu (1):
floppy: check_events callback should not return a negative number
Zenghui Yu (1):
irqchip/gic-v3-its: Avoid parsing _indirect_ twice for Device table
Zev Weiss (1):
kernel/sysctl.c: add missing range check in do_proc_dointvec_minmax_conv
Zhang Zhijie (2):
crypto: rockchip - fix scatterlist nents error
crypto: rockchip - update new iv to device in multiple operations
Zhang, Jun (1):
rcu: Do RCU GP kthread self-wakeup from softirq and interrupt
Zhi Jin (1):
stm class: Fix an endless loop in channel allocation
yangerkun (4):
ext4: fix check of inode in swap_inode_boot_loader
ext4: cleanup pagecache before swap i_data
ext4: update quota information while swapping boot loader inode
ext4: add mask of ext4 flags to swap
zhangyi (F) (3):
tracing: Do not free iter->trace in fail path of tracing_open_pipe()
jbd2: clear dirty flag when revoking a buffer from an older transaction
jbd2: fix compile warning when using JBUFFER_TRACE
zhengbin (1):
9p/net: fix memory leak in p9_client_create
zhongjiang (1):
mm: hwpoison: fix thp split handing in soft_offline_in_use_page()
Greg KH
maintainerDocumentation/arm64/silicon-errata.txt +2 -0
@@ -44,6 +44,8 @@ stable kernels. | Implementor | Component | Erratum ID | Kconfig | +----------------+-----------------+-----------------+-----------------------------+ +| Allwinner | A64/R18 | UNKNOWN1 | SUN50I_ERRATUM_UNKNOWN1 | +| | | | | | ARM | Cortex-A53 | #826319 | ARM64_ERRATUM_826319 | | ARM | Cortex-A53 | #827319 | ARM64_ERRATUM_827319 | | ARM | Cortex-A53 | #824069 | ARM64_ERRATUM_824069 |
Documentation/process/stable-kernel-rules.rst +3 -0
@@ -38,6 +38,9 @@ Procedure for submitting patches to the -stable tree - If the patch covers files in net/ or drivers/net please follow netdev stable submission guidelines as described in :ref:`Documentation/networking/netdev-FAQ.rst <netdev-FAQ>` + after first checking the stable networking queue at + https://patchwork.ozlabs.org/bundle/davem/stable/?series=&submitter=&state=*&q=&archive= + to ensure the requested patch is not already queued up. - Security patches should not be handled (solely) by the -stable review process but should follow the procedures in :ref:`Documentation/admin-guide/security-bugs.rst <securitybugs>`.
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 30 +SUBLEVEL = 31 EXTRAVERSION = NAME = "People's Front"
arch/arc/Kconfig +8 -0
@@ -420,6 +420,14 @@ config ARC_HAS_ACCL_REGS (also referred to as r58:r59). These can also be used by gcc as GPR so kernel needs to save/restore per process +config ARC_IRQ_NO_AUTOSAVE + bool "Disable hardware autosave regfile on interrupts" + default n + help + On HS cores, taken interrupt auto saves the regfile on stack. + This is programmable and can be optionally disabled in which case + software INTERRUPT_PROLOGUE/EPILGUE do the needed work + endif # ISA_ARCV2 endmenu # "ARC CPU Configuration"
arch/arc/include/asm/arcregs.h +8 -0
@@ -151,6 +151,14 @@ struct bcr_isa_arcv2 {#endif }; +struct bcr_uarch_build_arcv2 { +#ifdef CONFIG_CPU_BIG_ENDIAN +unsigned int pad:8 , prod:8 , maj:8 , min:8 ; +#else +unsigned int min:8 , maj:8 , prod:8 , pad:8 ; +#endif +}; +struct bcr_mpy {#ifdef CONFIG_CPU_BIG_ENDIAN unsigned int pad:8 , x1616:8 , dsp:4 , cycles:2 , type:2 , ver:8 ;
arch/arc/include/asm/entry-arcv2.h +54 -0
66 lines not on this page · raw message
arch/arc/include/asm/uaccess.h +4 -4
@@ -207,7 +207,7 @@ raw_copy_from_user(void *to, const void __user *from, unsigned long n)*/ "=&r" (tmp), "+r" (to), "+r" (from) : - : "lp_count", "lp_start", "lp_end", "memory"); + : "lp_count", "memory"); return n; }
@@ -433,7 +433,7 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n)*/ "=&r" (tmp), "+r" (to), "+r" (from) : - : "lp_count", "lp_start", "lp_end", "memory"); + : "lp_count", "memory"); return n; }
@@ -653,7 +653,7 @@ static inline unsigned long __arc_clear_user(void __user *to, unsigned long n)" .previous \n" : "+r"(d_char), "+r"(res) : "i"(0) - : "lp_count", "lp_start", "lp_end", "memory"); + : "lp_count", "memory"); return res; }
@@ -686,7 +686,7 @@ __arc_strncpy_from_user(char *dst, const char __user *src, long count) " .previous \n" : "+r"(res), "+r"(dst), "+r"(src), "=r"(val) : "g"(-EFAULT), "r"(count) - : "lp_count", "lp_start", "lp_end", "memory"); + : "lp_count", "memory");return res; }
arch/arc/kernel/entry-arcv2.S +3 -1
@@ -209,7 +209,9 @@ restore_regs: ;####### Return from Intr ####### debug_marker_l1: - bbit1.nt r0, STATUS_DE_BIT, .Lintr_ret_to_delay_slot + ; bbit1.nt r0, STATUS_DE_BIT, .Lintr_ret_to_delay_slot + btst r0, STATUS_DE_BIT ; Z flag set if bit clear + bnz .Lintr_ret_to_delay_slot ; branch if STATUS_DE_BIT set .Lisr_ret_fast_path: ; Handle special case #1: (Entry via Exception, Return via IRQ)
arch/arc/kernel/intc-arcv2.c +2 -0
@@ -49,11 +49,13 @@ void arc_init_IRQ(void) *(unsigned int *)&ictrl =0 ; +#ifndef CONFIG_ARC_IRQ_NO_AUTOSAVE ictrl.save_nr_gpr_pairs =6 ;/* r0 to r11 (r12 saved manually) */ ictrl.save_blink =1 ; ictrl.save_lp_regs =1 ;/* LP_COUNT, LP_START, LP_END */ ictrl.save_u_to_u =0 ;/* user ctxt saved on kernel stack */ ictrl.save_idx_regs =1 ;/* JLI, LDI, EI */ +#endif WRITE_AUX (AUX_IRQ_CTRL , ictrl);
arch/arc/kernel/setup.c +21 -5
@@ -196,13 +196,29 @@ static void read_arc_build_cfg_regs(void) cpu->bpu.num_pred =2048 << bpu.pte;if (cpu->core.family >=0x54 ) { -unsigned int exec_ctrl; -READ_BCR (AUX_EXEC_CTRL , exec_ctrl); - cpu->extn.dual_enb = !(exec_ctrl &1 ); +struct bcr_uarch_build_arcv2 uarch; -/* dual issue always present for this core */ - cpu->extn.dual =1 ; +/* +* The first 0x54 core (uarch maj:min 0:1 or 0:2) was +* dual issue only (HS4x). But next uarch rev (1:0) +* allows it be configured for single issue (HS3x) +* Ensure we fiddle with dual issue only on HS4x +*/ +READ_BCR (ARC_REG_MICRO_ARCH_BCR , uarch); + +if (uarch.prod ==4 ) { +unsigned int exec_ctrl; + +/* dual issue hardware always present */ + cpu->extn.dual =1 ; + +READ_BCR (AUX_EXEC_CTRL , exec_ctrl); + +/* dual issue hardware enabled ? */ + cpu->extn.dual_enb = !(exec_ctrl &1 ); + + } } }
arch/arc/lib/memcpy-archs.S +0 -14
@@ -25,15 +25,11 @@ #endif #ifdef CONFIG_ARC_HAS_LL64 -# define PREFETCH_READ(RX) prefetch [RX, 56] -# define PREFETCH_WRITE(RX) prefetchw [RX, 64] # define LOADX(DST,RX) ldd.ab DST, [RX, 8] # define STOREX(SRC,RX) std.ab SRC, [RX, 8] # define ZOLSHFT 5 # define ZOLAND 0x1F #else -# define PREFETCH_READ(RX) prefetch [RX, 28] -# define PREFETCH_WRITE(RX) prefetchw [RX, 32] # define LOADX(DST,RX) ld.ab DST, [RX, 4] # define STOREX(SRC,RX) st.ab SRC, [RX, 4] # define ZOLSHFT 4
@@ -41,8 +37,6 @@ #endif ENTRY_CFI(memcpy) - prefetch [r1] ; Prefetch the read location - prefetchw [r0] ; Prefetch the write location mov.f 0, r2 ;;; if size is zero jz.d [blink]
@@ -72,8 +66,6 @@ ENTRY_CFI(memcpy) lpnz @.Lcopy32_64bytes ;; LOOP START LOADX (r6, r1) - PREFETCH_READ (r1) - PREFETCH_WRITE (r3) LOADX (r8, r1) LOADX (r10, r1) LOADX (r4, r1)
@@ -117,9 +109,7 @@ ENTRY_CFI(memcpy) lpnz @.Lcopy8bytes_1 ;; LOOP START ld.ab r6, [r1, 4] - prefetch [r1, 28] ;Prefetch the next read location ld.ab r8, [r1,4] - prefetchw [r3, 32] ;Prefetch the next write location SHIFT_1 (r7, r6, 24) or r7, r7, r5
@@ -162,9 +152,7 @@ ENTRY_CFI(memcpy) lpnz @.Lcopy8bytes_2 ;; LOOP START ld.ab r6, [r1, 4] - prefetch [r1, 28] ;Prefetch the next read location ld.ab r8, [r1,4] - prefetchw [r3, 32] ;Prefetch the next write location SHIFT_1 (r7, r6, 16) or r7, r7, r5
@@ -204,9 +192,7 @@ ENTRY_CFI(memcpy) lpnz @.Lcopy8bytes_3 ;; LOOP START ld.ab r6, [r1, 4] - prefetch [r1, 28] ;Prefetch the next read location ld.ab r8, [r1,4] - prefetchw [r3, 32] ;Prefetch the next write location SHIFT_1 (r7, r6, 8) or r7, r7, r5
arch/arc/plat-hsdk/Kconfig +1 -0
@@ -9,6 +9,7 @@ menuconfig ARC_SOC_HSDK bool "ARC HS Development Kit SOC" depends on ISA_ARCV2 select ARC_HAS_ACCL_REGS + select ARC_IRQ_NO_AUTOSAVE select CLK_HSDK select RESET_HSDK select MIGHT_HAVE_PCI
arch/arm/Kconfig +1 -0
@@ -1444,6 +1444,7 @@ config NR_CPUS config HOTPLUG_CPU bool "Support for hot-pluggable CPUs" depends on SMP + select GENERIC_IRQ_MIGRATION help Say Y here to experiment with turning CPUs off and on. CPUs can be controlled through /sys/devices/system/cpu.
arch/arm/boot/dts/armada-xp-db.dts +24 -22
54 lines not on this page · raw message
arch/arm/boot/dts/armada-xp-gp.dts +8 -5
@@ -160,12 +160,15 @@ status = "okay"; }; - nand@d0000 { + nand-controller@d0000 { status = "okay"; - label = "pxa3xx_nand-0"; - num-cs = <1>; - marvell,nand-keep-config; - nand-on-flash-bbt; + + nand@0 { + reg = <0>; + label = "pxa3xx_nand-0"; + nand-rb = <0>; + nand-on-flash-bbt; + }; }; };
arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts +44 -41
93 lines not on this page · raw message
arch/arm/boot/dts/omap4-droid4-xt894.dts +11 -0
@@ -644,6 +644,17 @@ }; }; +/* Configure pwm clock source for timers 8 & 9 */ +&timer8 { + assigned-clocks = <&abe_clkctrl OMAP4_TIMER8_CLKCTRL 24>; + assigned-clock-parents = <&sys_clkin_ck>; +}; + +&timer9 { + assigned-clocks = <&l4_per_clkctrl OMAP4_TIMER9_CLKCTRL 24>; + assigned-clock-parents = <&sys_clkin_ck>; +}; + /* * As uart1 is wired to mdm6600 with rts and cts, we can use the cts pin for * uart1 wakeirq.
arch/arm/boot/dts/tegra124-nyan.dtsi +16 -1
@@ -13,10 +13,25 @@ stdout-path = "serial0:115200n8"; }; - memory@80000000 { + /* + * Note that recent version of the device tree compiler (starting with + * version 1.4.2) warn about this node containing a reg property, but + * missing a unit-address. However, the bootloader on these Chromebook + * devices relies on the full name of this node to be exactly /memory. + * Adding the unit-address causes the bootloader to create a /memory + * node and write the memory bank configuration to that node, which in + * turn leads the kernel to believe that the device has 2 GiB of + * memory instead of the amount detected by the bootloader. + * + * The name of this node is effectively ABI and must not be changed. + */ + memory { + device_type = "memory"; reg = <0x0 0x80000000 0x0 0x80000000>; }; + /delete-node/ memory@80000000; + host1x@50000000 { hdmi@54280000 { status = "okay";
arch/arm/crypto/crct10dif-ce-core.S +7 -7
@@ -124,10 +124,10 @@ ENTRY(crc_t10dif_pmull) vext.8 q10, qzr, q0, #4 // receive the initial 64B data, xor the initial crc value - vld1.64 {q0-q1}, [arg2, :128]! - vld1.64 {q2-q3}, [arg2, :128]! - vld1.64 {q4-q5}, [arg2, :128]! - vld1.64 {q6-q7}, [arg2, :128]! + vld1.64 {q0-q1}, [arg2]! + vld1.64 {q2-q3}, [arg2]! + vld1.64 {q4-q5}, [arg2]! + vld1.64 {q6-q7}, [arg2]! CPU_LE( vrev64.8 q0, q0 ) CPU_LE( vrev64.8 q1, q1 ) CPU_LE( vrev64.8 q2, q2 )
@@ -167,7 +167,7 @@ CPU_LE( vrev64.8 q7, q7 ) _fold_64_B_loop: .macro fold64, reg1, reg2 - vld1.64 {q11-q12}, [arg2, :128]! + vld1.64 {q11-q12}, [arg2]! vmull.p64 q8, \reg1\()h, d21 vmull.p64 \reg1, \reg1\()l, d20
@@ -238,7 +238,7 @@ _16B_reduction_loop: vmull.p64 q7, d15, d21 veor.8 q7, q7, q8 - vld1.64 {q0}, [arg2, :128]! + vld1.64 {q0}, [arg2]! CPU_LE( vrev64.8 q0, q0 ) vswp d0, d1 veor.8 q7, q7, q0
@@ -335,7 +335,7 @@ _less_than_128: vmov.i8 q0, #0 vmov s3, arg1_low32 // get the initial crc value - vld1.64 {q7}, [arg2, :128]! + vld1.64 {q7}, [arg2]! CPU_LE( vrev64.8 q7, q7 ) vswp d14, d15 veor.8 q7, q7, q0
arch/arm/crypto/crct10dif-ce-glue.c +6 -17
@@ -35,26 +35,15 @@ static int crct10dif_update(struct shash_desc *desc, const u8 *data, unsigned int length) {u16 *crc =shash_desc_ctx (desc); -unsigned int l; -if (!may_use_simd ()) { - *crc =crc_t10dif_generic (*crc, data, length); +if (length >=CRC_T10DIF_PMULL_CHUNK_SIZE &&may_use_simd ()) { +kernel_neon_begin (); + *crc =crc_t10dif_pmull (*crc, data, length); +kernel_neon_end (); }else { -if (unlikely ((u32 )data %CRC_T10DIF_PMULL_CHUNK_SIZE )) { - l =min_t (u32, length,CRC_T10DIF_PMULL_CHUNK_SIZE - - ((u32 )data %CRC_T10DIF_PMULL_CHUNK_SIZE )); - - *crc =crc_t10dif_generic (*crc, data, l); - - length -= l; - data += l; - } -if (length >0 ) { -kernel_neon_begin (); - *crc =crc_t10dif_pmull (*crc, data, length); -kernel_neon_end (); - } + *crc =crc_t10dif_generic (*crc, data, length); } +return 0 ; }
arch/arm/include/asm/irq.h +0 -1
@@ -25,7 +25,6 @@#ifndef __ASSEMBLY__struct irqaction ;struct pt_regs ; -extern void migrate_irqs (void );extern void asm_do_IRQ (unsigned int ,struct pt_regs *);void handle_IRQ (unsigned int ,struct pt_regs *);
arch/arm/include/asm/kvm_host.h +10 -0
@@ -48,6 +48,7 @@#define KVM_REQ_SLEEP \ KVM_ARCH_REQ_FLAGS(0, KVM_REQUEST_WAIT | KVM_REQUEST_NO_WAKEUP)#define KVM_REQ_IRQ_PENDING KVM_ARCH_REQ(1) +#define KVM_REQ_VCPU_RESET KVM_ARCH_REQ(2)DECLARE_STATIC_KEY_FALSE (userspace_irqchip_in_use);
@@ -147,6 +148,13 @@ struct kvm_cpu_context {typedef struct kvm_cpu_context kvm_cpu_context_t ; +struct vcpu_reset_state { +unsigned long pc; +unsigned long r0; +bool be; +bool reset; +}; +struct kvm_vcpu_arch {struct kvm_cpu_context ctxt;
@@ -186,6 +194,8 @@ struct kvm_vcpu_arch {/* Cache some mmu pages needed inside spinlock regions */ struct kvm_mmu_memory_cache mmu_page_cache; +struct vcpu_reset_state reset_state; +/* Detect first run of a vcpu */ bool has_run_once; };
arch/arm/kernel/irq.c +0 -62
71 lines not on this page · raw message
arch/arm/kernel/smp.c +1 -1
@@ -254,7 +254,7 @@ int __cpu_disable(void)/* * OK - migrate IRQs away from this CPU */ -migrate_irqs (); +irq_migrate_all_off_this_cpu ();/* * Flush user cache and TLB mappings, and then remove this CPU
arch/arm/kvm/coproc.c +2 -2
@@ -1450,6 +1450,6 @@ void kvm_reset_coprocs(struct kvm_vcpu *vcpu)reset_coproc_regs (vcpu, table, num);for (num =1 ; num <NR_CP15_REGS ; num++) -if (vcpu_cp15 (vcpu, num) ==0x42424242 ) -panic ("Didn't reset vcpu_cp15(vcpu, %zi)" , num); +WARN (vcpu_cp15 (vcpu, num) ==0x42424242 , +"Didn't reset vcpu_cp15(vcpu, %zi)" , num); }
arch/arm/kvm/reset.c +24 -0
@@ -26,6 +26,7 @@#include <asm/cputype.h> #include <asm/kvm_arm.h> #include <asm/kvm_coproc.h> +#include <asm/kvm_emulate.h> #include <kvm/arm_arch_timer.h>
@@ -69,6 +70,29 @@ int kvm_reset_vcpu(struct kvm_vcpu *vcpu)/* Reset CP15 registers */ kvm_reset_coprocs (vcpu); +/* +* Additional reset state handling that PSCI may have imposed on us. +* Must be done after all the sys_reg reset. +*/ +if (READ_ONCE (vcpu->arch.reset_state.reset)) { +unsigned long target_pc = vcpu->arch.reset_state.pc; + +/* Gracefully handle Thumb2 entry point */ +if (target_pc &1 ) { + target_pc &= ~1UL ; +vcpu_set_thumb (vcpu); + } + +/* Propagate caller endianness */ +if (vcpu->arch.reset_state.be) +kvm_vcpu_set_be (vcpu); + + *vcpu_pc (vcpu) = target_pc; +vcpu_set_reg (vcpu,0 , vcpu->arch.reset_state.r0); + + vcpu->arch.reset_state.reset = false; + } +/* Reset arch_timer context */ return kvm_timer_vcpu_reset (vcpu); }
arch/arm/mach-omap2/cpuidle44xx.c +4 -12
@@ -152,6 +152,10 @@ static int omap_enter_idle_coupled(struct cpuidle_device *dev, mpuss_can_lose_context = (cx->mpu_state ==PWRDM_POWER_RET ) && (cx->mpu_logic_state ==PWRDM_POWER_OFF ); +/* Enter broadcast mode for periodic timers */ +tick_broadcast_enable (); + +/* Enter broadcast mode for one-shot timers */ tick_broadcast_enter ();/*
@@ -218,15 +222,6 @@ static int omap_enter_idle_coupled(struct cpuidle_device *dev,return index; } -/* -* For each cpu, setup the broadcast timer because local timers -* stops for the states above C1. -*/ -static void omap_setup_broadcast_timer (void *arg) -{ -tick_broadcast_enable (); -} -static struct cpuidle_driver omap4_idle_driver = { .name ="omap4_idle" , .owner =THIS_MODULE ,
@@ -319,8 +314,5 @@ int __init omap4_idle_init(void)if (!cpu_clkdm[0 ] || !cpu_clkdm[1 ])return -ENODEV ; -/* Configure the broadcast timer on each cpu */ -on_each_cpu (omap_setup_broadcast_timer,NULL ,1 ); -return cpuidle_register (idle_driver, cpu_online_mask); }
arch/arm/mach-omap2/display.c +6 -1
@@ -83,6 +83,7 @@ static int omap4_dsi_mux_pads(int dsi_id, unsigned lanes)u32 enable_mask, enable_shift;u32 pipd_mask, pipd_shift;u32 reg; +int ret;if (dsi_id ==0 ) { enable_mask =OMAP4_DSI1_LANEENABLE_MASK ;
@@ -98,7 +99,11 @@ static int omap4_dsi_mux_pads(int dsi_id, unsigned lanes)return -ENODEV ; } -regmap_read (omap4_dsi_mux_syscon,OMAP4_DSIPHY_SYSCON_OFFSET , ®); + ret =regmap_read (omap4_dsi_mux_syscon, +OMAP4_DSIPHY_SYSCON_OFFSET , + ®); +if (ret) +return ret; reg &= ~enable_mask; reg &= ~pipd_mask;
arch/arm/mach-s3c24xx/mach-osiris-dvs.c +4 -4
@@ -65,16 +65,16 @@ static int osiris_dvs_notify(struct notifier_block *nb,switch (val) {case CPUFREQ_PRECHANGE : -if (old_dvs & !new_dvs || - cur_dvs & !new_dvs) { +if ((old_dvs && !new_dvs) || + (cur_dvs && !new_dvs)) {pr_debug ("%s: exiting dvs\n" , __func__); cur_dvs = false;gpio_set_value (OSIRIS_GPIO_DVS ,1 ); }break ;case CPUFREQ_POSTCHANGE : -if (!old_dvs & new_dvs || - !cur_dvs & new_dvs) { +if ((!old_dvs && new_dvs) || + (!cur_dvs && new_dvs)) {pr_debug ("entering dvs\n" ); cur_dvs = true;gpio_set_value (OSIRIS_GPIO_DVS ,0 );
arch/arm/mm/dma-mapping.c +2 -0
@@ -2400,4 +2400,6 @@ void arch_teardown_dma_ops(struct device *dev)return ;arm_teardown_iommu_dma_ops (dev); +/* Let arch_setup_dma_ops() start again from scratch upon re-probe */ +set_dma_ops (dev,NULL ); }
arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts +1 -1
@@ -22,7 +22,7 @@ backlight = <&backlight>; power-supply = <&pp3300_disp>; - ports { + port { panel_in_edp: endpoint { remote-endpoint = <&edp_out_panel>; };
arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts +1 -1
@@ -43,7 +43,7 @@ backlight = <&backlight>; power-supply = <&pp3300_disp>; - ports { + port { panel_in_edp: endpoint { remote-endpoint = <&edp_out_panel>; };
arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dts +1 -1
@@ -50,7 +50,7 @@ pinctrl-0 = <&lcd_panel_reset>; power-supply = <&vcc3v3_s0>; - ports { + port { panel_in_edp: endpoint { remote-endpoint = <&edp_out_panel>; };
arch/arm64/crypto/aes-ce-ccm-core.S +3 -2
@@ -74,12 +74,13 @@ ENTRY(ce_aes_ccm_auth_data) beq 10f ext v0.16b, v0.16b, v0.16b, #1 /* rotate out the mac bytes */ b 7b -8: mov w7, w8 +8: cbz w8, 91f + mov w7, w8 add w8, w8, #16 9: ext v1.16b, v1.16b, v1.16b, #1 adds w7, w7, #1 bne 9b - eor v0.16b, v0.16b, v1.16b +91: eor v0.16b, v0.16b, v1.16b st1 {v0.16b}, [x0] 10: str w8, [x3] ret
arch/arm64/crypto/aes-ce-ccm-glue.c +1 -3
@@ -125,7 +125,7 @@ static void ccm_update_mac(struct crypto_aes_ctx *key, u8 mac[], u8 const in[], abytes -= added; } -while (abytes >AES_BLOCK_SIZE ) { +while (abytes >=AES_BLOCK_SIZE ) {__aes_arm64_encrypt (key->key_enc, mac, mac,num_rounds (key));crypto_xor (mac, in,AES_BLOCK_SIZE );
@@ -139,8 +139,6 @@ static void ccm_update_mac(struct crypto_aes_ctx *key, u8 mac[], u8 const in[], num_rounds(key));crypto_xor (mac, in, abytes); *macp = abytes; - }else { - *macp =0 ; } } }
arch/arm64/crypto/aes-neonbs-core.S +6 -2
@@ -971,18 +971,22 @@ CPU_LE( rev x8, x8 ) 8: next_ctr v0 st1 {v0.16b}, [x24] - cbz x23, 0f + cbz x23, .Lctr_done cond_yield_neon 98b b 99b -0: frame_pop +.Lctr_done: + frame_pop ret /* * If we are handling the tail of the input (x6 != NULL), return the * final keystream block back to the caller. */ +0: cbz x25, 8b + st1 {v0.16b}, [x25] + b 8b 1: cbz x25, 8b st1 {v1.16b}, [x25] b 8b
arch/arm64/crypto/crct10dif-ce-glue.c +6 -19
@@ -36,26 +36,13 @@ static int crct10dif_update(struct shash_desc *desc, const u8 *data, unsigned int length) {u16 *crc =shash_desc_ctx (desc); -unsigned int l; -if (unlikely ((u64 )data %CRC_T10DIF_PMULL_CHUNK_SIZE )) { - l =min_t (u32, length,CRC_T10DIF_PMULL_CHUNK_SIZE - - ((u64 )data %CRC_T10DIF_PMULL_CHUNK_SIZE )); - - *crc =crc_t10dif_generic (*crc, data, l); - - length -= l; - data += l; - } - -if (length >0 ) { -if (may_use_simd ()) { -kernel_neon_begin (); - *crc =crc_t10dif_pmull (*crc, data, length); -kernel_neon_end (); - }else { - *crc =crc_t10dif_generic (*crc, data, length); - } +if (length >=CRC_T10DIF_PMULL_CHUNK_SIZE &&may_use_simd ()) { +kernel_neon_begin (); + *crc =crc_t10dif_pmull (*crc, data, length); +kernel_neon_end (); + }else { + *crc =crc_t10dif_generic (*crc, data, length); }return 0 ;
arch/arm64/include/asm/hardirq.h +31 -0
@@ -17,8 +17,12 @@#define __ASM_HARDIRQ_H#include <linux/cache.h> +#include <linux/percpu.h> #include <linux/threads.h> +#include <asm/barrier.h> #include <asm/irq.h> +#include <asm/kvm_arm.h> +#include <asm/sysreg.h> #define NR_IPI 7
@@ -37,6 +41,33 @@ u64 smp_irq_stat_cpu(unsigned int cpu);#define __ARCH_IRQ_EXIT_IRQS_DISABLED 1 +struct nmi_ctx { +u64 hcr; +}; + +DECLARE_PER_CPU(struct nmi_ctx, nmi_contexts); + +#define arch_nmi_enter () \ + do { \ + if (is_kernel_in_hyp_mode()) { \ + struct nmi_ctx *nmi_ctx = this_cpu_ptr(&nmi_contexts); \ + nmi_ctx->hcr = read_sysreg(hcr_el2); \ + if (!(nmi_ctx->hcr & HCR_TGE)) { \ + write_sysreg(nmi_ctx->hcr | HCR_TGE, hcr_el2); \ + isb(); \ + } \ + } \ + } while (0) + +#define arch_nmi_exit () \ + do { \ + if (is_kernel_in_hyp_mode()) { \ + struct nmi_ctx *nmi_ctx = this_cpu_ptr(&nmi_contexts); \ + if (!(nmi_ctx->hcr & HCR_TGE)) \ + write_sysreg(nmi_ctx->hcr, hcr_el2); \ + } \ + } while (0) +static inline void ack_bad_irq (unsigned int irq) {extern unsigned long irq_err_count;
arch/arm64/include/asm/kvm_host.h +11 -0
@@ -48,6 +48,7 @@#define KVM_REQ_SLEEP \ KVM_ARCH_REQ_FLAGS(0, KVM_REQUEST_WAIT | KVM_REQUEST_NO_WAKEUP)#define KVM_REQ_IRQ_PENDING KVM_ARCH_REQ(1) +#define KVM_REQ_VCPU_RESET KVM_ARCH_REQ(2)DECLARE_STATIC_KEY_FALSE (userspace_irqchip_in_use);
@@ -206,6 +207,13 @@ struct kvm_cpu_context {typedef struct kvm_cpu_context kvm_cpu_context_t ; +struct vcpu_reset_state { +unsigned long pc; +unsigned long r0; +bool be; +bool reset; +}; +struct kvm_vcpu_arch {struct kvm_cpu_context ctxt;
@@ -295,6 +303,9 @@ struct kvm_vcpu_arch {/* Virtual SError ESR to restore when HCR_EL2.VSE is set */ u64 vsesr_el2; +/* Additional reset state */ +struct vcpu_reset_state reset_state; +/* True when deferrable sysregs are loaded on the physical CPU, * see kvm_vcpu_load_sysregs and kvm_vcpu_put_sysregs. */ bool sysregs_loaded_on_cpu;
arch/arm64/kernel/head.S +1 -2
@@ -522,8 +522,7 @@ set_hcr: /* GICv3 system register access */ mrs x0, id_aa64pfr0_el1 ubfx x0, x0, #24, #4 - cmp x0, #1 - b.ne 3f + cbz x0, 3f mrs_s x0, SYS_ICC_SRE_EL2 orr x0, x0, #ICC_SRE_EL2_SRE // Set ICC_SRE_EL2.SRE==1
arch/arm64/kernel/irq.c +3 -0
@@ -33,6 +33,9 @@unsigned long irq_err_count; +/* Only access this in an NMI enter/exit */ +DEFINE_PER_CPU(struct nmi_ctx, nmi_contexts); + DEFINE_PER_CPU(unsigned long *, irq_stack_ptr);int arch_show_interrupts (struct seq_file *p,int prec)
arch/arm64/kernel/kgdb.c +10 -4
@@ -244,27 +244,33 @@ int kgdb_arch_handle_exception(int exception_vector, int signo,static int kgdb_brk_fn (struct pt_regs *regs,unsigned int esr) { +if (user_mode (regs)) +return DBG_HOOK_ERROR ; +kgdb_handle_exception (1 ,SIGTRAP ,0 , regs); -return 0 ; +return DBG_HOOK_HANDLED ; }NOKPROBE_SYMBOL (kgdb_brk_fn) static int kgdb_compiled_brk_fn(struct pt_regs *regs, unsigned int esr) { +if (user_mode (regs)) +return DBG_HOOK_ERROR ; + compiled_break =1 ;kgdb_handle_exception (1 ,SIGTRAP ,0 , regs); -return 0 ; +return DBG_HOOK_HANDLED ; }NOKPROBE_SYMBOL (kgdb_compiled_brk_fn);static int kgdb_step_brk_fn (struct pt_regs *regs,unsigned int esr) { -if (!kgdb_single_step) +if (user_mode (regs) || !kgdb_single_step)return DBG_HOOK_ERROR ;kgdb_handle_exception (1 ,SIGTRAP ,0 , regs); -return 0 ; +return DBG_HOOK_HANDLED ; }NOKPROBE_SYMBOL (kgdb_step_brk_fn);
arch/arm64/kernel/probes/kprobes.c +6 -0
@@ -450,6 +450,9 @@ kprobe_single_step_handler(struct pt_regs *regs, unsigned int esr)struct kprobe_ctlblk *kcb =get_kprobe_ctlblk ();int retval; +if (user_mode (regs)) +return DBG_HOOK_ERROR ; +/* return error if this is not our step */ retval =kprobe_ss_hit (kcb,instruction_pointer (regs));
@@ -466,6 +469,9 @@ kprobe_single_step_handler(struct pt_regs *regs, unsigned int esr)int __kprobes kprobe_breakpoint_handler (struct pt_regs *regs,unsigned int esr) { +if (user_mode (regs)) +return DBG_HOOK_ERROR ; +kprobe_handler (regs);return DBG_HOOK_HANDLED ; }
arch/arm64/kvm/hyp/switch.c +5 -0
@@ -23,6 +23,7 @@#include <kvm/arm_psci.h> #include <asm/cpufeature.h> +#include <asm/kprobes.h> #include <asm/kvm_asm.h> #include <asm/kvm_emulate.h> #include <asm/kvm_host.h>
@@ -107,6 +108,7 @@ static void activate_traps_vhe(struct kvm_vcpu *vcpu)write_sysreg (kvm_get_hyp_vector (), vbar_el1); } +NOKPROBE_SYMBOL (activate_traps_vhe); static void __hyp_text __activate_traps_nvhe(struct kvm_vcpu *vcpu) {
@@ -146,6 +148,7 @@ static void deactivate_traps_vhe(void)write_sysreg (CPACR_EL1_DEFAULT , cpacr_el1);write_sysreg (vectors, vbar_el1); } +NOKPROBE_SYMBOL (deactivate_traps_vhe); static void __hyp_text __deactivate_traps_nvhe(void) {
@@ -529,6 +532,7 @@ int kvm_vcpu_run_vhe(struct kvm_vcpu *vcpu)return exit_code; } +NOKPROBE_SYMBOL (kvm_vcpu_run_vhe);/* Switch to the guest for legacy non-VHE systems */ int __hyp_text __kvm_vcpu_run_nvhe(struct kvm_vcpu *vcpu)
@@ -636,6 +640,7 @@ static void __hyp_call_panic_vhe(u64 spsr, u64 elr, u64 par,read_sysreg_el2 (esr),read_sysreg_el2 (far), read_sysreg(hpfar_el2), par, vcpu); } +NOKPROBE_SYMBOL (__hyp_call_panic_vhe); void __hyp_text __noreturn hyp_panic(struct kvm_cpu_context *host_ctxt) {
arch/arm64/kvm/hyp/sysreg-sr.c +5 -0
@@ -18,6 +18,7 @@#include <linux/compiler.h> #include <linux/kvm_host.h> +#include <asm/kprobes.h> #include <asm/kvm_asm.h> #include <asm/kvm_emulate.h> #include <asm/kvm_hyp.h>
@@ -98,12 +99,14 @@ void sysreg_save_host_state_vhe(struct kvm_cpu_context *ctxt) {__sysreg_save_common_state (ctxt); } +NOKPROBE_SYMBOL (sysreg_save_host_state_vhe);void sysreg_save_guest_state_vhe (struct kvm_cpu_context *ctxt) {__sysreg_save_common_state (ctxt);__sysreg_save_el2_return_state (ctxt); } +NOKPROBE_SYMBOL (sysreg_save_guest_state_vhe); static void __hyp_text __sysreg_restore_common_state(struct kvm_cpu_context *ctxt) {
@@ -171,12 +174,14 @@ void sysreg_restore_host_state_vhe(struct kvm_cpu_context *ctxt) {__sysreg_restore_common_state (ctxt); } +NOKPROBE_SYMBOL (sysreg_restore_host_state_vhe);void sysreg_restore_guest_state_vhe (struct kvm_cpu_context *ctxt) {__sysreg_restore_common_state (ctxt);__sysreg_restore_el2_return_state (ctxt); } +NOKPROBE_SYMBOL (sysreg_restore_guest_state_vhe); void __hyp_text __sysreg32_save_state(struct kvm_vcpu *vcpu) {
arch/arm64/kvm/reset.c +48 -2
81 lines not on this page · raw message
arch/arm64/kvm/sys_regs.c +6 -4
@@ -1456,7 +1456,7 @@ static const struct sys_reg_desc sys_reg_descs[] = { { SYS_DESC(SYS_DACR32_EL2), NULL, reset_unknown, DACR32_EL2 }, { SYS_DESC(SYS_IFSR32_EL2), NULL, reset_unknown, IFSR32_EL2 }, - { SYS_DESC(SYS_FPEXC32_EL2), NULL, reset_val, FPEXC32_EL2, 0x70 }, + { SYS_DESC(SYS_FPEXC32_EL2), NULL, reset_val, FPEXC32_EL2, 0x700 }, }; static bool trap_dbgidr(struct kvm_vcpu *vcpu,
@@ -2586,7 +2586,9 @@ void kvm_reset_sys_regs(struct kvm_vcpu *vcpu) table =get_target_table (vcpu->arch.target, true, &num);reset_sys_reg_descs (vcpu, table, num); -for (num =1 ; num <NR_SYS_REGS ; num++) -if (__vcpu_sys_reg (vcpu, num) ==0x4242424242424242 ) -panic ("Didn't reset __vcpu_sys_reg(%zi)" , num); +for (num =1 ; num <NR_SYS_REGS ; num++) { +if (WARN (__vcpu_sys_reg (vcpu, num) ==0x4242424242424242 , +"Didn't reset __vcpu_sys_reg(%zi)\n" , num)) +break ; + } }
arch/m68k/Makefile +4 -1
@@ -58,7 +58,10 @@ cpuflags-$(CONFIG_M5206e) := $(call cc-option,-mcpu=5206e,-m5200) cpuflags-$(CONFIG_M5206) := $(call cc-option,-mcpu=5206,-m5200) KBUILD_AFLAGS += $(cpuflags-y) -KBUILD_CFLAGS += $(cpuflags-y) -pipe +KBUILD_CFLAGS += $(cpuflags-y) + +KBUILD_CFLAGS += -pipe -ffreestanding + ifdef CONFIG_MMU # without -fno-strength-reduce the 53c7xx.c driver fails ;-( KBUILD_CFLAGS += -fno-strength-reduce -ffixed-a2
arch/mips/include/asm/kvm_host.h +1 -1
@@ -1131,7 +1131,7 @@ static inline void kvm_arch_hardware_unsetup(void) {}static inline void kvm_arch_sync_events (struct kvm *kvm) {}static inline void kvm_arch_free_memslot (struct kvm *kvm,struct kvm_memory_slot *free,struct kvm_memory_slot *dont) {} -static inline void kvm_arch_memslots_updated (struct kvm *kvm,struct kvm_memslots *slots) {} +static inline void kvm_arch_memslots_updated (struct kvm *kvm,u64 gen) {}static inline void kvm_arch_sched_in (struct kvm_vcpu *vcpu,int cpu) {}static inline void kvm_arch_vcpu_blocking (struct kvm_vcpu *vcpu) {}static inline void kvm_arch_vcpu_unblocking (struct kvm_vcpu *vcpu) {}
arch/powerpc/include/asm/book3s/64/hugetlb.h +8 -0
@@ -35,6 +35,14 @@ static inline int hstate_get_psize(struct hstate *hstate)#ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE static inline bool gigantic_page_supported (void ) { +/* +* We used gigantic page reservation with hypervisor assist in some case. +* We cannot use runtime allocation of gigantic pages in those platforms +* This is hash translation mode LPARs. +*/ +if (firmware_has_feature (FW_FEATURE_LPAR ) && !radix_enabled ()) +return false; +return true; }#endif
arch/powerpc/include/asm/kvm_host.h +1 -1
@@ -822,7 +822,7 @@ struct kvm_vcpu_arch {static inline void kvm_arch_hardware_disable (void ) {}static inline void kvm_arch_hardware_unsetup (void ) {}static inline void kvm_arch_sync_events (struct kvm *kvm) {} -static inline void kvm_arch_memslots_updated (struct kvm *kvm,struct kvm_memslots *slots) {} +static inline void kvm_arch_memslots_updated (struct kvm *kvm,u64 gen) {}static inline void kvm_arch_flush_shadow_all (struct kvm *kvm) {}static inline void kvm_arch_sched_in (struct kvm_vcpu *vcpu,int cpu) {}static inline void kvm_arch_exit (void ) {}
arch/powerpc/include/asm/powernv.h +2 -0
@@ -23,6 +23,8 @@ extern int pnv_npu2_handle_fault(struct npu_context *context, uintptr_t *ea, unsigned long *flags, unsigned long *status, int count); +void pnv_program_cpu_hotplug_lpcr (unsigned int cpu,u64 lpcr_val); +void pnv_tm_init (void );#else static inline void powernv_set_nmmu_ptcr (unsigned long ptcr) { }
arch/powerpc/kernel/entry_32.S +9 -0
@@ -745,6 +745,9 @@ fast_exception_return: mtcr r10 lwz r10,_LINK(r11) mtlr r10 + /* Clear the exception_marker on the stack to avoid confusing stacktrace */ + li r10, 0 + stw r10, 8(r11) REST_GPR(10, r11) #if defined(CONFIG_PPC_8xx) && defined(CONFIG_PERF_EVENTS) mtspr SPRN_NRI, r0
@@ -982,6 +985,9 @@ END_FTR_SECTION_IFSET(CPU_FTR_NEED_PAIRED_STWCX) mtcrf 0xFF,r10 mtlr r11 + /* Clear the exception_marker on the stack to avoid confusing stacktrace */ + li r10, 0 + stw r10, 8(r1) /* * Once we put values in SRR0 and SRR1, we are in a state * where exceptions are not recoverable, since taking an
@@ -1021,6 +1027,9 @@ exc_exit_restart_end: mtlr r11 lwz r10,_CCR(r1) mtcrf 0xff,r10 + /* Clear the exception_marker on the stack to avoid confusing stacktrace */ + li r10, 0 + stw r10, 8(r1) REST_2GPRS(9, r1) .globl exc_exit_restart exc_exit_restart:
arch/powerpc/kernel/process.c +1 -1
@@ -180,7 +180,7 @@ static void __giveup_fpu(struct task_struct *tsk)save_fpu (tsk); msr = tsk->thread.regs->msr; - msr &= ~MSR_FP ; + msr &= ~(MSR_FP |MSR_FE0 |MSR_FE1 );#ifdef CONFIG_VSX if (cpu_has_feature (CPU_FTR_VSX )) msr &= ~MSR_VSX ;
arch/powerpc/kernel/ptrace.c +8 -2
@@ -561,6 +561,7 @@ static int vr_get(struct task_struct *target, const struct user_regset *regset,/* * Copy out only the low-order word of vrsave. */ +int start, end;union {elf_vrreg_t reg;u32 word;
@@ -569,8 +570,10 @@ static int vr_get(struct task_struct *target, const struct user_regset *regset, vrsave.word = target->thread.vrsave; + start =33 *sizeof (vector128); + end = start +sizeof (vrsave); ret =user_regset_copyout (&pos, &count, &kbuf, &ubuf, &vrsave, -33 *sizeof (vector128),-1 ); + start, end); }return ret;
@@ -608,6 +611,7 @@ static int vr_set(struct task_struct *target, const struct user_regset *regset,/* * We use only the first word of vrsave. */ +int start, end;union {elf_vrreg_t reg;u32 word;
@@ -616,8 +620,10 @@ static int vr_set(struct task_struct *target, const struct user_regset *regset, vrsave.word = target->thread.vrsave; + start =33 *sizeof (vector128); + end = start +sizeof (vrsave); ret =user_regset_copyin (&pos, &count, &kbuf, &ubuf, &vrsave, -33 *sizeof (vector128),-1 ); + start, end);if (!ret) target->thread.vrsave = vrsave.word; }
arch/powerpc/kernel/traps.c +6 -6
@@ -767,15 +767,15 @@ void machine_check_exception(struct pt_regs *regs)if (check_io_access (regs)) goto bail; -/* Must die if the interrupt is not recoverable */ -if (!(regs->msr &MSR_RI )) -nmi_panic (regs,"Unrecoverable Machine check" ); -if (!nested)nmi_exit ();die ("Machine check" , regs,SIGBUS ); +/* Must die if the interrupt is not recoverable */ +if (!(regs->msr &MSR_RI )) +nmi_panic (regs,"Unrecoverable Machine check" ); +return ; bail:
@@ -1545,8 +1545,8 @@ void alignment_exception(struct pt_regs *regs)void StackOverflow (struct pt_regs *regs) { -printk (KERN_CRIT "Kernel stack overflow in process %p, r1=%lx\n" , - current, regs->gpr[1 ]); +pr_crit ("Kernel stack overflow in process %s[%d], r1=%lx\n" , + current->comm,task_pid_nr (current), regs->gpr[1 ]);debugger (regs);show_regs (regs);panic ("kernel stack overflow" );
arch/powerpc/platforms/83xx/suspend-asm.S +27 -7
@@ -26,13 +26,13 @@ #define SS_MSR 0x74 #define SS_SDR1 0x78 #define SS_LR 0x7c -#define SS_SPRG 0x80 /* 4 SPRGs */ -#define SS_DBAT 0x90 /* 8 DBATs */ -#define SS_IBAT 0xd0 /* 8 IBATs */ -#define SS_TB 0x110 -#define SS_CR 0x118 -#define SS_GPREG 0x11c /* r12-r31 */ -#define STATE_SAVE_SIZE 0x16c +#define SS_SPRG 0x80 /* 8 SPRGs */ +#define SS_DBAT 0xa0 /* 8 DBATs */ +#define SS_IBAT 0xe0 /* 8 IBATs */ +#define SS_TB 0x120 +#define SS_CR 0x128 +#define SS_GPREG 0x12c /* r12-r31 */ +#define STATE_SAVE_SIZE 0x17c .section .data .align 5
@@ -103,6 +103,16 @@ _GLOBAL(mpc83xx_enter_deep_sleep) stw r7, SS_SPRG+12(r3) stw r8, SS_SDR1(r3) + mfspr r4, SPRN_SPRG4 + mfspr r5, SPRN_SPRG5 + mfspr r6, SPRN_SPRG6 + mfspr r7, SPRN_SPRG7 + + stw r4, SS_SPRG+16(r3) + stw r5, SS_SPRG+20(r3) + stw r6, SS_SPRG+24(r3) + stw r7, SS_SPRG+28(r3) + mfspr r4, SPRN_DBAT0U mfspr r5, SPRN_DBAT0L mfspr r6, SPRN_DBAT1U
@@ -493,6 +503,16 @@ mpc83xx_deep_resume: mtspr SPRN_IBAT7U, r6 mtspr SPRN_IBAT7L, r7 + lwz r4, SS_SPRG+16(r3) + lwz r5, SS_SPRG+20(r3) + lwz r6, SS_SPRG+24(r3) + lwz r7, SS_SPRG+28(r3) + + mtspr SPRN_SPRG4, r4 + mtspr SPRN_SPRG5, r5 + mtspr SPRN_SPRG6, r6 + mtspr SPRN_SPRG7, r7 + lwz r4, SS_SPRG+0(r3) lwz r5, SS_SPRG+4(r3) lwz r6, SS_SPRG+8(r3)
arch/powerpc/platforms/embedded6xx/wii.c +4 -0
@@ -83,6 +83,10 @@ unsigned long __init wii_mmu_mapin_mem2(unsigned long top)/* MEM2 64MB@0x10000000 */ delta = wii_hole_start + wii_hole_size; size = top - delta; + +if (__map_without_bats) +return delta; +for (bl =128 <<10 ; bl < max_size; bl <<=1 ) {if (bl *2 > size)break ;
arch/powerpc/platforms/powernv/idle.c +2 -25
@@ -458,7 +458,8 @@ EXPORT_SYMBOL_GPL(pnv_power9_force_smt4_release);#endif /* CONFIG_KVM_BOOK3S_HV_POSSIBLE */ #ifdef CONFIG_HOTPLUG_CPU -static void pnv_program_cpu_hotplug_lpcr (unsigned int cpu,u64 lpcr_val) + +void pnv_program_cpu_hotplug_lpcr (unsigned int cpu,u64 lpcr_val) {u64 pir =get_hard_smp_processor_id (cpu);
@@ -481,20 +482,6 @@ unsigned long pnv_cpu_offline(unsigned int cpu) {unsigned long srr1;u32 idle_states =pnv_get_supported_cpuidle_states (); -u64 lpcr_val; - -/* -* We don't want to take decrementer interrupts while we are -* offline, so clear LPCR:PECE1. We keep PECE2 (and -* LPCR_PECE_HVEE on P9) enabled as to let IPIs in. -* -* If the CPU gets woken up by a special wakeup, ensure that -* the SLW engine sets LPCR with decrementer bit cleared, else -* the CPU will come back to the kernel due to a spurious -* wakeup. -*/ - lpcr_val =mfspr (SPRN_LPCR ) & ~(u64 )LPCR_PECE1 ; -pnv_program_cpu_hotplug_lpcr (cpu, lpcr_val);__ppc64_runlatch_off ();
@@ -526,16 +513,6 @@ unsigned long pnv_cpu_offline(unsigned int cpu)__ppc64_runlatch_on (); -/* -* Re-enable decrementer interrupts in LPCR. -* -* Further, we want stop states to be woken up by decrementer -* for non-hotplug cases. So program the LPCR via stop api as -* well. -*/ - lpcr_val =mfspr (SPRN_LPCR ) | (u64 )LPCR_PECE1 ; -pnv_program_cpu_hotplug_lpcr (cpu, lpcr_val); - return srr1; }#endif
arch/powerpc/platforms/powernv/opal-msglog.c +1 -1
@@ -98,7 +98,7 @@ static ssize_t opal_msglog_read(struct file *file, struct kobject *kobj, }static struct bin_attribute opal_msglog_attr = { - .attr = {.name ="msglog" , .mode =0444 }, + .attr = {.name ="msglog" , .mode =0400 }, .read = opal_msglog_read };
arch/powerpc/platforms/powernv/smp.c +25 -0
@@ -39,6 +39,7 @@#include <asm/cpuidle.h> #include <asm/kexec.h> #include <asm/reg.h> +#include <asm/powernv.h> #include "powernv.h"
@@ -153,6 +154,7 @@ static void pnv_smp_cpu_kill_self(void) {unsigned int cpu;unsigned long srr1, wmask; +u64 lpcr_val;/* Standard hot unplug procedure */ /*
@@ -174,6 +176,19 @@ static void pnv_smp_cpu_kill_self(void)if (cpu_has_feature (CPU_FTR_ARCH_207S )) wmask =SRR1_WAKEMASK_P8 ; +/* +* We don't want to take decrementer interrupts while we are +* offline, so clear LPCR:PECE1. We keep PECE2 (and +* LPCR_PECE_HVEE on P9) enabled so as to let IPIs in. +* +* If the CPU gets woken up by a special wakeup, ensure that +* the SLW engine sets LPCR with decrementer bit cleared, else +* the CPU will come back to the kernel due to a spurious +* wakeup. +*/ + lpcr_val =mfspr (SPRN_LPCR ) & ~(u64 )LPCR_PECE1 ; +pnv_program_cpu_hotplug_lpcr (cpu, lpcr_val); +while (!generic_check_cpu_restart (cpu)) {/* * Clear IPI flag, since we don't handle IPIs while
@@ -246,6 +261,16 @@ static void pnv_smp_cpu_kill_self(void) } +/* +* Re-enable decrementer interrupts in LPCR. +* +* Further, we want stop states to be woken up by decrementer +* for non-hotplug cases. So program the LPCR via stop api as +* well. +*/ + lpcr_val =mfspr (SPRN_LPCR ) | (u64 )LPCR_PECE1 ; +pnv_program_cpu_hotplug_lpcr (cpu, lpcr_val); +DBG ("CPU%d coming online...\n" , cpu); }
arch/s390/include/asm/kvm_host.h +1 -1
@@ -865,7 +865,7 @@ static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {}static inline void kvm_arch_sched_in (struct kvm_vcpu *vcpu,int cpu) {}static inline void kvm_arch_free_memslot (struct kvm *kvm,struct kvm_memory_slot *free,struct kvm_memory_slot *dont) {} -static inline void kvm_arch_memslots_updated (struct kvm *kvm,struct kvm_memslots *slots) {} +static inline void kvm_arch_memslots_updated (struct kvm *kvm,u64 gen) {}static inline void kvm_arch_flush_shadow_all (struct kvm *kvm) {}static inline void kvm_arch_flush_shadow_memslot (struct kvm *kvm,struct kvm_memory_slot *slot) {}
arch/s390/kernel/setup.c +22 -9
@@ -303,7 +303,7 @@ early_param("vmalloc", parse_vmalloc); void *restart_stack __section(.data); -static void __init setup_lowcore (void ) +static void __init setup_lowcore_dat_off (void ) {struct lowcore *lc;
@@ -314,19 +314,16 @@ static void __init setup_lowcore(void) lc =memblock_virt_alloc_low (sizeof (*lc),sizeof (*lc)); lc->restart_psw.mask =PSW_KERNEL_BITS ; lc->restart_psw.addr = (unsigned long ) restart_int_handler; - lc->external_new_psw.mask =PSW_KERNEL_BITS | -PSW_MASK_DAT |PSW_MASK_MCHECK ; + lc->external_new_psw.mask =PSW_KERNEL_BITS |PSW_MASK_MCHECK ; lc->external_new_psw.addr = (unsigned long ) ext_int_handler; lc->svc_new_psw.mask =PSW_KERNEL_BITS | -PSW_MASK_DAT |PSW_MASK_IO |PSW_MASK_EXT |PSW_MASK_MCHECK ; +PSW_MASK_IO |PSW_MASK_EXT |PSW_MASK_MCHECK ; lc->svc_new_psw.addr = (unsigned long ) system_call; - lc->program_new_psw.mask =PSW_KERNEL_BITS | -PSW_MASK_DAT |PSW_MASK_MCHECK ; + lc->program_new_psw.mask =PSW_KERNEL_BITS |PSW_MASK_MCHECK ; lc->program_new_psw.addr = (unsigned long ) pgm_check_handler; lc->mcck_new_psw.mask =PSW_KERNEL_BITS ; lc->mcck_new_psw.addr = (unsigned long ) mcck_int_handler; - lc->io_new_psw.mask =PSW_KERNEL_BITS | -PSW_MASK_DAT |PSW_MASK_MCHECK ; + lc->io_new_psw.mask =PSW_KERNEL_BITS |PSW_MASK_MCHECK ; lc->io_new_psw.addr = (unsigned long ) io_int_handler; lc->clock_comparator = clock_comparator_max; lc->kernel_stack = ((unsigned long ) &init_thread_union)
@@ -388,6 +385,16 @@ static void __init setup_lowcore(void) lowcore_ptr[0 ] = lc; } +static void __init setup_lowcore_dat_on (void ) +{ +__ctl_clear_bit (0 ,28 ); + S390_lowcore.external_new_psw.mask |=PSW_MASK_DAT ; + S390_lowcore.svc_new_psw.mask |=PSW_MASK_DAT ; + S390_lowcore.program_new_psw.mask |=PSW_MASK_DAT ; + S390_lowcore.io_new_psw.mask |=PSW_MASK_DAT ; +__ctl_set_bit (0 ,28 ); +} +static struct resource code_resource = { .name ="Kernel code" , .flags =IORESOURCE_BUSY |IORESOURCE_SYSTEM_RAM ,
@@ -946,7 +953,7 @@ void __init setup_arch(char **cmdline_p)#endif setup_resources (); -setup_lowcore (); +setup_lowcore_dat_off ();smp_fill_possible_mask ();cpu_detect_mhz_feature ();cpu_init ();
@@ -959,6 +966,12 @@ void __init setup_arch(char **cmdline_p)*/ paging_init (); +/* +* After paging_init created the kernel page table, the new PSWs +* in lowcore can now run with DAT enabled. +*/ +setup_lowcore_dat_on (); +/* Setup default console */ conmode_default ();set_preferred_console ();
arch/x86/crypto/aegis128-aesni-glue.c +15 -23
@@ -119,31 +119,20 @@ static void crypto_aegis128_aesni_process_ad( }static void crypto_aegis128_aesni_process_crypt ( -struct aegis_state *state,struct aead_request *req, +struct aegis_state *state,struct skcipher_walk *walk,const struct aegis_crypt_ops *ops) { -struct skcipher_walk walk; -u8 *src, *dst; -unsigned int chunksize, base; - - ops->skcipher_walk_init (&walk, req, false); - -while (walk.nbytes) { - src = walk.src.virt.addr; - dst = walk.dst.virt.addr; - chunksize = walk.nbytes; - - ops->crypt_blocks (state, chunksize, src, dst); - - base = chunksize & ~(AEGIS128_BLOCK_SIZE -1 ); - src += base; - dst += base; - chunksize &=AEGIS128_BLOCK_SIZE -1 ; - -if (chunksize >0 ) - ops->crypt_tail (state, chunksize, src, dst); +while (walk->nbytes >=AEGIS128_BLOCK_SIZE ) { + ops->crypt_blocks (state, +round_down (walk->nbytes,AEGIS128_BLOCK_SIZE ), + walk->src.virt.addr, walk->dst.virt.addr); +skcipher_walk_done (walk, walk->nbytes %AEGIS128_BLOCK_SIZE ); + } -skcipher_walk_done (&walk,0 ); +if (walk->nbytes) { + ops->crypt_tail (state, walk->nbytes, walk->src.virt.addr, + walk->dst.virt.addr); +skcipher_walk_done (walk,0 ); } }
@@ -186,13 +175,16 @@ static void crypto_aegis128_aesni_crypt(struct aead_request *req, {struct crypto_aead *tfm =crypto_aead_reqtfm (req);struct aegis_ctx *ctx =crypto_aegis128_aesni_ctx (tfm); +struct skcipher_walk walk;struct aegis_state state; + ops->skcipher_walk_init (&walk, req, true); +kernel_fpu_begin ();crypto_aegis128_aesni_init (&state, ctx->key.bytes, req->iv);crypto_aegis128_aesni_process_ad (&state, req->src, req->assoclen); -crypto_aegis128_aesni_process_crypt (&state, req, ops); +crypto_aegis128_aesni_process_crypt (&state, &walk, ops);crypto_aegis128_aesni_final (&state, tag_xor, req->assoclen, cryptlen);kernel_fpu_end ();
arch/x86/crypto/aegis128l-aesni-glue.c +15 -23
@@ -119,31 +119,20 @@ static void crypto_aegis128l_aesni_process_ad( }static void crypto_aegis128l_aesni_process_crypt ( -struct aegis_state *state,struct aead_request *req, +struct aegis_state *state,struct skcipher_walk *walk,const struct aegis_crypt_ops *ops) { -struct skcipher_walk walk; -u8 *src, *dst; -unsigned int chunksize, base; - - ops->skcipher_walk_init (&walk, req, false); - -while (walk.nbytes) { - src = walk.src.virt.addr; - dst = walk.dst.virt.addr; - chunksize = walk.nbytes; - - ops->crypt_blocks (state, chunksize, src, dst); - - base = chunksize & ~(AEGIS128L_BLOCK_SIZE -1 ); - src += base; - dst += base; - chunksize &=AEGIS128L_BLOCK_SIZE -1 ; - -if (chunksize >0 ) - ops->crypt_tail (state, chunksize, src, dst); +while (walk->nbytes >=AEGIS128L_BLOCK_SIZE ) { + ops->crypt_blocks (state,round_down (walk->nbytes, +AEGIS128L_BLOCK_SIZE ), + walk->src.virt.addr, walk->dst.virt.addr); +skcipher_walk_done (walk, walk->nbytes %AEGIS128L_BLOCK_SIZE ); + } -skcipher_walk_done (&walk,0 ); +if (walk->nbytes) { + ops->crypt_tail (state, walk->nbytes, walk->src.virt.addr, + walk->dst.virt.addr); +skcipher_walk_done (walk,0 ); } }
@@ -186,13 +175,16 @@ static void crypto_aegis128l_aesni_crypt(struct aead_request *req, {struct crypto_aead *tfm =crypto_aead_reqtfm (req);struct aegis_ctx *ctx =crypto_aegis128l_aesni_ctx (tfm); +struct skcipher_walk walk;struct aegis_state state; + ops->skcipher_walk_init (&walk, req, true); +kernel_fpu_begin ();crypto_aegis128l_aesni_init (&state, ctx->key.bytes, req->iv);crypto_aegis128l_aesni_process_ad (&state, req->src, req->assoclen); -crypto_aegis128l_aesni_process_crypt (&state, req, ops); +crypto_aegis128l_aesni_process_crypt (&state, &walk, ops);crypto_aegis128l_aesni_final (&state, tag_xor, req->assoclen, cryptlen);kernel_fpu_end ();
arch/x86/crypto/aegis256-aesni-glue.c +15 -23
@@ -119,31 +119,20 @@ static void crypto_aegis256_aesni_process_ad( }static void crypto_aegis256_aesni_process_crypt ( -struct aegis_state *state,struct aead_request *req, +struct aegis_state *state,struct skcipher_walk *walk,const struct aegis_crypt_ops *ops) { -struct skcipher_walk walk; -u8 *src, *dst; -unsigned int chunksize, base; - - ops->skcipher_walk_init (&walk, req, false); - -while (walk.nbytes) { - src = walk.src.virt.addr; - dst = walk.dst.virt.addr; - chunksize = walk.nbytes; - - ops->crypt_blocks (state, chunksize, src, dst); - - base = chunksize & ~(AEGIS256_BLOCK_SIZE -1 ); - src += base; - dst += base; - chunksize &=AEGIS256_BLOCK_SIZE -1 ; - -if (chunksize >0 ) - ops->crypt_tail (state, chunksize, src, dst); +while (walk->nbytes >=AEGIS256_BLOCK_SIZE ) { + ops->crypt_blocks (state, +round_down (walk->nbytes,AEGIS256_BLOCK_SIZE ), + walk->src.virt.addr, walk->dst.virt.addr); +skcipher_walk_done (walk, walk->nbytes %AEGIS256_BLOCK_SIZE ); + } -skcipher_walk_done (&walk,0 ); +if (walk->nbytes) { + ops->crypt_tail (state, walk->nbytes, walk->src.virt.addr, + walk->dst.virt.addr); +skcipher_walk_done (walk,0 ); } }
@@ -186,13 +175,16 @@ static void crypto_aegis256_aesni_crypt(struct aead_request *req, {struct crypto_aead *tfm =crypto_aead_reqtfm (req);struct aegis_ctx *ctx =crypto_aegis256_aesni_ctx (tfm); +struct skcipher_walk walk;struct aegis_state state; + ops->skcipher_walk_init (&walk, req, true); +kernel_fpu_begin ();crypto_aegis256_aesni_init (&state, ctx->key, req->iv);crypto_aegis256_aesni_process_ad (&state, req->src, req->assoclen); -crypto_aegis256_aesni_process_crypt (&state, req, ops); +crypto_aegis256_aesni_process_crypt (&state, &walk, ops);crypto_aegis256_aesni_final (&state, tag_xor, req->assoclen, cryptlen);kernel_fpu_end ();
arch/x86/crypto/aesni-intel_glue.c +8 -5
@@ -830,11 +830,14 @@ static int gcmaes_crypt_by_sg(bool enc, struct aead_request *req,scatterwalk_map_and_copy (assoc, req->src,0 , assoclen,0 ); } - src_sg =scatterwalk_ffwd (src_start, req->src, req->assoclen); -scatterwalk_start (&src_sg_walk, src_sg); -if (req->src != req->dst) { - dst_sg =scatterwalk_ffwd (dst_start, req->dst, req->assoclen); -scatterwalk_start (&dst_sg_walk, dst_sg); +if (left) { + src_sg =scatterwalk_ffwd (src_start, req->src, req->assoclen); +scatterwalk_start (&src_sg_walk, src_sg); +if (req->src != req->dst) { + dst_sg =scatterwalk_ffwd (dst_start, req->dst, + req->assoclen); +scatterwalk_start (&dst_sg_walk, dst_sg); + } }kernel_fpu_begin ();
arch/x86/crypto/morus1280_glue.c +16 -24
@@ -85,31 +85,20 @@ static void crypto_morus1280_glue_process_ad(static void crypto_morus1280_glue_process_crypt (struct morus1280_state *state,struct morus1280_ops ops, -struct aead_request *req) +struct skcipher_walk *walk) { -struct skcipher_walk walk; -u8 *cursor_src, *cursor_dst; -unsigned int chunksize, base; - - ops.skcipher_walk_init (&walk, req, false); - -while (walk.nbytes) { - cursor_src = walk.src.virt.addr; - cursor_dst = walk.dst.virt.addr; - chunksize = walk.nbytes; - - ops.crypt_blocks (state, cursor_src, cursor_dst, chunksize); - - base = chunksize & ~(MORUS1280_BLOCK_SIZE -1 ); - cursor_src += base; - cursor_dst += base; - chunksize &=MORUS1280_BLOCK_SIZE -1 ; - -if (chunksize >0 ) - ops.crypt_tail (state, cursor_src, cursor_dst, - chunksize); +while (walk->nbytes >=MORUS1280_BLOCK_SIZE ) { + ops.crypt_blocks (state, walk->src.virt.addr, + walk->dst.virt.addr, +round_down (walk->nbytes, +MORUS1280_BLOCK_SIZE )); +skcipher_walk_done (walk, walk->nbytes %MORUS1280_BLOCK_SIZE ); + } -skcipher_walk_done (&walk,0 ); +if (walk->nbytes) { + ops.crypt_tail (state, walk->src.virt.addr, walk->dst.virt.addr, + walk->nbytes); +skcipher_walk_done (walk,0 ); } }
@@ -147,12 +136,15 @@ static void crypto_morus1280_glue_crypt(struct aead_request *req,struct crypto_aead *tfm =crypto_aead_reqtfm (req);struct morus1280_ctx *ctx =crypto_aead_ctx (tfm);struct morus1280_state state; +struct skcipher_walk walk; + + ops.skcipher_walk_init (&walk, req, true);kernel_fpu_begin (); ctx->ops->init (&state, &ctx->key, req->iv);crypto_morus1280_glue_process_ad (&state, ctx->ops, req->src, req->assoclen); -crypto_morus1280_glue_process_crypt (&state, ops, req); +crypto_morus1280_glue_process_crypt (&state, ops, &walk); ctx->ops->final (&state, tag_xor, req->assoclen, cryptlen);kernel_fpu_end ();
arch/x86/crypto/morus640_glue.c +15 -24
@@ -85,31 +85,19 @@ static void crypto_morus640_glue_process_ad(static void crypto_morus640_glue_process_crypt (struct morus640_state *state,struct morus640_ops ops, -struct aead_request *req) +struct skcipher_walk *walk) { -struct skcipher_walk walk; -u8 *cursor_src, *cursor_dst; -unsigned int chunksize, base; - - ops.skcipher_walk_init (&walk, req, false); - -while (walk.nbytes) { - cursor_src = walk.src.virt.addr; - cursor_dst = walk.dst.virt.addr; - chunksize = walk.nbytes; - - ops.crypt_blocks (state, cursor_src, cursor_dst, chunksize); - - base = chunksize & ~(MORUS640_BLOCK_SIZE -1 ); - cursor_src += base; - cursor_dst += base; - chunksize &=MORUS640_BLOCK_SIZE -1 ; - -if (chunksize >0 ) - ops.crypt_tail (state, cursor_src, cursor_dst, - chunksize); +while (walk->nbytes >=MORUS640_BLOCK_SIZE ) { + ops.crypt_blocks (state, walk->src.virt.addr, + walk->dst.virt.addr, +round_down (walk->nbytes,MORUS640_BLOCK_SIZE )); +skcipher_walk_done (walk, walk->nbytes %MORUS640_BLOCK_SIZE ); + } -skcipher_walk_done (&walk,0 ); +if (walk->nbytes) { + ops.crypt_tail (state, walk->src.virt.addr, walk->dst.virt.addr, + walk->nbytes); +skcipher_walk_done (walk,0 ); } }
@@ -143,12 +131,15 @@ static void crypto_morus640_glue_crypt(struct aead_request *req,struct crypto_aead *tfm =crypto_aead_reqtfm (req);struct morus640_ctx *ctx =crypto_aead_ctx (tfm);struct morus640_state state; +struct skcipher_walk walk; + + ops.skcipher_walk_init (&walk, req, true);kernel_fpu_begin (); ctx->ops->init (&state, &ctx->key, req->iv);crypto_morus640_glue_process_ad (&state, ctx->ops, req->src, req->assoclen); -crypto_morus640_glue_process_crypt (&state, ops, req); +crypto_morus640_glue_process_crypt (&state, ops, &walk); ctx->ops->final (&state, tag_xor, req->assoclen, cryptlen);kernel_fpu_end ();
arch/x86/events/intel/uncore.c +1 -0
@@ -740,6 +740,7 @@ static int uncore_pmu_event_init(struct perf_event *event)/* fixed counters have event field hardcoded to zero */ hwc->config =0ULL ; }else if (is_freerunning_event (event)) { + hwc->config = event->attr.config;if (!check_valid_freerunning_event (box, event))return -EINVAL ; event->hw.idx =UNCORE_PMC_IDX_FREERUNNING ;
arch/x86/events/intel/uncore.h +6 -6
@@ -285,8 +285,8 @@ static inlineunsigned int uncore_freerunning_counter (struct intel_uncore_box *box,struct perf_event *event) { -unsigned int type =uncore_freerunning_type (event->attr.config); -unsigned int idx =uncore_freerunning_idx (event->attr.config); +unsigned int type =uncore_freerunning_type (event->hw.config); +unsigned int idx =uncore_freerunning_idx (event->hw.config);struct intel_uncore_pmu *pmu = box->pmu; return pmu->type->freerunning[type].counter_base +
@@ -360,7 +360,7 @@ static inlineunsigned int uncore_freerunning_bits (struct intel_uncore_box *box,struct perf_event *event) { -unsigned int type =uncore_freerunning_type (event->attr.config); +unsigned int type =uncore_freerunning_type (event->hw.config);return box->pmu->type->freerunning[type].bits; }
@@ -368,7 +368,7 @@ unsigned int uncore_freerunning_bits(struct intel_uncore_box *box,static inline int uncore_num_freerunning (struct intel_uncore_box *box,struct perf_event *event) { -unsigned int type =uncore_freerunning_type (event->attr.config); +unsigned int type =uncore_freerunning_type (event->hw.config);return box->pmu->type->freerunning[type].num_counters; }
@@ -382,8 +382,8 @@ static inline int uncore_num_freerunning_types(struct intel_uncore_box *box,static inline bool check_valid_freerunning_event (struct intel_uncore_box *box,struct perf_event *event) { -unsigned int type =uncore_freerunning_type (event->attr.config); -unsigned int idx =uncore_freerunning_idx (event->attr.config); +unsigned int type =uncore_freerunning_type (event->hw.config); +unsigned int idx =uncore_freerunning_idx (event->hw.config);return (type <uncore_num_freerunning_types (box, event)) && (idx <uncore_num_freerunning (box, event));
arch/x86/events/intel/uncore_snb.c +3 -1
@@ -444,9 +444,11 @@ static int snb_uncore_imc_event_init(struct perf_event *event)/* must be done before validate_group */ event->hw.event_base = base; - event->hw.config = cfg; event->hw.idx = idx; +/* Convert to standard encoding format for freerunning counters */ + event->hw.config = ((cfg -1 ) <<8 ) |0x10ff ; +/* no group validation needed, we have free running counters */ return 0 ;
arch/x86/include/asm/intel-family.h +2 -0
@@ -55,6 +55,8 @@#define INTEL_FAM6_CANNONLAKE_MOBILE 0x66 +#define INTEL_FAM6_ICELAKE_MOBILE 0x7E +/* "Small Core" Processors (Atom) */ #define INTEL_FAM6_ATOM_PINEVIEW 0x1C
arch/x86/include/asm/kvm_host.h +1 -1
@@ -1194,7 +1194,7 @@ void kvm_mmu_clear_dirty_pt_masked(struct kvm *kvm,struct kvm_memory_slot *slot, gfn_t gfn_offset, unsigned long mask);void kvm_mmu_zap_all (struct kvm *kvm); -void kvm_mmu_invalidate_mmio_sptes (struct kvm *kvm,struct kvm_memslots *slots); +void kvm_mmu_invalidate_mmio_sptes (struct kvm *kvm,u64 gen);unsigned int kvm_mmu_calculate_mmu_pages (struct kvm *kvm);void kvm_mmu_change_mmu_pages (struct kvm *kvm,unsigned int kvm_nr_mmu_pages);
arch/x86/kernel/kprobes/opt.c +5 -0
@@ -141,6 +141,11 @@ asm (void optprobe_template_func (void );STACK_FRAME_NON_STANDARD (optprobe_template_func); +NOKPROBE_SYMBOL (optprobe_template_func); +NOKPROBE_SYMBOL (optprobe_template_entry); +NOKPROBE_SYMBOL (optprobe_template_val); +NOKPROBE_SYMBOL (optprobe_template_call); +NOKPROBE_SYMBOL (optprobe_template_end);#define TMPL_MOVE_IDX \ ((long)optprobe_template_val - (long)optprobe_template_entry)
arch/x86/kvm/mmu.c +20 -3
@@ -5774,13 +5774,30 @@ static bool kvm_has_zapped_obsolete_pages(struct kvm *kvm)return unlikely (!list_empty_careful (&kvm->arch.zapped_obsolete_pages)); } -void kvm_mmu_invalidate_mmio_sptes (struct kvm *kvm,struct kvm_memslots *slots) +void kvm_mmu_invalidate_mmio_sptes (struct kvm *kvm,u64 gen) { + gen &=MMIO_GEN_MASK ; + +/* +* Shift to eliminate the "update in-progress" flag, which isn't +* included in the spte's generation number. +*/ + gen >>=1 ; + +/* +* Generation numbers are incremented in multiples of the number of +* address spaces in order to provide unique generations across all +* address spaces. Strip what is effectively the address space +* modifier prior to checking for a wrap of the MMIO generation so +* that a wrap in any address space is detected. +*/ + gen &= ~((u64 )KVM_ADDRESS_SPACE_NUM -1 ); +/* -* The very rare case: if the generation-number is round, +* The very rare case: if the MMIO generation number has wrapped, * zap all shadow pages. */ -if (unlikely ((slots->generation &MMIO_GEN_MASK ) ==0 )) { +if (unlikely (gen ==0 )) {kvm_debug_ratelimited ("kvm: zapping shadow pages for mmio generation wraparound\n" );kvm_mmu_invalidate_zap_all_pages (kvm); }
arch/x86/kvm/vmx.c +36 -5
71 lines not on this page · raw message
arch/x86/kvm/x86.c +2 -2
@@ -9108,13 +9108,13 @@ int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot,return -ENOMEM ; } -void kvm_arch_memslots_updated (struct kvm *kvm,struct kvm_memslots *slots) +void kvm_arch_memslots_updated (struct kvm *kvm,u64 gen) {/* * memslots->generation has been incremented. * mmio generation may have reached its maximum value. */ -kvm_mmu_invalidate_mmio_sptes (kvm, slots); +kvm_mmu_invalidate_mmio_sptes (kvm, gen); } int kvm_arch_prepare_memory_region(struct kvm *kvm,
arch/x86/kvm/x86.h +6 -1
@@ -181,6 +181,11 @@ static inline bool emul_is_noncanonical_address(u64 la,static inline void vcpu_cache_mmio_info (struct kvm_vcpu *vcpu,gva_t gva,gfn_t gfn,unsigned access) { +u64 gen =kvm_memslots (vcpu->kvm)->generation; + +if (unlikely (gen &1 )) +return ; +/* * If this is a shadow nested page table, the "GVA" is * actually a nGPA.
@@ -188,7 +193,7 @@ static inline void vcpu_cache_mmio_info(struct kvm_vcpu *vcpu, vcpu->arch.mmio_gva =mmu_is_nested (vcpu) ?0 : gva &PAGE_MASK ; vcpu->arch.access = access; vcpu->arch.mmio_gfn = gfn; - vcpu->arch.mmio_gen =kvm_memslots (vcpu->kvm)->generation; + vcpu->arch.mmio_gen = gen; }static inline bool vcpu_match_mmio_gen (struct kvm_vcpu *vcpu)
arch/x86/xen/mmu_pv.c +6 -7
@@ -2106,10 +2106,10 @@ void __init xen_relocate_p2m(void) pt =early_memremap (pt_phys,PAGE_SIZE );clear_page (pt);for (idx_pte =0 ; - idx_pte <min (n_pte,PTRS_PER_PTE ); - idx_pte++) { -set_pte (pt + idx_pte, -pfn_pte (p2m_pfn,PAGE_KERNEL )); + idx_pte <min (n_pte,PTRS_PER_PTE ); + idx_pte++) { + pt[idx_pte] =pfn_pte (p2m_pfn, +PAGE_KERNEL ); p2m_pfn++; } n_pte -=PTRS_PER_PTE ;
@@ -2117,8 +2117,7 @@ void __init xen_relocate_p2m(void)make_lowmem_page_readonly (__va (pt_phys));pin_pagetable_pfn (MMUEXT_PIN_L1_TABLE ,PFN_DOWN (pt_phys)); -set_pmd (pmd + idx_pt, -__pmd (_PAGE_TABLE | pt_phys)); + pmd[idx_pt] =__pmd (_PAGE_TABLE | pt_phys); pt_phys +=PAGE_SIZE ; } n_pt -=PTRS_PER_PMD ;
@@ -2126,7 +2125,7 @@ void __init xen_relocate_p2m(void)make_lowmem_page_readonly (__va (pmd_phys));pin_pagetable_pfn (MMUEXT_PIN_L2_TABLE ,PFN_DOWN (pmd_phys)); -set_pud (pud + idx_pmd,__pud (_PAGE_TABLE | pmd_phys)); + pud[idx_pmd] =__pud (_PAGE_TABLE | pmd_phys); pmd_phys +=PAGE_SIZE ; } n_pmd -=PTRS_PER_PUD ;
block/blk-mq.c +10 -2
@@ -701,12 +701,20 @@ static void blk_mq_requeue_work(struct work_struct *work)spin_unlock_irq (&q->requeue_lock);list_for_each_entry_safe (rq, next, &rq_list, queuelist) { -if (!(rq->rq_flags &RQF_SOFTBARRIER )) +if (!(rq->rq_flags & (RQF_SOFTBARRIER |RQF_DONTPREP )))continue ; rq->rq_flags &= ~RQF_SOFTBARRIER ;list_del_init (&rq->queuelist); -blk_mq_sched_insert_request (rq, true, false, false); +/* +* If RQF_DONTPREP, rq has contained some driver specific +* data, so insert it to hctx dispatch list to avoid any +* merge. +*/ +if (rq->rq_flags &RQF_DONTPREP ) +blk_mq_request_bypass_insert (rq, false); +else +blk_mq_sched_insert_request (rq, true, false, false); }while (!list_empty (&rq_list)) {
crypto/aead.c +3 -1
@@ -61,8 +61,10 @@ int crypto_aead_setkey(struct crypto_aead *tfm,else err =crypto_aead_alg (tfm)->setkey (tfm, key, keylen); -if (err) +if (unlikely (err)) { +crypto_aead_set_flags (tfm,CRYPTO_TFM_NEED_KEY );return err; + }crypto_aead_clear_flags (tfm,CRYPTO_TFM_NEED_KEY );return 0 ;
crypto/aegis128.c +7 -7
@@ -290,19 +290,19 @@ static void crypto_aegis128_process_crypt(struct aegis_state *state, const struct aegis128_ops *ops) {struct skcipher_walk walk; -u8 *src, *dst; -unsigned int chunksize; ops->skcipher_walk_init (&walk, req, false);while (walk.nbytes) { - src = walk.src.virt.addr; - dst = walk.dst.virt.addr; - chunksize = walk.nbytes; +unsigned int nbytes = walk.nbytes; - ops->crypt_chunk (state, dst, src, chunksize); +if (nbytes < walk.total) + nbytes =round_down (nbytes, walk.stride); -skcipher_walk_done (&walk,0 ); + ops->crypt_chunk (state, walk.dst.virt.addr, walk.src.virt.addr, + nbytes); + +skcipher_walk_done (&walk, walk.nbytes - nbytes); } }
crypto/aegis128l.c +7 -7
@@ -353,19 +353,19 @@ static void crypto_aegis128l_process_crypt(struct aegis_state *state, const struct aegis128l_ops *ops) {struct skcipher_walk walk; -u8 *src, *dst; -unsigned int chunksize; ops->skcipher_walk_init (&walk, req, false);while (walk.nbytes) { - src = walk.src.virt.addr; - dst = walk.dst.virt.addr; - chunksize = walk.nbytes; +unsigned int nbytes = walk.nbytes; - ops->crypt_chunk (state, dst, src, chunksize); +if (nbytes < walk.total) + nbytes =round_down (nbytes, walk.stride); -skcipher_walk_done (&walk,0 ); + ops->crypt_chunk (state, walk.dst.virt.addr, walk.src.virt.addr, + nbytes); + +skcipher_walk_done (&walk, walk.nbytes - nbytes); } }
crypto/aegis256.c +7 -7
@@ -303,19 +303,19 @@ static void crypto_aegis256_process_crypt(struct aegis_state *state, const struct aegis256_ops *ops) {struct skcipher_walk walk; -u8 *src, *dst; -unsigned int chunksize; ops->skcipher_walk_init (&walk, req, false);while (walk.nbytes) { - src = walk.src.virt.addr; - dst = walk.dst.virt.addr; - chunksize = walk.nbytes; +unsigned int nbytes = walk.nbytes; - ops->crypt_chunk (state, dst, src, chunksize); +if (nbytes < walk.total) + nbytes =round_down (nbytes, walk.stride); -skcipher_walk_done (&walk,0 ); + ops->crypt_chunk (state, walk.dst.virt.addr, walk.src.virt.addr, + nbytes); + +skcipher_walk_done (&walk, walk.nbytes - nbytes); } }
crypto/ahash.c +26 -16
84 lines not on this page · raw message
crypto/cfb.c +10 -4
@@ -77,12 +77,14 @@ static int crypto_cfb_encrypt_segment(struct skcipher_walk *walk,do {crypto_cfb_encrypt_one (tfm, iv, dst);crypto_xor (dst, src, bsize); -memcpy (iv, dst, bsize); + iv = dst; src += bsize; dst += bsize; }while ((nbytes -= bsize) >= bsize); +memcpy (walk->iv, iv, bsize); +return nbytes; }
@@ -162,7 +164,7 @@ static int crypto_cfb_decrypt_inplace(struct skcipher_walk *walk,const unsigned int bsize =crypto_cfb_bsize (tfm);unsigned int nbytes = walk->nbytes;u8 *src = walk->src.virt.addr; -u8 *iv = walk->iv; +u8 *const iv = walk->iv;u8 tmp[MAX_CIPHER_BLOCKSIZE ]; do {
@@ -172,8 +174,6 @@ static int crypto_cfb_decrypt_inplace(struct skcipher_walk *walk, src += bsize; }while ((nbytes -= bsize) >= bsize); -memcpy (walk->iv, iv, bsize); -return nbytes; }
@@ -298,6 +298,12 @@ static int crypto_cfb_create(struct crypto_template *tmpl, struct rtattr **tb) inst->alg.base.cra_blocksize =1 ; inst->alg.base.cra_alignmask = alg->cra_alignmask; +/* +* To simplify the implementation, configure the skcipher walk to only +* give a partial block at the very end, never earlier. +*/ + inst->alg.chunksize = alg->cra_blocksize; + inst->alg.ivsize = alg->cra_blocksize; inst->alg.min_keysize = alg->cra_cipher.cia_min_keysize; inst->alg.max_keysize = alg->cra_cipher.cia_max_keysize;
crypto/morus1280.c +7 -6
@@ -366,18 +366,19 @@ static void crypto_morus1280_process_crypt(struct morus1280_state *state, const struct morus1280_ops *ops) {struct skcipher_walk walk; -u8 *dst; -const u8 *src; ops->skcipher_walk_init (&walk, req, false);while (walk.nbytes) { - src = walk.src.virt.addr; - dst = walk.dst.virt.addr; +unsigned int nbytes = walk.nbytes; - ops->crypt_chunk (state, dst, src, walk.nbytes); +if (nbytes < walk.total) + nbytes =round_down (nbytes, walk.stride); -skcipher_walk_done (&walk,0 ); + ops->crypt_chunk (state, walk.dst.virt.addr, walk.src.virt.addr, + nbytes); + +skcipher_walk_done (&walk, walk.nbytes - nbytes); } }
crypto/morus640.c +7 -6
@@ -365,18 +365,19 @@ static void crypto_morus640_process_crypt(struct morus640_state *state, const struct morus640_ops *ops) {struct skcipher_walk walk; -u8 *dst; -const u8 *src; ops->skcipher_walk_init (&walk, req, false);while (walk.nbytes) { - src = walk.src.virt.addr; - dst = walk.dst.virt.addr; +unsigned int nbytes = walk.nbytes; - ops->crypt_chunk (state, dst, src, walk.nbytes); +if (nbytes < walk.total) + nbytes =round_down (nbytes, walk.stride); -skcipher_walk_done (&walk,0 ); + ops->crypt_chunk (state, walk.dst.virt.addr, walk.src.virt.addr, + nbytes); + +skcipher_walk_done (&walk, walk.nbytes - nbytes); } }
crypto/pcbc.c +4 -10
@@ -51,7 +51,7 @@ static int crypto_pcbc_encrypt_segment(struct skcipher_request *req,unsigned int nbytes = walk->nbytes;u8 *src = walk->src.virt.addr;u8 *dst = walk->dst.virt.addr; -u8 *iv = walk->iv; +u8 *const iv = walk->iv; do { crypto_xor(iv, src, bsize);
@@ -72,7 +72,7 @@ static int crypto_pcbc_encrypt_inplace(struct skcipher_request *req,int bsize =crypto_cipher_blocksize (tfm);unsigned int nbytes = walk->nbytes;u8 *src = walk->src.virt.addr; -u8 *iv = walk->iv; +u8 *const iv = walk->iv;u8 tmpbuf[MAX_CIPHER_BLOCKSIZE ]; do {
@@ -84,8 +84,6 @@ static int crypto_pcbc_encrypt_inplace(struct skcipher_request *req, src += bsize; }while ((nbytes -= bsize) >= bsize); -memcpy (walk->iv, iv, bsize); -return nbytes; }
@@ -121,7 +119,7 @@ static int crypto_pcbc_decrypt_segment(struct skcipher_request *req,unsigned int nbytes = walk->nbytes;u8 *src = walk->src.virt.addr;u8 *dst = walk->dst.virt.addr; -u8 *iv = walk->iv; +u8 *const iv = walk->iv; do { crypto_cipher_decrypt_one(tfm, dst, src);
@@ -132,8 +130,6 @@ static int crypto_pcbc_decrypt_segment(struct skcipher_request *req, dst += bsize; }while ((nbytes -= bsize) >= bsize); -memcpy (walk->iv, iv, bsize); -return nbytes; }
@@ -144,7 +140,7 @@ static int crypto_pcbc_decrypt_inplace(struct skcipher_request *req,int bsize =crypto_cipher_blocksize (tfm);unsigned int nbytes = walk->nbytes;u8 *src = walk->src.virt.addr; -u8 *iv = walk->iv; +u8 *const iv = walk->iv;u8 tmpbuf[MAX_CIPHER_BLOCKSIZE ]__aligned(__alignof__(u32)) ; do {
@@ -156,8 +152,6 @@ static int crypto_pcbc_decrypt_inplace(struct skcipher_request *req, src += bsize; }while ((nbytes -= bsize) >= bsize); -memcpy (walk->iv, iv, bsize); -return nbytes; }
crypto/shash.c +13 -5
@@ -53,6 +53,13 @@ static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key,return err; } +static void shash_set_needkey (struct crypto_shash *tfm,struct shash_alg *alg) +{ +if (crypto_shash_alg_has_setkey (alg) && + !(alg->base.cra_flags &CRYPTO_ALG_OPTIONAL_KEY )) +crypto_shash_set_flags (tfm,CRYPTO_TFM_NEED_KEY ); +} +int crypto_shash_setkey (struct crypto_shash *tfm,const u8 *key,unsigned int keylen) {
@@ -65,8 +72,10 @@ int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key,else err = shash->setkey (tfm, key, keylen); -if (err) +if (unlikely (err)) { +shash_set_needkey (tfm, shash);return err; + }crypto_shash_clear_flags (tfm,CRYPTO_TFM_NEED_KEY );return 0 ;
@@ -368,7 +377,8 @@ int crypto_init_shash_ops_async(struct crypto_tfm *tfm) crt->final = shash_async_final; crt->finup = shash_async_finup; crt->digest = shash_async_digest; - crt->setkey = shash_async_setkey; +if (crypto_shash_alg_has_setkey (alg)) + crt->setkey = shash_async_setkey;crypto_ahash_set_flags (crt,crypto_shash_get_flags (shash) &CRYPTO_TFM_NEED_KEY );
@@ -390,9 +400,7 @@ static int crypto_shash_init_tfm(struct crypto_tfm *tfm) hash->descsize = alg->descsize; -if (crypto_shash_alg_has_setkey (alg) && - !(alg->base.cra_flags &CRYPTO_ALG_OPTIONAL_KEY )) -crypto_shash_set_flags (hash,CRYPTO_TFM_NEED_KEY ); +shash_set_needkey (hash, alg);return 0 ; }
crypto/skcipher.c +18 -9
@@ -584,6 +584,12 @@ static unsigned int crypto_skcipher_extsize(struct crypto_alg *alg)return crypto_alg_extsize (alg); } +static void skcipher_set_needkey (struct crypto_skcipher *tfm) +{ +if (tfm->keysize) +crypto_skcipher_set_flags (tfm,CRYPTO_TFM_NEED_KEY ); +} +static int skcipher_setkey_blkcipher (struct crypto_skcipher *tfm,const u8 *key,unsigned int keylen) {
@@ -597,8 +603,10 @@ static int skcipher_setkey_blkcipher(struct crypto_skcipher *tfm, err =crypto_blkcipher_setkey (blkcipher, key, keylen);crypto_skcipher_set_flags (tfm,crypto_blkcipher_get_flags (blkcipher) &CRYPTO_TFM_RES_MASK ); -if (err) +if (unlikely (err)) { +skcipher_set_needkey (tfm);return err; + }crypto_skcipher_clear_flags (tfm,CRYPTO_TFM_NEED_KEY );return 0 ;
@@ -676,8 +684,7 @@ static int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm) skcipher->ivsize =crypto_blkcipher_ivsize (blkcipher); skcipher->keysize = calg->cra_blkcipher.max_keysize; -if (skcipher->keysize) -crypto_skcipher_set_flags (skcipher,CRYPTO_TFM_NEED_KEY ); +skcipher_set_needkey (skcipher);return 0 ; }
@@ -697,8 +704,10 @@ static int skcipher_setkey_ablkcipher(struct crypto_skcipher *tfm,crypto_skcipher_set_flags (tfm,crypto_ablkcipher_get_flags (ablkcipher) &CRYPTO_TFM_RES_MASK ); -if (err) +if (unlikely (err)) { +skcipher_set_needkey (tfm);return err; + }crypto_skcipher_clear_flags (tfm,CRYPTO_TFM_NEED_KEY );return 0 ;
@@ -775,8 +784,7 @@ static int crypto_init_skcipher_ops_ablkcipher(struct crypto_tfm *tfm)sizeof (struct ablkcipher_request ); skcipher->keysize = calg->cra_ablkcipher.max_keysize; -if (skcipher->keysize) -crypto_skcipher_set_flags (skcipher,CRYPTO_TFM_NEED_KEY ); +skcipher_set_needkey (skcipher);return 0 ; }
@@ -819,8 +827,10 @@ static int skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key,else err = cipher->setkey (tfm, key, keylen); -if (err) +if (unlikely (err)) { +skcipher_set_needkey (tfm);return err; + }crypto_skcipher_clear_flags (tfm,CRYPTO_TFM_NEED_KEY );return 0 ;
@@ -852,8 +862,7 @@ static int crypto_skcipher_init_tfm(struct crypto_tfm *tfm) skcipher->ivsize = alg->ivsize; skcipher->keysize = alg->max_keysize; -if (skcipher->keysize) -crypto_skcipher_set_flags (skcipher,CRYPTO_TFM_NEED_KEY ); +skcipher_set_needkey (skcipher);if (alg->exit) skcipher->base.exit = crypto_skcipher_exit_tfm;
crypto/testmgr.c +10 -4
@@ -1894,14 +1894,21 @@ static int alg_test_crc32c(const struct alg_test_desc *desc, err =alg_test_hash (desc, driver, type, mask);if (err) - goto out; +return err; tfm =crypto_alloc_shash (driver, type, mask);if (IS_ERR (tfm)) { +if (PTR_ERR (tfm) == -ENOENT ) { +/* +* This crc32c implementation is only available through +* ahash API, not the shash API, so the remaining part +* of the test is not applicable to it. +*/ +return 0 ; + }printk (KERN_ERR "alg: crc32c: Failed to load transform for %s: " "%ld\n" , driver,PTR_ERR (tfm)); - err =PTR_ERR (tfm); - goto out; +return PTR_ERR (tfm); } do {
@@ -1928,7 +1935,6 @@ static int alg_test_crc32c(const struct alg_test_desc *desc,crypto_free_shash (tfm); -out:return err; }
crypto/testmgr.h +25 -0
@@ -11416,6 +11416,31 @@ static const struct cipher_testvec aes_cfb_tv_template[] = { "\x75\xa3\x85\x74\x1a\xb9\xce\xf8" "\x20\x31\x62\x3d\x55\xb1\xe4\x71", .len = 64, + .also_non_np = 1, + .np = 2, + .tap = { 31, 33 }, + }, { /* > 16 bytes, not a multiple of 16 bytes */ + .key ="\x2b\x7e\x15\x16\x28\xae\xd2\xa6" +"\xab\xf7\x15\x88\x09\xcf\x4f\x3c" , + .klen = 16, + .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" +"\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" , + .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" +"\xe9\x3d\x7e\x11\x73\x93\x17\x2a" +"\xae" , + .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20" +"\x33\x34\x49\xf8\xe8\x3c\xfb\x4a" +"\xc8" , + .len = 17, + }, { /* < 16 bytes */ + .key ="\x2b\x7e\x15\x16\x28\xae\xd2\xa6" +"\xab\xf7\x15\x88\x09\xcf\x4f\x3c" , + .klen = 16, + .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" +"\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" , + .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f", + .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad", + .len = 7, }, };
drivers/acpi/device_sysfs.c +5 -1
@@ -202,11 +202,15 @@ static int create_of_modalias(struct acpi_device *acpi_dev, char *modalias, {struct acpi_buffer buf = {ACPI_ALLOCATE_BUFFER };const union acpi_object *of_compatible, *obj; +acpi_status status;int len, count;int i, nval;char *c; -acpi_get_name (acpi_dev->handle,ACPI_SINGLE_NAME , &buf); + status =acpi_get_name (acpi_dev->handle,ACPI_SINGLE_NAME , &buf); +if (ACPI_FAILURE (status)) +return -ENODEV ; +/* DT strings are all in lower case */ for (c = buf.pointer; *c !='\0' ; c++) *c =tolower (*c);
drivers/acpi/nfit/core.c +23 -20
105 lines not on this page · raw message
drivers/auxdisplay/ht16k33.c +1 -1
@@ -509,7 +509,7 @@ static int ht16k33_remove(struct i2c_client *client)struct ht16k33_priv *priv =i2c_get_clientdata (client);struct ht16k33_fbdev *fbdev = &priv->fbdev; -cancel_delayed_work (&fbdev->work); +cancel_delayed_work_sync (&fbdev->work);unregister_framebuffer (fbdev->info);framebuffer_release (fbdev->info);free_page ((unsigned long ) fbdev->buffer);
drivers/base/power/wakeup.c +7 -1
@@ -118,7 +118,6 @@ void wakeup_source_drop(struct wakeup_source *ws)if (!ws)return ; -del_timer_sync (&ws->timer);__pm_relax (ws); }EXPORT_SYMBOL_GPL (wakeup_source_drop);
@@ -205,6 +204,13 @@ void wakeup_source_remove(struct wakeup_source *ws)list_del_rcu (&ws->entry);raw_spin_unlock_irqrestore (&events_lock, flags);synchronize_srcu (&wakeup_srcu); + +del_timer_sync (&ws->timer); +/* +* Clear timer.function to make wakeup_source_not_registered() treat +* this wakeup source as not registered. +*/ + ws->timer.function =NULL ; }EXPORT_SYMBOL_GPL (wakeup_source_remove);
drivers/block/floppy.c +1 -1
@@ -4084,7 +4084,7 @@ static unsigned int floppy_check_events(struct gendisk *disk,if (time_after (jiffies,UDRS ->last_checked +UDP ->checkfreq)) {if (lock_fdc (drive)) -return -EINTR ; +return 0 ;poll_drive (false,0 );process_fd_request (); }
drivers/char/ipmi/ipmi_si_intf.c +5 -0
@@ -2085,6 +2085,11 @@ static int try_smi_init(struct smi_info *new_smi)WARN_ON (new_smi->io.dev->init_name !=NULL ); out_err: +if (rv && new_smi->io.io_cleanup) { + new_smi->io.io_cleanup (&new_smi->io); + new_smi->io.io_cleanup =NULL ; + } +kfree (init_name);return rv; }
drivers/char/ipmi/ipmi_si_mem_io.c +3 -2
@@ -81,8 +81,6 @@ int ipmi_si_mem_setup(struct si_sm_io *io)if (!addr)return -ENODEV ; - io->io_cleanup = mem_cleanup; -/* * Figure out the actual readb/readw/readl/etc routine to use based * upon the register size.
@@ -141,5 +139,8 @@ int ipmi_si_mem_setup(struct si_sm_io *io)mem_region_cleanup (io, io->io_size);return -EIO ; } + + io->io_cleanup = mem_cleanup; +return 0 ; }
drivers/char/ipmi/ipmi_si_port_io.c +3 -2
@@ -68,8 +68,6 @@ int ipmi_si_port_setup(struct si_sm_io *io)if (!addr)return -ENODEV ; - io->io_cleanup = port_cleanup; -/* * Figure out the actual inb/inw/inl/etc routine to use based * upon the register size.
@@ -109,5 +107,8 @@ int ipmi_si_port_setup(struct si_sm_io *io)return -EIO ; } } + + io->io_cleanup = port_cleanup; +return 0 ; }
drivers/char/tpm/st33zp24/st33zp24.c +1 -1
@@ -436,7 +436,7 @@ static int st33zp24_send(struct tpm_chip *chip, unsigned char *buf, goto out_err; } -return len; +return 0 ; out_err:st33zp24_cancel (chip);release_locality (chip);
drivers/char/tpm/tpm-interface.c +10 -1
@@ -495,10 +495,19 @@ static ssize_t tpm_try_transmit(struct tpm_chip *chip,if (rc <0 ) {if (rc != -EPIPE )dev_err (&chip->dev, -"%s: tpm_send: error %d\n" , __func__, rc); +"%s: send(): error %d\n" , __func__, rc); goto out; } +/* A sanity check. send() should just return zero on success e.g. +* not the command length. +*/ +if (rc >0 ) { +dev_warn (&chip->dev, +"%s: send(): invalid value %d\n" , __func__, rc); + rc =0 ; + } +if (chip->flags &TPM_CHIP_FLAG_IRQ ) goto out_recv;
drivers/char/tpm/tpm_atmel.c +1 -1
@@ -105,7 +105,7 @@ static int tpm_atml_send(struct tpm_chip *chip, u8 *buf, size_t count)iowrite8 (buf[i], priv->iobase); } -return count; +return 0 ; }static void tpm_atml_cancel (struct tpm_chip *chip)
drivers/char/tpm/tpm_crb.c +16 -6
@@ -287,19 +287,29 @@ static int crb_recv(struct tpm_chip *chip, u8 *buf, size_t count)struct crb_priv *priv =dev_get_drvdata (&chip->dev);unsigned int expected; -/* sanity check */ -if (count <6 ) +/* A sanity check that the upper layer wants to get at least the header +* as that is the minimum size for any TPM response. +*/ +if (count <TPM_HEADER_SIZE )return -EIO ; +/* If this bit is set, according to the spec, the TPM is in +* unrecoverable condition. +*/ if (ioread32 (&priv->regs_t->ctrl_sts) &CRB_CTRL_STS_ERROR )return -EIO ; -memcpy_fromio (buf, priv->rsp,6 ); - expected =be32_to_cpup ((__be32 *) &buf[2 ]); -if (expected > count || expected <6 ) +/* Read the first 8 bytes in order to get the length of the response. +* We read exactly a quad word in order to make sure that the remaining +* reads will be aligned. +*/ +memcpy_fromio (buf, priv->rsp,8 ); + + expected =be32_to_cpup ((__be32 *)&buf[2 ]); +if (expected > count || expected <TPM_HEADER_SIZE )return -EIO ; -memcpy_fromio (&buf[6 ], &priv->rsp[6 ], expected -6 ); +memcpy_fromio (&buf[8 ], &priv->rsp[8 ], expected -8 );return expected; }
drivers/char/tpm/tpm_i2c_atmel.c +5 -1
@@ -65,7 +65,11 @@ static int i2c_atmel_send(struct tpm_chip *chip, u8 *buf, size_t len)dev_dbg (&chip->dev,"%s(buf=%*ph len=%0zx) -> sts=%d\n" , __func__, (int )min_t (size_t,64 , len), buf, len, status); -return status; + +if (status <0 ) +return status; + +return 0 ; }static int i2c_atmel_recv (struct tpm_chip *chip,u8 *buf,size_t count)
drivers/char/tpm/tpm_i2c_infineon.c +1 -1
@@ -587,7 +587,7 @@ static int tpm_tis_i2c_send(struct tpm_chip *chip, u8 *buf, size_t len)/* go and do it */ iic_tpm_write (TPM_STS (tpm_dev.locality), &sts,1 ); -return len; +return 0 ; out_err:tpm_tis_i2c_ready (chip);/* The TPM needs some time to clean up here,
drivers/char/tpm/tpm_i2c_nuvoton.c +1 -1
@@ -469,7 +469,7 @@ static int i2c_nuvoton_send(struct tpm_chip *chip, u8 *buf, size_t len) }dev_dbg (dev,"%s() -> %zd\n" , __func__, len); -return len; +return 0 ; }static bool i2c_nuvoton_req_canceled (struct tpm_chip *chip,u8 status)
drivers/char/tpm/tpm_ibmvtpm.c +4 -4
@@ -141,14 +141,14 @@ static int tpm_ibmvtpm_recv(struct tpm_chip *chip, u8 *buf, size_t count) }/**
Lines of this file are not shown. View the raw message.
drivers/clk/clk-twl6040.c +51 -2
53 lines not on this page · raw message
drivers/clk/samsung/clk-exynos5-subcmu.c +9 -4
Lines of this file are not shown. View the raw message.
drivers/clk/uniphier/clk-uniphier-cpugear.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/clocksource/arm_arch_timer.c +55 -0
55 lines not on this page · raw message
drivers/crypto/caam/caamhash.c +26 -67
93 lines not on this page · raw message
drivers/crypto/rockchip/rk3288_crypto.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/crypto/rockchip/rk3288_crypto.h +3 -1
Lines of this file are not shown. View the raw message.
drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c +37 -2
Lines of this file are not shown. View the raw message.
drivers/crypto/rockchip/rk3288_crypto_ahash.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c +6 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/media/common/videobuf2/videobuf2-v4l2.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/media/platform/vimc/vimc-capture.c +9 -9
Lines of this file are not shown. View the raw message.
drivers/media/platform/vimc/vimc-common.c +0 -35
Lines of this file are not shown. View the raw message.
drivers/media/platform/vimc/vimc-common.h +2 -13
Lines of this file are not shown. View the raw message.
drivers/media/platform/vimc/vimc-debayer.c +4 -22
Lines of this file are not shown. View the raw message.
drivers/media/platform/vimc/vimc-scaler.c +4 -24
Lines of this file are not shown. View the raw message.
drivers/media/platform/vimc/vimc-sensor.c +13 -43
56 lines not on this page · raw message
drivers/media/platform/vimc/vimc-streamer.c new file +188 -0
188 lines not on this page · raw message
drivers/media/platform/vimc/vimc-streamer.h new file +38 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/atheros/atlx/atl2.c +1 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bcmsysport.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bnxt/bnxt.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bnxt/bnxt.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/cavium/thunder/nic_main.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/cavium/thunder/nicvf_main.c +20 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +5 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/mv643xx_eth.c +6 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/bpf/jit.c +6 -11
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_iwarp.c +15 -6
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_iwarp.h +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/libertas_tf/if_usb.c +0 -2
Lines of this file are not shown. View the raw message.
drivers/pci/controller/dwc/pcie-designware-host.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/pinctrl/meson/pinctrl-meson8b.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/scsi/sd.c +50 -9
59 lines not on this page · raw message
drivers/staging/media/imx/imx-ic-prpencvf.c +17 -9
Lines of this file are not shown. View the raw message.
drivers/staging/media/imx/imx-media-csi.c +27 -15
42 lines not on this page · raw message
drivers/tty/serial/8250/8250_pci.c +123 -18
141 lines not on this page · raw message
fs/ext4/ioctl.c +73 -27
100 lines not on this page · raw message
fs/overlayfs/copy_up.c +44 -15
59 lines not on this page · raw message
fs/overlayfs/util.c +35 -20
55 lines not on this page · raw message
include/keys/request_key_auth-type.h new file +36 -0
Lines of this file are not shown. View the raw message.
security/keys/request_key.c +29 -43
72 lines not on this page · raw message
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c +34 -3
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/test_lpm_map.c +10 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/fib_tests.sh +1 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.