Skip to contentSkip to conversation

Linux 4.4.181

DISCUSSION Greg KH 1 participant 2 messages Jun 11, 2019 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.4.181 kernel.

All users of the 4.4 kernel series must upgrade.

The updated 4.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.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/x86/mds.rst                           |   44 --
 Makefile                                            |    2 
 arch/arm/crypto/aesbs-glue.c                        |    4 
 arch/arm/kvm/arm.c                                  |   11 
 arch/arm/mach-exynos/firmware.c                     |    1 
 arch/arm/mach-exynos/suspend.c                      |    2 
 arch/arm64/kernel/cpu_ops.c                         |    1 
 arch/mips/pistachio/Platform                        |    1 
 arch/powerpc/boot/addnote.c                         |    6 
 arch/powerpc/mm/numa.c                              |   18 
 arch/sparc/mm/ultra.S                               |    4 
 arch/x86/Makefile                                   |    2 
 arch/x86/crypto/crct10dif-pclmul_glue.c             |   13 
 arch/x86/ia32/ia32_signal.c                         |   29 -
 arch/x86/kernel/irq_64.c                            |   19 -
 arch/x86/kernel/traps.c                             |    8 
 arch/x86/kvm/x86.c                                  |   31 +
 arch/x86/mm/fault.c                                 |    2 
 crypto/chacha20poly1305.c                           |    4 
 crypto/crct10dif_generic.c                          |   11 
 crypto/gcm.c                                        |   36 -
 crypto/salsa20_generic.c                            |    2 
 drivers/android/binder.c                            |   36 -
 drivers/base/power/main.c                           |    4 
 drivers/char/ipmi/ipmi_ssif.c                       |    6 
 drivers/char/virtio_console.c                       |    3 
 drivers/clk/tegra/clk-pll.c                         |    4 
 drivers/cpufreq/pasemi-cpufreq.c                    |    1 
 drivers/cpufreq/pmac32-cpufreq.c                    |    2 
 drivers/cpufreq/ppc_cbe_cpufreq.c                   |    1 
 drivers/crypto/vmx/aesp8-ppc.pl                     |    6 
 drivers/crypto/vmx/ghash.c                          |  218 ++++--------
 drivers/dma/at_xdmac.c                              |    6 
 drivers/dma/pl330.c                                 |   10 
 drivers/extcon/extcon-arizona.c                     |   10 
 drivers/gpu/drm/gma500/cdv_intel_lvds.c             |    3 
 drivers/gpu/drm/gma500/intel_bios.c                 |    3 
 drivers/gpu/drm/gma500/psb_drv.h                    |    1 
 drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h   |    2 
 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c       |   26 +
 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h       |    2 
 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c      |   15 
 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c       |   21 +
 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.h       |    1 
 drivers/hid/hid-core.c                              |   36 +
 drivers/hid/hid-logitech-hidpp.c                    |   17 
 drivers/hwmon/f71805f.c                             |   15 
 drivers/hwmon/pc87427.c                             |   14 
 drivers/hwmon/smsc47b397.c                          |   13 
 drivers/hwmon/smsc47m1.c                            |   28 +
 drivers/hwmon/vt1211.c                              |   15 
 drivers/hwtracing/intel_th/msu.c                    |   35 +
 drivers/hwtracing/stm/core.c                        |    2 
 drivers/iio/adc/ad_sigma_delta.c                    |   16 
 drivers/iio/common/ssp_sensors/ssp_iio.c            |    2 
 drivers/infiniband/hw/cxgb4/cm.c                    |    2 
 drivers/iommu/tegra-smmu.c                          |   25 -
 drivers/md/bcache/alloc.c                           |    5 
 drivers/md/bcache/journal.c                         |   37 +-
 drivers/md/bcache/super.c                           |   19 -
 drivers/md/dm-delay.c                               |    3 
 drivers/md/md.c                                     |    6 
 drivers/md/raid5.c                                  |   29 +
 drivers/media/dvb-frontends/m88ds3103.c             |    9 
 drivers/media/i2c/ov2659.c                          |    6 
 drivers/media/i2c/soc_camera/ov6650.c               |   27 -
 drivers/media/pci/saa7146/hexium_gemini.c           |    5 
 drivers/media/pci/saa7146/hexium_orion.c            |    5 
 drivers/media/platform/coda/coda-bit.c              |    3 
 drivers/media/platform/vivid/vivid-vid-cap.c        |    2 
 drivers/media/radio/wl128x/fmdrv_common.c           |    7 
 drivers/media/usb/au0828/au0828-video.c             |   16 
 drivers/media/usb/cpia2/cpia2_v4l.c                 |    3 
 drivers/media/usb/go7007/go7007-fw.c                |    4 
 drivers/media/usb/pvrusb2/pvrusb2-hdw.c             |    2 
 drivers/media/usb/pvrusb2/pvrusb2-hdw.h             |    1 
 drivers/media/usb/siano/smsusb.c                    |   33 +
 drivers/media/usb/uvc/uvc_driver.c                  |    2 
 drivers/memory/tegra/mc.c                           |    2 
 drivers/misc/genwqe/card_dev.c                      |    2 
 drivers/misc/genwqe/card_utils.c                    |    4 
 drivers/mmc/core/sd.c                               |    8 
 drivers/mmc/host/mmc_spi.c                          |    4 
 drivers/mmc/host/sdhci-of-esdhc.c                   |    5 
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c    |   18 
 drivers/net/ethernet/broadcom/bnxt/bnxt.c           |    2 
 drivers/net/ethernet/chelsio/cxgb3/l2t.h            |    2 
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c     |   15 
 drivers/net/ethernet/intel/i40e/i40e_main.c         |    8 
 drivers/net/ethernet/marvell/mvpp2.c                |   10 
 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c     |    4 
 drivers/net/ethernet/mellanox/mlx4/mcg.c            |    2 
 drivers/net/ethernet/mellanox/mlx4/port.c           |    5 
 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c   |    3 
 drivers/net/ppp/ppp_deflate.c                       |   20 -
 drivers/net/usb/cdc_ncm.c                           |    4 
 drivers/net/usb/usbnet.c                            |    6 
 drivers/net/wireless/at76c50x-usb.c                 |    4 
 drivers/net/wireless/b43/phy_lp.c                   |    6 
 drivers/net/wireless/brcm80211/brcmfmac/bus.h       |    4 
 drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c  |   23 +
 drivers/net/wireless/brcm80211/brcmfmac/core.c      |   45 +-
 drivers/net/wireless/brcm80211/brcmfmac/fweh.c      |   57 ---
 drivers/net/wireless/brcm80211/brcmfmac/fweh.h      |   82 +++-
 drivers/net/wireless/brcm80211/brcmfmac/msgbuf.c    |   42 +-
 drivers/net/wireless/brcm80211/brcmfmac/p2p.c       |   10 
 drivers/net/wireless/brcm80211/brcmfmac/sdio.c      |   32 +
 drivers/net/wireless/brcm80211/brcmfmac/usb.c       |   29 -
 drivers/net/wireless/brcm80211/brcmfmac/vendor.c    |    5 
 drivers/net/wireless/cw1200/main.c                  |    5 
 drivers/net/wireless/mwifiex/cfp.c                  |    3 
 drivers/net/wireless/realtek/rtlwifi/base.c         |    5 
 drivers/parisc/ccio-dma.c                           |    4 
 drivers/parisc/sba_iommu.c                          |    3 
 drivers/pci/quirks.c                                |    1 
 drivers/pinctrl/pinctrl-pistachio.c                 |    2 
 drivers/power/power_supply_sysfs.c                  |    6 
 drivers/rtc/rtc-88pm860x.c                          |    2 
 drivers/s390/cio/cio.h                              |    2 
 drivers/s390/scsi/zfcp_ext.h                        |    1 
 drivers/s390/scsi/zfcp_scsi.c                       |    9 
 drivers/s390/scsi/zfcp_sysfs.c                      |   55 ++-
 drivers/s390/scsi/zfcp_unit.c                       |    8 
 drivers/scsi/libsas/sas_expander.c                  |    5 
 drivers/scsi/lpfc/lpfc_hbadisc.c                    |   11 
 drivers/scsi/qla4xxx/ql4_os.c                       |    2 
 drivers/scsi/sd.c                                   |    3 
 drivers/scsi/ufs/ufshcd.c                           |   28 +
 drivers/spi/spi-pxa2xx.c                            |    8 
 drivers/spi/spi-rspi.c                              |    9 
 drivers/spi/spi-tegra114.c                          |   32 -
 drivers/spi/spi-topcliff-pch.c                      |   15 
 drivers/spi/spi.c                                   |    2 
 drivers/ssb/bridge_pcmcia_80211.c                   |    9 
 drivers/staging/iio/magnetometer/hmc5843_i2c.c      |    7 
 drivers/staging/iio/magnetometer/hmc5843_spi.c      |    7 
 drivers/tty/ipwireless/main.c                       |    8 
 drivers/tty/serial/max310x.c                        |    2 
 drivers/tty/serial/msm_serial.c                     |    5 
 drivers/tty/vt/keyboard.c                           |   33 +
 drivers/usb/core/config.c                           |    4 
 drivers/usb/core/hcd.c                              |    3 
 drivers/usb/core/hub.c                              |    5 
 drivers/usb/core/quirks.c                           |    3 
 drivers/usb/host/xhci.c                             |   24 -
 drivers/usb/misc/rio500.c                           |   41 +-
 drivers/usb/misc/sisusbvga/sisusb.c                 |   15 
 drivers/video/fbdev/core/fbcmap.c                   |    2 
 drivers/video/fbdev/core/modedb.c                   |    3 
 drivers/video/fbdev/sm712.h                         |   12 
 drivers/video/fbdev/sm712fb.c                       |  243 ++++++++++---
 drivers/w1/w1_io.c                                  |    3 
 drivers/xen/xen-pciback/pciback_ops.c               |    2 
 drivers/xen/xenbus/xenbus_dev_frontend.c            |    2 
 fs/btrfs/backref.c                                  |   18 
 fs/btrfs/extent-tree.c                              |   25 +
 fs/btrfs/file.c                                     |   12 
 fs/btrfs/sysfs.c                                    |    7 
 fs/btrfs/tree-log.c                                 |    8 
 fs/ceph/super.c                                     |    7 
 fs/char_dev.c                                       |    6 
 fs/cifs/file.c                                      |    4 
 fs/cifs/smb2ops.c                                   |   14 
 fs/ext4/extents.c                                   |   17 
 fs/ext4/inode.c                                     |    2 
 fs/ext4/ioctl.c                                     |    2 
 fs/ext4/super.c                                     |    2 
 fs/fs-writeback.c                                   |   51 ++
 fs/fuse/file.c                                      |   13 
 fs/gfs2/glock.c                                     |   22 -
 fs/gfs2/lock_dlm.c                                  |    9 
 fs/hugetlbfs/inode.c                                |    8 
 fs/nfs/nfs4state.c                                  |    4 
 fs/ocfs2/export.c                                   |   30 +
 fs/open.c                                           |   18 
 fs/read_write.c                                     |    5 
 fs/ufs/util.h                                       |    2 
 fs/userfaultfd.c                                    |   41 +-
 include/linux/backing-dev-defs.h                    |    1 
 include/linux/bio.h                                 |    2 
 include/linux/bitops.h                              |   16 
 include/linux/fs.h                                  |    4 
 include/linux/hid.h                                 |    1 
 include/linux/hugetlb.h                             |    4 
 include/linux/iio/adc/ad_sigma_delta.h              |    1 
 include/linux/list_lru.h                            |    1 
 include/linux/mfd/da9063/registers.h                |    6 
 include/linux/of.h                                  |    4 
 include/linux/rcupdate.h                            |    6 
 include/linux/sched.h                               |    7 
 include/linux/skbuff.h                              |   30 +
 include/linux/smpboot.h                             |    2 
 include/linux/usb/gadget.h                          |    4 
 include/net/arp.h                                   |    8 
 include/uapi/linux/fuse.h                           |    2 
 include/uapi/linux/tipc_config.h                    |   10 
 kernel/auditfilter.c                                |   12 
 kernel/rcu/rcutorture.c                             |    5 
 kernel/sched/core.c                                 |    9 
 kernel/signal.c                                     |    2 
 kernel/trace/trace_events.c                         |    3 
 lib/strncpy_from_user.c                             |    5 
 lib/strnlen_user.c                                  |    4 
 mm/backing-dev.c                                    |    1 
 mm/hugetlb.c                                        |   19 -
 mm/list_lru.c                                       |    8 
 mm/mincore.c                                        |   23 +
 net/core/dev.c                                      |    4 
 net/core/ethtool.c                                  |   17 
 net/core/neighbour.c                                |    9 
 net/core/pktgen.c                                   |   11 
 net/ipv4/ip_vti.c                                   |    5 
 net/ipv4/xfrm4_policy.c                             |   24 -
 net/ipv6/raw.c                                      |    2 
 net/ipv6/xfrm6_tunnel.c                             |    4 
 net/llc/llc_output.c                                |    2 
 net/mac80211/mlme.c                                 |    3 
 net/rds/ib_rdma.c                                   |   10 
 net/sched/sch_tbf.c                                 |   10 
 net/tipc/core.c                                     |   32 +
 net/tipc/subscr.c                                   |   14 
 net/tipc/subscr.h                                   |    5 
 net/wireless/nl80211.c                              |    5 
 net/xfrm/xfrm_user.c                                |    2 
 scripts/coccinelle/api/stream_open.cocci            |  363 ++++++++++++++++++++
 sound/pci/hda/patch_hdmi.c                          |    6 
 sound/pci/hda/patch_realtek.c                       |    7 
 sound/soc/codecs/max98090.c                         |   12 
 sound/soc/codecs/rt5677-spi.c                       |   35 -
 sound/soc/davinci/davinci-mcasp.c                   |    2 
 sound/soc/fsl/Kconfig                               |    9 
 sound/soc/fsl/eukrea-tlv320.c                       |    4 
 sound/soc/fsl/fsl_sai.c                             |    2 
 sound/soc/fsl/fsl_utils.c                           |    1 
 sound/usb/mixer.c                                   |    2 
 tools/include/linux/bitops.h                        |    7 
 tools/include/linux/bits.h                          |   26 +
 tools/perf/bench/numa.c                             |    4 
 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c |   31 +
 tools/perf/util/string.c                            |    1 
 tools/perf/util/util.h                              |    1 
 241 files changed, 2441 insertions(+), 951 deletions(-)

Aditya Pakki (1):
spi : spi-topcliff-pch: Fix to handle empty DMA buffers

Adrian Hunter (3):
perf intel-pt: Fix instructions sampling rate perf intel-pt: Fix improved sample timestamp perf intel-pt: Fix sample timestamp wrt non-taken branches

Akinobu Mita (1):
media: ov2659: make S_FMT succeed even if requested format doesn't match

Al Viro (1):
ufs: fix braino in ufs_get_inode_gid() for solaris UFS flavour

Alan Stern (4):
USB: core: Don't unbind interfaces following device reset failure
USB: Fix slab-out-of-bounds write in usb_get_bos_descriptor
media: usb: siano: Fix general protection fault in smsusb
media: usb: siano: Fix false-positive "uninitialized variable" warning

Alexander Potapenko (1):

      media: vivid: use vfree() instead of kfree() for dev->bitmap_cap

Alexander Shishkin (1):
intel_th: msu: Fix single mode with IOMMU

Andrea Parri (1):
bio: fix improper use of smp_mb__before_atomic()

Andreas Gruenbacher (1):
gfs2: Fix sign extension bug in gfs2_update_stats

Andrew Jones (1):
KVM: arm/arm64: Ensure vcpu target is unset on reset failure

Andrey Smirnov (2):
power: supply: sysfs: prevent endless uevent loop with CONFIG_POWER_SUPPLY_DEBUG
xhci: Convert xhci_handshake() to use readl_poll_timeout_atomic()

Andy Lutomirski (2):
x86/speculation/mds: Revert CPU buffer clear on double fault exit x86/speculation/mds: Improve CPU buffer clear documentation

Antoine Tenart (1):
net: mvpp2: fix bad MVPP2_TXQ_SCHED_TOKEN_CNTR_REG queue value

Arend Van Spriel (1):
brcmfmac: add length checks in scheduled scan result handler

Arend van Spriel (2):
brcmfmac: revise handling events in receive path
brcmfmac: add subtype check for event handling in data path

Arnaldo Carvalho de Melo (3):
perf bench numa: Add define for RUSAGE_THREAD if not present perf tools: No need to include bitops.h in util.h tools include: Adopt linux/bits.h

Arnd Bergmann (8):
ASoC: imx: fix fiq dependencies
bcache: avoid clang -Wunintialized warning
s390: cio: fix cio_irb declaration
b43: shut up clang -Wuninitialized variable warning
scsi: qla4xxx: avoid freeing unallocated dma memory
media: go7007: avoid clang frame overflow warning with KASAN
media: saa7146: avoid high stack usage with clang
ASoC: davinci-mcasp: Fix clang warning without CONFIG_PM

Ben Hutchings (1):
binder: Replace "%p" with "%pK" for stable

Bjørn Mork (1):
net: cdc_ncm: GetNtbFormat endian fix

Bo YU (1):
powerpc/boot: Fix missing check of lseek() return value

Carsten Schmid (1):
usb: xhci: avoid null pointer deref when bos field is NULL

Charles Keepax (1):
extcon: arizona: Disable mic detect if running when driver is removed

Chengguang Xu (1):
chardev: add additional check for minor range overlap

Chris Lesiak (1):
spi: Fix zero length xfer bug

Chris Packham (1):
tipc: Avoid copying bytes beyond the supplied data

Christoph Probst (1):
cifs: fix strcat buffer overflow and reduce raciness in smb21_set_oplock_level()

Colin Ian King (1):
RDMA/cxgb4: Fix null pointer dereference on alloc_skb failure

Coly Li (3):
bcache: never set KEY_PTRS of journal key to 0 in journal_reclaim()
bcache: return error immediately in bch_journal_replay()
bcache: add failure check to run_cache_set() for journal replay

Curtis Malainey (1):
ASoC: RT5677-SPI: Disable 16Bit SPI Transfers

Dan Carpenter (5):
brcm80211: potential NULL dereference in brcmf_cfg80211_vndr_cmds_dcmd_handler()
mwifiex: prevent an array overflow
media: pvrusb2: Prevent a buffer overflow
media: wl128x: prevent two potential buffer overflows
genwqe: Prevent an integer overflow in the ioctl

Daniel Axtens (5):
crypto: vmx - fix copy-paste error in CTR mode
crypto: vmx - CTR: always increment IV as quadword
crypto: vmx - ghash: do nosimd fallback manually
net: create skb_gso_validate_mac_len()
bnx2x: disable GSO where gso_size is too big for hardware

Daniel Baluta (1):
ASoC: fsl_sai: Update is_slave_mode with correct value

David Ahern (2):
neighbor: Call __ipv4_neigh_lookup_noref in neigh_xmit
ipv4: Define __ipv4_neigh_lookup_noref when CONFIG_INET is disabled

David S. Miller (1):
Revert "tipc: fix modprobe tipc failed after switch order of device registration"

Debabrata Banerjee (1):
ext4: fix ext4_show_options for file systems w/o journal

Dmitry Osipenko (3):
clk: tegra: Fix PLLM programming on Tegra124+ when PMC overrides divider iommu/tegra-smmu: Fix invalid ASID bits on Tegra30/114
memory: tegra: Fix integer overflow on tick value calculation

Elazar Leibovich (1):
tracing: Fix partial reading of trace event's id file

Erez Alfasi (1):
net/mlx4_en: ethtool, Remove unsupported SFP EEPROM high pages query

Eric Biggers (6):
crypto: crct10dif-generic - fix use via crypto_shash_digest()
crypto: x86/crct10dif-pcl - fix use via crypto_shash_digest()
crypto: gcm - fix incompatibility between "gcm" and "gcm_base"
crypto: chacha20poly1305 - set cra_name correctly
crypto: salsa20 - don't access already-freed walk.iv
crypto: arm/aes-neonbs - don't access already-freed walk.iv

Eric Dumazet (3):
net: avoid weird emergency message
llc: fix skb leak in llc_build_and_send_ui_pkt()
net-gro: fix use-after-free read in napi_gro_frags()

Filipe Manana (3):
Btrfs: do not start a transaction at iterate_extent_inodes()
Btrfs: fix race between ranged fsync and writeback of adjacent ranges
Btrfs: fix race updating log root item during fsync

Flavio Suligoi (1):
spi: pxa2xx: fix SCR (divisor) calculation

Franky Lin (1):
brcmfmac: screening firmware event packet

Gavin Li (1):
brcmfmac: fix incorrect event channel deduction

Geert Uytterhoeven (1):
spi: rspi: Fix sequencer reset during initialization

Greg Kroah-Hartman (2):
Revert "x86/build: Move _etext to actual end of .text" Linux 4.4.181

Guenter Roeck (5):
hwmon: (vt1211) Use request_muxed_region for Super-IO accesses
hwmon: (smsc47m1) Use request_muxed_region for Super-IO accesses
hwmon: (smsc47b397) Use request_muxed_region for Super-IO accesses
hwmon: (pc87427) Use request_muxed_region for Super-IO accesses
hwmon: (f71805f) Use request_muxed_region for Super-IO accesses

Gustavo A. R. Silva (1):
cxgb3/l2t: Fix undefined behaviour

Hans Verkuil (1):
media: au0828: stop video streaming only when last user stops

Hans de Goede (1):
HID: logitech-hidpp: use RAP instead of FAP to get the protocol version

