Skip to contentSkip to conversation

Linux 4.19.61

DISCUSSION Greg KH 1 participant 2 messages Jul 26, 2019 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.19.61 kernel.

All users of the 4.19 kernel series must upgrade.

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

thanks,

greg k-h

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

 Documentation/atomic_t.txt                                   |    3 
 Documentation/devicetree/bindings/net/marvell-orion-mdio.txt |    2 
 Documentation/scheduler/sched-pelt.c                         |    3 
 Makefile                                                     |    2 
 arch/arm64/Kconfig                                           |    3 
 arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi               |    3 
 arch/arm64/boot/dts/nvidia/tegra210.dtsi                     |    2 
 arch/arm64/crypto/sha1-ce-glue.c                             |    2 
 arch/arm64/crypto/sha2-ce-glue.c                             |    2 
 arch/arm64/kernel/acpi.c                                     |   10 
 arch/arm64/kernel/entry.S                                    |    4 
 arch/arm64/kernel/image.h                                    |    6 
 arch/arm64/mm/init.c                                         |    5 
 arch/mips/boot/compressed/Makefile                           |    2 
 arch/mips/boot/compressed/calc_vmlinuz_load_addr.c           |    2 
 arch/mips/include/asm/mach-ath79/ar933x_uart.h               |    4 
 arch/parisc/kernel/ptrace.c                                  |   31 
 arch/powerpc/kernel/exceptions-64s.S                         |    9 
 arch/powerpc/kernel/swsusp_32.S                              |   73 
 arch/powerpc/platforms/powermac/sleep.S                      |   68 
 arch/powerpc/platforms/powernv/npu-dma.c                     |   15 
 arch/powerpc/platforms/pseries/hotplug-memory.c              |    3 
 arch/x86/events/amd/uncore.c                                 |   15 
 arch/x86/events/intel/core.c                                 |    8 
 arch/x86/events/intel/uncore.h                               |   10 
 arch/x86/events/intel/uncore_snbep.c                         |    1 
 arch/x86/include/asm/atomic.h                                |    8 
 arch/x86/include/asm/atomic64_64.h                           |    8 
 arch/x86/include/asm/barrier.h                               |    4 
 arch/x86/include/asm/cpufeatures.h                           |    2 
 arch/x86/include/asm/intel-family.h                          |    1 
 arch/x86/kernel/cpu/cacheinfo.c                              |    3 
 arch/x86/kernel/cpu/mkcapflags.sh                            |    2 
 arch/x86/kernel/mpparse.c                                    |   10 
 arch/x86/kvm/pmu.c                                           |    4 
 block/blk-cgroup.c                                           |    8 
 block/blk-iolatency.c                                        |    8 
 block/blk-throttle.c                                         |    9 
 crypto/asymmetric_keys/Kconfig                               |    3 
 crypto/chacha20poly1305.c                                    |   30 
 crypto/ghash-generic.c                                       |    8 
 crypto/serpent_generic.c                                     |    8 
 drivers/acpi/acpica/acevents.h                               |    3 
 drivers/acpi/acpica/evgpe.c                                  |    8 
 drivers/acpi/acpica/evgpeblk.c                               |    2 
 drivers/acpi/acpica/evxface.c                                |    2 
 drivers/acpi/acpica/evxfgpe.c                                |    2 
 drivers/ata/libata-eh.c                                      |    8 
 drivers/base/regmap/regmap-debugfs.c                         |    2 
 drivers/base/regmap/regmap.c                                 |    2 
 drivers/block/floppy.c                                       |   34 
 drivers/block/null_blk_main.c                                |   11 
 drivers/bluetooth/btusb.c                                    |    2 
 drivers/bluetooth/hci_bcsp.c                                 |    5 
 drivers/clocksource/exynos_mct.c                             |    4 
 drivers/crypto/amcc/crypto4xx_alg.c                          |   36 
 drivers/crypto/amcc/crypto4xx_core.c                         |   24 
 drivers/crypto/amcc/crypto4xx_core.h                         |   10 
 drivers/crypto/amcc/crypto4xx_trng.c                         |    1 
 drivers/crypto/caam/caamalg.c                                |   15 
 drivers/crypto/ccp/ccp-dev.c                                 |   96 
 drivers/crypto/ccp/ccp-dev.h                                 |    2 
 drivers/crypto/ccp/ccp-ops.c                                 |   15 
 drivers/crypto/inside-secure/safexcel_cipher.c               |   24 
 drivers/crypto/talitos.c                                     |   35 
 drivers/dma/imx-sdma.c                                       |   48 
 drivers/edac/edac_mc_sysfs.c                                 |   24 
 drivers/edac/edac_module.h                                   |    2 
 drivers/gpio/gpio-omap.c                                     |   17 
 drivers/gpio/gpiolib.c                                       |    7 
 drivers/gpu/drm/drm_edid.c                                   |   81 
 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c               |   20 
 drivers/gpu/ipu-v3/ipu-ic.c                                  |    2 
 drivers/hid/wacom_sys.c                                      |    3 
 drivers/hid/wacom_wac.c                                      |   19 
 drivers/hid/wacom_wac.h                                      |    1 
 drivers/hwtracing/intel_th/msu.c                             |    2 
 drivers/hwtracing/intel_th/pci.c                             |    5 
 drivers/infiniband/hw/mlx5/main.c                            |    8 
 drivers/infiniband/ulp/ipoib/ipoib_main.c                    |    1 
 drivers/input/mouse/alps.c                                   |   32 
 drivers/input/mouse/synaptics.c                              |    1 
 drivers/input/tablet/gtco.c                                  |   20 
 drivers/iommu/iommu.c                                        |    8 
 drivers/irqchip/irq-meson-gpio.c                             |    1 
 drivers/lightnvm/pblk-core.c                                 |   18 
 drivers/md/bcache/alloc.c                                    |    9 
 drivers/md/bcache/bcache.h                                   |    2 
 drivers/md/bcache/io.c                                       |   12 
 drivers/md/bcache/journal.c                                  |   52 
 drivers/md/bcache/super.c                                    |   25 
 drivers/md/bcache/sysfs.c                                    |    4 
 drivers/md/bcache/util.h                                     |    2 
 drivers/md/bcache/writeback.c                                |    5 
 drivers/md/dm-bufio.c                                        |    4 
 drivers/md/dm-zoned-metadata.c                               |   24 
 drivers/md/dm-zoned.h                                        |   28 
 drivers/md/raid5.c                                           |   11 
 drivers/media/common/videobuf2/videobuf2-core.c              |    4 
 drivers/media/common/videobuf2/videobuf2-dma-sg.c            |    2 
 drivers/media/dvb-frontends/tua6100.c                        |   22 
 drivers/media/i2c/Makefile                                   |    2 
 drivers/media/i2c/adv7511-v4l2.c                             | 1997 +++++++++++
 drivers/media/i2c/adv7511.c                                  | 1992 ----------
 drivers/media/i2c/ov7740.c                                   |    6 
 drivers/media/media-device.c                                 |   10 
 drivers/media/pci/saa7164/saa7164-core.c                     |   33 
 drivers/media/platform/coda/coda-bit.c                       |    9 
 drivers/media/platform/coda/coda-common.c                    |    2 
 drivers/media/platform/davinci/vpss.c                        |    5 
 drivers/media/platform/marvell-ccic/mcam-core.c              |    5 
 drivers/media/platform/rcar_fdp1.c                           |    8 
 drivers/media/platform/s5p-mfc/s5p_mfc.c                     |    3 
 drivers/media/platform/s5p-mfc/s5p_mfc_pm.c                  |    5 
 drivers/media/platform/vimc/vimc-capture.c                   |    5 
 drivers/media/radio/wl128x/fmdrv_v4l2.c                      |    3 
 drivers/media/rc/ir-spi.c                                    |    1 
 drivers/media/usb/dvb-usb/dvb-usb-init.c                     |    7 
 drivers/media/usb/hdpvr/hdpvr-video.c                        |   17 
 drivers/media/usb/uvc/uvc_ctrl.c                             |    4 
 drivers/media/v4l2-core/v4l2-ctrls.c                         |    9 
 drivers/mmc/host/sdhci-msm.c                                 |    9 
 drivers/mtd/nand/raw/mtk_nand.c                              |   24 
 drivers/mtd/nand/spi/core.c                                  |    2 
 drivers/net/bonding/bond_main.c                              |   37 
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c              |    5 
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c          |    4 
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c             |   33 
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.h            |    3 
 drivers/net/ethernet/freescale/fec_main.c                    |    6 
 drivers/net/ethernet/hisilicon/hns3/hnae3.c                  |    2 
 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c           |    6 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c      |    3 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c        |    6 
 drivers/net/ethernet/intel/i40evf/i40e_txrx.c                |    6 
 drivers/net/ethernet/intel/igb/igb_main.c                    |    1 
 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c             |    3 
 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.h                 |    1 
 drivers/net/ethernet/marvell/mvmdio.c                        |    7 
 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c               |    3 
 drivers/net/ethernet/qlogic/qed/qed_dev.c                    |   29 
 drivers/net/ethernet/qlogic/qed/qed_iwarp.c                  |    2 
 drivers/net/ethernet/qlogic/qed/qed_rdma.c                   |    2 
 drivers/net/ethernet/stmicro/stmmac/common.h                 |    2 
 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c            |    5 
 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c         |    6 
 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c            |   18 
 drivers/net/ethernet/xilinx/xilinx_axienet_main.c            |   20 
 drivers/net/gtp.c                                            |   36 
 drivers/net/phy/phy_device.c                                 |    6 
 drivers/net/phy/sfp.c                                        |    6 
 drivers/net/usb/asix_devices.c                               |    6 
 drivers/net/wireless/ath/ath10k/hw.c                         |    2 
 drivers/net/wireless/ath/ath10k/mac.c                        |    4 
 drivers/net/wireless/ath/ath10k/sdio.c                       |    7 
 drivers/net/wireless/ath/ath10k/txrx.c                       |    3 
 drivers/net/wireless/ath/ath6kl/wmi.c                        |   10 
 drivers/net/wireless/ath/ath9k/hw.c                          |   32 
 drivers/net/wireless/ath/dfs_pattern_detector.c              |    2 
 drivers/net/wireless/ath/wil6210/interrupt.c                 |   65 
 drivers/net/wireless/ath/wil6210/txrx.c                      |    1 
 drivers/net/wireless/ath/wil6210/wmi.c                       |   13 
 drivers/net/wireless/intel/iwlwifi/fw/smem.c                 |   12 
 drivers/net/wireless/intel/iwlwifi/mvm/tx.c                  |    3 
 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c     |    2 
 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c          |    2 
 drivers/net/wireless/intel/iwlwifi/pcie/internal.h           |   27 
 drivers/net/wireless/intel/iwlwifi/pcie/rx.c                 |   66 
 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c         |    9 
 drivers/net/wireless/mediatek/mt7601u/dma.c                  |   54 
 drivers/net/wireless/mediatek/mt7601u/tx.c                   |    4 
 drivers/net/wireless/realtek/rtlwifi/usb.c                   |    5 
 drivers/nvdimm/dax_devs.c                                    |    2 
 drivers/nvdimm/pfn.h                                         |    1 
 drivers/nvdimm/pfn_devs.c                                    |   18 
 drivers/nvme/host/core.c                                     |   14 
 drivers/nvme/host/pci.c                                      |    8 
 drivers/pci/controller/dwc/pcie-qcom.c                       |    2 
 drivers/pci/controller/pci-hyperv.c                          |   15 
 drivers/pci/pci.c                                            |    7 
 drivers/ras/cec.c                                            |    4 
 drivers/regulator/s2mps11.c                                  |    4 
 drivers/s390/cio/qdio_main.c                                 |    1 
 drivers/scsi/NCR5380.c                                       |   33 
 drivers/scsi/NCR5380.h                                       |    2 
 drivers/scsi/mac_scsi.c                                      |  375 +-
 drivers/scsi/megaraid/megaraid_sas_base.c                    |    3 
 drivers/scsi/scsi_lib.c                                      |    6 
 drivers/staging/media/davinci_vpfe/vpfe_video.c              |    3 
 drivers/target/iscsi/iscsi_target_auth.c                     |   16 
 drivers/usb/core/hub.c                                       |    7 
 drivers/vhost/net.c                                          |    2 
 drivers/xen/balloon.c                                        |   16 
 drivers/xen/events/events_base.c                             |   12 
 drivers/xen/evtchn.c                                         |    2 
 fs/btrfs/file.c                                              |    5 
 fs/btrfs/tree-log.c                                          |   40 
 fs/coda/file.c                                               |   70 
 fs/crypto/crypto.c                                           |   15 
 fs/ecryptfs/crypto.c                                         |   12 
 fs/fs-writeback.c                                            |    8 
 fs/nfs/flexfilelayout/flexfilelayoutdev.c                    |    2 
 fs/nfs/inode.c                                               |    1 
 fs/nfs/nfs4file.c                                            |    2 
 fs/nfs/pnfs.c                                                |    4 
 fs/proc/proc_sysctl.c                                        |    4 
 fs/xfs/libxfs/xfs_ag_resv.c                                  |    2 
 fs/xfs/libxfs/xfs_ialloc_btree.c                             |    4 
 fs/xfs/xfs_attr_list.c                                       |    1 
 fs/xfs/xfs_bmap_util.c                                       |    2 
 fs/xfs/xfs_bmap_util.h                                       |    2 
 fs/xfs/xfs_file.c                                            |   27 
 fs/xfs/xfs_fsops.c                                           |    1 
 fs/xfs/xfs_inode.c                                           |   18 
 fs/xfs/xfs_iops.c                                            |   21 
 fs/xfs/xfs_mount.h                                           |    2 
 fs/xfs/xfs_reflink.c                                         |   16 
 fs/xfs/xfs_super.c                                           |    7 
 fs/xfs/xfs_xattr.c                                           |    3 
 include/asm-generic/bug.h                                    |    6 
 include/drm/drm_displayid.h                                  |   10 
 include/linux/cpuhotplug.h                                   |    2 
 include/linux/rcupdate.h                                     |    2 
 include/net/ip_vs.h                                          |    6 
 include/rdma/ib_verbs.h                                      |    4 
 include/trace/events/rxrpc.h                                 |    2 
 include/uapi/linux/bpf.h                                     |    1 
 include/xen/events.h                                         |    3 
 kernel/bpf/Makefile                                          |    1 
 kernel/locking/lockdep.c                                     |   18 
 kernel/padata.c                                              |   12 
 kernel/pid_namespace.c                                       |    2 
 kernel/sched/core.c                                          |    2 
 kernel/sched/sched-pelt.h                                    |    2 
 kernel/time/ntp.c                                            |    4 
 kernel/time/timer_list.c                                     |   36 
 lib/reed_solomon/decode_rs.c                                 |   18 
 lib/scatterlist.c                                            |    9 
 net/9p/trans_virtio.c                                        |    8 
 net/9p/trans_xen.c                                           |    8 
 net/batman-adv/bat_iv_ogm.c                                  |    4 
 net/batman-adv/hard-interface.c                              |    3 
 net/batman-adv/translation-table.c                           |    2 
 net/batman-adv/types.h                                       |    3 
 net/bluetooth/6lowpan.c                                      |   14 
 net/bluetooth/hci_event.c                                    |    5 
 net/bluetooth/l2cap_core.c                                   |   15 
 net/bluetooth/smp.c                                          |   13 
 net/key/af_key.c                                             |    8 
 net/netfilter/ipset/ip_set_hash_gen.h                        |    2 
 net/netfilter/ipvs/ip_vs_core.c                              |   21 
 net/netfilter/ipvs/ip_vs_ctl.c                               |    4 
 net/netfilter/ipvs/ip_vs_sync.c                              |  134 
 net/xdp/xsk_queue.h                                          |    2 
 net/xfrm/Kconfig                                             |    2 
 net/xfrm/xfrm_user.c                                         |   19 
 scripts/kconfig/confdata.c                                   |    7 
 scripts/kconfig/expr.h                                       |    1 
 security/selinux/hooks.c                                     |   11 
 sound/core/seq/seq_clientmgr.c                               |   11 
 sound/pci/hda/patch_realtek.c                                |   10 
 sound/soc/codecs/hdac_hdmi.c                                 |    6 
 sound/soc/meson/axg-tdm.h                                    |    2 
 sound/soc/soc-dapm.c                                         |   18 
 tools/bpf/bpftool/jit_disasm.c                               |   11 
 tools/include/uapi/linux/bpf.h                               |    1 
 tools/lib/bpf/libbpf.c                                       |    8 
 tools/perf/arch/arm/util/cs-etm.c                            |  127 
 tools/perf/jvmti/libjvmti.c                                  |    4 
 tools/perf/perf.h                                            |    2 
 tools/perf/tests/parse-events.c                              |   27 
 tools/perf/tests/shell/record+probe_libc_inet_pton.sh        |    2 
 tools/perf/ui/browsers/annotate.c                            |    5 
 tools/perf/util/annotate.c                                   |    5 
 tools/perf/util/evsel.c                                      |    8 
 tools/perf/util/header.c                                     |    2 
 tools/perf/util/metricgroup.c                                |   47 
 tools/perf/util/stat-shadow.c                                |    5 
 tools/power/cpupower/utils/cpufreq-set.c                     |    2 
 tools/testing/selftests/bpf/test_lwt_seg6local.c             |   12 
 280 files changed, 4523 insertions(+), 3058 deletions(-)

Aaron Armstrong Skomra (3):
HID: wacom: generic: only switch the mode on devices with LEDs
HID: wacom: generic: Correct pad syncing
HID: wacom: correct touch resolution x/y typo

Aaron Lewis (1):
x86/cpufeatures: Add FDP_EXCPTN_ONLY and ZERO_FCS_FDS

Abhishek Goel (1):
cpupower : frequency-set -r option misses the last cpu in related cpu list

Ahmad Masri (1):
wil6210: drop old event after wmi_call timeout

Akinobu Mita (1):
media: ov7740: avoid invalid framesize setting

Alexander Shishkin (2):
intel_th: pci: Add Ice Lake NNPI support
intel_th: msu: Fix single mode with disabled IOMMU

Amadeusz Sławiński (1):
ASoC: Intel: hdac_hdmi: Set ops to NULL on remove

Anders Roxell (1):
media: i2c: fix warning same module names

Andi Kleen (2):
perf stat: Make metric event lookup more robust perf stat: Fix group lookup for metric group

Andrei Otcheretianski (1):
iwlwifi: mvm: Drop large non sta frames

Andres Rodriguez (1):
drm/edid: parse CEA blocks embedded in DisplayID

André Almeida (1):
media: vimc: cap: check v4l2_fill_pixfmt return value

Anilkumar Kolli (1):
ath: DFS JP domain W56 fixed pulse type 3 RADAR detection

Anirudh Gupta (1):
xfrm: Fix xfrm sel prefix length validation

Antoine Tenart (1):
crypto: inside-secure - do not rely on the hardware last bit for result descriptors

Anton Eidelman (1):
nvme: fix possible io failures when removing multipathed ns

Ard Biesheuvel (2):
acpi/arm64: ignore 5.1 FADTs that are reported as 5.0
crypto: caam - limit output IV to CBC to work around CTR mode DMA issue

Arnaldo Carvalho de Melo (2):
perf annotate TUI browser: Do not use member from variable within its own initialization perf evsel: Make perf_evsel__name() accept a NULL argument

Arnd Bergmann (3):
ipsec: select crypto ciphers for xfrm_algo
crypto: serpent - mark __serpent_setkey_sbox noinline
crypto: asymmetric_keys - select CRYPTO_HASH where needed

Baruch Siach (1):
bpf: fix uapi bpf_prog_info fields alignment

Biao Huang (2):
net: stmmac: dwmac4: fix flow control issue
net: stmmac: modify default value of tx-frames

Bob Liu (1):
block: null_blk: fix race condition for null_del_dev

Boris Brezillon (1):

      media: v4l2: Test type instead of cfg->type in v4l2_ctrl_new_custom()

Borislav Petkov (1):
RAS/CEC: Fix pfn insertion

Brian Foster (1):
xfs: serialize unaligned dio writes against all other dio writes

Cfir Cohen (1):
crypto: ccp/gcm - use const time tag comparison.

Chaitanya Kulkarni (1):
nvme-pci: set the errno on ctrl state change error

Christian Lamparter (3):
crypto: crypto4xx - fix AES CTR blocksize value
crypto: crypto4xx - fix blocksize for cfb and ofb
crypto: crypto4xx - block ciphers should only accept complete blocks

Christophe Leroy (5):
crypto: talitos - fix skcipher failure due to wrong output IV
crypto: talitos - properly handle split ICV.
crypto: talitos - Align SEC1 accesses to 32 bits boundaries. lib/scatterlist: Fix mapping iterator when sg->offset is greater than PAGE_SIZE powerpc/32s: fix suspend/resume when IBATs 4-7 are used

Claire Chang (1):
ath10k: add missing error handling

Colin Ian King (1):
iavf: fix dereference of null rx_buffer pointer

Coly Li (11):
bcache: check CACHE_SET_IO_DISABLE in allocator code
bcache: check CACHE_SET_IO_DISABLE bit in bch_journal()
bcache: acquire bch_register_lock later in cached_dev_free()
bcache: check c->gc_thread by IS_ERR_OR_NULL in cache_set_flush()
bcache: fix potential deadlock in cached_def_free()
Revert "bcache: set CACHE_SET_IO_DISABLE in bch_cached_dev_error()"
bcache: Revert "bcache: fix high CPU occupancy during journal"
bcache: Revert "bcache: free heap cache_set->flush_btree in bch_journal_free"
bcache: ignore read-ahead request failure on backing device
bcache: fix mistaken sysfs entry for io_error counter
bcache: destroy dc->writeback_write_wq if failed to create dc->writeback_thread

Cong Wang (1):
bonding: validate ip header before check IPPROTO_IGMP

Damien Le Moal (1):
dm zoned: fix zone state management race

Dan Carpenter (2):
ath6kl: add some bounds checking
eCryptfs: fix a couple type promotion bugs

Dan Williams (1):
libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields

Daniel Baluta (1):
regmap: debugfs: Fix memory leak in regmap_debugfs_init

Daniel Gomez (1):
media: spi: IR LED: add missing of table registration

