Skip to contentSkip to conversation

Linux 4.19.283

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages May 17, 2023 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 4.19.283 kernel.

All users of the 4.19 kernel series must upgrade.

The updated 4.19.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 Documentation/media/uapi/v4l/subdev-formats.rst             |   27 +
 Makefile                                                    |    2 
 arch/arm/boot/dts/exynos4412-itop-elite.dts                 |    2 
 arch/arm/boot/dts/qcom-ipq4019.dtsi                         |    4 
 arch/arm/boot/dts/s5pv210.dtsi                              |    2 
 arch/arm64/include/asm/debug-monitors.h                     |    1 
 arch/arm64/kernel/debug-monitors.c                          |    5 
 arch/arm64/kernel/kgdb.c                                    |    2 
 arch/ia64/kernel/salinfo.c                                  |    2 
 arch/ia64/mm/contig.c                                       |    2 
 arch/mips/fw/lib/cmdline.c                                  |    2 
 arch/openrisc/kernel/entry.S                                |    6 
 arch/parisc/kernel/real2.S                                  |    5 
 arch/powerpc/kernel/rtas.c                                  |    2 
 arch/powerpc/platforms/512x/clock-commonclk.c               |    2 
 arch/powerpc/platforms/embedded6xx/flipper-pic.c            |    2 
 arch/powerpc/platforms/embedded6xx/hlwd-pic.c               |    2 
 arch/powerpc/platforms/embedded6xx/wii.c                    |    4 
 arch/powerpc/sysdev/tsi108_pci.c                            |    5 
 arch/sh/kernel/cpu/sh4/sq.c                                 |    2 
 arch/sh/kernel/head_32.S                                    |    6 
 arch/sh/kernel/nmi_debug.c                                  |    4 
 arch/sh/kernel/setup.c                                      |    4 
 arch/sh/math-emu/sfp-util.h                                 |    4 
 arch/x86/kernel/apic/apic.c                                 |    5 
 arch/x86/kernel/apic/io_apic.c                              |   14 
 arch/x86/kvm/vmx/vmx.c                                      |   15 
 crypto/drbg.c                                               |   16 
 drivers/base/cpu.c                                          |    3 
 drivers/block/drbd/drbd_receiver.c                          |    2 
 drivers/bluetooth/btsdio.c                                  |    1 
 drivers/char/ipmi/ipmi_msghandler.c                         |  119 +++-
 drivers/char/ipmi/ipmi_si_intf.c                            |    5 
 drivers/char/ipmi/ipmi_ssif.c                               |  118 +++-
 drivers/clk/clk-conf.c                                      |   12 
 drivers/clk/rockchip/clk-rk3399.c                           |    2 
 drivers/dma/at_xdmac.c                                      |    5 
 drivers/edac/skx_edac.c                                     |   29 -
 drivers/firmware/qcom_scm.c                                 |    3 
 drivers/fpga/fpga-bridge.c                                  |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu.h                         |    7 
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c                  |   17 
 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c                     |   40 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c                   |   47 +
 drivers/gpu/drm/drm_probe_helper.c                          |    5 
 drivers/gpu/drm/msm/adreno/adreno_device.c                  |    7 
 drivers/gpu/drm/msm/adreno/adreno_gpu.c                     |    1 
 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c            |    2 
 drivers/gpu/drm/rockchip/rockchip_drm_gem.c                 |    3 
 drivers/gpu/drm/vgem/vgem_fence.c                           |    1 
 drivers/hid/wacom_wac.c                                     |   12 
 drivers/i2c/busses/i2c-omap.c                               |    2 
 drivers/iio/adc/palmas_gpadc.c                              |    2 
 drivers/infiniband/hw/hfi1/mmu_rb.c                         |   13 
 drivers/infiniband/hw/mlx4/qp.c                             |    8 
 drivers/infiniband/hw/mlx5/qp.c                             |    2 
 drivers/infiniband/sw/rdmavt/qp.c                           |    2 
 drivers/macintosh/Kconfig                                   |    1 
 drivers/macintosh/windfarm_smu_sat.c                        |    1 
 drivers/md/dm-flakey.c                                      |    4 
 drivers/md/dm-integrity.c                                   |    8 
 drivers/md/dm-ioctl.c                                       |    7 
 drivers/md/dm-verity-target.c                               |   17 
 drivers/md/raid10.c                                         |   96 ++-
 drivers/md/raid5.c                                          |   10 
 drivers/media/pci/dm1105/dm1105.c                           |    1 
 drivers/media/pci/saa7134/saa7134-ts.c                      |    1 
 drivers/media/pci/saa7134/saa7134-vbi.c                     |    1 
 drivers/media/pci/saa7134/saa7134-video.c                   |    1 
 drivers/media/pci/ttpci/av7110_av.c                         |    4 
 drivers/media/platform/rcar_fdp1.c                          |   18 
 drivers/media/platform/sti/bdisp/bdisp-v4l2.c               |    2 
 drivers/media/rc/gpio-ir-recv.c                             |    2 
 drivers/misc/vmw_vmci/vmci_host.c                           |    8 
 drivers/mtd/spi-nor/cadence-quadspi.c                       |   72 +-
 drivers/mtd/ubi/eba.c                                       |   19 
 drivers/net/dsa/mv88e6xxx/chip.c                            |    3 
 drivers/net/ethernet/amd/nmclan_cs.c                        |    2 
 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c            |   23 
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c           |   32 +
 drivers/net/virtio_net.c                                    |   43 +
 drivers/net/wireless/ath/ath5k/eeprom.c                     |    2 
 drivers/net/wireless/ath/ath6kl/bmi.c                       |    2 
 drivers/net/wireless/ath/ath6kl/htc_pipe.c                  |    4 
 drivers/net/wireless/ath/ath9k/hif_usb.c                    |   19 
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c |    5 
 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c            |   10 
 drivers/net/wireless/intel/iwlwifi/pcie/trans.c             |    3 
 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c      |    1 
 drivers/net/wireless/realtek/rtlwifi/base.c                 |  144 ++---
 drivers/net/wireless/realtek/rtlwifi/cam.c                  |   82 +--
 drivers/net/wireless/realtek/rtlwifi/core.c                 |  259 +++++-----
 drivers/net/wireless/realtek/rtlwifi/debug.c                |   16 
 drivers/net/wireless/realtek/rtlwifi/debug.h                |   11 
 drivers/net/wireless/realtek/rtlwifi/efuse.c                |   72 +-
 drivers/net/wireless/realtek/rtlwifi/pci.c                  |  284 +++++------
 drivers/net/wireless/realtek/rtlwifi/ps.c                   |   98 +--
 drivers/net/wireless/realtek/rtlwifi/regd.c                 |   18 
 drivers/net/wireless/realtek/rtlwifi/usb.c                  |   18 
 drivers/of/device.c                                         |    7 
 drivers/pci/hotplug/pciehp.h                                |    3 
 drivers/pci/hotplug/pciehp_core.c                           |    2 
 drivers/pci/hotplug/pciehp_hpc.c                            |   19 
 drivers/pci/hotplug/pciehp_pci.c                            |   15 
 drivers/phy/tegra/xusb.c                                    |    2 
 drivers/platform/x86/touchscreen_dmi.c                      |   24 
 drivers/power/supply/generic-adc-battery.c                  |    3 
 drivers/pwm/pwm-meson.c                                     |    2 
 drivers/pwm/pwm-mtk-disp.c                                  |   94 +--
 drivers/s390/block/dasd.c                                   |    2 
 drivers/scsi/megaraid.c                                     |    1 
 drivers/spi/spi-fsl-spi.c                                   |   12 
 drivers/spi/spi-qup.c                                       |   20 
 drivers/spmi/spmi.c                                         |    3 
 drivers/staging/iio/resolver/ad2s1210.c                     |    2 
 drivers/staging/rtl8192e/rtl8192e/rtl_core.c                |    1 
 drivers/target/iscsi/iscsi_target.c                         |   16 
 drivers/tty/serial/8250/8250.h                              |   12 
 drivers/tty/serial/8250/8250_port.c                         |   16 
 drivers/tty/serial/fsl_lpuart.c                             |    2 
 drivers/tty/tty_io.c                                        |    4 
 drivers/tty/tty_ioctl.c                                     |   45 +
 drivers/usb/chipidea/core.c                                 |    2 
 drivers/usb/dwc3/core.c                                     |    1 
 drivers/usb/gadget/udc/renesas_usb3.c                       |    1 
 drivers/usb/host/xhci-debugfs.c                             |    1 
 drivers/usb/host/xhci-rcar.c                                |    3 
 drivers/usb/serial/option.c                                 |    6 
 fs/btrfs/ctree.c                                            |   32 +
 fs/btrfs/ioctl.c                                            |    5 
 fs/btrfs/print-tree.c                                       |    6 
 fs/cifs/smb2ops.c                                           |    2 
 fs/debugfs/file.c                                           |    8 
 fs/ext4/balloc.c                                            |   25 +
 fs/ext4/inline.c                                            |   14 
 fs/ext4/mballoc.c                                           |    6 
 fs/ext4/super.c                                             |   19 
 fs/ext4/xattr.c                                             |    5 
 fs/fs-writeback.c                                           |    2 
 fs/nfs/nfs4state.c                                          |    4 
 fs/nilfs2/bmap.c                                            |   16 
 fs/nilfs2/segment.c                                         |    5 
 fs/pstore/pmsg.c                                            |    7 
 fs/reiserfs/xattr_security.c                                |    8 
 fs/ubifs/dir.c                                              |    1 
 fs/ubifs/tnc.c                                              |  142 +++--
 include/linux/debugfs.h                                     |    1 
 include/linux/ipmi_smi.h                                    |   36 +
 include/linux/netfilter/nfnetlink.h                         |    1 
 include/linux/printk.h                                      |   19 
 include/linux/sunrpc/sched.h                                |    3 
 include/linux/tick.h                                        |    9 
 include/linux/tty.h                                         |    2 
 include/linux/vt_buffer.h                                   |    2 
 include/net/netfilter/nf_tables.h                           |    1 
 include/net/scm.h                                           |   13 
 include/trace/events/timer.h                                |    3 
 include/uapi/drm/amdgpu_drm.h                               |    3 
 include/uapi/linux/btrfs.h                                  |    1 
 include/uapi/linux/const.h                                  |    2 
 include/uapi/linux/media-bus-format.h                       |    8 
 kernel/events/core.c                                        |    4 
 kernel/relay.c                                              |   18 
 kernel/time/tick-sched.c                                    |   18 
 kernel/trace/ring_buffer.c                                  |    4 
 lib/debugobjects.c                                          |  300 ++++++++----
 mm/page_alloc.c                                             |   16 
 net/8021q/vlan_dev.c                                        |    2 
 net/bluetooth/hci_sock.c                                    |    9 
 net/core/skbuff.c                                           |    3 
 net/ipv4/ip_output.c                                        |   16 
 net/ipv6/sit.c                                              |    8 
 net/netfilter/nf_tables_api.c                               |   20 
 net/netfilter/nfnetlink.c                                   |    2 
 net/netfilter/nft_dynset.c                                  |    2 
 net/netfilter/nft_lookup.c                                  |    2 
 net/netfilter/nft_objref.c                                  |    2 
 net/netlink/af_netlink.c                                    |   67 --
 net/packet/af_packet.c                                      |   20 
 net/packet/diag.c                                           |    4 
 net/packet/internal.h                                       |   26 -
 net/rxrpc/sendmsg.c                                         |    2 
 net/sched/act_mirred.c                                      |    2 
 net/sunrpc/clnt.c                                           |    3 
 net/sunrpc/sched.c                                          |    1 
 security/selinux/Makefile                                   |    4 
 sound/soc/intel/boards/bytcr_rt5640.c                       |   12 
 sound/usb/caiaq/input.c                                     |    1 
 tools/bpf/bpftool/json_writer.c                             |    3 
 tools/bpf/bpftool/xlated_dumper.c                           |    7 
 tools/perf/builtin-sched.c                                  |    2 
 tools/perf/pmu-events/arch/powerpc/power9/other.json        |    4 
 tools/perf/pmu-events/arch/powerpc/power9/pipeline.json     |    2 
 tools/perf/util/auxtrace.c                                  |    5 
 tools/perf/util/sort.c                                      |    3 
 tools/perf/util/symbol-elf.c                                |    2 
 196 files changed, 2140 insertions(+), 1233 deletions(-)

Adrian Hunter (1):
perf auxtrace: Fix address filter entire kernel size

Akilesh Kailash (1):
dm verity: skip redundant verity_handle_err() on I/O errors

Alexander Mikhalitsyn (1):
scm: fix MSG_CTRUNC setting condition for SO_PASSSEC

Alexey V. Vissarionov (1):
wifi: ath6kl: minor fix for allocation size

Anastasia Belova (1):
btrfs: print-tree: parent bytenr must be aligned to sector size

Andrew Lunn (1):
net: dsa: mv88e6xxx: Add missing watchdog ops for 6320 family

Andrey Avdeev (1):
platform/x86: touchscreen_dmi: Add info for the Dexp Ursus KX210i

Angelo Dureghello (1):

      net: dsa: mv88e6xxx: add mv88e6321 rsvd2cpu

AngeloGioacchino Del Regno (1):
pwm: mtk-disp: Disable shadow registers before setting backlight values

Arnaldo Carvalho de Melo (1):
perf sched: Cast PTHREAD_STACK_MIN to int as it may turn into sysconf(__SC_THREAD_STACK_MIN_VALUE)

Arınç ÜNAL (1):
USB: serial: option: add UNISOC vendor and TOZED LT70C product

Bas Nieuwenhuizen (1):
drm/amdgpu: Add command to override the context priority.

Bitterblue Smith (1):
wifi: rtl8xxxu: RTL8192EU always needs full init

Chia-I Wu (1):
drm/amdgpu: add a missing lock for AMDGPU_SCHED

Christoph Böhmwalder (1):
drbd: correctly submit flush bio on barrier

Christoph Hellwig (1):
md: update the optimal I/O size on reshape

Christophe Leroy (1):
spi: fsl-spi: Fix CPM/QE mode Litte Endian

Claudiu Beznea (1):
dmaengine: at_xdmac: do not enable all cyclic channels

Clément Léger (1):
clk: add missing of_node_put() in "assigned-clocks" property parsing