Hante Meuleman (1):
brcmfmac: Add length checks on firmware events

Hui Wang (1):
ALSA: hda/hdmi - Consider eld_valid when reporting jack event

James Clarke (1):
sparc64: Fix regression in non-hypervisor TLB flush xcall

James Hutchinson (1):
media: m88ds3103: serialize reset messages in m88ds3103_set_frontend

James Prestwood (1):
PCI: Mark Atheros AR9462 to avoid bus reset

James Smart (1):
scsi: lpfc: Fix SLI3 commands being issued on SLI4 devices

Jan Kara (1):
ext4: do not delete unlinked inode from orphan list on failed truncate

Janusz Krzysztofik (2):
media: ov6650: Fix sensor possibly not detected on probe
media: ov6650: Move v4l2_clk_get() to ov6650_video_probe() helper

Jeff Layton (1):
ceph: flush dirty inodes before proceeding with remount

Jeremy Sowden (1):
vti4: ipip tunnel deregistration fixes.

Jiri Kosina (2):
mm/mincore.c: make mincore() more conservative
x86/mm: Remove in_nmi() warning from 64-bit implementation of vmalloc_fault()

Jiri Slaby (1):
memcg: make it work on sparse non-0-node systems

Jisheng Zhang (1):
net: stmmac: fix reset gpio free missing

Jiufei Xue (2):
fs/writeback.c: use rcu_barrier() to wait for inflight wb switches going into workqueue when umount
fbdev: fix WARNING in __alloc_pages_nodemask bug

Joe Burmeister (1):

      tty: max310x: Fix external crystal register setup

John David Anglin (1):
parisc: Use implicit space register selection for loading the coherence index of I/O pdirs

John Garry (1):
scsi: libsas: Do discovery on empty PHY to update PHY info

Jon Hunter (1):
ASoC: max98090: Fix restore of DAPM Muxes

Jorge Ramirez-Ortiz (1):
tty: serial: msm_serial: Fix XON/XOFF

Junwei Hu (3):
tipc: switch order of device registration to fix a crash
tipc: fix modprobe tipc failed after switch order of device registration
tipc: fix modprobe tipc failed after switch order of device registration -v2

Kailang Yang (2):
ALSA: hda/realtek - EAPD turn on later
ALSA: hda/realtek - Set default power save node to 0

Kamlakant Patel (1):
ipmi:ssif: compare block number correctly for multi-part return messages

Kangjie Lu (6):
net: cw1200: fix a NULL pointer dereference
mmc_spi: add a status check for spi_sync_locked
iio: hmc5843: fix potential NULL pointer dereferences
rtlwifi: fix a potential NULL pointer dereference
brcmfmac: fix missing checks for kmemdup
tty: ipwireless: fix missing checks for ioremap

Kees Cook (2):
x86/build: Move _etext to actual end of .text x86/build: Keep local relocations with ld.lld

Kirill Smelkov (2):
fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock
fuse: Add FOPEN_STREAM to use stream_open()

Kirill Tkhai (1):
ext4: actually request zeroing of inode table after grow

Kloetzke Jan (1):
usbnet: fix kernel crash after disconnect

Konrad Rzeszutek Wilk (1):
xen/pciback: Don't disable PCI_COMMAND on PCI device reset.

Konstantin Khlebnikov (2):
sched/core: Check quota and period overflow at usec to nsec conversion sched/core: Handle overflow in cpu_shares_write_u64

Lars-Peter Clausen (1):
iio: ad_sigma_delta: Properly handle SPI bus locking vs CS assertion

Liang Chen (1):
bcache: fix a race between cache register and cacheset unregister

Linus Torvalds (1):
rcu: locking and unlocking need to always be at least barriers

Liu Bo (1):
fuse: honor RLIMIT_FSIZE in fuse_file_fallocate

Lyude Paul (1):

      drm/nouveau/i2c: Disable i2c bus access after ->fini()

Mariusz Bialonczyk (1):
w1: fix the resume command API

Martin K. Petersen (1):
Revert "scsi: sd: Keep disk read-only when re-reading partition"

Mauro Carvalho Chehab (1):
media: smsusb: better handle optional alignment

Maximilian Luz (1):
USB: Add LPM quirk for Surface Dock GigE adapter

Michael Chan (1):
bnxt_en: Fix aggregation buffer leak under OOM condition.

Michał Wadowski (1):
ALSA: hda/realtek - Fix for Lenovo B50-70 inverted internal microphone bug

Mike Kravetz (1):
hugetlb: use same fault hash key for shared and private mappings

Mike Manning (1):
ipv6: Consider sk_bound_dev_if when binding a raw socket to an address

Miklos Szeredi (2):
fuse: fix writepages on 32bit
fuse: fallocate: fix return with locked inode

Mikulas Patocka (1):
dm delay: fix a crash when invalid device is specified

Nadav Amit (1):
media: uvcvideo: Fix uvc_alloc_entity() allocation alignment

Nathan Chancellor (1):
iio: common: ssp_sensors: Initialize calculated_time in ssp_common_process_data

Nathan Lynch (1):
powerpc/numa: improve control of topology updates

Nicholas Nunley (1):
i40e: don't allow changes to HW VLAN stripping on active port VLANs

Nicolas Ferre (1):
dmaengine: at_xdmac: remove BUG_ON macro in tasklet

Nicolas Saenz Julienne (1):
HID: core: move Usage Page concatenation to Main item

Nigel Croxon (1):
md/raid: raid5 preserve the writeback action after the parity check

Nikolay Borisov (1):
btrfs: Honour FITRIM range constraints during free space trim

Oleg Nesterov (1):
userfaultfd: don't pin the user memory in userfaultfd_file_create()

Oliver Neukum (3):
USB: sisusbvga: fix oops in error path of sisusb_probe
USB: rio500: refuse more than one device at a time
USB: rio500: fix memory leak in close after disconnect

Pankaj Gupta (1):
virtio_console: initialize vtermno value for ports

Paolo Abeni (1):
pktgen: do not sleep with the thread lock held.

Paolo Bonzini (1):
KVM: x86: fix return value for reserved EFER

Patrik Jakobsson (1):
drm/gma500/cdv: Check vbt config bits when detecting lvds panels

Paul Burton (1):
MIPS: pistachio: Build uImage.gz by default

Paul E. McKenney (1):
rcutorture: Fix cleanup path for invalid torture_type strings

Peter Chen (1):
usb: gadget: fix request length error for isoc transfer

Peter Zijlstra (2):
mm/uaccess: Use 'unsigned long' to placate UBSAN warnings on older GCC versions x86/ia32: Fix ia32_restore_sigcontext() AC leak

Philipp Zabel (1):
media: coda: clear error return value before picture run

Phong Tran (1):
of: fix clang -Wunsequenced for be32_to_cpu()

Piotr Figiel (2):
brcmfmac: convert dev_init_lock mutex to completion
brcmfmac: fix race during disconnect when USB completion is in progress

Rasmus Villemoes (1):
include/linux/bitops.h: sanitize rotate primitives

Raul E Rangel (1):
mmc: core: Verify SD bus width

Roberto Bergantinos Corpas (1):
CIFS: cifs_read_allocate_pages: don't iterate through whole page array on ENOMEM

Ross Lagerwall (1):
gfs2: Fix lru_count going negative

Sean Christopherson (1):
KVM: x86: Skip EFER vs. guest CPUID checks for host-initiated writes

Sebastian Andrzej Siewior (1):
smpboot: Place the __percpu annotation correctly

Sergei Trofimovich (1):
tty/vt: fix write/write race in ioctl(KDSKBSENT) handler

Sergey Matyukevich (1):
mac80211/cfg80211: update bss channel on channel switch

Shile Zhang (1):
fbdev: fix divide error in fb_var_to_videomode

Shuah Khan (1):
media: au0828: Fix NULL pointer dereference in au0828_analog_stream_enable()

Shuning Zhang (1):
ocfs2: fix ocfs2 read inode data panic in ocfs2_iget

Song Liu (1):
Revert "Don't jump to compute_result state from check_result state"

Sowjanya Komatineni (1):
spi: tegra114: reset controller on probe

Sriram Rajagopalan (1):
ext4: zero out the unused memory region in the extent tree block

Stanley Chu (2):
scsi: ufs: Fix regulator load and icc-level configuration
scsi: ufs: Avoid configuring regulator with undefined voltage range

Steffen Klassert (1):
xfrm4: Fix uninitialized memory read in _decode_session4

Steffen Maier (2):
scsi: zfcp: fix missing zfcp_port reference put on -EBUSY from port_remove
scsi: zfcp: fix to prevent port_remove with pure auto scan LUNs (only sdevs)

Steve Twiss (1):
mfd: da9063: Fix OTP control register names to match datasheets for DA9063/63L

Su Yanjun (1):
xfrm6_tunnel: Fix potential panic when unloading xfrm6_tunnel module

Sugar Zhang (1):
dmaengine: pl330: _stop: clear interrupt status

Sven Van Asbroeck (1):

      rtc: 88pm860x: prevent use-after-free on device remove

Tang Junhui (1):
bcache: fix failure in journal relplay

Tejun Heo (1):
writeback: synchronize sync(2) against cgroup writeback membership switches

Thomas Gleixner (1):
x86/irq/64: Limit IST stack overflow check to #DB stack

Tingwei Zhang (1):
stm class: Fix channel free in stm output free path

Tobin C. Harding (1):
btrfs: sysfs: don't leak memory when failing add fsid

Todd Kjos (1):
binder: replace "%p" with "%pK"

Tony Lindgren (1):
usb: core: Add PM runtime calls to usb_hcd_platform_shutdown

Ulf Hansson (1):

      PM / core: Propagate dev->power.wakeup_path when no callbacks

Vivien Didelot (1):
ethtool: fix potential userspace buffer overflow

Wei Yongjun (1):
crypto: gcm - Fix error return code in crypto_gcm_create_common()

Wen Yang (8):
ARM: exynos: Fix a leaked reference by adding missing of_node_put
pinctrl: pistachio: fix leaked of_node references
cpufreq: ppc_cbe: fix possible object reference leak cpufreq/pasemi: fix possible object reference leak
cpufreq: pmac32: fix possible object reference leak
arm64: cpu_ops: fix a leaked reference by adding missing of_node_put
ASoC: eukrea-tlv320: fix a leaked reference by adding missing of_node_put
ASoC: fsl_utils: fix a leaked reference by adding missing of_node_put

Wenwen Wang (2):
ALSA: usb-audio: Fix a memory leak bug
audit: fix a memory leak bug

Yifeng Li (9):
fbdev: sm712fb: fix brightness control on reboot, don't set SR30
fbdev: sm712fb: fix VRAM detection, don't set SR70/71/74/75
fbdev: sm712fb: fix white screen of death on reboot, don't set CR3B-CR3F
fbdev: sm712fb: fix boot screen glitch when sm712fb replaces VGA
fbdev: sm712fb: fix crashes during framebuffer writes by correctly mapping VRAM
fbdev: sm712fb: fix support for 1024x768-16 mode
fbdev: sm712fb: use 1024x768 by default on non-MIPS, fix garbled display
fbdev: sm712fb: fix crashes and garbled display during DPMS modesetting
fbdev: sm712fb: fix memory frequency by avoiding a switch/case fallthrough

Yinbo Zhu (2):
mmc: sdhci-of-esdhc: add erratum eSDHC5 support
mmc: sdhci-of-esdhc: add erratum eSDHC-A001 and A-008358 support

YueHaibing (6):
ppp: deflate: Fix possible crash in deflate_init
xfrm: policy: Fix out-of-bound array accesses in __xfrm_policy_unlink
media: cpia2: Fix use-after-free in cpia2_exit
ssb: Fix possible NULL pointer dereference in ssb_host_pcmcia_exit
at76c50x-usb: Don't register led_trigger if usb_register_driver failed
cxgb4: Fix error path in cxgb4_init_module

Yufen Yu (1):

      md: add mddev->pers to avoid potential NULL pointer dereference

Yunjian Wang (1):
net/mlx4_core: Change the error print to info print

Yunsheng Lin (1):
ethtool: check the return value of get_regs_len

ZhangXiaoxu (1):
NFS4: Fix v4.0 client state corruption when mount

Zhenliang Wei (1):
kernel/signal.c: trace_signal_deliver when signal_group_exit

Zhu Yanjun (1):
net: rds: fix memory leak in rds_ib_flush_mr_pool

author maintainer
#1 lore raw
Documentation/x86/mds.rst +6 -38
index 534e9baa4e1d..5d4330be200f 100644
@@ -142,45 +142,13 @@ Mitigation points
    mds_user_clear.
 
    The mitigation is invoked in prepare_exit_to_usermode() which covers
-   most of the kernel to user space transitions. There are a few exceptions
-   which are not invoking prepare_exit_to_usermode() on return to user
-   space. These exceptions use the paranoid exit code.
+   all but one of the kernel to user space transitions.  The exception
+   is when we return from a Non Maskable Interrupt (NMI), which is
+   handled directly in do_nmi().
 