Daniel Jordan (1):
padata: use smp_mb in padata_reorder to avoid orphaned padata jobs

Danit Goldberg (1):
IB/mlx5: Report correctly tag matching rendezvous capability

Darrick J. Wong (6):
xfs: fix pagecache truncation prior to reflink
xfs: don't overflow xattr listent buffer
xfs: rename m_inotbt_nores to m_finobt_nores
xfs: don't ever put nlink > 0 inodes on the unlinked list
xfs: reserve blocks for ifree transaction during log recovery
xfs: abort unaligned nowait directio early

Dave Chinner (1):
xfs: flush removing page cache in xfs_reflink_remap_prep

David Howells (1):
rxrpc: Fix oops in tracepoint

David Rientjes (1):
x86/boot: Fix memory leak in default_get_smp_config()

David S. Miller (1):
tua6100: Avoid build warnings.

Denis Efremov (4):
floppy: fix div-by-zero in setup_format_params
floppy: fix out-of-bounds read in next_valid_format
floppy: fix invalid pointer dereference in drive_name
floppy: fix out-of-bounds read in copy_buffer

Denis Kirjanov (1):
ipoib: correcly show a VF hardware address

Dennis Zhou (1):
blk-iolatency: only account submitted bios

Dexuan Cui (1):
PCI: hv: Fix a use-after-free bug in hv_eject_device_work()

Drew Davenport (1):
include/asm-generic/bug.h: fix "cut here" for WARN_ON for __WARN_TAINT architectures

Eiichi Tsukata (1):
EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec

Elena Petrova (2):
crypto: arm64/sha1-ce - correct digest for empty data in finup
crypto: arm64/sha2-ce - correct digest for empty data in finup

Emmanuel Grumbach (4):
iwlwifi: pcie: don't service an interrupt that was masked
iwlwifi: pcie: fix ALIVE interrupt handling for gen2 devices w/o MSI-X
iwlwifi: don't WARN when calling iwl_get_shared_mem_conf with RF-Kill
iwlwifi: fix RF-Kill interrupt while FW load for gen2 devices

Eric Auger (1):
iommu: Fix a leak in iommu_insert_resv_region

Eric Biggers (3):
fscrypt: clean up some BUG_ON()s in block encryption/decryption
crypto: ghash - fix unaligned memory access in ghash_setkey()
crypto: chacha20poly1305 - fix atomic sleep when using async algorithm

Eric W. Biederman (1):
signal/pid_namespace: Fix reboot_pid_ns to use send_sig not force_sig

Ezequiel Garcia (1):
media: coda: Remove unbalanced and unneeded mutex unlock

Fabio Estevam (1):
net: fec: Do not use netdev messages too early

Ferdinand Blomqvist (2):
rslib: Fix decoding of shortened codes
rslib: Fix handling of of caller provided syndrome

Filipe Manana (3):
Btrfs: fix data loss after inode eviction, renaming it, and fsync it
Btrfs: fix fsync not persisting dentry deletions due to inode evictions
Btrfs: add missing inode version, ctime and mtime updates when punching hole

Finn Thain (5):
scsi: NCR5380: Reduce goto statements in NCR5380_select()
scsi: NCR5380: Always re-enable reselection interrupt Revert "scsi: ncr5380: Increase register polling limit"
scsi: mac_scsi: Increase PIO/PDMA transfer length threshold
scsi: mac_scsi: Fix pseudo DMA implementation, take 2

Gao Xiang (1):
sched/core: Add __sched tag for io_schedule()

Geert Uytterhoeven (1):
gpiolib: Fix references to gpiod_[gs]et_*value_cansleep() variants

Grant Hernandez (1):
Input: gtco - bounds check collection indent level

Greg Kroah-Hartman (1):

      Linux 4.19.61

Greg Kurz (1):
powerpc/powernv/npu: Fix reference leak

Guilherme G. Piccoli (1):
bnx2x: Prevent ptp_task to be rescheduled indefinitely

Gustavo A. R. Silva (1):
wil6210: fix potential out-of-bounds read

Hans Verkuil (2):
media: mc-device.c: don't memset __user pointer contents
media: hdpvr: fix locking and a missing msleep

Heiner Litz (1):
lightnvm: pblk: fix freeing of merged pages

Helge Deller (2):
parisc: Ensure userspace privilege for ptraced processes in regset functions
parisc: Fix kernel panic due invalid values in IAOQ0 or IAOQ1

Hook, Gary (2):
crypto: ccp - Validate the the error value used to index error messages
crypto: ccp - memset structure fields to zero before reuse

Hui Wang (3):
Input: alps - don't handle ALPS cs19 trackpoint-only device
Input: alps - fix a mismatch between a condition check and its comment
ALSA: hda/realtek: apply ALC891 headset fixup to one Dell machine

Icenowy Zheng (1):
net: stmmac: sun8i: force select external PHY when no internal one

Imre Deak (1):
locking/lockdep: Fix merging of hlocks with non-zero references

Ioana Ciornei (1):
net: phy: Check against net_device being NULL

Jan Harkes (1):

      coda: pass the host file in vma->vm_file on mmap

Jason Wang (1):
vhost_net: disable zerocopy by default

Jeremy Sowden (2):
batman-adv: fix for leaked TVLV handler.
af_key: fix leaks in key_pol_get_resp and dump_sp.

Jerome Brunet (1):
ASoC: meson: axg-tdm: fix sample clock inversion

Jiri Benc (1):
selftests: bpf: fix inlines in test_lwt_seg6local

Jiri Olsa (2):
perf jvmti: Address gcc string overflow warning for strncpy()
tools: bpftool: Fix json dump crash on powerpc

Jon Hunter (2):
arm64: tegra: Update Jetson TX1 GPU regulator timings
arm64: tegra: Fix AGIC register range

Jorge Ramirez-Ortiz (1):
mmc: sdhci-msm: fix mutex while in spinlock

Jose Abreu (2):
net: stmmac: dwmac1000: Clear unused address entries
net: stmmac: dwmac4/5: Clear unused address entries

Josua Mayer (4):
Bluetooth: 6lowpan: search for destination address in all peers
net: mvmdio: defer probe of orion-mdio if a clock is not ready
net: mvmdio: allow up to four clocks to be specified for orion-mdio
dt-bindings: allow up to four clocks for orion-mdio

João Paulo Rechi Vita (2):
Bluetooth: Add new 13d3:3491 QCA_ROME device
Bluetooth: Add new 13d3:3501 QCA_ROME device

Juergen Gross (2):
xen: let alloc_xenballooned_pages() fail if not enough memory free xen/events: fix binding user event channels to cpus

Julian Anastasov (2):
ipvs: defer hook registration to avoid leaks
ipvs: fix tinfo memory leak in start_sync_thread

Julian Wiedmann (1):
s390/qdio: handle PENDING state for QEBSM devices

Julien Thierry (1):
arm64: Do not enable IRQs for ct_user_exit

Jungo Lin (1):
media: media_device_enum_links32: clean a reserved field

Junxiao Bi (1):
dm bufio: fix deadlock with loop device

Kailang Yang (1):
ALSA: hda/realtek - Fixed Headphone Mic can't record on Dell platform

Kan Liang (2):
perf/x86/intel/uncore: Handle invalid event coding for free-running counter perf/x86/intel: Fix spurious NMI on fixed counter

Kangjie Lu (1):
media: vpss: fix a potential NULL pointer dereference

Kefeng Wang (2):
media: saa7164: fix remove_proc_entry warning
media: wl128x: Fix some error handling in fm_v4l2_init_video_device()

Kevin Darbyshire-Bryant (1):
MIPS: fix build on non-linux hosts

Kieran Bingham (1):
media: fdp1: Support M3N and E3 platforms

Kim Phillips (2):
perf/x86/amd/uncore: Do not set 'ThreadMask' and 'SliceMask' for non-L3 PMCs perf/x86/amd/uncore: Set the thread mask for F17h L3 PMCs

Konstantin Khlebnikov (1):
blk-throttle: fix zero wait time for iops throttled group

Krzysztof Kozlowski (1):
regulator: s2mps11: Fix buck7 and buck8 wrong voltages

Kyle Meyer (1):
perf tools: Increase MAX_NR_CPUS and MAX_CACHES

Lee, Chiasheng (1):
usb: Handle USB3 remote wakeup for LPM enabled devices correctly

Leo Yan (1):
bpf, libbpf, smatch: Fix potential NULL pointer dereference

Like Xu (1):
KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed

Lorenzo Bianconi (2):
mt7601u: do not schedule rx_tasklet when the device has been disconnected
mt7601u: fix possible memory leak when the device is disconnected

Lubomir Rintel (1):
media: marvell-ccic: fix DMA s/g desc number calculation

Luis R. Rodriguez (1):
xfs: fix reporting supported extra file attributes for statx()

Lyude Paul (1):
drm/nouveau/i2c: Enable i2c pads & busses during preinit

Marco Felsch (1):
media: coda: fix last buffer handling in V4L2_ENC_CMD_STOP

Marek Szyprowski (3):
media: s5p-mfc: fix reading min scratch buffer size on MFC v6/v7
media: s5p-mfc: Make additional clocks optional clocksource/drivers/exynos_mct: Increase priority over ARM arch timer

Mark Brown (1):
ASoC: dapm: Adapt for debugfs API change

Masahiro Yamada (2):
x86/build: Add 'set -e' to mkcapflags.sh to delete broken capflags.c
kconfig: fix missing choice values in auto.conf

Mathieu Poirier (1):
perf cs-etm: Properly set the value of 'old' and 'head' in snapshot mode

Matias Karhumaa (1):
Bluetooth: Check state in l2cap_disconnect_rsp

Maurizio Lombardi (1):
scsi: iscsi: set auth_protocol back to NULL if CHAP_A value is not supported

Mauro S. M. Rodrigues (1):
ixgbe: Check DDM existence in transceiver before access

Maxime Chevallier (1):
net: mvpp2: prs: Don't override the sign bit in SRAM parser shift

Maya Erez (1):
wil6210: fix spurious interrupts in 3-msi

Miaoqing Pan (1):
ath10k: fix PCIE device wake up failed

Michal Kalderon (2):
qed: Set the doorbell address correctly
qed: iWARP - Fix tc for MPA ll2 connection

Mika Westerberg (1):
PCI: Do not poll for PME if the device is in D3cold

Miles Chen (1):
arm64: mm: make CONFIG_ZONE_DMA32 configurable

Ming Lei (1):
scsi: core: Fix race on creating sense cache

Minwoo Im (1):
nvme-pci: properly report state change failure in nvme_reset_work

Miroslav Lichvar (1):
ntp: Limit TAI-UTC offset

Nathan Chancellor (2):
arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly
xsk: Properly terminate assignment in xskq_produce_flush_desc

Nathan Huckleberry (1):
timer_list: Guard procfs specific code

Nathan Lynch (1):
powerpc/pseries: Fix oops in hotplug memory notifier

Nick Black (1):
Input: synaptics - whitelist Lenovo T580 SMBus intertouch

Nicolas Dichtel (1):
xfrm: fix sa selector validation

Niklas Cassel (1):
PCI: qcom: Ensure that PERST is asserted for at least 100 ms

Oliver Neukum (2):
media: dvb: usb: fix use after free in dvb_usb_device_exit
media: uvcvideo: Fix access to uninitialized fields on probe error

Ondrej Mosnacek (1):
selinux: fix empty write to keycreate file

Pan Bian (1):
EDAC/sysfs: Fix memory leak when creating a csrow object

Peter Zijlstra (1):

      x86/atomic: Fix smp_mb__{before,after}_atomic()

Philipp Zabel (2):
media: coda: fix mpeg2 sequence number handling
media: coda: increment sequence offset for the last returned frame

Phong Tran (1):
net: usb: asix: init MAC address buffers

Ping-Ke Shih (1):
rtlwifi: rtl8192cu: fix error handle when usb probe failed

Qian Cai (2):
sched/fair: Fix "runnable_avg_yN_inv" not used warnings x86/cacheinfo: Fix a -Wtype-limits warning

Radoslaw Burny (1):
fs/proc/proc_sysctl.c: fix the default values of i_uid/i_gid on /proc/sys inodes.

Rafael J. Wysocki (1):
ACPICA: Clear status of GPEs on first direct enable

Rajneesh Bhardwaj (1):
x86/cpu: Add Ice Lake NNPI to Intel family

Ravi Bangoria (1):
powerpc/watchpoint: Restore NV GPRs while returning from exception

Robert Hancock (2):
net: axienet: Fix race condition causing TX hang
net: sfp: add mutex to prevent concurrent state checks

Russell King (2):
gpio: omap: fix lack of irqstatus_raw0 for OMAP4
gpio: omap: ensure irq is enabled before wakeup

Sakari Ailus (2):
media: videobuf2-core: Prevent size alignment wrapping buffer size to 0
media: videobuf2-dma-sg: Prevent size from overflowing

Seeteena Thoufeek (1):
perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64

Shailendra Verma (1):
media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization fails.

Shivasharan S (1):
scsi: megaraid_sas: Fix calculation of target ID

Srinivas Kandagatla (1):
regmap: fix bulk writes on paged registers

Stefan Hellermann (1):
MIPS: ath79: fix ar933x uart parity mode

Stefano Brivio (1):
ipset: Fix memory accounting for hash types on resize

Steve Longerbeam (1):
gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM

Surabhi Vishnoi (1):
ath10k: Do not send probe response template for mesh

Sven Eckelmann (1):
batman-adv: Fix duplicated OGMs on NETDEV_UP

Sven Van Asbroeck (1):
dmaengine: imx-sdma: fix use-after-free on probe error path

Szymon Janc (1):
Bluetooth: Add SMP workaround Microsoft Surface Precision Mouse bug

Taehee Yoo (5):
gtp: add missing gtp_encap_disable_sock() in gtp_encap_enable()
gtp: fix suspicious RCU usage
gtp: fix Illegal context switch in RCU read-side critical section.
gtp: fix use-after-free in gtp_encap_destroy()
gtp: fix use-after-free in gtp_newlink()

Takashi Iwai (1):
ALSA: seq: Break too long mutex context in the write loop

Tejun Heo (4):
blkcg, writeback: dead memcgs shouldn't contribute to writeback ownership arbitration
libata: don't request sense data on !ZAC ATA devices
blk-iolatency: clear use_delay when io.latency is set to zero
blkcg: update blkcg_print_stat() to handle larger outputs

Thomas Richter (2):
perf test 6: Fix missing kvm module load for s390 perf report: Fix OOM error in TUI mode on s390

Tim Schumacher (1):
ath9k: Check for errors when reading SREV register

Tomas Bortoli (1):
Bluetooth: hci_bcsp: Fix memory leak in rx_skb

Trond Myklebust (4):
NFSv4: Handle the special Linux file open access mode pnfs/flexfiles: Fix PTR_ERR() dereferences in ff_layout_track_ds_error
pNFS: Fix a typo in pnfs_update_layout
pnfs: Fix a problem where we gratuitously start doing I/O through the MDS

Valdis Kletnieks (1):
bpf: silence warning messages in core

Vedang Patel (1):

      igb: clear out skb->tstamp after reading the txtime

Waiman Long (1):
rcu: Force inlining of rcu_read_lock()

Weihang Li (1):
net: hns3: set ops to null when unregister ad_dev

Wen Gong (2):
ath10k: add peer id check in ath10k_peer_find_by_id
ath10k: destroy sdio workqueue while remove sdio module

Wen Yang (1):
crypto: crypto4xx - fix a potential double free in ppc4xx_trng_probe

Xiao Ni (1):
raid5-cache: Need to do start() part job after adding journal device

Xiaolei Li (1):
mtd: rawnand: mtk: Correct low level time calculation of r/w cycle

Xingyu Chen (1):
irqchip/meson-gpio: Add support for Meson-G12A SoC

Yonglong Liu (1):
net: hns3: fix a -Wformat-nonliteral compile warning

YueHaibing (2):
9p/xen: Add cleanup path in p9_trans_xen_init 9p/virtio: Add cleanup path in p9_virtio_init

Yunsheng Lin (2):
net: hns3: fix for skb leak when doing selftest
net: hns3: add some error checking in hclge_tm module

csonsino (1):
Bluetooth: validate BLE connection interval updates

liaoweixiong (1):
mtd: spinand: read returns badly if the last page has bitflips

author maintainer
#1 lore raw
Documentation/atomic_t.txt +3 -0
index 913396ac5824..ed0d814df7e0 100644
@@ -177,6 +177,9 @@ These helper barriers exist because architectures have varying implicit
 ordering on their SMP atomic primitives. For example our TSO architectures
 provide full ordered atomics and these barriers are no-ops.
 
+NOTE: when the atomic RmW ops are fully ordered, they should also imply a
+compiler barrier.
+
 Thus:
 
   atomic_fetch_add();
Documentation/devicetree/bindings/net/marvell-orion-mdio.txt +1 -1
index 42cd81090a2c..3f3cfc1d8d4d 100644
@@ -16,7 +16,7 @@ Required properties:
 
 Optional properties:
 - interrupts: interrupt line number for the SMI error/done interrupt
-- clocks: phandle for up to three required clocks for the MDIO instance
+- clocks: phandle for up to four required clocks for the MDIO instance
 
 The child nodes of the MDIO driver are the individual PHY devices
 connected to this MDIO bus. They must have a "reg" property given the
Documentation/scheduler/sched-pelt.c +2 -1
index e4219139386a..7238b355919c 100644
@@ -20,7 +20,8 @@ void calc_runnable_avg_yN_inv(void)
 	int i;
 	unsigned int x;
 
-	printf("static const u32 runnable_avg_yN_inv[] = {");
+	/* To silence -Wunused-but-set-variable warnings. */
+	printf("static const u32 runnable_avg_yN_inv[] __maybe_unused = {");
 	for (i = 0; i < HALFLIFE; i++) {
 		x = ((1UL<<32)-1)*pow(y, i);
 
Makefile +1 -1
index 5fb79d493012..b16485c580d7 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 4
 PATCHLEVEL = 19
-SUBLEVEL = 60
+SUBLEVEL = 61
 EXTRAVERSION =
 NAME = "People's Front"
 
arch/arm64/Kconfig +2 -1
index 8790a29d0af4..e3ebece79617 100644
@@ -251,7 +251,8 @@ config GENERIC_CALIBRATE_DELAY
 	def_bool y
 
 config ZONE_DMA32
-	def_bool y
+	bool "Support DMA32 zone" if EXPERT
+	default y
 
 config HAVE_GENERIC_GUP
 	def_bool y
arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi +2 -1
index 212e6634c9ba..7398ae8856dc 100644
@@ -330,7 +330,8 @@
 			regulator-max-microvolt = <1320000>;
 			enable-gpios = <&pmic 6 GPIO_ACTIVE_HIGH>;
 			regulator-ramp-delay = <80>;
-			regulator-enable-ramp-delay = <1000>;
+			regulator-enable-ramp-delay = <2000>;
+			regulator-settling-time-us = <160>;
 		};
 	};
 };
arch/arm64/boot/dts/nvidia/tegra210.dtsi +1 -1
index 3be920efee82..6597c0894137 100644
@@ -1119,7 +1119,7 @@
 			compatible = "nvidia,tegra210-agic";
 			#interrupt-cells = <3>;
 			interrupt-controller;
-			reg = <0x702f9000 0x2000>,
+			reg = <0x702f9000 0x1000>,
 			      <0x702fa000 0x2000>;
 			interrupts = <GIC_SPI 102 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
 			clocks = <&tegra_car TEGRA210_CLK_APE>;