Cong Wang (1):

      sit: update dev->needed_headroom in ipip6_tunnel_bind_dev()

Corey Minyard (3):
ipmi: Fix SSIF flag requests
ipmi: Fix how the lower layers are told to watch for messages
ipmi_ssif: Rename idle state and check

Dae R. Jeong (1):
vmci_host: fix a race condition in vmci_host_poll() causing GPF

Dafna Hirschfeld (1):
media: uapi: add MEDIA_BUS_FMT_METADATA_FIXED media bus format.

Dai Ngo (1):
SUNRPC: remove the maximum number of retries in call_bind_status

Dan Carpenter (3):
media: av7110: prevent underflow in write_ts_to_decoder()
wifi: ath5k: fix an off by one check in ath5k_eeprom_read_freq_list() RDMA/mlx4: Prevent shift wrapping in set_user_sq_size()

Danila Chernetsov (1):
scsi: megaraid: Fix mega_cmd_done() CMDID_INT_CMDS

David Howells (1):
rxrpc: Fix hard call timeout units

Dhruva Gole (1):
spi: cadence-quadspi: fix suspend-resume implementations

Dom Cobley (1):
drm/probe-helper: Cancel previous job before starting new one

Emmanuel Grumbach (1):
wifi: iwlwifi: make the loop for card preparation effective

Eric Dumazet (2):

      net/packet: convert po->origdev to an atomic flag
      net/packet: convert po->auxdata to an atomic flag

Fedor Pchelkin (2):
wifi: ath9k: hif_usb: fix memory leak of remain_skbs
wifi: ath6kl: reduce WARN to dev_dbg() in callback

Filipe Manana (1):
btrfs: fix btrfs_prev_leaf() to not return the same key twice

Florian Fainelli (2):
media: rc: gpio-ir-recv: Fix support for wake-up
serial: 8250: Add missing wakeup event reporting

Florian Westphal (1):
netfilter: nf_tables: don't write table validation state without mutex

Frederic Weisbecker (1):
nohz: Add TICK_DEP_BIT_RCU

Gaosheng Cui (1):
phy: tegra: xusb: Add missing tegra_xusb_port_unregister for usb2_port and ulpi_port

Geert Uytterhoeven (1):
debugfs: regset32: Add Runtime PM support

Gencen Gan (1):
net: amd: Fix link leak when verifying config failed

Greg Kroah-Hartman (1):

      Linux 4.19.283

Hans de Goede (2):
ASoC: Intel: bytcr_rt5640: Add quirk for the Acer Iconia One 7 B1-750
PCI: pciehp: Use down_read/write_nested(reset_lock) to fix lockdep errors

Heiner Kallweit (1):
pwm: meson: Fix axg ao mux parents

Helge Deller (1):
parisc: Fix argument pointer in real64_call_asm()

Herbert Xu (1):
crypto: drbg - Only fail when jent is unavailable in FIPS mode

Ilpo Järvinen (2):
tty: Prevent writing chars during tcsetattr TCSADRAIN/FLUSH
serial: 8250: Fix serial8250_tx_empty() race with DMA Tx

James Cowgill (1):
drm/panel: otm8009a: Set backlight parent to panel device

Jiasheng Jiang (1):
media: bdisp: Add missing check for create_workqueue

Jiaxun Yang (1):
MIPS: fw: Allow firmware to pass a empty env

Jiping Ma (1):
stmmac: debugfs entry name is not be changed when udev rename device name.

Jishnu Prakash (1):
spmi: Add a check for remove callback when removing a SPMI driver

Jisoo Jang (1):
wifi: brcmfmac: slab-out-of-bounds read in brcmf_get_assoc_ies()

Jitao Shi (1):
pwm: mtk-disp: Adjust the clocks to avoid them mismatch

Joe Damato (2):
ixgbe: Allow flow hash to be set via ethtool
ixgbe: Enable setting RSS table to default values

Joel Fernandes (Google) (1):
tick/nohz: Fix cpu_is_hotpluggable() by checking with nohz subsystem

Johan Hovold (3):
USB: dwc3: fix runtime pm imbalance on unbind
xhci: fix debugfs register accesses while suspended drm/msm/adreno: drop bogus pm_runtime_set_active()

Johannes Berg (2):
ring-buffer: Sync IRQ works before buffer destruction
wifi: iwlwifi: mvm: check firmware response size

John Paul Adrian Glaubitz (1):
sh: sq: Fix incorrect element size for allocating bitmap buffer

John Stultz (1):
pstore: Revert pmsg_lock back to a normal mutex

Kajol Jain (1):
perf vendor events power9: Remove UTF-8 characters from JSON files

Kevin Brodsky (1):
uapi/linux/const.h: prefer ISO-friendly __typeof__

Krzysztof Kozlowski (2):
ARM: dts: exynos: fix WM8960 clock name in Itop Elite
ARM: dts: s5pv210: correct MIPI CSIS clock name

Kuniyuki Iwashima (3):
netlink: Use copy_to_user() for optval in netlink_getsockopt(). tcp/udp: Fix memleaks of sk and zerocopy skbs with TX timestamp.
af_packet: Don't send zero-byte data in packet_sendmsg_spkt().

Larry Finger (3):
rtlwifi: rtl_pci: Fix memory leak when hardware init fails
rtlwifi: Start changing RT_TRACE into rtl_dbg
rtlwifi: Replace RT_TRACE with rtl_dbg

Li Nan (1):
md/raid10: fix null-ptr-deref in raid10_sync_request

Liang He (1):
macintosh/windfarm_smu_sat: Add missing of_node_put()

Liu Jian (1):
Revert "Bluetooth: btsdio: fix use after free bug in btsdio_remove due to unfinished work"

Luis Gerhorst (1):
tools: bpftool: Remove invalid \' json escape

Lukas Wunner (1):
PCI: pciehp: Fix AB-BA deadlock between reset_lock and device_lock

Manivannan Sadhasivam (1):
ARM: dts: qcom: ipq4019: Fix the PCI I/O port range

Marco Pagani (1):
fpga: bridge: fix kernel-doc parameter description

Mark Zhang (1):
RDMA/mlx5: Use correct device num_ports when modify DC

Markus Elfring (1):
perf map: Delete two variable initialisations before null pointer checks in sort__sym_from_cmp()

Maxim Korotkov (1):
writeback: fix call of incorrect macro

Maíra Canal (1):
drm/vgem: add missing mutex_destroy

Miaoqian Lin (1):
media: rcar_fdp1: Fix refcount leak in probe and remove function

Mike Christie (1):
scsi: target: iscsit: Fix TAS handling during conn cleanup

Mike Snitzer (2):
dm integrity: call kmem_cache_destroy() in dm_integrity_init() error path dm ioctl: fix nested locking in table_clear() to remove deadlock concern

Mikulas Patocka (1):
dm flakey: fix a crash with invalid table line

Miquel Raynal (1):
of: Fix modalias string generation

Mukesh Ojha (1):
firmware: qcom_scm: Clear download bit during reboot

Mårten Lindahl (1):
ubifs: Free memory for tmpfile name

Natalia Petrova (1):
RDMA/rdmavt: Delete unnecessary NULL check

Nathan Lynch (1):
powerpc/rtas: use memmove for potentially overlapping buffer copy

Nicolai Stange (1):
crypto: drbg - make drbg_prepare_hrng() handle jent instantiation errors

Nuno Sá (1):
staging: iio: resolver: ads1210: fix config mode

Ondrej Mosnacek (1):
selinux: fix Makefile dependencies of flask.h

Pablo Neira Ayuso (1):
netfilter: nf_tables: deactivate anonymous set from preparation phase

Patrick Kelsey (1):
IB/hfi1: Fix SDMA mmu_rb_node not being evicted in LRU order

Patrik Dahlström (1):
iio: adc: palmas_gpadc: fix NULL dereference on rmmod

Paul Moore (1):
selinux: ensure av_permissions.h is built when needed

Pawel Witek (1):
cifs: fix pcchunk length type in smb2_copychunk_range

Pengcheng Yang (1):
kernel/relay.c: fix read_pos error when multiple readers

Philipp Hortmann (1):
staging: rtl8192e: Fix W_DISABLE# does not work after stop/start

Ping Cheng (1):
HID: wacom: Set a default resolution for older tablets

Qiuxu Zhuo (2):
EDAC, skx: Move debugfs node under EDAC's hierarchy EDAC/skx: Fix overflows on the DRAM row address mapping arrays

Qu Wenruo (1):
btrfs: scrub: reject unsupported scrub flags

Quentin Monnet (1):
bpftool: Fix bug for long instructions in program CFG dumps

Quentin Schulz (1):
clk: rockchip: rk3399: allow clk_cifout to force clk_cifout_src to reparent

Randy Dunlap (10):
linux/vt_buffer.h: allow either builtin or modular for macros
ia64: mm/contig: fix section mismatch warning/error
ia64: salinfo: placate defined-but-not-used warning powerpc/mpc512x: fix resource printk format warning powerpc/wii: fix resource printk format warnings powerpc/sysdev/tsi108: fix resource printk format warnings
macintosh: via-pmu-led: requires ATA to be set
sh: math-emu: fix macro redefined warning
sh: init: use OF_EARLY_FLATTREE for early init
sh: nmi_debug: fix return value of __setup handler

Reid Tonking (1):
i2c: omap: Fix standard mode false ACK readings

Rex Zhu (2):
drm/amdgpu: Add amdgpu_gfx_off_ctrl function drm/amdgpu: Put enable gfx off feature to a delay thread

Rob Clark (2):
drm/rockchip: Drop unbalanced obj unref drm/msm/adreno: Defer enabling runpm until hw_init()

Roberto Sassu (1):
reiserfs: Add security prefix to xattr name in reiserfs_security_write()

Ruihan Li (1):
bluetooth: Perform careful capability checks in hci_sock_ioctl()

Ruliang Lin (1):
ALSA: caiaq: input: Add error handling for unsupported input methods in snd_usb_caiaq_input_init

Ryusuke Konishi (2):
nilfs2: do not write dirty data after degenerating to read-only
nilfs2: fix infinite loop in nilfs_mdt_get_block()

Saurabh Sengar (1):
x86/ioapic: Don't return 0 from arch_dynirq_lower_bound()

Sean Christopherson (1):
KVM: nVMX: Emulate NOPs in L2, and PAUSE if it's not intercepted

Sebastian Reichel (1):
power: supply: generic-adc-battery: fix unit scaling

Shenwei Wang (1):
tty: serial: fsl_lpuart: adjust buffer length to the intended size

Stafford Horne (1):
openrisc: Properly store r31 to pt_regs on unhandled exceptions

Stefan Haberland (1):
s390/dasd: fix hanging blockdevice after request requeue

Sumit Garg (1):
arm64: kgdb: Set PSTATE.SS to 1 to re-enable single-step

Tang Bin (1):
media: rcar_fdp1: Fix the correct variable assignments

Tetsuo Handa (2):
printk: declare printk_deferred_{enter,safe}() in include/linux/printk.h mm/page_alloc: fix potential deadlock on zonelist_update_seq seqlock

Theodore Ts'o (5):
ext4: improve error recovery code paths in __ext4_remount()
ext4: add bounds checking in get_max_inline_xattr_value_size()
ext4: bail out of ext4_xattr_ibody_get() fails for any reason
ext4: remove a BUG_ON in ext4_mb_release_group_pa()
ext4: fix invalid free tracking in ext4_xattr_move_to_block()

Thomas Gleixner (2):
debugobject: Prevent init race with static objects
debugobject: Ensure pool refill (again)

Trond Myklebust (1):
NFSv4.1: Always send a RECLAIM_COMPLETE after establishing lease

Tudor Ambarus (1):
ext4: avoid a potential slab-out-of-bounds in ext4_group_desc_csum

Uros Bizjak (1):
x86/apic: Fix atomic update of offset in reserve_eilvt_offset()

Uwe Kleine-König (2):
spi: qup: Don't skip cleanup in remove's error path
pwm: mtk-disp: Don't check the return code of pwmchip_remove()

Vadim Fedorenko (1):
vlan: partially enable SIOCSHWTSTAMP in container

Victor Nogueira (1):
net/sched: act_mirred: Add carrier check

Vignesh Raghavendra (3):
mtd: spi-nor: cadence-quadspi: Make driver independent of flash geometry
mtd: spi-nor: cadence-quadspi: Don't initialize rx_dma_complete on failure
mtd: spi-nor: cadence-quadspi: Handle probe deferral while requesting DMA channel

Waiman Long (2):
debugobjects: Add percpu free pools
debugobjects: Move printk out of db->lock critical sections

Wang Li (1):
spi: qup: fix PM reference leak in spi_qup_remove()

Wang YanQing (1):
ubi: Fix return value overwrite issue in try_write_vid_and_data()

Wei Chen (2):
wifi: rtlwifi: fix incorrect error codes in rtl_debugfs_set_write_rfreg()
wifi: rtlwifi: fix incorrect error codes in rtl_debugfs_set_write_reg()

Wenliang Wang (1):
virtio_net: suppress cpu stall when free_unused_bufs

Wolfram Sang (1):
usb: host: xhci-rcar: remove leftover quirk handling

Xuan Zhuo (1):
virtio_net: split free_unused_bufs()

Yang Jihong (2):
perf/core: Fix hardlockup failure caused by perf throttle perf symbols: Fix return incorrect build_id size in elf_read_build_id()

Ye Bin (1):
ext4: fix WARNING in mb_find_extent

Yeongjin Gil (1):
dm verity: fix error handling for check_at_most_once on FEC

Yinhao Hu (1):
usb: chipidea: fix missing goto in ci_hdrc_probe

Yu Kuai (3):

      md/raid10: fix leak of 'r10bio->remaining' for recovery
      md/raid10: fix memleak for 'conf->bio_split'
      md/raid10: fix memleak of md thread

Zhang Yuchen (1):
ipmi: fix SSIF not responding under certain cond.

Zhang Zhengming (1):
relayfs: fix out-of-bounds access in relay_file_read

Zheng Wang (3):
media: dm1105: Fix use after free bug in dm1105_remove due to race condition
media: saa7134: fix use after free bug in saa7134_finidev due to race condition
usb: gadget: udc: renesas_usb3: Fix use after free bug in renesas_usb3_remove due to race condition

