Linux 5.3.15
Greg KH
maintainerI'm announcing the release of the 5.3.15 kernel.
All users of the 5.3 kernel series must upgrade.
The updated 5.3.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.3.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 8 arch/arm/boot/dts/stm32mp157c.dtsi | 4 arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 1 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 2 arch/arm64/boot/dts/freescale/imx8mm.dtsi | 6 arch/arm64/boot/dts/freescale/imx8mq-zii-ultra.dtsi | 2 arch/powerpc/net/bpf_jit_comp64.c | 13 arch/x86/include/asm/fpu/internal.h | 2 arch/x86/kernel/cpu/resctrl/ctrlmondata.c | 4 arch/x86/kernel/tsc.c | 3 drivers/block/drbd/drbd_main.c | 1 drivers/clk/at91/clk-main.c | 7 drivers/clk/at91/sam9x60.c | 1 drivers/clk/at91/sckc.c | 20 - drivers/clk/meson/gxbb.c | 1 drivers/clk/samsung/clk-exynos5420.c | 27 + drivers/clk/samsung/clk-exynos5433.c | 14 drivers/clk/sunxi-ng/ccu-sun9i-a80.c | 2 drivers/clk/sunxi/clk-sunxi.c | 4 drivers/clk/ti/clk-dra7-atl.c | 6 drivers/clk/ti/clkctrl.c | 5 drivers/clocksource/timer-mediatek.c | 10 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 5 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 1 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 7 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 2 drivers/gpu/drm/amd/powerplay/vega20_ppt.c | 2 drivers/hid/hid-core.c | 51 ++ drivers/misc/mei/bus.c | 9 drivers/misc/mei/hw-me-regs.h | 1 drivers/misc/mei/pci-me.c | 1 drivers/net/can/c_can/c_can.c | 26 + drivers/net/can/flexcan.c | 10 drivers/net/can/rx-offload.c | 96 ++++- drivers/net/can/spi/mcp251x.c | 2 drivers/net/can/usb/peak_usb/pcan_usb.c | 15 drivers/net/dsa/sja1105/sja1105_main.c | 10 drivers/net/ethernet/broadcom/genet/bcmgenet.c | 7 drivers/net/ethernet/broadcom/genet/bcmmii.c | 33 + drivers/net/ethernet/cadence/macb_main.c | 1 drivers/net/ethernet/freescale/fec_main.c | 13 drivers/net/ethernet/google/gve/gve_main.c | 3 drivers/net/ethernet/intel/i40e/i40e_common.c | 3 drivers/net/ethernet/intel/iavf/iavf_main.c | 4 drivers/net/ethernet/intel/ice/ice_sched.c | 2 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 2 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c | 3 drivers/net/ethernet/mscc/ocelot.h | 2 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 2 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 3 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c | 2 drivers/net/macvlan.c | 3 drivers/net/phy/mdio_bus.c | 6 drivers/net/slip/slip.c | 1 drivers/nvme/host/multipath.c | 2 drivers/nvme/host/rdma.c | 8 drivers/pinctrl/intel/pinctrl-cherryview.c | 24 - drivers/platform/x86/hp-wmi.c | 10 drivers/pwm/pwm-bcm-iproc.c | 1 drivers/reset/core.c | 1 drivers/soc/imx/gpc.c | 8 drivers/soundwire/intel.c | 4 drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 5 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 7 drivers/staging/wilc1000/wilc_hif.c | 25 - drivers/thunderbolt/switch.c | 82 ++-- drivers/usb/dwc2/core.c | 2 drivers/usb/serial/ftdi_sio.c | 3 drivers/usb/serial/ftdi_sio_ids.h | 7 drivers/video/fbdev/c2p_core.h | 8 drivers/watchdog/bd70528_wdt.c | 1 drivers/watchdog/imx_sc_wdt.c | 8 drivers/watchdog/meson_gxbb_wdt.c | 4 drivers/watchdog/pm8916_wdt.c | 15 fs/ceph/super.c | 11 fs/ext4/inode.c | 15 fs/ext4/super.c | 21 - fs/io_uring.c | 23 + include/linux/bpf.h | 4 include/linux/idr.h | 2 include/linux/reset-controller.h | 2 include/linux/skmsg.h | 26 - include/net/fq_impl.h | 4 include/net/sctp/structs.h | 3 include/net/tls.h | 3 kernel/bpf/cgroup.c | 4 kernel/bpf/syscall.c | 7 kernel/stacktrace.c | 6 lib/idr.c | 31 - lib/radix-tree.c | 2 lib/test_xarray.c | 24 + lib/xarray.c | 4 net/bridge/netfilter/ebt_dnat.c | 19 - net/core/filter.c | 8 net/core/skmsg.c | 2 net/ipv4/tcp_bpf.c | 2 net/mac80211/main.c | 2 net/mac80211/sta_info.c | 3 net/netfilter/ipset/ip_set_core.c | 41 +- net/netfilter/ipset/ip_set_hash_net.c | 1 net/netfilter/ipset/ip_set_hash_netnet.c | 1 net/netfilter/nf_tables_api.c | 1 net/netfilter/nf_tables_offload.c | 3 net/openvswitch/datapath.c | 17 net/psample/psample.c | 2 net/sched/sch_mq.c | 3 net/sched/sch_mqprio.c | 4 net/sched/sch_multiq.c | 2 net/sched/sch_prio.c | 2 net/sctp/associola.c | 1 net/sctp/endpointola.c | 1 net/sctp/input.c | 4 net/sctp/sm_statefuns.c | 4 net/socket.c | 184 +++++++--- net/tipc/netlink_compat.c | 4 net/tls/tls_main.c | 13 net/tls/tls_sw.c | 32 + net/xfrm/xfrm_state.c | 2 samples/bpf/Makefile | 1 scripts/gdb/linux/symbols.py | 3 sound/core/compress_offload.c | 2 sound/pci/hda/patch_hdmi.c | 13 sound/soc/codecs/hdac_hda.c | 2 sound/soc/codecs/msm8916-wcd-analog.c | 4 sound/soc/kirkwood/kirkwood-i2s.c | 11 sound/soc/rockchip/rockchip_max98090.c | 7 sound/soc/sof/ipc.c | 4 sound/soc/sof/topology.c | 11 sound/soc/stm/stm32_sai_sub.c | 12 sound/soc/ti/sdma-pcm.c | 2 tools/perf/util/scripting-engines/trace-event-perl.c | 8 tools/perf/util/scripting-engines/trace-event-python.c | 9 tools/testing/selftests/bpf/test_sockmap.c | 47 +- tools/testing/selftests/bpf/test_sysctl.c | 8 tools/testing/selftests/bpf/xdping.c | 2 tools/testing/selftests/net/pmtu.sh | 5 tools/testing/selftests/net/tls.c | 60 +++ tools/testing/selftests/vm/gup_benchmark.c | 2 140 files changed, 1063 insertions(+), 405 deletions(-)
Ahmed Zaki (1):
mac80211: fix station inactive_time shortly after boot
Ajay Singh (1):
staging: wilc1000: fix illegal memory access in wilc_parse_join_bss_param()
Alexander Usyskin (2):
mei: bus: prefix device names on bus with the bus name
mei: me: add comet point V device id
Alexandre Belloni (1):
clk: at91: avoid sleeping early
Andy Shevchenko (1):
pinctrl: cherryview: Allocate IRQ chip dynamic
Anson Huang (1):
watchdog: imx_sc_wdt: Pretimeout should follow SCU firmware format
Anton Eidelman (1):
nvme-multipath: fix crash in nvme_mpath_clear_ctrl_paths
Arkadiusz Kubalewski (1):
i40e: Fix for ethtool -m issue on X722 NIC
Bard Liao (1):
soundwire: intel: fix intel_register_dai PDI offsets and numbers
Ben Dooks (1):
soc: imx: gpc: fix initialiser format
Björn Töpel (2):
samples/bpf: fix build by setting HAVE_ATTR_TEST to zero
bpf: Change size to u64 for bpf_map_{area_alloc, charge_init}()
Candle Sun (1):
HID: core: check whether Usage Page item is after Usage ID items
Cheng-Yi Chiang (1):
ASoC: rockchip: rockchip_max98090: Enable SHDN to fix headset detection
Christophe Roullier (1):
ARM: dts: stm32: Fix CAN RAM mapping on stm32mp157c
Chuhong Yuan (3):
net: fec: add missed clk_disable_unprepare in remove
net: macb: add missed tasklet_kill
net: fec: fix clock count mis-match
Colin Ian King (2):
clk: sunxi-ng: a80: fix the zero'ing of bits 16 and 18
ice: fix potential infinite loop because loop counter being too small
Dan Carpenter (1):
block: drbd: remove a stray unlock in __drbd_send_protocol()
David Bauer (1):
mdio_bus: don't use managed reset-controller
Dmytro Linkin (1):
net/mlx5e: Use correct enum to determine uplink port
Doug Berger (2):
net: bcmgenet: use RGMII loopback for MAC reset
net: bcmgenet: reapply manual settings to the PHY
Dragos Tarcatu (1):
ASoC: SOF: topology: Fix bytes control size checks
Dust Li (1):
net: sched: fix tc -s class show no bstats on class with nolock subqueues
Eric Dumazet (1):
powerpc/bpf: Fix tail call implementation
Eugen Hristev (2):
clk: at91: sam9x60: fix programmable clock
clk: at91: fix update bit maps on CFG_MOR write
Evan Quan (1):
drm/amdgpu: register gpu instance before fan boost feature enablment
Fabien Parent (1):
clocksource/drivers/mediatek: Fix error handling
Fabio D'Urso (1):
USB: serial: ftdi_sio: add device IDs for U-Blox C099-F9P
Fabio Estevam (1):
ARM: dts: imx6qdl-sabreauto: Fix storm of accelerometer interrupts
Florian Westphal (1):
bridge: ebtables: don't crash when using dnat target in output chains
Geert Uytterhoeven (1):
fbdev: c2p: Fix link failure on non-inlining
Greg Kroah-Hartman (1):
Linux 5.3.15
Hans de Goede (4):
staging: rtl8723bs: Drop ACPI device ids
staging: rtl8723bs: Add 024c:0525 to the list of SDIO device-ids platform/x86: hp-wmi: Fix ACPI errors caused by too small buffer platform/x86: hp-wmi: Fix ACPI errors caused by passing 0 as input size
Ilya Leoshkevich (2):
bpf: Allow narrow loads of bpf_sysctl fields with offset > 0 scripts/gdb: fix debugging modules compiled with hot/cold partitioning
Jakub Kicinski (8):
net/tls: take into account that bpf_exec_tx_verdict() may free the record net/tls: free the record on encryption error
net: skmsg: fix TLS 1.3 crash with full sk_msg selftests/tls: add a test for fragmented messages
net/tls: remove the dead inplace_crypto code
net/tls: use sg_next() to walk sg entries
selftests: bpf: test_sockmap: handle file creation failures gracefully
selftests: bpf: correct perror strings
Jeff Layton (1):
ceph: return -EINVAL if given fsc mount option on kernel w/o support
Jens Axboe (3):
io_uring: async workers should inherit the user creds
net: separate out the msghdr copy from ___sys_{send,recv}msg()
net: disallow ancillary data for __sys_{send,recv}msg_file()
Jeroen Hofstee (3):
can: peak_usb: report bus recovery as well
can: c_can: D_CAN: c_can_chip_config(): perform a sofware reset on open
can: rx-offload: can_rx_offload_irq_offload_timestamp(): continue on error
Jeroen de Borst (1):
gve: Fix the queue page list allocated pages count
Jiri Slaby (1):
stacktrace: Don't skip first entry on noncurrent tasks
Johannes Berg (1):
mac80211: fix ieee80211_txq_setup_flows() failure path
John Hubbard (1):
mm/gup_benchmark: fix MAP_HUGETLB case
John Rutherford (1):
tipc: fix link name length check
Jorge Ramirez-Ortiz (1):
watchdog: pm8916_wdt: fix pretimeout registration flow
Jose Abreu (4):
net: stmmac: gmac4: bitrev32 returns u32
net: stmmac: xgmac: bitrev32 returns u32
net: stmmac: xgmac: Fix TSA selection
net: stmmac: xgmac: Disable Flow Control when 1 or more queues are in AV
Jouni Hogander (1):
slip: Fix use-after-free Read in slip_open
Jozsef Kadlecsik (1):
netfilter: ipset: Fix nla_policies to fully support NL_VALIDATE_STRICT
Kai Vehmanen (2):
ASoC: hdac_hda: fix race in device removal
ALSA: hda: hdmi - add Tigerlake support
Kevin Wang (1):
drm/amd/swSMU: fix smu workload bit map error
Kishon Vijay Abraham I (1):
reset: Fix memory leak in reset_control_array_put()
Lucas Stach (1):
arm64: dts: zii-ultra: fix ARM regulator GPIO handle
Marc Kleine-Budde (6):
can: rx-offload: can_rx_offload_queue_tail(): fix error handling, avoid skb mem leak
can: rx-offload: can_rx_offload_offload_one(): do not increase the skb_queue beyond skb_queue_len_max
can: rx-offload: can_rx_offload_offload_one(): increment rx_fifo_errors on queue overflow or OOM
can: rx-offload: can_rx_offload_offload_one(): use ERR_PTR() to propagate error value in case of errors
can: rx-offload: can_rx_offload_irq_offload_fifo(): continue on error
can: flexcan: increase error counters if skb enqueueing via can_rx_offload_queue_sorted() fails
Marek Szyprowski (3):
clk: samsung: exynos5433: Fix error paths
clk: samsung: exynos542x: Move G3D subsystem clocks to its sub-CMU
clk: samsung: exynos5420: Preserve PLL configuration during suspend/resume
Martin Blumenstingl (1):
clk: meson: gxbb: let sar_adc_clk_div set the parent clock rate
Mathias Kresin (1):
usb: dwc2: use a longer core rest timeout in dwc2_core_reset()
Matthew Wilcox (Oracle) (4):
XArray: Fix xas_next() with a single entry at 0
idr: Fix idr_get_next_ul race with idr_remove
idr: Fix integer overflow in idr_for_each_entry
idr: Fix idr_alloc_u32 on 32-bit systems
Matti Vaittinen (1):
watchdog: bd70528: Add MODULE_ALIAS to allow module auto loading
Max Gurtovoy (1):
nvme-rdma: fix a segmentation fault during module unload
Menglong Dong (1):
macvlan: schedule bc_work even if error
Michael Zhivich (1):
x86/tsc: Respect tsc command line paraemeter for clocksource_tsc_early
Mika Westerberg (3):
thunderbolt: Read DP IN adapter first two dwords in one go
thunderbolt: Fix lockdep circular locking depedency warning
thunderbolt: Power cycle the router if NVM authentication fails
Nathan Chancellor (1):
clk: sunxi: Fix operator precedence in sunxi_divs_clk_setup
Navid Emamdoost (2):
ASoC: SOF: ipc: Fix memory leak in sof_set_get_large_ctrl_data
sctp: Fix memory leak in sctp_sf_do_5_2_4_dupcook
Nicholas Nunley (1):
iavf: initialize ITRN registers with correct values
Nikolay Aleksandrov (1):
net: psample: fix skb_over_panic
Oleksij Rempel (1):
net: dsa: sja1105: fix sja1105_parse_rgmii_delays()
Olivier Moysan (1):
ASoC: stm32: sai: add restriction on mmap support
Ondrej Jirman (1):
ARM: dts: sun8i-a83t-tbs-a711: Fix WiFi resume from suspend
Pablo Neira Ayuso (2):
netfilter: nf_tables: bogus EOPNOTSUPP on basechain update
netfilter: nf_tables_offload: skip EBUSY on chain update
Pan Bian (1):
staging: rtl8192e: fix potential use after free
Paolo Abeni (3):
openvswitch: fix flow command message size
openvswitch: drop unneeded BUG_ON() in ovs_flow_cmd_build_info()
openvswitch: remove another BUG_ON()
Peter Ujfalusi (2):
ASoC: ti: sdma-pcm: Add back the flags parameter for non standard dma names
clk: ti: dra7-atl-clock: Remove ti_clk_add_alias call
Randy Dunlap (1):
reset: fix reset_control_ops kerneldoc comment
Roi Dayan (1):
net/mlx5e: Fix eswitch debug print of max fdb flow
Russell King (2):
ASoC: kirkwood: fix external clock probe defer
ASoC: kirkwood: fix device remove ordering
Sebastian Andrzej Siewior (1):
x86/fpu: Don't cache access to fpu_fpregs_owner_ctx
Shengjiu Wang (1):
arm64: dts: imx8mm: fix compatible string for sdma
Shirish S (1):
drm/amdgpu: dont schedule jobs while in reset
Steffen Klassert (1):
xfrm: Fix memleak on xfrm state destroy
Stephan Gerhold (1):
ASoC: msm8916-wcd-analog: Fix RX1 selection in RDAC2 MUX
Steven Rostedt (VMware) (1):
perf scripting engines: Iterate on tep event arrays directly
Thadeu Lima de Souza Cascardo (1):
selftests: pmtu: use -oneline for ip route list cache
Theodore Ts'o (1):
ext4: add more paranoia checking in ext4_expand_extra_isize handling
Timo Schlüßler (1):
can: mcp251x: mcp251x_restart_work_handler(): Fix potential force_quit race condition
Toke Høiland-Jørgensen (1):
net/fq_impl: Switch to kvmalloc() for memory allocation
Tony Lindgren (1):
clk: ti: clkctrl: Fix failed to enable error with double udelay timeout
Uwe Kleine-König (1):
pwm: bcm-iproc: Prevent unloading the driver module while in use
Vladimir Oltean (1):
net: mscc: ocelot: fix __ocelot_rmw_ix prototype
Xiaochen Shen (1):
x86/resctrl: Prevent NULL pointer dereference when reading mondata
Xiaojun Sang (1):
ASoC: compress: fix unsigned integer overflow check
Xin Long (1):
sctp: cache netns in sctp_ep_common
Xingyu Chen (1):
watchdog: meson: Fix the wrong value of left time
Yuantian Tang (1):
arm64: dts: ls1028a: fix a compatible issue
changzhu (1):
drm/amdgpu: add warning for GRBM 1-cycle delay issue in gfx9
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 3 -SUBLEVEL = 14 +SUBLEVEL = 15 EXTRAVERSION = NAME = Bobtail Squid
arch/arm/boot/dts/imx6qdl-sabreauto.dtsi +8 -0
@@ -230,6 +230,8 @@ accelerometer@1c { compatible = "fsl,mma8451"; reg = <0x1c>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_mma8451_int>; interrupt-parent = <&gpio6>; interrupts = <31 IRQ_TYPE_LEVEL_LOW>; };
@@ -628,6 +630,12 @@ >; }; + pinctrl_mma8451_int: mma8451intgrp { + fsl,pins = < + MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0xb0b1 + >; + }; + pinctrl_pwm3: pwm1grp { fsl,pins = < MX6QDL_PAD_SD4_DAT1__PWM3_OUT 0x1b0b1
arch/arm/boot/dts/stm32mp157c.dtsi +2 -2
@@ -914,7 +914,7 @@ interrupt-names = "int0", "int1"; clocks = <&rcc CK_HSE>, <&rcc FDCAN_K>; clock-names = "hclk", "cclk"; - bosch,mram-cfg = <0x1400 0 0 32 0 0 2 2>; + bosch,mram-cfg = <0x0 0 0 32 0 0 2 2>; status = "disabled"; };
@@ -927,7 +927,7 @@ interrupt-names = "int0", "int1"; clocks = <&rcc CK_HSE>, <&rcc FDCAN_K>; clock-names = "hclk", "cclk"; - bosch,mram-cfg = <0x0 0 0 32 0 0 2 2>; + bosch,mram-cfg = <0x1400 0 0 32 0 0 2 2>; status = "disabled"; };
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +1 -0
@@ -192,6 +192,7 @@ vqmmc-supply = <®_dldo1>; non-removable; wakeup-source; + keep-power-in-suspend; status = "okay"; brcmf: wifi@1 {
arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +1 -1
@@ -99,7 +99,7 @@ status = "okay"; i2c-mux@77 { - compatible = "nxp,pca9847"; + compatible = "nxp,pca9547"; reg = <0x77>; #address-cells = <1>; #size-cells = <0>;
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -3
@@ -370,7 +370,7 @@ }; sdma2: dma-controller@302c0000 { - compatible = "fsl,imx8mm-sdma", "fsl,imx7d-sdma"; + compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma"; reg = <0x302c0000 0x10000>; interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clk IMX8MM_CLK_SDMA2_ROOT>,
@@ -381,7 +381,7 @@ }; sdma3: dma-controller@302b0000 { - compatible = "fsl,imx8mm-sdma", "fsl,imx7d-sdma"; + compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma"; reg = <0x302b0000 0x10000>; interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clk IMX8MM_CLK_SDMA3_ROOT>,
@@ -693,7 +693,7 @@ }; sdma1: dma-controller@30bd0000 { - compatible = "fsl,imx8mm-sdma", "fsl,imx7d-sdma"; + compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma"; reg = <0x30bd0000 0x10000>; interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clk IMX8MM_CLK_SDMA1_ROOT>,
arch/arm64/boot/dts/freescale/imx8mq-zii-ultra.dtsi +1 -1
@@ -100,7 +100,7 @@ regulator-name = "0V9_ARM"; regulator-min-microvolt = <900000>; regulator-max-microvolt = <1000000>; - gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>; + gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>; states = <1000000 0x1 900000 0x0>; regulator-always-on;
arch/powerpc/net/bpf_jit_comp64.c +13 -0
@@ -1141,6 +1141,19 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp) goto out_addrs; } +/* +* If we have seen a tail call, we need a second pass. +* This is because bpf_jit_emit_common_epilogue() is called +* from bpf_jit_emit_tail_call() with a not yet stable ctx->seen. +*/ +if (cgctx.seen &SEEN_TAILCALL ) { + cgctx.idx =0 ; +if (bpf_jit_build_body (fp,0 , &cgctx, addrs, false)) { + fp = org_fp; + goto out_addrs; + } + } +/* * Pretend to build prologue, given the features we've seen. This will * update ctgtx.idx as it pretends to output instructions, then we can
arch/x86/include/asm/fpu/internal.h +1 -1
@@ -509,7 +509,7 @@ static inline void __fpu_invalidate_fpregs_state(struct fpu *fpu)static inline int fpregs_state_valid (struct fpu *fpu,unsigned int cpu) { -return fpu ==this_cpu_read_stable (fpu_fpregs_owner_ctx) && cpu == fpu->last_cpu; +return fpu ==this_cpu_read (fpu_fpregs_owner_ctx) && cpu == fpu->last_cpu; }/*
arch/x86/kernel/cpu/resctrl/ctrlmondata.c +4 -0
@@ -522,6 +522,10 @@ int rdtgroup_mondata_show(struct seq_file *m, void *arg)int ret =0 ; rdtgrp =rdtgroup_kn_lock_live (of->kn); +if (!rdtgrp) { + ret = -ENOENT ; + goto out; + } md.priv = of->kn->priv; resid = md.u.rid;
arch/x86/kernel/tsc.c +3 -0
@@ -1505,6 +1505,9 @@ void __init tsc_init(void)return ; } +if (tsc_clocksource_reliable || no_tsc_watchdog) + clocksource_tsc_early.flags &= ~CLOCK_SOURCE_MUST_VERIFY ; +clocksource_register_khz (&clocksource_tsc_early, tsc_khz);detect_art (); }
drivers/block/drbd/drbd_main.c +0 -1
@@ -786,7 +786,6 @@ int __drbd_send_protocol(struct drbd_connection *connection, enum drbd_packet cmif (nc->tentative && connection->agreed_pro_version <92 ) {rcu_read_unlock (); -mutex_unlock (&sock->mutex);drbd_err (connection,"--dry-run is not supported by peer" );return -EOPNOTSUPP ; }
drivers/clk/at91/clk-main.c +5 -2
@@ -156,7 +156,7 @@ at91_clk_register_main_osc(struct regmap *regmap,if (bypass)regmap_update_bits (regmap,AT91_CKGR_MOR ,MOR_KEY_MASK | -AT91_PMC_MOSCEN , +AT91_PMC_OSCBYPASS ,AT91_PMC_OSCBYPASS |AT91_PMC_KEY ); hw = &osc->hw;
@@ -297,7 +297,10 @@ static int clk_main_probe_frequency(struct regmap *regmap)regmap_read (regmap,AT91_CKGR_MCFR , &mcfr);if (mcfr &AT91_PMC_MAINRDY )return 0 ; -usleep_range (MAINF_LOOP_MIN_WAIT ,MAINF_LOOP_MAX_WAIT ); +if (system_state <SYSTEM_RUNNING ) +udelay (MAINF_LOOP_MIN_WAIT ); +else +usleep_range (MAINF_LOOP_MIN_WAIT ,MAINF_LOOP_MAX_WAIT ); }while (time_before (prep_time, timeout));return -ETIMEDOUT ;
drivers/clk/at91/sam9x60.c +1 -0
@@ -43,6 +43,7 @@ static const struct clk_pll_characteristics upll_characteristics = { };static const struct clk_programmable_layout sam9x60_programmable_layout = { + .pres_mask =0xff , .pres_shift =8 , .css_mask =0x1f , .have_slck_mck =0 ,
drivers/clk/at91/sckc.c +16 -4
@@ -76,7 +76,10 @@ static int clk_slow_osc_prepare(struct clk_hw *hw)writel (tmp | osc->bits->cr_osc32en, sckcr); -usleep_range (osc->startup_usec, osc->startup_usec +1 ); +if (system_state <SYSTEM_RUNNING ) +udelay (osc->startup_usec); +else +usleep_range (osc->startup_usec, osc->startup_usec +1 );return 0 ; }
@@ -187,7 +190,10 @@ static int clk_slow_rc_osc_prepare(struct clk_hw *hw)writel (readl (sckcr) | osc->bits->cr_rcen, sckcr); -usleep_range (osc->startup_usec, osc->startup_usec +1 ); +if (system_state <SYSTEM_RUNNING ) +udelay (osc->startup_usec); +else +usleep_range (osc->startup_usec, osc->startup_usec +1 );return 0 ; }
@@ -288,7 +294,10 @@ static int clk_sam9x5_slow_set_parent(struct clk_hw *hw, u8 index)writel (tmp, sckcr); -usleep_range (SLOWCK_SW_TIME_USEC ,SLOWCK_SW_TIME_USEC +1 ); +if (system_state <SYSTEM_RUNNING ) +udelay (SLOWCK_SW_TIME_USEC ); +else +usleep_range (SLOWCK_SW_TIME_USEC ,SLOWCK_SW_TIME_USEC +1 );return 0 ; }
@@ -533,7 +542,10 @@ static int clk_sama5d4_slow_osc_prepare(struct clk_hw *hw)return 0 ; } -usleep_range (osc->startup_usec, osc->startup_usec +1 ); +if (system_state <SYSTEM_RUNNING ) +udelay (osc->startup_usec); +else +usleep_range (osc->startup_usec, osc->startup_usec +1 ); osc->prepared = true;return 0 ;
drivers/clk/meson/gxbb.c +1 -0
@@ -866,6 +866,7 @@ static struct clk_regmap gxbb_sar_adc_clk_div = { .ops = &clk_regmap_divider_ops, .parent_names = (const char *[]){ "sar_adc_clk_sel" }, .num_parents = 1, + .flags = CLK_SET_RATE_PARENT, }, };
drivers/clk/samsung/clk-exynos5420.c +25 -2
@@ -165,12 +165,18 @@ static const unsigned long exynos5x_clk_regs[] __initconst = {GATE_BUS_CPU ,GATE_SCLK_CPU ,CLKOUT_CMU_CPU , +CPLL_CON0 , +DPLL_CON0 ,EPLL_CON0 ,EPLL_CON1 ,EPLL_CON2 ,RPLL_CON0 ,RPLL_CON1 ,RPLL_CON2 , +IPLL_CON0 , +SPLL_CON0 , +VPLL_CON0 , +MPLL_CON0 ,SRC_TOP0 ,SRC_TOP1 , SRC_TOP2,
@@ -1172,8 +1178,6 @@ static const struct samsung_gate_clock exynos5x_gate_clks[] __initconst = {GATE (CLK_SCLK_ISP_SENSOR2 ,"sclk_isp_sensor2" ,"dout_isp_sensor2" ,GATE_TOP_SCLK_ISP ,12 ,CLK_SET_RATE_PARENT ,0 ), -GATE (CLK_G3D ,"g3d" ,"mout_user_aclk_g3d" ,GATE_IP_G3D ,9 ,0 ,0 ), -/* CDREX */ GATE (CLK_CLKM_PHY0 ,"clkm_phy0" ,"dout_sclk_cdrex" , GATE_BUS_CDREX0, 0, 0, 0),
@@ -1248,6 +1252,15 @@ static struct exynos5_subcmu_reg_dump exynos5x_gsc_suspend_regs[] = { { DIV2_RATIO0, 0, 0x30 }, /* DIV dout_gscl_blk_300 */ }; +static const struct samsung_gate_clock exynos5x_g3d_gate_clks[]__initconst = { +GATE (CLK_G3D ,"g3d" ,"mout_user_aclk_g3d" ,GATE_IP_G3D ,9 ,0 ,0 ), +}; + +static struct exynos5_subcmu_reg_dump exynos5x_g3d_suspend_regs[] = { + {GATE_IP_G3D ,0x3ff ,0x3ff },/* G3D gates */ + {SRC_TOP5 ,0 ,BIT (16 ) },/* MUX mout_user_aclk_g3d */ +}; +static const struct samsung_div_clock exynos5x_mfc_div_clks[]__initconst = {DIV (0 ,"dout_mfc_blk" ,"mout_user_aclk333" ,DIV4_RATIO ,0 ,2 ), };
@@ -1320,6 +1333,14 @@ static const struct exynos5_subcmu_info exynos5x_gsc_subcmu = { .pd_name = "GSC", }; +static const struct exynos5_subcmu_info exynos5x_g3d_subcmu = { + .gate_clks = exynos5x_g3d_gate_clks, + .nr_gate_clks =ARRAY_SIZE (exynos5x_g3d_gate_clks), + .suspend_regs = exynos5x_g3d_suspend_regs, + .nr_suspend_regs =ARRAY_SIZE (exynos5x_g3d_suspend_regs), + .pd_name ="G3D" , +}; +static const struct exynos5_subcmu_info exynos5x_mfc_subcmu = { .div_clks = exynos5x_mfc_div_clks, .nr_div_clks =ARRAY_SIZE (exynos5x_mfc_div_clks),
@@ -1351,6 +1372,7 @@ static const struct exynos5_subcmu_info exynos5800_mau_subcmu = {static const struct exynos5_subcmu_info *exynos5x_subcmus[] = { &exynos5x_disp_subcmu, &exynos5x_gsc_subcmu, + &exynos5x_g3d_subcmu, &exynos5x_mfc_subcmu, &exynos5x_mscl_subcmu, };
@@ -1358,6 +1380,7 @@ static const struct exynos5_subcmu_info *exynos5x_subcmus[] = {static const struct exynos5_subcmu_info *exynos5800_subcmus[] = { &exynos5x_disp_subcmu, &exynos5x_gsc_subcmu, + &exynos5x_g3d_subcmu, &exynos5x_mfc_subcmu, &exynos5x_mscl_subcmu, &exynos5800_mau_subcmu,
drivers/clk/samsung/clk-exynos5433.c +12 -2
@@ -13,6 +13,7 @@#include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> +#include <linux/slab.h> #include <dt-bindings/clock/exynos5433.h>
@@ -5584,6 +5585,8 @@ static int __init exynos5433_cmu_probe(struct platform_device *pdev) data->clk_save =samsung_clk_alloc_reg_dump (info->clk_regs, info->nr_clk_regs); +if (!data->clk_save) +return -ENOMEM ; data->nr_clk_save = info->nr_clk_regs; data->clk_suspend = info->suspend_regs; data->nr_clk_suspend = info->nr_suspend_regs;
@@ -5592,12 +5595,19 @@ static int __init exynos5433_cmu_probe(struct platform_device *pdev)if (data->nr_pclks >0 ) { data->pclks =devm_kcalloc (dev,sizeof (struct clk *), data->nr_pclks,GFP_KERNEL ); - +if (!data->pclks) { +kfree (data->clk_save); +return -ENOMEM ; + }for (i =0 ; i < data->nr_pclks; i++) {struct clk *clk =of_clk_get (dev->of_node, i); -if (IS_ERR (clk)) +if (IS_ERR (clk)) { +kfree (data->clk_save); +while (--i >=0 ) +clk_put (data->pclks[i]);return PTR_ERR (clk); + } data->pclks[i] = clk; } }
drivers/clk/sunxi-ng/ccu-sun9i-a80.c +1 -1
@@ -1224,7 +1224,7 @@ static int sun9i_a80_ccu_probe(struct platform_device *pdev)/* Enforce d1 = 0, d2 = 0 for Audio PLL */ val =readl (reg +SUN9I_A80_PLL_AUDIO_REG ); - val &= (BIT (16 ) &BIT (18 )); + val &= ~(BIT (16 ) |BIT (18 ));writel (val, reg +SUN9I_A80_PLL_AUDIO_REG );/* Enforce P = 1 for both CPU cluster PLLs */
drivers/clk/sunxi/clk-sunxi.c +2 -2
@@ -1080,8 +1080,8 @@ static struct clk ** __init sunxi_divs_clk_setup(struct device_node *node, rate_hw, rate_ops, gate_hw, &clk_gate_ops, clkflags | - data->div[i].critical ? - CLK_IS_CRITICAL : 0); + (data->div[i].critical ? + CLK_IS_CRITICAL : 0));WARN_ON (IS_ERR (clk_data->clks[i])); }
drivers/clk/ti/clk-dra7-atl.c +0 -6
@@ -174,7 +174,6 @@ static void __init of_dra7_atl_clock_setup(struct device_node *node)struct clk_init_data init = {NULL };const char **parent_names =NULL ;struct clk *clk; -int ret; clk_hw =kzalloc (sizeof (*clk_hw),GFP_KERNEL );if (!clk_hw) {
@@ -207,11 +206,6 @@ static void __init of_dra7_atl_clock_setup(struct device_node *node) clk =ti_clk_register (NULL , &clk_hw->hw, node->name);if (!IS_ERR (clk)) { - ret =ti_clk_add_alias (NULL , clk, node->name); -if (ret) { -clk_unregister (clk); - goto cleanup; - }of_clk_add_provider (node, of_clk_src_simple_get, clk);kfree (parent_names);return ;
drivers/clk/ti/clkctrl.c +3 -2
@@ -100,11 +100,12 @@ static bool _omap4_is_timeout(union omap4_timeout *time, u32 timeout)* can be from a timer that requires pm_runtime access, which * will eventually bring us here with timekeeping_suspended, * during both suspend entry and resume paths. This happens -* at least on am43xx platform. +* at least on am43xx platform. Account for flakeyness +* with udelay() by multiplying the timeout value by 2. */ if (unlikely (_early_timeout || timekeeping_suspended)) {if (time->cycles++ < timeout) { -udelay (1 ); +udelay (1 *2 );return false; } }else {
drivers/clocksource/timer-mediatek.c +2 -8
@@ -268,15 +268,12 @@ static int __init mtk_syst_init(struct device_node *node) ret =timer_of_init (node, &to);if (ret) - goto err; +return ret;clockevents_config_and_register (&to.clkevt,timer_of_rate (&to),TIMER_SYNC_TICKS ,0xffffffff );return 0 ; -err: -timer_of_cleanup (&to); -return ret; }static int __init mtk_gpt_init (struct device_node *node)
@@ -293,7 +290,7 @@ static int __init mtk_gpt_init(struct device_node *node) ret =timer_of_init (node, &to);if (ret) - goto err; +return ret;/* Configure clock source */ mtk_gpt_setup (&to,TIMER_CLK_SRC ,GPT_CTRL_OP_FREERUN );
@@ -311,9 +308,6 @@ static int __init mtk_gpt_init(struct device_node *node)mtk_gpt_enable_irq (&to,TIMER_CLK_EVT );return 0 ; -err: -timer_of_cleanup (&to); -return ret; }TIMER_OF_DECLARE (mtk_mt6577,"mediatek,mt6577-timer" , mtk_gpt_init);TIMER_OF_DECLARE (mtk_mt6765,"mediatek,mt6765-timer" , mtk_syst_init);
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +4 -1
@@ -597,8 +597,11 @@ void amdgpu_ctx_mgr_entity_fini(struct amdgpu_ctx_mgr *mgr)continue ; } -for (i =0 ; i < num_entities; i++) +for (i =0 ; i < num_entities; i++) { +mutex_lock (&ctx->adev->lock_reset);drm_sched_entity_fini (&ctx->entities[0 ][i].entity); +mutex_unlock (&ctx->adev->lock_reset); + } } }
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +7 -0
@@ -2788,6 +2788,13 @@ int amdgpu_device_init(struct amdgpu_device *adev,DRM_INFO ("amdgpu: acceleration disabled, skipping benchmarks\n" ); } +/* +* Register gpu instance before amdgpu_device_enable_mgpu_fan_boost. +* Otherwise the mgpu fan boost feature will be skipped due to the +* gpu instance is counted less. +*/ +amdgpu_register_gpu_instance (adev); +/* enable clockgating, etc. after ib tests, etc. since some blocks require * explicit gating rather than handling it automatically. */
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +0 -1
@@ -190,7 +190,6 @@ int amdgpu_driver_load_kms(struct drm_device *dev, unsigned long flags)pm_runtime_put_autosuspend (dev->dev); } -amdgpu_register_gpu_instance (adev); out:if (r) {/* balance pm_runtime_get_sync in amdgpu_driver_unload_kms */
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +7 -0
@@ -538,6 +538,13 @@ static void gfx_v9_0_check_fw_write_wait(struct amdgpu_device *adev) adev->gfx.me_fw_write_wait = false; adev->gfx.mec_fw_write_wait = false; +if ((adev->gfx.mec_fw_version <0x000001a5 ) || + (adev->gfx.mec_feature_version <46 ) || + (adev->gfx.pfp_fw_version <0x000000b7 ) || + (adev->gfx.pfp_feature_version <46 )) +DRM_WARN_ONCE ("Warning: check cp_fw_version and update it to realize \ +GRBM requires 1-cycle delay in cp firmware\n" ); +switch (adev->asic_type) {case CHIP_VEGA10 : if ((adev->gfx.me_fw_version >= 0x0000009c) &&
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +1 -1
@@ -205,7 +205,7 @@ static int navi10_workload_map[] = {WORKLOAD_MAP (PP_SMC_POWER_PROFILE_POWERSAVING ,WORKLOAD_PPLIB_POWER_SAVING_BIT ),WORKLOAD_MAP (PP_SMC_POWER_PROFILE_VIDEO ,WORKLOAD_PPLIB_VIDEO_BIT ),WORKLOAD_MAP (PP_SMC_POWER_PROFILE_VR ,WORKLOAD_PPLIB_VR_BIT ), -WORKLOAD_MAP (PP_SMC_POWER_PROFILE_COMPUTE ,WORKLOAD_PPLIB_CUSTOM_BIT ), +WORKLOAD_MAP (PP_SMC_POWER_PROFILE_COMPUTE ,WORKLOAD_PPLIB_COMPUTE_BIT ), WORKLOAD_MAP(PP_SMC_POWER_PROFILE_CUSTOM, WORKLOAD_PPLIB_CUSTOM_BIT), };
drivers/gpu/drm/amd/powerplay/vega20_ppt.c +1 -1
@@ -219,7 +219,7 @@ static int vega20_workload_map[] = {WORKLOAD_MAP (PP_SMC_POWER_PROFILE_POWERSAVING ,WORKLOAD_PPLIB_POWER_SAVING_BIT ),WORKLOAD_MAP (PP_SMC_POWER_PROFILE_VIDEO ,WORKLOAD_PPLIB_VIDEO_BIT ),WORKLOAD_MAP (PP_SMC_POWER_PROFILE_VR ,WORKLOAD_PPLIB_VR_BIT ), -WORKLOAD_MAP (PP_SMC_POWER_PROFILE_COMPUTE ,WORKLOAD_PPLIB_CUSTOM_BIT ), +WORKLOAD_MAP (PP_SMC_POWER_PROFILE_COMPUTE ,WORKLOAD_PPLIB_COMPUTE_BIT ), WORKLOAD_MAP(PP_SMC_POWER_PROFILE_CUSTOM, WORKLOAD_PPLIB_CUSTOM_BIT), };
drivers/hid/hid-core.c +45 -6
84 lines not on this page · raw message
drivers/misc/mei/bus.c +5 -4
@@ -873,15 +873,16 @@ static const struct device_type mei_cl_device_type = {/** * mei_cl_bus_set_name - set device name for me client device +* <controller>-<client device> +* Example: 0000:00:16.0-55213584-9a29-4916-badf-0fb7ed682aeb * * @cldev: me client device */ static inline void mei_cl_bus_set_name (struct mei_cl_device *cldev) { -dev_set_name (&cldev->dev,"mei:%s:%pUl:%02X" , - cldev->name, -mei_me_cl_uuid (cldev->me_cl), -mei_me_cl_ver (cldev->me_cl)); +dev_set_name (&cldev->dev,"%s-%pUl" , +dev_name (cldev->bus->dev), +mei_me_cl_uuid (cldev->me_cl)); }/**
drivers/misc/mei/hw-me-regs.h +1 -0
@@ -81,6 +81,7 @@#define MEI_DEV_ID_CMP_LP 0x02e0/* Comet Point LP */ #define MEI_DEV_ID_CMP_LP_3 0x02e4/* Comet Point LP 3 (iTouch) */ +#define MEI_DEV_ID_CMP_V 0xA3BA/* Comet Point Lake V */ #define MEI_DEV_ID_ICP_LP 0x34E0/* Ice Lake Point LP */
drivers/misc/mei/pci-me.c +1 -0
@@ -98,6 +98,7 @@ static const struct pci_device_id mei_me_pci_tbl[] = { {MEI_PCI_DEVICE(MEI_DEV_ID_CMP_LP, MEI_ME_PCH12_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_CMP_LP_3, MEI_ME_PCH8_CFG)}, + {MEI_PCI_DEVICE(MEI_DEV_ID_CMP_V, MEI_ME_PCH12_CFG)}, {MEI_PCI_DEVICE(MEI_DEV_ID_ICP_LP, MEI_ME_PCH12_CFG)},
drivers/net/can/c_can/c_can.c +26 -0
@@ -52,6 +52,7 @@#define CONTROL_EX_PDR BIT(8)/* control register */ +#define CONTROL_SWR BIT(15)#define CONTROL_TEST BIT(7)#define CONTROL_CCE BIT(6)#define CONTROL_DISABLE_AR BIT(5)
@@ -572,6 +573,26 @@ static void c_can_configure_msg_objects(struct net_device *dev) IF_MCONT_RCV_EOB); } +static int c_can_software_reset (struct net_device *dev) +{ +struct c_can_priv *priv =netdev_priv (dev); +int retry =0 ; + +if (priv->type !=BOSCH_D_CAN ) +return 0 ; + + priv->write_reg (priv,C_CAN_CTRL_REG ,CONTROL_SWR |CONTROL_INIT ); +while (priv->read_reg (priv,C_CAN_CTRL_REG ) &CONTROL_SWR ) { +msleep (20 ); +if (retry++ >100 ) { +netdev_err (dev,"CCTRL: software reset failed\n" ); +return -EIO ; + } + } + +return 0 ; +} +/* * Configure C_CAN chip: * - enable/disable auto-retransmission
@@ -581,6 +602,11 @@ static void c_can_configure_msg_objects(struct net_device *dev)static int c_can_chip_config (struct net_device *dev) {struct c_can_priv *priv =netdev_priv (dev); +int err; + + err =c_can_software_reset (dev); +if (err) +return err;/* enable automatic retransmission */ priv->write_reg (priv,C_CAN_CTRL_REG ,CONTROL_ENABLE_AR );
drivers/net/can/flexcan.c +8 -2
@@ -658,6 +658,7 @@ static void flexcan_irq_bus_err(struct net_device *dev, u32 reg_esr)struct can_frame *cf;bool rx_errors = false, tx_errors = false;u32 timestamp; +int err; timestamp = priv->read (®s->timer) <<16 ;
@@ -706,7 +707,9 @@ static void flexcan_irq_bus_err(struct net_device *dev, u32 reg_esr)if (tx_errors) dev->stats.tx_errors++; -can_rx_offload_queue_sorted (&priv->offload, skb, timestamp); + err =can_rx_offload_queue_sorted (&priv->offload, skb, timestamp); +if (err) + dev->stats.rx_fifo_errors++; }static void flexcan_irq_state (struct net_device *dev,u32 reg_esr)
@@ -719,6 +722,7 @@ static void flexcan_irq_state(struct net_device *dev, u32 reg_esr)int flt;struct can_berr_counter bec;u32 timestamp; +int err; timestamp = priv->read (®s->timer) <<16 ;
@@ -750,7 +754,9 @@ static void flexcan_irq_state(struct net_device *dev, u32 reg_esr)if (unlikely (new_state ==CAN_STATE_BUS_OFF ))can_bus_off (dev); -can_rx_offload_queue_sorted (&priv->offload, skb, timestamp); + err =can_rx_offload_queue_sorted (&priv->offload, skb, timestamp); +if (err) + dev->stats.rx_fifo_errors++; }static inline struct flexcan_priv *rx_offload_to_priv (struct can_rx_offload *offload)
drivers/net/can/rx-offload.c +81 -15
141 lines not on this page · raw message
drivers/net/can/spi/mcp251x.c +1 -1
@@ -759,6 +759,7 @@ static void mcp251x_restart_work_handler(struct work_struct *ws)if (priv->after_suspend) {mcp251x_hw_reset (spi);mcp251x_setup (net, spi); + priv->force_quit =0 ;if (priv->after_suspend &AFTER_SUSPEND_RESTART ) {mcp251x_set_normal_mode (spi); }else if (priv->after_suspend &AFTER_SUSPEND_UP ) {
@@ -770,7 +771,6 @@ static void mcp251x_restart_work_handler(struct work_struct *ws)mcp251x_hw_sleep (spi); } priv->after_suspend =0 ; - priv->force_quit =0 ; }if (priv->restart_tx) {
drivers/net/can/usb/peak_usb/pcan_usb.c +10 -5
@@ -436,8 +436,8 @@ static int pcan_usb_decode_error(struct pcan_usb_msg_context *mc, u8 n, }if ((n &PCAN_USB_ERROR_BUS_LIGHT ) ==0 ) {/* no error (back to active state) */ - mc->pdev->dev.can.state =CAN_STATE_ERROR_ACTIVE ; -return 0 ; + new_state =CAN_STATE_ERROR_ACTIVE ; +break ; }break ;
@@ -460,9 +460,9 @@ static int pcan_usb_decode_error(struct pcan_usb_msg_context *mc, u8 n, }if ((n &PCAN_USB_ERROR_BUS_HEAVY ) ==0 ) { -/* no error (back to active state) */ - mc->pdev->dev.can.state =CAN_STATE_ERROR_ACTIVE ; -return 0 ; +/* no error (back to warning state) */ + new_state =CAN_STATE_ERROR_WARNING ; +break ; }break ;
@@ -501,6 +501,11 @@ static int pcan_usb_decode_error(struct pcan_usb_msg_context *mc, u8 n, mc->pdev->dev.can.can_stats.error_warning++;break ; +case CAN_STATE_ERROR_ACTIVE : + cf->can_id |=CAN_ERR_CRTL ; + cf->data[1 ] =CAN_ERR_CRTL_ACTIVE ; +break ; +default :/* CAN_STATE_MAX (trick to handle other errors) */ cf->can_id |=CAN_ERR_CRTL ;
drivers/net/dsa/sja1105/sja1105_main.c +5 -5
@@ -591,15 +591,15 @@ static int sja1105_parse_rgmii_delays(struct sja1105_private *priv,int i;for (i =0 ; i <SJA1105_NUM_PORTS ; i++) { -if (ports->role ==XMII_MAC ) +if (ports[i].role ==XMII_MAC )continue ; -if (ports->phy_mode ==PHY_INTERFACE_MODE_RGMII_RXID || - ports->phy_mode ==PHY_INTERFACE_MODE_RGMII_ID ) +if (ports[i].phy_mode ==PHY_INTERFACE_MODE_RGMII_RXID || + ports[i].phy_mode ==PHY_INTERFACE_MODE_RGMII_ID ) priv->rgmii_rx_delay[i] = true; -if (ports->phy_mode ==PHY_INTERFACE_MODE_RGMII_TXID || - ports->phy_mode ==PHY_INTERFACE_MODE_RGMII_ID ) +if (ports[i].phy_mode ==PHY_INTERFACE_MODE_RGMII_TXID || + ports[i].phy_mode ==PHY_INTERFACE_MODE_RGMII_ID ) priv->rgmii_tx_delay[i] = true; if ((priv->rgmii_rx_delay[i] || priv->rgmii_tx_delay[i]) &&
drivers/net/ethernet/broadcom/genet/bcmgenet.c +4 -3
@@ -1996,8 +1996,6 @@ static void reset_umac(struct bcmgenet_priv *priv)/* issue soft reset with (rg)mii loopback to ensure a stable rxclk */ bcmgenet_umac_writel (priv,CMD_SW_RESET |CMD_LCL_LOOP_EN ,UMAC_CMD ); -udelay (2 ); -bcmgenet_umac_writel (priv,0 ,UMAC_CMD ); }static void bcmgenet_intr_disable (struct bcmgenet_priv *priv)
@@ -2619,8 +2617,10 @@ static void bcmgenet_irq_task(struct work_struct *work)spin_unlock_irq (&priv->lock);if (status &UMAC_IRQ_PHY_DET_R && - priv->dev->phydev->autoneg !=AUTONEG_ENABLE ) + priv->dev->phydev->autoneg !=AUTONEG_ENABLE ) {phy_init_hw (priv->dev->phydev); +genphy_config_aneg (priv->dev->phydev); + }/* Link UP/DOWN event */ if (status &UMAC_IRQ_LINK_EVENT )
@@ -3643,6 +3643,7 @@ static int bcmgenet_resume(struct device *d)phy_init_hw (dev->phydev);/* Speed settings must be restored */ +genphy_config_aneg (dev->phydev);bcmgenet_mii_config (priv->dev, false);bcmgenet_set_hw_addr (priv, dev->dev_addr);
drivers/net/ethernet/broadcom/genet/bcmmii.c +33 -0
@@ -181,8 +181,38 @@ int bcmgenet_mii_config(struct net_device *dev, bool init)const char *phy_name =NULL ;u32 id_mode_dis =0 ;u32 port_ctrl; +int bmcr =-1 ; +int ret;u32 reg; +/* MAC clocking workaround during reset of umac state machines */ + reg =bcmgenet_umac_readl (priv,UMAC_CMD ); +if (reg &CMD_SW_RESET ) { +/* An MII PHY must be isolated to prevent TXC contention */ +if (priv->phy_interface ==PHY_INTERFACE_MODE_MII ) { + ret =phy_read (phydev,MII_BMCR ); +if (ret >=0 ) { + bmcr = ret; + ret =phy_write (phydev,MII_BMCR , + bmcr |BMCR_ISOLATE ); + } +if (ret) { +netdev_err (dev,"failed to isolate PHY\n" ); +return ret; + } + } +/* Switch MAC clocking to RGMII generated clock */ +bcmgenet_sys_writel (priv,PORT_MODE_EXT_GPHY ,SYS_PORT_CTRL ); +/* Ensure 5 clks with Rx disabled +* followed by 5 clks with Reset asserted +*/ +udelay (4 ); + reg &= ~(CMD_SW_RESET |CMD_LCL_LOOP_EN ); +bcmgenet_umac_writel (priv, reg,UMAC_CMD ); +/* Ensure 5 more clocks before Rx is enabled */ +udelay (2 ); + } + priv->ext_phy = !priv->internal_phy && (priv->phy_interface !=PHY_INTERFACE_MODE_MOCA );
@@ -214,6 +244,9 @@ int bcmgenet_mii_config(struct net_device *dev, bool init)phy_set_max_speed (phydev,SPEED_100 );bcmgenet_sys_writel (priv,PORT_MODE_EXT_EPHY ,SYS_PORT_CTRL ); +/* Restore the MII PHY after isolation */ +if (bmcr >=0 ) +phy_write (phydev,MII_BMCR , bmcr);break ;case PHY_INTERFACE_MODE_REVMII :
drivers/net/ethernet/cadence/macb_main.c +1 -0
@@ -4393,6 +4393,7 @@ static int macb_remove(struct platform_device *pdev)mdiobus_free (bp->mii_bus);unregister_netdev (dev); +tasklet_kill (&bp->hresp_err_tasklet);pm_runtime_disable (&pdev->dev);pm_runtime_dont_use_autosuspend (&pdev->dev);if (!pm_runtime_suspended (&pdev->dev)) {
drivers/net/ethernet/freescale/fec_main.c +11 -2
@@ -3580,6 +3580,11 @@ fec_drv_remove(struct platform_device *pdev)struct net_device *ndev =platform_get_drvdata (pdev);struct fec_enet_private *fep =netdev_priv (ndev);struct device_node *np = pdev->dev.of_node; +int ret; + + ret =pm_runtime_get_sync (&pdev->dev); +if (ret <0 ) +return ret;cancel_work_sync (&fep->tx_timeout_work);fec_ptp_stop (pdev);
@@ -3587,13 +3592,17 @@ fec_drv_remove(struct platform_device *pdev)fec_enet_mii_remove (fep);if (fep->reg_phy)regulator_disable (fep->reg_phy); -pm_runtime_put (&pdev->dev); -pm_runtime_disable (&pdev->dev); +if (of_phy_is_fixed_link (np))of_phy_deregister_fixed_link (np);of_node_put (fep->phy_node);free_netdev (ndev); +clk_disable_unprepare (fep->clk_ahb); +clk_disable_unprepare (fep->clk_ipg); +pm_runtime_put_noidle (&pdev->dev); +pm_runtime_disable (&pdev->dev); +return 0 ; }
drivers/net/ethernet/google/gve/gve_main.c +2 -1
@@ -544,7 +544,7 @@ static int gve_alloc_queue_page_list(struct gve_priv *priv, u32 id, } qpl->id = id; - qpl->num_entries = pages; + qpl->num_entries =0 ; qpl->pages =kvzalloc (pages *sizeof (*qpl->pages),GFP_KERNEL );/* caller handles clean up */ if (!qpl->pages)
@@ -562,6 +562,7 @@ static int gve_alloc_queue_page_list(struct gve_priv *priv, u32 id,/* caller handles clean up */ if (err)return -ENOMEM ; + qpl->num_entries++; } priv->num_registered_pages += pages;
drivers/net/ethernet/intel/i40e/i40e_common.c +2 -1
@@ -1861,7 +1861,8 @@ i40e_status i40e_aq_get_link_info(struct i40e_hw *hw, hw->aq.fw_min_ver < 40)) && hw_link_info->phy_type == 0xE) hw_link_info->phy_type = I40E_PHY_TYPE_10GBASE_SFPP_CU; -if (hw->flags &I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE ) { +if (hw->flags &I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE && + hw->mac.type !=I40E_MAC_X722 ) {__le32 tmp;memcpy (&tmp, resp->link_type,sizeof (tmp));
drivers/net/ethernet/intel/iavf/iavf_main.c +2 -2
@@ -336,7 +336,7 @@ iavf_map_vector_to_rxq(struct iavf_adapter *adapter, int v_idx, int r_idx) q_vector->rx.target_itr =ITR_TO_REG (rx_ring->itr_setting); q_vector->ring_mask |=BIT (r_idx);wr32 (hw,IAVF_VFINT_ITRN1 (IAVF_RX_ITR , q_vector->reg_idx), - q_vector->rx.current_itr); + q_vector->rx.current_itr >>1 ); q_vector->rx.current_itr = q_vector->rx.target_itr; }
@@ -362,7 +362,7 @@ iavf_map_vector_to_txq(struct iavf_adapter *adapter, int v_idx, int t_idx) q_vector->tx.target_itr =ITR_TO_REG (tx_ring->itr_setting); q_vector->num_ringpairs++;wr32 (hw,IAVF_VFINT_ITRN1 (IAVF_TX_ITR , q_vector->reg_idx), - q_vector->tx.target_itr); + q_vector->tx.target_itr >>1 ); q_vector->tx.current_itr = q_vector->tx.target_itr; }
drivers/net/ethernet/intel/ice/ice_sched.c +1 -1
@@ -1052,7 +1052,7 @@ enum ice_status ice_sched_query_res_alloc(struct ice_hw *hw)struct ice_aqc_query_txsched_res_resp *buf;enum ice_status status =0 ;__le16 max_sibl; -u8 i; +u16 i;if (hw->layer_info)return status;
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +1 -1
@@ -1085,7 +1085,7 @@ static int esw_create_offloads_fdb_tables(struct mlx5_eswitch *esw, int nvports)MLX5_CAP_GEN (dev, max_flow_counter_15_0); fdb_max =1 <<MLX5_CAP_ESW_FLOWTABLE_FDB (dev, log_max_ft_size); -esw_debug (dev,"Create offloads FDB table, min (max esw size(2^%d), max counters(%d), groups(%d), max flow table size(2^%d))\n" , +esw_debug (dev,"Create offloads FDB table, min (max esw size(2^%d), max counters(%d), groups(%d), max flow table size(%d))\n" ,MLX5_CAP_ESW_FLOWTABLE_FDB (dev, log_max_ft_size), max_flow_counter,ESW_OFFLOADS_NUM_GROUPS , fdb_max);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c +2 -1
@@ -183,7 +183,8 @@ static bool mlx5_eswitch_offload_is_uplink_port(const struct mlx5_eswitch *esw,u32 port_mask, port_value;if (MLX5_CAP_ESW_FLOWTABLE (esw->dev, flow_source)) -return spec->flow_context.flow_source ==MLX5_VPORT_UPLINK ; +return spec->flow_context.flow_source == +MLX5_FLOW_CONTEXT_FLOW_SOURCE_UPLINK ; port_mask =MLX5_GET (fte_match_param, spec->match_criteria, misc_parameters.source_port);
drivers/net/ethernet/mscc/ocelot.h +1 -1
@@ -479,7 +479,7 @@ void __ocelot_write_ix(struct ocelot *ocelot, u32 val, u32 reg, u32 offset);#define ocelot_write_rix (ocelot, val, reg, ri) __ocelot_write_ix(ocelot, val, reg, reg##_RSZ * (ri))#define ocelot_write (ocelot, val, reg) __ocelot_write_ix(ocelot, val, reg, 0) -void __ocelot_rmw_ix (struct ocelot *ocelot,u32 val,u32 reg,u32 mask, +void __ocelot_rmw_ix (struct ocelot *ocelot,u32 val,u32 mask,u32 reg,u32 offset);#define ocelot_rmw_ix (ocelot, val, m, reg, gi, ri) __ocelot_rmw_ix(ocelot, val, m, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri))#define ocelot_rmw_gix (ocelot, val, m, reg, gi) __ocelot_rmw_ix(ocelot, val, m, reg, reg##_GSZ * (gi))
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +1 -1
@@ -438,7 +438,7 @@ static void dwmac4_set_filter(struct mac_device_info *hw,* bits used depends on the hardware configuration * selected at core configuration time. */ -int bit_nr =bitrev32 (~crc32_le (~0 , ha->addr, +u32 bit_nr =bitrev32 (~crc32_le (~0 , ha->addr,ETH_ALEN )) >> (32 - mcbitslog2);/* The most significant bit determines the register to * use (H/L) while the other 5 bits determine the bit
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c +2 -1
@@ -196,6 +196,7 @@ static void dwxgmac2_config_cbs(struct mac_device_info *hw,writel (low_credit, ioaddr +XGMAC_MTL_TCx_LOCREDIT (queue)); value =readl (ioaddr +XGMAC_MTL_TCx_ETS_CONTROL (queue)); + value &= ~XGMAC_TSA ; value |=XGMAC_CC |XGMAC_CBS ;writel (value, ioaddr +XGMAC_MTL_TCx_ETS_CONTROL (queue)); }
@@ -361,7 +362,7 @@ static void dwxgmac2_set_filter(struct mac_device_info *hw, value |=XGMAC_FILTER_HMC ;netdev_for_each_mc_addr (ha, dev) { -int nr = (bitrev32 (~crc32_le (~0 , ha->addr,6 )) >> +u32 nr = (bitrev32 (~crc32_le (~0 , ha->addr,6 )) >> (32 - mcbitslog2)); mc_filter[nr >>5 ] |= (1 << (nr &0x1F )); }
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c +2 -0
@@ -441,6 +441,7 @@ static void dwxgmac2_enable_tso(void __iomem *ioaddr, bool en, u32 chan)static void dwxgmac2_qmode (void __iomem *ioaddr,u32 channel,u8 qmode) {u32 value =readl (ioaddr +XGMAC_MTL_TXQ_OPMODE (channel)); +u32 flow =readl (ioaddr +XGMAC_RX_FLOW_CTRL ); value &= ~XGMAC_TXQEN ;if (qmode !=MTL_QUEUE_AVB ) {
@@ -448,6 +449,7 @@ static void dwxgmac2_qmode(void __iomem *ioaddr, u32 channel, u8 qmode)writel (0 , ioaddr +XGMAC_MTL_TCx_ETS_CONTROL (channel)); }else { value |=0x1 <<XGMAC_TXQEN_SHIFT ; +writel (flow & (~XGMAC_RFE ), ioaddr +XGMAC_RX_FLOW_CTRL ); }writel (value, ioaddr +XGMAC_MTL_TXQ_OPMODE (channel));
drivers/net/macvlan.c +2 -1
@@ -359,10 +359,11 @@ static void macvlan_broadcast_enqueue(struct macvlan_port *port, }spin_unlock (&port->bc_queue.lock); +schedule_work (&port->bc_work); +if (err) goto free_nskb; -schedule_work (&port->bc_work);return ; free_nskb:
drivers/net/phy/mdio_bus.c +4 -2
@@ -66,8 +66,8 @@ static int mdiobus_register_reset(struct mdio_device *mdiodev)struct reset_control *reset =NULL ;if (mdiodev->dev.of_node) - reset =devm_reset_control_get_exclusive (&mdiodev->dev, -"phy" ); + reset =of_reset_control_get_exclusive (mdiodev->dev.of_node, +"phy" );if (IS_ERR (reset)) {if (PTR_ERR (reset) == -ENOENT ||PTR_ERR (reset) == -ENOTSUPP ) reset =NULL ;
@@ -111,6 +111,8 @@ int mdiobus_unregister_device(struct mdio_device *mdiodev)if (mdiodev->bus->mdio_map[mdiodev->addr] != mdiodev)return -EINVAL ; +reset_control_put (mdiodev->reset_ctrl); + mdiodev->bus->mdio_map[mdiodev->addr] =NULL ;return 0 ;
drivers/net/slip/slip.c +1 -0
@@ -855,6 +855,7 @@ static int slip_open(struct tty_struct *tty) sl->tty =NULL ; tty->disc_data =NULL ;clear_bit (SLF_INUSE , &sl->flags); +sl_free_netdev (sl->dev);free_netdev (sl->dev); err_exit:
drivers/nvme/host/multipath.c +2 -0
@@ -158,9 +158,11 @@ void nvme_mpath_clear_ctrl_paths(struct nvme_ctrl *ctrl)struct nvme_ns *ns;mutex_lock (&ctrl->scan_lock); +down_read (&ctrl->namespaces_rwsem);list_for_each_entry (ns, &ctrl->namespaces, list)if (nvme_mpath_clear_current_path (ns))kblockd_schedule_work (&ns->head->requeue_work); +up_read (&ctrl->namespaces_rwsem);mutex_unlock (&ctrl->scan_lock); }
drivers/nvme/host/rdma.c +8 -0
@@ -2118,8 +2118,16 @@ static int __init nvme_rdma_init_module(void) static void __exit nvme_rdma_cleanup_module(void) { +struct nvme_rdma_ctrl *ctrl; +nvmf_unregister_transport (&nvme_rdma_transport);ib_unregister_client (&nvme_rdma_ib_client); + +mutex_lock (&nvme_rdma_ctrl_mutex); +list_for_each_entry (ctrl, &nvme_rdma_ctrl_list, list) +nvme_delete_ctrl (&ctrl->ctrl); +mutex_unlock (&nvme_rdma_ctrl_mutex); +flush_workqueue (nvme_delete_wq); }module_init (nvme_rdma_init_module);
drivers/pinctrl/intel/pinctrl-cherryview.c +12 -12
@@ -147,6 +147,7 @@ struct chv_pin_context {* @pctldesc: Pin controller description * @pctldev: Pointer to the pin controller device * @chip: GPIO chip in this pin controller +* @irqchip: IRQ chip in this pin controller * @regs: MMIO registers * @intr_lines: Stores mapping between 16 HW interrupt wires and GPIO * offset (in GPIO number space)
@@ -162,6 +163,7 @@ struct chv_pinctrl {struct pinctrl_desc pctldesc;struct pinctrl_dev *pctldev;struct gpio_chip chip; +struct irq_chip irqchip;void __iomem *regs;unsigned intr_lines[16 ];const struct chv_community *community;
@@ -1466,16 +1468,6 @@ static int chv_gpio_irq_type(struct irq_data *d, unsigned int type)return 0 ; } -static struct irq_chip chv_gpio_irqchip = { - .name ="chv-gpio" , - .irq_startup = chv_gpio_irq_startup, - .irq_ack = chv_gpio_irq_ack, - .irq_mask = chv_gpio_irq_mask, - .irq_unmask = chv_gpio_irq_unmask, - .irq_set_type = chv_gpio_irq_type, - .flags =IRQCHIP_SKIP_SET_WAKE , -}; -static void chv_gpio_irq_handler (struct irq_desc *desc) {struct gpio_chip *gc =irq_desc_get_handler_data (desc);
@@ -1615,7 +1607,15 @@ static int chv_gpio_probe(struct chv_pinctrl *pctrl, int irq) } } - ret =gpiochip_irqchip_add (chip, &chv_gpio_irqchip,0 , + pctrl->irqchip.name ="chv-gpio" ; + pctrl->irqchip.irq_startup = chv_gpio_irq_startup; + pctrl->irqchip.irq_ack = chv_gpio_irq_ack; + pctrl->irqchip.irq_mask = chv_gpio_irq_mask; + pctrl->irqchip.irq_unmask = chv_gpio_irq_unmask; + pctrl->irqchip.irq_set_type = chv_gpio_irq_type; + pctrl->irqchip.flags =IRQCHIP_SKIP_SET_WAKE ; + + ret =gpiochip_irqchip_add (chip, &pctrl->irqchip,0 , handle_bad_irq,IRQ_TYPE_NONE );if (ret) {dev_err (pctrl->dev,"failed to add IRQ chip\n" );
@@ -1632,7 +1632,7 @@ static int chv_gpio_probe(struct chv_pinctrl *pctrl, int irq) } } -gpiochip_set_chained_irqchip (chip, &chv_gpio_irqchip, irq, +gpiochip_set_chained_irqchip (chip, &pctrl->irqchip, irq, chv_gpio_irq_handler);return 0 ; }
drivers/platform/x86/hp-wmi.c +5 -5
@@ -65,7 +65,7 @@ struct bios_args {u32 command;u32 commandtype;u32 datasize; -u32 data; +u8 data[128 ]; };enum hp_wmi_commandtype {
@@ -216,7 +216,7 @@ static int hp_wmi_perform_query(int query, enum hp_wmi_command command, .command = command, .commandtype = query, .datasize = insize, - .data = 0, + .data = { 0 }, };struct acpi_buffer input = {sizeof (struct bios_args ), &args };struct acpi_buffer output = {ACPI_ALLOCATE_BUFFER ,NULL };
@@ -228,7 +228,7 @@ static int hp_wmi_perform_query(int query, enum hp_wmi_command command,if (WARN_ON (insize >sizeof (args.data)))return -EINVAL ; -memcpy (&args.data, buffer, insize); +memcpy (&args.data[0 ], buffer, insize);wmi_evaluate_method (HPWMI_BIOS_GUID ,0 , mid, &input, &output);
@@ -380,7 +380,7 @@ static int hp_wmi_rfkill2_refresh(void)int err, i; err =hp_wmi_perform_query (HPWMI_WIRELESS2_QUERY ,HPWMI_READ , &state, -0 ,sizeof (state)); +sizeof (state),sizeof (state));if (err)return err;
@@ -777,7 +777,7 @@ static int __init hp_wmi_rfkill2_setup(struct platform_device *device)int err, i; err =hp_wmi_perform_query (HPWMI_WIRELESS2_QUERY ,HPWMI_READ , &state, -0 ,sizeof (state)); +sizeof (state),sizeof (state));if (err)return err <0 ? err : -EINVAL ;
drivers/pwm/pwm-bcm-iproc.c +1 -0
@@ -187,6 +187,7 @@ static int iproc_pwmc_apply(struct pwm_chip *chip, struct pwm_device *pwm,static const struct pwm_ops iproc_pwm_ops = { .apply = iproc_pwmc_apply, .get_state = iproc_pwmc_get_state, + .owner =THIS_MODULE , };static int iproc_pwmc_probe (struct platform_device *pdev)
drivers/reset/core.c +1 -0
@@ -748,6 +748,7 @@ static void reset_control_array_put(struct reset_control_array *resets)for (i =0 ; i < resets->num_rstcs; i++)__reset_control_put_internal (resets->rstc[i]);mutex_unlock (&reset_list_mutex); +kfree (resets); }/**
drivers/soc/imx/gpc.c +4 -4
@@ -249,13 +249,13 @@ static struct genpd_power_state imx6_pm_domain_pu_state = { };static struct imx_pm_domain imx_gpc_domains[] = { - [GPC_PGC_DOMAIN_ARM] { + [GPC_PGC_DOMAIN_ARM ] = { .base = { .name ="ARM" , .flags =GENPD_FLAG_ALWAYS_ON , }, }, - [GPC_PGC_DOMAIN_PU] { + [GPC_PGC_DOMAIN_PU ] = { .base = { .name ="PU" , .power_off = imx6_pm_domain_power_off,
@@ -266,7 +266,7 @@ static struct imx_pm_domain imx_gpc_domains[] = { .reg_offs = 0x260, .cntr_pdn_bit = 0, }, - [GPC_PGC_DOMAIN_DISPLAY] { + [GPC_PGC_DOMAIN_DISPLAY] = { .base = { .name = "DISPLAY", .power_off = imx6_pm_domain_power_off,
@@ -275,7 +275,7 @@ static struct imx_pm_domain imx_gpc_domains[] = { .reg_offs = 0x240, .cntr_pdn_bit = 4, }, - [GPC_PGC_DOMAIN_PCI] { + [GPC_PGC_DOMAIN_PCI] = { .base = { .name = "PCI", .power_off = imx6_pm_domain_power_off,
drivers/soundwire/intel.c +2 -2
@@ -765,7 +765,7 @@ static int intel_register_dai(struct sdw_intel *sdw)/* Create PCM DAIs */ stream = &cdns->pcm; - ret =intel_create_dai (cdns, dais,INTEL_PDI_IN , stream->num_in, + ret =intel_create_dai (cdns, dais,INTEL_PDI_IN , cdns->pcm.num_in, off, stream->num_ch_in, true);if (ret)return ret;
@@ -796,7 +796,7 @@ static int intel_register_dai(struct sdw_intel *sdw)if (ret)return ret; - off += cdns->pdm.num_bd; + off += cdns->pdm.num_out; ret =intel_create_dai (cdns, dais,INTEL_PDI_BD , cdns->pdm.num_bd, off, stream->num_ch_bd, false);if (ret)
drivers/staging/rtl8192e/rtl8192e/rtl_core.c +3 -2
@@ -1616,14 +1616,15 @@ static void _rtl92e_hard_data_xmit(struct sk_buff *skb, struct net_device *dev,memcpy ((unsigned char *)(skb->cb), &dev,sizeof (dev));skb_push (skb, priv->rtllib->tx_headroom); ret =_rtl92e_tx (dev, skb); -if (ret !=0 ) -kfree_skb (skb);if (queue_index !=MGNT_QUEUE ) { priv->rtllib->stats.tx_bytes += (skb->len - priv->rtllib->tx_headroom); priv->rtllib->stats.tx_packets++; } + +if (ret !=0 ) +kfree_skb (skb); }static int _rtl92e_hard_start_xmit (struct sk_buff *skb,struct net_device *dev)
drivers/staging/rtl8723bs/os_dep/sdio_intf.c +1 -6
@@ -18,18 +18,13 @@static const struct sdio_device_id sdio_ids[] = { {SDIO_DEVICE (0x024c ,0x0523 ), }, + {SDIO_DEVICE (0x024c ,0x0525 ), }, {SDIO_DEVICE (0x024c ,0x0623 ), }, {SDIO_DEVICE (0x024c ,0x0626 ), }, {SDIO_DEVICE (0x024c ,0xb723 ), }, {/* end: all zeroes */ }, }; -static const struct acpi_device_id acpi_ids[] = { - {"OBDA8723" ,0x0000 }, - {} -}; -MODULE_DEVICE_TABLE (sdio, sdio_ids); -MODULE_DEVICE_TABLE (acpi, acpi_ids);static int rtw_drv_init (struct sdio_func *func,const struct sdio_device_id *id);static void rtw_dev_remove (struct sdio_func *func);
drivers/staging/wilc1000/wilc_hif.c +15 -10
@@ -477,16 +477,21 @@ void *wilc_parse_join_bss_param(struct cfg80211_bss *bss,memcpy (¶m->supp_rates[1 ], rates_ie +2 , rates_len); } - supp_rates_ie =cfg80211_find_ie (WLAN_EID_EXT_SUPP_RATES , ies->data, - ies->len); -if (supp_rates_ie) { -if (supp_rates_ie[1 ] > (WILC_MAX_RATES_SUPPORTED - rates_len)) - param->supp_rates[0 ] =WILC_MAX_RATES_SUPPORTED ; -else - param->supp_rates[0 ] += supp_rates_ie[1 ]; - -memcpy (¶m->supp_rates[rates_len +1 ], supp_rates_ie +2 , - (param->supp_rates[0 ] - rates_len)); +if (rates_len <WILC_MAX_RATES_SUPPORTED ) { + supp_rates_ie =cfg80211_find_ie (WLAN_EID_EXT_SUPP_RATES , + ies->data, ies->len); +if (supp_rates_ie) { +u8 ext_rates = supp_rates_ie[1 ]; + +if (ext_rates > (WILC_MAX_RATES_SUPPORTED - rates_len)) + param->supp_rates[0 ] =WILC_MAX_RATES_SUPPORTED ; +else + param->supp_rates[0 ] += ext_rates; + +memcpy (¶m->supp_rates[rates_len +1 ], + supp_rates_ie +2 , + (param->supp_rates[0 ] - rates_len)); + } } ht_ie =cfg80211_find_ie (WLAN_EID_HT_CAPABILITY , ies->data, ies->len);
drivers/thunderbolt/switch.c +53 -29
176 lines not on this page · raw message
drivers/usb/dwc2/core.c +1 -1
@@ -524,7 +524,7 @@ int dwc2_core_reset(struct dwc2_hsotg *hsotg, bool skip_wait) greset |=GRSTCTL_CSFTRST ;dwc2_writel (hsotg, greset,GRSTCTL ); -if (dwc2_hsotg_wait_bit_clear (hsotg,GRSTCTL ,GRSTCTL_CSFTRST ,50 )) { +if (dwc2_hsotg_wait_bit_clear (hsotg,GRSTCTL ,GRSTCTL_CSFTRST ,10000 )) {dev_warn (hsotg->dev,"%s: HANG! Soft Reset timeout GRSTCTL GRSTCTL_CSFTRST\n" , __func__);return -EBUSY ;
drivers/usb/serial/ftdi_sio.c +3 -0
@@ -1033,6 +1033,9 @@ static const struct usb_device_id id_table_combined[] = {/* Sienna devices */ { USB_DEVICE(FTDI_VID, FTDI_SIENNA_PID) }, { USB_DEVICE(ECHELON_VID, ECHELON_U20_PID) }, +/* U-Blox devices */ + { USB_DEVICE(UBLOX_VID, UBLOX_C099F9P_ZED_PID) }, + { USB_DEVICE(UBLOX_VID, UBLOX_C099F9P_ODIN_PID) }, { } /* Terminating entry */ };
drivers/usb/serial/ftdi_sio_ids.h +7 -0
@@ -1558,3 +1558,10 @@*/ #define UNJO_VID 0x22B7#define UNJO_ISODEBUG_V1_PID 0x150D + +/* +* U-Blox products (http://www.u-blox.com). +*/ +#define UBLOX_VID 0x1546 +#define UBLOX_C099F9P_ZED_PID 0x0502 +#define UBLOX_C099F9P_ODIN_PID 0x0503
drivers/video/fbdev/c2p_core.h +4 -4
@@ -29,7 +29,7 @@ static inline void _transp(u32 d[], unsigned int i1, unsigned int i2,extern void c2p_unsupported (void ); -static inline u32 get_mask (unsigned int n) +static __always_inline u32 get_mask(unsigned int n) {switch (n) {case 1 :
@@ -57,7 +57,7 @@ static inline u32 get_mask(unsigned int n)* Transpose operations on 8 32-bit words */ -static inline void transp8 (u32 d[],unsigned int n,unsigned int m) +static __always_inline void transp8(u32 d[], unsigned int n, unsigned int m) {u32 mask =get_mask (n);
@@ -99,7 +99,7 @@ static inline void transp8(u32 d[], unsigned int n, unsigned int m)* Transpose operations on 4 32-bit words */ -static inline void transp4 (u32 d[],unsigned int n,unsigned int m) +static __always_inline void transp4(u32 d[], unsigned int n, unsigned int m) {u32 mask =get_mask (n);
@@ -126,7 +126,7 @@ static inline void transp4(u32 d[], unsigned int n, unsigned int m)* Transpose operations on 4 32-bit words (reverse order) */ -static inline void transp4x (u32 d[],unsigned int n,unsigned int m) +static __always_inline void transp4x(u32 d[], unsigned int n, unsigned int m) {u32 mask =get_mask (n);
drivers/watchdog/bd70528_wdt.c +1 -0
@@ -288,3 +288,4 @@ module_platform_driver(bd70528_wdt);MODULE_AUTHOR ("Matti Vaittinen <[email protected]>" );MODULE_DESCRIPTION ("BD70528 watchdog driver" );MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("platform:bd70528-wdt" );
drivers/watchdog/imx_sc_wdt.c +7 -1
@@ -99,8 +99,14 @@ static int imx_sc_wdt_set_pretimeout(struct watchdog_device *wdog, {struct arm_smccc_res res; +/* +* SCU firmware calculates pretimeout based on current time +* stamp instead of watchdog timeout stamp, need to convert +* the pretimeout to SCU firmware's timeout value. +*/ arm_smccc_smc (IMX_SIP_TIMER ,IMX_SIP_TIMER_SET_PRETIME_WDOG , - pretimeout *1000 ,0 ,0 ,0 ,0 ,0 , &res); + (wdog->timeout - pretimeout) *1000 ,0 ,0 ,0 , +0 ,0 , &res);if (res.a0)return -EACCES ;
drivers/watchdog/meson_gxbb_wdt.c +2 -2
@@ -89,8 +89,8 @@ static unsigned int meson_gxbb_wdt_get_timeleft(struct watchdog_device *wdt_dev) reg =readl (data->reg_base +GXBB_WDT_TCNT_REG ); -return ((reg >>GXBB_WDT_TCNT_CNT_SHIFT ) - - (reg &GXBB_WDT_TCNT_SETUP_MASK )) /1000 ; +return ((reg &GXBB_WDT_TCNT_SETUP_MASK ) - + (reg >>GXBB_WDT_TCNT_CNT_SHIFT )) /1000 ; }static const struct watchdog_ops meson_gxbb_wdt_ops = {
drivers/watchdog/pm8916_wdt.c +11 -4
@@ -163,9 +163,17 @@ static int pm8916_wdt_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 );if (irq >0 ) { -if (devm_request_irq (dev, irq, pm8916_wdt_isr,0 ,"pm8916_wdt" , - wdt)) - irq =0 ; + err =devm_request_irq (dev, irq, pm8916_wdt_isr,0 , +"pm8916_wdt" , wdt); +if (err) +return err; + + wdt->wdev.info = &pm8916_wdt_pt_ident; + }else { +if (irq == -EPROBE_DEFER ) +return -EPROBE_DEFER ; + + wdt->wdev.info = &pm8916_wdt_ident; }/* Configure watchdog to hard-reset mode */
@@ -177,7 +185,6 @@ static int pm8916_wdt_probe(struct platform_device *pdev)return err; } - wdt->wdev.info = (irq >0 ) ? &pm8916_wdt_pt_ident : &pm8916_wdt_ident, wdt->wdev.ops = &pm8916_wdt_ops, wdt->wdev.parent = dev; wdt->wdev.min_timeout =PM8916_WDT_MIN_TIMEOUT ;
fs/ceph/super.c +10 -1
@@ -255,6 +255,7 @@ static int parse_fsopt_token(char *c, void *private)return -ENOMEM ;break ;case Opt_fscache_uniq: +#ifdef CONFIG_CEPH_FSCACHE kfree (fsopt->fscache_uniq); fsopt->fscache_uniq = kstrndup(argstr[0].from, argstr[0].to-argstr[0].from,
@@ -263,7 +264,10 @@ static int parse_fsopt_token(char *c, void *private)return -ENOMEM ; fsopt->flags |=CEPH_MOUNT_OPT_FSCACHE ;break ; -/* misc */ +#else +pr_err ("fscache support is disabled\n" ); +return -EINVAL ; +#endif case Opt_wsize:if (intval < (int )PAGE_SIZE || intval >CEPH_MAX_WRITE_SIZE )return -EINVAL ;
@@ -340,10 +344,15 @@ static int parse_fsopt_token(char *c, void *private) fsopt->flags &= ~CEPH_MOUNT_OPT_INO32 ;break ;case Opt_fscache: +#ifdef CONFIG_CEPH_FSCACHE fsopt->flags |=CEPH_MOUNT_OPT_FSCACHE ;kfree (fsopt->fscache_uniq); fsopt->fscache_uniq =NULL ;break ; +#else +pr_err ("fscache support is disabled\n" ); +return -EINVAL ; +#endif case Opt_nofscache: fsopt->flags &= ~CEPH_MOUNT_OPT_FSCACHE ;kfree (fsopt->fscache_uniq);
fs/ext4/inode.c +15 -0
@@ -5942,8 +5942,23 @@ static int __ext4_expand_extra_isize(struct inode *inode, {struct ext4_inode *raw_inode;struct ext4_xattr_ibody_header *header; +unsigned int inode_size =EXT4_INODE_SIZE (inode->i_sb); +struct ext4_inode_info *ei =EXT4_I (inode);int error; +/* this was checked at iget time, but double check for good measure */ +if ((EXT4_GOOD_OLD_INODE_SIZE + ei->i_extra_isize > inode_size) || + (ei->i_extra_isize &3 )) { +EXT4_ERROR_INODE (inode,"bad extra_isize %u (inode size %u)" , + ei->i_extra_isize, +EXT4_INODE_SIZE (inode->i_sb)); +return -EFSCORRUPTED ; + } +if ((new_extra_isize < ei->i_extra_isize) || + (new_extra_isize <4 ) || + (new_extra_isize > inode_size -EXT4_GOOD_OLD_INODE_SIZE )) +return -EINVAL ;/* Should never happen */ + raw_inode =ext4_raw_inode (iloc); header =IHDR (inode, raw_inode);
fs/ext4/super.c +12 -9
@@ -3544,12 +3544,15 @@ static void ext4_clamp_want_extra_isize(struct super_block *sb) {struct ext4_sb_info *sbi =EXT4_SB (sb);struct ext4_super_block *es = sbi->s_es; +unsigned def_extra_isize =sizeof (struct ext4_inode ) - +EXT4_GOOD_OLD_INODE_SIZE ; -/* determine the minimum size of new large inodes, if present */ -if (sbi->s_inode_size >EXT4_GOOD_OLD_INODE_SIZE && - sbi->s_want_extra_isize ==0 ) { - sbi->s_want_extra_isize =sizeof (struct ext4_inode ) - -EXT4_GOOD_OLD_INODE_SIZE ; +if (sbi->s_inode_size ==EXT4_GOOD_OLD_INODE_SIZE ) { + sbi->s_want_extra_isize =0 ; +return ; + } +if (sbi->s_want_extra_isize <4 ) { + sbi->s_want_extra_isize = def_extra_isize;if (ext4_has_feature_extra_isize (sb)) {if (sbi->s_want_extra_isize <le16_to_cpu (es->s_want_extra_isize))
@@ -3562,10 +3565,10 @@ static void ext4_clamp_want_extra_isize(struct super_block *sb) } }/* Check if enough inode space is available */ -if (EXT4_GOOD_OLD_INODE_SIZE + sbi->s_want_extra_isize > - sbi->s_inode_size) { - sbi->s_want_extra_isize =sizeof (struct ext4_inode ) - -EXT4_GOOD_OLD_INODE_SIZE ; +if ((sbi->s_want_extra_isize > sbi->s_inode_size) || + (EXT4_GOOD_OLD_INODE_SIZE + sbi->s_want_extra_isize > + sbi->s_inode_size)) { + sbi->s_want_extra_isize = def_extra_isize;ext4_msg (sb,KERN_INFO ,"required extra inode space not available" ); }
fs/io_uring.c +22 -1
@@ -260,6 +260,8 @@ struct io_ring_ctx {struct user_struct *user; +struct cred *creds; +struct completion ctx_done;struct {
@@ -1633,8 +1635,11 @@ static void io_poll_complete_work(struct work_struct *work)struct io_poll_iocb *poll = &req->poll;struct poll_table_struct pt = { ._key = poll->events };struct io_ring_ctx *ctx = req->ctx; +const struct cred *old_cred;__poll_t mask =0 ; + old_cred =override_creds (ctx->creds); +if (!READ_ONCE (poll->canceled)) mask =vfs_poll (poll->file, &pt) & poll->events;
@@ -1649,7 +1654,7 @@ static void io_poll_complete_work(struct work_struct *work)if (!mask && !READ_ONCE (poll->canceled)) {add_wait_queue (poll->head, &poll->wait);spin_unlock_irq (&ctx->completion_lock); -return ; + goto out; }list_del_init (&req->list);io_poll_complete (ctx, req, mask);
@@ -1657,6 +1662,8 @@ static void io_poll_complete_work(struct work_struct *work)io_cqring_ev_posted (ctx);io_put_req (req); +out: +revert_creds (old_cred); } static int io_poll_wake(struct wait_queue_entry *wait, unsigned mode, int sync,
@@ -1906,10 +1913,12 @@ static void io_sq_wq_submit_work(struct work_struct *work)struct io_ring_ctx *ctx = req->ctx;struct mm_struct *cur_mm =NULL ;struct async_list *async_list; +const struct cred *old_cred;LIST_HEAD (req_list);mm_segment_t old_fs;int ret; + old_cred =override_creds (ctx->creds); async_list =io_async_list_from_sqe (ctx, req->submit.sqe); restart: do {
@@ -2017,6 +2026,7 @@ static void io_sq_wq_submit_work(struct work_struct *work)unuse_mm (cur_mm);mmput (cur_mm); } +revert_creds (old_cred); }/*
@@ -2354,6 +2364,7 @@ static int io_sq_thread(void *data) {struct io_ring_ctx *ctx = data;struct mm_struct *cur_mm =NULL ; +const struct cred *old_cred;mm_segment_t old_fs;DEFINE_WAIT (wait);unsigned inflight;
@@ -2363,6 +2374,7 @@ static int io_sq_thread(void *data) old_fs =get_fs ();set_fs (USER_DS ); + old_cred =override_creds (ctx->creds); timeout = inflight =0 ;while (!kthread_should_park ()) {
@@ -2473,6 +2485,7 @@ static int io_sq_thread(void *data)unuse_mm (cur_mm);mmput (cur_mm); } +revert_creds (old_cred);kthread_parkme ();
@@ -3142,6 +3155,8 @@ static void io_ring_ctx_free(struct io_ring_ctx *ctx)io_unaccount_mem (ctx->user,ring_pages (ctx->sq_entries, ctx->cq_entries));free_uid (ctx->user); +if (ctx->creds) +put_cred (ctx->creds);kfree (ctx); }
@@ -3419,6 +3434,12 @@ static int io_uring_create(unsigned entries, struct io_uring_params *p) ctx->account_mem = account_mem; ctx->user = user; + ctx->creds =prepare_creds (); +if (!ctx->creds) { + ret = -ENOMEM ; + goto err; + } + ret =io_allocate_scq_urings (ctx, p);if (ret) goto err;
include/linux/bpf.h +2 -2
@@ -651,11 +651,11 @@ void bpf_map_put_with_uref(struct bpf_map *map);void bpf_map_put (struct bpf_map *map);int bpf_map_charge_memlock (struct bpf_map *map,u32 pages);void bpf_map_uncharge_memlock (struct bpf_map *map,u32 pages); -int bpf_map_charge_init (struct bpf_map_memory *mem,size_t size); +int bpf_map_charge_init (struct bpf_map_memory *mem,u64 size);void bpf_map_charge_finish (struct bpf_map_memory *mem);void bpf_map_charge_move (struct bpf_map_memory *dst,struct bpf_map_memory *src); -void *bpf_map_area_alloc (size_t size,int numa_node); +void *bpf_map_area_alloc (u64 size,int numa_node);void bpf_map_area_free (void *base);void bpf_map_init_from_attr (struct bpf_map *map,union bpf_attr *attr);
include/linux/idr.h +1 -1
@@ -185,7 +185,7 @@ static inline void idr_preload_end(void)* is convenient for a "not found" value. */ #define idr_for_each_entry (idr, entry, id) \ - for (id = 0; ((entry) = idr_get_next(idr, &(id))) != NULL; ++id) + for (id = 0; ((entry) = idr_get_next(idr, &(id))) != NULL; id += 1U)/** * idr_for_each_entry_ul() - Iterate over an IDR's elements of a given type.
include/linux/reset-controller.h +1 -1
@@ -7,7 +7,7 @@struct reset_controller_dev ;/** -* struct reset_control_ops +* struct reset_control_ops - reset controller driver callbacks * * @reset: for self-deasserting resets, does all necessary * things to reset the device
include/linux/skmsg.h +13 -13
@@ -14,6 +14,7 @@#include <net/strparser.h> #define MAX_MSG_FRAGS MAX_SKB_FRAGS +#define NR_MSG_FRAG_IDS (MAX_MSG_FRAGS + 1)enum __sk_action { __SK_DROP =0 ,
@@ -29,11 +30,13 @@ struct sk_msg_sg {u32 size;u32 copybreak;bool copy[MAX_MSG_FRAGS ]; -/* The extra element is used for chaining the front and sections when -* the list becomes partitioned (e.g. end < start). The crypto APIs -* require the chaining. +/* The extra two elements: +* 1) used for chaining the front and sections when the list becomes +* partitioned (e.g. end < start). The crypto APIs require the +* chaining; +* 2) to chain tailer SG entries after the message. */ -struct scatterlist data[MAX_MSG_FRAGS +1 ]; +struct scatterlist data[MAX_MSG_FRAGS +2 ]; };/* UAPI in filter.c depends on struct sk_msg_sg being first element. */
@@ -141,13 +144,13 @@ static inline void sk_msg_apply_bytes(struct sk_psock *psock, u32 bytes)static inline u32 sk_msg_iter_dist (u32 start,u32 end) { -return end >= start ? end - start : end + (MAX_MSG_FRAGS - start); +return end >= start ? end - start : end + (NR_MSG_FRAG_IDS - start); }#define sk_msg_iter_var_prev (var) \ do { \ if (var == 0) \ - var = MAX_MSG_FRAGS - 1; \ + var = NR_MSG_FRAG_IDS - 1; \ else \ var--; \ } while (0)
@@ -155,7 +158,7 @@ static inline u32 sk_msg_iter_dist(u32 start, u32 end)#define sk_msg_iter_var_next (var) \ do { \ var++; \ - if (var == MAX_MSG_FRAGS) \ + if (var == NR_MSG_FRAG_IDS) \ var = 0; \ } while (0)
@@ -172,9 +175,9 @@ static inline void sk_msg_clear_meta(struct sk_msg *msg)static inline void sk_msg_init (struct sk_msg *msg) { -BUILD_BUG_ON (ARRAY_SIZE (msg->sg.data) -1 !=MAX_MSG_FRAGS ); +BUILD_BUG_ON (ARRAY_SIZE (msg->sg.data) -1 !=NR_MSG_FRAG_IDS );memset (msg,0 ,sizeof (*msg)); -sg_init_marker (msg->sg.data,MAX_MSG_FRAGS ); +sg_init_marker (msg->sg.data,NR_MSG_FRAG_IDS ); } static inline void sk_msg_xfer(struct sk_msg *dst, struct sk_msg *src,
@@ -195,14 +198,11 @@ static inline void sk_msg_xfer_full(struct sk_msg *dst, struct sk_msg *src)static inline bool sk_msg_full (const struct sk_msg *msg) { -return (msg->sg.end == msg->sg.start) && msg->sg.size; +return sk_msg_iter_dist (msg->sg.start, msg->sg.end) ==MAX_MSG_FRAGS ; }static inline u32 sk_msg_elem_used (const struct sk_msg *msg) { -if (sk_msg_full (msg)) -return MAX_MSG_FRAGS ; -return sk_msg_iter_dist (msg->sg.start, msg->sg.end); }
include/net/fq_impl.h +2 -2
@@ -313,7 +313,7 @@ static int fq_init(struct fq *fq, int flows_cnt) fq->limit =8192 ; fq->memory_limit =16 <<20 ;/* 16 MBytes */ - fq->flows =kcalloc (fq->flows_cnt,sizeof (fq->flows[0 ]),GFP_KERNEL ); + fq->flows =kvcalloc (fq->flows_cnt,sizeof (fq->flows[0 ]),GFP_KERNEL );if (!fq->flows)return -ENOMEM ;
@@ -331,7 +331,7 @@ static void fq_reset(struct fq *fq,for (i =0 ; i < fq->flows_cnt; i++)fq_flow_reset (fq, &fq->flows[i], free_func); -kfree (fq->flows); +kvfree (fq->flows); fq->flows =NULL ; }
include/net/sctp/structs.h +3 -0
@@ -1239,6 +1239,9 @@ struct sctp_ep_common {/* What socket does this endpoint belong to? */ struct sock *sk; +/* Cache netns and it won't change once set */ +struct net *net; +/* This is where we receive inbound chunks. */ struct sctp_inq inqueue;
include/net/tls.h +1 -2
@@ -121,7 +121,6 @@ struct tls_rec {struct list_head list;int tx_ready;int tx_flags; -int inplace_crypto;struct sk_msg msg_plaintext;struct sk_msg msg_encrypted;
@@ -408,7 +407,7 @@ int tls_push_sg(struct sock *sk, struct tls_context *ctx, int flags);int tls_push_partial_record (struct sock *sk,struct tls_context *ctx,int flags); -bool tls_free_partial_record (struct sock *sk,struct tls_context *ctx); +void tls_free_partial_record (struct sock *sk,struct tls_context *ctx);static inline struct tls_msg *tls_msg (struct sk_buff *skb) {
kernel/bpf/cgroup.c +2 -2
@@ -1302,12 +1302,12 @@ static bool sysctl_is_valid_access(int off, int size, enum bpf_access_type type,return false;switch (off) { -case offsetof(struct bpf_sysctl , write): + case bpf_ctx_range(struct bpf_sysctl, write):if (type !=BPF_READ )return false;bpf_ctx_record_field_size (info, size_default);return bpf_ctx_narrow_access_ok (off, size, size_default); -case offsetof(struct bpf_sysctl , file_pos): + case bpf_ctx_range(struct bpf_sysctl, file_pos):if (type ==BPF_READ ) {bpf_ctx_record_field_size (info, size_default);return bpf_ctx_narrow_access_ok (off, size, size_default);
kernel/bpf/syscall.c +5 -2
@@ -126,7 +126,7 @@ static struct bpf_map *find_and_alloc_map(union bpf_attr *attr)return map; } -void *bpf_map_area_alloc (size_t size,int numa_node) +void *bpf_map_area_alloc (u64 size,int numa_node) {/* We really just want to fail instead of triggering OOM killer * under memory pressure, therefore we set __GFP_NORETRY to kmalloc,
@@ -141,6 +141,9 @@ void *bpf_map_area_alloc(size_t size, int numa_node)const gfp_t flags = __GFP_NOWARN | __GFP_ZERO;void *area; +if (size >=SIZE_MAX ) +return NULL ; +if (size <= (PAGE_SIZE <<PAGE_ALLOC_COSTLY_ORDER )) { area =kmalloc_node (size,GFP_USER | __GFP_NORETRY | flags, numa_node);
@@ -197,7 +200,7 @@ static void bpf_uncharge_memlock(struct user_struct *user, u32 pages)atomic_long_sub (pages, &user->locked_vm); } -int bpf_map_charge_init (struct bpf_map_memory *mem,size_t size) +int bpf_map_charge_init (struct bpf_map_memory *mem,u64 size) {u32 pages =round_up (size,PAGE_SIZE ) >>PAGE_SHIFT ;struct user_struct *user;
kernel/stacktrace.c +4 -2
@@ -141,7 +141,8 @@ unsigned int stack_trace_save_tsk(struct task_struct *tsk, unsigned long *store,struct stacktrace_cookie c = { .store = store, .size = size, - .skip = skipnr +1 , +/* skip this function if they are tracing us */ + .skip = skipnr + !!(current == tsk), };if (!try_get_task_stack (tsk))
@@ -298,7 +299,8 @@ unsigned int stack_trace_save_tsk(struct task_struct *task,struct stack_trace trace = { .entries = store, .max_entries = size, - .skip = skipnr +1 , +/* skip this function if they are tracing us */ + .skip = skipnr + !!(current == task), };save_stack_trace_tsk (task, &trace);
lib/idr.c +11 -20
@@ -215,7 +215,7 @@ int idr_for_each(const struct idr *idr,EXPORT_SYMBOL (idr_for_each);/** -* idr_get_next() - Find next populated entry. +* idr_get_next_ul() - Find next populated entry. * @idr: IDR handle. * @nextid: Pointer to an ID. *
@@ -224,7 +224,7 @@ EXPORT_SYMBOL(idr_for_each);* to the ID of the found value. To use in a loop, the value pointed to by * nextid must be incremented by the user. */ -void *idr_get_next (struct idr *idr,int *nextid) +void *idr_get_next_ul (struct idr *idr,unsigned long *nextid) {struct radix_tree_iter iter;void __rcu **slot;
@@ -245,18 +245,14 @@ void *idr_get_next(struct idr *idr, int *nextid) }if (!slot)return NULL ; - id = iter.index + base; - -if (WARN_ON_ONCE (id >INT_MAX )) -return NULL ; - *nextid = id; + *nextid = iter.index + base;return entry; } -EXPORT_SYMBOL (idr_get_next); +EXPORT_SYMBOL (idr_get_next_ul);/** -* idr_get_next_ul() - Find next populated entry. +* idr_get_next() - Find next populated entry. * @idr: IDR handle. * @nextid: Pointer to an ID. *
@@ -265,22 +261,17 @@ EXPORT_SYMBOL(idr_get_next);* to the ID of the found value. To use in a loop, the value pointed to by * nextid must be incremented by the user. */ -void *idr_get_next_ul (struct idr *idr,unsigned long *nextid) +void *idr_get_next (struct idr *idr,int *nextid) { -struct radix_tree_iter iter; -void __rcu **slot; -unsigned long base = idr->idr_base;unsigned long id = *nextid; +void *entry =idr_get_next_ul (idr, &id); - id = (id < base) ?0 : id - base; - slot =radix_tree_iter_find (&idr->idr_rt, &iter, id); -if (!slot) +if (WARN_ON_ONCE (id >INT_MAX ))return NULL ; - - *nextid = iter.index + base; -return rcu_dereference_raw (*slot); + *nextid = id; +return entry; } -EXPORT_SYMBOL (idr_get_next_ul); +EXPORT_SYMBOL (idr_get_next);/** * idr_replace() - replace pointer for given ID.
lib/radix-tree.c +1 -1
@@ -1529,7 +1529,7 @@ void __rcu **idr_get_free(struct radix_tree_root *root, offset =radix_tree_find_next_bit (node,IDR_FREE , offset +1 ); start =next_index (start, node, offset); -if (start > max) +if (start > max || start ==0 )return ERR_PTR (-ENOSPC );while (offset ==RADIX_TREE_MAP_SIZE ) { offset = node->offset +1 ;
lib/test_xarray.c +24 -0
@@ -1110,6 +1110,28 @@ static noinline void check_find_entry(struct xarray *xa)XA_BUG_ON (xa, !xa_empty (xa)); } +static noinline void check_move_tiny(struct xarray *xa) +{ +XA_STATE (xas, xa,0 ); + +XA_BUG_ON (xa, !xa_empty (xa)); +rcu_read_lock (); +XA_BUG_ON (xa,xas_next (&xas) !=NULL ); +XA_BUG_ON (xa,xas_next (&xas) !=NULL ); +rcu_read_unlock (); +xa_store_index (xa,0 ,GFP_KERNEL ); +rcu_read_lock (); +xas_set (&xas,0 ); +XA_BUG_ON (xa,xas_next (&xas) !=xa_mk_index (0 )); +XA_BUG_ON (xa,xas_next (&xas) !=NULL ); +xas_set (&xas,0 ); +XA_BUG_ON (xa,xas_prev (&xas) !=xa_mk_index (0 )); +XA_BUG_ON (xa,xas_prev (&xas) !=NULL ); +rcu_read_unlock (); +xa_erase_index (xa,0 ); +XA_BUG_ON (xa, !xa_empty (xa)); +} + static noinline void check_move_small(struct xarray *xa, unsigned long idx) {XA_STATE (xas, xa,0 );
@@ -1217,6 +1239,8 @@ static noinline void check_move(struct xarray *xa)xa_destroy (xa); +check_move_tiny (xa); +for (i =0 ; i <16 ; i++)check_move_small (xa,1UL << i);
lib/xarray.c +4 -0
@@ -994,6 +994,8 @@ void *__xas_prev(struct xa_state *xas)if (!xas_frozen (xas->xa_node)) xas->xa_index--; +if (!xas->xa_node) +return set_bounds (xas);if (xas_not_node (xas->xa_node))return xas_load (xas);
@@ -1031,6 +1033,8 @@ void *__xas_next(struct xa_state *xas)if (!xas_frozen (xas->xa_node)) xas->xa_index++; +if (!xas->xa_node) +return set_bounds (xas);if (xas_not_node (xas->xa_node))return xas_load (xas);
net/bridge/netfilter/ebt_dnat.c +15 -4
@@ -20,7 +20,6 @@ static unsigned int ebt_dnat_tg(struct sk_buff *skb, const struct xt_action_param *par) { const struct ebt_nat_info *info = par->targinfo; -struct net_device *dev;if (skb_ensure_writable (skb,ETH_ALEN ))return EBT_DROP ;
@@ -33,10 +32,22 @@ ebt_dnat_tg(struct sk_buff *skb, const struct xt_action_param *par)else skb->pkt_type =PACKET_MULTICAST ; }else { -if (xt_hooknum (par) !=NF_BR_BROUTING ) - dev =br_port_get_rcu (xt_in (par))->br->dev; -else +const struct net_device *dev; + +switch (xt_hooknum (par)) { +case NF_BR_BROUTING : dev =xt_in (par); +break ; +case NF_BR_PRE_ROUTING : + dev =br_port_get_rcu (xt_in (par))->br->dev; +break ; +default : + dev =NULL ; +break ; + } + +if (!dev)/* NF_BR_LOCAL_OUT */ +return info->target;if (ether_addr_equal (info->mac, dev->dev_addr)) skb->pkt_type =PACKET_HOST ;
net/core/filter.c +4 -4
@@ -2299,7 +2299,7 @@ BPF_CALL_4(bpf_msg_pull_data, struct sk_msg *, msg, u32, start,WARN_ON_ONCE (last_sge == first_sge); shift = last_sge > first_sge ? last_sge - first_sge -1 : -MAX_SKB_FRAGS - first_sge + last_sge -1 ; +NR_MSG_FRAG_IDS - first_sge + last_sge -1 ;if (!shift) goto out;
@@ -2308,8 +2308,8 @@ BPF_CALL_4(bpf_msg_pull_data, struct sk_msg *, msg, u32, start, do { u32 move_from; - if (i + shift >= MAX_MSG_FRAGS) - move_from = i + shift - MAX_MSG_FRAGS; + if (i + shift >= NR_MSG_FRAG_IDS) + move_from = i + shift - NR_MSG_FRAG_IDS; else move_from = i + shift; if (move_from == msg->sg.end)
@@ -2323,7 +2323,7 @@ BPF_CALL_4(bpf_msg_pull_data, struct sk_msg *, msg, u32, start, }while (1 ); msg->sg.end = msg->sg.end - shift > msg->sg.end ? - msg->sg.end - shift +MAX_MSG_FRAGS : + msg->sg.end - shift +NR_MSG_FRAG_IDS : msg->sg.end - shift; out: msg->data =sg_virt (&msg->sg.data[first_sge]) + start - offset;
net/core/skmsg.c +1 -1
@@ -422,7 +422,7 @@ static int sk_psock_skb_ingress(struct sk_psock *psock, struct sk_buff *skb) copied = skb->len; msg->sg.start =0 ; msg->sg.size = copied; - msg->sg.end = num_sge ==MAX_MSG_FRAGS ?0 : num_sge; + msg->sg.end = num_sge; msg->skb = skb;sk_psock_queue_msg (psock, msg);
net/ipv4/tcp_bpf.c +1 -1
@@ -301,7 +301,7 @@ EXPORT_SYMBOL_GPL(tcp_bpf_sendmsg_redir);static int tcp_bpf_send_verdict (struct sock *sk,struct sk_psock *psock,struct sk_msg *msg,int *copied,int flags) { -bool cork = false, enospc = msg->sg.start == msg->sg.end; +bool cork = false, enospc =sk_msg_full (msg);struct sock *sk_redir;u32 tosend, delta =0 ;int ret;
net/mac80211/main.c +1 -1
@@ -1297,8 +1297,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)ieee80211_remove_interfaces (local); fail_rate:rtnl_unlock (); -ieee80211_led_exit (local); fail_flows: +ieee80211_led_exit (local);destroy_workqueue (local->workqueue); fail_workqueue:wiphy_unregister (local->hw.wiphy);
net/mac80211/sta_info.c +2 -1
@@ -2455,7 +2455,8 @@ unsigned long ieee80211_sta_last_active(struct sta_info *sta) {struct ieee80211_sta_rx_stats *stats =sta_get_last_rx_stats (sta); -if (time_after (stats->last_rx, sta->status_stats.last_ack)) +if (!sta->status_stats.last_ack || +time_after (stats->last_rx, sta->status_stats.last_ack))return stats->last_rx;return sta->status_stats.last_ack; }
net/netfilter/ipset/ip_set_core.c +28 -13
101 lines not on this page · raw message
net/netfilter/ipset/ip_set_hash_net.c +1 -0
@@ -368,6 +368,7 @@ static struct ip_set_type hash_net_type __read_mostly = { [IPSET_ATTR_IP_TO] = { .type = NLA_NESTED }, [IPSET_ATTR_CIDR] = { .type = NLA_U8 }, [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 }, + [IPSET_ATTR_LINENO] = { .type = NLA_U32 }, [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 }, [IPSET_ATTR_BYTES] = { .type = NLA_U64 }, [IPSET_ATTR_PACKETS] = { .type = NLA_U64 },
net/netfilter/ipset/ip_set_hash_netnet.c +1 -0
@@ -476,6 +476,7 @@ static struct ip_set_type hash_netnet_type __read_mostly = { [IPSET_ATTR_CIDR] = { .type = NLA_U8 }, [IPSET_ATTR_CIDR2] = { .type = NLA_U8 }, [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 }, + [IPSET_ATTR_LINENO] = { .type = NLA_U32 }, [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 }, [IPSET_ATTR_BYTES] = { .type = NLA_U64 }, [IPSET_ATTR_PACKETS] = { .type = NLA_U64 },
net/netfilter/nf_tables_api.c +1 -0
@@ -1922,6 +1922,7 @@ static int nf_tables_newchain(struct net *net, struct sock *nlsk,if (nlh->nlmsg_flags &NLM_F_REPLACE )return -EOPNOTSUPP ; + flags |= chain->flags &NFT_BASE_CHAIN ;return nf_tables_updchain (&ctx, genmask, policy, flags); }
net/netfilter/nf_tables_offload.c +2 -1
@@ -241,7 +241,8 @@ int nft_flow_rule_offload_commit(struct net *net)switch (trans->msg_type) {case NFT_MSG_NEWCHAIN : -if (!(trans->ctx.chain->flags &NFT_CHAIN_HW_OFFLOAD )) +if (!(trans->ctx.chain->flags &NFT_CHAIN_HW_OFFLOAD ) || +nft_trans_chain_update (trans))continue ; err =nft_flow_offload_chain (trans,FLOW_BLOCK_BIND );
net/openvswitch/datapath.c +14 -3
@@ -701,9 +701,13 @@ static size_t ovs_flow_cmd_msg_size(const struct sw_flow_actions *acts, {size_t len =NLMSG_ALIGN (sizeof (struct ovs_header )); -/* OVS_FLOW_ATTR_UFID */ +/* OVS_FLOW_ATTR_UFID, or unmasked flow key as fallback +* see ovs_nla_put_identifier() +*/ if (sfid &&ovs_identifier_is_ufid (sfid)) len +=nla_total_size (sfid->ufid_len); +else + len +=nla_total_size (ovs_key_attr_size ());/* OVS_FLOW_ATTR_KEY */ if (!sfid ||should_fill_key (sfid, ufid_flags))
@@ -879,7 +883,10 @@ static struct sk_buff *ovs_flow_cmd_build_info(const struct sw_flow *flow, retval =ovs_flow_cmd_fill_info (flow, dp_ifindex, skb, info->snd_portid, info->snd_seq,0 , cmd, ufid_flags); -BUG_ON (retval <0 ); +if (WARN_ON_ONCE (retval <0 )) { +kfree_skb (skb); + skb =ERR_PTR (retval); + }return skb; }
@@ -1343,7 +1350,10 @@ static int ovs_flow_cmd_del(struct sk_buff *skb, struct genl_info *info)OVS_FLOW_CMD_DEL , ufid_flags);rcu_read_unlock (); -BUG_ON (err <0 ); +if (WARN_ON_ONCE (err <0 )) { +kfree_skb (reply); + goto out_free; + }ovs_notify (&dp_flow_genl_family, reply, info); }else {
@@ -1351,6 +1361,7 @@ static int ovs_flow_cmd_del(struct sk_buff *skb, struct genl_info *info) } } +out_free:ovs_flow_free (flow, true);return 0 ; unlock:
net/psample/psample.c +1 -1
@@ -221,7 +221,7 @@ void psample_sample_packet(struct psample_group *group, struct sk_buff *skb, data_len =PSAMPLE_MAX_PACKET_SIZE - meta_len -NLA_HDRLEN -NLA_ALIGNTO ; - nl_skb =genlmsg_new (meta_len + data_len,GFP_ATOMIC ); + nl_skb =genlmsg_new (meta_len +nla_total_size (data_len),GFP_ATOMIC );if (unlikely (!nl_skb))return ;
net/sched/sch_mq.c +2 -1
@@ -245,7 +245,8 @@ static int mq_dump_class_stats(struct Qdisc *sch, unsigned long cl,struct netdev_queue *dev_queue =mq_queue_get (sch, cl); sch = dev_queue->qdisc_sleeping; -if (gnet_stats_copy_basic (&sch->running, d,NULL , &sch->bstats) <0 || +if (gnet_stats_copy_basic (&sch->running, d, sch->cpu_bstats, + &sch->bstats) <0 ||qdisc_qstats_copy (d, sch) <0 )return -1 ;return 0 ;
net/sched/sch_mqprio.c +2 -2
@@ -557,8 +557,8 @@ static int mqprio_dump_class_stats(struct Qdisc *sch, unsigned long cl,struct netdev_queue *dev_queue =mqprio_queue_get (sch, cl); sch = dev_queue->qdisc_sleeping; -if (gnet_stats_copy_basic (qdisc_root_sleeping_running (sch), - d,NULL , &sch->bstats) <0 || +if (gnet_stats_copy_basic (qdisc_root_sleeping_running (sch), d, + sch->cpu_bstats, &sch->bstats) <0 ||qdisc_qstats_copy (d, sch) <0 )return -1 ; }
net/sched/sch_multiq.c +1 -1
@@ -330,7 +330,7 @@ static int multiq_dump_class_stats(struct Qdisc *sch, unsigned long cl, cl_q = q->queues[cl -1 ];if (gnet_stats_copy_basic (qdisc_root_sleeping_running (sch), - d,NULL , &cl_q->bstats) <0 || + d, cl_q->cpu_bstats, &cl_q->bstats) <0 ||qdisc_qstats_copy (d, cl_q) <0 )return -1 ;
net/sched/sch_prio.c +1 -1
@@ -356,7 +356,7 @@ static int prio_dump_class_stats(struct Qdisc *sch, unsigned long cl, cl_q = q->queues[cl -1 ];if (gnet_stats_copy_basic (qdisc_root_sleeping_running (sch), - d,NULL , &cl_q->bstats) <0 || + d, cl_q->cpu_bstats, &cl_q->bstats) <0 ||qdisc_qstats_copy (d, cl_q) <0 )return -1 ;
net/sctp/associola.c +1 -0
@@ -65,6 +65,7 @@ static struct sctp_association *sctp_association_init(/* Discarding const is appropriate here. */ asoc->ep = (struct sctp_endpoint *)ep; asoc->base.sk = (struct sock *)sk; + asoc->base.net =sock_net (sk);sctp_endpoint_hold (asoc->ep);sock_hold (asoc->base.sk);
net/sctp/endpointola.c +1 -0
@@ -152,6 +152,7 @@ static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep,/* Remember who we are attached to. */ ep->base.sk = sk; + ep->base.net =sock_net (sk);sock_hold (ep->base.sk);return ep;
net/sctp/input.c +2 -2
@@ -876,7 +876,7 @@ static inline int sctp_hash_cmp(struct rhashtable_compare_arg *arg,if (!sctp_transport_hold (t))return err; -if (!net_eq (sock_net (t->asoc->base.sk), x->net)) +if (!net_eq (t->asoc->base.net, x->net)) goto out;if (x->lport !=htons (t->asoc->base.bind_addr.port)) goto out;
@@ -891,7 +891,7 @@ static inline __u32 sctp_hash_obj(const void *data, u32 len, u32 seed) {const struct sctp_transport *t = data; -return sctp_hashfn (sock_net (t->asoc->base.sk), +return sctp_hashfn (t->asoc->base.net,htons (t->asoc->base.bind_addr.port), &t->ipaddr, seed); }
net/sctp/sm_statefuns.c +3 -1
@@ -2160,8 +2160,10 @@ enum sctp_disposition sctp_sf_do_5_2_4_dupcook(/* Update socket peer label if first association. */ if (security_sctp_assoc_request ((struct sctp_endpoint *)ep, - chunk->skb)) + chunk->skb)) { +sctp_association_free (new_asoc);return sctp_sf_pdiscard (net, ep, asoc, type, arg, commands); + }/* Set temp so that it won't be added into hashtable */ new_asoc->temp =1 ;
net/socket.c +132 -52
273 lines not on this page · raw message
net/tipc/netlink_compat.c +2 -2
@@ -550,7 +550,7 @@ static int tipc_nl_compat_link_stat_dump(struct tipc_nl_compat_msg *msg,if (len <=0 )return -EINVAL ; - len =min_t (int, len,TIPC_MAX_BEARER_NAME ); + len =min_t (int, len,TIPC_MAX_LINK_NAME );if (!string_is_valid (name, len))return -EINVAL ;
@@ -822,7 +822,7 @@ static int tipc_nl_compat_link_reset_stats(struct tipc_nl_compat_cmd_doit *cmd,if (len <=0 )return -EINVAL ; - len =min_t (int, len,TIPC_MAX_BEARER_NAME ); + len =min_t (int, len,TIPC_MAX_LINK_NAME );if (!string_is_valid (name, len))return -EINVAL ;
net/tls/tls_main.c +2 -11
@@ -208,24 +208,15 @@ int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,return tls_push_sg (sk, ctx, sg, offset, flags); } -bool tls_free_partial_record (struct sock *sk,struct tls_context *ctx) +void tls_free_partial_record (struct sock *sk,struct tls_context *ctx) {struct scatterlist *sg; - sg = ctx->partially_sent_record; -if (!sg) -return false; - -while (1 ) { +for (sg = ctx->partially_sent_record; sg; sg =sg_next (sg)) {put_page (sg_page (sg));sk_mem_uncharge (sk, sg->length); - -if (sg_is_last (sg)) -break ; - sg++; } ctx->partially_sent_record =NULL ; -return true; }static void tls_write_space (struct sock *sk)
net/tls/tls_sw.c +19 -13
@@ -705,8 +705,7 @@ static int tls_push_record(struct sock *sk, int flags, } i = msg_pl->sg.start; -sg_chain (rec->sg_aead_in,2 , rec->inplace_crypto ? - &msg_en->sg.data[i] : &msg_pl->sg.data[i]); +sg_chain (rec->sg_aead_in,2 , &msg_pl->sg.data[i]); i = msg_en->sg.end;sk_msg_iter_var_prev (i);
@@ -766,8 +765,14 @@ static int bpf_exec_tx_verdict(struct sk_msg *msg, struct sock *sk, policy = !(flags &MSG_SENDPAGE_NOPOLICY ); psock =sk_psock_get (sk); -if (!psock || !policy) -return tls_push_record (sk, flags, record_type); +if (!psock || !policy) { + err =tls_push_record (sk, flags, record_type); +if (err) { + *copied -=sk_msg_free (sk, msg); +tls_free_open_rec (sk); + } +return err; + } more_data: enospc =sk_msg_full (msg);if (psock->eval == __SK_NONE) {
@@ -965,8 +970,6 @@ int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)if (ret) goto fallback_to_reg_send; - rec->inplace_crypto =0 ; - num_zc++; copied += try_to_copy;
@@ -979,7 +982,7 @@ int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size) num_async++; else if (ret == -ENOMEM) goto wait_for_memory; - else if (ret == -ENOSPC) + else if (ctx->open_rec && ret == -ENOSPC) goto rollback_iter; else if (ret != -EAGAIN) goto send_end;
@@ -1048,11 +1051,12 @@ int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size) ret =sk_stream_wait_memory (sk, &timeo);if (ret) { trim_sgl: -tls_trim_both_msgs (sk, orig_size); +if (ctx->open_rec) +tls_trim_both_msgs (sk, orig_size); goto send_end; } -if (msg_en->sg.size < required_size) +if (ctx->open_rec && msg_en->sg.size < required_size) goto alloc_encrypted; }
@@ -1164,7 +1168,6 @@ static int tls_sw_do_sendpage(struct sock *sk, struct page *page, tls_ctx->pending_open_record_frags = true;if (full_record || eor ||sk_msg_full (msg_pl)) { - rec->inplace_crypto =0 ; ret =bpf_exec_tx_verdict (msg_pl, sk, full_record, record_type, &copied, flags);if (ret) {
@@ -1185,11 +1188,13 @@ static int tls_sw_do_sendpage(struct sock *sk, struct page *page, wait_for_memory: ret =sk_stream_wait_memory (sk, &timeo);if (ret) { -tls_trim_both_msgs (sk, msg_pl->sg.size); +if (ctx->open_rec) +tls_trim_both_msgs (sk, msg_pl->sg.size); goto sendpage_end; } - goto alloc_payload; +if (ctx->open_rec) + goto alloc_payload; }if (num_async) {
@@ -2081,7 +2086,8 @@ void tls_sw_release_resources_tx(struct sock *sk)/* Free up un-sent records in tx_list. First, free * the partially sent record if any at head of tx_list. */ -if (tls_free_partial_record (sk, tls_ctx)) { +if (tls_ctx->partially_sent_record) { +tls_free_partial_record (sk, tls_ctx); rec =list_first_entry (&ctx->tx_list, struct tls_rec, list);list_del (&rec->list);
net/xfrm/xfrm_state.c +2 -0
@@ -495,6 +495,8 @@ static void ___xfrm_state_destroy(struct xfrm_state *x) x->type->destructor (x);xfrm_put_type (x->type); } +if (x->xfrag.page) +put_page (x->xfrag.page);xfrm_dev_state_free (x);security_xfrm_state_free (x);xfrm_state_free (x);
samples/bpf/Makefile +1 -0
@@ -176,6 +176,7 @@ KBUILD_HOSTCFLAGS += -I$(srctree)/tools/lib/bpf/ KBUILD_HOSTCFLAGS += -I$(srctree)/tools/testing/selftests/bpf/ KBUILD_HOSTCFLAGS += -I$(srctree)/tools/lib/ -I$(srctree)/tools/include KBUILD_HOSTCFLAGS += -I$(srctree)/tools/perf +KBUILD_HOSTCFLAGS += -DHAVE_ATTR_TEST=0 HOSTCFLAGS_bpf_load.o += -I$(objtree)/usr/include -Wno-unused-variable
scripts/gdb/linux/symbols.py +2 -1
@@ -99,7 +99,8 @@ lx-symbols command.""" attrs[n]['name'].string(): attrs[n]['address'] for n in range(int(sect_attrs['nsections']))} args = [] - for section_name in [".data", ".data..read_mostly", ".rodata", ".bss"]: + for section_name in [".data", ".data..read_mostly", ".rodata", ".bss", + ".text", ".text.hot", ".text.unlikely"]: address = section_name_to_address.get(section_name) if address: args.append(" -s {name} {addr}".format(
sound/core/compress_offload.c +1 -1
@@ -528,7 +528,7 @@ static int snd_compress_check_input(struct snd_compr_params *params) {/* first let's check the buffer parameter's */ if (params->buffer.fragment_size ==0 || - params->buffer.fragments >INT_MAX / params->buffer.fragment_size || + params->buffer.fragments >U32_MAX / params->buffer.fragment_size || params->buffer.fragments ==0 )return -EINVAL ;
sound/pci/hda/patch_hdmi.c +13 -0
@@ -2703,6 +2703,18 @@ static int patch_i915_icl_hdmi(struct hda_codec *codec)return intel_hsw_common_init (codec,0x02 , map,ARRAY_SIZE (map)); } +static int patch_i915_tgl_hdmi (struct hda_codec *codec) +{ +/* +* pin to port mapping table where the value indicate the pin number and +* the index indicate the port number with 1 base. +*/ +static const int map[] = {0x4 ,0x6 ,0x8 ,0xa ,0xb ,0xc ,0xd ,0xe ,0xf }; + +return intel_hsw_common_init (codec,0x02 , map,ARRAY_SIZE (map)); +} + +/* Intel Baytrail and Braswell; with eld notifier */ static int patch_i915_byt_hdmi (struct hda_codec *codec) {
@@ -3960,6 +3972,7 @@ HDA_CODEC_ENTRY(0x8086280b, "Kabylake HDMI", patch_i915_hsw_hdmi),HDA_CODEC_ENTRY (0x8086280c ,"Cannonlake HDMI" , patch_i915_glk_hdmi),HDA_CODEC_ENTRY (0x8086280d ,"Geminilake HDMI" , patch_i915_glk_hdmi),HDA_CODEC_ENTRY (0x8086280f ,"Icelake HDMI" , patch_i915_icl_hdmi), +HDA_CODEC_ENTRY (0x80862812 ,"Tigerlake HDMI" , patch_i915_tgl_hdmi),HDA_CODEC_ENTRY (0x80862880 ,"CedarTrail HDMI" , patch_generic_hdmi),HDA_CODEC_ENTRY (0x80862882 ,"Valleyview2 HDMI" , patch_i915_byt_hdmi), HDA_CODEC_ENTRY(0x80862883, "Braswell HDMI", patch_i915_byt_hdmi),
sound/soc/codecs/hdac_hda.c +1 -1
@@ -410,8 +410,8 @@ static void hdac_hda_codec_remove(struct snd_soc_component *component)return ; } -snd_hdac_ext_bus_link_put (hdev->bus, hlink);pm_runtime_disable (&hdev->dev); +snd_hdac_ext_bus_link_put (hdev->bus, hlink); }static const struct snd_soc_dapm_route hdac_hda_dapm_routes[] = {
sound/soc/codecs/msm8916-wcd-analog.c +2 -2
@@ -306,7 +306,7 @@ struct pm8916_wcd_analog_priv { };static const char *const adc2_mux_text[] = {"ZERO" ,"INP2" ,"INP3" };
Lines of this file are not shown. View the raw message.
tools/perf/util/scripting-engines/trace-event-perl.c +6 -2
Lines of this file are not shown. View the raw message.
tools/perf/util/scripting-engines/trace-event-python.c +7 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/test_sockmap.c +28 -19
47 lines not on this page · raw message
tools/testing/selftests/bpf/test_sysctl.c +7 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/tls.c +60 -0
60 lines not on this page · raw message
tools/testing/selftests/vm/gup_benchmark.c +1 -1
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.