-   - Non Maskable Interrupt (NMI):
-
-     Access to sensible data like keys, credentials in the NMI context is
-     mostly theoretical: The CPU can do prefetching or execute a
-     misspeculated code path and thereby fetching data which might end up
-     leaking through a buffer.
-
-     But for mounting other attacks the kernel stack address of the task is
-     already valuable information. So in full mitigation mode, the NMI is
-     mitigated on the return from do_nmi() to provide almost complete
-     coverage.
-
-   - Double fault (#DF):
-
-     A double fault is usually fatal, but the ESPFIX workaround, which can
-     be triggered from user space through modify_ldt(2) is a recoverable
-     double fault. #DF uses the paranoid exit path, so explicit mitigation
-     in the double fault handler is required.
-
-   - Machine Check Exception (#MC):
-
-     Another corner case is a #MC which hits between the CPU buffer clear
-     invocation and the actual return to user. As this still is in kernel
-     space it takes the paranoid exit path which does not clear the CPU
-     buffers. So the #MC handler repopulates the buffers to some
-     extent. Machine checks are not reliably controllable and the window is
-     extremly small so mitigation would just tick a checkbox that this
-     theoretical corner case is covered. To keep the amount of special
-     cases small, ignore #MC.
-
-   - Debug Exception (#DB):
-
-     This takes the paranoid exit path only when the INT1 breakpoint is in
-     kernel space. #DB on a user space address takes the regular exit path,
-     so no extra mitigation required.
+   (The reason that NMI is special is that prepare_exit_to_usermode() can
+    enable IRQs.  In NMI context, NMIs are blocked, and we don't want to
+    enable IRQs with NMIs blocked.)
 
 
 2. C-State transition
Makefile +1 -1
index 6023a9dbad59..b33f3ecf84fc 100644
@@ -1,6 +1,6 @@
 VERSION = 4
 PATCHLEVEL = 4
-SUBLEVEL = 180
+SUBLEVEL = 181
 EXTRAVERSION =
 NAME = Blurry Fish Butt
 
arch/arm/crypto/aesbs-glue.c +4 -0
index 648d5fac9cbf..3271c836e1a1 100644
@@ -259,6 +259,8 @@ static int aesbs_xts_encrypt(struct blkcipher_desc *desc,
 
 	blkcipher_walk_init(&walk, dst, src, nbytes);
 	err = blkcipher_walk_virt_block(desc, &walk, 8 * AES_BLOCK_SIZE);
+	if (err)
+		return err;
 
 	/* generate the initial tweak */
 	AES_encrypt(walk.iv, walk.iv, &ctx->twkey);
@@ -283,6 +285,8 @@ static int aesbs_xts_decrypt(struct blkcipher_desc *desc,
 
 	blkcipher_walk_init(&walk, dst, src, nbytes);
 	err = blkcipher_walk_virt_block(desc, &walk, 8 * AES_BLOCK_SIZE);
+	if (err)
+		return err;
 
 	/* generate the initial tweak */
 	AES_encrypt(walk.iv, walk.iv, &ctx->twkey);
arch/arm/kvm/arm.c +8 -3
index d7bef2144760..e96ddc599c30 100644
@@ -744,7 +744,7 @@ int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_level,
 static int kvm_vcpu_set_target(struct kvm_vcpu *vcpu,
 			       const struct kvm_vcpu_init *init)
 {
-	unsigned int i;
+	unsigned int i, ret;
 	int phys_target = kvm_target_cpu();
 
 	if (init->target != phys_target)
@@ -779,9 +779,14 @@ static int kvm_vcpu_set_target(struct kvm_vcpu *vcpu,
 	vcpu->arch.target = phys_target;
 
 	/* Now we know what it is, we can reset it. */
-	return kvm_reset_vcpu(vcpu);
-}
+	ret = kvm_reset_vcpu(vcpu);
+	if (ret) {
+		vcpu->arch.target = -1;
+		bitmap_zero(vcpu->arch.features, KVM_VCPU_MAX_FEATURES);
+	}
 
+	return ret;
+}
 
 static int kvm_arch_vcpu_ioctl_vcpu_init(struct kvm_vcpu *vcpu,
 					 struct kvm_vcpu_init *init)
arch/arm/mach-exynos/firmware.c +1 -0
index 111cfbf66fdb..7bfe2bd17400 100644
@@ -207,6 +207,7 @@ void __init exynos_firmware_init(void)
 		return;
 
 	addr = of_get_address(nd, 0, NULL, NULL);
+	of_node_put(nd);
 	if (!addr) {
 		pr_err("%s: No address specified.\n", __func__);
 		return;
arch/arm/mach-exynos/suspend.c +2 -0
index e8adb428dddb..a003833ac112 100644
@@ -725,8 +725,10 @@ void __init exynos_pm_init(void)
 
 	if (WARN_ON(!of_find_property(np, "interrupt-controller", NULL))) {
 		pr_warn("Outdated DT detected, suspend/resume will NOT work\n");
+		of_node_put(np);
 		return;
 	}
+	of_node_put(np);
 
 	pm_data = (const struct exynos_pm_data *) match->data;
 
arch/arm64/kernel/cpu_ops.c +1 -0
index b6bd7d447768..fbd6aead48e1 100644
@@ -73,6 +73,7 @@ static const char *__init cpu_read_enable_method(int cpu)
 				pr_err("%s: missing enable-method property\n",
 					dn->full_name);
 		}
+		of_node_put(dn);
 	} else {
 		enable_method = acpi_get_enable_method(cpu);
 		if (!enable_method)
arch/mips/pistachio/Platform +1 -0
index d80cd612df1f..c3592b374ad2 100644
@@ -6,3 +6,4 @@ cflags-$(CONFIG_MACH_PISTACHIO)		+=				\
 		-I$(srctree)/arch/mips/include/asm/mach-pistachio
 load-$(CONFIG_MACH_PISTACHIO)		+= 0xffffffff80400000
 zload-$(CONFIG_MACH_PISTACHIO)		+= 0xffffffff81000000
+all-$(CONFIG_MACH_PISTACHIO)		:= uImage.gz
arch/powerpc/boot/addnote.c +5 -1
index 9d9f6f334d3c..3da3e2b1b51b 100644
@@ -223,7 +223,11 @@ main(int ac, char **av)
 	PUT_16(E_PHNUM, np + 2);
 
 	/* write back */
-	lseek(fd, (long) 0, SEEK_SET);
+	i = lseek(fd, (long) 0, SEEK_SET);
+	if (i < 0) {
+		perror("lseek");
+		exit(1);
+	}
 	i = write(fd, buf, n);
 	if (i < 0) {
 		perror("write");
arch/powerpc/mm/numa.c +12 -6
index bb3df222ae71..215bff2b8470 100644
@@ -1611,6 +1611,9 @@ int start_topology_update(void)
 {
 	int rc = 0;
 
+	if (!topology_updates_enabled)
+		return 0;
+
 	if (firmware_has_feature(FW_FEATURE_PRRN)) {
 		if (!prrn_enabled) {
 			prrn_enabled = 1;
@@ -1640,6 +1643,9 @@ int stop_topology_update(void)
 {
 	int rc = 0;
 
+	if (!topology_updates_enabled)
+		return 0;
+
 	if (prrn_enabled) {
 		prrn_enabled = 0;
 #ifdef CONFIG_SMP
@@ -1685,11 +1691,13 @@ static ssize_t topology_write(struct file *file, const char __user *buf,
 
 	kbuf[read_len] = '\0';
 
-	if (!strncmp(kbuf, "on", 2))
+	if (!strncmp(kbuf, "on", 2)) {
+		topology_updates_enabled = true;
 		start_topology_update();
-	else if (!strncmp(kbuf, "off", 3))
+	} else if (!strncmp(kbuf, "off", 3)) {
 		stop_topology_update();
-	else
+		topology_updates_enabled = false;
+	} else
 		return -EINVAL;
 
 	return count;
@@ -1704,9 +1712,7 @@ static const struct file_operations topology_ops = {
 
 static int topology_update_init(void)
 {
-	/* Do not poll for changes if disabled at boot */
-	if (topology_updates_enabled)
-		start_topology_update();
+	start_topology_update();
 
 	if (!proc_create("powerpc/topology_updates", 0644, NULL, &topology_ops))
 		return -ENOMEM;
arch/sparc/mm/ultra.S +2 -2
index fcf4d27a38fb..e09f7b440b8c 100644
@@ -586,7 +586,7 @@ xcall_flush_tlb_kernel_range:	/* 44 insns */
 	sub		%g7, %g1, %g3
 	srlx		%g3, 18, %g2
 	brnz,pn		%g2, 2f
-	 add		%g2, 1, %g2
+	 sethi		%hi(PAGE_SIZE), %g2
 	sub		%g3, %g2, %g3
 	or		%g1, 0x20, %g1		! Nucleus
 1:	stxa		%g0, [%g1 + %g3] ASI_DMMU_DEMAP
@@ -750,7 +750,7 @@ __cheetah_xcall_flush_tlb_kernel_range:	/* 44 insns */
 	sub		%g7, %g1, %g3
 	srlx		%g3, 18, %g2
 	brnz,pn		%g2, 2f
-	 add		%g2, 1, %g2
+	 sethi		%hi(PAGE_SIZE), %g2
 	sub		%g3, %g2, %g3
 	or		%g1, 0x20, %g1		! Nucleus
 1:	stxa		%g0, [%g1 + %g3] ASI_DMMU_DEMAP
arch/x86/Makefile +1 -1
index e26560cd1844..00e0226634fa 100644
@@ -47,7 +47,7 @@ export REALMODE_CFLAGS
 export BITS
 
 ifdef CONFIG_X86_NEED_RELOCS
-        LDFLAGS_vmlinux := --emit-relocs
+        LDFLAGS_vmlinux := --emit-relocs --discard-none
 endif
 
 #
arch/x86/crypto/crct10dif-pclmul_glue.c +5 -8
index cd4df9322501..7bbfe7d35da7 100644
@@ -76,15 +76,14 @@ static int chksum_final(struct shash_desc *desc, u8 *out)
 	return 0;
 }
 
-static int __chksum_finup(__u16 *crcp, const u8 *data, unsigned int len,
-			u8 *out)
+static int __chksum_finup(__u16 crc, const u8 *data, unsigned int len, u8 *out)
 {
 	if (irq_fpu_usable()) {
 		kernel_fpu_begin();
-		*(__u16 *)out = crc_t10dif_pcl(*crcp, data, len);
+		*(__u16 *)out = crc_t10dif_pcl(crc, data, len);
 		kernel_fpu_end();
 	} else
-		*(__u16 *)out = crc_t10dif_generic(*crcp, data, len);
+		*(__u16 *)out = crc_t10dif_generic(crc, data, len);
 	return 0;
 }
 
@@ -93,15 +92,13 @@ static int chksum_finup(struct shash_desc *desc, const u8 *data,
 {
 	struct chksum_desc_ctx *ctx = shash_desc_ctx(desc);
 
-	return __chksum_finup(&ctx->crc, data, len, out);
+	return __chksum_finup(ctx->crc, data, len, out);
 }
 
 static int chksum_digest(struct shash_desc *desc, const u8 *data,
 			 unsigned int length, u8 *out)
 {
-	struct chksum_desc_ctx *ctx = shash_desc_ctx(desc);
-
-	return __chksum_finup(&ctx->crc, data, length, out);
+	return __chksum_finup(0, data, length, out);
 }
 
 static struct shash_alg alg = {
arch/x86/ia32/ia32_signal.c +17 -12
index 0552884da18d..a7b9acd709db 100644
@@ -60,9 +60,8 @@
 } while (0)
 
 #define RELOAD_SEG(seg)		{		\
-	unsigned int pre = GET_SEG(seg);	\
+	unsigned int pre = (seg) | 3;		\
 	unsigned int cur = get_user_seg(seg);	\
-	pre |= 3;				\
 	if (pre != cur)				\
 		set_user_seg(seg, pre);		\
 }
@@ -71,6 +70,7 @@ static int ia32_restore_sigcontext(struct pt_regs *regs,
 				   struct sigcontext_32 __user *sc)
 {
 	unsigned int tmpflags, err = 0;
+	u16 gs, fs, es, ds;
 	void __user *buf;
 	u32 tmp;
 
@@ -78,16 +78,10 @@ static int ia32_restore_sigcontext(struct pt_regs *regs,
 	current->restart_block.fn = do_no_restart_syscall;
 
 	get_user_try {
-		/*
-		 * Reload fs and gs if they have changed in the signal
-		 * handler.  This does not handle long fs/gs base changes in
-		 * the handler, but does not clobber them at least in the
-		 * normal case.
-		 */
-		RELOAD_SEG(gs);
-		RELOAD_SEG(fs);
-		RELOAD_SEG(ds);
-		RELOAD_SEG(es);
+		gs = GET_SEG(gs);
+		fs = GET_SEG(fs);
+		ds = GET_SEG(ds);
+		es = GET_SEG(es);
 
 		COPY(di); COPY(si); COPY(bp); COPY(sp); COPY(bx);
 		COPY(dx); COPY(cx); COPY(ip); COPY(ax);
@@ -105,6 +99,17 @@ static int ia32_restore_sigcontext(struct pt_regs *regs,
 		buf = compat_ptr(tmp);
 	} get_user_catch(err);
 
+	/*
+	 * Reload fs and gs if they have changed in the signal
+	 * handler.  This does not handle long fs/gs base changes in
+	 * the handler, but does not clobber them at least in the
+	 * normal case.
+	 */
+	RELOAD_SEG(gs);
+	RELOAD_SEG(fs);
+	RELOAD_SEG(ds);
+	RELOAD_SEG(es);
+
 	err |= fpu__restore_sig(buf, 1);
 
 	force_iret();
arch/x86/kernel/irq_64.c +14 -5
index 206d0b90a3ab..e39d7197f9fb 100644
@@ -25,9 +25,18 @@ int sysctl_panic_on_stackoverflow;
 /*
  * Probabilistic stack overflow check:
  *
- * Only check the stack in process context, because everything else
- * runs on the big interrupt stacks. Checking reliably is too expensive,
- * so we just check from interrupts.
+ * Regular device interrupts can enter on the following stacks:
+ *
+ * - User stack
+ *
+ * - Kernel task stack
+ *
+ * - Interrupt stack if a device driver reenables interrupts
+ *   which should only happen in really old drivers.
+ *
+ * - Debug IST stack
+ *
+ * All other contexts are invalid.
  */
 static inline void stack_overflow_check(struct pt_regs *regs)
 {
@@ -53,8 +62,8 @@ static inline void stack_overflow_check(struct pt_regs *regs)
 		return;
 
 	oist = this_cpu_ptr(&orig_ist);
-	estack_top = (u64)oist->ist[0] - EXCEPTION_STKSZ + STACK_TOP_MARGIN;
-	estack_bottom = (u64)oist->ist[N_EXCEPTION_STACKS - 1];
+	estack_bottom = (u64)oist->ist[DEBUG_STACK];
+	estack_top = estack_bottom - DEBUG_STKSZ + STACK_TOP_MARGIN;
 	if (regs->sp >= estack_top && regs->sp <= estack_bottom)
 		return;
 
arch/x86/kernel/traps.c +0 -8
index 6223929fc621..8c73bf1492b8 100644
@@ -61,7 +61,6 @@
 #include <asm/alternative.h>
 #include <asm/fpu/xstate.h>
 #include <asm/trace/mpx.h>
-#include <asm/nospec-branch.h>
 #include <asm/mpx.h>
 #include <asm/vm86.h>
 
@@ -338,13 +337,6 @@ dotraplinkage void do_double_fault(struct pt_regs *regs, long error_code)
 		regs->ip = (unsigned long)general_protection;
 		regs->sp = (unsigned long)&normal_regs->orig_ax;
 
-		/*
-		 * This situation can be triggered by userspace via
-		 * modify_ldt(2) and the return does not take the regular
-		 * user space exit, so a CPU buffer clear is required when
-		 * MDS mitigation is enabled.
-		 */
-		mds_user_clear_cpu_buffers();
 		return;
 	}
 #endif
arch/x86/kvm/x86.c +21 -10
index d830a0d60ba4..516d8b1562c8 100644
@@ -990,11 +990,8 @@ static u32 emulated_msrs[] = {
 
 static unsigned num_emulated_msrs;
 
-bool kvm_valid_efer(struct kvm_vcpu *vcpu, u64 efer)
+static bool __kvm_valid_efer(struct kvm_vcpu *vcpu, u64 efer)
 {
-	if (efer & efer_reserved_bits)
-		return false;
-
 	if (efer & EFER_FFXSR) {
 		struct kvm_cpuid_entry2 *feat;
 
@@ -1012,19 +1009,33 @@ bool kvm_valid_efer(struct kvm_vcpu *vcpu, u64 efer)
 	}
 
 	return true;
+
+}
+bool kvm_valid_efer(struct kvm_vcpu *vcpu, u64 efer)
+{
+	if (efer & efer_reserved_bits)
+		return false;
+
+	return __kvm_valid_efer(vcpu, efer);
 }
 EXPORT_SYMBOL_GPL(kvm_valid_efer);
 
-static int set_efer(struct kvm_vcpu *vcpu, u64 efer)
+static int set_efer(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
 {
 	u64 old_efer = vcpu->arch.efer;
+	u64 efer = msr_info->data;
 
-	if (!kvm_valid_efer(vcpu, efer))
+	if (efer & efer_reserved_bits)
 		return 1;
 
-	if (is_paging(vcpu)
-	    && (vcpu->arch.efer & EFER_LME) != (efer & EFER_LME))
-		return 1;
+	if (!msr_info->host_initiated) {
+		if (!__kvm_valid_efer(vcpu, efer))
+			return 1;
+
+		if (is_paging(vcpu) &&
+		    (vcpu->arch.efer & EFER_LME) != (efer & EFER_LME))
+			return 1;
+	}
 
 	efer &= ~EFER_LMA;
 	efer |= vcpu->arch.efer & EFER_LMA;
@@ -2055,7 +2066,7 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
 		break;
 
 	case MSR_EFER:
-		return set_efer(vcpu, data);
+		return set_efer(vcpu, msr_info);
 	case MSR_K7_HWCR:
 		data &= ~(u64)0x40;	/* ignore flush filter disable */
 		data &= ~(u64)0x100;	/* ignore ignne emulation enable */
arch/x86/mm/fault.c +0 -2
index c4dffae5d939..462c5c30b9a2 100644
@@ -373,8 +373,6 @@ static noinline int vmalloc_fault(unsigned long address)
 	if (!(address >= VMALLOC_START && address < VMALLOC_END))
 		return -1;
 
-	WARN_ON_ONCE(in_nmi());
-
 	/*
 	 * Copy kernel mappings over when needed. This can also
 	 * happen within a race in page table update. In the later
crypto/chacha20poly1305.c +2 -2
index 0214600ba071..6c4724222e3a 100644
@@ -637,8 +637,8 @@ static int chachapoly_create(struct crypto_template *tmpl, struct rtattr **tb,
 
 	err = -ENAMETOOLONG;
 	if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME,
-		     "%s(%s,%s)", name, chacha_name,
-		     poly_name) >= CRYPTO_MAX_ALG_NAME)
+		     "%s(%s,%s)", name, chacha->cra_name,
+		     poly->cra_name) >= CRYPTO_MAX_ALG_NAME)
 		goto out_drop_chacha;
 	if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME,
 		     "%s(%s,%s)", name, chacha->cra_driver_name,
crypto/crct10dif_generic.c +4 -7
index c1229614c7e3..eed577714975 100644
@@ -65,10 +65,9 @@ static int chksum_final(struct shash_desc *desc, u8 *out)
 	return 0;
 }
 
-static int __chksum_finup(__u16 *crcp, const u8 *data, unsigned int len,
-			u8 *out)
+static int __chksum_finup(__u16 crc, const u8 *data, unsigned int len, u8 *out)
 {
-	*(__u16 *)out = crc_t10dif_generic(*crcp, data, len);
+	*(__u16 *)out = crc_t10dif_generic(crc, data, len);
 	return 0;
 }
 
@@ -77,15 +76,13 @@ static int chksum_finup(struct shash_desc *desc, const u8 *data,
 {
 	struct chksum_desc_ctx *ctx = shash_desc_ctx(desc);
 
-	return __chksum_finup(&ctx->crc, data, len, out);
+	return __chksum_finup(ctx->crc, data, len, out);
 }
 
 static int chksum_digest(struct shash_desc *desc, const u8 *data,
 			 unsigned int length, u8 *out)
 {
-	struct chksum_desc_ctx *ctx = shash_desc_ctx(desc);
-
-	return __chksum_finup(&ctx->crc, data, length, out);
+	return __chksum_finup(0, data, length, out);
 }
 
 static struct shash_alg alg = {
crypto/gcm.c +12 -24
index 0a12c09d7cb2..9d3bffc0238f 100644
@@ -616,7 +616,6 @@ static void crypto_gcm_free(struct aead_instance *inst)
 
 static int crypto_gcm_create_common(struct crypto_template *tmpl,
 				    struct rtattr **tb,
-				    const char *full_name,
 				    const char *ctr_name,
 				    const char *ghash_name)
 {
@@ -657,7 +656,8 @@ static int crypto_gcm_create_common(struct crypto_template *tmpl,
 		goto err_free_inst;
 
 	err = -EINVAL;
-	if (ghash->digestsize != 16)
+	if (strcmp(ghash->base.cra_name, "ghash") != 0 ||
+	    ghash->digestsize != 16)
 		goto err_drop_ghash;
 
 	crypto_set_skcipher_spawn(&ctx->ctr, aead_crypto_instance(inst));
@@ -669,24 +669,24 @@ static int crypto_gcm_create_common(struct crypto_template *tmpl,
 
 	ctr = crypto_skcipher_spawn_alg(&ctx->ctr);
 
-	/* We only support 16-byte blocks. */
-	if (ctr->cra_ablkcipher.ivsize != 16)
-		goto out_put_ctr;
-
-	/* Not a stream cipher? */
+	/* The skcipher algorithm must be CTR mode, using 16-byte blocks. */
 	err = -EINVAL;
-	if (ctr->cra_blocksize != 1)
+	if (strncmp(ctr->cra_name, "ctr(", 4) != 0 ||
+	    ctr->cra_ablkcipher.ivsize != 16 ||
+	    ctr->cra_blocksize != 1)
 		goto out_put_ctr;
 
 	err = -ENAMETOOLONG;
+	if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME,
+		     "gcm(%s", ctr->cra_name + 4) >= CRYPTO_MAX_ALG_NAME)
+		goto out_put_ctr;
+
 	if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME,
 		     "gcm_base(%s,%s)", ctr->cra_driver_name,
 		     ghash_alg->cra_driver_name) >=
 	    CRYPTO_MAX_ALG_NAME)
 		goto out_put_ctr;
 
-	memcpy(inst->alg.base.cra_name, full_name, CRYPTO_MAX_ALG_NAME);
-
 	inst->alg.base.cra_flags = (ghash->base.cra_flags | ctr->cra_flags) &
 				   CRYPTO_ALG_ASYNC;
 	inst->alg.base.cra_priority = (ghash->base.cra_priority +
@@ -727,7 +727,6 @@ static int crypto_gcm_create(struct crypto_template *tmpl, struct rtattr **tb)
 {
 	const char *cipher_name;
 	char ctr_name[CRYPTO_MAX_ALG_NAME];
-	char full_name[CRYPTO_MAX_ALG_NAME];
 
 	cipher_name = crypto_attr_alg_name(tb[1]);
 	if (IS_ERR(cipher_name))
@@ -737,12 +736,7 @@ static int crypto_gcm_create(struct crypto_template *tmpl, struct rtattr **tb)
 	    CRYPTO_MAX_ALG_NAME)
 		return -ENAMETOOLONG;
 
-	if (snprintf(full_name, CRYPTO_MAX_ALG_NAME, "gcm(%s)", cipher_name) >=
-	    CRYPTO_MAX_ALG_NAME)
-		return -ENAMETOOLONG;
-
-	return crypto_gcm_create_common(tmpl, tb, full_name,
-					ctr_name, "ghash");
+	return crypto_gcm_create_common(tmpl, tb, ctr_name, "ghash");
 }
 
 static struct crypto_template crypto_gcm_tmpl = {
@@ -756,7 +750,6 @@ static int crypto_gcm_base_create(struct crypto_template *tmpl,
 {
 	const char *ctr_name;
 	const char *ghash_name;
-	char full_name[CRYPTO_MAX_ALG_NAME];
 
 	ctr_name = crypto_attr_alg_name(tb[1]);
 	if (IS_ERR(ctr_name))
@@ -766,12 +759,7 @@ static int crypto_gcm_base_create(struct crypto_template *tmpl,
 	if (IS_ERR(ghash_name))
 		return PTR_ERR(ghash_name);
 
-	if (snprintf(full_name, CRYPTO_MAX_ALG_NAME, "gcm_base(%s,%s)",
-		     ctr_name, ghash_name) >= CRYPTO_MAX_ALG_NAME)
-		return -ENAMETOOLONG;
-
-	return crypto_gcm_create_common(tmpl, tb, full_name,
-					ctr_name, ghash_name);
+	return crypto_gcm_create_common(tmpl, tb, ctr_name, ghash_name);
 }
 
 static struct crypto_template crypto_gcm_base_tmpl = {
crypto/salsa20_generic.c +1 -1
index d7da0eea5622..319d9962552e 100644
@@ -186,7 +186,7 @@ static int encrypt(struct blkcipher_desc *desc,
 	blkcipher_walk_init(&walk, dst, src, nbytes);
 	err = blkcipher_walk_virt_block(desc, &walk, 64);
 
-	salsa20_ivsetup(ctx, walk.iv);
+	salsa20_ivsetup(ctx, desc->info);
 
 	while (walk.nbytes >= 64) {
 		salsa20_encrypt_bytes(ctx, walk.dst.virt.addr,
drivers/android/binder.c +18 -18
index 260ce0e60187..7dc52ba27eac 100644
@@ -477,7 +477,7 @@ static void binder_insert_free_buffer(struct binder_proc *proc,
 	new_buffer_size = binder_buffer_size(proc, new_buffer);
 
 	binder_debug(BINDER_DEBUG_BUFFER_ALLOC,
-		     "%d: add free buffer, size %zd, at %p\n",
+		     "%d: add free buffer, size %zd, at %pK\n",
 		      proc->pid, new_buffer_size, new_buffer);
 
 	while (*p) {
@@ -555,7 +555,7 @@ static int binder_update_page_range(struct binder_proc *proc, int allocate,
 	struct mm_struct *mm;
 
 	binder_debug(BINDER_DEBUG_BUFFER_ALLOC,
-		     "%d: %s pages %p-%p\n", proc->pid,
+		     "%d: %s pages %pK-%pK\n", proc->pid,
 		     allocate ? "allocate" : "free", start, end);
 
 	if (end <= start)
@@ -595,7 +595,7 @@ static int binder_update_page_range(struct binder_proc *proc, int allocate,
 		BUG_ON(*page);
 		*page = alloc_page(GFP_KERNEL | __GFP_HIGHMEM | __GFP_ZERO);
 		if (*page == NULL) {
-			pr_err("%d: binder_alloc_buf failed for page at %p\n",
+			pr_err("%d: binder_alloc_buf failed for page at %pK\n",
 				proc->pid, page_addr);
 			goto err_alloc_page_failed;
 		}
@@ -604,7 +604,7 @@ static int binder_update_page_range(struct binder_proc *proc, int allocate,
 		flush_cache_vmap((unsigned long)page_addr,
 				(unsigned long)page_addr + PAGE_SIZE);
 		if (ret != 1) {
-			pr_err("%d: binder_alloc_buf failed to map page at %p in kernel\n",
+			pr_err("%d: binder_alloc_buf failed to map page at %pK in kernel\n",
 			       proc->pid, page_addr);
 			goto err_map_kernel_failed;
 		}
@@ -708,7 +708,7 @@ static struct binder_buffer *binder_alloc_buf(struct binder_proc *proc,
 	}
 
 	binder_debug(BINDER_DEBUG_BUFFER_ALLOC,
-		     "%d: binder_alloc_buf size %zd got buffer %p size %zd\n",
+		     "%d: binder_alloc_buf size %zd got buffer %pK size %zd\n",
 		      proc->pid, size, buffer, buffer_size);
 
 	has_page_addr =
@@ -738,7 +738,7 @@ static struct binder_buffer *binder_alloc_buf(struct binder_proc *proc,
 		binder_insert_free_buffer(proc, new_buffer);
 	}
 	binder_debug(BINDER_DEBUG_BUFFER_ALLOC,
-		     "%d: binder_alloc_buf size %zd got %p\n",
+		     "%d: binder_alloc_buf size %zd got %pK\n",
 		      proc->pid, size, buffer);
 	buffer->data_size = data_size;
 	buffer->offsets_size = offsets_size;
@@ -778,7 +778,7 @@ static void binder_delete_free_buffer(struct binder_proc *proc,
 		if (buffer_end_page(prev) == buffer_end_page(buffer))
 			free_page_end = 0;
 		binder_debug(BINDER_DEBUG_BUFFER_ALLOC,
-			     "%d: merge free, buffer %p share page with %p\n",
+			     "%d: merge free, buffer %pK share page with %pK\n",
 			      proc->pid, buffer, prev);
 	}
 
@@ -791,14 +791,14 @@ static void binder_delete_free_buffer(struct binder_proc *proc,
 			    buffer_start_page(buffer))
 				free_page_start = 0;
 			binder_debug(BINDER_DEBUG_BUFFER_ALLOC,
-				     "%d: merge free, buffer %p share page with %p\n",
+				     "%d: merge free, buffer %pK share page with %pK\n",
 				      proc->pid, buffer, prev);
 		}
 	}
 	list_del(&buffer->entry);
 	if (free_page_start || free_page_end) {
 		binder_debug(BINDER_DEBUG_BUFFER_ALLOC,
-			     "%d: merge free, buffer %p do not share page%s%s with %p or %p\n",
+			     "%d: merge free, buffer %pK do not share page%s%s with %pK or %pK\n",
 			     proc->pid, buffer, free_page_start ? "" : " end",
 			     free_page_end ? "" : " start", prev, next);
 		binder_update_page_range(proc, 0, free_page_start ?
@@ -819,7 +819,7 @@ static void binder_free_buf(struct binder_proc *proc,
 		ALIGN(buffer->offsets_size, sizeof(void *));
 
 	binder_debug(BINDER_DEBUG_BUFFER_ALLOC,
-		     "%d: binder_free_buf %p size %zd buffer_size %zd\n",
+		     "%d: binder_free_buf %pK size %zd buffer_size %zd\n",
 		      proc->pid, buffer, size, buffer_size);
 
 	BUG_ON(buffer->free);
@@ -1249,7 +1249,7 @@ static void binder_transaction_buffer_release(struct binder_proc *proc,
 	int debug_id = buffer->debug_id;
 
 	binder_debug(BINDER_DEBUG_TRANSACTION,
-		     "%d buffer release %d, size %zd-%zd, failed at %p\n",
+		     "%d buffer release %d, size %zd-%zd, failed at %pK\n",
 		     proc->pid, buffer->debug_id,
 		     buffer->data_size, buffer->offsets_size, failed_at);
 
@@ -2105,7 +2105,7 @@ static int binder_thread_write(struct binder_proc *proc,
 				}
 			}
 			binder_debug(BINDER_DEBUG_DEAD_BINDER,
-				     "%d:%d BC_DEAD_BINDER_DONE %016llx found %p\n",
+				     "%d:%d BC_DEAD_BINDER_DONE %016llx found %pK\n",
 				     proc->pid, thread->pid, (u64)cookie,
 				     death);
 			if (death == NULL) {
@@ -2912,7 +2912,7 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
 #ifdef CONFIG_CPU_CACHE_VIPT
 	if (cache_is_vipt_aliasing()) {
 		while (CACHE_COLOUR((vma->vm_start ^ (uint32_t)proc->buffer))) {
-			pr_info("binder_mmap: %d %lx-%lx maps %p bad alignment\n", proc->pid, vma->vm_start, vma->vm_end, proc->buffer);
+			pr_info("binder_mmap: %d %lx-%lx maps %pK bad alignment\n", proc->pid, vma->vm_start, vma->vm_end, proc->buffer);
 			vma->vm_start += PAGE_SIZE;
 		}
 	}
@@ -3170,7 +3170,7 @@ static void binder_deferred_release(struct binder_proc *proc)
 
 			page_addr = proc->buffer + i * PAGE_SIZE;
 			binder_debug(BINDER_DEBUG_BUFFER_ALLOC,
-				     "%s: %d: page %d at %p not freed\n",
+				     "%s: %d: page %d at %pK not freed\n",
 				     __func__, proc->pid, i, page_addr);
 			unmap_kernel_range((unsigned long)page_addr, PAGE_SIZE);
 			__free_page(proc->pages[i]);
@@ -3249,7 +3249,7 @@ static void print_binder_transaction(struct seq_file *m, const char *prefix,
 				     struct binder_transaction *t)
 {
 	seq_printf(m,
-		   "%s %d: %p from %d:%d to %d:%d code %x flags %x pri %ld r%d",
+		   "%s %d: %pK from %d:%d to %d:%d code %x flags %x pri %ld r%d",
 		   prefix, t->debug_id, t,
 		   t->from ? t->from->proc->pid : 0,
 		   t->from ? t->from->pid : 0,
@@ -3263,7 +3263,7 @@ static void print_binder_transaction(struct seq_file *m, const char *prefix,
 	if (t->buffer->target_node)
 		seq_printf(m, " node %d",
 			   t->buffer->target_node->debug_id);
-	seq_printf(m, " size %zd:%zd data %p\n",
+	seq_printf(m, " size %zd:%zd data %pK\n",
 		   t->buffer->data_size, t->buffer->offsets_size,
 		   t->buffer->data);
 }
@@ -3271,7 +3271,7 @@ static void print_binder_transaction(struct seq_file *m, const char *prefix,
 static void print_binder_buffer(struct seq_file *m, const char *prefix,
 				struct binder_buffer *buffer)
 {
-	seq_printf(m, "%s %d: %p size %zd:%zd %s\n",
+	seq_printf(m, "%s %d: %pK size %zd:%zd %s\n",
 		   prefix, buffer->debug_id, buffer->data,
 		   buffer->data_size, buffer->offsets_size,
 		   buffer->transaction ? "active" : "delivered");
@@ -3374,7 +3374,7 @@ static void print_binder_node(struct seq_file *m, struct binder_node *node)
 
 static void print_binder_ref(struct seq_file *m, struct binder_ref *ref)
 {
-	seq_printf(m, "  ref %d: desc %d %snode %d s %d w %d d %p\n",
+	seq_printf(m, "  ref %d: desc %d %snode %d s %d w %d d %pK\n",
 		   ref->debug_id, ref->desc, ref->node->proc ? "" : "dead ",
 		   ref->node->debug_id, ref->strong, ref->weak, ref->death);
 }
drivers/base/power/main.c +4 -0
index 05409141ec07..8efdb823826c 100644
@@ -1378,6 +1378,10 @@ static int __device_suspend(struct device *dev, pm_message_t state, bool async)
 	if (dev->power.syscore)
 		goto Complete;
 
+	/* Avoid direct_complete to let wakeup_path propagate. */
+	if (device_may_wakeup(dev) || dev->power.wakeup_path)
+		dev->power.direct_complete = false;
+
 	if (dev->power.direct_complete) {
 		if (pm_runtime_status_suspended(dev)) {
 			pm_runtime_disable(dev);
drivers/char/ipmi/ipmi_ssif.c +5 -1
index b2da2382d544..67d23ed2d1a0 100644
@@ -695,12 +695,16 @@ static void msg_done_handler(struct ssif_info *ssif_info, int result,
 			/* End of read */
 			len = ssif_info->multi_len;
 			data = ssif_info->data;
-		} else if (blocknum != ssif_info->multi_pos) {
+		} else if (blocknum + 1 != ssif_info->multi_pos) {
 			/*
 			 * Out of sequence block, just abort.  Block
 			 * numbers start at zero for the second block,
 			 * but multi_pos starts at one, so the +1.
 			 */
+			if (ssif_info->ssif_debug & SSIF_DEBUG_MSG)
+				dev_dbg(&ssif_info->client->dev,
+					"Received message out of sequence, expected %u, got %u\n",
+					ssif_info->multi_pos - 1, blocknum);
 			result = -EIO;
 		} else {
 			ssif_inc_stat(ssif_info, received_message_parts);
drivers/char/virtio_console.c +2 -1
index 2aca689061e1..df9eab91c2d2 100644
@@ -76,7 +76,7 @@ struct ports_driver_data {
 	/* All the console devices handled by this driver */
 	struct list_head consoles;
 };
-static struct ports_driver_data pdrvdata;
+static struct ports_driver_data pdrvdata = { .next_vtermno = 1};
 
 static DEFINE_SPINLOCK(pdrvdata_lock);
 static DECLARE_COMPLETION(early_console_added);
@@ -1419,6 +1419,7 @@ static int add_port(struct ports_device *portdev, u32 id)
 	port->async_queue = NULL;
 
 	port->cons.ws.ws_row = port->cons.ws.ws_col = 0;
+	port->cons.vtermno = 0;
 
 	port->host_connected = port->guest_connected = false;
 	port->stats = (struct port_stats) { 0 };
drivers/clk/tegra/clk-pll.c +2 -2
index d6d4ecb88e94..311f6e62264f 100644
@@ -492,8 +492,8 @@ static void _update_pll_mnp(struct tegra_clk_pll *pll,
 		pll_override_writel(val, params->pmc_divp_reg, pll);
 
 		val = pll_override_readl(params->pmc_divnm_reg, pll);
-		val &= ~(divm_mask(pll) << div_nmp->override_divm_shift) |
-			~(divn_mask(pll) << div_nmp->override_divn_shift);
+		val &= ~((divm_mask(pll) << div_nmp->override_divm_shift) |
+			(divn_mask(pll) << div_nmp->override_divn_shift));
 		val |= (cfg->m << div_nmp->override_divm_shift) |
 			(cfg->n << div_nmp->override_divn_shift);
 		pll_override_writel(val, params->pmc_divnm_reg, pll);
drivers/cpufreq/pasemi-cpufreq.c +1 -0
index 35dd4d7ffee0..58c933f48300 100644
@@ -146,6 +146,7 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
 
 	cpu = of_get_cpu_node(policy->cpu, NULL);
 
+	of_node_put(cpu);
 	if (!cpu)
 		goto out;
 
drivers/cpufreq/pmac32-cpufreq.c +2 -0
index 1f49d97a70ea..14928e0dc326 100644
@@ -549,6 +549,7 @@ static int pmac_cpufreq_init_7447A(struct device_node *cpunode)
 	volt_gpio_np = of_find_node_by_name(NULL, "cpu-vcore-select");
 	if (volt_gpio_np)
 		voltage_gpio = read_gpio(volt_gpio_np);
+	of_node_put(volt_gpio_np);
 	if (!voltage_gpio){
 		printk(KERN_ERR "cpufreq: missing cpu-vcore-select gpio\n");
 		return 1;
@@ -585,6 +586,7 @@ static int pmac_cpufreq_init_750FX(struct device_node *cpunode)
 	if (volt_gpio_np)
 		voltage_gpio = read_gpio(volt_gpio_np);
 
+	of_node_put(volt_gpio_np);
 	pvr = mfspr(SPRN_PVR);
 	has_cpu_l2lve = !((pvr & 0xf00) == 0x100);
 
drivers/cpufreq/ppc_cbe_cpufreq.c +1 -0
index 5a4c5a639f61..2eaeebcc93af 100644
@@ -86,6 +86,7 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy)
 	if (!cbe_get_cpu_pmd_regs(policy->cpu) ||
 	    !cbe_get_cpu_mic_tm_regs(policy->cpu)) {
 		pr_info("invalid CBE regs pointers for cpufreq\n");
+		of_node_put(cpu);
 		return -EINVAL;
 	}
 
drivers/crypto/vmx/aesp8-ppc.pl +3 -3
index 228053921b3f..4277fdd037bb 100644
@@ -1298,7 +1298,7 @@ Loop_ctr32_enc:
 	addi		$idx,$idx,16
 	bdnz		Loop_ctr32_enc
 
-	vadduwm		$ivec,$ivec,$one
+	vadduqm		$ivec,$ivec,$one
 	 vmr		$dat,$inptail
 	 lvx		$inptail,0,$inp
 	 addi		$inp,$inp,16
@@ -1795,7 +1795,7 @@ Lctr32_enc8x_three:
 	stvx_u		$out1,$x10,$out
 	stvx_u		$out2,$x20,$out
 	addi		$out,$out,0x30
-	b		Lcbc_dec8x_done
+	b		Lctr32_enc8x_done
 
 .align	5
 Lctr32_enc8x_two:
@@ -1807,7 +1807,7 @@ Lctr32_enc8x_two:
 	stvx_u		$out0,$x00,$out
 	stvx_u		$out1,$x10,$out
 	addi		$out,$out,0x20
-	b		Lcbc_dec8x_done
+	b		Lctr32_enc8x_done
 
 .align	5
 Lctr32_enc8x_one:
drivers/crypto/vmx/ghash.c +89 -129

277 lines not on this page · raw message

drivers/dma/at_xdmac.c +5 -1
index af24c5bf32d6..8aa3ccf42e55 100644
@@ -1608,7 +1608,11 @@ static void at_xdmac_tasklet(unsigned long data)
 					struct at_xdmac_desc,
 					xfer_node);
 		dev_vdbg(chan2dev(&atchan->chan), "%s: desc 0x%p\n", __func__, desc);
-		BUG_ON(!desc->active_xfer);
+		if (!desc->active_xfer) {
+			dev_err(chan2dev(&atchan->chan), "Xfer not active: exiting");
+			spin_unlock_bh(&atchan->lock);
+			return;
+		}
 
 		txd = &desc->tx_dma_desc;
 
drivers/dma/pl330.c +7 -3
index 95619ee33112..799c182c3eac 100644
@@ -1006,6 +1006,7 @@ static void _stop(struct pl330_thread *thrd)
 {
 	void __iomem *regs = thrd->dmac->base;
 	u8 insn[6] = {0, 0, 0, 0, 0, 0};
+	u32 inten = readl(regs + INTEN);
 
 	if (_state(thrd) == PL330_STATE_FAULT_COMPLETING)
 		UNTIL(thrd, PL330_STATE_FAULTING | PL330_STATE_KILLING);
@@ -1018,10 +1019,13 @@ static void _stop(struct pl330_thread *thrd)
 
 	_emit_KILL(0, insn);
 
-	/* Stop generating interrupts for SEV */
-	writel(readl(regs + INTEN) & ~(1 << thrd->ev), regs + INTEN);
-
 	_execute_DBGINSN(thrd, insn, is_manager(thrd));
+
+	/* clear the event */
+	if (inten & (1 << thrd->ev))
+		writel(1 << thrd->ev, regs + INTCLR);
+	/* Stop generating interrupts for SEV */
+	writel(inten & ~(1 << thrd->ev), regs + INTEN);
 }
 
 /* Start doing req 'idx' of thread 'thrd' */
drivers/extcon/extcon-arizona.c +10 -0
index e4890dd4fefd..38fb212e58ee 100644
@@ -1616,6 +1616,16 @@ static int arizona_extcon_remove(struct platform_device *pdev)
 	struct arizona_extcon_info *info = platform_get_drvdata(pdev);
 	struct arizona *arizona = info->arizona;
 	int jack_irq_rise, jack_irq_fall;
+	bool change;
+
+	regmap_update_bits_check(arizona->regmap, ARIZONA_MIC_DETECT_1,
+				 ARIZONA_MICD_ENA, 0,
+				 &change);
+
+	if (change) {
+		regulator_disable(info->micvdd);
+		pm_runtime_put(info->dev);
+	}
 
 	gpiod_put(info->micd_pol_gpio);
 
drivers/gpu/drm/gma500/cdv_intel_lvds.c +3 -0
index 211069b2b951..010fe3fc5ecf 100644
@@ -620,6 +620,9 @@ void cdv_intel_lvds_init(struct drm_device *dev,
 	int pipe;
 	u8 pin;
 
+	if (!dev_priv->lvds_enabled_in_vbt)
+		return;
+
 	pin = GMBUS_PORT_PANEL;
 	if (!lvds_is_present_in_vbt(dev, &pin)) {
 		DRM_DEBUG_KMS("LVDS is not present in VBT\n");
drivers/gpu/drm/gma500/intel_bios.c +3 -0
index 63bde4e86c6a..e019ea271ffc 100644
@@ -436,6 +436,9 @@ parse_driver_features(struct drm_psb_private *dev_priv,
 	if (driver->lvds_config == BDB_DRIVER_FEATURE_EDP)
 		dev_priv->edp.support = 1;
 
+	dev_priv->lvds_enabled_in_vbt = driver->lvds_config != 0;
+	DRM_DEBUG_KMS("LVDS VBT config bits: 0x%x\n", driver->lvds_config);
+
 	/* This bit means to use 96Mhz for DPLL_A or not */
 	if (driver->primary_lfp_id)
 		dev_priv->dplla_96mhz = true;
drivers/gpu/drm/gma500/psb_drv.h +1 -0
index e21726ecac32..4c7cc8a5edbd 100644
@@ -536,6 +536,7 @@ struct drm_psb_private {
 	int lvds_ssc_freq;
 	bool is_lvds_on;
 	bool is_mipi_on;
+	bool lvds_enabled_in_vbt;
 	u32 mipi_ctrl_display;
 
 	unsigned int core_freq;
drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h +2 -0
index 6b6224dbd5bb..943eb2971c3e 100644
@@ -37,6 +37,7 @@ struct nvkm_i2c_bus {
 	struct mutex mutex;
 	struct list_head head;
 	struct i2c_adapter i2c;
+	u8 enabled;
 };
 
 int nvkm_i2c_bus_acquire(struct nvkm_i2c_bus *);
@@ -56,6 +57,7 @@ struct nvkm_i2c_aux {
 	struct mutex mutex;
 	struct list_head head;
 	struct i2c_adapter i2c;
+	u8 enabled;
 
 	u32 intr;
 };
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c +25 -1
index f0851d57df2f..f89692cb2bc7 100644
@@ -105,9 +105,15 @@ nvkm_i2c_aux_acquire(struct nvkm_i2c_aux *aux)
 {
 	struct nvkm_i2c_pad *pad = aux->pad;
 	int ret;
+
 	AUX_TRACE(aux, "acquire");
 	mutex_lock(&aux->mutex);
-	ret = nvkm_i2c_pad_acquire(pad, NVKM_I2C_PAD_AUX);
+
+	if (aux->enabled)
+		ret = nvkm_i2c_pad_acquire(pad, NVKM_I2C_PAD_AUX);
+	else
+		ret = -EIO;
+
 	if (ret)
 		mutex_unlock(&aux->mutex);
 	return ret;
@@ -141,6 +147,24 @@ nvkm_i2c_aux_del(struct nvkm_i2c_aux **paux)
 	}
 }
 
+void
+nvkm_i2c_aux_init(struct nvkm_i2c_aux *aux)
+{
+	AUX_TRACE(aux, "init");
+	mutex_lock(&aux->mutex);
+	aux->enabled = true;
+	mutex_unlock(&aux->mutex);
+}
+
+void
+nvkm_i2c_aux_fini(struct nvkm_i2c_aux *aux)
+{
+	AUX_TRACE(aux, "fini");
+	mutex_lock(&aux->mutex);
+	aux->enabled = false;
+	mutex_unlock(&aux->mutex);
+}
+
 int
 nvkm_i2c_aux_ctor(const struct nvkm_i2c_aux_func *func,
 		  struct nvkm_i2c_pad *pad, int id,
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h +2 -0
index 35a892e4a4c3..04885c097a32 100644
@@ -14,6 +14,8 @@ int nvkm_i2c_aux_ctor(const struct nvkm_i2c_aux_func *, struct nvkm_i2c_pad *,
 int nvkm_i2c_aux_new_(const struct nvkm_i2c_aux_func *, struct nvkm_i2c_pad *,
 		      int id, struct nvkm_i2c_aux **);
 void nvkm_i2c_aux_del(struct nvkm_i2c_aux **);
+void nvkm_i2c_aux_init(struct nvkm_i2c_aux *);
+void nvkm_i2c_aux_fini(struct nvkm_i2c_aux *);
 int nvkm_i2c_aux_xfer(struct nvkm_i2c_aux *, bool retry, u8 type,
 		      u32 addr, u8 *data, u8 size);
 
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c +15 -0
index 243a71ff0a0d..2acc5cbcb6fb 100644
@@ -160,8 +160,18 @@ nvkm_i2c_fini(struct nvkm_subdev *subdev, bool suspend)
 {
 	struct nvkm_i2c *i2c = nvkm_i2c(subdev);
 	struct nvkm_i2c_pad *pad;
+	struct nvkm_i2c_bus *bus;
+	struct nvkm_i2c_aux *aux;
 	u32 mask;
 
+	list_for_each_entry(aux, &i2c->aux, head) {
+		nvkm_i2c_aux_fini(aux);
+	}
+
+	list_for_each_entry(bus, &i2c->bus, head) {
+		nvkm_i2c_bus_fini(bus);
+	}
+
 	if ((mask = (1 << i2c->func->aux) - 1), i2c->func->aux_stat) {
 		i2c->func->aux_mask(i2c, NVKM_I2C_ANY, mask, 0);
 		i2c->func->aux_stat(i2c, &mask, &mask, &mask, &mask);
@@ -180,6 +190,7 @@ nvkm_i2c_init(struct nvkm_subdev *subdev)
 	struct nvkm_i2c *i2c = nvkm_i2c(subdev);
 	struct nvkm_i2c_bus *bus;
 	struct nvkm_i2c_pad *pad;
+	struct nvkm_i2c_aux *aux;
 
 	list_for_each_entry(pad, &i2c->pad, head) {
 		nvkm_i2c_pad_init(pad);
@@ -189,6 +200,10 @@ nvkm_i2c_init(struct nvkm_subdev *subdev)
 		nvkm_i2c_bus_init(bus);
 	}
 
+	list_for_each_entry(aux, &i2c->aux, head) {
+		nvkm_i2c_aux_init(aux);
+	}
+
 	return 0;
 }
 
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c +20 -1
index 807a2b67bd64..ed50cc3736b9 100644
@@ -110,6 +110,19 @@ nvkm_i2c_bus_init(struct nvkm_i2c_bus *bus)
 	BUS_TRACE(bus, "init");
 	if (bus->func->init)
 		bus->func->init(bus);
+
+	mutex_lock(&bus->mutex);
+	bus->enabled = true;
+	mutex_unlock(&bus->mutex);
+}
+
+void
+nvkm_i2c_bus_fini(struct nvkm_i2c_bus *bus)
+{
+	BUS_TRACE(bus, "fini");
+	mutex_lock(&bus->mutex);
+	bus->enabled = false;
+	mutex_unlock(&bus->mutex);
 }
 
 void
@@ -126,9 +139,15 @@ nvkm_i2c_bus_acquire(struct nvkm_i2c_bus *bus)
 {
 	struct nvkm_i2c_pad *pad = bus->pad;
 	int ret;
+
 	BUS_TRACE(bus, "acquire");
 	mutex_lock(&bus->mutex);
-	ret = nvkm_i2c_pad_acquire(pad, NVKM_I2C_PAD_I2C);
+
+	if (bus->enabled)
+		ret = nvkm_i2c_pad_acquire(pad, NVKM_I2C_PAD_I2C);
+	else
+		ret = -EIO;
+
 	if (ret)
 		mutex_unlock(&bus->mutex);
 	return ret;
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.h +1 -0
index e1be14c23e54..2fdb1b8e7164 100644
@@ -17,6 +17,7 @@ int nvkm_i2c_bus_new_(const struct nvkm_i2c_bus_func *, struct nvkm_i2c_pad *,
 		      int id, struct nvkm_i2c_bus **);
 void nvkm_i2c_bus_del(struct nvkm_i2c_bus **);
 void nvkm_i2c_bus_init(struct nvkm_i2c_bus *);
+void nvkm_i2c_bus_fini(struct nvkm_i2c_bus *);
 
 int nvkm_i2c_bit_xfer(struct nvkm_i2c_bus *, struct i2c_msg *, int);
 
drivers/hid/hid-core.c +24 -12
index 4564ecf71181..9b2b41d683de 100644
@@ -200,13 +200,14 @@ static unsigned hid_lookup_collection(struct hid_parser *parser, unsigned type)
  * Add a usage to the temporary parser table.
  */
 
-static int hid_add_usage(struct hid_parser *parser, unsigned usage)
+static int hid_add_usage(struct hid_parser *parser, unsigned usage, u8 size)
 {
 	if (parser->local.usage_index >= HID_MAX_USAGES) {
 		hid_err(parser->device, "usage index exceeded\n");
 		return -1;
 	}
 	parser->local.usage[parser->local.usage_index] = usage;
+	parser->local.usage_size[parser->local.usage_index] = size;
 	parser->local.collection_index[parser->local.usage_index] =
 		parser->collection_stack_ptr ?
 		parser->collection_stack[parser->collection_stack_ptr - 1] : 0;
@@ -463,10 +464,7 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
 			return 0;
 		}
 
-		if (item->size <= 2)
-			data = (parser->global.usage_page << 16) + data;
-
-		return hid_add_usage(parser, data);
+		return hid_add_usage(parser, data, item->size);
 
 	case HID_LOCAL_ITEM_TAG_USAGE_MINIMUM:
 
@@ -475,9 +473,6 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
 			return 0;
 		}
 
-		if (item->size <= 2)
-			data = (parser->global.usage_page << 16) + data;
-
 		parser->local.usage_minimum = data;
 		return 0;
 
@@ -488,9 +483,6 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
 			return 0;
 		}
 
-		if (item->size <= 2)
-			data = (parser->global.usage_page << 16) + data;
-
 		count = data - parser->local.usage_minimum;
 		if (count + parser->local.usage_index >= HID_MAX_USAGES) {
 			/*
@@ -510,7 +502,7 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
 		}
 
 		for (n = parser->local.usage_minimum; n <= data; n++)
-			if (hid_add_usage(parser, n)) {
+			if (hid_add_usage(parser, n, item->size)) {
 				dbg_hid("hid_add_usage failed\n");
 				return -1;
 			}
@@ -524,6 +516,22 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
 	return 0;
 }
 
+/*
+ * Concatenate Usage Pages into Usages where relevant:
+ * As per specification, 6.2.2.8: "When the parser encounters a main item it
+ * concatenates the last declared Usage Page with a Usage to form a complete
+ * usage value."
+ */
+
+static void hid_concatenate_usage_page(struct hid_parser *parser)
+{
+	int i;
+
+	for (i = 0; i < parser->local.usage_index; i++)
+		if (parser->local.usage_size[i] <= 2)
+			parser->local.usage[i] += parser->global.usage_page << 16;
+}
+
 /*
  * Process a main item.
  */
@@ -533,6 +541,8 @@ static int hid_parser_main(struct hid_parser *parser, struct hid_item *item)
 	__u32 data;
 	int ret;
 
+	hid_concatenate_usage_page(parser);
+
 	data = item_udata(item);
 
 	switch (item->tag) {
@@ -746,6 +756,8 @@ static int hid_scan_main(struct hid_parser *parser, struct hid_item *item)
 	__u32 data;
 	int i;
 
+	hid_concatenate_usage_page(parser);
+
 	data = item_udata(item);
 
 	switch (item->tag) {
drivers/hid/hid-logitech-hidpp.c +13 -4
index 5fd97860aec4..3666e5064d0d 100644
@@ -414,13 +414,16 @@ static int hidpp_root_get_feature(struct hidpp_device *hidpp, u16 feature,
 
 static int hidpp_root_get_protocol_version(struct hidpp_device *hidpp)
 {
+	const u8 ping_byte = 0x5a;
+	u8 ping_data[3] = { 0, 0, ping_byte };
 	struct hidpp_report response;
 	int ret;
 
-	ret = hidpp_send_fap_command_sync(hidpp,
+	ret = hidpp_send_rap_command_sync(hidpp,
+			REPORT_ID_HIDPP_SHORT,
 			HIDPP_PAGE_ROOT_IDX,
 			CMD_ROOT_GET_PROTOCOL_VERSION,
-			NULL, 0, &response);
+			ping_data, sizeof(ping_data), &response);
 
 	if (ret == HIDPP_ERROR_INVALID_SUBID) {
 		hidpp->protocol_major = 1;
@@ -440,8 +443,14 @@ static int hidpp_root_get_protocol_version(struct hidpp_device *hidpp)
 	if (ret)
 		return ret;
 
-	hidpp->protocol_major = response.fap.params[0];
-	hidpp->protocol_minor = response.fap.params[1];
+	if (response.rap.params[2] != ping_byte) {
+		hid_err(hidpp->hid_dev, "%s: ping mismatch 0x%02x != 0x%02x\n",
+			__func__, response.rap.params[2], ping_byte);
+		return -EPROTO;
+	}
+
+	hidpp->protocol_major = response.rap.params[0];
+	hidpp->protocol_minor = response.rap.params[1];
 
 	return ret;
 }
drivers/hwmon/f71805f.c +12 -3
index facd05cda26d..e8c089886427 100644
@@ -96,17 +96,23 @@ superio_select(int base, int ld)
 	outb(ld, base + 1);
 }
 
-static inline void
+static inline int
 superio_enter(int base)
 {
+	if (!request_muxed_region(base, 2, DRVNAME))
+		return -EBUSY;
+
 	outb(0x87, base);
 	outb(0x87, base);
+
+	return 0;
 }
 
 static inline void
 superio_exit(int base)
 {
 	outb(0xaa, base);
+	release_region(base, 2);
 }
 
 /*
@@ -1561,7 +1567,7 @@ exit:
 static int __init f71805f_find(int sioaddr, unsigned short *address,
 			       struct f71805f_sio_data *sio_data)
 {
-	int err = -ENODEV;
+	int err;
 	u16 devid;
 
 	static const char * const names[] = {
@@ -1569,8 +1575,11 @@ static int __init f71805f_find(int sioaddr, unsigned short *address,
 		"F71872F/FG or F71806F/FG",
 	};
 
-	superio_enter(sioaddr);
+	err = superio_enter(sioaddr);
+	if (err)
+		return err;
 
+	err = -ENODEV;
 	devid = superio_inw(sioaddr, SIO_REG_MANID);
 	if (devid != SIO_FINTEK_ID)
 		goto exit;
drivers/hwmon/pc87427.c +13 -1
index cb9fdd37bd0d..2b5b8c3de8fc 100644
@@ -106,6 +106,13 @@ static const char *logdev_str[2] = { DRVNAME " FMC", DRVNAME " HMC" };
 #define LD_IN		1
 #define LD_TEMP		1
 
+static inline int superio_enter(int sioaddr)
+{
+	if (!request_muxed_region(sioaddr, 2, DRVNAME))
+		return -EBUSY;
+	return 0;
+}
+
 static inline void superio_outb(int sioaddr, int reg, int val)
 {
 	outb(reg, sioaddr);
@@ -122,6 +129,7 @@ static inline void superio_exit(int sioaddr)
 {
 	outb(0x02, sioaddr);
 	outb(0x02, sioaddr + 1);
+	release_region(sioaddr, 2);
 }
 
 /*
@@ -1220,7 +1228,11 @@ static int __init pc87427_find(int sioaddr, struct pc87427_sio_data *sio_data)
 {
 	u16 val;
 	u8 cfg, cfg_b;
-	int i, err = 0;
+	int i, err;
+
+	err = superio_enter(sioaddr);
+	if (err)
+		return err;
 
 	/* Identify device */
 	val = force_id ? force_id : superio_inb(sioaddr, SIOREG_DEVID);
drivers/hwmon/smsc47b397.c +11 -2
index 6bd200756560..cbdb5c4991ae 100644
@@ -72,14 +72,19 @@ static inline void superio_select(int ld)
 	superio_outb(0x07, ld);
 }
 
-static inline void superio_enter(void)
+static inline int superio_enter(void)
 {
+	if (!request_muxed_region(REG, 2, DRVNAME))
+		return -EBUSY;
+
 	outb(0x55, REG);
+	return 0;
 }
 
 static inline void superio_exit(void)
 {
 	outb(0xAA, REG);
+	release_region(REG, 2);
 }
 
 #define SUPERIO_REG_DEVID	0x20
@@ -300,8 +305,12 @@ static int __init smsc47b397_find(void)
 	u8 id, rev;
 	char *name;
 	unsigned short addr;
+	int err;
+
+	err = superio_enter();
+	if (err)
+		return err;
 
-	superio_enter();
 	id = force_id ? force_id : superio_inb(SUPERIO_REG_DEVID);
 
 	switch (id) {
drivers/hwmon/smsc47m1.c +19 -9
index 5d323186d2c1..d24df0c50bea 100644
@@ -73,16 +73,21 @@ superio_inb(int reg)
 /* logical device for fans is 0x0A */
 #define superio_select() superio_outb(0x07, 0x0A)
 
-static inline void
+static inline int
 superio_enter(void)
 {
+	if (!request_muxed_region(REG, 2, DRVNAME))
+		return -EBUSY;
+
 	outb(0x55, REG);
+	return 0;
 }
 
 static inline void
 superio_exit(void)
 {
 	outb(0xAA, REG);
+	release_region(REG, 2);
 }
 
 #define SUPERIO_REG_ACT		0x30
@@ -531,8 +536,12 @@ static int __init smsc47m1_find(struct smsc47m1_sio_data *sio_data)
 {
 	u8 val;
 	unsigned short addr;
+	int err;
+
+	err = superio_enter();
+	if (err)
+		return err;
 
-	superio_enter();
 	val = force_id ? force_id : superio_inb(SUPERIO_REG_DEVID);
 
 	/*
@@ -608,13 +617,14 @@ static int __init smsc47m1_find(struct smsc47m1_sio_data *sio_data)
 static void smsc47m1_restore(const struct smsc47m1_sio_data *sio_data)
 {
 	if ((sio_data->activate & 0x01) == 0) {
-		superio_enter();
-		superio_select();
-
-		pr_info("Disabling device\n");
-		superio_outb(SUPERIO_REG_ACT, sio_data->activate);
-
-		superio_exit();
+		if (!superio_enter()) {
+			superio_select();
+			pr_info("Disabling device\n");
+			superio_outb(SUPERIO_REG_ACT, sio_data->activate);
+			superio_exit();
+		} else {
+			pr_warn("Failed to disable device\n");
+		}
 	}
 }
 
drivers/hwmon/vt1211.c +12 -3
index 3a6bfa51cb94..95d5e8ec8b7f 100644
@@ -226,15 +226,21 @@ static inline void superio_select(int sio_cip, int ldn)
 	outb(ldn, sio_cip + 1);
 }
 
-static inline void superio_enter(int sio_cip)
+static inline int superio_enter(int sio_cip)
 {
+	if (!request_muxed_region(sio_cip, 2, DRVNAME))
+		return -EBUSY;
+
 	outb(0x87, sio_cip);
 	outb(0x87, sio_cip);
+
+	return 0;
 }
 
 static inline void superio_exit(int sio_cip)
 {
 	outb(0xaa, sio_cip);
+	release_region(sio_cip, 2);
 }
 
 /* ---------------------------------------------------------------------
@@ -1282,11 +1288,14 @@ EXIT:
 
 static int __init vt1211_find(int sio_cip, unsigned short *address)
 {
-	int err = -ENODEV;
+	int err;
 	int devid;
 
-	superio_enter(sio_cip);
+	err = superio_enter(sio_cip);
+	if (err)
+		return err;
 
+	err = -ENODEV;
 	devid = force_id ? force_id : superio_inb(sio_cip, SIO_VT1211_DEVID);
 	if (devid != SIO_VT1211_ID)
 		goto EXIT;
drivers/hwtracing/intel_th/msu.c +32 -3
index 9d9e47eb0842..7d5c53a1abe4 100644
@@ -90,6 +90,7 @@ struct msc_iter {
  * @reg_base:		register window base address
  * @thdev:		intel_th_device pointer
  * @win_list:		list of windows in multiblock mode
+ * @single_sgt:		single mode buffer
  * @nr_pages:		total number of pages allocated for this buffer
  * @single_sz:		amount of data in single mode
  * @single_wrap:	single mode wrap occurred
@@ -110,6 +111,7 @@ struct msc {
 	struct intel_th_device	*thdev;
 
 	struct list_head	win_list;
+	struct sg_table		single_sgt;
 	unsigned long		nr_pages;
 	unsigned long		single_sz;
 	unsigned int		single_wrap : 1;
@@ -610,22 +612,45 @@ static void intel_th_msc_deactivate(struct intel_th_device *thdev)
  */
 static int msc_buffer_contig_alloc(struct msc *msc, unsigned long size)
 {
+	unsigned long nr_pages = size >> PAGE_SHIFT;
 	unsigned int order = get_order(size);
 	struct page *page;
+	int ret;
 
 	if (!size)
 		return 0;
 
+	ret = sg_alloc_table(&msc->single_sgt, 1, GFP_KERNEL);
+	if (ret)
+		goto err_out;
+
+	ret = -ENOMEM;
 	page = alloc_pages(GFP_KERNEL | __GFP_ZERO, order);
 	if (!page)
-		return -ENOMEM;
+		goto err_free_sgt;
 
 	split_page(page, order);
-	msc->nr_pages = size >> PAGE_SHIFT;
+	sg_set_buf(msc->single_sgt.sgl, page_address(page), size);
+
+	ret = dma_map_sg(msc_dev(msc)->parent->parent, msc->single_sgt.sgl, 1,
+			 DMA_FROM_DEVICE);
+	if (ret < 0)
+		goto err_free_pages;
+
+	msc->nr_pages = nr_pages;
 	msc->base = page_address(page);
-	msc->base_addr = page_to_phys(page);
+	msc->base_addr = sg_dma_address(msc->single_sgt.sgl);
 
 	return 0;
+
+err_free_pages:
+	__free_pages(page, order);
+
+err_free_sgt:
+	sg_free_table(&msc->single_sgt);
+
+err_out:
+	return ret;
 }
 
 /**
@@ -636,6 +661,10 @@ static void msc_buffer_contig_free(struct msc *msc)
 {
 	unsigned long off;
 
+	dma_unmap_sg(msc_dev(msc)->parent->parent, msc->single_sgt.sgl,
+		     1, DMA_FROM_DEVICE);
+	sg_free_table(&msc->single_sgt);
+
 	for (off = 0; off < msc->nr_pages << PAGE_SHIFT; off += PAGE_SIZE) {
 		struct page *page = virt_to_page(msc->base + off);
 
drivers/hwtracing/stm/core.c +1 -1
index b6cc841de79d..e880702a3784 100644
@@ -210,8 +210,8 @@ stm_output_disclaim(struct stm_device *stm, struct stm_output *output)
 	bitmap_release_region(&master->chan_map[0], output->channel,
 			      ilog2(output->nr_chans));
 
-	output->nr_chans = 0;
 	master->nr_free += output->nr_chans;
+	output->nr_chans = 0;
 }
 
 /*
drivers/iio/adc/ad_sigma_delta.c +11 -5
index a1d072ecb717..30f200ad6b97 100644
@@ -62,7 +62,7 @@ int ad_sd_write_reg(struct ad_sigma_delta *sigma_delta, unsigned int reg,
 	struct spi_transfer t = {
 		.tx_buf		= data,
 		.len		= size + 1,
-		.cs_change	= sigma_delta->bus_locked,
+		.cs_change	= sigma_delta->keep_cs_asserted,
 	};
 	struct spi_message m;
 	int ret;
@@ -217,6 +217,7 @@ static int ad_sd_calibrate(struct ad_sigma_delta *sigma_delta,
 
 	spi_bus_lock(sigma_delta->spi->master);
 	sigma_delta->bus_locked = true;
+	sigma_delta->keep_cs_asserted = true;
 	reinit_completion(&sigma_delta->completion);
 
 	ret = ad_sigma_delta_set_mode(sigma_delta, mode);
@@ -234,9 +235,10 @@ static int ad_sd_calibrate(struct ad_sigma_delta *sigma_delta,
 		ret = 0;
 	}
 out:
+	sigma_delta->keep_cs_asserted = false;
+	ad_sigma_delta_set_mode(sigma_delta, AD_SD_MODE_IDLE);
 	sigma_delta->bus_locked = false;
 	spi_bus_unlock(sigma_delta->spi->master);
-	ad_sigma_delta_set_mode(sigma_delta, AD_SD_MODE_IDLE);
 
 	return ret;
 }
@@ -288,6 +290,7 @@ int ad_sigma_delta_single_conversion(struct iio_dev *indio_dev,
 
 	spi_bus_lock(sigma_delta->spi->master);
 	sigma_delta->bus_locked = true;
+	sigma_delta->keep_cs_asserted = true;
 	reinit_completion(&sigma_delta->completion);
 
 	ad_sigma_delta_set_mode(sigma_delta, AD_SD_MODE_SINGLE);
@@ -297,9 +300,6 @@ int ad_sigma_delta_single_conversion(struct iio_dev *indio_dev,
 	ret = wait_for_completion_interruptible_timeout(
 			&sigma_delta->completion, HZ);
 
-	sigma_delta->bus_locked = false;
-	spi_bus_unlock(sigma_delta->spi->master);
-
 	if (ret == 0)
 		ret = -EIO;
 	if (ret < 0)
@@ -315,7 +315,10 @@ out:
 		sigma_delta->irq_dis = true;
 	}
 
+	sigma_delta->keep_cs_asserted = false;
 	ad_sigma_delta_set_mode(sigma_delta, AD_SD_MODE_IDLE);
+	sigma_delta->bus_locked = false;
+	spi_bus_unlock(sigma_delta->spi->master);
 	mutex_unlock(&indio_dev->mlock);
 
 	if (ret)
@@ -352,6 +355,8 @@ static int ad_sd_buffer_postenable(struct iio_dev *indio_dev)
 
 	spi_bus_lock(sigma_delta->spi->master);
 	sigma_delta->bus_locked = true;
+	sigma_delta->keep_cs_asserted = true;
+
 	ret = ad_sigma_delta_set_mode(sigma_delta, AD_SD_MODE_CONTINUOUS);
 	if (ret)
 		goto err_unlock;
@@ -380,6 +385,7 @@ static int ad_sd_buffer_postdisable(struct iio_dev *indio_dev)
 		sigma_delta->irq_dis = true;
 	}
 
+	sigma_delta->keep_cs_asserted = false;
 	ad_sigma_delta_set_mode(sigma_delta, AD_SD_MODE_IDLE);
 
 	sigma_delta->bus_locked = false;
drivers/iio/common/ssp_sensors/ssp_iio.c +1 -1
index a3ae165f8d9f..16180e6321bd 100644
@@ -80,7 +80,7 @@ int ssp_common_process_data(struct iio_dev *indio_dev, void *buf,
 			    unsigned int len, int64_t timestamp)
 {
 	__le32 time;
-	int64_t calculated_time;
+	int64_t calculated_time = 0;
 	struct ssp_sensor_data *spd = iio_priv(indio_dev);
 
 	if (indio_dev->scan_bytes == 0)
drivers/infiniband/hw/cxgb4/cm.c +2 -0
index c9cffced00ca..54fd4d81a3f1 100644
@@ -360,6 +360,8 @@ static struct sk_buff *get_skb(struct sk_buff *skb, int len, gfp_t gfp)
 		skb_reset_transport_header(skb);
 	} else {
 		skb = alloc_skb(len, gfp);
+		if (!skb)
+			return NULL;
 	}
 	t4_set_arp_err_handler(skb, NULL, NULL);
 	return skb;
drivers/iommu/tegra-smmu.c +18 -7
index 9305964250ac..c4eb293b1524 100644
@@ -91,7 +91,6 @@ static inline u32 smmu_readl(struct tegra_smmu *smmu, unsigned long offset)
 #define  SMMU_TLB_FLUSH_VA_MATCH_ALL     (0 << 0)
 #define  SMMU_TLB_FLUSH_VA_MATCH_SECTION (2 << 0)
 #define  SMMU_TLB_FLUSH_VA_MATCH_GROUP   (3 << 0)
-#define  SMMU_TLB_FLUSH_ASID(x)          (((x) & 0x7f) << 24)
 #define  SMMU_TLB_FLUSH_VA_SECTION(addr) ((((addr) & 0xffc00000) >> 12) | \
 					  SMMU_TLB_FLUSH_VA_MATCH_SECTION)
 #define  SMMU_TLB_FLUSH_VA_GROUP(addr)   ((((addr) & 0xffffc000) >> 12) | \
@@ -194,8 +193,12 @@ static inline void smmu_flush_tlb_asid(struct tegra_smmu *smmu,
 {
 	u32 value;
 
-	value = SMMU_TLB_FLUSH_ASID_MATCH | SMMU_TLB_FLUSH_ASID(asid) |
-		SMMU_TLB_FLUSH_VA_MATCH_ALL;
+	if (smmu->soc->num_asids == 4)
+		value = (asid & 0x3) << 29;
+	else
+		value = (asid & 0x7f) << 24;
+
+	value |= SMMU_TLB_FLUSH_ASID_MATCH | SMMU_TLB_FLUSH_VA_MATCH_ALL;
 	smmu_writel(smmu, value, SMMU_TLB_FLUSH);
 }
 
@@ -205,8 +208,12 @@ static inline void smmu_flush_tlb_section(struct tegra_smmu *smmu,
 {
 	u32 value;
 
-	value = SMMU_TLB_FLUSH_ASID_MATCH | SMMU_TLB_FLUSH_ASID(asid) |
-		SMMU_TLB_FLUSH_VA_SECTION(iova);
+	if (smmu->soc->num_asids == 4)
+		value = (asid & 0x3) << 29;
+	else
+		value = (asid & 0x7f) << 24;
+
+	value |= SMMU_TLB_FLUSH_ASID_MATCH | SMMU_TLB_FLUSH_VA_SECTION(iova);
 	smmu_writel(smmu, value, SMMU_TLB_FLUSH);
 }
 
@@ -216,8 +223,12 @@ static inline void smmu_flush_tlb_group(struct tegra_smmu *smmu,
 {
 	u32 value;
 
-	value = SMMU_TLB_FLUSH_ASID_MATCH | SMMU_TLB_FLUSH_ASID(asid) |
-		SMMU_TLB_FLUSH_VA_GROUP(iova);
+	if (smmu->soc->num_asids == 4)
+		value = (asid & 0x3) << 29;
+	else
+		value = (asid & 0x7f) << 24;
+
+	value |= SMMU_TLB_FLUSH_ASID_MATCH | SMMU_TLB_FLUSH_VA_GROUP(iova);
 	smmu_writel(smmu, value, SMMU_TLB_FLUSH);
 }
 
drivers/md/bcache/alloc.c +3 -2
index 16c3390e5d9f..d82ae445c9ee 100644
@@ -324,10 +324,11 @@ static int bch_allocator_thread(void *arg)
 		 * possibly issue discards to them, then we add the bucket to
 		 * the free list:
 		 */
-		while (!fifo_empty(&ca->free_inc)) {
+		while (1) {
 			long bucket;
 
-			fifo_pop(&ca->free_inc, bucket);
+			if (!fifo_pop(&ca->free_inc, bucket))
+				break;
 
 			if (ca->discard) {
 				mutex_unlock(&ca->set->bucket_lock);
drivers/md/bcache/journal.c +30 -7
index 6ed066a0e7c0..6f9db98f2dfd 100644
@@ -309,6 +309,18 @@ void bch_journal_mark(struct cache_set *c, struct list_head *list)
 	}
 }
 
+bool is_discard_enabled(struct cache_set *s)
+{
+	struct cache *ca;
+	unsigned int i;
+
+	for_each_cache(ca, s, i)
+		if (ca->discard)
+			return true;
+
+	return false;
+}
+
 int bch_journal_replay(struct cache_set *s, struct list_head *list)
 {
 	int ret = 0, keys = 0, entries = 0;
@@ -322,9 +334,17 @@ int bch_journal_replay(struct cache_set *s, struct list_head *list)
 	list_for_each_entry(i, list, list) {
 		BUG_ON(i->pin && atomic_read(i->pin) != 1);
 
-		cache_set_err_on(n != i->j.seq, s,
-"bcache: journal entries %llu-%llu missing! (replaying %llu-%llu)",
-				 n, i->j.seq - 1, start, end);
+		if (n != i->j.seq) {
+			if (n == start && is_discard_enabled(s))
+				pr_info("bcache: journal entries %llu-%llu may be discarded! (replaying %llu-%llu)",
+					n, i->j.seq - 1, start, end);
+			else {
+				pr_err("bcache: journal entries %llu-%llu missing! (replaying %llu-%llu)",
+					n, i->j.seq - 1, start, end);
+				ret = -EIO;
+				goto err;
+			}
+		}
 
 		for (k = i->j.start;
 		     k < bset_bkey_last(&i->j);
@@ -513,11 +533,11 @@ static void journal_reclaim(struct cache_set *c)
 				  ca->sb.nr_this_dev);
 	}
 
-	bkey_init(k);
-	SET_KEY_PTRS(k, n);
-
-	if (n)
+	if (n) {
+		bkey_init(k);
+		SET_KEY_PTRS(k, n);
 		c->journal.blocks_free = c->sb.bucket_size >> c->block_bits;
+	}
 out:
 	if (!journal_full(&c->journal))
 		__closure_wake_up(&c->journal.wait);
@@ -641,6 +661,9 @@ static void journal_write_unlocked(struct closure *cl)
 		ca->journal.seq[ca->journal.cur_idx] = w->data->seq;
 	}
 
+	/* If KEY_PTRS(k) == 0, this jset gets lost in air */
+	BUG_ON(i == 0);
+
 	atomic_dec_bug(&fifo_back(&c->journal.pin));
 	bch_journal_next(&c->journal);
 	journal_reclaim(c);
drivers/md/bcache/super.c +13 -6
index ef28ddfff7c6..02757b90e402 100644
@@ -1355,6 +1355,7 @@ static void cache_set_free(struct closure *cl)
 	bch_btree_cache_free(c);
 	bch_journal_free(c);
 
+	mutex_lock(&bch_register_lock);
 	for_each_cache(ca, c, i)
 		if (ca) {
 			ca->set = NULL;
@@ -1377,7 +1378,6 @@ static void cache_set_free(struct closure *cl)
 		mempool_destroy(c->search);
 	kfree(c->devices);
 
-	mutex_lock(&bch_register_lock);
 	list_del(&c->list);
 	mutex_unlock(&bch_register_lock);
 
@@ -1558,7 +1558,7 @@ err:
 	return NULL;
 }
 
-static void run_cache_set(struct cache_set *c)
+static int run_cache_set(struct cache_set *c)
 {
 	const char *err = "cannot allocate memory";
 	struct cached_dev *dc, *t;
@@ -1650,7 +1650,9 @@ static void run_cache_set(struct cache_set *c)
 		if (j->version < BCACHE_JSET_VERSION_UUID)
 			__uuid_write(c);
 
-		bch_journal_replay(c, &journal);
+		err = "bcache: replay journal failed";
+		if (bch_journal_replay(c, &journal))
+			goto err;
 	} else {
 		pr_notice("invalidating existing data");
 
@@ -1718,11 +1720,13 @@ static void run_cache_set(struct cache_set *c)
 	flash_devs_run(c);
 
 	set_bit(CACHE_SET_RUNNING, &c->flags);
-	return;
+	return 0;
 err:
 	closure_sync(&cl);
 	/* XXX: test this, it's broken */
 	bch_cache_set_error(c, "%s", err);
+
+	return -EIO;
 }
 
 static bool can_attach_cache(struct cache *ca, struct cache_set *c)
@@ -1786,8 +1790,11 @@ found:
 	ca->set->cache[ca->sb.nr_this_dev] = ca;
 	c->cache_by_alloc[c->caches_loaded++] = ca;
 
-	if (c->caches_loaded == c->sb.nr_in_set)
-		run_cache_set(c);
+	if (c->caches_loaded == c->sb.nr_in_set) {
+		err = "failed to run cache set";
+		if (run_cache_set(c) < 0)
+			goto err;
+	}
 
 	return NULL;
 err:
drivers/md/dm-delay.c +2 -1
index b4c356a21123..e789a4aae4e7 100644
@@ -222,7 +222,8 @@ static void delay_dtr(struct dm_target *ti)
 {
 	struct delay_c *dc = ti->private;
 
-	destroy_workqueue(dc->kdelayd_wq);
+	if (dc->kdelayd_wq)
+		destroy_workqueue(dc->kdelayd_wq);
 
 	dm_put_device(ti, dc->dev_read);
 
drivers/md/md.c +4 -2
index 07f307402351..f71cca28ddda 100644
@@ -2690,8 +2690,10 @@ state_store(struct md_rdev *rdev, const char *buf, size_t len)
 			err = 0;
 		}
 	} else if (cmd_match(buf, "re-add")) {
-		if (test_bit(Faulty, &rdev->flags) && (rdev->raid_disk == -1) &&
-			rdev->saved_raid_disk >= 0) {
+		if (!rdev->mddev->pers)
+			err = -EINVAL;
+		else if (test_bit(Faulty, &rdev->flags) && (rdev->raid_disk == -1) &&
+				rdev->saved_raid_disk >= 0) {
 			/* clear_bit is performed _after_ all the devices
 			 * have their local Faulty bit cleared. If any writes
 			 * happen in the meantime in the local node, they
drivers/md/raid5.c +24 -5
index 17517889d46b..764e0e155ae2 100644
@@ -3861,7 +3861,7 @@ static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh,
 		/* now write out any block on a failed drive,
 		 * or P or Q if they were recomputed
 		 */
-		BUG_ON(s->uptodate < disks - 1); /* We don't need Q to recover */
+		dev = NULL;
 		if (s->failed == 2) {
 			dev = &sh->dev[s->failed_num[1]];
 			s->locked++;
@@ -3886,6 +3886,14 @@ static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh,
 			set_bit(R5_LOCKED, &dev->flags);
 			set_bit(R5_Wantwrite, &dev->flags);
 		}
+		if (WARN_ONCE(dev && !test_bit(R5_UPTODATE, &dev->flags),
+			      "%s: disk%td not up to date\n",
+			      mdname(conf->mddev),
+			      dev - (struct r5dev *) &sh->dev)) {
+			clear_bit(R5_LOCKED, &dev->flags);
+			clear_bit(R5_Wantwrite, &dev->flags);
+			s->locked--;
+		}
 		clear_bit(STRIPE_DEGRADED, &sh->state);
 
 		set_bit(STRIPE_INSYNC, &sh->state);
@@ -3897,15 +3905,26 @@ static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh,
 	case check_state_check_result:
 		sh->check_state = check_state_idle;
 
-		if (s->failed > 1)
-			break;
 		/* handle a successful check operation, if parity is correct
 		 * we are done.  Otherwise update the mismatch count and repair
 		 * parity if !MD_RECOVERY_CHECK
 		 */
 		if (sh->ops.zero_sum_result == 0) {
-			/* Any parity checked was correct */
-			set_bit(STRIPE_INSYNC, &sh->state);
+			/* both parities are correct */
+			if (!s->failed)
+				set_bit(STRIPE_INSYNC, &sh->state);
+			else {
+				/* in contrast to the raid5 case we can validate
+				 * parity, but still have a failure to write
+				 * back
+				 */
+				sh->check_state = check_state_compute_result;
+				/* Returning at this point means that we may go
+				 * off and bring p and/or q uptodate again so
+				 * we make sure to check zero_sum_result again
+				 * to verify if p or q need writeback
+				 */
+			}
 		} else {
 			atomic64_add(STRIPE_SECTORS, &conf->mddev->resync_mismatches);
 			if (test_bit(MD_RECOVERY_CHECK, &conf->mddev->recovery))
drivers/media/dvb-frontends/m88ds3103.c +4 -5
index d14d075ab1d6..9f0956e739a4 100644
@@ -309,6 +309,9 @@ static int m88ds3103_set_frontend(struct dvb_frontend *fe)
 	u16 u16tmp, divide_ratio = 0;
 	u32 tuner_frequency, target_mclk;
 	s32 s32tmp;
+	static const struct reg_sequence reset_buf[] = {
+		{0x07, 0x80}, {0x07, 0x00}
+	};
 
 	dev_dbg(&client->dev,
 		"delivery_system=%d modulation=%d frequency=%u symbol_rate=%d inversion=%d pilot=%d rolloff=%d\n",
@@ -321,11 +324,7 @@ static int m88ds3103_set_frontend(struct dvb_frontend *fe)
 	}
 
 	/* reset */
-	ret = regmap_write(dev->regmap, 0x07, 0x80);
-	if (ret)
-		goto err;
-
-	ret = regmap_write(dev->regmap, 0x07, 0x00);
+	ret = regmap_multi_reg_write(dev->regmap, reset_buf, 2);
 	if (ret)
 		goto err;
 
drivers/media/i2c/ov2659.c +4 -2
index 49109f4f5bb4..fadec1d70582 100644
@@ -1117,8 +1117,10 @@ static int ov2659_set_fmt(struct v4l2_subdev *sd,
 		if (ov2659_formats[index].code == mf->code)
 			break;
 
-	if (index < 0)
-		return -EINVAL;
+	if (index < 0) {
+		index = 0;
+		mf->code = ov2659_formats[index].code;
+	}
 
 	mf->colorspace = V4L2_COLORSPACE_SRGB;
 	mf->code = ov2659_formats[index].code;
drivers/media/i2c/soc_camera/ov6650.c +16 -11
index 1e4783b51a35..4e19f5e5d8cf 100644
@@ -839,9 +839,18 @@ static int ov6650_video_probe(struct i2c_client *client)
 	u8		pidh, pidl, midh, midl;
 	int		ret;
 
+	priv->clk = v4l2_clk_get(&client->dev, NULL);
+	if (IS_ERR(priv->clk)) {
+		ret = PTR_ERR(priv->clk);
+		dev_err(&client->dev, "v4l2_clk request err: %d\n", ret);
+		return ret;
+	}
+
 	ret = ov6650_s_power(&priv->subdev, 1);
 	if (ret < 0)
-		return ret;
+		goto eclkput;
+
+	msleep(20);
 
 	/*
 	 * check and show product ID and manufacturer ID
@@ -876,6 +885,11 @@ static int ov6650_video_probe(struct i2c_client *client)
 
 done:
 	ov6650_s_power(&priv->subdev, 0);
+	if (!ret)
+		return 0;
+eclkput:
+	v4l2_clk_put(priv->clk);
+
 	return ret;
 }
 
@@ -1033,18 +1047,9 @@ static int ov6650_probe(struct i2c_client *client,
 	priv->code	  = MEDIA_BUS_FMT_YUYV8_2X8;
 	priv->colorspace  = V4L2_COLORSPACE_JPEG;
 
-	priv->clk = v4l2_clk_get(&client->dev, NULL);
-	if (IS_ERR(priv->clk)) {
-		ret = PTR_ERR(priv->clk);
-		goto eclkget;
-	}
-
 	ret = ov6650_video_probe(client);
-	if (ret) {
-		v4l2_clk_put(priv->clk);
-eclkget:
+	if (ret)
 		v4l2_ctrl_handler_free(&priv->hdl);
-	}
 
 	return ret;
 }
drivers/media/pci/saa7146/hexium_gemini.c +2 -3
index 03cbcd2095c6..d4b3ce828285 100644
@@ -270,9 +270,8 @@ static int hexium_attach(struct saa7146_dev *dev, struct saa7146_pci_extension_d
 	/* enable i2c-port pins */
 	saa7146_write(dev, MC1, (MASK_08 | MASK_24 | MASK_10 | MASK_26));
 
-	hexium->i2c_adapter = (struct i2c_adapter) {
-		.name = "hexium gemini",
-	};
+	strscpy(hexium->i2c_adapter.name, "hexium gemini",
+		sizeof(hexium->i2c_adapter.name));
 	saa7146_i2c_adapter_prepare(dev, &hexium->i2c_adapter, SAA7146_I2C_BUS_BIT_RATE_480);
 	if (i2c_add_adapter(&hexium->i2c_adapter) < 0) {
 		DEB_S("cannot register i2c-device. skipping.\n");
drivers/media/pci/saa7146/hexium_orion.c +2 -3
index 15f0d66ff78a..214396b1ca73 100644
@@ -232,9 +232,8 @@ static int hexium_probe(struct saa7146_dev *dev)
 	saa7146_write(dev, DD1_STREAM_B, 0x00000000);
 	saa7146_write(dev, MC2, (MASK_09 | MASK_25 | MASK_10 | MASK_26));
 
-	hexium->i2c_adapter = (struct i2c_adapter) {
-		.name = "hexium orion",
-	};
+	strscpy(hexium->i2c_adapter.name, "hexium orion",
+		sizeof(hexium->i2c_adapter.name));
 	saa7146_i2c_adapter_prepare(dev, &hexium->i2c_adapter, SAA7146_I2C_BUS_BIT_RATE_480);
 	if (i2c_add_adapter(&hexium->i2c_adapter) < 0) {
 		DEB_S("cannot register i2c-device. skipping.\n");
drivers/media/platform/coda/coda-bit.c +3 -0
index d76511c1c1e3..a4639813cf35 100644
@@ -1829,6 +1829,9 @@ static int coda_prepare_decode(struct coda_ctx *ctx)
 	/* Clear decode success flag */
 	coda_write(dev, 0, CODA_RET_DEC_PIC_SUCCESS);
 
+	/* Clear error return value */
+	coda_write(dev, 0, CODA_RET_DEC_PIC_ERR_MB);
+
 	trace_coda_dec_pic_run(ctx, meta);
 
 	coda_command_async(ctx, CODA_COMMAND_PIC_RUN);
drivers/media/platform/vivid/vivid-vid-cap.c +1 -1
index a84954f1be34..9eb0bc4a8d97 100644
@@ -993,7 +993,7 @@ int vivid_vid_cap_s_selection(struct file *file, void *fh, struct v4l2_selection
 		rect_map_inside(&s->r, &dev->fmt_cap_rect);
 		if (dev->bitmap_cap && (compose->width != s->r.width ||
 					compose->height != s->r.height)) {
-			kfree(dev->bitmap_cap);
+			vfree(dev->bitmap_cap);
 			dev->bitmap_cap = NULL;
 		}
 		*compose = s->r;
drivers/media/radio/wl128x/fmdrv_common.c +5 -2
index ebc73b034249..51639a3f7abe 100644
@@ -494,7 +494,8 @@ int fmc_send_cmd(struct fmdev *fmdev, u8 fm_op, u16 type, void *payload,
 		return -EIO;
 	}
 	/* Send response data to caller */
-	if (response != NULL && response_len != NULL && evt_hdr->dlen) {
+	if (response != NULL && response_len != NULL && evt_hdr->dlen &&
+	    evt_hdr->dlen <= payload_len) {
 		/* Skip header info and copy only response data */
 		skb_pull(skb, sizeof(struct fm_event_msg_hdr));
 		memcpy(response, skb->data, evt_hdr->dlen);
@@ -590,6 +591,8 @@ static void fm_irq_handle_flag_getcmd_resp(struct fmdev *fmdev)
 		return;
 
 	fm_evt_hdr = (void *)skb->data;
+	if (fm_evt_hdr->dlen > sizeof(fmdev->irq_info.flag))
+		return;
 
 	/* Skip header info and copy only response data */
 	skb_pull(skb, sizeof(struct fm_event_msg_hdr));
@@ -1315,7 +1318,7 @@ static int load_default_rx_configuration(struct fmdev *fmdev)
 static int fm_power_up(struct fmdev *fmdev, u8 mode)
 {
 	u16 payload;
-	__be16 asic_id, asic_ver;
+	__be16 asic_id = 0, asic_ver = 0;
 	int resp_len, ret;
 	u8 fw_name[50];
 
drivers/media/usb/au0828/au0828-video.c +11 -5
index 7b2fe1b56039..1df23c01ad37 100644
@@ -711,6 +711,9 @@ static int au0828_analog_stream_enable(struct au0828_dev *d)
 
 	dprintk(1, "au0828_analog_stream_enable called\n");
 
+	if (test_bit(DEV_DISCONNECTED, &d->dev_state))
+		return -ENODEV;
+
 	iface = usb_ifnum_to_if(d->usbdev, 0);
 	if (iface && iface->cur_altsetting->desc.bAlternateSetting != 5) {
 		dprintk(1, "Changing intf#0 to alt 5\n");
@@ -799,9 +802,9 @@ int au0828_start_analog_streaming(struct vb2_queue *vq, unsigned int count)
 			return rc;
 		}
 
+		v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 1);
+
 		if (vq->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
-			v4l2_device_call_all(&dev->v4l2_dev, 0, video,
-						s_stream, 1);
 			dev->vid_timeout_running = 1;
 			mod_timer(&dev->vid_timeout, jiffies + (HZ / 10));
 		} else if (vq->type == V4L2_BUF_TYPE_VBI_CAPTURE) {
@@ -821,10 +824,11 @@ static void au0828_stop_streaming(struct vb2_queue *vq)
 
 	dprintk(1, "au0828_stop_streaming called %d\n", dev->streaming_users);
 
-	if (dev->streaming_users-- == 1)
+	if (dev->streaming_users-- == 1) {
 		au0828_uninit_isoc(dev);
+		v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0);
+	}
 
-	v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0);
 	dev->vid_timeout_running = 0;
 	del_timer_sync(&dev->vid_timeout);
 
@@ -853,8 +857,10 @@ void au0828_stop_vbi_streaming(struct vb2_queue *vq)
 	dprintk(1, "au0828_stop_vbi_streaming called %d\n",
 		dev->streaming_users);
 
-	if (dev->streaming_users-- == 1)
+	if (dev->streaming_users-- == 1) {
 		au0828_uninit_isoc(dev);
+		v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0);
+	}
 
 	spin_lock_irqsave(&dev->slock, flags);
 	if (dev->isoc_ctl.vbi_buf != NULL) {
drivers/media/usb/cpia2/cpia2_v4l.c +1 -2
index d793c630f1dd..05e7edb213de 100644
@@ -1248,8 +1248,7 @@ static int __init cpia2_init(void)
 	LOG("%s v%s\n",
 	    ABOUT, CPIA_VERSION);
 	check_parameters();
-	cpia2_usb_init();
-	return 0;
+	return cpia2_usb_init();
 }
 
 
drivers/media/usb/go7007/go7007-fw.c +2 -2
index 60bf5f0644d1..a5efcd4f7b4f 100644
@@ -1499,8 +1499,8 @@ static int modet_to_package(struct go7007 *go, __le16 *code, int space)
 	return cnt;
 }
 
-static int do_special(struct go7007 *go, u16 type, __le16 *code, int space,
-			int *framelen)
+static noinline_for_stack int do_special(struct go7007 *go, u16 type,
+					 __le16 *code, int space, int *framelen)
 {
 	switch (type) {
 	case SPECIAL_FRM_HEAD:
drivers/media/usb/pvrusb2/pvrusb2-hdw.c +2 -0
index 0533ef20decf..232b0fd3e478 100644
@@ -670,6 +670,8 @@ static int ctrl_get_input(struct pvr2_ctrl *cptr,int *vp)
 
 static int ctrl_check_input(struct pvr2_ctrl *cptr,int v)
 {
+	if (v < 0 || v > PVR2_CVAL_INPUT_MAX)
+		return 0;
 	return ((1 << v) & cptr->hdw->input_allowed_mask) != 0;
 }
 
drivers/media/usb/pvrusb2/pvrusb2-hdw.h +1 -0
index a82a00dd7329..80869990ffbb 100644
@@ -54,6 +54,7 @@
 #define PVR2_CVAL_INPUT_COMPOSITE 2
 #define PVR2_CVAL_INPUT_SVIDEO 3
 #define PVR2_CVAL_INPUT_RADIO 4
+#define PVR2_CVAL_INPUT_MAX PVR2_CVAL_INPUT_RADIO
 
 enum pvr2_config {
 	pvr2_config_empty,    /* No configuration */
drivers/media/usb/siano/smsusb.c +20 -13
index ec30a004f319..e8f7a1f56be5 100644
@@ -391,6 +391,7 @@ static int smsusb_init_device(struct usb_interface *intf, int board_id)
 	struct smsusb_device_t *dev;
 	void *mdev;
 	int i, rc;
+	int align = 0;
 
 	/* create device object */
 	dev = kzalloc(sizeof(struct smsusb_device_t), GFP_KERNEL);
@@ -402,6 +403,24 @@ static int smsusb_init_device(struct usb_interface *intf, int board_id)
 	dev->udev = interface_to_usbdev(intf);
 	dev->state = SMSUSB_DISCONNECTED;
 
+	for (i = 0; i < intf->cur_altsetting->desc.bNumEndpoints; i++) {
+		struct usb_endpoint_descriptor *desc =
+				&intf->cur_altsetting->endpoint[i].desc;
+
+		if (desc->bEndpointAddress & USB_DIR_IN) {
+			dev->in_ep = desc->bEndpointAddress;
+			align = usb_endpoint_maxp(desc) - sizeof(struct sms_msg_hdr);
+		} else {
+			dev->out_ep = desc->bEndpointAddress;
+		}
+	}
+
+	pr_debug("in_ep = %02x, out_ep = %02x\n", dev->in_ep, dev->out_ep);
+	if (!dev->in_ep || !dev->out_ep || align < 0) {  /* Missing endpoints? */
+		smsusb_term_device(intf);
+		return -ENODEV;
+	}
+
 	params.device_type = sms_get_board(board_id)->type;
 
 	switch (params.device_type) {
@@ -416,24 +435,12 @@ static int smsusb_init_device(struct usb_interface *intf, int board_id)
 		/* fall-thru */
 	default:
 		dev->buffer_size = USB2_BUFFER_SIZE;
-		dev->response_alignment =
-		    le16_to_cpu(dev->udev->ep_in[1]->desc.wMaxPacketSize) -
-		    sizeof(struct sms_msg_hdr);
+		dev->response_alignment = align;
 
 		params.flags |= SMS_DEVICE_FAMILY2;
 		break;
 	}
 
-	for (i = 0; i < intf->cur_altsetting->desc.bNumEndpoints; i++) {
-		if (intf->cur_altsetting->endpoint[i].desc. bEndpointAddress & USB_DIR_IN)
-			dev->in_ep = intf->cur_altsetting->endpoint[i].desc.bEndpointAddress;
-		else
-			dev->out_ep = intf->cur_altsetting->endpoint[i].desc.bEndpointAddress;
-	}
-
-	pr_debug("in_ep = %02x, out_ep = %02x\n",
-		dev->in_ep, dev->out_ep);
-
 	params.device = &dev->udev->dev;
 	params.buffer_size = dev->buffer_size;
 	params.num_buffers = MAX_BUFFERS;
drivers/media/usb/uvc/uvc_driver.c +1 -1
index f2e3fdf385cc..ebd1b882556d 100644
@@ -868,7 +868,7 @@ static struct uvc_entity *uvc_alloc_entity(u16 type, u8 id,
 	unsigned int size;
 	unsigned int i;
 
-	extra_size = ALIGN(extra_size, sizeof(*entity->pads));
+	extra_size = roundup(extra_size, sizeof(*entity->pads));
 	num_inputs = (type & UVC_TERM_OUTPUT) ? num_pads : num_pads - 1;
 	size = sizeof(*entity) + extra_size + sizeof(*entity->pads) * num_pads
 	     + num_inputs;
drivers/memory/tegra/mc.c +1 -1
index 6ab481ee8ece..8ac02b6c162f 100644
@@ -72,7 +72,7 @@ static int tegra_mc_setup_latency_allowance(struct tegra_mc *mc)
 	u32 value;
 
 	/* compute the number of MC clock cycles per tick */
-	tick = mc->tick * clk_get_rate(mc->clk);
+	tick = (unsigned long long)mc->tick * clk_get_rate(mc->clk);
 	do_div(tick, NSEC_PER_SEC);
 
 	value = readl(mc->regs + MC_EMEM_ARB_CFG);
drivers/misc/genwqe/card_dev.c +2 -0
index c0012ca4229e..74923ffb0df1 100644
@@ -782,6 +782,8 @@ static int genwqe_pin_mem(struct genwqe_file *cfile, struct genwqe_mem *m)
 
 	if ((m->addr == 0x0) || (m->size == 0))
 		return -EINVAL;
+	if (m->size > ULONG_MAX - PAGE_SIZE - (m->addr & ~PAGE_MASK))
+		return -EINVAL;
 
 	map_addr = (m->addr & PAGE_MASK);
 	map_size = round_up(m->size + (m->addr & ~PAGE_MASK), PAGE_SIZE);
drivers/misc/genwqe/card_utils.c +4 -0
index 0c15ba21fa54..d4c719683a8a 100644
@@ -582,6 +582,10 @@ int genwqe_user_vmap(struct genwqe_dev *cd, struct dma_mapping *m, void *uaddr,
 	/* determine space needed for page_list. */
 	data = (unsigned long)uaddr;
 	offs = offset_in_page(data);
+	if (size > ULONG_MAX - PAGE_SIZE - offs) {
+		m->size = 0;	/* mark unused and not added */
+		return -EINVAL;
+	}
 	m->nr_pages = DIV_ROUND_UP(offs + size, PAGE_SIZE);
 
 	m->page_list = kcalloc(m->nr_pages,
drivers/mmc/core/sd.c +8 -0
index 967535d76e34..fb8741f18c1f 100644
@@ -216,6 +216,14 @@ static int mmc_decode_scr(struct mmc_card *card)
 
 	if (scr->sda_spec3)
 		scr->cmds = UNSTUFF_BITS(resp, 32, 2);
+
+	/* SD Spec says: any SD Card shall set at least bits 0 and 2 */
+	if (!(scr->bus_widths & SD_SCR_BUS_WIDTH_1) ||
+	    !(scr->bus_widths & SD_SCR_BUS_WIDTH_4)) {
+		pr_err("%s: invalid bus width\n", mmc_hostname(card->host));
+		return -EINVAL;
+	}
+
 	return 0;
 }
 
drivers/mmc/host/mmc_spi.c +4 -0
index e03ec74f3fb0..40a369c7005a 100644
@@ -819,6 +819,10 @@ mmc_spi_readblock(struct mmc_spi_host *host, struct spi_transfer *t,
 	}
 
 	status = spi_sync_locked(spi, &host->m);
+	if (status < 0) {
+		dev_dbg(&spi->dev, "read error %d\n", status);
+		return status;
+	}
 
 	if (host->dma_dev) {
 		dma_sync_single_for_cpu(host->dma_dev,
drivers/mmc/host/sdhci-of-esdhc.c +5 -0
index ac66c61d9433..356b294c93c9 100644
@@ -624,6 +624,11 @@ static int sdhci_esdhc_probe(struct platform_device *pdev)
 	if (esdhc->vendor_ver > VENDOR_V_22)
 		host->quirks &= ~SDHCI_QUIRK_NO_BUSY_IRQ;
 
+	if (of_find_compatible_node(NULL, NULL, "fsl,p2020-esdhc")) {
+		host->quirks2 |= SDHCI_QUIRK_RESET_AFTER_REQUEST;
+		host->quirks2 |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;
+	}
+
 	if (of_device_is_compatible(np, "fsl,p5040-esdhc") ||
 	    of_device_is_compatible(np, "fsl,p5020-esdhc") ||
 	    of_device_is_compatible(np, "fsl,p4080-esdhc") ||
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +18 -0
index 403fa8d98aa3..d450d8b3708c 100644
@@ -12824,6 +12824,24 @@ static netdev_features_t bnx2x_features_check(struct sk_buff *skb,
 					      struct net_device *dev,
 					      netdev_features_t features)
 {
+	/*
+	 * A skb with gso_size + header length > 9700 will cause a
+	 * firmware panic. Drop GSO support.
+	 *
+	 * Eventually the upper layer should not pass these packets down.
+	 *
+	 * For speed, if the gso_size is <= 9000, assume there will
+	 * not be 700 bytes of headers and pass it through. Only do a
+	 * full (slow) validation if the gso_size is > 9000.
+	 *
+	 * (Due to the way SKB_BY_FRAGS works this will also do a full
+	 * validation in that case.)
+	 */
+	if (unlikely(skb_is_gso(skb) &&
+		     (skb_shinfo(skb)->gso_size > 9000) &&
+		     !skb_gso_validate_mac_len(skb, 9700)))
+		features &= ~NETIF_F_GSO_MASK;
+
 	features = vlan_features_check(skb, features);
 	return vxlan_features_check(skb, features);
 }
drivers/net/ethernet/broadcom/bnxt/bnxt.c +2 -0
index d9ab970dcbe9..81282b811a6c 100644
@@ -1140,6 +1140,8 @@ static int bnxt_rx_pkt(struct bnxt *bp, struct bnxt_napi *bnapi, u32 *raw_cons,
 		skb = bnxt_copy_skb(bnapi, data, len, dma_addr);
 		bnxt_reuse_rx_data(rxr, cons, data);
 		if (!skb) {
+			if (agg_bufs)
+				bnxt_reuse_rx_agg_bufs(bnapi, cp_cons, agg_bufs);
 			rc = -ENOMEM;
 			goto next_rx;
 		}
drivers/net/ethernet/chelsio/cxgb3/l2t.h +1 -1
index 8cffcdfd5678..38b5858c335a 100644
@@ -75,8 +75,8 @@ struct l2t_data {
 	struct l2t_entry *rover;	/* starting point for next allocation */
 	atomic_t nfree;		/* number of free entries */
 	rwlock_t lock;
-	struct l2t_entry l2tab[0];
 	struct rcu_head rcu_head;	/* to handle rcu cleanup */
+	struct l2t_entry l2tab[];
 };
 
 typedef void (*arp_failure_handler_func)(struct t3cdev * dev,
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +12 -3
index a3e1498ca67c..3b96622de8ff 100644
@@ -5061,15 +5061,24 @@ static int __init cxgb4_init_module(void)
 
 	ret = pci_register_driver(&cxgb4_driver);
 	if (ret < 0)
-		debugfs_remove(cxgb4_debugfs_root);
+		goto err_pci;
 
 #if IS_ENABLED(CONFIG_IPV6)
 	if (!inet6addr_registered) {
-		register_inet6addr_notifier(&cxgb4_inet6addr_notifier);
-		inet6addr_registered = true;
+		ret = register_inet6addr_notifier(&cxgb4_inet6addr_notifier);
+		if (ret)
+			pci_unregister_driver(&cxgb4_driver);
+		else
+			inet6addr_registered = true;
 	}
 #endif
 
+	if (ret == 0)
+		return ret;
+
+err_pci:
+	debugfs_remove(cxgb4_debugfs_root);
+
 	return ret;
 }
 
drivers/net/ethernet/intel/i40e/i40e_main.c +8 -0
index 06b38f50980c..22c43a776c6c 100644
@@ -2263,6 +2263,10 @@ void i40e_vlan_stripping_enable(struct i40e_vsi *vsi)
 	struct i40e_vsi_context ctxt;
 	i40e_status ret;
 
+	/* Don't modify stripping options if a port VLAN is active */
+	if (vsi->info.pvid)
+		return;
+
 	if ((vsi->info.valid_sections &
 	     cpu_to_le16(I40E_AQ_VSI_PROP_VLAN_VALID)) &&
 	    ((vsi->info.port_vlan_flags & I40E_AQ_VSI_PVLAN_MODE_MASK) == 0))
@@ -2293,6 +2297,10 @@ void i40e_vlan_stripping_disable(struct i40e_vsi *vsi)
 	struct i40e_vsi_context ctxt;
 	i40e_status ret;
 
+	/* Don't modify stripping options if a port VLAN is active */
+	if (vsi->info.pvid)
+		return;
+
 	if ((vsi->info.valid_sections &
 	     cpu_to_le16(I40E_AQ_VSI_PROP_VLAN_VALID)) &&
 	    ((vsi->info.port_vlan_flags & I40E_AQ_VSI_PVLAN_EMOD_MASK) ==
drivers/net/ethernet/marvell/mvpp2.c +4 -6
index 42305f3234ff..03f0d20aa08b 100644
@@ -3940,7 +3940,7 @@ static inline void mvpp2_gmac_max_rx_size_set(struct mvpp2_port *port)
 /* Set defaults to the MVPP2 port */
 static void mvpp2_defaults_set(struct mvpp2_port *port)
 {
-	int tx_port_num, val, queue, ptxq, lrxq;
+	int tx_port_num, val, queue, lrxq;
 
 	/* Configure port to loopback if needed */
 	if (port->flags & MVPP2_F_LOOPBACK)
@@ -3960,11 +3960,9 @@ static void mvpp2_defaults_set(struct mvpp2_port *port)
 	mvpp2_write(port->priv, MVPP2_TXP_SCHED_CMD_1_REG, 0);
 
 	/* Close bandwidth for all queues */
-	for (queue = 0; queue < MVPP2_MAX_TXQ; queue++) {
-		ptxq = mvpp2_txq_phys(port->id, queue);
+	for (queue = 0; queue < MVPP2_MAX_TXQ; queue++)
 		mvpp2_write(port->priv,
-			    MVPP2_TXQ_SCHED_TOKEN_CNTR_REG(ptxq), 0);
-	}
+			    MVPP2_TXQ_SCHED_TOKEN_CNTR_REG(queue), 0);
 
 	/* Set refill period to 1 usec, refill tokens
 	 * and bucket size to maximum
@@ -4722,7 +4720,7 @@ static void mvpp2_txq_deinit(struct mvpp2_port *port,
 	txq->descs_phys        = 0;
 
 	/* Set minimum bandwidth for disabled TXQs */
-	mvpp2_write(port->priv, MVPP2_TXQ_SCHED_TOKEN_CNTR_REG(txq->id), 0);
+	mvpp2_write(port->priv, MVPP2_TXQ_SCHED_TOKEN_CNTR_REG(txq->log_id), 0);
 
 	/* Set Tx descriptors queue starting address and size */
 	mvpp2_write(port->priv, MVPP2_TXQ_NUM_REG, txq->id);
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c +3 -1
index bcfac000199e..fcd1e6b3950d 100644
@@ -1906,6 +1906,8 @@ static int mlx4_en_set_tunable(struct net_device *dev,
 	return ret;
 }
 
+#define MLX4_EEPROM_PAGE_LEN 256
+
 static int mlx4_en_get_module_info(struct net_device *dev,
 				   struct ethtool_modinfo *modinfo)
 {
@@ -1940,7 +1942,7 @@ static int mlx4_en_get_module_info(struct net_device *dev,
 		break;
 	case MLX4_MODULE_ID_SFP:
 		modinfo->type = ETH_MODULE_SFF_8472;
-		modinfo->eeprom_len = ETH_MODULE_SFF_8472_LEN;
+		modinfo->eeprom_len = MLX4_EEPROM_PAGE_LEN;
 		break;
 	default:
 		return -ENOSYS;
drivers/net/ethernet/mellanox/mlx4/mcg.c +1 -1
index 897d061e4f03..3bf63de3a725 100644
@@ -1485,7 +1485,7 @@ int mlx4_flow_steer_promisc_add(struct mlx4_dev *dev, u8 port,
 	rule.port = port;
 	rule.qpn = qpn;
 	INIT_LIST_HEAD(&rule.list);
-	mlx4_err(dev, "going promisc on %x\n", port);
+	mlx4_info(dev, "going promisc on %x\n", port);
 
 	return  mlx4_flow_attach(dev, &rule, regid_p);
 }
drivers/net/ethernet/mellanox/mlx4/port.c +0 -5
index c2b21313dba7..a9c4818448f9 100644
@@ -1398,11 +1398,6 @@ int mlx4_get_module_info(struct mlx4_dev *dev, u8 port,
 		size -= offset + size - I2C_PAGE_SIZE;
 
 	i2c_addr = I2C_ADDR_LOW;
-	if (offset >= I2C_PAGE_SIZE) {
-		/* Reset offset to high page */
-		i2c_addr = I2C_ADDR_HIGH;
-		offset -= I2C_PAGE_SIZE;
-	}
 
 	cable_info = (struct mlx4_cable_info *)inmad->data;
 	cable_info->dev_mem_address = cpu_to_be16(offset);
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +2 -1
index 90d95b3654f5..6bdde92869fb 100644
@@ -154,7 +154,8 @@ int stmmac_mdio_reset(struct mii_bus *bus)
 			of_property_read_u32_array(np,
 				"snps,reset-delays-us", data->delays, 3);
 
-			if (gpio_request(data->reset_gpio, "mdio-reset"))
+			if (devm_gpio_request(priv->device, data->reset_gpio,
+					      "mdio-reset"))
 				return 0;
 		}
 
drivers/net/ppp/ppp_deflate.c +14 -6
index b5edc7f96a39..685e875f5164 100644
@@ -610,12 +610,20 @@ static struct compressor ppp_deflate_draft = {
 
 static int __init deflate_init(void)
 {
-        int answer = ppp_register_compressor(&ppp_deflate);
-        if (answer == 0)
-                printk(KERN_INFO
-		       "PPP Deflate Compression module registered\n");
-	ppp_register_compressor(&ppp_deflate_draft);
-        return answer;
+	int rc;
+
+	rc = ppp_register_compressor(&ppp_deflate);
+	if (rc)
+		return rc;
+
+	rc = ppp_register_compressor(&ppp_deflate_draft);
+	if (rc) {
+		ppp_unregister_compressor(&ppp_deflate);
+		return rc;
+	}
+
+	pr_info("PPP Deflate Compression module registered\n");
+	return 0;
 }
 
 static void __exit deflate_cleanup(void)
drivers/net/usb/cdc_ncm.c +2 -2
index 36e1377fc954..1e921e5eddc7 100644
@@ -727,7 +727,7 @@ int cdc_ncm_bind_common(struct usbnet *dev, struct usb_interface *intf, u8 data_
 	int err;
 	u8 iface_no;
 	struct usb_cdc_parsed_header hdr;
-	u16 curr_ntb_format;
+	__le16 curr_ntb_format;
 
 	ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
 	if (!ctx)
@@ -841,7 +841,7 @@ int cdc_ncm_bind_common(struct usbnet *dev, struct usb_interface *intf, u8 data_
 			goto error2;
 		}
 
-		if (curr_ntb_format == USB_CDC_NCM_NTB32_FORMAT) {
+		if (curr_ntb_format == cpu_to_le16(USB_CDC_NCM_NTB32_FORMAT)) {
 			dev_info(&intf->dev, "resetting NTB format to 16-bit");
 			err = usbnet_write_cmd(dev, USB_CDC_SET_NTB_FORMAT,
 					       USB_TYPE_CLASS | USB_DIR_OUT
drivers/net/usb/usbnet.c +6 -0
index 9710cf71054a..2502681369cd 100644
@@ -499,6 +499,7 @@ static int rx_submit (struct usbnet *dev, struct urb *urb, gfp_t flags)
 
 	if (netif_running (dev->net) &&
 	    netif_device_present (dev->net) &&
+	    test_bit(EVENT_DEV_OPEN, &dev->flags) &&
 	    !test_bit (EVENT_RX_HALT, &dev->flags) &&
 	    !test_bit (EVENT_DEV_ASLEEP, &dev->flags)) {
 		switch (retval = usb_submit_urb (urb, GFP_ATOMIC)) {
@@ -1385,6 +1386,11 @@ netdev_tx_t usbnet_start_xmit (struct sk_buff *skb,
 		spin_unlock_irqrestore(&dev->txq.lock, flags);
 		goto drop;
 	}
+	if (netif_queue_stopped(net)) {
+		usb_autopm_put_interface_async(dev->intf);
+		spin_unlock_irqrestore(&dev->txq.lock, flags);
+		goto drop;
+	}
 
 #ifdef CONFIG_PM
 	/* if this triggers the device is still a sleep */
drivers/net/wireless/at76c50x-usb.c +2 -2
index dab25136214a..da14eca2aa2c 100644
@@ -2582,8 +2582,8 @@ static int __init at76_mod_init(void)
 	if (result < 0)
 		printk(KERN_ERR DRIVER_NAME
 		       ": usb_register failed (status %d)\n", result);
-
-	led_trigger_register_simple("at76_usb-tx", &ledtrig_tx);
+	else
+		led_trigger_register_simple("at76_usb-tx", &ledtrig_tx);
 	return result;
 }
 
drivers/net/wireless/b43/phy_lp.c +3 -3
index 058a9f232050..55cb07693ae8 100644
@@ -1834,7 +1834,7 @@ static void lpphy_papd_cal(struct b43_wldev *dev, struct lpphy_tx_gains gains,
 static void lpphy_papd_cal_txpwr(struct b43_wldev *dev)
 {
 	struct b43_phy_lp *lpphy = dev->phy.lp;
-	struct lpphy_tx_gains gains, oldgains;
+	struct lpphy_tx_gains oldgains;
 	int old_txpctl, old_afe_ovr, old_rf, old_bbmult;
 
 	lpphy_read_tx_pctl_mode_from_hardware(dev);
@@ -1848,9 +1848,9 @@ static void lpphy_papd_cal_txpwr(struct b43_wldev *dev)
 	lpphy_set_tx_power_control(dev, B43_LPPHY_TXPCTL_OFF);
 
 	if (dev->dev->chip_id == 0x4325 && dev->dev->chip_rev == 0)
-		lpphy_papd_cal(dev, gains, 0, 1, 30);
+		lpphy_papd_cal(dev, oldgains, 0, 1, 30);
 	else
-		lpphy_papd_cal(dev, gains, 0, 1, 65);
+		lpphy_papd_cal(dev, oldgains, 0, 1, 65);
 
 	if (old_afe_ovr)
 		lpphy_set_tx_gains(dev, oldgains);
drivers/net/wireless/brcm80211/brcmfmac/bus.h +3 -1
index 230cad788ace..84b8b1eaa22c 100644
@@ -214,7 +214,9 @@ bool brcmf_c_prec_enq(struct device *dev, struct pktq *q, struct sk_buff *pkt,
 		      int prec);
 
 /* Receive frame for delivery to OS.  Callee disposes of rxp. */
-void brcmf_rx_frame(struct device *dev, struct sk_buff *rxp);
+void brcmf_rx_frame(struct device *dev, struct sk_buff *rxp, bool handle_event);
+/* Receive async event packet from firmware. Callee disposes of rxp. */
+void brcmf_rx_event(struct device *dev, struct sk_buff *rxp);
 
 /* Indication from bus module regarding presence/insertion of dongle. */
 int brcmf_attach(struct device *dev);
drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c +20 -3
index ad35e760ed3f..231c0ba6acb9 100644
@@ -3328,9 +3328,15 @@ brcmf_notify_sched_scan_results(struct brcmf_if *ifp,
 	struct brcmf_pno_scanresults_le *pfn_result;
 	u32 result_count;
 	u32 status;
+	u32 datalen;
 
 	brcmf_dbg(SCAN, "Enter\n");
 
+	if (e->datalen < (sizeof(*pfn_result) + sizeof(*netinfo))) {
+		brcmf_dbg(SCAN, "Event data to small. Ignore\n");
+		return 0;
+	}
+
 	if (e->event_code == BRCMF_E_PFN_NET_LOST) {
 		brcmf_dbg(SCAN, "PFN NET LOST event. Do Nothing\n");
 		return 0;
@@ -3349,6 +3355,14 @@ brcmf_notify_sched_scan_results(struct brcmf_if *ifp,
 	if (result_count > 0) {
 		int i;
 
+		data += sizeof(struct brcmf_pno_scanresults_le);
+		netinfo_start = (struct brcmf_pno_net_info_le *)data;
+		datalen = e->datalen - ((void *)netinfo_start - (void *)pfn_result);
+		if (datalen < result_count * sizeof(*netinfo)) {
+			brcmf_err("insufficient event data\n");
+			goto out_err;
+		}
+
 		request = kzalloc(sizeof(*request), GFP_KERNEL);
 		ssid = kcalloc(result_count, sizeof(*ssid), GFP_KERNEL);
 		channel = kcalloc(result_count, sizeof(*channel), GFP_KERNEL);
@@ -3358,9 +3372,6 @@ brcmf_notify_sched_scan_results(struct brcmf_if *ifp,
 		}
 
 		request->wiphy = wiphy;
-		data += sizeof(struct brcmf_pno_scanresults_le);
-		netinfo_start = (struct brcmf_pno_net_info_le *)data;
-
 		for (i = 0; i < result_count; i++) {
 			netinfo = &netinfo_start[i];
 			if (!netinfo) {
@@ -3370,6 +3381,8 @@ brcmf_notify_sched_scan_results(struct brcmf_if *ifp,
 				goto out_err;
 			}
 
+			if (netinfo->SSID_len > IEEE80211_MAX_SSID_LEN)
+				netinfo->SSID_len = IEEE80211_MAX_SSID_LEN;
 			brcmf_dbg(SCAN, "SSID:%s Channel:%d\n",
 				  netinfo->SSID, netinfo->channel);
 			memcpy(ssid[i].ssid, netinfo->SSID, netinfo->SSID_len);
@@ -4836,6 +4849,8 @@ static s32 brcmf_get_assoc_ies(struct brcmf_cfg80211_info *cfg,
 		conn_info->req_ie =
 		    kmemdup(cfg->extra_buf, conn_info->req_ie_len,
 			    GFP_KERNEL);
+		if (!conn_info->req_ie)
+			conn_info->req_ie_len = 0;
 	} else {
 		conn_info->req_ie_len = 0;
 		conn_info->req_ie = NULL;
@@ -4852,6 +4867,8 @@ static s32 brcmf_get_assoc_ies(struct brcmf_cfg80211_info *cfg,
 		conn_info->resp_ie =
 		    kmemdup(cfg->extra_buf, conn_info->resp_ie_len,
 			    GFP_KERNEL);
+		if (!conn_info->resp_ie)
+			conn_info->resp_ie_len = 0;
 	} else {
 		conn_info->resp_ie_len = 0;
 		conn_info->resp_ie = NULL;
drivers/net/wireless/brcm80211/brcmfmac/core.c +36 -9

69 lines not on this page · raw message

drivers/net/wireless/brcm80211/brcmfmac/fweh.c +12 -45

93 lines not on this page · raw message

drivers/net/wireless/brcm80211/brcmfmac/fweh.h +66 -16

118 lines not on this page · raw message

drivers/net/wireless/brcm80211/brcmfmac/msgbuf.c +24 -18

15 lines not on this page · raw message

drivers/net/wireless/brcm80211/brcmfmac/p2p.c +10 -0
index 3196245ab820..e6c8b0d5afe0 100644

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

drivers/net/wireless/brcm80211/brcmfmac/sdio.c +24 -8
index 35f62b00f1df..9954e641c943 100644

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

drivers/net/wireless/brcm80211/brcmfmac/usb.c +17 -12
index 689e64d004bc..3002268e57f3 100644

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

drivers/net/wireless/brcm80211/brcmfmac/vendor.c +3 -2
index 8eff2753abad..d493021f6031 100644

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

drivers/net/wireless/cw1200/main.c +5 -0
index 0e51e27d2e3f..317daa968e03 100644

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

drivers/net/wireless/mwifiex/cfp.c +3 -0
index 3ddb8ec676ed..6dd331dfb517 100644

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

drivers/net/wireless/realtek/rtlwifi/base.c +5 -0
index aab752328c26..5013d8c1d4a6 100644

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

drivers/parisc/ccio-dma.c +1 -3
index 34f1d6b41fb9..cc3708ea8084 100644

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

drivers/parisc/sba_iommu.c +1 -2
index d6326144ce01..f3b9746157f8 100644

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

drivers/pci/quirks.c +1 -0
index d85010ebac5a..36c6f3702167 100644

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

drivers/pinctrl/pinctrl-pistachio.c +2 -0
index 98a459b1c095..86e8d989092c 100644

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

drivers/power/power_supply_sysfs.c +0 -6
index ed2d7fd0c734..488dd7eb0aeb 100644

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

drivers/rtc/rtc-88pm860x.c +1 -1
index 19e53b3b8e00..166faae3a59c 100644

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

drivers/s390/cio/cio.h +1 -1
index a01376ae1749..fdb87520543f 100644

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

drivers/s390/scsi/zfcp_ext.h +1 -0
index a39a74500e23..aeb93478482f 100644

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

drivers/s390/scsi/zfcp_scsi.c +9 -0
index bdb257eaa2e5..68146b398603 100644

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

drivers/s390/scsi/zfcp_sysfs.c +49 -6

55 lines not on this page · raw message

drivers/s390/scsi/zfcp_unit.c +7 -1
index 157d3d203ba1..f00693698abc 100644

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

drivers/scsi/libsas/sas_expander.c +5 -0
index 1a6f65db615e..ee1f9ee995e5 100644

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

drivers/scsi/lpfc/lpfc_hbadisc.c +10 -1
index 4131addfb872..a67950908db1 100644

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

drivers/scsi/qla4xxx/ql4_os.c +1 -1
index c158967b59d7..d220b4f691c7 100644

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

drivers/scsi/sd.c +1 -2
index 62adaca8fb97..91b9eca75b75 100644

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

drivers/scsi/ufs/ufshcd.c +20 -8
index c94d465de941..7322a17660d1 100644

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

drivers/spi/spi-pxa2xx.c +6 -2
index 3cac73e4c3e4..e87b6fc9f4c6 100644

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

drivers/spi/spi-rspi.c +6 -3
index 9882d93e7566..0556259377f7 100644

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

drivers/spi/spi-tegra114.c +18 -14
index 73779cecc3bb..705f515863d4 100644

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

drivers/spi/spi-topcliff-pch.c +13 -2
index 93dfcee0f987..9f30a4ab2004 100644

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

drivers/spi/spi.c +2 -0
index 04fd651f9e3e..c132c676df3a 100644

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

drivers/ssb/bridge_pcmcia_80211.c +7 -2
index d70568ea02d5..2ff7d90e166a 100644

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

drivers/staging/iio/magnetometer/hmc5843_i2c.c +6 -1
index 3e06ceb32059..676a8e329eeb 100644

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

drivers/staging/iio/magnetometer/hmc5843_spi.c +6 -1
index 8be198058ea2..fded442a3c1d 100644

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

drivers/tty/ipwireless/main.c +8 -0
index 655c7948261c..2fa4f9123469 100644

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

drivers/tty/serial/max310x.c +1 -1
index be55fb6def89..0ac0c618954e 100644

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

drivers/tty/serial/msm_serial.c +4 -1
index 8c4707d5778e..5f0ded6fc4e9 100644

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

drivers/tty/vt/keyboard.c +27 -6
index 988c564b61a8..fd92c842504d 100644

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

drivers/usb/core/config.c +2 -2
index 6a287c81a7be..aef208585544 100644

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

drivers/usb/core/hcd.c +3 -0
index 9c4f9b6e57e2..99c146f4b6b5 100644

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

drivers/usb/core/hub.c +4 -1
index 7c87c0b38bcf..6e307de25163 100644

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

drivers/usb/core/quirks.c +3 -0
index 733479ddf8a7..38c7676e7a82 100644

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

drivers/usb/host/xhci.c +11 -13
index e3fdc799ad6e..ed152b8ea645 100644

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

drivers/usb/misc/rio500.c +33 -8

41 lines not on this page · raw message

drivers/usb/misc/sisusbvga/sisusb.c +8 -7
index 306d6852ebc7..b9d50020c684 100644

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

drivers/video/fbdev/core/fbcmap.c +2 -0
index 68a113594808..2811c4afde01 100644

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

drivers/video/fbdev/core/modedb.c +3 -0
index de119f11b78f..455a15f70172 100644

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

drivers/video/fbdev/sm712.h +4 -8
index aad1cc4be34a..c7ebf03b8d53 100644

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

drivers/video/fbdev/sm712fb.c +196 -47

243 lines not on this page · raw message

drivers/w1/w1_io.c +1 -2
index 282092421cc9..1a9d9ec8db4d 100644

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

drivers/xen/xen-pciback/pciback_ops.c +0 -2
index fb0221434f81..49c5f0e9600a 100644

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

drivers/xen/xenbus/xenbus_dev_frontend.c +1 -1
index 816a0e08ef10..d7591efa7775 100644

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

fs/btrfs/backref.c +12 -6
index e2f659dc5745..81c5d07a2af1 100644

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

fs/btrfs/extent-tree.c +19 -6
index 978bbfed5a2c..df2bb4b61a00 100644

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

fs/btrfs/file.c +12 -0
index 052973620595..d056060529f8 100644

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

fs/btrfs/sysfs.c +6 -1
index e0ac85949067..e6aaa15505c5 100644

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

fs/btrfs/tree-log.c +6 -2
index c7190f322576..57a46093656a 100644

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

fs/ceph/super.c +7 -0
index f446afada328..ab8a8c9c74f2 100644

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

fs/char_dev.c +6 -0
index 24b142569ca9..d0655ca89481 100644

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

fs/cifs/file.c +3 -1
index 23a8374fa97f..309c134fb66f 100644

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

fs/cifs/smb2ops.c +8 -6
index eae3cdffaf7f..591c93de8c20 100644

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

fs/ext4/extents.c +15 -2
index 1708597659a1..8d98c9ac9205 100644

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

fs/ext4/inode.c +1 -1
index 181db3c7f5d1..063c5991f095 100644

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

fs/ext4/ioctl.c +1 -1
index e44e3cd738b6..b02f210ea617 100644

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

fs/ext4/super.c +1 -1
index 6a7df72cb3da..6f00388a1471 100644

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

fs/fs-writeback.c +46 -5

51 lines not on this page · raw message

fs/fuse/file.c +11 -2
index d40c2451487c..ab93c4591f8c 100644

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

fs/gfs2/glock.c +13 -9
index 09a0cf5f3dd8..1eb737c466dd 100644

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

fs/gfs2/lock_dlm.c +5 -4
index 8b907c5cc913..3c3d037df824 100644

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

fs/hugetlbfs/inode.c +2 -6
index 27c4e2ac39a9..937c6ee1786f 100644

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

fs/nfs/nfs4state.c +4 -0
index 44f5cea49699..5be61affeefd 100644

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

fs/ocfs2/export.c +29 -1
index 3494e220b510..bed15dec3c16 100644

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

fs/open.c +18 -0
index fbc5c7b230b3..6cf516156111 100644

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

fs/read_write.c +3 -2
index 16e554ba885d..7b175b9134ec 100644

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

fs/ufs/util.h +1 -1
index 3f9463f8cf2f..f877d5cadd98 100644

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

fs/userfaultfd.c +28 -13

41 lines not on this page · raw message

include/linux/backing-dev-defs.h +1 -0
index 072501a0ac86..dfa6d4f08b99 100644

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

include/linux/bio.h +1 -1
index 42e4e3cbb001..0ffb9a397620 100644

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

include/linux/bitops.h +8 -8
index e76d03f44c80..83edade218fa 100644

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

include/linux/fs.h +4 -0
index 13277d2715df..26c4bf47cc99 100644

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

include/linux/hid.h +1 -0
index fd86687f8119..5f3131885136 100644

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

include/linux/hugetlb.h +1 -3
index 3957d99e66ea..cc185525a94b 100644

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

include/linux/iio/adc/ad_sigma_delta.h +1 -0
index 6cc48ac55fd2..40b14736c73d 100644

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

include/linux/list_lru.h +1 -0
index 743b34f56f2b..f9a8889e134a 100644

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

include/linux/mfd/da9063/registers.h +3 -3
index 2e0ba6d5fbc3..f97173bef581 100644

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

include/linux/of.h +2 -2
index d9371c9cd88a..2772f027f88f 100644

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

include/linux/rcupdate.h +2 -4
index a0189ba67fde..addd03641e1a 100644

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

include/linux/sched.h +6 -1
index a0b540f800d9..315df144c156 100644

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

include/linux/skbuff.h +30 -0
index 502787c29ce9..a2f12d377d23 100644

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

include/linux/smpboot.h +1 -1
index 12910cf19869..12a4b09f4d08 100644

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

include/linux/usb/gadget.h +3 -1
index 7e84aac39ade..667e7f9fd877 100644

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

include/net/arp.h +8 -0
index 1b3f86981757..92d2f7d7d1cb 100644

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

include/uapi/linux/fuse.h +2 -0
index c9aca042e61d..d3a5cf3b5446 100644

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

include/uapi/linux/tipc_config.h +7 -3
index 087b0ef82c07..bbebd258cf07 100644

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

kernel/auditfilter.c +7 -5
index b57f929f1b46..cf7aa656b308 100644

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

kernel/rcu/rcutorture.c +5 -0
index d89328e260df..041a02b334d7 100644

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

kernel/sched/core.c +8 -1
index d35a7d528ea6..0e70bfeded7f 100644

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

kernel/signal.c +2 -0
index 96e8c3cbfa38..072fd152ab01 100644

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

kernel/trace/trace_events.c +0 -3
index ba5392807912..bd4c0bb61ad7 100644

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

lib/strncpy_from_user.c +3 -2
index e0af6ff73d14..f8b1e3cb716b 100644

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

lib/strnlen_user.c +2 -2
index 3a5f2b366d84..1c87bfa63db7 100644

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

mm/backing-dev.c +1 -0
index 7f80b1a1bc34..07e3b3b8e846 100644

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

mm/hugetlb.c +5 -14
index 324b2953e57e..d7f65a8c629b 100644

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

mm/list_lru.c +3 -5
index 786176b1a0ee..732a066e3d3a 100644

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

mm/mincore.c +22 -1
index 14bb9fb37f0c..9700c2303941 100644

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

net/core/dev.c +2 -2
index 49f78bce5795..db5345f5f7b0 100644

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

net/core/ethtool.c +14 -3
index 9a53c66deb64..66428c0eb663 100644

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

net/core/neighbour.c +8 -1
index 78dc184072e8..9d812ba38ff2 100644

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

net/core/pktgen.c +11 -0
index b6327601f979..4ea957c1e7ee 100644

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

net/ipv4/ip_vti.c +3 -2
index fcf327ebd134..bbcbbc1cc2cc 100644

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

net/ipv4/xfrm4_policy.c +13 -11
index fddae0164b91..d9758ecdcba6 100644

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

net/ipv6/raw.c +2 -0
index 4d52a0e2f60d..55953c5804c3 100644

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

net/ipv6/xfrm6_tunnel.c +4 -0
index 56b72cada346..f9d493c59d6c 100644

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

net/llc/llc_output.c +2 -0
index 94425e421213..9e4b6bcf6920 100644

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

net/mac80211/mlme.c +0 -3
index ed4fef32b394..08384dbf426c 100644

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

net/rds/ib_rdma.c +6 -4
index a2340748ec86..d7888924166e 100644

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

net/sched/sch_tbf.c +0 -10
index a06c9d6bfc9c..05c7a66f64da 100644

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

net/tipc/core.c +19 -13
index e2bdb07a49a2..c306e9bc1621 100644

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

net/tipc/subscr.c +12 -2
index 500c9e614a06..4f80f00cd8f9 100644

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

net/tipc/subscr.h +3 -2
index 92ee18cc5fe6..e9aa8c7a6fec 100644

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

net/wireless/nl80211.c +5 -0
index 81013490a99f..1968998e6c6c 100644

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

net/xfrm/xfrm_user.c +1 -1
index 177a6c75f136..b04c03043976 100644

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

scripts/coccinelle/api/stream_open.cocci new file +363 -0

363 lines not on this page · raw message

sound/pci/hda/patch_hdmi.c +4 -2
index a8045b8a2a18..b249b1b85746 100644

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

sound/pci/hda/patch_realtek.c +3 -4
index 5d8ac2d798df..68d96c2e8cde 100644

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

sound/soc/codecs/max98090.c +6 -6
index 584aab83e478..3e65dc74eb33 100644

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

sound/soc/codecs/rt5677-spi.c +16 -19
index 91879ea95415..01aa75cde571 100644

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

sound/soc/davinci/davinci-mcasp.c +2 -0
index 2ccb8bccc9d4..512ec25c9ead 100644

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

sound/soc/fsl/Kconfig +5 -4
index 3066e068aae5..d420995ed45b 100644

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

sound/soc/fsl/eukrea-tlv320.c +2 -2
index 883087f2b092..38132143b7d5 100644

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

sound/soc/fsl/fsl_sai.c +2 -0
index 08b460ba06ef..61d2d955f26a 100644

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

sound/soc/fsl/fsl_utils.c +1 -0
index b9e42b503a37..4f8bdb7650e8 100644

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

sound/usb/mixer.c +2 -0
index f7eb0d2f797b..1f7eb3816cd7 100644

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

tools/include/linux/bitops.h +2 -5
index 5ad9ee1dd7f6..57187d6790c1 100644

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

tools/include/linux/bits.h new file +26 -0
new file mode 100644
index 000000000000..2b7b532c1d51

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

tools/perf/bench/numa.c +4 -0
index 73d192f57dc3..df41deed0320 100644

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

tools/perf/util/intel-pt-decoder/intel-pt-decoder.c +24 -7
index 62b38f2ff60d..c1944765533c 100644

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

tools/perf/util/string.c +1 -0
index accb7ece1d3c..3d7af024c73f 100644

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

tools/perf/util/util.h +0 -1
index dcc659017976..ee5d1dfe13da 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.