Zhihao Cheng (2):
Revert "ubifs: dirty_cow_znode: Fix memleak in error handling path"
ubifs: Fix memleak when insert_old_idx() failed

Ziyang Xuan (1):
ipv4: Fix potential uninit variable access bug in __ip_make_skb()

author maintainer
#1 lore raw
Documentation/media/uapi/v4l/subdev-formats.rst +27 -0
index 8e73fcfc6900..cc2ad8af51ea 100644
@@ -7565,3 +7565,30 @@ formats.
       - 0x5001
       - Interleaved raw UYVY and JPEG image format with embedded meta-data
 	used by Samsung S3C73MX camera sensors.
+
+.. _v4l2-mbus-metadata-fmts:
+
+Metadata Formats
+^^^^^^^^^^^^^^^^
+
+This section lists all metadata formats.
+
+The following table lists the existing metadata formats.
+
+.. tabularcolumns:: |p{8.0cm}|p{1.4cm}|p{7.7cm}|
+
+.. flat-table:: Metadata formats
+    :header-rows:  1
+    :stub-columns: 0
+
+    * - Identifier
+      - Code
+      - Comments
+    * .. _MEDIA-BUS-FMT-METADATA-FIXED:
+
+      - MEDIA_BUS_FMT_METADATA_FIXED
+      - 0x7001
+      - This format should be used when the same driver handles
+	both sides of the link and the bus format is a fixed
+	metadata format that is not configurable from userspace.
+	Width and height will be set to 0 for this format.
Makefile +1 -1
index 6ed7f3fe3a4e..71416fde7348 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 4
 PATCHLEVEL = 19
-SUBLEVEL = 282
+SUBLEVEL = 283
 EXTRAVERSION =
 NAME = "People's Front"
 
arch/arm/boot/dts/exynos4412-itop-elite.dts +1 -1
index 0dedeba89b5f..d2350561b051 100644
@@ -184,7 +184,7 @@
 		compatible = "wlf,wm8960";
 		reg = <0x1a>;
 		clocks = <&pmu_system_controller 0>;
-		clock-names = "MCLK1";
+		clock-names = "mclk";
 		wlf,shared-lrclk;
 		#sound-dai-cells = <0>;
 	};
arch/arm/boot/dts/qcom-ipq4019.dtsi +2 -2
index 59527bb1225a..cb90e7645d08 100644
@@ -387,8 +387,8 @@
 			#address-cells = <3>;
 			#size-cells = <2>;
 
-			ranges = <0x81000000 0 0x40200000 0x40200000 0 0x00100000>,
-				 <0x82000000 0 0x40300000 0x40300000 0 0x00d00000>;
+			ranges = <0x81000000 0x0 0x00000000 0x40200000 0x0 0x00100000>,
+				 <0x82000000 0x0 0x40300000 0x40300000 0x0 0x00d00000>;
 
 			interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
 			interrupt-names = "msi";
arch/arm/boot/dts/s5pv210.dtsi +1 -1
index 020a864623ff..781ddfdc5f87 100644
@@ -560,7 +560,7 @@
 				interrupts = <29>;
 				clocks = <&clocks CLK_CSIS>,
 						<&clocks SCLK_CSIS>;
-				clock-names = "clk_csis",
+				clock-names = "csis",
 						"sclk_csis";
 				bus-width = <4>;
 				status = "disabled";
arch/arm64/include/asm/debug-monitors.h +1 -0
index 41b065f1be88..13630e8078ff 100644
@@ -125,6 +125,7 @@ void user_regs_reset_single_step(struct user_pt_regs *regs,
 void kernel_enable_single_step(struct pt_regs *regs);
 void kernel_disable_single_step(void);
 int kernel_active_single_step(void);
+void kernel_rewind_single_step(struct pt_regs *regs);
 
 #ifdef CONFIG_HAVE_HW_BREAKPOINT
 int reinstall_suspended_bps(struct pt_regs *regs);
arch/arm64/kernel/debug-monitors.c +5 -0
index 501e835c6500..f5837937cd93 100644
@@ -437,6 +437,11 @@ int kernel_active_single_step(void)
 }
 NOKPROBE_SYMBOL(kernel_active_single_step);
 
+void kernel_rewind_single_step(struct pt_regs *regs)
+{
+	set_regs_spsr_ss(regs);
+}
+
 /* ptrace API */
 void user_enable_single_step(struct task_struct *task)
 {
arch/arm64/kernel/kgdb.c +2 -0
index 8815b5457dd0..d7847ef10e9d 100644
@@ -234,6 +234,8 @@ int kgdb_arch_handle_exception(int exception_vector, int signo,
 		 */
 		if (!kernel_active_single_step())
 			kernel_enable_single_step(linux_regs);
+		else
+			kernel_rewind_single_step(linux_regs);
 		err = 0;
 		break;
 	default:
arch/ia64/kernel/salinfo.c +1 -1
index aba1f463a8dd..b889db4492c8 100644
@@ -580,7 +580,7 @@ static int salinfo_cpu_pre_down(unsigned int cpu)
  * 'data' contains an integer that corresponds to the feature we're
  * testing
  */
-static int proc_salinfo_show(struct seq_file *m, void *v)
+static int __maybe_unused proc_salinfo_show(struct seq_file *m, void *v)
 {
 	unsigned long data = (unsigned long)v;
 	seq_puts(m, (sal_platform_features & data) ? "1\n" : "0\n");
arch/ia64/mm/contig.c +1 -1
index e2e40bbd391c..18a2b105f7f3 100644
@@ -82,7 +82,7 @@ void *per_cpu_init(void)
 	return __per_cpu_start + __per_cpu_offset[smp_processor_id()];
 }
 
-static inline void
+static inline __init void
 alloc_per_cpu_data(void)
 {
 	cpu_data = __alloc_bootmem(PERCPU_PAGE_SIZE * num_possible_cpus(),
arch/mips/fw/lib/cmdline.c +1 -1
index 6ecda64ad184..ed88abc40513 100644
@@ -51,7 +51,7 @@ char *fw_getenv(char *envname)
 {
 	char *result = NULL;
 
-	if (_fw_envp != NULL) {
+	if (_fw_envp != NULL && fw_envp(0) != NULL) {
 		/*
 		 * Return a pointer to the given environment variable.
 		 * YAMON uses "name", "value" pairs, while U-Boot uses
arch/openrisc/kernel/entry.S +2 -4
index c2c3ce8a0f84..7b408d67f11e 100644
@@ -177,7 +177,6 @@ handler:							;\
 	l.sw    PT_GPR28(r1),r28					;\
 	l.sw    PT_GPR29(r1),r29					;\
 	/* r30 already save */					;\
-/*        l.sw    PT_GPR30(r1),r30*/					;\
 	l.sw    PT_GPR31(r1),r31					;\
 	TRACE_IRQS_OFF_ENTRY						;\
 	/* Store -1 in orig_gpr11 for non-syscall exceptions */	;\
@@ -215,9 +214,8 @@ handler:							;\
 	l.sw    PT_GPR27(r1),r27					;\
 	l.sw    PT_GPR28(r1),r28					;\
 	l.sw    PT_GPR29(r1),r29					;\
-	/* r31 already saved */					;\
-	l.sw    PT_GPR30(r1),r30					;\
-/*        l.sw    PT_GPR31(r1),r31	*/				;\
+	/* r30 already saved */						;\
+	l.sw    PT_GPR31(r1),r31					;\
 	/* Store -1 in orig_gpr11 for non-syscall exceptions */	;\
 	l.addi	r30,r0,-1					;\
 	l.sw	PT_ORIG_GPR11(r1),r30				;\
arch/parisc/kernel/real2.S +2 -3
index 2b16d8d6598f..c37010a13586 100644
@@ -248,9 +248,6 @@ ENTRY_CFI(real64_call_asm)
 	/* save fn */
 	copy	%arg2, %r31
 
-	/* set up the new ap */
-	ldo	64(%arg1), %r29
-
 	/* load up the arg registers from the saved arg area */
 	/* 32-bit calling convention passes first 4 args in registers */
 	ldd	0*REG_SZ(%arg1), %arg0		/* note overwriting arg0 */
@@ -262,7 +259,9 @@ ENTRY_CFI(real64_call_asm)
 	ldd	7*REG_SZ(%arg1), %r19
 	ldd	1*REG_SZ(%arg1), %arg1		/* do this one last! */
 
+	/* set up real-mode stack and real-mode ap */
 	tophys_r1 %sp
+	ldo	-16(%sp), %r29			/* Reference param save area */
 
 	b,l	rfi_virt2real,%r2
 	nop
arch/powerpc/kernel/rtas.c +1 -1
index 7c7648e6f1c2..2646dd54eb0b 100644
@@ -401,7 +401,7 @@ static char *__fetch_rtas_last_error(char *altbuf)
 				buf = kmalloc(RTAS_ERROR_LOG_MAX, GFP_ATOMIC);
 		}
 		if (buf)
-			memcpy(buf, rtas_err_buf, RTAS_ERROR_LOG_MAX);
+			memmove(buf, rtas_err_buf, RTAS_ERROR_LOG_MAX);
 	}
 
 	return buf;
arch/powerpc/platforms/512x/clock-commonclk.c +1 -1
index b3097fe6441b..1019d78e44bb 100644
@@ -985,7 +985,7 @@ static void mpc5121_clk_provide_migration_support(void)
 
 #define NODE_PREP do { \
 	of_address_to_resource(np, 0, &res); \
-	snprintf(devname, sizeof(devname), "%08x.%s", res.start, np->name); \
+	snprintf(devname, sizeof(devname), "%pa.%s", &res.start, np->name); \
 } while (0)
 
 #define NODE_CHK(clkname, clkitem, regnode, regflag) do { \
arch/powerpc/platforms/embedded6xx/flipper-pic.c +1 -1
index db0be007fd06..bfca4d42b00d 100644
@@ -149,7 +149,7 @@ static struct irq_domain * __init flipper_pic_init(struct device_node *np)
 	}
 	io_base = ioremap(res.start, resource_size(&res));
 
-	pr_info("controller at 0x%08x mapped to 0x%p\n", res.start, io_base);
+	pr_info("controller at 0x%pa mapped to 0x%p\n", &res.start, io_base);
 
 	__flipper_quiesce(io_base);
 
arch/powerpc/platforms/embedded6xx/hlwd-pic.c +1 -1
index 7b4edf1cb2c8..bdc7e1a80366 100644
@@ -178,7 +178,7 @@ static struct irq_domain *hlwd_pic_init(struct device_node *np)
 		return NULL;
 	}
 
-	pr_info("controller at 0x%08x mapped to 0x%p\n", res.start, io_base);
+	pr_info("controller at 0x%pa mapped to 0x%p\n", &res.start, io_base);
 
 	__hlwd_quiesce(io_base);
 
arch/powerpc/platforms/embedded6xx/wii.c +2 -2
index 343bffd20fca..768231005fb5 100644
@@ -122,8 +122,8 @@ static void __iomem *wii_ioremap_hw_regs(char *name, char *compatible)
 
 	hw_regs = ioremap(res.start, resource_size(&res));
 	if (hw_regs) {
-		pr_info("%s at 0x%08x mapped to 0x%p\n", name,
-			res.start, hw_regs);
+		pr_info("%s at 0x%pa mapped to 0x%p\n", name,
+			&res.start, hw_regs);
 	}
 
 out_put:
arch/powerpc/sysdev/tsi108_pci.c +2 -3
index 28ff1f53cefc..6bd50c690006 100644
@@ -229,9 +229,8 @@ int __init tsi108_setup_pci(struct device_node *dev, u32 cfg_phys, int primary)
 
 	(hose)->ops = &tsi108_direct_pci_ops;
 
-	printk(KERN_INFO "Found tsi108 PCI host bridge at 0x%08x. "
-	       "Firmware bus number: %d->%d\n",
-	       rsrc.start, hose->first_busno, hose->last_busno);
+	pr_info("Found tsi108 PCI host bridge at 0x%pa. Firmware bus number: %d->%d\n",
+		&rsrc.start, hose->first_busno, hose->last_busno);
 
 	/* Interpret the "ranges" property */
 	/* This also maps the I/O region and sets isa_io/mem_base */
arch/sh/kernel/cpu/sh4/sq.c +1 -1
index 4ca78ed71ad2..c218bae8fe20 100644
@@ -383,7 +383,7 @@ static int __init sq_api_init(void)
 	if (unlikely(!sq_cache))
 		return ret;
 
-	sq_bitmap = kzalloc(size, GFP_KERNEL);
+	sq_bitmap = kcalloc(size, sizeof(long), GFP_KERNEL);
 	if (unlikely(!sq_bitmap))
 		goto out;
 
arch/sh/kernel/head_32.S +3 -3
index 4e352c3f79e6..fb505cda25fc 100644
@@ -67,7 +67,7 @@ ENTRY(_stext)
 	ldc	r0, r6_bank
 #endif
 
-#ifdef CONFIG_OF_FLATTREE
+#ifdef CONFIG_OF_EARLY_FLATTREE
 	mov	r4, r12		! Store device tree blob pointer in r12
 #endif
 	
@@ -318,7 +318,7 @@ ENTRY(_stext)
 10:		
 #endif
 
-#ifdef CONFIG_OF_FLATTREE
+#ifdef CONFIG_OF_EARLY_FLATTREE
 	mov.l	8f, r0		! Make flat device tree available early.
 	jsr	@r0
 	 mov	r12, r4
@@ -349,7 +349,7 @@ ENTRY(stack_start)
 5:	.long	start_kernel
 6:	.long	cpu_init
 7:	.long	init_thread_union
-#if defined(CONFIG_OF_FLATTREE)
+#if defined(CONFIG_OF_EARLY_FLATTREE)
 8:	.long	sh_fdt_init
 #endif
 
arch/sh/kernel/nmi_debug.c +2 -2
index 730d928f0d12..d37b54f9cec6 100644
@@ -52,7 +52,7 @@ static int __init nmi_debug_setup(char *str)
 	register_die_notifier(&nmi_debug_nb);
 
 	if (*str != '=')
-		return 0;
+		return 1;
 
 	for (p = str + 1; *p; p = sep + 1) {
 		sep = strchr(p, ',');
@@ -73,6 +73,6 @@ static int __init nmi_debug_setup(char *str)
 			break;
 	}
 
-	return 0;
+	return 1;
 }
 __setup("nmi_debug", nmi_debug_setup);
arch/sh/kernel/setup.c +2 -2
index c286cf5da6e7..b2f44eb7ce19 100644
@@ -242,7 +242,7 @@ void __init __weak plat_early_device_setup(void)
 {
 }
 
-#ifdef CONFIG_OF_FLATTREE
+#ifdef CONFIG_OF_EARLY_FLATTREE
 void __ref sh_fdt_init(phys_addr_t dt_phys)
 {
 	static int done = 0;
@@ -329,7 +329,7 @@ void __init setup_arch(char **cmdline_p)
 	/* Let earlyprintk output early console messages */
 	early_platform_driver_probe("earlyprintk", 1, 1);
 
-#ifdef CONFIG_OF_FLATTREE
+#ifdef CONFIG_OF_EARLY_FLATTREE
 #ifdef CONFIG_USE_BUILTIN_DTB
 	unflatten_and_copy_device_tree();
 #else
arch/sh/math-emu/sfp-util.h +0 -4
index 784f541344f3..bda50762b3d3 100644
@@ -67,7 +67,3 @@
   } while (0)
 
 #define abort()	return 0
-
-#define __BYTE_ORDER __LITTLE_ENDIAN
-
-
arch/x86/kernel/apic/apic.c +2 -3
index 926939978c1c..9318fe7d850e 100644
@@ -403,10 +403,9 @@ static unsigned int reserve_eilvt_offset(int offset, unsigned int new)
 		if (vector && !eilvt_entry_is_changeable(vector, new))
 			/* may not change if vectors are different */
 			return rsvd;
-		rsvd = atomic_cmpxchg(&eilvt_offsets[offset], rsvd, new);
-	} while (rsvd != new);
+	} while (!atomic_try_cmpxchg(&eilvt_offsets[offset], &rsvd, new));
 