arch/arm64/crypto/sha1-ce-glue.c +1 -1
index 17fac2889f56..d8c521c757e8 100644
@@ -54,7 +54,7 @@ static int sha1_ce_finup(struct shash_desc *desc, const u8 *data,
 			 unsigned int len, u8 *out)
 {
 	struct sha1_ce_state *sctx = shash_desc_ctx(desc);
-	bool finalize = !sctx->sst.count && !(len % SHA1_BLOCK_SIZE);
+	bool finalize = !sctx->sst.count && !(len % SHA1_BLOCK_SIZE) && len;
 
 	if (!may_use_simd())
 		return crypto_sha1_finup(desc, data, len, out);
arch/arm64/crypto/sha2-ce-glue.c +1 -1
index 261f5195cab7..c47d1a28ff6b 100644
@@ -59,7 +59,7 @@ static int sha256_ce_finup(struct shash_desc *desc, const u8 *data,
 			   unsigned int len, u8 *out)
 {
 	struct sha256_ce_state *sctx = shash_desc_ctx(desc);
-	bool finalize = !sctx->sst.count && !(len % SHA256_BLOCK_SIZE);
+	bool finalize = !sctx->sst.count && !(len % SHA256_BLOCK_SIZE) && len;
 
 	if (!may_use_simd()) {
 		if (len)
arch/arm64/kernel/acpi.c +7 -3
index ed46dc188b22..970f15c76bac 100644
@@ -154,10 +154,14 @@ static int __init acpi_fadt_sanity_check(void)
 	 */
 	if (table->revision < 5 ||
 	   (table->revision == 5 && fadt->minor_revision < 1)) {
-		pr_err("Unsupported FADT revision %d.%d, should be 5.1+\n",
+		pr_err(FW_BUG "Unsupported FADT revision %d.%d, should be 5.1+\n",
 		       table->revision, fadt->minor_revision);
-		ret = -EINVAL;
-		goto out;
+
+		if (!fadt->arm_boot_flags) {
+			ret = -EINVAL;
+			goto out;
+		}
+		pr_err("FADT has ARM boot flags set, assuming 5.1\n");
 	}
 
 	if (!(fadt->flags & ACPI_FADT_HW_REDUCED)) {
arch/arm64/kernel/entry.S +2 -2
index 8556876c9109..5f800384cb9a 100644
@@ -824,7 +824,7 @@ el0_dbg:
 	mov	x1, x25
 	mov	x2, sp
 	bl	do_debug_exception
-	enable_daif
+	enable_da_f
 	ct_user_exit
 	b	ret_to_user
 el0_inv:
@@ -876,7 +876,7 @@ el0_error_naked:
 	enable_dbg
 	mov	x0, sp
 	bl	do_serror
-	enable_daif
+	enable_da_f
 	ct_user_exit
 	b	ret_to_user
 ENDPROC(el0_error)
arch/arm64/kernel/image.h +5 -1
index 8da289dc843a..eff6a564ab80 100644
@@ -73,7 +73,11 @@
 
 #ifdef CONFIG_EFI
 
-__efistub_stext_offset = stext - _text;
+/*
+ * Use ABSOLUTE() to avoid ld.lld treating this as a relative symbol:
+ * https://github.com/ClangBuiltLinux/linux/issues/561
+ */
+__efistub_stext_offset = ABSOLUTE(stext - _text);
 
 /*
  * The EFI stub has its own symbol namespace prefixed by __efistub_, to
arch/arm64/mm/init.c +3 -2
index 774c3e17c798..29d2f425806e 100644
@@ -233,8 +233,9 @@ static void __init zone_sizes_init(unsigned long min, unsigned long max)
 {
 	unsigned long max_zone_pfns[MAX_NR_ZONES]  = {0};
 
-	if (IS_ENABLED(CONFIG_ZONE_DMA32))
-		max_zone_pfns[ZONE_DMA32] = PFN_DOWN(max_zone_dma_phys());
+#ifdef CONFIG_ZONE_DMA32
+	max_zone_pfns[ZONE_DMA32] = PFN_DOWN(max_zone_dma_phys());
+#endif
 	max_zone_pfns[ZONE_NORMAL] = max;
 
 	free_area_init_nodes(max_zone_pfns);
arch/mips/boot/compressed/Makefile +2 -0
index 3c453a1f1ff1..172801ed35b8 100644
@@ -78,6 +78,8 @@ OBJCOPYFLAGS_piggy.o := --add-section=.image=$(obj)/vmlinux.bin.z \
 $(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.bin.z FORCE
 	$(call if_changed,objcopy)
 
+HOSTCFLAGS_calc_vmlinuz_load_addr.o += $(LINUXINCLUDE)
+
 # Calculate the load address of the compressed kernel image
 hostprogs-y := calc_vmlinuz_load_addr
 
arch/mips/boot/compressed/calc_vmlinuz_load_addr.c +1 -1
index 542c3ede9722..d14f75ec8273 100644
@@ -13,7 +13,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include "../../../../include/linux/sizes.h"
+#include <linux/sizes.h>
 
 int main(int argc, char *argv[])
 {
arch/mips/include/asm/mach-ath79/ar933x_uart.h +2 -2
index c2917b39966b..bba2c8837951 100644
@@ -27,8 +27,8 @@
 #define AR933X_UART_CS_PARITY_S		0
 #define AR933X_UART_CS_PARITY_M		0x3
 #define	  AR933X_UART_CS_PARITY_NONE	0
-#define	  AR933X_UART_CS_PARITY_ODD	1
-#define	  AR933X_UART_CS_PARITY_EVEN	2
+#define	  AR933X_UART_CS_PARITY_ODD	2
+#define	  AR933X_UART_CS_PARITY_EVEN	3
 #define AR933X_UART_CS_IF_MODE_S	2
 #define AR933X_UART_CS_IF_MODE_M	0x3
 #define	  AR933X_UART_CS_IF_MODE_NONE	0
arch/parisc/kernel/ptrace.c +20 -11
index 0964c236e3e5..de2998cb189e 100644
@@ -167,6 +167,9 @@ long arch_ptrace(struct task_struct *child, long request,
 		if ((addr & (sizeof(unsigned long)-1)) ||
 		     addr >= sizeof(struct pt_regs))
 			break;
+		if (addr == PT_IAOQ0 || addr == PT_IAOQ1) {
+			data |= 3; /* ensure userspace privilege */
+		}
 		if ((addr >= PT_GR1 && addr <= PT_GR31) ||
 				addr == PT_IAOQ0 || addr == PT_IAOQ1 ||
 				(addr >= PT_FR0 && addr <= PT_FR31 + 4) ||
@@ -228,16 +231,18 @@ long arch_ptrace(struct task_struct *child, long request,
 
 static compat_ulong_t translate_usr_offset(compat_ulong_t offset)
 {
-	if (offset < 0)
-		return sizeof(struct pt_regs);
-	else if (offset <= 32*4)	/* gr[0..31] */
-		return offset * 2 + 4;
-	else if (offset <= 32*4+32*8)	/* gr[0..31] + fr[0..31] */
-		return offset + 32*4;
-	else if (offset < sizeof(struct pt_regs)/2 + 32*4)
-		return offset * 2 + 4 - 32*8;
+	compat_ulong_t pos;
+
+	if (offset < 32*4)	/* gr[0..31] */
+		pos = offset * 2 + 4;
+	else if (offset < 32*4+32*8)	/* fr[0] ... fr[31] */
+		pos = (offset - 32*4) + PT_FR0;
+	else if (offset < sizeof(struct pt_regs)/2 + 32*4) /* sr[0] ... ipsw */
+		pos = (offset - 32*4 - 32*8) * 2 + PT_SR0 + 4;
 	else
-		return sizeof(struct pt_regs);
+		pos = sizeof(struct pt_regs);
+
+	return pos;
 }
 
 long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
@@ -281,9 +286,12 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
 			addr = translate_usr_offset(addr);
 			if (addr >= sizeof(struct pt_regs))
 				break;
+			if (addr == PT_IAOQ0+4 || addr == PT_IAOQ1+4) {
+				data |= 3; /* ensure userspace privilege */
+			}
 			if (addr >= PT_FR0 && addr <= PT_FR31 + 4) {
 				/* Special case, fp regs are 64 bits anyway */
-				*(__u64 *) ((char *) task_regs(child) + addr) = data;
+				*(__u32 *) ((char *) task_regs(child) + addr) = data;
 				ret = 0;
 			}
 			else if ((addr >= PT_GR1+4 && addr <= PT_GR31+4) ||
@@ -496,7 +504,8 @@ static void set_reg(struct pt_regs *regs, int num, unsigned long val)
 			return;
 	case RI(iaoq[0]):
 	case RI(iaoq[1]):
-			regs->iaoq[num - RI(iaoq[0])] = val;
+			/* set 2 lowest bits to ensure userspace privilege: */
+			regs->iaoq[num - RI(iaoq[0])] = val | 3;
 			return;
 	case RI(sar):	regs->sar = val;
 			return;
arch/powerpc/kernel/exceptions-64s.S +7 -2
index 2d8fc8c9da7a..06cc77813dbb 100644
@@ -1745,7 +1745,7 @@ handle_page_fault:
 	addi	r3,r1,STACK_FRAME_OVERHEAD
 	bl	do_page_fault
 	cmpdi	r3,0
-	beq+	12f
+	beq+	ret_from_except_lite
 	bl	save_nvgprs
 	mr	r5,r3
 	addi	r3,r1,STACK_FRAME_OVERHEAD
@@ -1760,7 +1760,12 @@ handle_dabr_fault:
 	ld      r5,_DSISR(r1)
 	addi    r3,r1,STACK_FRAME_OVERHEAD
 	bl      do_break
-12:	b       ret_from_except_lite
+	/*
+	 * do_break() may have changed the NV GPRS while handling a breakpoint.
+	 * If so, we need to restore them with their updated values. Don't use
+	 * ret_from_except_lite here.
+	 */
+	b       ret_from_except
 
 
 #ifdef CONFIG_PPC_BOOK3S_64
arch/powerpc/kernel/swsusp_32.S +65 -8

109 lines not on this page · raw message

arch/powerpc/platforms/powermac/sleep.S +63 -5

101 lines not on this page · raw message

arch/powerpc/platforms/powernv/npu-dma.c +14 -1
index 8006c54a91e3..fd8166ffbffa 100644
@@ -56,9 +56,22 @@ static struct dentry *atsd_threshold_dentry;
 static struct pci_dev *get_pci_dev(struct device_node *dn)
 {
 	struct pci_dn *pdn = PCI_DN(dn);
+	struct pci_dev *pdev;
 
-	return pci_get_domain_bus_and_slot(pci_domain_nr(pdn->phb->bus),
+	pdev = pci_get_domain_bus_and_slot(pci_domain_nr(pdn->phb->bus),
 					   pdn->busno, pdn->devfn);
+
+	/*
+	 * pci_get_domain_bus_and_slot() increased the reference count of
+	 * the PCI device, but callers don't need that actually as the PE
+	 * already holds a reference to the device. Since callers aren't
+	 * aware of the reference count change, call pci_dev_put() now to
+	 * avoid leaks.
+	 */
+	if (pdev)
+		pci_dev_put(pdev);
+
+	return pdev;
 }
 
 /* Given a NPU device get the associated PCI device. */
arch/powerpc/platforms/pseries/hotplug-memory.c +3 -0
index e4c658cda3a7..f99cd31b6fd1 100644
@@ -1012,6 +1012,9 @@ static int pseries_update_drconf_memory(struct of_reconfig_data *pr)
 	if (!memblock_size)
 		return -EINVAL;
 
+	if (!pr->old_prop)
+		return 0;
+
 	p = (__be32 *) pr->old_prop->value;
 	if (!p)
 		return -EINVAL;
arch/x86/events/amd/uncore.c +11 -4
index 8671de126eac..baa7e36073f9 100644
@@ -210,15 +210,22 @@ static int amd_uncore_event_init(struct perf_event *event)
 	hwc->config = event->attr.config & AMD64_RAW_EVENT_MASK_NB;
 	hwc->idx = -1;
 
+	if (event->cpu < 0)
+		return -EINVAL;
+
 	/*
 	 * SliceMask and ThreadMask need to be set for certain L3 events in
 	 * Family 17h. For other events, the two fields do not affect the count.
 	 */
-	if (l3_mask)
-		hwc->config |= (AMD64_L3_SLICE_MASK | AMD64_L3_THREAD_MASK);
+	if (l3_mask && is_llc_event(event)) {
+		int thread = 2 * (cpu_data(event->cpu).cpu_core_id % 4);
 
-	if (event->cpu < 0)
-		return -EINVAL;
+		if (smp_num_siblings > 1)
+			thread += cpu_data(event->cpu).apicid & 1;
+
+		hwc->config |= (1ULL << (AMD64_L3_THREAD_SHIFT + thread) &
+				AMD64_L3_THREAD_MASK) | AMD64_L3_SLICE_MASK;
+	}
 
 	uncore = event_to_amd_uncore(event);
 	if (!uncore)
arch/x86/events/intel/core.c +3 -5
index c8b0bf2b0d5e..db5a2ba61753 100644
@@ -2074,12 +2074,10 @@ static void intel_pmu_disable_event(struct perf_event *event)
 	cpuc->intel_ctrl_host_mask &= ~(1ull << hwc->idx);
 	cpuc->intel_cp_status &= ~(1ull << hwc->idx);
 
-	if (unlikely(hwc->config_base == MSR_ARCH_PERFMON_FIXED_CTR_CTRL)) {
+	if (unlikely(hwc->config_base == MSR_ARCH_PERFMON_FIXED_CTR_CTRL))
 		intel_pmu_disable_fixed(hwc);
-		return;
-	}
-
-	x86_pmu_disable_event(event);
+	else
+		x86_pmu_disable_event(event);
 
 	/*
 	 * Needs to be called after x86_pmu_disable_event,
arch/x86/events/intel/uncore.h +10 -0
index cc6dd4f78158..42fa3974c421 100644
@@ -402,6 +402,16 @@ static inline bool is_freerunning_event(struct perf_event *event)
 	       (((cfg >> 8) & 0xff) >= UNCORE_FREERUNNING_UMASK_START);
 }
 
+/* Check and reject invalid config */
+static inline int uncore_freerunning_hw_config(struct intel_uncore_box *box,
+					       struct perf_event *event)
+{
+	if (is_freerunning_event(event))
+		return 0;
+
+	return -EINVAL;
+}
+
 static inline void uncore_disable_box(struct intel_uncore_box *box)
 {
 	if (box->pmu->type->ops->disable_box)
arch/x86/events/intel/uncore_snbep.c +1 -0
index b10e04387f38..8e4e8e423839 100644
@@ -3585,6 +3585,7 @@ static struct uncore_event_desc skx_uncore_iio_freerunning_events[] = {
 
 static struct intel_uncore_ops skx_uncore_iio_freerunning_ops = {
 	.read_counter		= uncore_msr_read_counter,
+	.hw_config		= uncore_freerunning_hw_config,
 };
 
 static struct attribute *skx_uncore_iio_freerunning_formats_attr[] = {
arch/x86/include/asm/atomic.h +4 -4
index ce84388e540c..d266a4066289 100644
@@ -54,7 +54,7 @@ static __always_inline void arch_atomic_add(int i, atomic_t *v)
 {
 	asm volatile(LOCK_PREFIX "addl %1,%0"
 		     : "+m" (v->counter)
-		     : "ir" (i));
+		     : "ir" (i) : "memory");
 }
 
 /**
@@ -68,7 +68,7 @@ static __always_inline void arch_atomic_sub(int i, atomic_t *v)
 {
 	asm volatile(LOCK_PREFIX "subl %1,%0"
 		     : "+m" (v->counter)
-		     : "ir" (i));
+		     : "ir" (i) : "memory");
 }
 
 /**
@@ -95,7 +95,7 @@ static __always_inline bool arch_atomic_sub_and_test(int i, atomic_t *v)
 static __always_inline void arch_atomic_inc(atomic_t *v)
 {
 	asm volatile(LOCK_PREFIX "incl %0"
-		     : "+m" (v->counter));
+		     : "+m" (v->counter) :: "memory");
 }
 #define arch_atomic_inc arch_atomic_inc
 
@@ -108,7 +108,7 @@ static __always_inline void arch_atomic_inc(atomic_t *v)
 static __always_inline void arch_atomic_dec(atomic_t *v)
 {
 	asm volatile(LOCK_PREFIX "decl %0"
-		     : "+m" (v->counter));
+		     : "+m" (v->counter) :: "memory");
 }
 #define arch_atomic_dec arch_atomic_dec
 
arch/x86/include/asm/atomic64_64.h +4 -4
index 5f851d92eecd..55ca027f8c1c 100644
@@ -45,7 +45,7 @@ static __always_inline void arch_atomic64_add(long i, atomic64_t *v)
 {
 	asm volatile(LOCK_PREFIX "addq %1,%0"
 		     : "=m" (v->counter)
-		     : "er" (i), "m" (v->counter));
+		     : "er" (i), "m" (v->counter) : "memory");
 }
 
 /**
@@ -59,7 +59,7 @@ static inline void arch_atomic64_sub(long i, atomic64_t *v)
 {
 	asm volatile(LOCK_PREFIX "subq %1,%0"
 		     : "=m" (v->counter)
-		     : "er" (i), "m" (v->counter));
+		     : "er" (i), "m" (v->counter) : "memory");
 }
 
 /**
@@ -87,7 +87,7 @@ static __always_inline void arch_atomic64_inc(atomic64_t *v)
 {
 	asm volatile(LOCK_PREFIX "incq %0"
 		     : "=m" (v->counter)
-		     : "m" (v->counter));
+		     : "m" (v->counter) : "memory");
 }
 #define arch_atomic64_inc arch_atomic64_inc
 
@@ -101,7 +101,7 @@ static __always_inline void arch_atomic64_dec(atomic64_t *v)
 {
 	asm volatile(LOCK_PREFIX "decq %0"
 		     : "=m" (v->counter)
-		     : "m" (v->counter));
+		     : "m" (v->counter) : "memory");
 }
 #define arch_atomic64_dec arch_atomic64_dec
 
arch/x86/include/asm/barrier.h +2 -2
index 14de0432d288..84f848c2541a 100644
@@ -80,8 +80,8 @@ do {									\
 })
 
 /* Atomic operations are already serializing on x86 */
-#define __smp_mb__before_atomic()	barrier()
-#define __smp_mb__after_atomic()	barrier()
+#define __smp_mb__before_atomic()	do { } while (0)
+#define __smp_mb__after_atomic()	do { } while (0)
 
 #include <asm-generic/barrier.h>
 
arch/x86/include/asm/cpufeatures.h +2 -0
index 69037da75ea0..0cf704933f23 100644
@@ -239,12 +239,14 @@
 #define X86_FEATURE_BMI1		( 9*32+ 3) /* 1st group bit manipulation extensions */
 #define X86_FEATURE_HLE			( 9*32+ 4) /* Hardware Lock Elision */
 #define X86_FEATURE_AVX2		( 9*32+ 5) /* AVX2 instructions */
+#define X86_FEATURE_FDP_EXCPTN_ONLY	( 9*32+ 6) /* "" FPU data pointer updated only on x87 exceptions */
 #define X86_FEATURE_SMEP		( 9*32+ 7) /* Supervisor Mode Execution Protection */
 #define X86_FEATURE_BMI2		( 9*32+ 8) /* 2nd group bit manipulation extensions */
 #define X86_FEATURE_ERMS		( 9*32+ 9) /* Enhanced REP MOVSB/STOSB instructions */
 #define X86_FEATURE_INVPCID		( 9*32+10) /* Invalidate Processor Context ID */
 #define X86_FEATURE_RTM			( 9*32+11) /* Restricted Transactional Memory */
 #define X86_FEATURE_CQM			( 9*32+12) /* Cache QoS Monitoring */
+#define X86_FEATURE_ZERO_FCS_FDS	( 9*32+13) /* "" Zero out FPU CS and FPU DS */
 #define X86_FEATURE_MPX			( 9*32+14) /* Memory Protection Extension */
 #define X86_FEATURE_RDT_A		( 9*32+15) /* Resource Director Technology Allocation */
 #define X86_FEATURE_AVX512F		( 9*32+16) /* AVX-512 Foundation */
arch/x86/include/asm/intel-family.h +1 -0
index 2e38fb82b91d..aebedbaf5260 100644
@@ -56,6 +56,7 @@
 #define INTEL_FAM6_ICELAKE_XEON_D	0x6C
 #define INTEL_FAM6_ICELAKE_DESKTOP	0x7D
 #define INTEL_FAM6_ICELAKE_MOBILE	0x7E
+#define INTEL_FAM6_ICELAKE_NNPI		0x9D
 
 /* "Small Core" Processors (Atom) */
 
arch/x86/kernel/cpu/cacheinfo.c +1 -2
index 0c5fcbd998cf..9d863e8f9b3f 100644
@@ -651,8 +651,7 @@ void cacheinfo_amd_init_llc_id(struct cpuinfo_x86 *c, int cpu, u8 node_id)
 	if (c->x86 < 0x17) {
 		/* LLC is at the node level. */
 		per_cpu(cpu_llc_id, cpu) = node_id;
-	} else if (c->x86 == 0x17 &&
-		   c->x86_model >= 0 && c->x86_model <= 0x1F) {
+	} else if (c->x86 == 0x17 && c->x86_model <= 0x1F) {
 		/*
 		 * LLC is at the core complex level.
 		 * Core complex ID is ApicId[3] for these processors.
arch/x86/kernel/cpu/mkcapflags.sh +2 -0
index d0dfb892c72f..aed45b8895d5 100644
@@ -4,6 +4,8 @@
 # Generate the x86_cap/bug_flags[] arrays from include/asm/cpufeatures.h
 #
 
+set -e
+
 IN=$1
 OUT=$2
 
arch/x86/kernel/mpparse.c +4 -6
index ddb1ca6923b1..5b4c32799094 100644
@@ -547,17 +547,15 @@ void __init default_get_smp_config(unsigned int early)
 			 * local APIC has default address
 			 */
 			mp_lapic_addr = APIC_DEFAULT_PHYS_BASE;
-			return;
+			goto out;
 		}
 
 		pr_info("Default MP configuration #%d\n", mpf->feature1);
 		construct_default_ISA_mptable(mpf->feature1);
 
 	} else if (mpf->physptr) {
-		if (check_physptr(mpf, early)) {
-			early_memunmap(mpf, sizeof(*mpf));
-			return;
-		}
+		if (check_physptr(mpf, early))
+			goto out;
 	} else
 		BUG();
 
@@ -566,7 +564,7 @@ void __init default_get_smp_config(unsigned int early)
 	/*
 	 * Only use the first configuration found.
 	 */
-
+out:
 	early_memunmap(mpf, sizeof(*mpf));
 }
 
arch/x86/kvm/pmu.c +2 -2
index 952aebd0a8a3..acc8d217f656 100644
@@ -131,8 +131,8 @@ static void pmc_reprogram_counter(struct kvm_pmc *pmc, u32 type,
 						 intr ? kvm_perf_overflow_intr :
 						 kvm_perf_overflow, pmc);
 	if (IS_ERR(event)) {
-		printk_once("kvm_pmu: event creation failed %ld\n",
-			    PTR_ERR(event));
+		pr_debug_ratelimited("kvm_pmu: event creation failed %ld for pmc->idx = %d\n",
+			    PTR_ERR(event), pmc->idx);
 		return;
 	}
 
block/blk-cgroup.c +6 -2
index c630e02836a8..527524134693 100644
@@ -1016,8 +1016,12 @@ static int blkcg_print_stat(struct seq_file *sf, void *v)
 		}
 next:
 		if (has_stats) {
-			off += scnprintf(buf+off, size-off, "\n");
-			seq_commit(sf, off);
+			if (off < size - 1) {
+				off += scnprintf(buf+off, size-off, "\n");
+				seq_commit(sf, off);
+			} else {
+				seq_commit(sf, -1);
+			}
 		}
 	}
 
block/blk-iolatency.c +7 -1
index 6b8396ccb5c4..f4f7c73fb828 100644
@@ -565,6 +565,10 @@ static void blkcg_iolatency_done_bio(struct rq_qos *rqos, struct bio *bio)
 	if (!blkg)
 		return;
 
+	/* We didn't actually submit this bio, don't account it. */
+	if (bio->bi_status == BLK_STS_AGAIN)
+		return;
+
 	iolat = blkg_to_lat(bio->bi_blkg);
 	if (!iolat)
 		return;
@@ -742,8 +746,10 @@ static int iolatency_set_min_lat_nsec(struct blkcg_gq *blkg, u64 val)
 
 	if (!oldval && val)
 		return 1;
-	if (oldval && !val)
+	if (oldval && !val) {
+		blkcg_clear_delay(blkg);
 		return -1;
+	}
 	return 0;
 }
 
block/blk-throttle.c +3 -6
index 01d0620a4e4a..caee658609d7 100644
@@ -892,13 +892,10 @@ static bool tg_with_in_iops_limit(struct throtl_grp *tg, struct bio *bio,
 	unsigned long jiffy_elapsed, jiffy_wait, jiffy_elapsed_rnd;
 	u64 tmp;
 
-	jiffy_elapsed = jiffy_elapsed_rnd = jiffies - tg->slice_start[rw];
-
-	/* Slice has just started. Consider one slice interval */
-	if (!jiffy_elapsed)
-		jiffy_elapsed_rnd = tg->td->throtl_slice;
+	jiffy_elapsed = jiffies - tg->slice_start[rw];
 
-	jiffy_elapsed_rnd = roundup(jiffy_elapsed_rnd, tg->td->throtl_slice);
+	/* Round up to the next throttle slice, wait time must be nonzero */
+	jiffy_elapsed_rnd = roundup(jiffy_elapsed + 1, tg->td->throtl_slice);
 
 	/*
 	 * jiffy_elapsed_rnd should not be a big value as minimum iops can be
crypto/asymmetric_keys/Kconfig +3 -0
index f3702e533ff4..d8a73d94bb30 100644
@@ -15,6 +15,7 @@ config ASYMMETRIC_PUBLIC_KEY_SUBTYPE
 	select MPILIB
 	select CRYPTO_HASH_INFO
 	select CRYPTO_AKCIPHER
+	select CRYPTO_HASH
 	help
 	  This option provides support for asymmetric public key type handling.
 	  If signature generation and/or verification are to be used,
@@ -34,6 +35,7 @@ config X509_CERTIFICATE_PARSER
 config PKCS7_MESSAGE_PARSER
 	tristate "PKCS#7 message parser"
 	depends on X509_CERTIFICATE_PARSER
+	select CRYPTO_HASH
 	select ASN1
 	select OID_REGISTRY
 	help
@@ -56,6 +58,7 @@ config SIGNED_PE_FILE_VERIFICATION
 	bool "Support for PE file signature verification"
 	depends on PKCS7_MESSAGE_PARSER=y
 	depends on SYSTEM_DATA_VERIFICATION
+	select CRYPTO_HASH
 	select ASN1
 	select OID_REGISTRY
 	help
crypto/chacha20poly1305.c +19 -11
index 4d6f51bcdfab..af8afe5c06ea 100644
@@ -67,6 +67,8 @@ struct chachapoly_req_ctx {
 	unsigned int cryptlen;
 	/* Actual AD, excluding IV */
 	unsigned int assoclen;
+	/* request flags, with MAY_SLEEP cleared if needed */
+	u32 flags;
 	union {
 		struct poly_req poly;
 		struct chacha_req chacha;
@@ -76,8 +78,12 @@ struct chachapoly_req_ctx {
 static inline void async_done_continue(struct aead_request *req, int err,
 				       int (*cont)(struct aead_request *))
 {
-	if (!err)
+	if (!err) {
+		struct chachapoly_req_ctx *rctx = aead_request_ctx(req);
+
+		rctx->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP;
 		err = cont(req);
+	}
 
 	if (err != -EINPROGRESS && err != -EBUSY)
 		aead_request_complete(req, err);
@@ -144,7 +150,7 @@ static int chacha_decrypt(struct aead_request *req)
 		dst = scatterwalk_ffwd(rctx->dst, req->dst, req->assoclen);
 	}
 
-	skcipher_request_set_callback(&creq->req, aead_request_flags(req),
+	skcipher_request_set_callback(&creq->req, rctx->flags,
 				      chacha_decrypt_done, req);
 	skcipher_request_set_tfm(&creq->req, ctx->chacha);
 	skcipher_request_set_crypt(&creq->req, src, dst,
@@ -188,7 +194,7 @@ static int poly_tail(struct aead_request *req)
 	memcpy(&preq->tail.cryptlen, &len, sizeof(len));
 	sg_set_buf(preq->src, &preq->tail, sizeof(preq->tail));
 
-	ahash_request_set_callback(&preq->req, aead_request_flags(req),
+	ahash_request_set_callback(&preq->req, rctx->flags,
 				   poly_tail_done, req);
 	ahash_request_set_tfm(&preq->req, ctx->poly);
 	ahash_request_set_crypt(&preq->req, preq->src,
@@ -219,7 +225,7 @@ static int poly_cipherpad(struct aead_request *req)
 	sg_init_table(preq->src, 1);
 	sg_set_buf(preq->src, &preq->pad, padlen);
 
-	ahash_request_set_callback(&preq->req, aead_request_flags(req),
+	ahash_request_set_callback(&preq->req, rctx->flags,
 				   poly_cipherpad_done, req);
 	ahash_request_set_tfm(&preq->req, ctx->poly);
 	ahash_request_set_crypt(&preq->req, preq->src, NULL, padlen);
@@ -250,7 +256,7 @@ static int poly_cipher(struct aead_request *req)
 	sg_init_table(rctx->src, 2);
 	crypt = scatterwalk_ffwd(rctx->src, crypt, req->assoclen);
 
-	ahash_request_set_callback(&preq->req, aead_request_flags(req),
+	ahash_request_set_callback(&preq->req, rctx->flags,
 				   poly_cipher_done, req);
 	ahash_request_set_tfm(&preq->req, ctx->poly);
 	ahash_request_set_crypt(&preq->req, crypt, NULL, rctx->cryptlen);
@@ -280,7 +286,7 @@ static int poly_adpad(struct aead_request *req)
 	sg_init_table(preq->src, 1);
 	sg_set_buf(preq->src, preq->pad, padlen);
 
-	ahash_request_set_callback(&preq->req, aead_request_flags(req),
+	ahash_request_set_callback(&preq->req, rctx->flags,
 				   poly_adpad_done, req);
 	ahash_request_set_tfm(&preq->req, ctx->poly);
 	ahash_request_set_crypt(&preq->req, preq->src, NULL, padlen);
@@ -304,7 +310,7 @@ static int poly_ad(struct aead_request *req)
 	struct poly_req *preq = &rctx->u.poly;
 	int err;
 
-	ahash_request_set_callback(&preq->req, aead_request_flags(req),
+	ahash_request_set_callback(&preq->req, rctx->flags,
 				   poly_ad_done, req);
 	ahash_request_set_tfm(&preq->req, ctx->poly);
 	ahash_request_set_crypt(&preq->req, req->src, NULL, rctx->assoclen);
@@ -331,7 +337,7 @@ static int poly_setkey(struct aead_request *req)
 	sg_init_table(preq->src, 1);
 	sg_set_buf(preq->src, rctx->key, sizeof(rctx->key));
 
-	ahash_request_set_callback(&preq->req, aead_request_flags(req),
+	ahash_request_set_callback(&preq->req, rctx->flags,
 				   poly_setkey_done, req);
 	ahash_request_set_tfm(&preq->req, ctx->poly);
 	ahash_request_set_crypt(&preq->req, preq->src, NULL, sizeof(rctx->key));
@@ -355,7 +361,7 @@ static int poly_init(struct aead_request *req)
 	struct poly_req *preq = &rctx->u.poly;
 	int err;
 
-	ahash_request_set_callback(&preq->req, aead_request_flags(req),
+	ahash_request_set_callback(&preq->req, rctx->flags,
 				   poly_init_done, req);
 	ahash_request_set_tfm(&preq->req, ctx->poly);
 
@@ -393,7 +399,7 @@ static int poly_genkey(struct aead_request *req)
 
 	chacha_iv(creq->iv, req, 0);
 
-	skcipher_request_set_callback(&creq->req, aead_request_flags(req),
+	skcipher_request_set_callback(&creq->req, rctx->flags,
 				      poly_genkey_done, req);
 	skcipher_request_set_tfm(&creq->req, ctx->chacha);
 	skcipher_request_set_crypt(&creq->req, creq->src, creq->src,
@@ -433,7 +439,7 @@ static int chacha_encrypt(struct aead_request *req)
 		dst = scatterwalk_ffwd(rctx->dst, req->dst, req->assoclen);
 	}
 
-	skcipher_request_set_callback(&creq->req, aead_request_flags(req),
+	skcipher_request_set_callback(&creq->req, rctx->flags,
 				      chacha_encrypt_done, req);
 	skcipher_request_set_tfm(&creq->req, ctx->chacha);
 	skcipher_request_set_crypt(&creq->req, src, dst,
@@ -451,6 +457,7 @@ static int chachapoly_encrypt(struct aead_request *req)
 	struct chachapoly_req_ctx *rctx = aead_request_ctx(req);
 
 	rctx->cryptlen = req->cryptlen;
+	rctx->flags = aead_request_flags(req);
 
 	/* encrypt call chain:
 	 * - chacha_encrypt/done()
@@ -472,6 +479,7 @@ static int chachapoly_decrypt(struct aead_request *req)
 	struct chachapoly_req_ctx *rctx = aead_request_ctx(req);
 
 	rctx->cryptlen = req->cryptlen - POLY1305_DIGEST_SIZE;
+	rctx->flags = aead_request_flags(req);
 
 	/* decrypt call chain:
 	 * - poly_genkey/done()
crypto/ghash-generic.c +7 -1
index d9f192b953b2..591b52d3bdca 100644
@@ -34,6 +34,7 @@ static int ghash_setkey(struct crypto_shash *tfm,
 			const u8 *key, unsigned int keylen)
 {
 	struct ghash_ctx *ctx = crypto_shash_ctx(tfm);
+	be128 k;
 
 	if (keylen != GHASH_BLOCK_SIZE) {
 		crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
@@ -42,7 +43,12 @@ static int ghash_setkey(struct crypto_shash *tfm,
 
 	if (ctx->gf128)
 		gf128mul_free_4k(ctx->gf128);
-	ctx->gf128 = gf128mul_init_4k_lle((be128 *)key);
+
+	BUILD_BUG_ON(sizeof(k) != GHASH_BLOCK_SIZE);
+	memcpy(&k, key, GHASH_BLOCK_SIZE); /* avoid violating alignment rules */
+	ctx->gf128 = gf128mul_init_4k_lle(&k);
+	memzero_explicit(&k, GHASH_BLOCK_SIZE);
+
 	if (!ctx->gf128)
 		return -ENOMEM;
 
crypto/serpent_generic.c +7 -1
index 7c3382facc82..600bd288881d 100644
@@ -229,7 +229,13 @@
 	x4 ^= x2;					\
 	})
 
-static void __serpent_setkey_sbox(u32 r0, u32 r1, u32 r2, u32 r3, u32 r4, u32 *k)
+/*
+ * both gcc and clang have misoptimized this function in the past,
+ * producing horrible object code from spilling temporary variables
+ * on the stack. Forcing this part out of line avoids that.
+ */
+static noinline void __serpent_setkey_sbox(u32 r0, u32 r1, u32 r2,
+					   u32 r3, u32 r4, u32 *k)
 {
 	k += 100;
 	S3(r3, r4, r0, r1, r2); store_and_load_keys(r1, r2, r4, r3, 28, 24);
drivers/acpi/acpica/acevents.h +2 -1
index 704bebbd35b0..298180bf7e3c 100644
@@ -69,7 +69,8 @@ acpi_status
 acpi_ev_mask_gpe(struct acpi_gpe_event_info *gpe_event_info, u8 is_masked);
 
 acpi_status
-acpi_ev_add_gpe_reference(struct acpi_gpe_event_info *gpe_event_info);
+acpi_ev_add_gpe_reference(struct acpi_gpe_event_info *gpe_event_info,
+			  u8 clear_on_enable);
 
 acpi_status
 acpi_ev_remove_gpe_reference(struct acpi_gpe_event_info *gpe_event_info);
drivers/acpi/acpica/evgpe.c +7 -1
index e10fec99a182..4b5d3b4c627a 100644
@@ -146,6 +146,7 @@ acpi_ev_mask_gpe(struct acpi_gpe_event_info *gpe_event_info, u8 is_masked)
  * FUNCTION:    acpi_ev_add_gpe_reference
  *
  * PARAMETERS:  gpe_event_info          - Add a reference to this GPE
+ *              clear_on_enable         - Clear GPE status before enabling it
  *
  * RETURN:      Status
  *
@@ -155,7 +156,8 @@ acpi_ev_mask_gpe(struct acpi_gpe_event_info *gpe_event_info, u8 is_masked)
  ******************************************************************************/
 
 acpi_status
-acpi_ev_add_gpe_reference(struct acpi_gpe_event_info *gpe_event_info)
+acpi_ev_add_gpe_reference(struct acpi_gpe_event_info *gpe_event_info,
+			  u8 clear_on_enable)
 {
 	acpi_status status = AE_OK;
 
@@ -170,6 +172,10 @@ acpi_ev_add_gpe_reference(struct acpi_gpe_event_info *gpe_event_info)
 
 		/* Enable on first reference */
 
+		if (clear_on_enable) {
+			(void)acpi_hw_clear_gpe(gpe_event_info);
+		}
+
 		status = acpi_ev_update_gpe_enable_mask(gpe_event_info);
 		if (ACPI_SUCCESS(status)) {
 			status = acpi_ev_enable_gpe(gpe_event_info);
drivers/acpi/acpica/evgpeblk.c +1 -1
index b253063b09d3..8d96270ed8c7 100644
@@ -453,7 +453,7 @@ acpi_ev_initialize_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
 				continue;
 			}
 
-			status = acpi_ev_add_gpe_reference(gpe_event_info);
+			status = acpi_ev_add_gpe_reference(gpe_event_info, FALSE);
 			if (ACPI_FAILURE(status)) {
 				ACPI_EXCEPTION((AE_INFO, status,
 					"Could not enable GPE 0x%02X",
drivers/acpi/acpica/evxface.c +1 -1
index febc332b00ac..841557bda641 100644
@@ -971,7 +971,7 @@ acpi_remove_gpe_handler(acpi_handle gpe_device,
 	      ACPI_GPE_DISPATCH_METHOD) ||
 	     (ACPI_GPE_DISPATCH_TYPE(handler->original_flags) ==
 	      ACPI_GPE_DISPATCH_NOTIFY)) && handler->originally_enabled) {
-		(void)acpi_ev_add_gpe_reference(gpe_event_info);
+		(void)acpi_ev_add_gpe_reference(gpe_event_info, FALSE);
 		if (ACPI_GPE_IS_POLLING_NEEDED(gpe_event_info)) {
 
 			/* Poll edge triggered GPEs to handle existing events */
drivers/acpi/acpica/evxfgpe.c +1 -1
index b2d5f66cc1b0..4188731e7c40 100644
@@ -108,7 +108,7 @@ acpi_status acpi_enable_gpe(acpi_handle gpe_device, u32 gpe_number)
 	if (gpe_event_info) {
 		if (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) !=
 		    ACPI_GPE_DISPATCH_NONE) {
-			status = acpi_ev_add_gpe_reference(gpe_event_info);
+			status = acpi_ev_add_gpe_reference(gpe_event_info, TRUE);
 			if (ACPI_SUCCESS(status) &&
 			    ACPI_GPE_IS_POLLING_NEEDED(gpe_event_info)) {
 
drivers/ata/libata-eh.c +5 -3
index 01306c018398..ccc80ff57eb2 100644
@@ -1490,7 +1490,7 @@ static int ata_eh_read_log_10h(struct ata_device *dev,
 	tf->hob_lbah = buf[10];
 	tf->nsect = buf[12];
 	tf->hob_nsect = buf[13];
-	if (ata_id_has_ncq_autosense(dev->id))
+	if (dev->class == ATA_DEV_ZAC && ata_id_has_ncq_autosense(dev->id))
 		tf->auxiliary = buf[14] << 16 | buf[15] << 8 | buf[16];
 
 	return 0;
@@ -1737,7 +1737,8 @@ void ata_eh_analyze_ncq_error(struct ata_link *link)
 	memcpy(&qc->result_tf, &tf, sizeof(tf));
 	qc->result_tf.flags = ATA_TFLAG_ISADDR | ATA_TFLAG_LBA | ATA_TFLAG_LBA48;
 	qc->err_mask |= AC_ERR_DEV | AC_ERR_NCQ;
-	if ((qc->result_tf.command & ATA_SENSE) || qc->result_tf.auxiliary) {
+	if (dev->class == ATA_DEV_ZAC &&
+	    ((qc->result_tf.command & ATA_SENSE) || qc->result_tf.auxiliary)) {
 		char sense_key, asc, ascq;
 
 		sense_key = (qc->result_tf.auxiliary >> 16) & 0xff;
@@ -1791,10 +1792,11 @@ static unsigned int ata_eh_analyze_tf(struct ata_queued_cmd *qc,
 	}
 
 	switch (qc->dev->class) {
-	case ATA_DEV_ATA:
 	case ATA_DEV_ZAC:
 		if (stat & ATA_SENSE)
 			ata_eh_request_sense(qc, qc->scsicmd);
+		/* fall through */
+	case ATA_DEV_ATA:
 		if (err & ATA_ICRC)
 			qc->err_mask |= AC_ERR_ATA_BUS;
 		if (err & (ATA_UNC | ATA_AMNF))
drivers/base/regmap/regmap-debugfs.c +2 -0
index 87b562e49a43..c9687c8b2347 100644
@@ -575,6 +575,8 @@ void regmap_debugfs_init(struct regmap *map, const char *name)
 	}
 
 	if (!strcmp(name, "dummy")) {
+		kfree(map->debugfs_name);
+
 		map->debugfs_name = kasprintf(GFP_KERNEL, "dummy%d",
 						dummy_index);
 		name = map->debugfs_name;
drivers/base/regmap/regmap.c +2 -0
index 0360a90ad6b6..6c9f6988bc09 100644
@@ -1618,6 +1618,8 @@ static int _regmap_raw_write_impl(struct regmap *map, unsigned int reg,
 					     map->format.reg_bytes +
 					     map->format.pad_bytes,
 					     val, val_len);
+	else
+		ret = -ENOTSUPP;
 
 	/* If that didn't work fall back on linearising by hand. */
 	if (ret == -ENOTSUPP) {
drivers/block/floppy.c +32 -2
index a8de56f1936d..4a9a4d12721a 100644
@@ -2119,6 +2119,9 @@ static void setup_format_params(int track)
 	raw_cmd->kernel_data = floppy_track_buffer;
 	raw_cmd->length = 4 * F_SECT_PER_TRACK;
 
+	if (!F_SECT_PER_TRACK)
+		return;
+
 	/* allow for about 30ms for data transport per track */
 	head_shift = (F_SECT_PER_TRACK + 5) / 6;
 
@@ -3241,8 +3244,12 @@ static int set_geometry(unsigned int cmd, struct floppy_struct *g,
 	int cnt;
 
 	/* sanity checking for parameters. */
-	if (g->sect <= 0 ||
-	    g->head <= 0 ||
+	if ((int)g->sect <= 0 ||
+	    (int)g->head <= 0 ||
+	    /* check for overflow in max_sector */
+	    (int)(g->sect * g->head) <= 0 ||
+	    /* check for zero in F_SECT_PER_TRACK */
+	    (unsigned char)((g->sect << 2) >> FD_SIZECODE(g)) == 0 ||
 	    g->track <= 0 || g->track > UDP->tracks >> STRETCH(g) ||
 	    /* check if reserved bits are set */
 	    (g->stretch & ~(FD_STRETCH | FD_SWAPSIDES | FD_SECTBASEMASK)) != 0)
@@ -3386,6 +3393,24 @@ static int fd_getgeo(struct block_device *bdev, struct hd_geometry *geo)
 	return 0;
 }
 
+static bool valid_floppy_drive_params(const short autodetect[8],
+		int native_format)
+{
+	size_t floppy_type_size = ARRAY_SIZE(floppy_type);
+	size_t i = 0;
+
+	for (i = 0; i < 8; ++i) {
+		if (autodetect[i] < 0 ||
+		    autodetect[i] >= floppy_type_size)
+			return false;
+	}
+
+	if (native_format < 0 || native_format >= floppy_type_size)
+		return false;
+
+	return true;
+}
+
 static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd,
 		    unsigned long param)
 {
@@ -3512,6 +3537,9 @@ static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned int
 		SUPBOUND(size, strlen((const char *)outparam) + 1);
 		break;
 	case FDSETDRVPRM:
+		if (!valid_floppy_drive_params(inparam.dp.autodetect,
+				inparam.dp.native_format))
+			return -EINVAL;
 		*UDP = inparam.dp;
 		break;
 	case FDGETDRVPRM:
@@ -3709,6 +3737,8 @@ static int compat_setdrvprm(int drive,
 		return -EPERM;
 	if (copy_from_user(&v, arg, sizeof(struct compat_floppy_drive_params)))
 		return -EFAULT;
+	if (!valid_floppy_drive_params(v.autodetect, v.native_format))
+		return -EINVAL;
 	mutex_lock(&floppy_mutex);
 	UDP->cmos = v.cmos;
 	UDP->max_dtr = v.max_dtr;
drivers/block/null_blk_main.c +6 -5
index 093b614d6524..c5c0b7c89481 100644
@@ -321,11 +321,12 @@ static ssize_t nullb_device_power_store(struct config_item *item,
 		set_bit(NULLB_DEV_FL_CONFIGURED, &dev->flags);
 		dev->power = newp;
 	} else if (dev->power && !newp) {
-		mutex_lock(&lock);
-		dev->power = newp;
-		null_del_dev(dev->nullb);
-		mutex_unlock(&lock);
-		clear_bit(NULLB_DEV_FL_UP, &dev->flags);
+		if (test_and_clear_bit(NULLB_DEV_FL_UP, &dev->flags)) {
+			mutex_lock(&lock);
+			dev->power = newp;
+			null_del_dev(dev->nullb);
+			mutex_unlock(&lock);
+		}
 		clear_bit(NULLB_DEV_FL_CONFIGURED, &dev->flags);
 	}
 
drivers/bluetooth/btusb.c +2 -0
index 40a4f95f6178..75cf605f54e5 100644
@@ -277,7 +277,9 @@ static const struct usb_device_id blacklist_table[] = {
 	{ USB_DEVICE(0x04ca, 0x3015), .driver_info = BTUSB_QCA_ROME },
 	{ USB_DEVICE(0x04ca, 0x3016), .driver_info = BTUSB_QCA_ROME },
 	{ USB_DEVICE(0x04ca, 0x301a), .driver_info = BTUSB_QCA_ROME },
+	{ USB_DEVICE(0x13d3, 0x3491), .driver_info = BTUSB_QCA_ROME },
 	{ USB_DEVICE(0x13d3, 0x3496), .driver_info = BTUSB_QCA_ROME },
+	{ USB_DEVICE(0x13d3, 0x3501), .driver_info = BTUSB_QCA_ROME },
 
 	/* Broadcom BCM2035 */
 	{ USB_DEVICE(0x0a5c, 0x2009), .driver_info = BTUSB_BCM92035 },
drivers/bluetooth/hci_bcsp.c +5 -0
index 1a7f0c82fb36..66fe1e6dc631 100644
@@ -759,6 +759,11 @@ static int bcsp_close(struct hci_uart *hu)
 	skb_queue_purge(&bcsp->rel);
 	skb_queue_purge(&bcsp->unrel);
 
+	if (bcsp->rx_skb) {
+		kfree_skb(bcsp->rx_skb);
+		bcsp->rx_skb = NULL;
+	}
+
 	kfree(bcsp);
 	return 0;
 }
drivers/clocksource/exynos_mct.c +2 -2
index d55c30f6981d..aaf5bfa9bd9c 100644
@@ -211,7 +211,7 @@ static void exynos4_frc_resume(struct clocksource *cs)
 
 static struct clocksource mct_frc = {
 	.name		= "mct-frc",
-	.rating		= 400,
+	.rating		= 450,	/* use value higher than ARM arch timer */
 	.read		= exynos4_frc_read,
 	.mask		= CLOCKSOURCE_MASK(32),
 	.flags		= CLOCK_SOURCE_IS_CONTINUOUS,
@@ -466,7 +466,7 @@ static int exynos4_mct_starting_cpu(unsigned int cpu)
 	evt->set_state_oneshot_stopped = set_state_shutdown;
 	evt->tick_resume = set_state_shutdown;
 	evt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT;
-	evt->rating = 450;
+	evt->rating = 500;	/* use value higher than ARM arch timer */
 
 	exynos4_mct_write(TICK_BASE_CNT, mevt->base + MCT_L_TCNTB_OFFSET);
 
drivers/crypto/amcc/crypto4xx_alg.c +25 -11
index 0c85a5123f85..1d87deca32ed 100644
@@ -76,12 +76,16 @@ static void set_dynamic_sa_command_1(struct dynamic_sa_ctl *sa, u32 cm,
 }
 
 static inline int crypto4xx_crypt(struct skcipher_request *req,
-				  const unsigned int ivlen, bool decrypt)
+				  const unsigned int ivlen, bool decrypt,
+				  bool check_blocksize)
 {
 	struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req);
 	struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher);
 	__le32 iv[AES_IV_SIZE];
 
+	if (check_blocksize && !IS_ALIGNED(req->cryptlen, AES_BLOCK_SIZE))
+		return -EINVAL;
+
 	if (ivlen)
 		crypto4xx_memcpy_to_le32(iv, req->iv, ivlen);
 
@@ -90,24 +94,34 @@ static inline int crypto4xx_crypt(struct skcipher_request *req,
 		ctx->sa_len, 0, NULL);
 }
 
-int crypto4xx_encrypt_noiv(struct skcipher_request *req)
+int crypto4xx_encrypt_noiv_block(struct skcipher_request *req)
+{
+	return crypto4xx_crypt(req, 0, false, true);
+}
+
+int crypto4xx_encrypt_iv_stream(struct skcipher_request *req)
+{
+	return crypto4xx_crypt(req, AES_IV_SIZE, false, false);
+}
+
+int crypto4xx_decrypt_noiv_block(struct skcipher_request *req)
 {
-	return crypto4xx_crypt(req, 0, false);
+	return crypto4xx_crypt(req, 0, true, true);
 }
 
-int crypto4xx_encrypt_iv(struct skcipher_request *req)
+int crypto4xx_decrypt_iv_stream(struct skcipher_request *req)
 {
-	return crypto4xx_crypt(req, AES_IV_SIZE, false);
+	return crypto4xx_crypt(req, AES_IV_SIZE, true, false);
 }
 
-int crypto4xx_decrypt_noiv(struct skcipher_request *req)
+int crypto4xx_encrypt_iv_block(struct skcipher_request *req)
 {
-	return crypto4xx_crypt(req, 0, true);
+	return crypto4xx_crypt(req, AES_IV_SIZE, false, true);
 }
 
-int crypto4xx_decrypt_iv(struct skcipher_request *req)
+int crypto4xx_decrypt_iv_block(struct skcipher_request *req)
 {
-	return crypto4xx_crypt(req, AES_IV_SIZE, true);
+	return crypto4xx_crypt(req, AES_IV_SIZE, true, true);
 }
 
 /**
@@ -278,8 +292,8 @@ crypto4xx_ctr_crypt(struct skcipher_request *req, bool encrypt)
 		return ret;
 	}
 
-	return encrypt ? crypto4xx_encrypt_iv(req)
-		       : crypto4xx_decrypt_iv(req);
+	return encrypt ? crypto4xx_encrypt_iv_stream(req)
+		       : crypto4xx_decrypt_iv_stream(req);
 }
 
 static int crypto4xx_sk_setup_fallback(struct crypto4xx_ctx *ctx,
drivers/crypto/amcc/crypto4xx_core.c +12 -12
index d2ec9fd1b8bb..6386e1784fe4 100644
@@ -1153,8 +1153,8 @@ static struct crypto4xx_alg_common crypto4xx_alg[] = {
 		.max_keysize = AES_MAX_KEY_SIZE,
 		.ivsize	= AES_IV_SIZE,
 		.setkey = crypto4xx_setkey_aes_cbc,
-		.encrypt = crypto4xx_encrypt_iv,
-		.decrypt = crypto4xx_decrypt_iv,
+		.encrypt = crypto4xx_encrypt_iv_block,
+		.decrypt = crypto4xx_decrypt_iv_block,
 		.init = crypto4xx_sk_init,
 		.exit = crypto4xx_sk_exit,
 	} },
@@ -1173,8 +1173,8 @@ static struct crypto4xx_alg_common crypto4xx_alg[] = {
 		.max_keysize = AES_MAX_KEY_SIZE,
 		.ivsize	= AES_IV_SIZE,
 		.setkey	= crypto4xx_setkey_aes_cfb,
-		.encrypt = crypto4xx_encrypt_iv,
-		.decrypt = crypto4xx_decrypt_iv,
+		.encrypt = crypto4xx_encrypt_iv_stream,
+		.decrypt = crypto4xx_decrypt_iv_stream,
 		.init = crypto4xx_sk_init,
 		.exit = crypto4xx_sk_exit,
 	} },
@@ -1186,7 +1186,7 @@ static struct crypto4xx_alg_common crypto4xx_alg[] = {
 			.cra_flags = CRYPTO_ALG_NEED_FALLBACK |
 				CRYPTO_ALG_ASYNC |
 				CRYPTO_ALG_KERN_DRIVER_ONLY,
-			.cra_blocksize = AES_BLOCK_SIZE,
+			.cra_blocksize = 1,
 			.cra_ctxsize = sizeof(struct crypto4xx_ctx),
 			.cra_module = THIS_MODULE,
 		},
@@ -1206,7 +1206,7 @@ static struct crypto4xx_alg_common crypto4xx_alg[] = {
 			.cra_priority = CRYPTO4XX_CRYPTO_PRIORITY,
 			.cra_flags = CRYPTO_ALG_ASYNC |
 				CRYPTO_ALG_KERN_DRIVER_ONLY,
-			.cra_blocksize = AES_BLOCK_SIZE,
+			.cra_blocksize = 1,
 			.cra_ctxsize = sizeof(struct crypto4xx_ctx),
 			.cra_module = THIS_MODULE,
 		},
@@ -1226,15 +1226,15 @@ static struct crypto4xx_alg_common crypto4xx_alg[] = {
 			.cra_priority = CRYPTO4XX_CRYPTO_PRIORITY,
 			.cra_flags = CRYPTO_ALG_ASYNC |
 				CRYPTO_ALG_KERN_DRIVER_ONLY,
-			.cra_blocksize = AES_BLOCK_SIZE,
+			.cra_blocksize = 1,
 			.cra_ctxsize = sizeof(struct crypto4xx_ctx),
 			.cra_module = THIS_MODULE,
 		},
 		.min_keysize = AES_MIN_KEY_SIZE,
 		.max_keysize = AES_MAX_KEY_SIZE,
 		.setkey	= crypto4xx_setkey_aes_ecb,
-		.encrypt = crypto4xx_encrypt_noiv,
-		.decrypt = crypto4xx_decrypt_noiv,
+		.encrypt = crypto4xx_encrypt_noiv_block,
+		.decrypt = crypto4xx_decrypt_noiv_block,
 		.init = crypto4xx_sk_init,
 		.exit = crypto4xx_sk_exit,
 	} },
@@ -1245,7 +1245,7 @@ static struct crypto4xx_alg_common crypto4xx_alg[] = {
 			.cra_priority = CRYPTO4XX_CRYPTO_PRIORITY,
 			.cra_flags = CRYPTO_ALG_ASYNC |
 				CRYPTO_ALG_KERN_DRIVER_ONLY,
-			.cra_blocksize = AES_BLOCK_SIZE,
+			.cra_blocksize = 1,
 			.cra_ctxsize = sizeof(struct crypto4xx_ctx),
 			.cra_module = THIS_MODULE,
 		},
@@ -1253,8 +1253,8 @@ static struct crypto4xx_alg_common crypto4xx_alg[] = {
 		.max_keysize = AES_MAX_KEY_SIZE,
 		.ivsize	= AES_IV_SIZE,
 		.setkey	= crypto4xx_setkey_aes_ofb,
-		.encrypt = crypto4xx_encrypt_iv,
-		.decrypt = crypto4xx_decrypt_iv,
+		.encrypt = crypto4xx_encrypt_iv_stream,
+		.decrypt = crypto4xx_decrypt_iv_stream,
 		.init = crypto4xx_sk_init,
 		.exit = crypto4xx_sk_exit,
 	} },
drivers/crypto/amcc/crypto4xx_core.h +6 -4
index e2ca56722f07..21a6bbcedc55 100644
@@ -179,10 +179,12 @@ int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher,
 			     const u8 *key, unsigned int keylen);
 int crypto4xx_encrypt_ctr(struct skcipher_request *req);
 int crypto4xx_decrypt_ctr(struct skcipher_request *req);
-int crypto4xx_encrypt_iv(struct skcipher_request *req);
-int crypto4xx_decrypt_iv(struct skcipher_request *req);
-int crypto4xx_encrypt_noiv(struct skcipher_request *req);
-int crypto4xx_decrypt_noiv(struct skcipher_request *req);
+int crypto4xx_encrypt_iv_stream(struct skcipher_request *req);
+int crypto4xx_decrypt_iv_stream(struct skcipher_request *req);
+int crypto4xx_encrypt_iv_block(struct skcipher_request *req);
+int crypto4xx_decrypt_iv_block(struct skcipher_request *req);
+int crypto4xx_encrypt_noiv_block(struct skcipher_request *req);
+int crypto4xx_decrypt_noiv_block(struct skcipher_request *req);
 int crypto4xx_rfc3686_encrypt(struct skcipher_request *req);
 int crypto4xx_rfc3686_decrypt(struct skcipher_request *req);
 int crypto4xx_sha1_alg_init(struct crypto_tfm *tfm);
drivers/crypto/amcc/crypto4xx_trng.c +0 -1
index 53ab1f140a26..8a3ed4031206 100644
@@ -111,7 +111,6 @@ void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev)
 	return;
 
 err_out:
-	of_node_put(trng);
 	iounmap(dev->trng_base);
 	kfree(rng);
 	dev->trng_base = NULL;
drivers/crypto/caam/caamalg.c +9 -6
index 9bc54c3c2cb9..1907945f82b7 100644
@@ -887,6 +887,7 @@ static void ablkcipher_encrypt_done(struct device *jrdev, u32 *desc, u32 err,
 	struct ablkcipher_request *req = context;
 	struct ablkcipher_edesc *edesc;
 	struct crypto_ablkcipher *ablkcipher = crypto_ablkcipher_reqtfm(req);
+	struct caam_ctx *ctx = crypto_ablkcipher_ctx(ablkcipher);
 	int ivsize = crypto_ablkcipher_ivsize(ablkcipher);
 
 #ifdef DEBUG
@@ -911,10 +912,11 @@ static void ablkcipher_encrypt_done(struct device *jrdev, u32 *desc, u32 err,
 
 	/*
 	 * The crypto API expects us to set the IV (req->info) to the last
-	 * ciphertext block. This is used e.g. by the CTS mode.
+	 * ciphertext block when running in CBC mode.
 	 */
-	scatterwalk_map_and_copy(req->info, req->dst, req->nbytes - ivsize,
-				 ivsize, 0);
+	if ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == OP_ALG_AAI_CBC)
+		scatterwalk_map_and_copy(req->info, req->dst, req->nbytes -
+					 ivsize, ivsize, 0);
 
 	/* In case initial IV was generated, copy it in GIVCIPHER request */
 	if (edesc->iv_dir == DMA_FROM_DEVICE) {
@@ -1651,10 +1653,11 @@ static int ablkcipher_decrypt(struct ablkcipher_request *req)
 
 	/*
 	 * The crypto API expects us to set the IV (req->info) to the last
-	 * ciphertext block.
+	 * ciphertext block when running in CBC mode.
 	 */
-	scatterwalk_map_and_copy(req->info, req->src, req->nbytes - ivsize,
-				 ivsize, 0);
+	if ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == OP_ALG_AAI_CBC)
+		scatterwalk_map_and_copy(req->info, req->src, req->nbytes -
+					 ivsize, ivsize, 0);
 
 	/* Create and submit job descriptor*/
 	init_ablkcipher_job(ctx->sh_desc_dec, ctx->sh_desc_dec_dma, edesc, req);
drivers/crypto/ccp/ccp-dev.c +51 -45

107 lines not on this page · raw message

drivers/crypto/ccp/ccp-dev.h +1 -1
index 6810b65c1939..7442b0422f8a 100644
@@ -632,7 +632,7 @@ struct ccp5_desc {
 void ccp_add_device(struct ccp_device *ccp);
 void ccp_del_device(struct ccp_device *ccp);
 
-extern void ccp_log_error(struct ccp_device *, int);
+extern void ccp_log_error(struct ccp_device *, unsigned int);
 
 struct ccp_device *ccp_alloc_struct(struct sp_device *sp);
 bool ccp_queues_suspended(struct ccp_device *ccp);
drivers/crypto/ccp/ccp-ops.c +13 -2
index 0ea43cdeb05f..e212badd39fa 100644
@@ -625,6 +625,7 @@ static int ccp_run_aes_gcm_cmd(struct ccp_cmd_queue *cmd_q,
 
 	unsigned long long *final;
 	unsigned int dm_offset;
+	unsigned int jobid;
 	unsigned int ilen;
 	bool in_place = true; /* Default value */
 	int ret;
@@ -663,9 +664,11 @@ static int ccp_run_aes_gcm_cmd(struct ccp_cmd_queue *cmd_q,
 		p_tag = scatterwalk_ffwd(sg_tag, p_inp, ilen);
 	}
 
+	jobid = CCP_NEW_JOBID(cmd_q->ccp);
+
 	memset(&op, 0, sizeof(op));
 	op.cmd_q = cmd_q;
-	op.jobid = CCP_NEW_JOBID(cmd_q->ccp);
+	op.jobid = jobid;
 	op.sb_key = cmd_q->sb_key; /* Pre-allocated */
 	op.sb_ctx = cmd_q->sb_ctx; /* Pre-allocated */
 	op.init = 1;
@@ -816,6 +819,13 @@ static int ccp_run_aes_gcm_cmd(struct ccp_cmd_queue *cmd_q,
 	final[0] = cpu_to_be64(aes->aad_len * 8);
 	final[1] = cpu_to_be64(ilen * 8);
 
+	memset(&op, 0, sizeof(op));
+	op.cmd_q = cmd_q;
+	op.jobid = jobid;
+	op.sb_key = cmd_q->sb_key; /* Pre-allocated */
+	op.sb_ctx = cmd_q->sb_ctx; /* Pre-allocated */
+	op.init = 1;
+	op.u.aes.type = aes->type;
 	op.u.aes.mode = CCP_AES_MODE_GHASH;
 	op.u.aes.action = CCP_AES_GHASHFINAL;
 	op.src.type = CCP_MEMTYPE_SYSTEM;
@@ -843,7 +853,8 @@ static int ccp_run_aes_gcm_cmd(struct ccp_cmd_queue *cmd_q,
 		if (ret)
 			goto e_tag;
 
-		ret = memcmp(tag.address, final_wa.address, AES_BLOCK_SIZE);
+		ret = crypto_memneq(tag.address, final_wa.address,
+				    AES_BLOCK_SIZE) ? -EBADMSG : 0;
 		ccp_dm_free(&tag);
 	}
 
drivers/crypto/inside-secure/safexcel_cipher.c +18 -6
index 3aef1d43e435..42a3830fbd19 100644
@@ -51,6 +51,8 @@ struct safexcel_cipher_ctx {
 
 struct safexcel_cipher_req {
 	enum safexcel_cipher_direction direction;
+	/* Number of result descriptors associated to the request */
+	unsigned int rdescs;
 	bool needs_inv;
 };
 
@@ -333,7 +335,10 @@ static int safexcel_handle_req_result(struct safexcel_crypto_priv *priv, int rin
 
 	*ret = 0;
 
-	do {
+	if (unlikely(!sreq->rdescs))
+		return 0;
+
+	while (sreq->rdescs--) {
 		rdesc = safexcel_ring_next_rptr(priv, &priv->ring[ring].rdr);
 		if (IS_ERR(rdesc)) {
 			dev_err(priv->dev,
@@ -346,7 +351,7 @@ static int safexcel_handle_req_result(struct safexcel_crypto_priv *priv, int rin
 			*ret = safexcel_rdesc_check_errors(priv, rdesc);
 
 		ndesc++;
-	} while (!rdesc->last_seg);
+	}
 
 	safexcel_complete(priv, ring);
 
@@ -501,6 +506,7 @@ static int safexcel_send_req(struct crypto_async_request *base, int ring,
 static int safexcel_handle_inv_result(struct safexcel_crypto_priv *priv,
 				      int ring,
 				      struct crypto_async_request *base,
+				      struct safexcel_cipher_req *sreq,
 				      bool *should_complete, int *ret)
 {
 	struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(base->tfm);
@@ -509,7 +515,10 @@ static int safexcel_handle_inv_result(struct safexcel_crypto_priv *priv,
 
 	*ret = 0;
 
-	do {
+	if (unlikely(!sreq->rdescs))
+		return 0;
+
+	while (sreq->rdescs--) {
 		rdesc = safexcel_ring_next_rptr(priv, &priv->ring[ring].rdr);
 		if (IS_ERR(rdesc)) {
 			dev_err(priv->dev,
@@ -522,7 +531,7 @@ static int safexcel_handle_inv_result(struct safexcel_crypto_priv *priv,
 			*ret = safexcel_rdesc_check_errors(priv, rdesc);
 
 		ndesc++;
-	} while (!rdesc->last_seg);
+	}
 
 	safexcel_complete(priv, ring);
 
@@ -564,7 +573,7 @@ static int safexcel_skcipher_handle_result(struct safexcel_crypto_priv *priv,
 
 	if (sreq->needs_inv) {
 		sreq->needs_inv = false;
-		err = safexcel_handle_inv_result(priv, ring, async,
+		err = safexcel_handle_inv_result(priv, ring, async, sreq,
 						 should_complete, ret);
 	} else {
 		err = safexcel_handle_req_result(priv, ring, async, req->src,
@@ -587,7 +596,7 @@ static int safexcel_aead_handle_result(struct safexcel_crypto_priv *priv,
 
 	if (sreq->needs_inv) {
 		sreq->needs_inv = false;
-		err = safexcel_handle_inv_result(priv, ring, async,
+		err = safexcel_handle_inv_result(priv, ring, async, sreq,
 						 should_complete, ret);
 	} else {
 		err = safexcel_handle_req_result(priv, ring, async, req->src,
@@ -633,6 +642,8 @@ static int safexcel_skcipher_send(struct crypto_async_request *async, int ring,
 		ret = safexcel_send_req(async, ring, sreq, req->src,
 					req->dst, req->cryptlen, 0, 0, req->iv,
 					commands, results);
+
+	sreq->rdescs = *results;
 	return ret;
 }
 
@@ -655,6 +666,7 @@ static int safexcel_aead_send(struct crypto_async_request *async, int ring,
 					req->cryptlen, req->assoclen,
 					crypto_aead_authsize(tfm), req->iv,
 					commands, results);
+	sreq->rdescs = *results;
 	return ret;
 }
 
drivers/crypto/talitos.c +23 -12
index 5849075d54c7..41b288bdcdbf 100644
@@ -1001,7 +1001,6 @@ static void ipsec_esp_encrypt_done(struct device *dev,
 	unsigned int authsize = crypto_aead_authsize(authenc);
 	unsigned int ivsize = crypto_aead_ivsize(authenc);
 	struct talitos_edesc *edesc;
-	struct scatterlist *sg;
 	void *icvdata;
 
 	edesc = container_of(desc, struct talitos_edesc, desc);
@@ -1015,9 +1014,8 @@ static void ipsec_esp_encrypt_done(struct device *dev,
 		else
 			icvdata = &edesc->link_tbl[edesc->src_nents +
 						   edesc->dst_nents + 2];
-		sg = sg_last(areq->dst, edesc->dst_nents);
-		memcpy((char *)sg_virt(sg) + sg->length - authsize,
-		       icvdata, authsize);
+		sg_pcopy_from_buffer(areq->dst, edesc->dst_nents ? : 1, icvdata,
+				     authsize, areq->assoclen + areq->cryptlen);
 	}
 
 	dma_unmap_single(dev, edesc->iv_dma, ivsize, DMA_TO_DEVICE);
@@ -1035,7 +1033,6 @@ static void ipsec_esp_decrypt_swauth_done(struct device *dev,
 	struct crypto_aead *authenc = crypto_aead_reqtfm(req);
 	unsigned int authsize = crypto_aead_authsize(authenc);
 	struct talitos_edesc *edesc;
-	struct scatterlist *sg;
 	char *oicv, *icv;
 	struct talitos_private *priv = dev_get_drvdata(dev);
 	bool is_sec1 = has_ftr_sec1(priv);
@@ -1045,9 +1042,18 @@ static void ipsec_esp_decrypt_swauth_done(struct device *dev,
 	ipsec_esp_unmap(dev, edesc, req);
 
 	if (!err) {
+		char icvdata[SHA512_DIGEST_SIZE];
+		int nents = edesc->dst_nents ? : 1;
+		unsigned int len = req->assoclen + req->cryptlen;
+
 		/* auth check */
-		sg = sg_last(req->dst, edesc->dst_nents ? : 1);
-		icv = (char *)sg_virt(sg) + sg->length - authsize;
+		if (nents > 1) {
+			sg_pcopy_to_buffer(req->dst, nents, icvdata, authsize,
+					   len - authsize);
+			icv = icvdata;
+		} else {
+			icv = (char *)sg_virt(req->dst) + len - authsize;
+		}
 
 		if (edesc->dma_len) {
 			if (is_sec1)
@@ -1463,7 +1469,6 @@ static int aead_decrypt(struct aead_request *req)
 	struct talitos_ctx *ctx = crypto_aead_ctx(authenc);
 	struct talitos_private *priv = dev_get_drvdata(ctx->dev);
 	struct talitos_edesc *edesc;
-	struct scatterlist *sg;
 	void *icvdata;
 
 	req->cryptlen -= authsize;
@@ -1497,9 +1502,8 @@ static int aead_decrypt(struct aead_request *req)
 	else
 		icvdata = &edesc->link_tbl[0];
 
-	sg = sg_last(req->src, edesc->src_nents ? : 1);
-
-	memcpy(icvdata, (char *)sg_virt(sg) + sg->length - authsize, authsize);
+	sg_pcopy_to_buffer(req->src, edesc->src_nents ? : 1, icvdata, authsize,
+			   req->assoclen + req->cryptlen - authsize);
 
 	return ipsec_esp(edesc, req, ipsec_esp_decrypt_swauth_done);
 }
@@ -1553,11 +1557,15 @@ static void ablkcipher_done(struct device *dev,
 			    int err)
 {
 	struct ablkcipher_request *areq = context;
+	struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq);
+	struct talitos_ctx *ctx = crypto_ablkcipher_ctx(cipher);
+	unsigned int ivsize = crypto_ablkcipher_ivsize(cipher);
 	struct talitos_edesc *edesc;
 
 	edesc = container_of(desc, struct talitos_edesc, desc);
 
 	common_nonsnoop_unmap(dev, edesc, areq);
+	memcpy(areq->info, ctx->iv, ivsize);
 
 	kfree(edesc);
 
@@ -3185,7 +3193,10 @@ static struct talitos_crypto_alg *talitos_alg_alloc(struct device *dev,
 		alg->cra_priority = t_alg->algt.priority;
 	else
 		alg->cra_priority = TALITOS_CRA_PRIORITY;
-	alg->cra_alignmask = 0;
+	if (has_ftr_sec1(priv))
+		alg->cra_alignmask = 3;
+	else
+		alg->cra_alignmask = 0;
 	alg->cra_ctxsize = sizeof(struct talitos_ctx);
 	alg->cra_flags |= CRYPTO_ALG_KERN_DRIVER_ONLY;
 
drivers/dma/imx-sdma.c +27 -21

60 lines not on this page · raw message

drivers/edac/edac_mc_sysfs.c +15 -9
index 20374b8248f0..d4545a9222a0 100644
@@ -26,7 +26,7 @@
 static int edac_mc_log_ue = 1;
 static int edac_mc_log_ce = 1;
 static int edac_mc_panic_on_ue;
-static int edac_mc_poll_msec = 1000;
+static unsigned int edac_mc_poll_msec = 1000;
 
 /* Getter functions for above */
 int edac_mc_get_log_ue(void)
@@ -45,30 +45,30 @@ int edac_mc_get_panic_on_ue(void)
 }
 
 /* this is temporary */
-int edac_mc_get_poll_msec(void)
+unsigned int edac_mc_get_poll_msec(void)
 {
 	return edac_mc_poll_msec;
 }
 
 static int edac_set_poll_msec(const char *val, const struct kernel_param *kp)
 {
-	unsigned long l;
+	unsigned int i;
 	int ret;
 
 	if (!val)
 		return -EINVAL;
 
-	ret = kstrtoul(val, 0, &l);
+	ret = kstrtouint(val, 0, &i);
 	if (ret)
 		return ret;
 
-	if (l < 1000)
+	if (i < 1000)
 		return -EINVAL;
 
-	*((unsigned long *)kp->arg) = l;
+	*((unsigned int *)kp->arg) = i;
 
 	/* notify edac_mc engine to reset the poll period */
-	edac_mc_reset_delay_period(l);
+	edac_mc_reset_delay_period(i);
 
 	return 0;
 }
@@ -82,7 +82,7 @@ MODULE_PARM_DESC(edac_mc_log_ue,
 module_param(edac_mc_log_ce, int, 0644);
 MODULE_PARM_DESC(edac_mc_log_ce,
 		 "Log correctable error to console: 0=off 1=on");
-module_param_call(edac_mc_poll_msec, edac_set_poll_msec, param_get_int,
+module_param_call(edac_mc_poll_msec, edac_set_poll_msec, param_get_uint,
 		  &edac_mc_poll_msec, 0644);
 MODULE_PARM_DESC(edac_mc_poll_msec, "Polling period in milliseconds");
 
@@ -404,6 +404,8 @@ static inline int nr_pages_per_csrow(struct csrow_info *csrow)
 static int edac_create_csrow_object(struct mem_ctl_info *mci,
 				    struct csrow_info *csrow, int index)
 {
+	int err;
+
 	csrow->dev.type = &csrow_attr_type;
 	csrow->dev.bus = mci->bus;
 	csrow->dev.groups = csrow_dev_groups;
@@ -416,7 +418,11 @@ static int edac_create_csrow_object(struct mem_ctl_info *mci,
 	edac_dbg(0, "creating (virtual) csrow node %s\n",
 		 dev_name(&csrow->dev));
 
-	return device_add(&csrow->dev);
+	err = device_add(&csrow->dev);
+	if (err)
+		put_device(&csrow->dev);
+
+	return err;
 }
 
 /* Create a CSROW object under specifed edac_mc_device */
drivers/edac/edac_module.h +1 -1
index dec88dcea036..c9f0e73872a6 100644
@@ -36,7 +36,7 @@ extern int edac_mc_get_log_ue(void);
 extern int edac_mc_get_log_ce(void);
 extern int edac_mc_get_panic_on_ue(void);
 extern int edac_get_poll_msec(void);
-extern int edac_mc_get_poll_msec(void);
+extern unsigned int edac_mc_get_poll_msec(void);
 
 unsigned edac_dimm_info_location(struct dimm_info *dimm, char *buf,
 				 unsigned len);
drivers/gpio/gpio-omap.c +10 -7
index 6fa430d98517..feabac40743e 100644
@@ -837,9 +837,9 @@ static void omap_gpio_irq_shutdown(struct irq_data *d)
 
 	raw_spin_lock_irqsave(&bank->lock, flags);
 	bank->irq_usage &= ~(BIT(offset));
-	omap_set_gpio_irqenable(bank, offset, 0);
-	omap_clear_gpio_irqstatus(bank, offset);
 	omap_set_gpio_triggering(bank, offset, IRQ_TYPE_NONE);
+	omap_clear_gpio_irqstatus(bank, offset);
+	omap_set_gpio_irqenable(bank, offset, 0);
 	if (!LINE_USED(bank->mod_usage, offset))
 		omap_clear_gpio_debounce(bank, offset);
 	omap_disable_gpio_module(bank, offset);
@@ -881,8 +881,8 @@ static void omap_gpio_mask_irq(struct irq_data *d)
 	unsigned long flags;
 
 	raw_spin_lock_irqsave(&bank->lock, flags);
-	omap_set_gpio_irqenable(bank, offset, 0);
 	omap_set_gpio_triggering(bank, offset, IRQ_TYPE_NONE);
+	omap_set_gpio_irqenable(bank, offset, 0);
 	raw_spin_unlock_irqrestore(&bank->lock, flags);
 }
 
@@ -894,9 +894,6 @@ static void omap_gpio_unmask_irq(struct irq_data *d)
 	unsigned long flags;
 
 	raw_spin_lock_irqsave(&bank->lock, flags);
-	if (trigger)
-		omap_set_gpio_triggering(bank, offset, trigger);
-
 	omap_set_gpio_irqenable(bank, offset, 1);
 
 	/*
@@ -904,9 +901,13 @@ static void omap_gpio_unmask_irq(struct irq_data *d)
 	 * is cleared, thus after the handler has run. OMAP4 needs this done
 	 * after enabing the interrupt to clear the wakeup status.
 	 */
-	if (bank->level_mask & BIT(offset))
+	if (bank->regs->leveldetect0 && bank->regs->wkup_en &&
+	    trigger & (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW))
 		omap_clear_gpio_irqstatus(bank, offset);
 
+	if (trigger)
+		omap_set_gpio_triggering(bank, offset, trigger);
+
 	raw_spin_unlock_irqrestore(&bank->lock, flags);
 }
 
@@ -1687,6 +1688,8 @@ static struct omap_gpio_reg_offs omap4_gpio_regs = {
 	.clr_dataout =		OMAP4_GPIO_CLEARDATAOUT,
 	.irqstatus =		OMAP4_GPIO_IRQSTATUS0,
 	.irqstatus2 =		OMAP4_GPIO_IRQSTATUS1,
+	.irqstatus_raw0 =	OMAP4_GPIO_IRQSTATUSRAW0,
+	.irqstatus_raw1 =	OMAP4_GPIO_IRQSTATUSRAW1,
 	.irqenable =		OMAP4_GPIO_IRQSTATUSSET0,
 	.irqenable2 =		OMAP4_GPIO_IRQSTATUSSET1,
 	.set_irqenable =	OMAP4_GPIO_IRQSTATUSSET0,
drivers/gpio/gpiolib.c +4 -3
index fd713326dcfc..4a48c7c47709 100644
@@ -2877,7 +2877,7 @@ int gpiod_get_array_value_complex(bool raw, bool can_sleep,
 int gpiod_get_raw_value(const struct gpio_desc *desc)
 {
 	VALIDATE_DESC(desc);
-	/* Should be using gpio_get_value_cansleep() */
+	/* Should be using gpiod_get_raw_value_cansleep() */
 	WARN_ON(desc->gdev->chip->can_sleep);
 	return gpiod_get_raw_value_commit(desc);
 }
@@ -2898,7 +2898,7 @@ int gpiod_get_value(const struct gpio_desc *desc)
 	int value;
 
 	VALIDATE_DESC(desc);
-	/* Should be using gpio_get_value_cansleep() */
+	/* Should be using gpiod_get_value_cansleep() */
 	WARN_ON(desc->gdev->chip->can_sleep);
 
 	value = gpiod_get_raw_value_commit(desc);
@@ -3123,7 +3123,7 @@ int gpiod_set_array_value_complex(bool raw, bool can_sleep,
 void gpiod_set_raw_value(struct gpio_desc *desc, int value)
 {
 	VALIDATE_DESC_VOID(desc);
-	/* Should be using gpiod_set_value_cansleep() */
+	/* Should be using gpiod_set_raw_value_cansleep() */
 	WARN_ON(desc->gdev->chip->can_sleep);
 	gpiod_set_raw_value_commit(desc, value);
 }
@@ -3164,6 +3164,7 @@ static void gpiod_set_value_nocheck(struct gpio_desc *desc, int value)
 void gpiod_set_value(struct gpio_desc *desc, int value)
 {
 	VALIDATE_DESC_VOID(desc);
+	/* Should be using gpiod_set_value_cansleep() */
 	WARN_ON(desc->gdev->chip->can_sleep);
 	gpiod_set_value_nocheck(desc, value);
 }
drivers/gpu/drm/drm_edid.c +70 -11

111 lines not on this page · raw message

drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c +20 -0
index ecacb22834d7..719345074711 100644
@@ -184,6 +184,25 @@ nvkm_i2c_fini(struct nvkm_subdev *subdev, bool suspend)
 	return 0;
 }
 
+static int
+nvkm_i2c_preinit(struct nvkm_subdev *subdev)
+{
+	struct nvkm_i2c *i2c = nvkm_i2c(subdev);
+	struct nvkm_i2c_bus *bus;
+	struct nvkm_i2c_pad *pad;
+
+	/*
+	 * We init our i2c busses as early as possible, since they may be
+	 * needed by the vbios init scripts on some cards
+	 */
+	list_for_each_entry(pad, &i2c->pad, head)
+		nvkm_i2c_pad_init(pad);
+	list_for_each_entry(bus, &i2c->bus, head)
+		nvkm_i2c_bus_init(bus);
+
+	return 0;
+}
+
 static int
 nvkm_i2c_init(struct nvkm_subdev *subdev)
 {
@@ -238,6 +257,7 @@ nvkm_i2c_dtor(struct nvkm_subdev *subdev)
 static const struct nvkm_subdev_func
 nvkm_i2c = {
 	.dtor = nvkm_i2c_dtor,
+	.preinit = nvkm_i2c_preinit,
 	.init = nvkm_i2c_init,
 	.fini = nvkm_i2c_fini,
 	.intr = nvkm_i2c_intr,
drivers/gpu/ipu-v3/ipu-ic.c +1 -1
index 67cc820253a9..fb79e118f26c 100644
@@ -257,7 +257,7 @@ static int init_csc(struct ipu_ic *ic,
 	writel(param, base++);
 
 	param = ((a[0] & 0x1fe0) >> 5) | (params->scale << 8) |
-		(params->sat << 9);
+		(params->sat << 10);
 	writel(param, base++);
 
 	param = ((a[1] & 0x1f) << 27) | ((c[0][1] & 0x1ff) << 18) |
drivers/hid/wacom_sys.c +3 -0
index 0bdd85d486fe..9cd4705b74bd 100644
@@ -275,6 +275,9 @@ static void wacom_feature_mapping(struct hid_device *hdev,
 	wacom_hid_usage_quirk(hdev, field, usage);
 
 	switch (equivalent_usage) {
+	case WACOM_HID_WD_TOUCH_RING_SETTING:
+		wacom->generic_has_leds = true;
+		break;
 	case HID_DG_CONTACTMAX:
 		/* leave touch_max as is if predefined */
 		if (!features->touch_max) {
drivers/hid/wacom_wac.c +9 -10
index d7c3f4ac2c04..0ae848369474 100644
@@ -1928,8 +1928,6 @@ static void wacom_wac_pad_usage_mapping(struct hid_device *hdev,
 		features->device_type |= WACOM_DEVICETYPE_PAD;
 		break;
 	case WACOM_HID_WD_BUTTONCENTER:
-		wacom->generic_has_leds = true;
-		/* fall through */
 	case WACOM_HID_WD_BUTTONHOME:
 	case WACOM_HID_WD_BUTTONUP:
 	case WACOM_HID_WD_BUTTONDOWN:
@@ -2121,14 +2119,12 @@ static void wacom_wac_pad_report(struct hid_device *hdev,
 	bool active = wacom_wac->hid_data.inrange_state != 0;
 
 	/* report prox for expresskey events */
-	if ((wacom_equivalent_usage(field->physical) == HID_DG_TABLETFUNCTIONKEY) &&
-	    wacom_wac->hid_data.pad_input_event_flag) {
+	if (wacom_wac->hid_data.pad_input_event_flag) {
 		input_event(input, EV_ABS, ABS_MISC, active ? PAD_DEVICE_ID : 0);
 		input_sync(input);
 		if (!active)
 			wacom_wac->hid_data.pad_input_event_flag = false;
 	}
-
 }
 
 static void wacom_wac_pen_usage_mapping(struct hid_device *hdev,
@@ -2725,9 +2721,7 @@ static int wacom_wac_collection(struct hid_device *hdev, struct hid_report *repo
 	if (report->type != HID_INPUT_REPORT)
 		return -1;
 
-	if (WACOM_PAD_FIELD(field) && wacom->wacom_wac.pad_input)
-		wacom_wac_pad_report(hdev, report, field);
-	else if (WACOM_PEN_FIELD(field) && wacom->wacom_wac.pen_input)
+	if (WACOM_PEN_FIELD(field) && wacom->wacom_wac.pen_input)
 		wacom_wac_pen_report(hdev, report);
 	else if (WACOM_FINGER_FIELD(field) && wacom->wacom_wac.touch_input)
 		wacom_wac_finger_report(hdev, report);
@@ -2741,7 +2735,7 @@ void wacom_wac_report(struct hid_device *hdev, struct hid_report *report)
 	struct wacom_wac *wacom_wac = &wacom->wacom_wac;
 	struct hid_field *field;
 	bool pad_in_hid_field = false, pen_in_hid_field = false,
-		finger_in_hid_field = false;
+		finger_in_hid_field = false, true_pad = false;
 	int r;
 	int prev_collection = -1;
 
@@ -2757,6 +2751,8 @@ void wacom_wac_report(struct hid_device *hdev, struct hid_report *report)
 			pen_in_hid_field = true;
 		if (WACOM_FINGER_FIELD(field))
 			finger_in_hid_field = true;
+		if (wacom_equivalent_usage(field->physical) == HID_DG_TABLETFUNCTIONKEY)
+			true_pad = true;
 	}
 
 	wacom_wac_battery_pre_report(hdev, report);
@@ -2780,6 +2776,9 @@ void wacom_wac_report(struct hid_device *hdev, struct hid_report *report)
 	}
 
 	wacom_wac_battery_report(hdev, report);
+
+	if (true_pad && wacom->wacom_wac.pad_input)
+		wacom_wac_pad_report(hdev, report, field);
 }
 
 static int wacom_bpt_touch(struct wacom_wac *wacom)
@@ -3735,7 +3734,7 @@ int wacom_setup_touch_input_capabilities(struct input_dev *input_dev,
 					     0, 5920, 4, 0);
 		}
 		input_abs_set_res(input_dev, ABS_MT_POSITION_X, 40);
-		input_abs_set_res(input_dev, ABS_MT_POSITION_X, 40);
+		input_abs_set_res(input_dev, ABS_MT_POSITION_Y, 40);
 
 		/* fall through */
 
drivers/hid/wacom_wac.h +1 -0
index 295fd3718caa..f67d871841c0 100644
@@ -145,6 +145,7 @@
 #define WACOM_HID_WD_OFFSETBOTTOM       (WACOM_HID_UP_WACOMDIGITIZER | 0x0d33)
 #define WACOM_HID_WD_DATAMODE           (WACOM_HID_UP_WACOMDIGITIZER | 0x1002)
 #define WACOM_HID_WD_DIGITIZERINFO      (WACOM_HID_UP_WACOMDIGITIZER | 0x1013)
+#define WACOM_HID_WD_TOUCH_RING_SETTING (WACOM_HID_UP_WACOMDIGITIZER | 0x1032)
 #define WACOM_HID_UP_G9                 0xff090000
 #define WACOM_HID_G9_PEN                (WACOM_HID_UP_G9 | 0x02)
 #define WACOM_HID_G9_TOUCHSCREEN        (WACOM_HID_UP_G9 | 0x11)
drivers/hwtracing/intel_th/msu.c +1 -1
index 8ff326c0c406..3cdf85b1ce4f 100644
@@ -632,7 +632,7 @@ static int msc_buffer_contig_alloc(struct msc *msc, unsigned long size)
 		goto err_out;
 
 	ret = -ENOMEM;
-	page = alloc_pages(GFP_KERNEL | __GFP_ZERO, order);
+	page = alloc_pages(GFP_KERNEL | __GFP_ZERO | GFP_DMA32, order);
 	if (!page)
 		goto err_free_sgt;
 
drivers/hwtracing/intel_th/pci.c +5 -0
index 70f2cb90adc5..e759ac0d48be 100644
@@ -170,6 +170,11 @@ static const struct pci_device_id intel_th_pci_id_table[] = {
 		PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x02a6),
 		.driver_data = (kernel_ulong_t)&intel_th_2x,
 	},
+	{
+		/* Ice Lake NNPI */
+		PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x45c5),
+		.driver_data = (kernel_ulong_t)&intel_th_2x,
+	},
 	{ 0 },
 };
 
drivers/infiniband/hw/mlx5/main.c +6 -2
index 8cc4da62f050..53eccc0da8fd 100644
@@ -939,15 +939,19 @@ static int mlx5_ib_query_device(struct ib_device *ibdev,
 	}
 
 	if (MLX5_CAP_GEN(mdev, tag_matching)) {
-		props->tm_caps.max_rndv_hdr_size = MLX5_TM_MAX_RNDV_MSG_SIZE;
 		props->tm_caps.max_num_tags =
 			(1 << MLX5_CAP_GEN(mdev, log_tag_matching_list_sz)) - 1;
-		props->tm_caps.flags = IB_TM_CAP_RC;
 		props->tm_caps.max_ops =
 			1 << MLX5_CAP_GEN(mdev, log_max_qp_sz);
 		props->tm_caps.max_sge = MLX5_TM_MAX_SGE;
 	}
 
+	if (MLX5_CAP_GEN(mdev, tag_matching) &&
+	    MLX5_CAP_GEN(mdev, rndv_offload_rc)) {
+		props->tm_caps.flags = IB_TM_CAP_RNDV_RC;
+		props->tm_caps.max_rndv_hdr_size = MLX5_TM_MAX_RNDV_MSG_SIZE;
+	}
+
 	if (MLX5_CAP_GEN(dev->mdev, cq_moderation)) {
 		props->cq_caps.max_cq_moderation_count =
 						MLX5_MAX_CQ_COUNT;
drivers/infiniband/ulp/ipoib/ipoib_main.c +1 -0
index 30f840f874b3..009615499b37 100644
@@ -1997,6 +1997,7 @@ static int ipoib_get_vf_config(struct net_device *dev, int vf,
 		return err;
 
 	ivf->vf = vf;
+	memcpy(ivf->mac, dev->dev_addr, dev->addr_len);
 
 	return 0;
 }
drivers/input/mouse/alps.c +32 -0
index 0a6f7ca883e7..dd80ff6cc427 100644
@@ -24,6 +24,7 @@
 
 #include "psmouse.h"
 #include "alps.h"
+#include "trackpoint.h"
 
 /*
  * Definitions for ALPS version 3 and 4 command mode protocol
@@ -2864,6 +2865,23 @@ static const struct alps_protocol_info *alps_match_table(unsigned char *e7,
 	return NULL;
 }
 
+static bool alps_is_cs19_trackpoint(struct psmouse *psmouse)
+{
+	u8 param[2] = { 0 };
+
+	if (ps2_command(&psmouse->ps2dev,
+			param, MAKE_PS2_CMD(0, 2, TP_READ_ID)))
+		return false;
+
+	/*
+	 * param[0] contains the trackpoint device variant_id while
+	 * param[1] contains the firmware_id. So far all alps
+	 * trackpoint-only devices have their variant_ids equal
+	 * TP_VARIANT_ALPS and their firmware_ids are in 0x20~0x2f range.
+	 */
+	return param[0] == TP_VARIANT_ALPS && ((param[1] & 0xf0) == 0x20);
+}
+
 static int alps_identify(struct psmouse *psmouse, struct alps_data *priv)
 {
 	const struct alps_protocol_info *protocol;
@@ -3164,6 +3182,20 @@ int alps_detect(struct psmouse *psmouse, bool set_properties)
 	if (error)
 		return error;
 
+	/*
+	 * ALPS cs19 is a trackpoint-only device, and uses different
+	 * protocol than DualPoint ones, so we return -EINVAL here and let
+	 * trackpoint.c drive this device. If the trackpoint driver is not
+	 * enabled, the device will fall back to a bare PS/2 mouse.
+	 * If ps2_command() fails here, we depend on the immediately
+	 * followed psmouse_reset() to reset the device to normal state.
+	 */
+	if (alps_is_cs19_trackpoint(psmouse)) {
+		psmouse_dbg(psmouse,
+			    "ALPS CS19 trackpoint-only device detected, ignoring\n");
+		return -EINVAL;
+	}
+
 	/*
 	 * Reset the device to make sure it is fully operational:
 	 * on some laptops, like certain Dell Latitudes, we may
drivers/input/mouse/synaptics.c +1 -0
index 68fd8232d44c..af7d48431b85 100644
@@ -179,6 +179,7 @@ static const char * const smbus_pnp_ids[] = {
 	"LEN0093", /* T480 */
 	"LEN0096", /* X280 */
 	"LEN0097", /* X280 -> ALPS trackpoint */
+	"LEN009b", /* T580 */
 	"LEN200f", /* T450s */
 	"LEN2054", /* E480 */
 	"LEN2055", /* E580 */
drivers/input/tablet/gtco.c +17 -3
index 4b8b9d7aa75e..35031228a6d0 100644
@@ -78,6 +78,7 @@ Scott Hill [email protected]
 
 /* Max size of a single report */
 #define REPORT_MAX_SIZE       10
+#define MAX_COLLECTION_LEVELS  10
 
 
 /* Bitmask whether pen is in range */
@@ -223,8 +224,7 @@ static void parse_hid_report_descriptor(struct gtco *device, char * report,
 	char  maintype = 'x';
 	char  globtype[12];
 	int   indent = 0;
-	char  indentstr[10] = "";
-
+	char  indentstr[MAX_COLLECTION_LEVELS + 1] = { 0 };
 
 	dev_dbg(ddev, "======>>>>>>PARSE<<<<<<======\n");
 
@@ -350,6 +350,13 @@ static void parse_hid_report_descriptor(struct gtco *device, char * report,
 			case TAG_MAIN_COL_START:
 				maintype = 'S';
 
+				if (indent == MAX_COLLECTION_LEVELS) {
+					dev_err(ddev, "Collection level %d would exceed limit of %d\n",
+						indent + 1,
+						MAX_COLLECTION_LEVELS);
+					break;
+				}
+
 				if (data == 0) {
 					dev_dbg(ddev, "======>>>>>> Physical\n");
 					strcpy(globtype, "Physical");
@@ -369,8 +376,15 @@ static void parse_hid_report_descriptor(struct gtco *device, char * report,
 				break;
 
 			case TAG_MAIN_COL_END:
-				dev_dbg(ddev, "<<<<<<======\n");
 				maintype = 'E';
+
+				if (indent == 0) {
+					dev_err(ddev, "Collection level already at zero\n");
+					break;
+				}
+
+				dev_dbg(ddev, "<<<<<<======\n");
+
 				indent--;
 				for (x = 0; x < indent; x++)
 					indentstr[x] = '-';
drivers/iommu/iommu.c +5 -3
index 8c15c5980299..bc14825edc9c 100644
@@ -211,18 +211,21 @@ static int iommu_insert_resv_region(struct iommu_resv_region *new,
 			pos = pos->next;
 		} else if ((start >= a) && (end <= b)) {
 			if (new->type == type)
-				goto done;
+				return 0;
 			else
 				pos = pos->next;
 		} else {
 			if (new->type == type) {
 				phys_addr_t new_start = min(a, start);
 				phys_addr_t new_end = max(b, end);
+				int ret;
 
 				list_del(&entry->list);
 				entry->start = new_start;
 				entry->length = new_end - new_start + 1;
-				iommu_insert_resv_region(entry, regions);
+				ret = iommu_insert_resv_region(entry, regions);
+				kfree(entry);
+				return ret;
 			} else {
 				pos = pos->next;
 			}
@@ -235,7 +238,6 @@ static int iommu_insert_resv_region(struct iommu_resv_region *new,
 		return -ENOMEM;
 
 	list_add_tail(&region->list, pos);
-done:
 	return 0;
 }
 
drivers/irqchip/irq-meson-gpio.c +1 -0
index 7b531fd075b8..7599b10ecf09 100644
@@ -73,6 +73,7 @@ static const struct of_device_id meson_irq_gpio_matches[] = {
 	{ .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params },
 	{ .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params },
 	{ .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params },
+	{ .compatible = "amlogic,meson-g12a-gpio-intc", .data = &axg_params },
 	{ }
 };
 
drivers/lightnvm/pblk-core.c +10 -8
index 95be6e36c7dd..80710c62ac29 100644
@@ -288,14 +288,16 @@ void pblk_free_rqd(struct pblk *pblk, struct nvm_rq *rqd, int type)
 void pblk_bio_free_pages(struct pblk *pblk, struct bio *bio, int off,
 			 int nr_pages)
 {
-	struct bio_vec bv;
-	int i;
-
-	WARN_ON(off + nr_pages != bio->bi_vcnt);
-
-	for (i = off; i < nr_pages + off; i++) {
-		bv = bio->bi_io_vec[i];
-		mempool_free(bv.bv_page, &pblk->page_bio_pool);
+	struct bio_vec *bv;
+	struct page *page;
+	int i, e, nbv = 0;
+
+	for (i = 0; i < bio->bi_vcnt; i++) {
+		bv = &bio->bi_io_vec[i];
+		page = bv->bv_page;
+		for (e = 0; e < bv->bv_len; e += PBLK_EXPOSED_PAGE_SIZE, nbv++)
+			if (nbv >= off)
+				mempool_free(page++, &pblk->page_bio_pool);
 	}
 }
 
drivers/md/bcache/alloc.c +9 -0
index de85b3af3b39..9c3beb1e382b 100644
@@ -393,6 +393,11 @@ long bch_bucket_alloc(struct cache *ca, unsigned int reserve, bool wait)
 	struct bucket *b;
 	long r;
 
+
+	/* No allocation if CACHE_SET_IO_DISABLE bit is set */
+	if (unlikely(test_bit(CACHE_SET_IO_DISABLE, &ca->set->flags)))
+		return -1;
+
 	/* fastpath */
 	if (fifo_pop(&ca->free[RESERVE_NONE], r) ||
 	    fifo_pop(&ca->free[reserve], r))
@@ -484,6 +489,10 @@ int __bch_bucket_alloc_set(struct cache_set *c, unsigned int reserve,
 {
 	int i;
 
+	/* No allocation if CACHE_SET_IO_DISABLE bit is set */
+	if (unlikely(test_bit(CACHE_SET_IO_DISABLE, &c->flags)))
+		return -1;
+
 	lockdep_assert_held(&c->bucket_lock);
 	BUG_ON(!n || n > c->caches_loaded || n > 8);
 
drivers/md/bcache/bcache.h +0 -2
index 954dad29e6e8..83f0b91aeb90 100644
@@ -708,8 +708,6 @@ struct cache_set {
 
 #define BUCKET_HASH_BITS	12
 	struct hlist_head	bucket_hash[1 << BUCKET_HASH_BITS];
-
-	DECLARE_HEAP(struct btree *, flush_btree);
 };
 
 struct bbio {
drivers/md/bcache/io.c +12 -0
index c25097968319..4d93f07f63e5 100644
@@ -58,6 +58,18 @@ void bch_count_backing_io_errors(struct cached_dev *dc, struct bio *bio)
 
 	WARN_ONCE(!dc, "NULL pointer of struct cached_dev");
 
+	/*
+	 * Read-ahead requests on a degrading and recovering md raid
+	 * (e.g. raid6) device might be failured immediately by md
+	 * raid code, which is not a real hardware media failure. So
+	 * we shouldn't count failed REQ_RAHEAD bio to dc->io_errors.
+	 */
+	if (bio->bi_opf & REQ_RAHEAD) {
+		pr_warn_ratelimited("%s: Read-ahead I/O failed on backing device, ignore",
+				    dc->backing_dev_name);
+		return;
+	}
+
 	errors = atomic_add_return(1, &dc->io_errors);
 	if (errors < dc->error_limit)
 		pr_err("%s: IO error on backing device, unrecoverable",
drivers/md/bcache/journal.c +19 -33

87 lines not on this page · raw message

drivers/md/bcache/super.c +3 -22
index 2409507d7bff..e6c7a84bb1df 100644
@@ -1180,18 +1180,16 @@ static void cached_dev_free(struct closure *cl)
 {
 	struct cached_dev *dc = container_of(cl, struct cached_dev, disk.cl);
 
-	mutex_lock(&bch_register_lock);
-
 	if (test_and_clear_bit(BCACHE_DEV_WB_RUNNING, &dc->disk.flags))
 		cancel_writeback_rate_update_dwork(dc);
 
 	if (!IS_ERR_OR_NULL(dc->writeback_thread))
 		kthread_stop(dc->writeback_thread);
-	if (dc->writeback_write_wq)
-		destroy_workqueue(dc->writeback_write_wq);
 	if (!IS_ERR_OR_NULL(dc->status_update_thread))
 		kthread_stop(dc->status_update_thread);
 
+	mutex_lock(&bch_register_lock);
+
 	if (atomic_read(&dc->running))
 		bd_unlink_disk_holder(dc->bdev, dc->disk.disk);
 	bcache_device_free(&dc->disk);
@@ -1425,8 +1423,6 @@ int bch_flash_dev_create(struct cache_set *c, uint64_t size)
 
 bool bch_cached_dev_error(struct cached_dev *dc)
 {
-	struct cache_set *c;
-
 	if (!dc || test_bit(BCACHE_DEV_CLOSING, &dc->disk.flags))
 		return false;
 
@@ -1437,21 +1433,6 @@ bool bch_cached_dev_error(struct cached_dev *dc)
 	pr_err("stop %s: too many IO errors on backing device %s\n",
 		dc->disk.disk->disk_name, dc->backing_dev_name);
 
-	/*
-	 * If the cached device is still attached to a cache set,
-	 * even dc->io_disable is true and no more I/O requests
-	 * accepted, cache device internal I/O (writeback scan or
-	 * garbage collection) may still prevent bcache device from
-	 * being stopped. So here CACHE_SET_IO_DISABLE should be
-	 * set to c->flags too, to make the internal I/O to cache
-	 * device rejected and stopped immediately.
-	 * If c is NULL, that means the bcache device is not attached
-	 * to any cache set, then no CACHE_SET_IO_DISABLE bit to set.
-	 */
-	c = dc->disk.c;
-	if (c && test_and_set_bit(CACHE_SET_IO_DISABLE, &c->flags))
-		pr_info("CACHE_SET_IO_DISABLE already set");
-
 	bcache_device_stop(&dc->disk);
 	return true;
 }
@@ -1552,7 +1533,7 @@ static void cache_set_flush(struct closure *cl)
 	kobject_put(&c->internal);
 	kobject_del(&c->kobj);
 
-	if (c->gc_thread)
+	if (!IS_ERR_OR_NULL(c->gc_thread))
 		kthread_stop(c->gc_thread);
 
 	if (!IS_ERR_OR_NULL(c->root))
drivers/md/bcache/sysfs.c +2 -2
index 541454b4f479..5bb81e564ce8 100644
@@ -175,7 +175,7 @@ SHOW(__bch_cached_dev)
 	var_print(writeback_percent);
 	sysfs_hprint(writeback_rate,
 		     wb ? atomic_long_read(&dc->writeback_rate.rate) << 9 : 0);
-	sysfs_hprint(io_errors,		atomic_read(&dc->io_errors));
+	sysfs_printf(io_errors,		"%i", atomic_read(&dc->io_errors));
 	sysfs_printf(io_error_limit,	"%i", dc->error_limit);
 	sysfs_printf(io_disable,	"%i", dc->io_disable);
 	var_print(writeback_rate_update_seconds);
@@ -426,7 +426,7 @@ static struct attribute *bch_cached_dev_files[] = {
 	&sysfs_writeback_rate_p_term_inverse,
 	&sysfs_writeback_rate_minimum,
 	&sysfs_writeback_rate_debug,
-	&sysfs_errors,
+	&sysfs_io_errors,
 	&sysfs_io_error_limit,
 	&sysfs_io_disable,
 	&sysfs_dirty_data,
drivers/md/bcache/util.h +0 -2
index 00aab6abcfe4..b1f5b7aea872 100644
@@ -113,8 +113,6 @@ do {									\
 
 #define heap_full(h)	((h)->used == (h)->size)
 
-#define heap_empty(h)	((h)->used == 0)
-
 #define DECLARE_FIFO(type, name)					\
 	struct {							\
 		size_t front, back, size, mask;				\
drivers/md/bcache/writeback.c +5 -0
index 08c3a9f9676c..ba5395fd386d 100644
@@ -708,6 +708,10 @@ static int bch_writeback_thread(void *arg)
 		}
 	}
 
+	if (dc->writeback_write_wq) {
+		flush_workqueue(dc->writeback_write_wq);
+		destroy_workqueue(dc->writeback_write_wq);
+	}
 	cached_dev_put(dc);
 	wait_for_kthread_stop();
 
@@ -803,6 +807,7 @@ int bch_cached_dev_writeback_start(struct cached_dev *dc)
 					      "bcache_writeback");
 	if (IS_ERR(dc->writeback_thread)) {
 		cached_dev_put(dc);
+		destroy_workqueue(dc->writeback_write_wq);
 		return PTR_ERR(dc->writeback_thread);
 	}
 
drivers/md/dm-bufio.c +1 -3
index dc385b70e4c3..b1d0ae2dbd3d 100644
@@ -1602,9 +1602,7 @@ dm_bufio_shrink_scan(struct shrinker *shrink, struct shrink_control *sc)
 	unsigned long freed;
 
 	c = container_of(shrink, struct dm_bufio_client, shrinker);
-	if (sc->gfp_mask & __GFP_FS)
-		dm_bufio_lock(c);
-	else if (!dm_bufio_trylock(c))
+	if (!dm_bufio_trylock(c))
 		return SHRINK_STOP;
 
 	freed  = __scan(c, sc->nr_to_scan, sc->gfp_mask);
drivers/md/dm-zoned-metadata.c +0 -24
index d8334cd45d7c..4cdde7a02e94 100644
@@ -1593,30 +1593,6 @@ struct dm_zone *dmz_get_zone_for_reclaim(struct dmz_metadata *zmd)
 	return zone;
 }
 
-/*
- * Activate a zone (increment its reference count).
- */
-void dmz_activate_zone(struct dm_zone *zone)
-{
-	set_bit(DMZ_ACTIVE, &zone->flags);
-	atomic_inc(&zone->refcount);
-}
-
-/*
- * Deactivate a zone. This decrement the zone reference counter
- * and clears the active state of the zone once the count reaches 0,
- * indicating that all BIOs to the zone have completed. Returns
- * true if the zone was deactivated.
- */
-void dmz_deactivate_zone(struct dm_zone *zone)
-{
-	if (atomic_dec_and_test(&zone->refcount)) {
-		WARN_ON(!test_bit(DMZ_ACTIVE, &zone->flags));
-		clear_bit_unlock(DMZ_ACTIVE, &zone->flags);
-		smp_mb__after_atomic();
-	}
-}
-
 /*
  * Get the zone mapping a chunk, if the chunk is mapped already.
  * If no mapping exist and the operation is WRITE, a zone is
drivers/md/dm-zoned.h +24 -4
index 12419f0bfe78..ed8de49c9a08 100644
@@ -115,7 +115,6 @@ enum {
 	DMZ_BUF,
 
 	/* Zone internal state */
-	DMZ_ACTIVE,
 	DMZ_RECLAIM,
 	DMZ_SEQ_WRITE_ERR,
 };
@@ -128,7 +127,6 @@ enum {
 #define dmz_is_empty(z)		((z)->wp_block == 0)
 #define dmz_is_offline(z)	test_bit(DMZ_OFFLINE, &(z)->flags)
 #define dmz_is_readonly(z)	test_bit(DMZ_READ_ONLY, &(z)->flags)
-#define dmz_is_active(z)	test_bit(DMZ_ACTIVE, &(z)->flags)
 #define dmz_in_reclaim(z)	test_bit(DMZ_RECLAIM, &(z)->flags)
 #define dmz_seq_write_err(z)	test_bit(DMZ_SEQ_WRITE_ERR, &(z)->flags)
 
@@ -188,8 +186,30 @@ void dmz_unmap_zone(struct dmz_metadata *zmd, struct dm_zone *zone);
 unsigned int dmz_nr_rnd_zones(struct dmz_metadata *zmd);
 unsigned int dmz_nr_unmap_rnd_zones(struct dmz_metadata *zmd);
 
-void dmz_activate_zone(struct dm_zone *zone);
-void dmz_deactivate_zone(struct dm_zone *zone);
+/*
+ * Activate a zone (increment its reference count).
+ */
+static inline void dmz_activate_zone(struct dm_zone *zone)
+{
+	atomic_inc(&zone->refcount);
+}
+
+/*
+ * Deactivate a zone. This decrement the zone reference counter
+ * indicating that all BIOs to the zone have completed when the count is 0.
+ */
+static inline void dmz_deactivate_zone(struct dm_zone *zone)
+{
+	atomic_dec(&zone->refcount);
+}
+
+/*
+ * Test if a zone is active, that is, has a refcount > 0.
+ */
+static inline bool dmz_is_active(struct dm_zone *zone)
+{
+	return atomic_read(&zone->refcount);
+}
 
 int dmz_lock_zone_reclaim(struct dm_zone *zone);
 void dmz_unlock_zone_reclaim(struct dm_zone *zone);
drivers/md/raid5.c +9 -2
index f237d6f30752..a147619498df 100644
@@ -7670,7 +7670,7 @@ static int raid5_remove_disk(struct mddev *mddev, struct md_rdev *rdev)
 static int raid5_add_disk(struct mddev *mddev, struct md_rdev *rdev)
 {
 	struct r5conf *conf = mddev->private;
-	int err = -EEXIST;
+	int ret, err = -EEXIST;
 	int disk;
 	struct disk_info *p;
 	int first = 0;
@@ -7685,7 +7685,14 @@ static int raid5_add_disk(struct mddev *mddev, struct md_rdev *rdev)
 		 * The array is in readonly mode if journal is missing, so no
 		 * write requests running. We should be safe
 		 */
-		log_init(conf, rdev, false);
+		ret = log_init(conf, rdev, false);
+		if (ret)
+			return ret;
+
+		ret = r5l_start(conf->log);
+		if (ret)
+			return ret;
+
 		return 0;
 	}
 	if (mddev->recovery_disabled == conf->recovery_disabled)
drivers/media/common/videobuf2/videobuf2-core.c +4 -0
index 9226dca44e90..93d250db0b6f 100644
@@ -207,6 +207,10 @@ static int __vb2_buf_mem_alloc(struct vb2_buffer *vb)
 	for (plane = 0; plane < vb->num_planes; ++plane) {
 		unsigned long size = PAGE_ALIGN(vb->planes[plane].length);
 
+		/* Did it wrap around? */
+		if (size < vb->planes[plane].length)
+			goto free;
+
 		mem_priv = call_ptr_memop(vb, alloc,
 				q->alloc_devs[plane] ? : q->dev,
 				q->dma_attrs, size, q->dma_dir, q->gfp_flags);
drivers/media/common/videobuf2/videobuf2-dma-sg.c +1 -1
index 015e737095cd..e9bfea986cc4 100644
@@ -59,7 +59,7 @@ static int vb2_dma_sg_alloc_compacted(struct vb2_dma_sg_buf *buf,
 		gfp_t gfp_flags)
 {
 	unsigned int last_page = 0;
-	int size = buf->size;
+	unsigned long size = buf->size;
 
 	while (size > 0) {
 		struct page *pages;
drivers/media/dvb-frontends/tua6100.c +11 -11
index b233b7be0b84..e6aaf4973aef 100644
@@ -75,8 +75,8 @@ static int tua6100_set_params(struct dvb_frontend *fe)
 	struct i2c_msg msg1 = { .addr = priv->i2c_address, .flags = 0, .buf = reg1, .len = 4 };
 	struct i2c_msg msg2 = { .addr = priv->i2c_address, .flags = 0, .buf = reg2, .len = 3 };
 
-#define _R 4
-#define _P 32
+#define _R_VAL 4
+#define _P_VAL 32
 #define _ri 4000000
 
 	// setup register 0
@@ -91,14 +91,14 @@ static int tua6100_set_params(struct dvb_frontend *fe)
 	else
 		reg1[1] = 0x0c;
 
-	if (_P == 64)
+	if (_P_VAL == 64)
 		reg1[1] |= 0x40;
 	if (c->frequency >= 1525000)
 		reg1[1] |= 0x80;
 
 	// register 2
-	reg2[1] = (_R >> 8) & 0x03;
-	reg2[2] = _R;
+	reg2[1] = (_R_VAL >> 8) & 0x03;
+	reg2[2] = _R_VAL;
 	if (c->frequency < 1455000)
 		reg2[1] |= 0x1c;
 	else if (c->frequency < 1630000)
@@ -110,18 +110,18 @@ static int tua6100_set_params(struct dvb_frontend *fe)
 	 * The N divisor ratio (note: c->frequency is in kHz, but we
 	 * need it in Hz)
 	 */
-	prediv = (c->frequency * _R) / (_ri / 1000);
-	div = prediv / _P;
+	prediv = (c->frequency * _R_VAL) / (_ri / 1000);
+	div = prediv / _P_VAL;
 	reg1[1] |= (div >> 9) & 0x03;
 	reg1[2] = div >> 1;
 	reg1[3] = (div << 7);
-	priv->frequency = ((div * _P) * (_ri / 1000)) / _R;
+	priv->frequency = ((div * _P_VAL) * (_ri / 1000)) / _R_VAL;
 
 	// Finally, calculate and store the value for A
-	reg1[3] |= (prediv - (div*_P)) & 0x7f;
+	reg1[3] |= (prediv - (div*_P_VAL)) & 0x7f;
 
-#undef _R
-#undef _P
+#undef _R_VAL
+#undef _P_VAL
 #undef _ri
 
 	if (fe->ops.i2c_gate_ctrl)
drivers/media/i2c/Makefile +1 -1
index a94eb03d10d4..520b3c3bf48c 100644
@@ -36,7 +36,7 @@ obj-$(CONFIG_VIDEO_ADV748X) += adv748x/
 obj-$(CONFIG_VIDEO_ADV7604) += adv7604.o
 obj-$(CONFIG_VIDEO_ADV7842) += adv7842.o
 obj-$(CONFIG_VIDEO_AD9389B) += ad9389b.o
-obj-$(CONFIG_VIDEO_ADV7511) += adv7511.o
+obj-$(CONFIG_VIDEO_ADV7511) += adv7511-v4l2.o
 obj-$(CONFIG_VIDEO_VPX3220) += vpx3220.o
 obj-$(CONFIG_VIDEO_VS6624)  += vs6624.o
 obj-$(CONFIG_VIDEO_BT819) += bt819.o
drivers/media/i2c/adv7511-v4l2.c new file +1997 -0

254 lines not on this page · raw message

drivers/media/i2c/adv7511.c deleted +0 -1992

1,992 lines not on this page · raw message

drivers/media/i2c/ov7740.c +5 -1
index f5a1ee90a6c5..8a6a7a5929aa 100644

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

drivers/media/media-device.c +9 -1
index 3bae24b15eaa..ed518b1f82e4 100644

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

drivers/media/pci/saa7164/saa7164-core.c +22 -11
index d697e1ad929c..5102519df108 100644

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

drivers/media/platform/coda/coda-bit.c +7 -2
index a3cfefdbee12..c3eaddced721 100644

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

drivers/media/platform/coda/coda-common.c +2 -0
index 19d92edcc981..4b0220f40b42 100644

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

drivers/media/platform/davinci/vpss.c +5 -0
index 19cf6853411e..89a86c19579b 100644

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

drivers/media/platform/marvell-ccic/mcam-core.c +3 -2
index dfdbd4354b74..eeee15ff007d 100644

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

drivers/media/platform/rcar_fdp1.c +8 -0
index 2a15b7cca338..0d1467028811 100644

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

drivers/media/platform/s5p-mfc/s5p_mfc.c +2 -1
index ca11f8a7569d..4b8516c35bc2 100644

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

drivers/media/platform/s5p-mfc/s5p_mfc_pm.c +5 -0
index eb85cedc5ef3..5e080f32b0e8 100644

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

drivers/media/platform/vimc/vimc-capture.c +4 -1
index 65d657daf66f..8e014cc485f0 100644

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

drivers/media/radio/wl128x/fmdrv_v4l2.c +3 -0
index dccdf6558e6a..33abc8616ecb 100644

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

drivers/media/rc/ir-spi.c +1 -0
index 66334e8d63ba..c58f2d38a458 100644

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

drivers/media/usb/dvb-usb/dvb-usb-init.c +5 -2
index 40ca4eafb137..39ac22486bcd 100644

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

drivers/media/usb/hdpvr/hdpvr-video.c +11 -6
index 1b89c77bad66..0615996572e4 100644

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

drivers/media/usb/uvc/uvc_ctrl.c +3 -1
index 467b1ddaf4e7..f2854337cdca 100644

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

drivers/media/v4l2-core/v4l2-ctrls.c +4 -5
index 6ac5f5d42615..0986572bbe88 100644

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

drivers/mmc/host/sdhci-msm.c +6 -3
index 8594659cb592..ad0275191d91 100644

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

drivers/mtd/nand/raw/mtk_nand.c +21 -3
index 57b5ed1699e3..dce5b7e44e7a 100644

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

drivers/mtd/nand/spi/core.c +1 -1
index 8c7bf91ce4e1..48b3ab26b124 100644

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

drivers/net/bonding/bond_main.c +23 -14
index 7e162fff01ab..be0b785becd0 100644

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

drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +4 -1
index 5a727d4729da..e3ce29951c5e 100644

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

drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c +3 -1
index c428b0655c26..00f9ed93360c 100644

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

drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +24 -9
index a585f1025a58..2c9af0f420e5 100644

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

drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.h +3 -0
index b2644ed13d06..d55e63692cf3 100644

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

drivers/net/ethernet/freescale/fec_main.c +3 -3
index bf715a367273..4cf80de4c471 100644

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

drivers/net/ethernet/hisilicon/hns3/hnae3.c +2 -0
index fff5be8078ac..0594a6c3dccd 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c +4 -2
index 9684ad015c42..6a3c6b02a77c 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +1 -2
index 4648c6a9d9e8..89ca69fa2b97 100644

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

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c +5 -1
index 48235dc2dd56..11e9259ca040 100644

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

drivers/net/ethernet/intel/i40evf/i40e_txrx.c +4 -2
index a9730711e257..b56d22b530a7 100644

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

drivers/net/ethernet/intel/igb/igb_main.c +1 -0
index 5aa083d9a6c9..ab76a5f77cd0 100644

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

drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c +2 -1
index e5a8461fe6a9..8829bd95d0d3 100644

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

drivers/net/ethernet/intel/ixgbe/ixgbe_phy.h +1 -0
index 64e44e01c973..c56baad04ee6 100644

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

drivers/net/ethernet/marvell/mvmdio.c +6 -1
index c5dac6bd2be4..ee7857298361 100644

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

drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c +2 -1
index ae2240074d8e..5692c6087bbb 100644

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

drivers/net/ethernet/qlogic/qed/qed_dev.c +18 -11
index 4dd82a1612aa..a6a9688db307 100644

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

drivers/net/ethernet/qlogic/qed/qed_iwarp.c +2 -0
index b7471e48db7b..7002a660b6b4 100644

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

drivers/net/ethernet/qlogic/qed/qed_rdma.c +1 -1
index 7873d6dfd91f..13802b825d65 100644

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

drivers/net/ethernet/stmicro/stmmac/common.h +1 -1
index 272b9ca66314..b069b3a2453b 100644

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

drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c +5 -0
index 49a896a16391..79c91526f3ec 100644

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

drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c +6 -0
index 0877bde6e860..21d131347e2e 100644

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

drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +14 -4
index 7e5d5db0d516..d0e6e1503581 100644

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

drivers/net/ethernet/xilinx/xilinx_axienet_main.c +17 -3
index 7cfd7ff38e86..66b30ebd45ee 100644

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

drivers/net/gtp.c +29 -7
index 7a145172d503..d178d5bad7e4 100644

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

drivers/net/phy/phy_device.c +6 -0
index 8a96d985a52f..6144146aec29 100644

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

drivers/net/phy/sfp.c +5 -1
index 8807a806cc47..418522aa2f71 100644

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

drivers/net/usb/asix_devices.c +3 -3
index 3d93993e74da..2eca4168af2f 100644

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

drivers/net/wireless/ath/ath10k/hw.c +1 -1
index 677535b3d207..476e0535f06f 100644

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

drivers/net/wireless/ath/ath10k/mac.c +4 -0
index f3b1cfacfe9d..1419f9d1505f 100644

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

drivers/net/wireless/ath/ath10k/sdio.c +7 -0
index 7f61591ce0de..686759b5613f 100644

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

drivers/net/wireless/ath/ath10k/txrx.c +3 -0
index cda164f6e9f6..6f62ddc0494c 100644

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

drivers/net/wireless/ath/ath6kl/wmi.c +9 -1
index 777acc564ac9..bc7916f2add0 100644

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

drivers/net/wireless/ath/ath9k/hw.c +23 -9
index bb319f22761f..b4f7ee423d40 100644

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

drivers/net/wireless/ath/dfs_pattern_detector.c +1 -1
index d52b31b45df7..a274eb0d1968 100644

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

drivers/net/wireless/ath/wil6210/interrupt.c +40 -25

65 lines not on this page · raw message

drivers/net/wireless/ath/wil6210/txrx.c +1 -0
index 75c8aa297107..1b1b58e0129a 100644

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

drivers/net/wireless/ath/wil6210/wmi.c +12 -1
index 6e3b3031f29b..2010f771478d 100644

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

drivers/net/wireless/intel/iwlwifi/fw/smem.c +9 -3
index ff85d69c2a8c..557ee47bffd8 100644

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

drivers/net/wireless/intel/iwlwifi/mvm/tx.c +3 -0
index 2d21f0a1fa00..ffae299c3492 100644

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

drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c +1 -1
index 2146fda8da2f..64d976d872b8 100644

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

drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c +1 -1
index b2cd7ef5fc3a..6f25fd1bbd8f 100644

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

drivers/net/wireless/intel/iwlwifi/pcie/internal.h +27 -0
index b63d44b7cd7c..00f9566bcc21 100644

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

drivers/net/wireless/intel/iwlwifi/pcie/rx.c +42 -24

66 lines not on this page · raw message

drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c +9 -0
index 2bc67219ed3e..31e72e1ff1e2 100644

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

drivers/net/wireless/mediatek/mt7601u/dma.c +34 -20

54 lines not on this page · raw message

drivers/net/wireless/mediatek/mt7601u/tx.c +2 -2
index 3600e911a63e..4d81c45722fb 100644

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

drivers/net/wireless/realtek/rtlwifi/usb.c +3 -2
index 2ac5004d7a40..5adb939afee8 100644

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

drivers/nvdimm/dax_devs.c +1 -1
index 0453f49dc708..326f02ffca81 100644

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

drivers/nvdimm/pfn.h +1 -0
index dde9853453d3..e901e3a3b04c 100644

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

drivers/nvdimm/pfn_devs.c +15 -3
index 3ee995a3bfc9..86ed09b2a192 100644

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

drivers/nvme/host/core.c +8 -6
index d8869d978c34..e26d1191c5ad 100644

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

drivers/nvme/host/pci.c +6 -2
index c8eeecc58115..0a5d064f82ca 100644

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

drivers/pci/controller/dwc/pcie-qcom.c +2 -0
index 4352c1cb926d..87a8887fd4d3 100644

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

drivers/pci/controller/pci-hyperv.c +9 -6
index 808a182830e5..5dadc964ad3b 100644

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

drivers/pci/pci.c +7 -0
index 61f2ef28ea1c..c65465385d8c 100644

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

drivers/ras/cec.c +3 -1
index f85d6b7a1984..5d2b2c02cbbe 100644

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

drivers/regulator/s2mps11.c +2 -2
index c584bd1ffa9c..7c598c156d9e 100644

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

drivers/s390/cio/qdio_main.c +1 -0
index 9c7d9da42ba0..4ac4a73037f5 100644

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

drivers/scsi/NCR5380.c +14 -19
index 90ea0f5d9bdb..5160d6214a36 100644

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

drivers/scsi/NCR5380.h +1 -1
index 31096a0b0fdd..8a6d002e6789 100644

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

drivers/scsi/mac_scsi.c +220 -155

375 lines not on this page · raw message

drivers/scsi/megaraid/megaraid_sas_base.c +2 -1
index acb503ea8f0c..e0c87228438d 100644

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

drivers/scsi/scsi_lib.c +3 -3
index 1fc832751a4f..32652b2c5e7c 100644

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

drivers/staging/media/davinci_vpfe/vpfe_video.c +3 -0
index 1269a983455e..13b890b9ef18 100644

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

drivers/target/iscsi/iscsi_target_auth.c +8 -8
index 4e680d753941..e2fa3a3bc81d 100644

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

drivers/usb/core/hub.c +5 -2
index eb24ec0e160d..f4e8e869649a 100644

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

drivers/vhost/net.c +1 -1
index 39155d7cc894..ae704658b528 100644

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

drivers/xen/balloon.c +13 -3
index 7ab6caef599c..d4e8b717ce2b 100644

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

drivers/xen/events/events_base.c +10 -2
index fe1f16351f94..8d49b91d92cd 100644

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

drivers/xen/evtchn.c +1 -1
index 6d1a5e58968f..47c70b826a6a 100644

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

fs/btrfs/file.c +5 -0
index e24c0a69ff5d..c84186563c31 100644

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

fs/btrfs/tree-log.c +37 -3
index 0d5840d20efc..08c5afa06aee 100644

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

fs/coda/file.c +68 -2

70 lines not on this page · raw message

fs/crypto/crypto.c +9 -6
index 0f46cf550907..c83ddff3ff4a 100644

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

fs/ecryptfs/crypto.c +8 -4
index 4dd842f72846..708f931c36f1 100644

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

fs/fs-writeback.c +7 -1
index 9544e2f8b79f..7ee86d8f313d 100644

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

fs/nfs/flexfilelayout/flexfilelayoutdev.c +1 -1
index 364028c710a8..8da239b6cc16 100644

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

fs/nfs/inode.c +1 -0
index b65aee481d13..e4cd3a2fe698 100644

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

fs/nfs/nfs4file.c +1 -1
index 134858507268..61abbb087ed1 100644

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

fs/nfs/pnfs.c +2 -2
index 7d9a51e6b847..4931c3a75f03 100644

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

fs/proc/proc_sysctl.c +4 -0
index 7325baa8f9d4..c95f32b83a94 100644

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

fs/xfs/libxfs/xfs_ag_resv.c +1 -1
index e701ebc36c06..e2ba2a3b63b2 100644

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

fs/xfs/libxfs/xfs_ialloc_btree.c +2 -2
index 86c50208a143..adb2f6df5a11 100644

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

fs/xfs/xfs_attr_list.c +1 -0
index a58034049995..3d213a7394c5 100644

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

fs/xfs/xfs_bmap_util.c +1 -1
index 211b06e4702e..41ad9eaab6ce 100644

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

fs/xfs/xfs_bmap_util.h +2 -0
index 87363d136bb6..9c73d012f56a 100644

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

fs/xfs/xfs_file.c +17 -10
index 61a5ad2600e8..259549698ba7 100644

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

fs/xfs/xfs_fsops.c +1 -0
index 7c00b8bedfe3..09fd602507ef 100644

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

fs/xfs/xfs_inode.c +7 -11
index 05db9540e459..5ed84d6c7059 100644

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

fs/xfs/xfs_iops.c +19 -2
index f48ffd7a8d3e..74047bd0c1ae 100644

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

fs/xfs/xfs_mount.h +1 -1
index 7964513c3128..7e0bf952e087 100644

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

fs/xfs/xfs_reflink.c +13 -3
index 7088f44c0c59..f3c393f309e1 100644

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

fs/xfs/xfs_super.c +7 -0
index 207ee302b1bb..dce8114e3198 100644

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

fs/xfs/xfs_xattr.c +3 -0
index 63ee1d5bf1d7..9a63016009a1 100644

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

include/asm-generic/bug.h +4 -2
index 20561a60db9c..d4fb510a4fbe 100644

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

include/drm/drm_displayid.h +10 -0
index c0d4df6a606f..9d3b745c3107 100644

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

include/linux/cpuhotplug.h +1 -1
index dec0372efe2e..d67c0035165c 100644

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

include/linux/rcupdate.h +1 -1
index e102c5bccbb9..68cbe111420b 100644

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

include/net/ip_vs.h +4 -2
index a0d2e0bb9a94..0e3c0d83bd99 100644

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

include/rdma/ib_verbs.h +2 -2
index ec299fcf55f7..412c2820626d 100644

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

include/trace/events/rxrpc.h +1 -1
index 6d182746afab..147546e0c11b 100644

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

include/uapi/linux/bpf.h +1 -0
index 2932600ce271..d143e277cdaf 100644

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

include/xen/events.h +2 -1
index c3e6bc643a7b..1650d39decae 100644

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

kernel/bpf/Makefile +1 -0
index 0488b8258321..ffc39a7e028d 100644

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

kernel/locking/lockdep.c +9 -9
index 26b57e24476f..e810e8cb17e1 100644

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

kernel/padata.c +12 -0
index d568cc56405f..6c06b3039fae 100644

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

kernel/pid_namespace.c +1 -1
index 2a2ac53d8b8b..95271f180687 100644

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

kernel/sched/core.c +1 -1
index 6859ea1d5c04..795c63ca44a9 100644

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

kernel/sched/sched-pelt.h +1 -1
index a26473674fb7..c529706bed11 100644

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

kernel/time/ntp.c +3 -1
index 6b23cd584295..e1110a7bd3e6 100644

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

kernel/time/timer_list.c +19 -17
index d647dabdac97..07afcfe2a61b 100644

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

lib/reed_solomon/decode_rs.c +14 -4
index 1db74eb098d0..121beb2f0930 100644

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

lib/scatterlist.c +5 -4
index 7c6096a71704..8c3036c37ba0 100644

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

net/9p/trans_virtio.c +7 -1
index eb596c2ed546..849336211c79 100644

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

net/9p/trans_xen.c +7 -1
index e2fbf3677b9b..9daab0dd833b 100644

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

net/batman-adv/bat_iv_ogm.c +2 -2
index 73bf6a93a3cf..0b7b36fa0d5c 100644

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

net/batman-adv/hard-interface.c +3 -0
index 08690d06b7be..36f0962040d1 100644

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

net/batman-adv/translation-table.c +2 -0
index 359ec1a6e822..9fa5389ea244 100644

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

net/batman-adv/types.h +3 -0
index eeee3e61c625..fdba8a144d73 100644

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

net/bluetooth/6lowpan.c +10 -4
index 4e2576fc0c59..357475cceec6 100644

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

net/bluetooth/hci_event.c +5 -0
index 3e7badb3ac2d..0adcddb211fa 100644

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

net/bluetooth/l2cap_core.c +14 -1
index 879d5432bf77..a54dadf4a6ca 100644

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

net/bluetooth/smp.c +13 -0
index a1c1b7e8a45c..cc2f7ca91ccd 100644

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

net/key/af_key.c +6 -2
index 0b79c9aa8eb1..1982f9f31deb 100644

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

net/netfilter/ipset/ip_set_hash_gen.h +1 -1
index 8a33dac4e805..ddfe06d7530b 100644

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

net/netfilter/ipvs/ip_vs_core.c +14 -7
index 62c0e80dcd71..a71f777d1353 100644

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

net/netfilter/ipvs/ip_vs_ctl.c +0 -4
index 2d4e048762f6..3df94a499126 100644

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

net/netfilter/ipvs/ip_vs_sync.c +72 -62

134 lines not on this page · raw message

net/xdp/xsk_queue.h +1 -1
index 8a64b150be54..fe96c0d039f2 100644

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

net/xfrm/Kconfig +2 -0
index 4a9ee2d83158..372c91faa283 100644

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

net/xfrm/xfrm_user.c +19 -0
index 2122f89f6155..1484bc99a537 100644

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

scripts/kconfig/confdata.c +3 -4
index 91d0a5c014ac..fd99ae90a618 100644

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

scripts/kconfig/expr.h +1 -0
index 7c329e179007..43a87f8ea738 100644

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

security/selinux/hooks.c +6 -5
index 70bad15ed7a0..109ab510bdb1 100644

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

sound/core/seq/seq_clientmgr.c +10 -1
index f59e13c1d84a..bbf91a5a938b 100644

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

sound/pci/hda/patch_realtek.c +9 -1
index 98cfdcfce5b3..dc1989686f09 100644

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

sound/soc/codecs/hdac_hdmi.c +6 -0
index 63487240b61e..098196610542 100644

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

sound/soc/meson/axg-tdm.h +1 -1
index e578b6f40a07..5774ce0916d4 100644

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

sound/soc/soc-dapm.c +10 -8
index 2257b1b0151c..3bfc788372f3 100644

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

tools/bpf/bpftool/jit_disasm.c +7 -4
index 87439320ef70..73d7252729fa 100644

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

tools/include/uapi/linux/bpf.h +1 -0
index 66917a4eba27..bf4cd924aed5 100644

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

tools/lib/bpf/libbpf.c +4 -4
index bdb94939fd60..a350f97e3a1a 100644

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

tools/perf/arch/arm/util/cs-etm.c +123 -4

127 lines not on this page · raw message

tools/perf/jvmti/libjvmti.c +2 -2
index 6add3e982614..3361d98a4edd 100644

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

tools/perf/perf.h +1 -1
index 21bf7f5a3cf5..19d435a9623b 100644

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

tools/perf/tests/parse-events.c +27 -0
index 3b97ac018d5a..532c95e8fa6b 100644

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

tools/perf/tests/shell/record+probe_libc_inet_pton.sh +1 -1
index cab7b0aea6ea..f5837f28f3af 100755

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

tools/perf/ui/browsers/annotate.c +3 -2
index 1d00e5ec7906..a3c255228d62 100644

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

tools/perf/util/annotate.c +2 -3
index dfee110b3a58..c357051dd2b6 100644

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

tools/perf/util/evsel.c +7 -1
index b65ad5a273eb..4fad92213609 100644

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

tools/perf/util/header.c +1 -1
index b9a82598e2ac..7f2e3b1c746c 100644

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

tools/perf/util/metricgroup.c +35 -12

47 lines not on this page · raw message

tools/perf/util/stat-shadow.c +3 -2
index 99990f5f2512..bbb0e042d8e5 100644

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

tools/power/cpupower/utils/cpufreq-set.c +2 -0
index 1eef0aed6423..08a405593a79 100644

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

tools/testing/selftests/bpf/test_lwt_seg6local.c +6 -6
index 0575751bc1bc..e2f6ed0a583d 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.