-	rsvd &= ~APIC_EILVT_MASKED;
+	rsvd = new & ~APIC_EILVT_MASKED;
 	if (rsvd && rsvd != vector)
 		pr_info("LVT offset %d assigned for vector 0x%02x\n",
 			offset, rsvd);
arch/x86/kernel/apic/io_apic.c +9 -5
index 677508baf95a..af59aa9c5523 100644
@@ -2449,17 +2449,21 @@ static int io_apic_get_redir_entries(int ioapic)
 
 unsigned int arch_dynirq_lower_bound(unsigned int from)
 {
+	unsigned int ret;
+
 	/*
 	 * dmar_alloc_hwirq() may be called before setup_IO_APIC(), so use
 	 * gsi_top if ioapic_dynirq_base hasn't been initialized yet.
 	 */
-	if (!ioapic_initialized)
-		return gsi_top;
+	ret = ioapic_dynirq_base ? : gsi_top;
+
 	/*
-	 * For DT enabled machines ioapic_dynirq_base is irrelevant and not
-	 * updated. So simply return @from if ioapic_dynirq_base == 0.
+	 * For DT enabled machines ioapic_dynirq_base is irrelevant and
+	 * always 0. gsi_top can be 0 if there is no IO/APIC registered.
+	 * 0 is an invalid interrupt number for dynamic allocations. Return
+	 * @from instead.
 	 */
-	return ioapic_dynirq_base ? : from;
+	return ret ? : from;
 }
 
 #ifdef CONFIG_X86_32
arch/x86/kvm/vmx/vmx.c +15 -0
index 265e70b0eb79..55e52064c4ec 100644
@@ -13878,6 +13878,21 @@ static int vmx_check_intercept(struct kvm_vcpu *vcpu,
 		/* FIXME: produce nested vmexit and return X86EMUL_INTERCEPTED.  */
 		break;
 
+	case x86_intercept_pause:
+		/*
+		 * PAUSE is a single-byte NOP with a REPE prefix, i.e. collides
+		 * with vanilla NOPs in the emulator.  Apply the interception
+		 * check only to actual PAUSE instructions.  Don't check
+		 * PAUSE-loop-exiting, software can't expect a given PAUSE to
+		 * exit, i.e. KVM is within its rights to allow L2 to execute
+		 * the PAUSE.
+		 */
+		if ((info->rep_prefix != REPE_PREFIX) ||
+		    !nested_cpu_has2(vmcs12, CPU_BASED_PAUSE_EXITING))
+			return X86EMUL_CONTINUE;
+
+		break;
+
 	/* TODO: check more intercepts... */
 	default:
 		break;
crypto/drbg.c +8 -8
index c8c56763dfde..0df8cc9bb563 100644
@@ -1512,6 +1512,14 @@ static int drbg_prepare_hrng(struct drbg_state *drbg)
 		return 0;
 
 	drbg->jent = crypto_alloc_rng("jitterentropy_rng", 0, 0);
+	if (IS_ERR(drbg->jent)) {
+		const int err = PTR_ERR(drbg->jent);
+
+		drbg->jent = NULL;
+		if (fips_enabled)
+			return err;
+		pr_info("DRBG: Continuing without Jitter RNG\n");
+	}
 
 	return 0;
 }
@@ -1567,14 +1575,6 @@ static int drbg_instantiate(struct drbg_state *drbg, struct drbg_string *pers,
 		if (ret)
 			goto free_everything;
 
-		if (IS_ERR(drbg->jent)) {
-			ret = PTR_ERR(drbg->jent);
-			drbg->jent = NULL;
-			if (fips_enabled || ret != -ENOENT)
-				goto free_everything;
-			pr_info("DRBG: Continuing without Jitter RNG\n");
-		}
-
 		reseed = false;
 	}
 
drivers/base/cpu.c +2 -1
index ce5b3ffbd6ee..878ed43d8753 100644
@@ -494,7 +494,8 @@ static const struct attribute_group *cpu_root_attr_groups[] = {
 bool cpu_is_hotpluggable(unsigned cpu)
 {
 	struct device *dev = get_cpu_device(cpu);
-	return dev && container_of(dev, struct cpu, dev)->hotpluggable;
+	return dev && container_of(dev, struct cpu, dev)->hotpluggable
+		&& tick_nohz_cpu_hotpluggable(cpu);
 }
 EXPORT_SYMBOL_GPL(cpu_is_hotpluggable);
 
drivers/block/drbd/drbd_receiver.c +1 -1
index cbb6ef719978..d1d6a7af7e78 100644
@@ -1310,7 +1310,7 @@ static void submit_one_flush(struct drbd_device *device, struct issue_flush_cont
 	bio_set_dev(bio, device->ldev->backing_bdev);
 	bio->bi_private = octx;
 	bio->bi_end_io = one_flush_endio;
-	bio->bi_opf = REQ_OP_FLUSH | REQ_PREFLUSH;
+	bio->bi_opf = REQ_OP_WRITE | REQ_PREFLUSH;
 
 	device->flush_jif = jiffies;
 	set_bit(FLUSH_PENDING, &device->flags);
drivers/bluetooth/btsdio.c +0 -1
index bd55bf7a9914..20142bc77554 100644
@@ -353,7 +353,6 @@ static void btsdio_remove(struct sdio_func *func)
 
 	BT_DBG("func %p", func);
 
-	cancel_work_sync(&data->work);
 	if (!data)
 		return;
 
drivers/char/ipmi/ipmi_msghandler.c +85 -34

261 lines not on this page · raw message

drivers/char/ipmi/ipmi_si_intf.c +4 -1
index a5e1dce042e8..429fe063e33f 100644
@@ -1073,10 +1073,13 @@ static void request_events(void *send_info)
 	atomic_set(&smi_info->req_events, 1);
 }
 
-static void set_need_watch(void *send_info, bool enable)
+static void set_need_watch(void *send_info, unsigned int watch_mask)
 {
 	struct smi_info *smi_info = send_info;
 	unsigned long flags;
+	int enable;
+
+	enable = !!(watch_mask & ~IPMI_WATCH_MASK_INTERNAL);
 
 	atomic_set(&smi_info->need_watch, enable);
 	spin_lock_irqsave(&smi_info->si_lock, flags);
drivers/char/ipmi/ipmi_ssif.c +82 -36

264 lines not on this page · raw message

drivers/clk/clk-conf.c +10 -2
index 49819b546134..5c6760e45a16 100644
@@ -36,9 +36,12 @@ static int __set_clk_parents(struct device_node *node, bool clk_supplier)
 			else
 				return rc;
 		}
-		if (clkspec.np == node && !clk_supplier)
+		if (clkspec.np == node && !clk_supplier) {
+			of_node_put(clkspec.np);
 			return 0;
+		}
 		pclk = of_clk_get_from_provider(&clkspec);
+		of_node_put(clkspec.np);
 		if (IS_ERR(pclk)) {
 			if (PTR_ERR(pclk) != -EPROBE_DEFER)
 				pr_warn("clk: couldn't get parent clock %d for %pOF\n",
@@ -51,10 +54,12 @@ static int __set_clk_parents(struct device_node *node, bool clk_supplier)
 		if (rc < 0)
 			goto err;
 		if (clkspec.np == node && !clk_supplier) {
+			of_node_put(clkspec.np);
 			rc = 0;
 			goto err;
 		}
 		clk = of_clk_get_from_provider(&clkspec);
+		of_node_put(clkspec.np);
 		if (IS_ERR(clk)) {
 			if (PTR_ERR(clk) != -EPROBE_DEFER)
 				pr_warn("clk: couldn't get assigned clock %d for %pOF\n",
@@ -96,10 +101,13 @@ static int __set_clk_rates(struct device_node *node, bool clk_supplier)
 				else
 					return rc;
 			}
-			if (clkspec.np == node && !clk_supplier)
+			if (clkspec.np == node && !clk_supplier) {
+				of_node_put(clkspec.np);
 				return 0;
+			}
 
 			clk = of_clk_get_from_provider(&clkspec);
+			of_node_put(clkspec.np);
 			if (IS_ERR(clk)) {
 				if (PTR_ERR(clk) != -EPROBE_DEFER)
 					pr_warn("clk: couldn't get clock %d for %pOF\n",
drivers/clk/rockchip/clk-rk3399.c +1 -1
index 5a628148f3f0..ec9850db5bf9 100644
@@ -1267,7 +1267,7 @@ static struct rockchip_clk_branch rk3399_clk_branches[] __initdata = {
 			RK3399_CLKSEL_CON(56), 6, 2, MFLAGS,
 			RK3399_CLKGATE_CON(10), 7, GFLAGS),
 
-	COMPOSITE_NOGATE(SCLK_CIF_OUT, "clk_cifout", mux_clk_cif_p, 0,
+	COMPOSITE_NOGATE(SCLK_CIF_OUT, "clk_cifout", mux_clk_cif_p, CLK_SET_RATE_PARENT,
 			 RK3399_CLKSEL_CON(56), 5, 1, MFLAGS, 0, 5, DFLAGS),
 
 	/* gic */
drivers/dma/at_xdmac.c +4 -1
index a451ecae1669..33ea7abd8cc9 100644
@@ -223,6 +223,7 @@ struct at_xdmac {
 	int			irq;
 	struct clk		*clk;
 	u32			save_gim;
+	u32			save_gs;
 	struct dma_pool		*at_xdmac_desc_pool;
 	struct at_xdmac_chan	chan[0];
 };
@@ -1878,6 +1879,7 @@ static int atmel_xdmac_suspend(struct device *dev)
 		}
 	}
 	atxdmac->save_gim = at_xdmac_read(atxdmac, AT_XDMAC_GIM);
+	atxdmac->save_gs = at_xdmac_read(atxdmac, AT_XDMAC_GS);
 
 	at_xdmac_off(atxdmac);
 	clk_disable_unprepare(atxdmac->clk);
@@ -1914,7 +1916,8 @@ static int atmel_xdmac_resume(struct device *dev)
 			at_xdmac_chan_write(atchan, AT_XDMAC_CNDC, atchan->save_cndc);
 			at_xdmac_chan_write(atchan, AT_XDMAC_CIE, atchan->save_cim);
 			wmb();
-			at_xdmac_write(atxdmac, AT_XDMAC_GE, atchan->mask);
+			if (atxdmac->save_gs & atchan->mask)
+				at_xdmac_write(atxdmac, AT_XDMAC_GE, atchan->mask);
 		}
 	}
 	return 0;
drivers/edac/skx_edac.c +14 -15
index dd209e0dd9ab..38a82a3f4516 100644
@@ -825,13 +825,13 @@ static bool skx_rir_decode(struct decoded_addr *res)
 }
 
 static u8 skx_close_row[] = {
-	15, 16, 17, 18, 20, 21, 22, 28, 10, 11, 12, 13, 29, 30, 31, 32, 33
+	15, 16, 17, 18, 20, 21, 22, 28, 10, 11, 12, 13, 29, 30, 31, 32, 33, 34
 };
 static u8 skx_close_column[] = {
 	3, 4, 5, 14, 19, 23, 24, 25, 26, 27
 };
 static u8 skx_open_row[] = {
-	14, 15, 16, 20, 28, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33
+	14, 15, 16, 20, 28, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 34
 };
 static u8 skx_open_column[] = {
 	3, 4, 5, 6, 7, 8, 9, 10, 11, 12
@@ -896,12 +896,11 @@ static bool skx_decode(struct decoded_addr *res)
 
 #ifdef CONFIG_EDAC_DEBUG
 /*
- * Debug feature. Make /sys/kernel/debug/skx_edac_test/addr.
- * Write an address to this file to exercise the address decode
- * logic in this driver.
+ * Debug feature.
+ * Exercise the address decode logic by writing an address to
+ * /sys/kernel/debug/edac/skx_test/addr.
  */
 static struct dentry *skx_test;
-static u64 skx_fake_addr;
 
 static int debugfs_u64_set(void *data, u64 val)
 {
@@ -912,19 +911,19 @@ static int debugfs_u64_set(void *data, u64 val)
 
 	return 0;
 }
-
 DEFINE_SIMPLE_ATTRIBUTE(fops_u64_wo, NULL, debugfs_u64_set, "%llu\n");
 
-static struct dentry *mydebugfs_create(const char *name, umode_t mode,
-				       struct dentry *parent, u64 *value)
-{
-	return debugfs_create_file(name, mode, parent, value, &fops_u64_wo);
-}
-
 static void setup_skx_debug(void)
 {
-	skx_test = debugfs_create_dir("skx_edac_test", NULL);
-	mydebugfs_create("addr", S_IWUSR, skx_test, &skx_fake_addr);
+	skx_test = edac_debugfs_create_dir("skx_test");
+	if (!skx_test)
+		return;
+
+	if (!edac_debugfs_create_file("addr", 0200, skx_test,
+				      NULL, &fops_u64_wo)) {
+		debugfs_remove(skx_test);
+		skx_test = NULL;
+	}
 }
 
 static void teardown_skx_debug(void)
drivers/firmware/qcom_scm.c +1 -2
index 513908a0c262..e795bd9c8038 100644
@@ -586,8 +586,7 @@ static int qcom_scm_probe(struct platform_device *pdev)
 static void qcom_scm_shutdown(struct platform_device *pdev)
 {
 	/* Clean shutdown, disable download mode to allow normal restart */
-	if (download_mode)
-		qcom_scm_set_download_mode(false);
+	qcom_scm_set_download_mode(false);
 }
 
 static const struct of_device_id qcom_scm_dt_match[] = {
drivers/fpga/fpga-bridge.c +1 -1
index c983dac97501..c7db12192fac 100644
@@ -121,7 +121,7 @@ static int fpga_bridge_dev_match(struct device *dev, const void *data)
 /**
  * fpga_bridge_get - get an exclusive reference to a fpga bridge
  * @dev:	parent device that fpga bridge was registered with
- * @info:	fpga manager info
+ * @info:	fpga image specific information
  *
  * Given a device, get an exclusive reference to a fpga bridge.
  *
drivers/gpu/drm/amd/amdgpu/amdgpu.h +7 -0
index acbd33fcb73d..45e6dfa330ad 100644
@@ -950,6 +950,12 @@ struct amdgpu_gfx {
 	/* NGG */
 	struct amdgpu_ngg		ngg;
 
+	/* gfx off */
+	bool                            gfx_off_state; /* true: enabled, false: disabled */
+	struct mutex                    gfx_off_mutex;
+	uint32_t                        gfx_off_req_count; /* default 1, enable gfx off: dec 1, disable gfx off: add 1 */
+	struct delayed_work             gfx_off_delay_work;
+
 	/* pipe reservation */
 	struct mutex			pipe_reserve_mutex;
 	DECLARE_BITMAP			(pipe_reserve_bitmap, AMDGPU_MAX_COMPUTE_QUEUES);
@@ -1776,6 +1782,7 @@ void amdgpu_device_program_register_sequence(struct amdgpu_device *adev,
 					     const u32 array_size);
 
 bool amdgpu_device_is_px(struct drm_device *dev);
+void amdgpu_gfx_off_ctrl(struct amdgpu_device *adev, bool enable);
 /* atpx handler */
 #if defined(CONFIG_VGA_SWITCHEROO)
 void amdgpu_register_atpx_handler(void);
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +17 -0
index 102b05b8f0c2..787cbeea8dc5 100644
@@ -1927,6 +1927,19 @@ static void amdgpu_device_ip_late_init_func_handler(struct work_struct *work)
 		DRM_ERROR("ib ring test failed (%d).\n", r);
 }
 
+static void amdgpu_device_delay_enable_gfx_off(struct work_struct *work)
+{
+	struct amdgpu_device *adev =
+		container_of(work, struct amdgpu_device, gfx.gfx_off_delay_work.work);
+
+	mutex_lock(&adev->gfx.gfx_off_mutex);
+	if (!adev->gfx.gfx_off_state && !adev->gfx.gfx_off_req_count) {
+		if (!amdgpu_dpm_set_powergating_by_smu(adev, AMD_IP_BLOCK_TYPE_GFX, true))
+			adev->gfx.gfx_off_state = true;
+	}
+	mutex_unlock(&adev->gfx.gfx_off_mutex);
+}
+
 /**
  * amdgpu_device_ip_suspend_phase1 - run suspend for hardware IPs (phase 1)
  *
@@ -2369,6 +2382,7 @@ int amdgpu_device_init(struct amdgpu_device *adev,
 	mutex_init(&adev->gfx.gpu_clock_mutex);
 	mutex_init(&adev->srbm_mutex);
 	mutex_init(&adev->gfx.pipe_reserve_mutex);
+	mutex_init(&adev->gfx.gfx_off_mutex);
 	mutex_init(&adev->grbm_idx_mutex);
 	mutex_init(&adev->mn_lock);
 	mutex_init(&adev->virt.vf_errors.lock);
@@ -2395,7 +2409,10 @@ int amdgpu_device_init(struct amdgpu_device *adev,
 
 	INIT_DELAYED_WORK(&adev->late_init_work,
 			  amdgpu_device_ip_late_init_func_handler);
+	INIT_DELAYED_WORK(&adev->gfx.gfx_off_delay_work,
+			  amdgpu_device_delay_enable_gfx_off);
 
+	adev->gfx.gfx_off_req_count = 1;
 	adev->pm.ac_power = power_supply_is_system_supplied() > 0 ? true : false;
 
 	/* Registers mapping */
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +40 -0
index eeaa2e825858..af42c2464a59 100644
@@ -26,6 +26,9 @@
 #include "amdgpu.h"
 #include "amdgpu_gfx.h"
 
+/* 0.5 second timeout */
+#define GFX_OFF_DELAY_ENABLE         msecs_to_jiffies(500)
+
 /*
  * GPU scratch registers helpers function.
  */
@@ -340,3 +343,40 @@ void amdgpu_gfx_compute_mqd_sw_fini(struct amdgpu_device *adev)
 			      &ring->mqd_gpu_addr,
 			      &ring->mqd_ptr);
 }
+
+/* amdgpu_gfx_off_ctrl - Handle gfx off feature enable/disable
+ *
+ * @adev: amdgpu_device pointer
+ * @bool enable true: enable gfx off feature, false: disable gfx off feature
+ *
+ * 1. gfx off feature will be enabled by gfx ip after gfx cg gp enabled.
+ * 2. other client can send request to disable gfx off feature, the request should be honored.
+ * 3. other client can cancel their request of disable gfx off feature
+ * 4. other client should not send request to enable gfx off feature before disable gfx off feature.
+ */
+
+void amdgpu_gfx_off_ctrl(struct amdgpu_device *adev, bool enable)
+{
+	if (!(adev->powerplay.pp_feature & PP_GFXOFF_MASK))
+		return;
+
+	if (!adev->powerplay.pp_funcs->set_powergating_by_smu)
+		return;
+
+
+	mutex_lock(&adev->gfx.gfx_off_mutex);
+
+	if (!enable)
+		adev->gfx.gfx_off_req_count++;
+	else if (adev->gfx.gfx_off_req_count > 0)
+		adev->gfx.gfx_off_req_count--;
+
+	if (enable && !adev->gfx.gfx_off_state && !adev->gfx.gfx_off_req_count) {
+		schedule_delayed_work(&adev->gfx.gfx_off_delay_work, GFX_OFF_DELAY_ENABLE);
+	} else if (!enable && adev->gfx.gfx_off_state) {
+		if (!amdgpu_dpm_set_powergating_by_smu(adev, AMD_IP_BLOCK_TYPE_GFX, false))
+			adev->gfx.gfx_off_state = false;
+	}
+
+	mutex_unlock(&adev->gfx.gfx_off_mutex);
+}
drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c +45 -2

78 lines not on this page · raw message

drivers/gpu/drm/drm_probe_helper.c +3 -2
index c0b26135dbd5..f9e0594ee702 100644
@@ -459,8 +459,9 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector,
 		 */
 		dev->mode_config.delayed_event = true;
 		if (dev->mode_config.poll_enabled)
-			schedule_delayed_work(&dev->mode_config.output_poll_work,
-					      0);
+			mod_delayed_work(system_wq,
+					 &dev->mode_config.output_poll_work,
+					 0);
 	}
 
 	/* Re-enable polling in case the global poll config changed. */
drivers/gpu/drm/msm/adreno/adreno_device.c +5 -2
index 7d3e9a129ac7..7acb53a907e5 100644
@@ -190,8 +190,11 @@ struct msm_gpu *adreno_load_gpu(struct drm_device *dev)
 	if (ret)
 		return NULL;
 
-	/* Make sure pm runtime is active and reset any previous errors */
-	pm_runtime_set_active(&pdev->dev);
+	/*
+	 * Now that we have firmware loaded, and are ready to begin
+	 * booting the gpu, go ahead and enable runpm:
+	 */
+	pm_runtime_enable(&pdev->dev);
 
 	ret = pm_runtime_get_sync(&pdev->dev);
 	if (ret < 0) {
drivers/gpu/drm/msm/adreno/adreno_gpu.c +0 -1
index c9f831604558..6da144c39409 100644
@@ -725,7 +725,6 @@ int adreno_gpu_init(struct drm_device *drm, struct platform_device *pdev,
 	pm_runtime_set_autosuspend_delay(&pdev->dev,
 		adreno_gpu->info->inactive_period);
 	pm_runtime_use_autosuspend(&pdev->dev);
-	pm_runtime_enable(&pdev->dev);
 
 	return msm_gpu_init(drm, pdev, &adreno_gpu->base, &funcs->base,
 			adreno_gpu->info->name, &adreno_gpu_config);
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +1 -1
index 58ccf648b70f..e88a7d95a00c 100644
@@ -454,7 +454,7 @@ static int otm8009a_probe(struct mipi_dsi_device *dsi)
 	ctx->panel.funcs = &otm8009a_drm_funcs;
 
 	ctx->bl_dev = devm_backlight_device_register(dev, dev_name(dev),
-						     dsi->host->dev, ctx,
+						     dev, ctx,
 						     &otm8009a_backlight_ops,
 						     NULL);
 	if (IS_ERR(ctx->bl_dev)) {
drivers/gpu/drm/rockchip/rockchip_drm_gem.c +0 -3
index a8db758d523e..94242fa9e25d 100644
@@ -270,9 +270,6 @@ static int rockchip_drm_gem_object_mmap(struct drm_gem_object *obj,
 	else
 		ret = rockchip_drm_gem_object_mmap_dma(obj, vma);
 
-	if (ret)
-		drm_gem_vm_close(vma);
-
 	return ret;
 }
 
drivers/gpu/drm/vgem/vgem_fence.c +1 -0
index b28876c222b4..04527d8f3623 100644
@@ -280,4 +280,5 @@ void vgem_fence_close(struct vgem_file *vfile)
 {
 	idr_for_each(&vfile->fence_idr, __vgem_fence_idr_fini, vfile);
 	idr_destroy(&vfile->fence_idr);
+	mutex_destroy(&vfile->fence_mutex);
 }
drivers/hid/wacom_wac.c +10 -2
index bc4d6474d8f5..da6053deb954 100644
@@ -1791,6 +1791,7 @@ static void wacom_map_usage(struct input_dev *input, struct hid_usage *usage,
 	int fmax = field->logical_maximum;
 	unsigned int equivalent_usage = wacom_equivalent_usage(usage->hid);
 	int resolution_code = code;
+	int resolution = hidinput_calc_abs_res(field, resolution_code);
 
 	if (equivalent_usage == HID_DG_TWIST) {
 		resolution_code = ABS_RZ;
@@ -1813,8 +1814,15 @@ static void wacom_map_usage(struct input_dev *input, struct hid_usage *usage,
 	switch (type) {
 	case EV_ABS:
 		input_set_abs_params(input, code, fmin, fmax, fuzz, 0);
-		input_abs_set_res(input, code,
-				  hidinput_calc_abs_res(field, resolution_code));
+
+		/* older tablet may miss physical usage */
+		if ((code == ABS_X || code == ABS_Y) && !resolution) {
+			resolution = WACOM_INTUOS_RES;
+			hid_warn(input,
+				 "Wacom usage (%d) missing resolution \n",
+				 code);
+		}
+		input_abs_set_res(input, code, resolution);
 		break;
 	case EV_KEY:
 		input_set_capability(input, EV_KEY, code);
drivers/i2c/busses/i2c-omap.c +1 -1
index cd9c65f3d404..11321ad482a3 100644
@@ -1027,7 +1027,7 @@ omap_i2c_isr(int irq, void *dev_id)
 	u16 stat;
 
 	stat = omap_i2c_read_reg(omap, OMAP_I2C_STAT_REG);
-	mask = omap_i2c_read_reg(omap, OMAP_I2C_IE_REG);
+	mask = omap_i2c_read_reg(omap, OMAP_I2C_IE_REG) & ~OMAP_I2C_STAT_NACK;
 
 	if (stat & mask)
 		ret = IRQ_WAKE_THREAD;
drivers/iio/adc/palmas_gpadc.c +1 -1
index 7dcd4213d38a..6b76622b4fbf 100644
@@ -633,7 +633,7 @@ static int palmas_gpadc_probe(struct platform_device *pdev)
 
 static int palmas_gpadc_remove(struct platform_device *pdev)
 {
-	struct iio_dev *indio_dev = dev_to_iio_dev(&pdev->dev);
+	struct iio_dev *indio_dev = dev_get_drvdata(&pdev->dev);
 	struct palmas_gpadc *adc = iio_priv(indio_dev);
 
 	if (adc->wakeup1_enable || adc->wakeup2_enable)
drivers/infiniband/hw/hfi1/mmu_rb.c +6 -7
index e1c7996c018e..513a297b4ff0 100644
@@ -175,7 +175,7 @@ int hfi1_mmu_rb_insert(struct mmu_rb_handler *handler,
 		goto unlock;
 	}
 	__mmu_int_rb_insert(mnode, &handler->root);
-	list_add(&mnode->list, &handler->lru_list);
+	list_add_tail(&mnode->list, &handler->lru_list);
 
 	ret = handler->ops->insert(handler->ops_arg, mnode);
 	if (ret) {
@@ -222,8 +222,10 @@ bool hfi1_mmu_rb_remove_unless_exact(struct mmu_rb_handler *handler,
 	spin_lock_irqsave(&handler->lock, flags);
 	node = __mmu_rb_search(handler, addr, len);
 	if (node) {
-		if (node->addr == addr && node->len == len)
+		if (node->addr == addr && node->len == len) {
+			list_move_tail(&node->list, &handler->lru_list);
 			goto unlock;
+		}
 		__mmu_int_rb_remove(node, &handler->root);
 		list_del(&node->list); /* remove from LRU list */
 		ret = true;
@@ -244,8 +246,7 @@ void hfi1_mmu_rb_evict(struct mmu_rb_handler *handler, void *evict_arg)
 	INIT_LIST_HEAD(&del_list);
 
 	spin_lock_irqsave(&handler->lock, flags);
-	list_for_each_entry_safe_reverse(rbnode, ptr, &handler->lru_list,
-					 list) {
+	list_for_each_entry_safe(rbnode, ptr, &handler->lru_list, list) {
 		if (handler->ops->evict(handler->ops_arg, rbnode, evict_arg,
 					&stop)) {
 			__mmu_int_rb_remove(rbnode, &handler->root);
@@ -257,9 +258,7 @@ void hfi1_mmu_rb_evict(struct mmu_rb_handler *handler, void *evict_arg)
 	}
 	spin_unlock_irqrestore(&handler->lock, flags);
 
-	while (!list_empty(&del_list)) {
-		rbnode = list_first_entry(&del_list, struct mmu_rb_node, list);
-		list_del(&rbnode->list);
+	list_for_each_entry_safe(rbnode, ptr, &del_list, list) {
 		handler->ops->remove(handler->ops_arg, rbnode);
 	}
 }
drivers/infiniband/hw/mlx4/qp.c +6 -2
index 7209b8a9b0dd..87358b8c4558 100644
@@ -436,9 +436,13 @@ static int set_user_sq_size(struct mlx4_ib_dev *dev,
 			    struct mlx4_ib_qp *qp,
 			    struct mlx4_ib_create_qp *ucmd)
 {
+	u32 cnt;
+
 	/* Sanity check SQ size before proceeding */
-	if ((1 << ucmd->log_sq_bb_count) > dev->dev->caps.max_wqes	 ||
-	    ucmd->log_sq_stride >
+	if (check_shl_overflow(1, ucmd->log_sq_bb_count, &cnt) ||
+	    cnt > dev->dev->caps.max_wqes)
+		return -EINVAL;
+	if (ucmd->log_sq_stride >
 		ilog2(roundup_pow_of_two(dev->dev->caps.max_sq_desc_sz)) ||
 	    ucmd->log_sq_stride < MLX4_IB_MIN_SQ_STRIDE)
 		return -EINVAL;
drivers/infiniband/hw/mlx5/qp.c +1 -1
index 1520a3098f7d..0455abfba41c 100644
@@ -3350,7 +3350,7 @@ static int mlx5_ib_modify_dct(struct ib_qp *ibqp, struct ib_qp_attr *attr,
 			return -EINVAL;
 
 		if (attr->port_num == 0 ||
-		    attr->port_num > MLX5_CAP_GEN(dev->mdev, num_ports)) {
+		    attr->port_num > dev->num_ports) {
 			mlx5_ib_dbg(dev, "invalid port number %d. number of ports is %d\n",
 				    attr->port_num, dev->num_ports);
 			return -EINVAL;
drivers/infiniband/sw/rdmavt/qp.c +0 -2
index fbc316775669..c12fc2eace16 100644
@@ -321,8 +321,6 @@ void rvt_qp_exit(struct rvt_dev_info *rdi)
 	if (qps_inuse)
 		rvt_pr_err(rdi, "QP memory leak! %u still in use\n",
 			   qps_inuse);
-	if (!rdi->qp_dev)
-		return;
 
 	kfree(rdi->qp_dev->qp_table);
 	free_qpn_table(&rdi->qp_dev->qpn_table);
drivers/macintosh/Kconfig +1 -0
index a316624742f6..c3d421c7b0cf 100644
@@ -83,6 +83,7 @@ config ADB_PMU_LED
 
 config ADB_PMU_LED_DISK
 	bool "Use front LED as DISK LED by default"
+	depends on ATA
 	depends on ADB_PMU_LED
 	depends on LEDS_CLASS
 	select LEDS_TRIGGERS
drivers/macintosh/windfarm_smu_sat.c +1 -0
index 51ef77de4174..3d4b8c33640a 100644
@@ -172,6 +172,7 @@ static void wf_sat_release(struct kref *ref)
 
 	if (sat->nr >= 0)
 		sats[sat->nr] = NULL;
+	of_node_put(sat->node);
 	kfree(sat);
 }
 
drivers/md/dm-flakey.c +2 -2
index 1f1614af5e97..5116856ea81d 100644
@@ -124,9 +124,9 @@ static int parse_features(struct dm_arg_set *as, struct flakey_c *fc,
 			 * Direction r or w?
 			 */
 			arg_name = dm_shift_arg(as);
-			if (!strcasecmp(arg_name, "w"))
+			if (arg_name && !strcasecmp(arg_name, "w"))
 				fc->corrupt_bio_rw = WRITE;
-			else if (!strcasecmp(arg_name, "r"))
+			else if (arg_name && !strcasecmp(arg_name, "r"))
 				fc->corrupt_bio_rw = READ;
 			else {
 				ti->error = "Invalid corrupt bio direction (r or w)";
drivers/md/dm-integrity.c +5 -3
index b054271066ac..0a4e440948f0 100644
@@ -3689,11 +3689,13 @@ int __init dm_integrity_init(void)
 	}
 
 	r = dm_register_target(&integrity_target);
-
-	if (r < 0)
+	if (r < 0) {
 		DMERR("register failed %d", r);
+		kmem_cache_destroy(journal_io_cache);
+		return r;
+	}
 
-	return r;
+	return 0;
 }
 
 void dm_integrity_exit(void)
drivers/md/dm-ioctl.c +4 -3
index 0c8ddf37ef39..e1603c17e346 100644
@@ -1410,11 +1410,12 @@ static int table_clear(struct file *filp, struct dm_ioctl *param, size_t param_s
 		hc->new_map = NULL;
 	}
 
-	param->flags &= ~DM_INACTIVE_PRESENT_FLAG;
-
-	__dev_status(hc->md, param);
 	md = hc->md;
 	up_write(&_hash_lock);
+
+	param->flags &= ~DM_INACTIVE_PRESENT_FLAG;
+	__dev_status(md, param);
+
 	if (old_map) {
 		dm_sync_table(md);
 		dm_table_destroy(old_map);
drivers/md/dm-verity-target.c +13 -4
index 36945030520a..d116495a3445 100644
@@ -471,13 +471,14 @@ static int verity_verify_io(struct dm_verity_io *io)
 	struct bvec_iter start;
 	unsigned b;
 	struct crypto_wait wait;
+	struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size);
 
 	for (b = 0; b < io->n_blocks; b++) {
 		int r;
 		sector_t cur_block = io->block + b;
 		struct ahash_request *req = verity_io_hash_req(v, io);
 
-		if (v->validated_blocks &&
+		if (v->validated_blocks && bio->bi_status == BLK_STS_OK &&
 		    likely(test_bit(cur_block, v->validated_blocks))) {
 			verity_bv_skip_block(v, io, &io->iter);
 			continue;
@@ -525,9 +526,17 @@ static int verity_verify_io(struct dm_verity_io *io)
 		else if (verity_fec_decode(v, io, DM_VERITY_BLOCK_TYPE_DATA,
 					   cur_block, NULL, &start) == 0)
 			continue;
-		else if (verity_handle_err(v, DM_VERITY_BLOCK_TYPE_DATA,
-					   cur_block))
-			return -EIO;
+		else {
+			if (bio->bi_status) {
+				/*
+				 * Error correction failed; Just return error
+				 */
+				return -EIO;
+			}
+			if (verity_handle_err(v, DM_VERITY_BLOCK_TYPE_DATA,
+					      cur_block))
+				return -EIO;
+		}
 	}
 
 	return 0;
drivers/md/raid10.c +51 -45

176 lines not on this page · raw message

drivers/md/raid5.c +8 -2
index 7fe0619c487a..7eeae0301ccc 100644
@@ -7153,6 +7153,12 @@ static int only_parity(int raid_disk, int algo, int raid_disks, int max_degraded
 	return 0;
 }
 
+static void raid5_set_io_opt(struct r5conf *conf)
+{
+	blk_queue_io_opt(conf->mddev->queue, (conf->chunk_sectors << 9) *
+			 (conf->raid_disks - conf->max_degraded));
+}
+
 static int raid5_run(struct mddev *mddev)
 {
 	struct r5conf *conf;
@@ -7442,8 +7448,7 @@ static int raid5_run(struct mddev *mddev)
 
 		chunk_size = mddev->chunk_sectors << 9;
 		blk_queue_io_min(mddev->queue, chunk_size);
-		blk_queue_io_opt(mddev->queue, chunk_size *
-				 (conf->raid_disks - conf->max_degraded));
+		raid5_set_io_opt(conf);
 		mddev->queue->limits.raid_partial_stripes_expensive = 1;
 		/*
 		 * We can only discard a whole stripe. It doesn't make sense to
@@ -8037,6 +8042,7 @@ static void end_reshape(struct r5conf *conf)
 						   / PAGE_SIZE);
 			if (conf->mddev->queue->backing_dev_info->ra_pages < 2 * stripe)
 				conf->mddev->queue->backing_dev_info->ra_pages = 2 * stripe;
+			raid5_set_io_opt(conf);
 		}
 	}
 }
drivers/media/pci/dm1105/dm1105.c +1 -0
index 1ddb0576fb7b..dc3fc69e4480 100644
@@ -1188,6 +1188,7 @@ static void dm1105_remove(struct pci_dev *pdev)
 	struct dvb_demux *dvbdemux = &dev->demux;
 	struct dmx_demux *dmx = &dvbdemux->dmx;
 
+	cancel_work_sync(&dev->ir.work);
 	dm1105_ir_exit(dev);
 	dmx->close(dmx);
 	dvb_net_release(&dev->dvbnet);
drivers/media/pci/saa7134/saa7134-ts.c +1 -0
index 2be703617e29..e7adcd4f9962 100644
@@ -309,6 +309,7 @@ int saa7134_ts_start(struct saa7134_dev *dev)
 
 int saa7134_ts_fini(struct saa7134_dev *dev)
 {
+	del_timer_sync(&dev->ts_q.timeout);
 	saa7134_pgtable_free(dev->pci, &dev->ts_q.pt);
 	return 0;
 }
drivers/media/pci/saa7134/saa7134-vbi.c +1 -0
index 57bea543c39b..559db500b19c 100644
@@ -194,6 +194,7 @@ int saa7134_vbi_init1(struct saa7134_dev *dev)
 int saa7134_vbi_fini(struct saa7134_dev *dev)
 {
 	/* nothing */
+	del_timer_sync(&dev->vbi_q.timeout);
 	return 0;
 }
 
drivers/media/pci/saa7134/saa7134-video.c +1 -0
index 079219288af7..90255ecb08ca 100644
@@ -2213,6 +2213,7 @@ int saa7134_video_init1(struct saa7134_dev *dev)
 
 void saa7134_video_fini(struct saa7134_dev *dev)
 {
+	del_timer_sync(&dev->video_q.timeout);
 	/* free stuff */
 	vb2_queue_release(&dev->video_vbq);
 	saa7134_pgtable_free(dev->pci, &dev->video_q.pt);
drivers/media/pci/ttpci/av7110_av.c +2 -2
index ef1bc17cdc4d..03d1d1fba8bc 100644
@@ -836,10 +836,10 @@ static int write_ts_to_decoder(struct av7110 *av7110, int type, const u8 *buf, s
 		av7110_ipack_flush(ipack);
 
 	if (buf[3] & ADAPT_FIELD) {
+		if (buf[4] > len - 1 - 4)
+			return 0;
 		len -= buf[4] + 1;
 		buf += buf[4] + 1;
-		if (!len)
-			return 0;
 	}
 
 	av7110_ipack_instant_repack(buf + 4, len - 4, ipack);
drivers/media/platform/rcar_fdp1.c +11 -7
index 2bd5898a6204..605d8188ac8c 100644
@@ -2287,11 +2287,10 @@ static int fdp1_probe(struct platform_device *pdev)
 		return PTR_ERR(fdp1->regs);
 
 	/* Interrupt service routine registration */
-	fdp1->irq = ret = platform_get_irq(pdev, 0);
-	if (ret < 0) {
-		dev_err(&pdev->dev, "cannot find IRQ\n");
+	ret = platform_get_irq(pdev, 0);
+	if (ret < 0)
 		return ret;
-	}
+	fdp1->irq = ret;
 
 	ret = devm_request_irq(&pdev->dev, fdp1->irq, fdp1_irq_handler, 0,
 			       dev_name(&pdev->dev), fdp1);
@@ -2314,8 +2313,10 @@ static int fdp1_probe(struct platform_device *pdev)
 
 	/* Determine our clock rate */
 	clk = clk_get(&pdev->dev, NULL);
-	if (IS_ERR(clk))
-		return PTR_ERR(clk);
+	if (IS_ERR(clk)) {
+		ret = PTR_ERR(clk);
+		goto put_dev;
+	}
 
 	fdp1->clk_rate = clk_get_rate(clk);
 	clk_put(clk);
@@ -2324,7 +2325,7 @@ static int fdp1_probe(struct platform_device *pdev)
 	ret = v4l2_device_register(&pdev->dev, &fdp1->v4l2_dev);
 	if (ret) {
 		v4l2_err(&fdp1->v4l2_dev, "Failed to register video device\n");
-		return ret;
+		goto put_dev;
 	}
 
 	/* M2M registration */
@@ -2389,6 +2390,8 @@ static int fdp1_probe(struct platform_device *pdev)
 unreg_dev:
 	v4l2_device_unregister(&fdp1->v4l2_dev);
 
+put_dev:
+	rcar_fcp_put(fdp1->fcp);
 	return ret;
 }
 
@@ -2400,6 +2403,7 @@ static int fdp1_remove(struct platform_device *pdev)
 	video_unregister_device(&fdp1->vfd);
 	v4l2_device_unregister(&fdp1->v4l2_dev);
 	pm_runtime_disable(&pdev->dev);
+	rcar_fcp_put(fdp1->fcp);
 
 	return 0;
 }
drivers/media/platform/sti/bdisp/bdisp-v4l2.c +2 -0
index 00f6e3f06dac..7a7271f9d875 100644
@@ -1312,6 +1312,8 @@ static int bdisp_probe(struct platform_device *pdev)
 	init_waitqueue_head(&bdisp->irq_queue);
 	INIT_DELAYED_WORK(&bdisp->timeout_work, bdisp_irq_timeout);
 	bdisp->work_queue = create_workqueue(BDISP_NAME);
+	if (!bdisp->work_queue)
+		return -ENOMEM;
 
 	spin_lock_init(&bdisp->slock);
 	mutex_init(&bdisp->lock);
drivers/media/rc/gpio-ir-recv.c +2 -0
index 3d99b51384ac..ed5cfde4d9e7 100644
@@ -91,6 +91,8 @@ static int gpio_ir_recv_probe(struct platform_device *pdev)
 		rcdev->map_name = RC_MAP_EMPTY;
 
 	gpio_dev->rcdev = rcdev;
+	if (of_property_read_bool(np, "wakeup-source"))
+		device_init_wakeup(dev, true);
 
 	rc = devm_rc_register_device(dev, rcdev);
 	if (rc < 0) {
drivers/misc/vmw_vmci/vmci_host.c +7 -1
index 83e0c95d20a4..5acbf384ffa6 100644
@@ -169,10 +169,16 @@ static int vmci_host_close(struct inode *inode, struct file *filp)
 static __poll_t vmci_host_poll(struct file *filp, poll_table *wait)
 {
 	struct vmci_host_dev *vmci_host_dev = filp->private_data;
-	struct vmci_ctx *context = vmci_host_dev->context;
+	struct vmci_ctx *context;
 	__poll_t mask = 0;
 
 	if (vmci_host_dev->ct_type == VMCIOBJ_CONTEXT) {
+		/*
+		 * Read context only if ct_type == VMCIOBJ_CONTEXT to make
+		 * sure that context is initialized
+		 */
+		context = vmci_host_dev->context;
+
 		/* Check for VMCI calls to this VM context. */
 		if (wait)
 			poll_wait(filp, &context->host_context.wait_queue,
drivers/mtd/spi-nor/cadence-quadspi.c +30 -42

131 lines not on this page · raw message

drivers/mtd/ubi/eba.c +14 -5
index b98481b69314..3e25421f22a2 100644
@@ -960,7 +960,7 @@ static int try_write_vid_and_data(struct ubi_volume *vol, int lnum,
 				  int offset, int len)
 {
 	struct ubi_device *ubi = vol->ubi;
-	int pnum, opnum, err, vol_id = vol->vol_id;
+	int pnum, opnum, err, err2, vol_id = vol->vol_id;
 
 	pnum = ubi_wl_get_peb(ubi);
 	if (pnum < 0) {
@@ -995,10 +995,19 @@ static int try_write_vid_and_data(struct ubi_volume *vol, int lnum,
 out_put:
 	up_read(&ubi->fm_eba_sem);
 
-	if (err && pnum >= 0)
-		err = ubi_wl_put_peb(ubi, vol_id, lnum, pnum, 1);
-	else if (!err && opnum >= 0)
-		err = ubi_wl_put_peb(ubi, vol_id, lnum, opnum, 0);
+	if (err && pnum >= 0) {
+		err2 = ubi_wl_put_peb(ubi, vol_id, lnum, pnum, 1);
+		if (err2) {
+			ubi_warn(ubi, "failed to return physical eraseblock %d, error %d",
+				 pnum, err2);
+		}
+	} else if (!err && opnum >= 0) {
+		err2 = ubi_wl_put_peb(ubi, vol_id, lnum, opnum, 0);
+		if (err2) {
+			ubi_warn(ubi, "failed to return physical eraseblock %d, error %d",
+				 opnum, err2);
+		}
+	}
 
 	return err;
 }
drivers/net/dsa/mv88e6xxx/chip.c +3 -0
index 6b310f723580..b593e4d85e9c 100644
@@ -3601,6 +3601,7 @@ static const struct mv88e6xxx_ops mv88e6320_ops = {
 	.stats_get_stats = mv88e6320_stats_get_stats,
 	.set_cpu_port = mv88e6095_g1_set_cpu_port,
 	.set_egress_port = mv88e6095_g1_set_egress_port,
+	.watchdog_ops = &mv88e6390_watchdog_ops,
 	.mgmt_rsvd2cpu = mv88e6352_g2_mgmt_rsvd2cpu,
 	.pot_clear = mv88e6xxx_g2_pot_clear,
 	.reset = mv88e6352_g1_reset,
@@ -3643,6 +3644,8 @@ static const struct mv88e6xxx_ops mv88e6321_ops = {
 	.stats_get_stats = mv88e6320_stats_get_stats,
 	.set_cpu_port = mv88e6095_g1_set_cpu_port,
 	.set_egress_port = mv88e6095_g1_set_egress_port,
+	.watchdog_ops = &mv88e6390_watchdog_ops,
+	.mgmt_rsvd2cpu = mv88e6352_g2_mgmt_rsvd2cpu,
 	.reset = mv88e6352_g1_reset,
 	.vtu_getnext = mv88e6185_g1_vtu_getnext,
 	.vtu_loadpurge = mv88e6185_g1_vtu_loadpurge,
drivers/net/ethernet/amd/nmclan_cs.c +1 -1
index 9c152d85840d..c9d2a6f15062 100644
@@ -652,7 +652,7 @@ static int nmclan_config(struct pcmcia_device *link)
     } else {
       pr_notice("mace id not found: %x %x should be 0x40 0x?9\n",
 		sig[0], sig[1]);
-      return -ENODEV;
+      goto failed;
     }
   }
 
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c +12 -11
index 8829bd95d0d3..3d361557a63a 100644
@@ -2539,6 +2539,14 @@ static int ixgbe_get_rss_hash_opts(struct ixgbe_adapter *adapter,
 	return 0;
 }
 
+static int ixgbe_rss_indir_tbl_max(struct ixgbe_adapter *adapter)
+{
+	if (adapter->hw.mac.type < ixgbe_mac_X550)
+		return 16;
+	else
+		return 64;
+}
+
 static int ixgbe_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd,
 			   u32 *rule_locs)
 {
@@ -2547,7 +2555,8 @@ static int ixgbe_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd,
 
 	switch (cmd->cmd) {
 	case ETHTOOL_GRXRINGS:
-		cmd->data = adapter->num_rx_queues;
+		cmd->data = min_t(int, adapter->num_rx_queues,
+				  ixgbe_rss_indir_tbl_max(adapter));
 		ret = 0;
 		break;
 	case ETHTOOL_GRXCLSRLCNT:
@@ -2949,14 +2958,6 @@ static int ixgbe_set_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd)
 	return ret;
 }
 
-static int ixgbe_rss_indir_tbl_max(struct ixgbe_adapter *adapter)
-{
-	if (adapter->hw.mac.type < ixgbe_mac_X550)
-		return 16;
-	else
-		return 64;
-}
-
 static u32 ixgbe_get_rxfh_key_size(struct net_device *netdev)
 {
 	return IXGBE_RSS_KEY_SIZE;
@@ -3005,8 +3006,8 @@ static int ixgbe_set_rxfh(struct net_device *netdev, const u32 *indir,
 	int i;
 	u32 reta_entries = ixgbe_rss_indir_tbl_entries(adapter);
 
-	if (hfunc)
-		return -EINVAL;
+	if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP)
+		return -EOPNOTSUPP;
 
 	/* Fill out the redirection table */
 	if (indir) {
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +32 -0
index 0a4d093adfc9..3e35cdf0d2b7 100644
@@ -114,6 +114,7 @@ MODULE_PARM_DESC(chain_mode, "To use chain instead of ring mode");
 static irqreturn_t stmmac_interrupt(int irq, void *dev_id);
 
 #ifdef CONFIG_DEBUG_FS
+static const struct net_device_ops stmmac_netdev_ops;
 static int stmmac_init_fs(struct net_device *dev);
 static void stmmac_exit_fs(struct net_device *dev);
 #endif
@@ -4034,6 +4035,34 @@ static const struct file_operations stmmac_dma_cap_fops = {
 	.release = single_release,
 };
 
+/* Use network device events to rename debugfs file entries.
+ */
+static int stmmac_device_event(struct notifier_block *unused,
+			       unsigned long event, void *ptr)
+{
+	struct net_device *dev = netdev_notifier_info_to_dev(ptr);
+	struct stmmac_priv *priv = netdev_priv(dev);
+
+	if (dev->netdev_ops != &stmmac_netdev_ops)
+		goto done;
+
+	switch (event) {
+	case NETDEV_CHANGENAME:
+		if (priv->dbgfs_dir)
+			priv->dbgfs_dir = debugfs_rename(stmmac_fs_dir,
+							 priv->dbgfs_dir,
+							 stmmac_fs_dir,
+							 dev->name);
+		break;
+	}
+done:
+	return NOTIFY_DONE;
+}
+
+static struct notifier_block stmmac_notifier = {
+	.notifier_call = stmmac_device_event,
+};
+
 static int stmmac_init_fs(struct net_device *dev)
 {
 	struct stmmac_priv *priv = netdev_priv(dev);
@@ -4072,6 +4101,8 @@ static int stmmac_init_fs(struct net_device *dev)
 		return -ENOMEM;
 	}
 
+	register_netdevice_notifier(&stmmac_notifier);
+
 	return 0;
 }
 
@@ -4079,6 +4110,7 @@ static void stmmac_exit_fs(struct net_device *dev)
 {
 	struct stmmac_priv *priv = netdev_priv(dev);
 
+	unregister_netdevice_notifier(&stmmac_notifier);
 	debugfs_remove_recursive(priv->dbgfs_dir);
 }
 #endif /* CONFIG_DEBUG_FS */
drivers/net/virtio_net.c +27 -16

59 lines not on this page · raw message

drivers/net/wireless/ath/ath5k/eeprom.c +1 -1
index 01163b333945..92f5c8e83090 100644
@@ -529,7 +529,7 @@ ath5k_eeprom_read_freq_list(struct ath5k_hw *ah, int *offset, int max,
 		ee->ee_n_piers[mode]++;
 
 		freq2 = (val >> 8) & 0xff;
-		if (!freq2)
+		if (!freq2 || i >= max)
 			break;
 
 		pc[i++].freq = ath5k_eeprom_bin2freq(ee,
drivers/net/wireless/ath/ath6kl/bmi.c +1 -1
index bde5a10d470c..af98e871199d 100644
@@ -246,7 +246,7 @@ int ath6kl_bmi_execute(struct ath6kl *ar, u32 addr, u32 *param)
 		return -EACCES;
 	}
 
-	size = sizeof(cid) + sizeof(addr) + sizeof(param);
+	size = sizeof(cid) + sizeof(addr) + sizeof(*param);
 	if (size > ar->bmi.max_cmd_size) {
 		WARN_ON(1);
 		return -EINVAL;
drivers/net/wireless/ath/ath6kl/htc_pipe.c +2 -2
index 434b66829646..73bf4af1f3c7 100644
@@ -963,8 +963,8 @@ static int ath6kl_htc_pipe_rx_complete(struct ath6kl *ar, struct sk_buff *skb,
 	 * Thus the possibility of ar->htc_target being NULL
 	 * via ath6kl_recv_complete -> ath6kl_usb_io_comp_work.
 	 */
-	if (WARN_ON_ONCE(!target)) {
-		ath6kl_err("Target not yet initialized\n");
+	if (!target) {
+		ath6kl_dbg(ATH6KL_DBG_HTC, "Target not yet initialized\n");
 		status = -EINVAL;
 		goto free_skb;
 	}
drivers/net/wireless/ath/ath9k/hif_usb.c +19 -0
index e23d58f83dd6..3aa915d21554 100644
@@ -534,6 +534,24 @@ static struct ath9k_htc_hif hif_usb = {
 	.send = hif_usb_send,
 };
 
+/* Need to free remain_skb allocated in ath9k_hif_usb_rx_stream
+ * in case ath9k_hif_usb_rx_stream wasn't called next time to
+ * process the buffer and subsequently free it.
+ */
+static void ath9k_hif_usb_free_rx_remain_skb(struct hif_device_usb *hif_dev)
+{
+	unsigned long flags;
+
+	spin_lock_irqsave(&hif_dev->rx_lock, flags);
+	if (hif_dev->remain_skb) {
+		dev_kfree_skb_any(hif_dev->remain_skb);
+		hif_dev->remain_skb = NULL;
+		hif_dev->rx_remain_len = 0;
+		RX_STAT_INC(hif_dev, skb_dropped);
+	}
+	spin_unlock_irqrestore(&hif_dev->rx_lock, flags);
+}
+
 static void ath9k_hif_usb_rx_stream(struct hif_device_usb *hif_dev,
 				    struct sk_buff *skb)
 {
@@ -868,6 +886,7 @@ static int ath9k_hif_usb_alloc_tx_urbs(struct hif_device_usb *hif_dev)
 static void ath9k_hif_usb_dealloc_rx_urbs(struct hif_device_usb *hif_dev)
 {
 	usb_kill_anchored_urbs(&hif_dev->rx_submitted);
+	ath9k_hif_usb_free_rx_remain_skb(hif_dev);
 }
 
 static int ath9k_hif_usb_alloc_rx_urbs(struct hif_device_usb *hif_dev)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +5 -0
index 75790b13c962..d77c1dbb5e19 100644
@@ -5362,6 +5362,11 @@ static s32 brcmf_get_assoc_ies(struct brcmf_cfg80211_info *cfg,
 		(struct brcmf_cfg80211_assoc_ielen_le *)cfg->extra_buf;
 	req_len = le32_to_cpu(assoc_info->req_len);
 	resp_len = le32_to_cpu(assoc_info->resp_len);
+	if (req_len > WL_EXTRA_BUF_MAX || resp_len > WL_EXTRA_BUF_MAX) {
+		brcmf_err("invalid lengths in assoc info: req %u resp %u\n",
+			 req_len, resp_len);
+		return -EINVAL;
+	}
 	if (req_len) {
 		err = brcmf_fil_iovar_data_get(ifp, "assoc_req_ies",
 					       cfg->extra_buf,
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c +10 -0
index 05b77419953c..9540c874fc38 100644
@@ -1835,6 +1835,11 @@ static ssize_t iwl_dbgfs_mem_read(struct file *file, char __user *user_buf,
 	if (ret < 0)
 		return ret;
 
+	if (iwl_rx_packet_payload_len(hcmd.resp_pkt) < sizeof(*rsp)) {
+		ret = -EIO;
+		goto out;
+	}
+
 	rsp = (void *)hcmd.resp_pkt->data;
 	if (le32_to_cpu(rsp->status) != DEBUG_MEM_STATUS_SUCCESS) {
 		ret = -ENXIO;
@@ -1912,6 +1917,11 @@ static ssize_t iwl_dbgfs_mem_write(struct file *file,
 	if (ret < 0)
 		return ret;
 
+	if (iwl_rx_packet_payload_len(hcmd.resp_pkt) < sizeof(*rsp)) {
+		ret = -EIO;
+		goto out;
+	}
+
 	rsp = (void *)hcmd.resp_pkt->data;
 	if (rsp->status != DEBUG_MEM_STATUS_SUCCESS) {
 		ret = -ENXIO;
drivers/net/wireless/intel/iwlwifi/pcie/trans.c +2 -1
index 2d2afc175830..c69c13e762bb 100644
@@ -666,7 +666,6 @@ static int iwl_pcie_set_hw_ready(struct iwl_trans *trans)
 int iwl_pcie_prepare_card_hw(struct iwl_trans *trans)
 {
 	int ret;
-	int t = 0;
 	int iter;
 
 	IWL_DEBUG_INFO(trans, "iwl_trans_prepare_card_hw enter\n");
@@ -681,6 +680,8 @@ int iwl_pcie_prepare_card_hw(struct iwl_trans *trans)
 	usleep_range(1000, 2000);
 
 	for (iter = 0; iter < 10; iter++) {
+		int t = 0;
+
 		/* If HW is not ready, prepare the conditions to check again */
 		iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG,
 			    CSR_HW_IF_CONFIG_REG_PREPARE);
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c +1 -0
index eb8f046ae20d..f936ad6c5728 100644
@@ -1710,6 +1710,7 @@ struct rtl8xxxu_fileops rtl8192eu_fops = {
 	.rx_desc_size = sizeof(struct rtl8xxxu_rxdesc24),
 	.has_s0s1 = 0,
 	.gen2_thermal_meter = 1,
+	.needs_full_init = 1,
 	.adda_1t_init = 0x0fc01616,
 	.adda_1t_path_on = 0x0fc01616,
 	.adda_2t_path_on_a = 0x0fc01616,
drivers/net/wireless/realtek/rtlwifi/base.c +72 -72

338 lines not on this page · raw message

drivers/net/wireless/realtek/rtlwifi/cam.c +40 -42

147 lines not on this page · raw message

drivers/net/wireless/realtek/rtlwifi/core.c +130 -129

227 lines not on this page · raw message

drivers/net/wireless/realtek/rtlwifi/debug.c +8 -8
index 474439fc2da1..6a0dfc6d4905 100644

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

drivers/net/wireless/realtek/rtlwifi/debug.h +11 -0
index ad6834af618b..14f822afc89a 100644

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

drivers/net/wireless/realtek/rtlwifi/efuse.c +36 -36

72 lines not on this page · raw message

drivers/net/wireless/realtek/rtlwifi/pci.c +143 -141

284 lines not on this page · raw message

drivers/net/wireless/realtek/rtlwifi/ps.c +49 -49

98 lines not on this page · raw message

drivers/net/wireless/realtek/rtlwifi/regd.c +9 -9
index 72ca370331fb..f89f60ddfebe 100644

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

drivers/net/wireless/realtek/rtlwifi/usb.c +9 -9
index 395671383ca9..35ebbd8ca9ca 100644

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

drivers/of/device.c +5 -2
index 258742830e36..566d8af05157 100644

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

drivers/pci/hotplug/pciehp.h +3 -0
index ef6071807072..522719ca1c2b 100644

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

drivers/pci/hotplug/pciehp_core.c +1 -1
index 518c46f8e63b..5ebfff9356c7 100644

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

drivers/pci/hotplug/pciehp_hpc.c +17 -2
index 2795445233b3..7392b26e9f15 100644

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

drivers/pci/hotplug/pciehp_pci.c +15 -0
index 5c58c22e0c08..a32023afa25b 100644

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

drivers/phy/tegra/xusb.c +2 -0
index 39c01ef57d83..17211b31e1ed 100644

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

drivers/platform/x86/touchscreen_dmi.c +24 -0
index f122a0263a1b..e26e2279ba6c 100644

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

drivers/power/supply/generic-adc-battery.c +3 -0
index 97b0e873e87d..c2d6378bb897 100644

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

drivers/pwm/pwm-meson.c +1 -1
index e247ab632530..90aba3091b23 100644

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

drivers/pwm/pwm-mtk-disp.c +43 -51

94 lines not on this page · raw message

drivers/s390/block/dasd.c +1 -1
index 7beda20cf122..c1cf277d0d89 100644

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

drivers/scsi/megaraid.c +1 -0
index 7352d46ebb09..44d648baabd8 100644

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

drivers/spi/spi-fsl-spi.c +7 -5
index cd784552de7f..479d10dc6cb8 100644

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

drivers/spi/spi-qup.c +12 -8
index 1ca678bcb527..defe959884da 100644

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

drivers/spmi/spmi.c +2 -1
index aa3edabc2b0f..55f1cad836ba 100644

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

drivers/staging/iio/resolver/ad2s1210.c +1 -1
index aca983f34f5e..f41ee9243801 100644

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

drivers/staging/rtl8192e/rtl8192e/rtl_core.c +1 -0
index da73998bc5f7..d5ef1986bde4 100644

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

drivers/target/iscsi/iscsi_target.c +9 -7
index 58ccded1be85..7738e249c4a2 100644

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

drivers/tty/serial/8250/8250.h +12 -0
index ebfb0bd5bef5..8c8aa3b9c298 100644

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

drivers/tty/serial/8250/8250_port.c +13 -3
index ce266e10a21e..cba4888bc482 100644

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

drivers/tty/serial/fsl_lpuart.c +1 -1
index 6ea1d23623e5..dbfec943071d 100644

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

drivers/tty/tty_io.c +2 -2
index d3e6b6615553..72091b1f5626 100644

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

drivers/tty/tty_ioctl.c +33 -12

45 lines not on this page · raw message

drivers/usb/chipidea/core.c +1 -1
index 3fd1073a345d..9f6a52ed038e 100644

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

drivers/usb/dwc3/core.c +1 -0
index 65caee589e67..81a5ca15b9c7 100644

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

drivers/usb/gadget/udc/renesas_usb3.c +1 -0
index c17d7a71e29a..013db752d55d 100644

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

drivers/usb/host/xhci-debugfs.c +1 -0
index 448d7b11dec4..608104cdcf33 100644

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

drivers/usb/host/xhci-rcar.c +0 -3
index 4ebbe2c23292..4353c1948e5c 100644

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

drivers/usb/serial/option.c +6 -0
index 8dd94ce7245e..06c5f46ff0f9 100644

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

fs/btrfs/ctree.c +31 -1
index 00dc1b5c8737..34d56f0fa750 100644

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

fs/btrfs/ioctl.c +5 -0
index 4f2513388567..f009d585e72f 100644

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

fs/btrfs/print-tree.c +3 -3
index 4b217e9a581c..e3de0c4ecbfc 100644

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

fs/cifs/smb2ops.c +1 -1
index 118bcb351af9..c07dcb2af2eb 100644

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

fs/debugfs/file.c +8 -0
index a57d080d2ba5..acdc802bfe9a 100644

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

fs/ext4/balloc.c +25 -0
index f9645de9d04c..9761aeb4b224 100644

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

fs/ext4/inline.c +12 -2
index 72387e142e28..71bb3cfc5933 100644

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

fs/ext4/mballoc.c +5 -1
index 4ea4fe92eb8c..70e1121d0a30 100644

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

fs/ext4/super.c +12 -7
index e54a5be15636..ce5abd25eb99 100644

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

fs/ext4/xattr.c +3 -2
index 1b73a7f8189d..700822c9851a 100644

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

fs/fs-writeback.c +1 -1
index 4d687e2e2373..61dc0dc139f8 100644

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

fs/nfs/nfs4state.c +4 -0
index e5b4c6987c84..f0f0fb7499e3 100644

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

fs/nilfs2/bmap.c +12 -4
index fb5a9a8a13cf..2ba57e4b4f0a 100644

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

fs/nilfs2/segment.c +4 -1
index b23ed9a35e5e..3091d1a3edde 100644

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

fs/pstore/pmsg.c +3 -4
index ffc13ea196d2..24db02de1787 100644

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

fs/reiserfs/xattr_security.c +6 -2
index 59d87f9f72fb..159af6c26f4b 100644

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

fs/ubifs/dir.c +1 -0
index 3b93b14e0041..cb52aa9ea276 100644

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

fs/ubifs/tnc.c +86 -56

142 lines not on this page · raw message

include/linux/debugfs.h +1 -0
index 6ebc269e48ac..0624c9a1f01e 100644

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

include/linux/ipmi_smi.h +29 -7
index 1995ce146789..86b119400f30 100644

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

include/linux/netfilter/nfnetlink.h +0 -1
index e713476ff29d..a806803fbe37 100644

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

include/linux/printk.h +19 -0
index 6dd867e39365..f4d7e643f010 100644

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

include/linux/sunrpc/sched.h +1 -2
index ad2e243f3f03..96837ae07822 100644

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

include/linux/tick.h +8 -1
index 55388ab45fd4..443726085f6c 100644

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

include/linux/tty.h +2 -0
index d808ab9c9aff..487ce56b88e8 100644

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

include/linux/vt_buffer.h +1 -1
index 848db1b1569f..919d999a8c1d 100644

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

include/net/netfilter/nf_tables.h +1 -0
index 93253ba1eeac..78f5f0426e6b 100644

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

include/net/scm.h +12 -1
index 1ce365f4c256..585adc1346bd 100644

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

include/trace/events/timer.h +2 -1
index a57e4ee989d6..350b046e7576 100644

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

include/uapi/drm/amdgpu_drm.h +2 -1
index 1ceec56de015..b72aeb766fc7 100644

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

include/uapi/linux/btrfs.h +1 -0
index 5ca1d21fc4a7..dd7a7b3e53f4 100644

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

include/uapi/linux/const.h +1 -1
index af2a44c08683..a429381e7ca5 100644

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

include/uapi/linux/media-bus-format.h +8 -0
index d6a5a3bfe6c4..be53a8c1a2df 100644

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

kernel/events/core.c +2 -2
index 72ed3f3d078f..2bf4b6b109bf 100644

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

kernel/relay.c +8 -10
index b7aa7df43955..e6f70f4c41a3 100644

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

kernel/time/tick-sched.c +15 -3
index 48403fb653c2..25c6efa2c557 100644

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

kernel/trace/ring_buffer.c +4 -0
index 37fade5101ee..ba8b72f9cdc0 100644

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

lib/debugobjects.c +204 -96

300 lines not on this page · raw message

mm/page_alloc.c +16 -0
index 1cffd4e1fd8f..4553cc848abc 100644

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

net/8021q/vlan_dev.c +1 -1
index 84ef83772114..c80add6edf59 100644

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

net/bluetooth/hci_sock.c +8 -1
index 6908817a5a70..908a57578794 100644

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

net/core/skbuff.c +3 -0
index 7f501dff4501..5ae62d743357 100644

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

net/ipv4/ip_output.c +13 -3
index 06a981676356..92fa11e75a4d 100644

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

net/ipv6/sit.c +5 -3
index df734fe64d10..ec1de1e6b8e3 100644

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

net/netfilter/nf_tables_api.c +14 -6
index 079f76849693..e20bde9cc7b1 100644

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

net/netfilter/nfnetlink.c +0 -2
index 9bacddc761ba..39e369e18cb8 100644

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

net/netfilter/nft_dynset.c +1 -1
index cc076d535e14..ea73130427eb 100644

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

net/netfilter/nft_lookup.c +1 -1
index 55754d9939b5..cb9e937a5ce0 100644

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

net/netfilter/nft_objref.c +1 -1
index bf92a40dd1b2..eff2173db7e4 100644

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

net/netlink/af_netlink.c +22 -45

67 lines not on this page · raw message

net/packet/af_packet.c +8 -12
index 6fa0a9a453a8..aa12bee4133a 100644

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

net/packet/diag.c +2 -2
index 7ef1c881ae74..d9f912ad23df 100644

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

net/packet/internal.h +23 -3
index f10294800aaf..3d871cae85b8 100644

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

net/rxrpc/sendmsg.c +1 -1
index a7a09eb04d93..eaa032c498c9 100644

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

net/sched/act_mirred.c +1 -1
index a30c17a28281..9aad86e4a0fb 100644

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

net/sunrpc/clnt.c +0 -3
index 1946bd13d5df..e5498253ad93 100644

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

net/sunrpc/sched.c +0 -1
index e36ae4d4b540..9af919364a00 100644

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

security/selinux/Makefile +2 -2
index c7161f8792b2..08ba8ca81d40 100644

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

sound/soc/intel/boards/bytcr_rt5640.c +12 -0
index 2001bc774c64..d27dd170beda 100644

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

sound/usb/caiaq/input.c +1 -0
index e883659ea6e7..19951e1dbbb0 100644

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

tools/bpf/bpftool/json_writer.c +0 -3
index c6eef76322ae..0c38c41269be 100644

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

tools/bpf/bpftool/xlated_dumper.c +7 -0
index 3284759df98a..7f49347bf5aa 100644

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

tools/perf/builtin-sched.c +1 -1
index cbf39dab19c1..4562e3b2f4d3 100644

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

tools/perf/pmu-events/arch/powerpc/power9/other.json +2 -2
index 48cf4f920b3f..064341c0df57 100644

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

tools/perf/pmu-events/arch/powerpc/power9/pipeline.json +1 -1
index b4772f54a271..e2f2ed0a3549 100644

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

tools/perf/util/auxtrace.c +4 -1
index 1e607403c94c..5ae37a83dca3 100644

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

tools/perf/util/sort.c +1 -2
index 85ff4f68adc0..66e11e6bb719 100644

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

tools/perf/util/symbol-elf.c +1 -1
index 8dde4369fbcd..227dfe33063c 100644

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.