aboutsummaryrefslogtreecommitdiff
path: root/kernel/locking
Commit message (Collapse)AuthorAgeFilesLines
* Merge android-4.19-stable (4.19.220) into android-msm-barbet-4.19-sc-ltsWilson Sung2021-12-291-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge 4.19.220 into android-4.19-stable Linux 4.19.220 * ipmi: msghandler: Make symbol 'remove_work_wq' static drivers/char/ipmi/ipmi_msghandler.c * parisc: Mark cr16 CPU clocksource unstable on all SMP machines arch/parisc/kernel/time.c * serial: core: fix transmit-buffer reset and memleak drivers/tty/serial/serial_core.c * serial: pl011: Add ACPI SBSA UART match id drivers/tty/serial/amba-pl011.c * tty: serial: msm_serial: Deactivate RX DMA for polling support drivers/tty/serial/msm_serial.c * x86/64/mm: Map all kernel memory into trampoline_pgd arch/x86/realmode/init.c usb: typec: tcpm: Wait in SNK_DEBOUNCED until disconnect * USB: NO_LPM quirk Lenovo Powered USB-C Travel Hub drivers/usb/core/quirks.c * xhci: Fix commad ring abort, write all 64 bits to CRCR register. drivers/usb/host/xhci-ring.c * vgacon: Propagate console boot parameters before calling `vc_resize' drivers/video/console/vgacon.c * parisc: Fix "make install" on newer debian releases arch/parisc/install.sh * parisc: Fix KBUILD_IMAGE for self-extracting kernel arch/parisc/Makefile * drm/msm: Do hw_init() before capturing GPU state drivers/gpu/drm/msm/msm_debugfs.c * net/smc: Keep smc_close_final rc during active close net/smc/smc_close.c * net/rds: correct socket tunable error in rds_tcp_tune() net/rds/tcp.c * net: annotate data-races on txq->xmit_lock_owner include/linux/netdevice.h net/core/dev.c * net: usb: lan78xx: lan78xx_phy_init(): use PHY_POLL instead of "0" if no IRQ is available drivers/net/usb/lan78xx.c * rxrpc: Fix rxrpc_local leak in rxrpc_lookup_peer() net/rxrpc/peer_object.c * net/mlx4_en: Fix an use-after-free bug in mlx4_en_try_alloc_resources() drivers/net/ethernet/mellanox/mlx4/en_netdev.c * siphash: use _unaligned version by default include/linux/siphash.h lib/siphash.c * net: mpls: Fix notifications when deleting a device net/mpls/af_mpls.c * net: qlogic: qlcnic: Fix a NULL pointer dereference in qlcnic_83xx_add_rings() drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c * natsemi: xtensa: fix section mismatch warnings drivers/net/ethernet/natsemi/xtsonic.c * i2c: stm32f7: stop dma transfer in case of NACK drivers/i2c/busses/i2c-stm32f7.c * i2c: stm32f7: recover the bus on access timeout drivers/i2c/busses/i2c-stm32f7.c * fget: check that the fd still exists after getting a ref to it fs/file.c * fs: add fget_many() and fput_many() fs/file.c fs/file_table.c include/linux/file.h include/linux/fs.h * sata_fsl: fix warning in remove_proc_entry when rmmod sata_fsl drivers/ata/sata_fsl.c * sata_fsl: fix UAF in sata_fsl_port_stop when rmmod sata_fsl drivers/ata/sata_fsl.c * ipmi: Move remove_work to dedicated workqueue drivers/char/ipmi/ipmi_msghandler.c * kprobes: Limit max data_size of the kretprobe instances include/linux/kprobes.h kernel/kprobes.c * vrf: Reset IPCB/IP6CB when processing outbound pkts in vrf dev xmit drivers/net/vrf.c * perf hist: Fix memory leak of a perf_hpp_fmt tools/perf/ui/hist.c tools/perf/util/hist.h * net: ethernet: dec: tulip: de4x5: fix possible array overflows in type3_infoblock() drivers/net/ethernet/dec/tulip/de4x5.c * net: tulip: de4x5: fix the problem that the array 'lp->phy[8]' may be out of bound drivers/net/ethernet/dec/tulip/de4x5.c * ethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port() drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c * ata: ahci: Add Green Sardine vendor ID as board_ahci_mobile drivers/ata/ahci.c * scsi: iscsi: Unblock session then wake up error handler drivers/scsi/scsi_transport_iscsi.c * thermal: core: Reset previous low and high trip during thermal zone init drivers/thermal/thermal_core.c * btrfs: check-integrity: fix a warning on write caching disabled disk fs/btrfs/disk-io.c * s390/setup: avoid using memblock_enforce_memory_limit arch/s390/kernel/setup.c * platform/x86: thinkpad_acpi: Fix WWAN device disabled issue after S3 deep drivers/platform/x86/thinkpad_acpi.c * net: return correct error code net/ipv4/devinet.c * atlantic: Fix OOB read and write in hw_atl_utils_fw_rpc_wait drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c * gfs2: Fix length of holes reported at end-of-file fs/gfs2/bmap.c * of: clk: Make <linux/of_clk.h> self-contained include/linux/of_clk.h * NFSv42: Fix pagecache invalidation after COPY/CLONE fs/nfs/nfs42proc.c * shm: extend forced shm destroy to support objects from several IPC nses include/linux/ipc_namespace.h include/linux/sched/task.h ipc/shm.c * BACKPORT: arm64: vdso32: suppress error message for 'make mrproper' arch/arm64/kernel/vdso32/Makefile Merge 4.19.219 into android-4.19-stable Linux 4.19.219 * tty: hvc: replace BUG_ON() with negative return value drivers/tty/hvc/hvc_xen.c * xen/netfront: don't trust the backend response data blindly drivers/net/xen-netfront.c * xen/netfront: disentangle tx_skb_freelist drivers/net/xen-netfront.c * xen/netfront: don't read data from request on the ring page drivers/net/xen-netfront.c * xen/netfront: read response from backend only once drivers/net/xen-netfront.c * xen/blkfront: don't trust the backend response data blindly drivers/block/xen-blkfront.c * xen/blkfront: don't take local copy of a request from the ring page drivers/block/xen-blkfront.c * xen/blkfront: read response from backend only once drivers/block/xen-blkfront.c * xen: sync include/xen/interface/io/ring.h with Xen's newest version include/xen/interface/io/ring.h * fuse: release pipe buf after last use fs/fuse/dev.c * NFC: add NCI_UNREG flag to eliminate the race include/net/nfc/nci_core.h net/nfc/nci/core.c * hugetlbfs: flush TLBs correctly after huge_pmd_unshare arch/arm/include/asm/tlb.h arch/ia64/include/asm/tlb.h arch/s390/include/asm/tlb.h arch/sh/include/asm/tlb.h arch/um/include/asm/tlb.h include/asm-generic/tlb.h mm/hugetlb.c mm/memory.c * s390/mm: validate VMA in PGSTE manipulation functions arch/s390/mm/pgtable.c * tracing: Check pid filtering when creating events kernel/trace/trace_events.c * vhost/vsock: fix incorrect used length reported to the guest drivers/vhost/vsock.c * net: hns3: fix VF RSS failed problem after PF enable multi-TCs drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c * net/smc: Don't call clcsock shutdown twice when smc shutdown net/smc/af_smc.c * MIPS: use 3-level pgtable for 64KB page size on MIPS_VA_BITS_48 arch/mips/Kconfig * tcp_cubic: fix spurious Hystart ACK train detections for not-cwnd-limited flows net/ipv4/tcp_cubic.c * PM: hibernate: use correct mode for swsusp_close() kernel/power/hibernate.c * net/smc: Ensure the active closing peer first closes clcsock net/smc/smc_close.c * ipv6: fix typos in __ip6_finish_output() net/ipv6/ip6_output.c * drm/vc4: fix error code in vc4_create_object() drivers/gpu/drm/vc4/vc4_bo.c * scsi: mpt3sas: Fix kernel panic during drive powercycle test drivers/scsi/mpt3sas/mpt3sas_scsih.c * ARM: socfpga: Fix crash with CONFIG_FORTIRY_SOURCE arch/arm/mach-socfpga/core.h arch/arm/mach-socfpga/platsmp.c * NFSv42: Don't fail clone() unless the OP_CLONE operation failed fs/nfs/nfs42xdr.c * firmware: arm_scmi: pm: Propagate return value to caller drivers/firmware/arm_scmi/scmi_pm_domain.c * net: ieee802154: handle iftypes as u32 include/net/nl802154.h * ASoC: topology: Add missing rwsem around snd_ctl_remove() calls sound/soc/soc-topology.c * ASoC: qdsp6: q6routing: Conditionally reset FrontEnd Mixer sound/soc/qcom/qdsp6/q6routing.c * ARM: dts: BCM5301X: Add interrupt properties to GPIO node arch/arm/boot/dts/bcm5301x.dtsi * ARM: dts: BCM5301X: Fix I2C controller interrupt arch/arm/boot/dts/bcm5301x.dtsi * netfilter: ipvs: Fix reuse connection if RS weight is 0 Documentation/networking/ipvs-sysctl.txt net/netfilter/ipvs/ip_vs_core.c * arm64: dts: marvell: armada-37xx: Set pcie_reset_pin to gpio function arch/arm64/boot/dts/marvell/armada-3720-db.dts arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts arch/arm64/boot/dts/marvell/armada-37xx.dtsi * arm64: dts: marvell: armada-37xx: declare PCIe reset pin arch/arm64/boot/dts/marvell/armada-37xx.dtsi * pinctrl: armada-37xx: Correct PWM pins definitions Documentation/devicetree/bindings/pinctrl/marvell,armada-37xx-pinctrl.txt drivers/pinctrl/mvebu/pinctrl-armada-37xx.c * pinctrl: armada-37xx: add missing pin: PCIe1 Wakeup drivers/pinctrl/mvebu/pinctrl-armada-37xx.c * pinctrl: armada-37xx: Correct mpp definitions Documentation/devicetree/bindings/pinctrl/marvell,armada-37xx-pinctrl.txt drivers/pinctrl/mvebu/pinctrl-armada-37xx.c * PCI: aardvark: Fix checking for link up via LTSSM state drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Fix link training drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Fix PCIe Max Payload Size setting drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Configure PCIe resources from 'ranges' DT property drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Update comment about disabling link training drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Move PCIe reset card code to advk_pcie_train_link() drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Fix compilation on s390 drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Don't touch PCIe registers if no card connected drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Indicate error in 'val' when config read fails drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Replace custom macros by standard linux/pci_regs.h macros drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Issue PERST via GPIO drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Improve link training drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Train link immediately after enabling training drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Wait for endpoint to be ready before training link drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Fix a leaked reference by adding missing of_node_put() drivers/pci/controller/pci-aardvark.c * proc/vmcore: fix clearing user buffer by properly using clear_user() fs/proc/vmcore.c * xtensa: use CONFIG_USE_OF instead of CONFIG_OF arch/xtensa/include/asm/vectors.h arch/xtensa/kernel/setup.c arch/xtensa/mm/mmu.c * tracing: Fix pid filtering when triggers are attached kernel/trace/trace.h * xen: detect uninitialized xenbus in xenbus_init drivers/xen/xenbus/xenbus_probe.c * xen: don't continue xenstore initialization in case of errors drivers/xen/xenbus/xenbus_probe.c * fuse: fix page stealing fs/fuse/dev.c * staging: rtl8192e: Fix use after free in _rtl92e_pci_disconnect() drivers/staging/rtl8192e/rtl8192e/rtl_core.c * HID: wacom: Use "Confidence" flag to prevent reporting invalid contacts drivers/hid/wacom_wac.c drivers/hid/wacom_wac.h * media: cec: copy sequence field for the reply drivers/media/cec/cec-adap.c * ALSA: ctxfi: Fix out-of-range access sound/pci/ctxfi/ctamixer.c sound/pci/ctxfi/ctdaio.c sound/pci/ctxfi/ctresource.c sound/pci/ctxfi/ctresource.h sound/pci/ctxfi/ctsrc.c * binder: fix test regression due to sender_euid change drivers/android/binder.c * usb: hub: Fix locking issues with address0_mutex drivers/usb/core/hub.c * usb: hub: Fix usb enumeration issue due to address0 race drivers/usb/core/hub.c * usb: dwc2: hcd_queue: Fix use of floating point literal drivers/usb/dwc2/hcd_queue.c * USB: serial: option: add Fibocom FM101-GL variants drivers/usb/serial/option.c * USB: serial: option: add Telit LE910S1 0x9200 composition drivers/usb/serial/option.c * Revert "net: sched: update default qdisc visibility after Tx queue cnt changes" include/net/sch_generic.h net/core/dev.c net/sched/sch_generic.c net/sched/sch_mq.c * Revert "serial: core: Fix initializing and restoring termios speed" drivers/tty/serial/serial_core.c include/linux/console.h * ANDROID: GKI: disable CONFIG_FORTIFY_SOURCE arch/arm64/configs/gki_defconfig arch/x86/configs/gki_defconfig Merge 4.19.218 into android-4.19-stable Linux 4.19.218 * soc/tegra: pmc: Fix imbalanced clock disabling in error code path drivers/soc/tegra/pmc.c * usb: max-3421: Use driver data instead of maintaining a list of bound devices drivers/usb/host/max3421-hcd.c * ASoC: DAPM: Cover regression by kctl change notification fix sound/soc/soc-dapm.c * RDMA/netlink: Add __maybe_unused to static inline in C file include/rdma/rdma_netlink.h * batman-adv: Don't always reallocate the fragmentation skb head net/batman-adv/fragmentation.c * batman-adv: Reserve needed_*room for fragments net/batman-adv/fragmentation.c * batman-adv: Consider fragmentation for needed_headroom net/batman-adv/hard-interface.c * batman-adv: mcast: fix duplicate mcast packets in BLA backbone from LAN net/batman-adv/multicast.c net/batman-adv/multicast.h net/batman-adv/soft-interface.c * perf/core: Avoid put_page() when GUP fails kernel/events/core.c * drm/amdgpu: fix set scaling mode Full/Full aspect/Center not works on vga and dvi connectors drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c * drm/udl: fix control-message timeout drivers/gpu/drm/udl/udl_connector.c * cfg80211: call cfg80211_stop_ap when switch from P2P_GO type net/wireless/util.c * parisc/sticon: fix reverse colors drivers/video/console/sticon.c * btrfs: fix memory ordering between normal and ordered work functions fs/btrfs/async-thread.c * udf: Fix crash after seekdir fs/udf/dir.c fs/udf/namei.c fs/udf/super.c * x86/hyperv: Fix NULL deref in set_hv_tscchange_cb() if Hyper-V setup fails arch/x86/hyperv/hv_init.c * mm: kmemleak: slob: respect SLAB_NOLEAKTRACE flag mm/slab.h * ipc: WARN if trying to remove ipc object which is absent ipc/util.c * hexagon: export raw I/O routines for modules arch/hexagon/lib/io.c * tun: fix bonding active backup with arp monitoring drivers/net/tun.c * perf/x86/intel/uncore: Fix IIO event constraints for Skylake Server arch/x86/events/intel/uncore_snbep.c * perf/x86/intel/uncore: Fix filter_tid mask for CHA events on Skylake Server arch/x86/events/intel/uncore_snbep.c * NFC: reorder the logic in nfc_{un,}register_device net/nfc/core.c * NFC: reorganize the functions in nci_request net/nfc/nci/core.c * i40e: Fix display error code in dmesg drivers/net/ethernet/intel/i40e/i40e_main.c * i40e: Fix changing previously set num_queue_pairs for PFs drivers/net/ethernet/intel/i40e/i40e_main.c * i40e: Fix NULL ptr dereference on VSI filter sync drivers/net/ethernet/intel/i40e/i40e.h drivers/net/ethernet/intel/i40e/i40e_main.c * i40e: Fix correct max_pkt_size on VF RX queue drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c * net: virtio_net_hdr_to_skb: count transport header in UFO include/linux/virtio_net.h * platform/x86: hp_accel: Fix an error handling path in 'lis3lv02d_probe()' drivers/platform/x86/hp_accel.c * mips: lantiq: add support for clk_get_parent() arch/mips/lantiq/clk.c * mips: bcm63xx: add support for clk_get_parent() arch/mips/bcm63xx/clk.c * MIPS: generic/yamon-dt: fix uninitialized variable error arch/mips/generic/yamon-dt.c * iavf: Fix for the false positive ASQ/ARQ errors while issuing VF reset drivers/net/ethernet/intel/i40evf/i40evf_main.c * iavf: check for null in iavf_fix_features drivers/net/ethernet/intel/i40evf/i40evf_main.c * net: bnx2x: fix variable dereferenced before check drivers/net/ethernet/broadcom/bnx2x/bnx2x_init_ops.h * drm/nouveau: hdmigv100.c: fix corrupted HDMI Vendor InfoFrame drivers/gpu/drm/nouveau/nvkm/engine/disp/hdmigv100.c * sched/core: Mitigate race cpus_share_cache()/update_top_cache_domain() kernel/sched/core.c * mips: BCM63XX: ensure that CPU_SUPPORTS_32BIT_KERNEL is set arch/mips/Kconfig * sh: define __BIG_ENDIAN for math-emu arch/sh/include/asm/sfp-machine.h * sh: fix kconfig unmet dependency warning for FRAME_POINTER arch/sh/Kconfig.debug * f2fs: fix up f2fs_lookup tracepoints include/trace/events/f2fs.h * maple: fix wrong return value of maple_bus_init(). drivers/sh/maple/maple.c * sh: check return code of request_irq arch/sh/kernel/cpu/sh4a/smp-shx3.c * powerpc/dcr: Use cmplwi instead of 3-argument cmpli arch/powerpc/sysdev/dcr-low.S * ALSA: gus: fix null pointer dereference on pointer block sound/isa/gus/gus_dma.c * powerpc/5200: dts: fix memory node unit name arch/powerpc/boot/dts/charon.dts arch/powerpc/boot/dts/digsy_mtc.dts arch/powerpc/boot/dts/lite5200.dts arch/powerpc/boot/dts/lite5200b.dts arch/powerpc/boot/dts/media5200.dts arch/powerpc/boot/dts/mpc5200b.dtsi arch/powerpc/boot/dts/o2d.dts arch/powerpc/boot/dts/o2d.dtsi arch/powerpc/boot/dts/o2dnt2.dts arch/powerpc/boot/dts/o3dnt.dts arch/powerpc/boot/dts/pcm032.dts arch/powerpc/boot/dts/tqm5200.dts * scsi: target: Fix alua_tg_pt_gps_count tracking drivers/target/target_core_alua.c * scsi: target: Fix ordered tag handling drivers/target/target_core_device.c drivers/target/target_core_internal.h drivers/target/target_core_transport.c include/target/target_core_base.h * MIPS: sni: Fix the build arch/mips/sni/time.c * tty: tty_buffer: Fix the softlockup issue in flush_to_ldisc drivers/tty/tty_buffer.c * ALSA: ISA: not for M68K sound/core/Makefile sound/isa/Kconfig sound/pci/Kconfig * usb: host: ohci-tmio: check return value after calling platform_get_resource() drivers/usb/host/ohci-tmio.c * ARM: dts: omap: fix gpmc,mux-add-data type arch/arm/boot/dts/omap-gpmc-smsc9221.dtsi arch/arm/boot/dts/omap3-overo-tobiduo-common.dtsi * firmware_loader: fix pre-allocated buf built-in firmware use drivers/base/firmware_loader/main.c * scsi: advansys: Fix kernel pointer leak drivers/scsi/advansys.c * ASoC: nau8824: Add DMI quirk mechanism for active-high jack-detect sound/soc/codecs/nau8824.c * arm64: dts: freescale: fix arm,sp805 compatible string arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi * usb: typec: tipd: Remove WARN_ON in tps6598x_block_read drivers/usb/typec/tps6598x.c * usb: musb: tusb6010: check return value after calling platform_get_resource() drivers/usb/musb/tusb6010.c * arm64: dts: hisilicon: fix arm,sp805 compatible string arch/arm64/boot/dts/hisilicon/hi3660.dtsi arch/arm64/boot/dts/hisilicon/hi6220.dtsi * scsi: lpfc: Fix list_add() corruption in lpfc_drain_txq() drivers/scsi/lpfc/lpfc_sli.c * arm64: zynqmp: Fix serial compatible string arch/arm64/boot/dts/xilinx/zynqmp.dtsi * arm64: zynqmp: Do not duplicate flash partition label property arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dts * erofs: fix unsafe pagevec reuse of hooked pclusters drivers/staging/erofs/unzip_pagevec.h drivers/staging/erofs/unzip_vle.c * erofs: remove the occupied parameter from z_erofs_pagevec_enqueue() drivers/staging/erofs/unzip_pagevec.h drivers/staging/erofs/unzip_vle.c * PCI: Add MSI masking quirk for Nvidia ION AHCI drivers/pci/quirks.c * PCI/MSI: Deal with devices lying about their MSI mask capability drivers/pci/msi.c include/linux/pci.h * PCI/MSI: Destroy sysfs before freeing entries drivers/pci/msi.c * parisc/entry: fix trace test in syscall exit path arch/parisc/kernel/entry.S * fortify: Explicitly disable Clang support security/Kconfig * ext4: fix lazy initialization next schedule time computation in more granular unit fs/ext4/super.c * x86/cpu: Fix migration safety with X86_BUG_NULL_SEL arch/x86/kernel/cpu/amd.c arch/x86/kernel/cpu/common.c arch/x86/kernel/cpu/cpu.h * fuse: truncate pagecache on atomic_o_trunc fs/fuse/file.c * PCI: Add PCI_EXP_DEVCTL_PAYLOAD_* macros include/uapi/linux/pci_regs.h * s390/tape: fix timer initialization in tape_std_assign() drivers/s390/char/tape_std.c * s390/cio: check the subchannel validity for dev_busid drivers/s390/cio/css.c * video: backlight: Drop maximum brightness override for brightness zero drivers/video/backlight/backlight.c * backlight: gpio-backlight: Correct initial power state handling drivers/video/backlight/gpio_backlight.c * mm, oom: do not trigger out_of_memory from the #PF mm/oom_kill.c * mm, oom: pagefault_out_of_memory: don't force global OOM for dying tasks mm/oom_kill.c * powerpc/bpf: Emit stf barrier instruction sequences for BPF_NOSPEC arch/powerpc/net/bpf_jit64.h arch/powerpc/net/bpf_jit_comp64.c * powerpc/security: Add a helper to query stf_barrier type arch/powerpc/include/asm/security_features.h arch/powerpc/kernel/security.c * powerpc/bpf: Fix BPF_SUB when imm == 0x80000000 arch/powerpc/net/bpf_jit_comp64.c * powerpc/bpf: Validate branch ranges arch/powerpc/net/bpf_jit.h arch/powerpc/net/bpf_jit_comp64.c * powerpc/lib: Add helper to check if offset is within conditional branch range arch/powerpc/include/asm/code-patching.h arch/powerpc/lib/code-patching.c arch/powerpc/net/bpf_jit.h * 9p/net: fix missing error check in p9_check_errors net/9p/client.c * f2fs: should use GFP_NOFS for directory inodes fs/f2fs/inode.c fs/f2fs/namei.c * ARM: 9156/1: drop cc-option fallbacks for architecture selection arch/arm/Makefile * ARM: 9155/1: fix early early_iounmap() arch/arm/mm/mmu.c * USB: chipidea: fix interrupt deadlock drivers/usb/chipidea/core.c * cxgb4: fix eeprom len when diagnostics not implemented drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c drivers/net/ethernet/chelsio/cxgb4/t4_hw.h * vsock: prevent unnecessary refcnt inc for nonblocking connect net/vmw_vsock/af_vsock.c * arm64: pgtable: make __pte_to_phys/__phys_to_pte_val inline functions arch/arm64/include/asm/pgtable.h * nfc: pn533: Fix double free when pn533_fill_fragment_skbs() fails drivers/nfc/pn533/pn533.c * llc: fix out-of-bound array index in llc_sk_dev_hash() include/net/llc.h * zram: off by one in read_block_state() drivers/block/zram/zram_drv.c * mm/zsmalloc.c: close race window between zs_pool_dec_isolated() and zs_unregister_migration() mm/zsmalloc.c * bonding: Fix a use-after-free problem when bond_sysfs_slave_add() failed drivers/net/bonding/bond_sysfs_slave.c * ACPI: PMIC: Fix intel_pmic_regs_handler() read accesses drivers/acpi/pmic/intel_pmic.c * net: davinci_emac: Fix interrupt pacing disable drivers/net/ethernet/ti/davinci_emac.c * xen-pciback: Fix return in pm_ctrl_init() drivers/xen/xen-pciback/conf_space_capability.c * i2c: xlr: Fix a resource leak in the error handling path of 'xlr_i2c_probe()' drivers/i2c/busses/i2c-xlr.c * scsi: qla2xxx: Turn off target reset during issue_lip drivers/scsi/qla2xxx/qla_gbl.h drivers/scsi/qla2xxx/qla_mr.c drivers/scsi/qla2xxx/qla_os.c * scsi: qla2xxx: Fix gnl list corruption drivers/scsi/qla2xxx/qla_init.c * ar7: fix kernel builds for compiler test drivers/watchdog/Kconfig * watchdog: f71808e_wdt: fix inaccurate report in WDIOC_GETTIMEOUT drivers/watchdog/f71808e_wdt.c * m68k: set a default value for MEMORY_RESERVE arch/m68k/Kconfig.machine * dmaengine: dmaengine_desc_callback_valid(): Check for `callback_result` drivers/dma/dmaengine.h * netfilter: nfnetlink_queue: fix OOB when mac header was cleared net/netfilter/nfnetlink_queue.c * auxdisplay: ht16k33: Fix frame buffer device blanking drivers/auxdisplay/ht16k33.c * auxdisplay: ht16k33: Connect backlight to fbdev drivers/auxdisplay/ht16k33.c * auxdisplay: img-ascii-lcd: Fix lock-up when displaying empty string drivers/auxdisplay/img-ascii-lcd.c * dmaengine: at_xdmac: fix AT_XDMAC_CC_PERID() macro drivers/dma/at_xdmac.c * mtd: spi-nor: hisi-sfc: Remove excessive clk_disable_unprepare() drivers/mtd/spi-nor/hisi-sfc.c * fs: orangefs: fix error return code of orangefs_revalidate_lookup() fs/orangefs/dcache.c * NFS: Fix deadlocks in nfs_scan_commit_list() fs/nfs/write.c * PCI: aardvark: Don't spam about PIO Response Status drivers/pci/controller/pci-aardvark.c * drm/plane-helper: fix uninitialized variable reference drivers/gpu/drm/drm_plane_helper.c * pnfs/flexfiles: Fix misplaced barrier in nfs4_ff_layout_prepare_ds fs/nfs/flexfilelayout/flexfilelayoutdev.c fs/nfs/pnfs_nfs.c * rpmsg: Fix rpmsg_create_ept return when RPMSG config is not defined include/linux/rpmsg.h * apparmor: fix error check security/apparmor/label.c * power: supply: bq27xxx: Fix kernel crash on IRQ handler register error drivers/power/supply/bq27xxx_battery_i2c.c * mips: cm: Convert to bitfield API to fix out-of-bounds access arch/mips/include/asm/mips-cm.h arch/mips/kernel/mips-cm.c * serial: xilinx_uartps: Fix race condition causing stuck TX drivers/tty/serial/xilinx_uartps.c * phy: qcom-qusb2: Fix a memory leak on probe drivers/phy/qualcomm/phy-qcom-qusb2.c * ASoC: cs42l42: Defer probe if request_threaded_irq() returns EPROBE_DEFER sound/soc/codecs/cs42l42.c * ASoC: cs42l42: Correct some register default values sound/soc/codecs/cs42l42.c * RDMA/mlx4: Return missed an error if device doesn't support steering drivers/infiniband/hw/mlx4/qp.c * scsi: csiostor: Uninitialized data in csio_ln_vnp_read_cbfn() drivers/scsi/csiostor/csio_lnode.c * power: supply: rt5033_battery: Change voltage values to µV drivers/power/supply/rt5033_battery.c * usb: gadget: hid: fix error code in do_config() drivers/usb/gadget/legacy/hid.c * serial: 8250_dw: Drop wrong use of ACPI_PTR() drivers/tty/serial/8250/8250_dw.c * video: fbdev: chipsfb: use memset_io() instead of memset() drivers/video/fbdev/chipsfb.c * memory: fsl_ifc: fix leak of irq and nand_irq in fsl_ifc_ctrl_probe drivers/memory/fsl_ifc.c * soc/tegra: Fix an error handling path in tegra_powergate_power_up() drivers/soc/tegra/pmc.c * arm: dts: omap3-gta04a4: accelerometer irq fix arch/arm/boot/dts/omap3-gta04.dtsi * ALSA: hda: Reduce udelay() at SKL+ position reporting sound/pci/hda/hda_intel.c * JFS: fix memleak in jfs_mount fs/jfs/jfs_mount.c * MIPS: loongson64: make CPU_LOONGSON64 depends on MIPS_FP_SUPPORT arch/mips/Kconfig * scsi: dc395: Fix error case unwinding drivers/scsi/dc395x.c * ARM: dts: at91: tse850: the emac<->phy interface is rmii arch/arm/boot/dts/at91-tse850-3.dts * RDMA/bnxt_re: Fix query SRQ failure drivers/infiniband/hw/bnxt_re/qplib_fp.c * arm64: dts: rockchip: Fix GPU register width for RK3328 arch/arm64/boot/dts/rockchip/rk3328.dtsi * ARM: s3c: irq-s3c24xx: Fix return value check for s3c24xx_init_intc() drivers/irqchip/irq-s3c24xx.c * RDMA/rxe: Fix wrong port_cap_flags drivers/infiniband/sw/rxe/rxe_param.h * ibmvnic: Process crqs after enabling interrupts drivers/net/ethernet/ibm/ibmvnic.c * selftests/bpf: Fix fclose/pclose mismatch in test_progs tools/testing/selftests/bpf/test_progs.c * crypto: pcrypt - Delay write to padata->info crypto/pcrypt.c * net: phylink: avoid mvneta warning when setting pause parameters drivers/net/phy/phylink.c * net: amd-xgbe: Toggle PLL settings during rate change drivers/net/ethernet/amd/xgbe/xgbe-common.h drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c * wcn36xx: add proper DMA memory barriers in rx path drivers/net/wireless/ath/wcn36xx/dxe.c * libertas: Fix possible memory leak in probe and disconnect drivers/net/wireless/marvell/libertas/if_usb.c * libertas_tf: Fix possible memory leak in probe and disconnect drivers/net/wireless/marvell/libertas_tf/if_usb.c * KVM: s390: Fix handle_sske page fault handling arch/s390/kvm/priv.c * samples/kretprobes: Fix return value if register_kretprobe() failed samples/kprobes/kretprobe_example.c * tcp: don't free a FIN sk_buff in tcp_remove_empty_skb() net/ipv4/tcp.c * irq: mips: avoid nested irq_enter() drivers/irqchip/irq-bcm6345-l1.c * s390/gmap: don't unconditionally call pte_unmap_unlock() in __gmap_zap() arch/s390/mm/gmap.c * smackfs: use netlbl_cfg_cipsov4_del() for deleting cipso_v4_doi security/smack/smackfs.c * drm/msm: Fix potential NULL dereference in DPU SSPP drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c * clocksource/drivers/timer-ti-dm: Select TIMER_OF drivers/clocksource/Kconfig * PM: hibernate: fix sparse warnings kernel/power/swap.c * nvme-rdma: fix error code in nvme_rdma_setup_ctrl drivers/nvme/host/rdma.c * phy: micrel: ksz8041nl: do not use power down mode drivers/net/phy/micrel.c * mwifiex: Send DELBA requests according to spec drivers/net/wireless/marvell/mwifiex/11n.c * rsi: stop thread firstly in rsi_91x_init() error handling drivers/net/wireless/rsi/rsi_91x_main.c * platform/x86: thinkpad_acpi: Fix bitwise vs. logical warning drivers/platform/x86/thinkpad_acpi.c * mmc: mxs-mmc: disable regulator on error and in the remove function drivers/mmc/host/mxs-mmc.c * net: stream: don't purge sk_error_queue in sk_stream_kill_queues() net/core/stream.c * drm/msm: uninitialized variable in msm_gem_import() drivers/gpu/drm/msm/msm_gem.c * ath10k: fix max antenna gain unit drivers/net/wireless/ath/ath10k/mac.c drivers/net/wireless/ath/ath10k/wmi.h * hwmon: (pmbus/lm25066) Let compiler determine outer dimension of lm25066_coeff drivers/hwmon/pmbus/lm25066.c * hwmon: Fix possible memleak in __hwmon_device_register() drivers/hwmon/hwmon.c * memstick: jmb38x_ms: use appropriate free function in jmb38x_ms_alloc_host() drivers/memstick/host/jmb38x_ms.c * memstick: avoid out-of-range warning drivers/memstick/core/ms_block.c * mmc: sdhci-omap: Fix NULL pointer exception if regulator is not configured drivers/mmc/host/sdhci-omap.c * b43: fix a lower bounds test drivers/net/wireless/broadcom/b43/phy_g.c * b43legacy: fix a lower bounds test drivers/net/wireless/broadcom/b43legacy/radio.c * hwrng: mtk - Force runtime pm ops for sleep ops drivers/char/hw_random/mtk-rng.c * crypto: qat - disregard spurious PFVF interrupts drivers/crypto/qat/qat_common/adf_pf2vf_msg.c drivers/crypto/qat/qat_common/adf_vf_isr.c * crypto: qat - detect PFVF collision after ACK drivers/crypto/qat/qat_common/adf_pf2vf_msg.c * media: dvb-frontends: mn88443x: Handle errors of clk_prepare_enable() drivers/media/dvb-frontends/mn88443x.c * ath9k: Fix potential interrupt storm on queue reset drivers/net/wireless/ath/ath9k/main.c * media: em28xx: Don't use ops->suspend if it is NULL drivers/media/usb/em28xx/em28xx-core.c * cpuidle: Fix kobject memory leaks in error paths drivers/cpuidle/sysfs.c * media: cx23885: Fix snd_card_free call on null card pointer drivers/media/pci/cx23885/cx23885-alsa.c * media: si470x: Avoid card name truncation drivers/media/radio/si470x/radio-si470x-i2c.c drivers/media/radio/si470x/radio-si470x-usb.c * media: mtk-vpu: Fix a resource leak in the error handling path of 'mtk_vpu_probe()' drivers/media/platform/mtk-vpu/mtk_vpu.c * media: dvb-usb: fix ununit-value in az6027_rc_query drivers/media/usb/dvb-usb/az6027.c * media: em28xx: add missing em28xx_close_extension drivers/media/usb/em28xx/em28xx-cards.c * drm/amdgpu: fix warning for overflow check drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.h * net: dsa: rtl8366rb: Fix off-by-one bug drivers/net/dsa/rtl8366rb.c * cgroup: Make rebind_subsystems() disable v2 controllers all at once kernel/cgroup/cgroup.c * Bluetooth: fix init and cleanup of sco_conn.timeout_work net/bluetooth/sco.c * parisc/kgdb: add kgdb_roundup() to make kgdb work with idle polling arch/parisc/kernel/smp.c * parisc/unwind: fix unwinder when CONFIG_64BIT is enabled arch/parisc/kernel/unwind.c * task_stack: Fix end_of_stack() for architectures with upwards-growing stack include/linux/sched/task_stack.h * parisc: fix warning in flush_tlb_all arch/parisc/mm/init.c * x86/hyperv: Protect set_hv_tscchange_cb() against getting preempted arch/x86/hyperv/hv_init.c * spi: bcm-qspi: Fix missing clk_disable_unprepare() on error in bcm_qspi_probe() drivers/spi/spi-bcm-qspi.c * ARM: 9136/1: ARMv7-M uses BE-8, not BE-32 arch/arm/mm/Kconfig * gre/sit: Don't generate link-local addr if addr_gen_mode is IN6_ADDR_GEN_MODE_NONE net/ipv6/addrconf.c * ARM: clang: Do not rely on lr register for stacktrace arch/arm/kernel/stacktrace.c * smackfs: use __GFP_NOFAIL for smk_cipso_doi() security/smack/smackfs.c * iwlwifi: mvm: disable RX-diversity in powersave drivers/net/wireless/intel/iwlwifi/mvm/utils.c * PM: hibernate: Get block device exclusively in swsusp_check() kernel/power/swap.c * mwl8k: Fix use-after-free in mwl8k_fw_state_machine() drivers/net/wireless/marvell/mwl8k.c * tracing/cfi: Fix cmp_entries_* functions signature mismatch kernel/trace/tracing_map.c * workqueue: make sysfs of unbound kworker cpumask more clever kernel/workqueue.c * lib/xz: Validate the value before assigning it to an enum variable lib/xz/xz_dec_stream.c * lib/xz: Avoid overlapping memcpy() with invalid input with in-place decompression lib/decompress_unxz.c lib/xz/xz_dec_lzma2.c * memstick: r592: Fix a UAF bug when removing the driver drivers/memstick/host/r592.c * leaking_addresses: Always print a trailing newline scripts/leaking_addresses.pl * ACPI: battery: Accept charges over the design capacity as full drivers/acpi/battery.c * ath: dfs_pattern_detector: Fix possible null-pointer dereference in channel_detector_create() drivers/net/wireless/ath/dfs_pattern_detector.c * tracefs: Have tracefs directories not set OTH permission bits by default fs/tracefs/inode.c * media: usb: dvd-usb: fix uninit-value bug in dibusb_read_eeprom_byte() drivers/media/usb/dvb-usb/dibusb-common.c * ACPICA: Avoid evaluating methods too early during system resume drivers/acpi/acpica/acglobal.h drivers/acpi/acpica/hwesleep.c drivers/acpi/acpica/hwsleep.c drivers/acpi/acpica/hwxfsleep.c * media: rcar-csi2: Add checking to rcsi2_start_receiver() drivers/media/platform/rcar-vin/rcar-csi2.c * ia64: don't do IA64_CMPXCHG_DEBUG without CONFIG_PRINTK arch/ia64/Kconfig.debug * media: mceusb: return without resubmitting URB in case of -EPROTO error. drivers/media/rc/mceusb.c * media: s5p-mfc: Add checking to s5p_mfc_probe(). drivers/media/platform/s5p-mfc/s5p_mfc.c * media: s5p-mfc: fix possible null-pointer dereference in s5p_mfc_probe() drivers/media/platform/s5p-mfc/s5p_mfc.c * media: uvcvideo: Return -EIO for control errors drivers/media/usb/uvc/uvc_video.c * media: uvcvideo: Set capability in s_param drivers/media/usb/uvc/uvc_v4l2.c * media: netup_unidvb: handle interrupt properly according to the firmware drivers/media/pci/netup_unidvb/netup_unidvb_core.c * media: mt9p031: Fix corrupted frame after restarting stream drivers/media/i2c/mt9p031.c * mwifiex: Properly initialize private structure on interface type changes drivers/net/wireless/marvell/mwifiex/cfg80211.c * mwifiex: Run SET_BSS_MODE when changing from P2P to STATION vif-type drivers/net/wireless/marvell/mwifiex/cfg80211.c * x86: Increase exception stack sizes arch/x86/include/asm/page_64_types.h * smackfs: Fix use-after-free in netlbl_catmap_walk() security/smack/smackfs.c * net: sched: update default qdisc visibility after Tx queue cnt changes include/net/sch_generic.h net/core/dev.c net/sched/sch_generic.c net/sched/sch_mq.c * locking/lockdep: Avoid RCU-induced noinstr fail kernel/locking/lockdep.c * MIPS: lantiq: dma: reset correct number of channel arch/mips/lantiq/xway/dma.c * MIPS: lantiq: dma: add small delay after reset arch/mips/lantiq/xway/dma.c * platform/x86: wmi: do not fail if disabling fails drivers/platform/x86/wmi.c * Bluetooth: fix use-after-free error in lock_sock_nested() net/bluetooth/l2cap_sock.c * Bluetooth: sco: Fix lock_sock() blockage by memcpy_from_msg() net/bluetooth/sco.c * drm: panel-orientation-quirks: Add quirk for KD Kurio Smart C15200 2-in-1 drivers/gpu/drm/drm_panel_orientation_quirks.c * USB: iowarrior: fix control-message timeouts drivers/usb/misc/iowarrior.c * USB: serial: keyspan: fix memleak on probe errors drivers/usb/serial/keyspan.c * iio: dac: ad5446: Fix ad5622_write() return value drivers/iio/dac/ad5446.c * pinctrl: core: fix possible memory leak in pinctrl_enable() drivers/pinctrl/core.c * quota: correct error number in free_dqentry() fs/quota/quota_tree.c * quota: check block number when reading the block in quota file fs/quota/quota_tree.c * PCI: aardvark: Read all 16-bits from PCIE_MSI_PAYLOAD_REG drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Fix return value of MSI domain .alloc() method drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Do not unmask unused interrupts drivers/pci/controller/pci-aardvark.c * PCI: aardvark: Do not clear status bits of masked interrupts drivers/pci/controller/pci-aardvark.c * xen/balloon: add late_initcall_sync() for initial ballooning done Documentation/admin-guide/kernel-parameters.txt drivers/xen/balloon.c * ALSA: mixer: fix deadlock in snd_mixer_oss_set_volume sound/core/oss/mixer_oss.c * ALSA: mixer: oss: Fix racy access to slots sound/core/oss/mixer_oss.c * serial: core: Fix initializing and restoring termios speed drivers/tty/serial/serial_core.c include/linux/console.h * powerpc/85xx: Fix oops when mpc85xx_smp_guts_ids node cannot be found arch/powerpc/platforms/85xx/mpc85xx_pm_ops.c * power: supply: max17042_battery: use VFSOC for capacity when no rsns drivers/power/supply/max17042_battery.c * power: supply: max17042_battery: Prevent int underflow in set_soc_threshold drivers/power/supply/max17042_battery.c * signal/mips: Update (_save|_restore)_fp_context to fail with -EFAULT arch/mips/kernel/r2300_fpu.S arch/mips/kernel/syscall.c * signal: Remove the bogus sigkill_pending in ptrace_stop kernel/signal.c * RDMA/qedr: Fix NULL deref for query_qp on the GSI QP drivers/infiniband/hw/qedr/verbs.c * rsi: Fix module dev_oper_mode parameter description drivers/net/wireless/rsi/rsi_91x_sdio.c drivers/net/wireless/rsi/rsi_91x_usb.c drivers/net/wireless/rsi/rsi_hal.h * rsi: fix rate mask set leading to P2P failure drivers/net/wireless/rsi/rsi_91x_hal.c drivers/net/wireless/rsi/rsi_91x_mac80211.c drivers/net/wireless/rsi/rsi_91x_mgmt.c drivers/net/wireless/rsi/rsi_main.h * rsi: fix key enabled check causing unwanted encryption for vap_id > 0 drivers/net/wireless/rsi/rsi_91x_core.c drivers/net/wireless/rsi/rsi_91x_hal.c drivers/net/wireless/rsi/rsi_main.h * rsi: fix occasional initialisation failure with BT coex drivers/net/wireless/rsi/rsi_91x_main.c drivers/net/wireless/rsi/rsi_91x_mgmt.c drivers/net/wireless/rsi/rsi_main.h * wcn36xx: handle connection loss indication drivers/net/wireless/ath/wcn36xx/smd.c * libata: fix checking of DMA state drivers/ata/libata-core.c * mwifiex: Read a PCI register after writing the TX ring write pointer drivers/net/wireless/marvell/mwifiex/pcie.c * wcn36xx: Fix HT40 capability for 2Ghz band drivers/net/wireless/ath/wcn36xx/main.c * evm: mark evm_fixmode as __ro_after_init security/integrity/evm/evm_main.c * rtl8187: fix control-message timeouts drivers/net/wireless/realtek/rtl818x/rtl8187/rtl8225.c * PCI: Mark Atheros QCA6174 to avoid bus reset drivers/pci/quirks.c * ath10k: fix division by zero in send path drivers/net/wireless/ath/ath10k/usb.c * ath10k: fix control-message timeout drivers/net/wireless/ath/ath10k/usb.c * ath6kl: fix control-message timeout drivers/net/wireless/ath/ath6kl/usb.c * ath6kl: fix division by zero in send path drivers/net/wireless/ath/ath6kl/usb.c * mwifiex: fix division by zero in fw download path drivers/net/wireless/marvell/mwifiex/usb.c * EDAC/sb_edac: Fix top-of-high-memory value for Broadwell/Haswell drivers/edac/sb_edac.c * regulator: dt-bindings: samsung,s5m8767: correct s5m8767,pmic-buck-default-dvs-idx property Documentation/devicetree/bindings/regulator/samsung,s5m8767.txt * regulator: s5m8767: do not use reset value as DVS voltage if GPIO DVS is disabled Documentation/devicetree/bindings/regulator/samsung,s5m8767.txt drivers/regulator/s5m8767.c * hwmon: (pmbus/lm25066) Add offset coefficients drivers/hwmon/pmbus/lm25066.c * ia64: kprobes: Fix to pass correct trampoline address to the handler arch/ia64/kernel/kprobes.c * btrfs: call btrfs_check_rw_degradable only if there is a missing device fs/btrfs/disk-io.c * btrfs: fix lost error handling when replaying directory deletes fs/btrfs/tree-log.c * btrfs: clear MISSING device status bit in btrfs_close_one_device fs/btrfs/volumes.c * vmxnet3: do not stop tx queues after netif_device_detach() drivers/net/vmxnet3/vmxnet3_drv.c * watchdog: Fix OMAP watchdog early handling drivers/watchdog/omap_wdt.c * spi: spl022: fix Microwire full duplex mode drivers/spi/spi-pl022.c * xen/netfront: stop tx queues during live migration drivers/net/xen-netfront.c * bpf: Prevent increasing bpf_jit_limit above max include/linux/filter.h kernel/bpf/core.c net/core/sysctl_net_core.c * drm: panel-orientation-quirks: Add quirk for Aya Neo 2021 drivers/gpu/drm/drm_panel_orientation_quirks.c * mmc: winbond: don't build on M68K drivers/mmc/host/Kconfig * hyperv/vmbus: include linux/bitops.h drivers/hv/hyperv_vmbus.h * sfc: Don't use netif_info before net_device setup drivers/net/ethernet/sfc/ptp.c drivers/net/ethernet/sfc/siena_sriov.c * cavium: Fix return values of the probe function drivers/net/ethernet/cavium/thunder/nicvf_main.c * scsi: qla2xxx: Fix unmap of already freed sgl drivers/scsi/qla2xxx/qla_target.c * cavium: Return negative value when pci_alloc_irq_vectors() fails drivers/net/ethernet/cavium/thunder/nic_main.c * x86/irq: Ensure PI wakeup handler is unregistered before module unload arch/x86/kernel/irq.c * x86/sme: Use #define USE_EARLY_PGTABLE_L5 in mem_encrypt_identity.c arch/x86/mm/mem_encrypt_identity.c * ALSA: timer: Unconditionally unlink slave instances, too sound/core/timer.c * ALSA: timer: Fix use-after-free problem sound/core/timer.c * ALSA: synth: missing check for possible NULL after the call to kstrdup sound/synth/emux/emux.c * ALSA: usb-audio: Add registration quirk for JBL Quantum 400 sound/usb/quirks.c * ALSA: line6: fix control and interrupt message timeouts sound/usb/line6/driver.c sound/usb/line6/driver.h sound/usb/line6/podhd.c sound/usb/line6/toneport.c * ALSA: 6fire: fix control and bulk message timeouts sound/usb/6fire/comm.c sound/usb/6fire/firmware.c * ALSA: ua101: fix division by zero at probe sound/usb/misc/ua101.c * ALSA: hda/realtek: Add quirk for Clevo PC70HS sound/pci/hda/patch_realtek.c * media: ir-kbd-i2c: improve responsiveness of hauppauge zilog receivers drivers/media/i2c/ir-kbd-i2c.c * media: ite-cir: IR receiver stop working after receive overflow drivers/media/rc/ite-cir.c * crypto: s5p-sss - Add error handling in s5p_aes_probe() drivers/crypto/s5p-sss.c * firmware/psci: fix application of sizeof to pointer drivers/firmware/psci_checker.c * tpm: Check for integer overflow in tpm2_map_response_body() drivers/char/tpm/tpm2-space.c * parisc: Fix ptrace check on syscall return arch/parisc/kernel/entry.S * mmc: dw_mmc: Dont wait for DRTO on Write RSP error drivers/mmc/host/dw_mmc.c * ocfs2: fix data corruption on truncate fs/ocfs2/file.c * libata: fix read log timeout value drivers/ata/libata-eh.c include/linux/libata.h * Input: i8042 - Add quirk for Fujitsu Lifebook T725 drivers/input/serio/i8042-x86ia64io.h * Input: elantench - fix misreporting trackpoint coordinates drivers/input/mouse/elantech.c * binder: use cred instead of task for selinux checks drivers/android/binder.c include/linux/lsm_hooks.h include/linux/security.h security/security.c security/selinux/hooks.c * binder: use euid from cred instead of using task drivers/android/binder.c * xhci: Fix USB 3.1 enumeration issues by increasing roothub power-on-good delay drivers/usb/host/xhci-hub.c * ANDROID: usb: gadget: f_accessory: Mitgate handling of non-existent USB request drivers/usb/gadget/function/f_accessory.c * UPSTREAM: binder: use cred instead of task for getsecid drivers/android/binder.c include/linux/security.h * FROMGIT: binder: fix test regression due to sender_euid change drivers/android/binder.c * BACKPORT: binder: use cred instead of task for selinux checks drivers/android/binder.c include/linux/lsm_hooks.h include/linux/security.h security/security.c security/selinux/hooks.c * UPSTREAM: binder: use euid from cred instead of using task drivers/android/binder.c * ANDROID: setlocalversion: make KMI_GENERATION optional scripts/setlocalversion Merge 4.19.217 into android-4.19-stable Linux 4.19.217 * rsi: fix control-message timeout drivers/net/wireless/rsi/rsi_91x_usb.c * staging: rtl8192u: fix control-message timeouts drivers/staging/rtl8192u/r8192U_core.c * staging: r8712u: fix control-message timeout drivers/staging/rtl8712/usb_ops_linux.c * comedi: vmk80xx: fix bulk and interrupt message timeouts drivers/staging/comedi/drivers/vmk80xx.c * comedi: vmk80xx: fix bulk-buffer overflow drivers/staging/comedi/drivers/vmk80xx.c * comedi: vmk80xx: fix transfer-buffer overflows drivers/staging/comedi/drivers/vmk80xx.c * comedi: ni_usb6501: fix NULL-deref in command paths drivers/staging/comedi/drivers/ni_usb6501.c * comedi: dt9812: fix DMA buffers on stack drivers/staging/comedi/drivers/dt9812.c * isofs: Fix out of bound access for corrupted isofs image fs/isofs/inode.c * printk/console: Allow to disable console output by using console="" or console=null kernel/printk/printk.c * usb-storage: Add compatibility quirk flags for iODD 2531/2541 drivers/usb/storage/unusual_devs.h * usb: musb: Balance list entry in musb_gadget_queue drivers/usb/musb/musb_gadget.c * usb: gadget: Mark USB_FSL_QE broken on 64-bit drivers/usb/gadget/udc/Kconfig * usb: ehci: handshake CMD_RUN instead of STS_HALT drivers/usb/host/ehci-hcd.c drivers/usb/host/ehci-platform.c drivers/usb/host/ehci.h * Revert "x86/kvm: fix vcpu-id indexed array sizes" arch/x86/kvm/ioapic.c arch/x86/kvm/ioapic.h Merge 4.19.216 into android-4.19-stable Linux 4.19.216 * ARM: 9120/1: Revert "amba: make use of -1 IRQs warn" drivers/amba/bus.c * arch: pgtable: define MAX_POSSIBLE_PHYSMEM_BITS where needed arch/arc/include/asm/pgtable.h arch/arm/include/asm/pgtable-2level.h arch/arm/include/asm/pgtable-3level.h arch/mips/include/asm/pgtable-32.h arch/powerpc/include/asm/pte-common.h arch/riscv/include/asm/pgtable-32.h include/asm-generic/pgtable.h * sfc: Fix reading non-legacy supported link modes drivers/net/ethernet/sfc/ethtool.c * IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields drivers/infiniband/hw/qib/qib_user_sdma.c * IB/qib: Use struct_size() helper drivers/infiniband/hw/qib/qib_user_sdma.c * media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() drivers/media/firewire/firedtv-avc.c drivers/media/firewire/firedtv-ci.c * scsi: core: Put LLD module refcnt after SCSI device is released drivers/scsi/scsi.c drivers/scsi/scsi_sysfs.c * UPSTREAM: security: selinux: allow per-file labeling for bpffs security/selinux/hooks.c Bug: 210364486 Change-Id: I9ac11844d93b9bc2720d4a9c9ef43428b919d294 Signed-off-by: JohnnLee <johnnlee@google.com>
| * locking/lockdep: Avoid RCU-induced noinstr failPeter Zijlstra2021-11-261-1/+1
| | | | | | | | | | | | | | | | | | | | [ Upstream commit ce0b9c805dd66d5e49fd53ec5415ae398f4c56e6 ] vmlinux.o: warning: objtool: look_up_lock_class()+0xc7: call to rcu_read_lock_any_held() leaves .noinstr.text section Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20210624095148.311980536@infradead.org Signed-off-by: Sasha Levin <sashal@kernel.org>
* | Merge android-4.19-stable (4.19.207) into android-msm-barbet-4.19-sc-ltsWilson Sung2021-10-271-10/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge 4.19.207 into android-4.19-stable Linux 4.19.207 s390/bpf: Fix 64-bit subtraction of the -0x80000000 constant net: renesas: sh_eth: Fix freeing wrong tx descriptor ip_gre: validate csum_start only on pull qlcnic: Remove redundant unlock in qlcnic_pinit_from_rom * fq_codel: reject silly quantum parameters include/uapi/linux/pkt_sched.h * netfilter: socket: icmp6: fix use-after-scope net/ipv6/netfilter/nf_socket_ipv6.c net: dsa: b53: Fix calculating number of switch ports ARC: export clear_user_page() for modules mtd: rawnand: cafe: Fix a resource leak in the error handling path of 'cafe_nand_probe()' * PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n include/linux/pci.h KVM: arm64: Handle PSCI resets before userspace touches vCPU state * PCI: Fix pci_dev_str_match_path() alloc while atomic bug drivers/pci/pci.c mfd: axp20x: Update AXP288 volatile ranges NTB: perf: Fix an error code in perf_setup_inbuf() ethtool: Fix an error code in cxgb2.c block, bfq: honor already-setup queue merges net: usb: cdc_mbim: avoid altsetting toggling for Telit LN920 * PCI: Add ACS quirks for Cavium multi-function devices drivers/pci/quirks.c mfd: Don't use irq_create_mapping() to resolve a mapping dt-bindings: mtd: gpmc: Fix the ECC bytes vs. OOB bytes equation KVM: s390: index kvm->arch.idle_mask by vcpu_idx * mm/memory_hotplug: use "unsigned long" for PFN in zone_for_pfn_range() include/linux/memory_hotplug.h net: hns3: pad the short tunnel frame before sending to hardware ibmvnic: check failover_pending in login response qed: Handle management FW error * tcp: fix tp->undo_retrans accounting in tcp_sacktag_one() net/ipv4/tcp_input.c net: dsa: destroy the phylink instance on any error in dsa_slave_phy_setup * net/af_unix: fix a data-race in unix_dgram_poll include/linux/skbuff.h net/unix/af_unix.c * events: Reuse value read using READ_ONCE instead of re-reading it kernel/events/core.c net/mlx5: Fix potential sleeping in atomic context perf machine: Initialize srcline string member in add_location struct * tipc: increase timeout in tipc_sk_enqueue() net/tipc/socket.c r6040: Restore MDIO clock frequency after MAC reset * net/l2tp: Fix reference count leak in l2tp_udp_recv_core net/l2tp/l2tp_core.c dccp: don't duplicate ccid when cloning dccp sock ptp: dp83640: don't define PAGE0 net-caif: avoid user-triggerable WARN_ON(1) * tipc: fix an use-after-free issue in tipc_recvmsg net/tipc/socket.c x86/mm: Fix kern_addr_valid() to cope with existing but not present entries * PCI: Add AMD GPU multi-function power dependencies drivers/pci/quirks.c PM: base: power: don't try to use non-existing RTC for storing data * arm64/sve: Use correct size when reinitialising SVE state arch/arm64/kernel/fpsimd.c bnx2x: Fix enabling network interfaces without VFs xen: reset legacy rtc flag for PV domU dm thin metadata: Fix use-after-free in dm_bm_set_read_only drm/amdgpu: Fix BUG_ON assert platform/chrome: cros_ec_proto: Send command again when timeout occurs memcg: enable accounting for pids in nested pid namespaces * mm/hugetlb: initialize hugetlb_usage in mm_init include/linux/hugetlb.h kernel/fork.c cpufreq: powernv: Fix init_chip_info initialization in numa=off scsi: qla2xxx: Sync queue idx with queue_pair_map idx scsi: BusLogic: Fix missing pr_cont() use * ovl: fix BUG_ON() in may_delete() when called from ovl_cleanup() fs/overlayfs/dir.c parisc: fix crash with signals and alloca net: w5100: check return value after calling platform_get_resource() * net: fix NULL pointer reference in cipso_v4_doi_free net/netlabel/netlabel_cipso_v4.c ath9k: fix sleeping in atomic context ath9k: fix OOB read ar9300_eeprom_restore_internal parport: remove non-zero check on count ASoC: rockchip: i2s: Fixup config for DAIFMT_DSP_A/B ASoC: rockchip: i2s: Fix regmap_ops hang usbip:vhci_hcd USB port can get stuck in the disabled state usbip: give back URBs for unsent unlink requests during cleanup usb: musb: musb_dsps: request_irq() after initializing musb * Revert "USB: xhci: fix U1/U2 handling for hardware with XHCI_INTEL_HOST quirk set" drivers/usb/host/xhci.c cifs: fix wrong release in sess_alloc_buffer() failed path mmc: core: Return correct emmc response in case of ioctl error selftests/bpf: Enlarge select() timeout for test_maps mmc: rtsx_pci: Fix long reads when clock is prescaled mmc: sdhci-of-arasan: Check return value of non-void funtions * of: Don't allow __of_attached_node_sysfs() without CONFIG_SYSFS drivers/of/kobj.c gfs2: Don't call dlm after protocol is unmounted staging: rts5208: Fix get_ms_information() heap buffer size rpc: fix gss_svc_init cleanup on failure * tcp: enable data-less, empty-cookie SYN with TFO_SERVER_COOKIE_NOT_REQD net/ipv4/tcp_fastopen.c serial: sh-sci: fix break handling for sysrq * Bluetooth: Fix handling of LE Enhanced Connection Complete net/bluetooth/hci_event.c ARM: tegra: tamonten: Fix UART pad setting gpu: drm: amd: amdgpu: amdgpu_i2c: fix possible uninitialized-variable access in amdgpu_i2c_router_select_ddc_port() * Bluetooth: avoid circular locks in sco_sock_connect net/bluetooth/sco.c * Bluetooth: schedule SCO timeouts with delayed_work net/bluetooth/sco.c net: ethernet: stmmac: Do not use unreachable() in ipq806x_gmac_probe() arm64: dts: qcom: sdm660: use reg value for memory node ARM: dts: imx53-ppd: Fix ACHC entry media: tegra-cec: Handle errors of clk_prepare_enable() media: TDA1997x: fix tda1997x_query_dv_timings() return value * media: v4l2-dv-timings.c: fix wrong condition in two for-loops drivers/media/v4l2-core/v4l2-dv-timings.c media: imx258: Limit the max analogue gain to 480 media: imx258: Rectify mismatch of VTS value ASoC: Intel: bytcr_rt5640: Move "Platform Clock" routes to the maps for the matching in-/output * bonding: 3ad: fix the concurrency between __bond_release_one() and bond_3ad_state_machine_handler() drivers/net/bonding/bond_main.c * Bluetooth: skip invalid hci_sync_conn_complete_evt net/bluetooth/hci_event.c ata: sata_dwc_460ex: No need to call phy_exit() befre phy_init() samples: bpf: Fix tracex7 error raised on the missing argument staging: ks7010: Fix the initialization of the 'sleep_status' structure serial: 8250_pci: make setup_port() parameters explicitly unsigned hvsi: don't panic on tty_register_driver failure xtensa: ISS: don't panic in rs_init * serial: 8250: Define RX trigger levels for OxSemi 950 devices include/uapi/linux/serial_reg.h s390/jump_label: print real address in a case of a jump label bug * flow_dissector: Fix out-of-bounds warnings net/core/flow_dissector.c * ipv4: ip_output.c: Fix out-of-bounds warning in ip_copy_addrs() net/ipv4/ip_output.c video: fbdev: riva: Error out if 'pixclock' equals zero video: fbdev: kyro: Error out if 'pixclock' equals zero video: fbdev: asiliantfb: Error out if 'pixclock' equals zero bpf/tests: Do not PASS tests without actually testing the result bpf/tests: Fix copy-and-paste error in double word test drm/amd/amdgpu: Update debugfs link_settings output link_rate field in hex tty: serial: jsm: hold port lock when reporting modem line changes staging: board: Fix uninitialized spinlock when attaching genpd * usb: gadget: composite: Allow bMaxPower=0 if self-powered drivers/usb/gadget/composite.c * usb: gadget: u_ether: fix a potential null pointer dereference drivers/usb/gadget/function/u_ether.c usb: host: fotg210: fix the actual_length of an iso packet usb: host: fotg210: fix the endpoint's transactional opportunities calculation * Smack: Fix wrong semantics in smk_access_entry() security/smack/smack_access.c * netlink: Deal with ESRCH error in nlmsg_notify() net/netlink/af_netlink.c video: fbdev: kyro: fix a DoS bug by restricting user input ARM: dts: qcom: apq8064: correct clock names iio: dac: ad5624r: Fix incorrect handling of an optional regulator. * tipc: keep the skb in rcv queue until the whole data is read net/tipc/socket.c * PCI: Use pci_update_current_state() in pci_enable_device_flags() drivers/pci/pci.c crypto: mxs-dcp - Use sg_mapping_iter to copy data media: dib8000: rewrite the init prbs logic userfaultfd: prevent concurrent API initialization MIPS: Malta: fix alignment of the devicetree buffer * f2fs: fix to unmap pages from userspace process in punch_hole() fs/f2fs/file.c * f2fs: fix to account missing .skipped_gc_rwsem fs/f2fs/gc.c fscache: Fix cookie key hashing platform/x86: dell-smbios-wmi: Add missing kfree in error-exit from run_smbios_call scsi: qedi: Fix error codes in qedi_alloc_global_queues() pinctrl: single: Fix error return code in pcs_parse_bits_in_pinctrl_entry() openrisc: don't printk() unconditionally powerpc/stacktrace: Include linux/delay.h * vfio: Use config not menuconfig for VFIO_NOIOMMU drivers/vfio/Kconfig pinctrl: samsung: Fix pinctrl bank pin count docs: Fix infiniband uverbs minor number RDMA/iwcm: Release resources if iw_cm module initialization fails * HID: input: do not report stylus battery state as "full" drivers/hid/hid-input.c PCI: aardvark: Fix masking and unmasking legacy INTx interrupts PCI: aardvark: Increase polling delay to 1.5s while waiting for PIO response PCI: xilinx-nwl: Enable the clock through CCF * PCI: Return ~0 data on pciconfig_read() CAP_SYS_ADMIN failure drivers/pci/syscall.c * PCI: Restrict ASMedia ASM1062 SATA Max Payload Size Supported drivers/pci/quirks.c ARM: 9105/1: atags_to_fdt: don't warn about stack size libata: add ATA_HORKAGE_NO_NCQ_TRIM for Samsung 860 and 870 SSDs media: rc-loopback: return number of emitters rather than error media: uvc: don't do DMA on stack VMCI: fix NULL pointer dereference when unmapping queue pair dm crypt: Avoid percpu_counter spinlock contention in crypt_page_alloc() power: supply: max17042: handle fails of reading status register block: bfq: fix bfq_set_next_ioprio_data() * crypto: public_key: fix overflow during implicit conversion include/crypto/public_key.h * arm64: head: avoid over-mapping in map_memory arch/arm64/include/asm/kernel-pgtable.h arch/arm64/kernel/head.S soc: aspeed: lpc-ctrl: Fix boundary check for mmap tools/thermal/tmon: Add cross compiling support * bpf: Fix pointer arithmetic mask tightening under state pruning include/linux/bpf_verifier.h kernel/bpf/verifier.c * bpf: verifier: Allocate idmap scratch in verifier env include/linux/bpf_verifier.h kernel/bpf/verifier.c * bpf: Fix leakage due to insufficient speculative store bypass mitigation include/linux/bpf_verifier.h kernel/bpf/verifier.c * bpf: Introduce BPF nospec instruction for mitigating Spectre v4 arch/arm64/net/bpf_jit_comp.c include/linux/filter.h kernel/bpf/core.c kernel/bpf/disasm.c selftests/bpf: fix tests due to const spill/fill * bpf: track spill/fill of constants kernel/bpf/verifier.c selftests/bpf: Test variable offset stack access * bpf: Sanity check max value for var_off stack access kernel/bpf/verifier.c * bpf: Reject indirect var_off stack access in unpriv mode kernel/bpf/verifier.c * bpf: Reject indirect var_off stack access in raw mode kernel/bpf/verifier.c * bpf: Support variable offset stack access from helpers kernel/bpf/verifier.c * bpf: correct slot_type marking logic to allow more stack slot sharing kernel/bpf/verifier.c * bpf/verifier: per-register parent pointers include/linux/bpf_verifier.h kernel/bpf/verifier.c 9p/xen: Fix end of loop tests for list_for_each_entry * include/linux/list.h: add a macro to test if entry is pointing to the head include/linux/list.h xen: fix setting of max_pfn in shared_info powerpc/perf/hv-gpci: Fix counter value parsing * PCI/MSI: Skip masking MSI-X on Xen PV drivers/pci/msi.c blk-zoned: allow BLKREPORTZONE without CAP_SYS_ADMIN blk-zoned: allow zone management send operations without CAP_SYS_ADMIN btrfs: reset replace target device to allocation state on close rtc: tps65910: Correct driver module alias clk: kirkwood: Fix a clocking boot regression backlight: pwm_bl: Improve bootloader/kernel device handover fbmem: don't allow too huge resolutions * IMA: remove the dependency on CRYPTO_MD5 security/integrity/ima/Kconfig IMA: remove -Wmissing-prototypes warning KVM: x86: Update vCPU's hv_clock before back to guest when tsc_offset is adjusted x86/resctrl: Fix a maybe-uninitialized build warning treated as error * tty: Fix data race between tiocsti() and flush_to_ldisc() drivers/tty/tty_io.c ubifs: report correct st_size for encrypted symlinks * f2fs: report correct st_size for encrypted symlinks fs/f2fs/namei.c * ext4: report correct st_size for encrypted symlinks fs/ext4/symlink.c * fscrypt: add fscrypt_symlink_getattr() for computing st_size fs/crypto/hooks.c * netns: protect netns ID lookups with RCU net/core/net_namespace.c * ipv4: fix endianness issue in inet_rtm_getroute_build_skb() net/ipv4/route.c net: qualcomm: fix QCA7000 checksum handling net: sched: Fix qdisc_rate_table refcount leak when get tcf_block failed * ipv4: make exception cache less predictible net/ipv4/route.c bcma: Fix memory leak for internally-handled cores ath6kl: wmi: fix an error code in ath6kl_wmi_sync_point() tty: serial: fsl_lpuart: fix the wrong mapbase value usb: bdc: Fix an error handling path in 'bdc_probe()' when no suitable DMA config is available usb: ehci-orion: Handle errors of clk_prepare_enable() in probe i2c: mt65xx: fix IRQ check CIFS: Fix a potencially linear read overflow mmc: moxart: Fix issue with uninitialized dma_slave_config mmc: dw_mmc: Fix issue with uninitialized dma_slave_config i2c: s3c2410: fix IRQ check i2c: iop3xx: fix deferred probing * Bluetooth: add timeout sanity check to hci_inquiry net/bluetooth/hci_core.c usb: gadget: mv_u3d: request_irq() after initializing UDC mac80211: Fix insufficient headroom issue for AMSDU usb: phy: tahvo: add IRQ check usb: host: ohci-tmio: add IRQ check * Bluetooth: Move shutdown callback before flushing tx and rx queue net/bluetooth/hci_core.c usb: phy: twl6030: add IRQ checks usb: phy: fsl-usb: add IRQ check usb: gadget: udc: at91: add IRQ check drm/msm/dsi: Fix some reference counted resource leaks * Bluetooth: fix repeated calls to sco_sock_kill net/bluetooth/sco.c arm64: dts: exynos: correct GIC CPU interfaces address range on Exynos7 drm/msm/dpu: make dpu_hw_ctl_clear_all_blendstages clear necessary LMs Bluetooth: increase BTNAMSIZ to 21 chars to fix potential buffer overflow soc: qcom: smsm: Fix missed interrupts if state changes while masked * PCI: PM: Enable PME if it can be signaled from D3cold drivers/pci/pci.c * PCI: PM: Avoid forcing PCI_D0 for wakeup reasons inconsistently drivers/pci/pci.c media: venus: venc: Fix potential null pointer dereference on pointer fmt media: em28xx-input: fix refcount bug in em28xx_usb_disconnect i2c: highlander: add IRQ check * net: cipso: fix warnings in netlbl_cipsov4_add_std net/netlabel/netlabel_cipso_v4.c * tcp: seq_file: Avoid skipping sk during tcp_seek_last_pos net/ipv4/tcp_ipv4.c * Bluetooth: sco: prevent information leak in sco_conn_defer_accept() net/bluetooth/sco.c media: go7007: remove redundant initialization media: dvb-usb: fix uninit-value in vp702x_read_mac_addr media: dvb-usb: fix uninit-value in dvb_usb_adapter_dvb_init * soc: rockchip: ROCKCHIP_GRF should not default to y, unconditionally drivers/soc/rockchip/Kconfig media: TDA1997x: enable EDID support spi: sprd: Fix the wrong WDG_LOAD_VAL * certs: Trigger creation of RSA module signing key if it's not an RSA key certs/Makefile crypto: qat - use proper type for vf_mask clocksource/drivers/sh_cmt: Fix wrong setting if don't request IRQ for clock source channel * lib/mpi: use kcalloc in mpi_resize lib/mpi/mpiutil.c spi: spi-pic32: Fix issue with uninitialized dma_slave_config spi: spi-fsl-dspi: Fix issue with uninitialized dma_slave_config m68k: emu: Fix invalid free in nfeth_cleanup() udf_get_extendedattr() had no boundary checks. * fcntl: fix potential deadlock for &fasync_struct.fa_lock fs/fcntl.c crypto: qat - do not export adf_iov_putmsg() crypto: qat - fix naming for init/shutdown VF to PF notifications crypto: qat - fix reuse of completion variable crypto: qat - handle both source of interrupt in VF ISR crypto: qat - do not ignore errors from enable_vf2pf_comms() libata: fix ata_host_start() s390/cio: add dev_busid sysfs entry for each subchannel * power: supply: max17042_battery: fix typo in MAx17042_TOFF include/linux/power/max17042_battery.h nvme-rdma: don't update queue count when failing to set io queues bcache: add proper error unwinding in bcache_device_init isofs: joliet: Fix iocharset=utf8 mount option udf: Check LVID earlier * hrtimer: Avoid double reprogramming in __hrtimer_start_range_ns() kernel/time/hrtimer.c * sched/deadline: Fix missing clock update in migrate_task_rq_dl() kernel/sched/deadline.c crypto: omap-sham - clear dma flags only after omap_sham_update_dma_stop() power: supply: axp288_fuel_gauge: Report register-address on readb / writeb errors * sched/deadline: Fix reset_on_fork reporting of DL tasks kernel/sched/deadline.c kernel/sched/sched.h crypto: mxs-dcp - Check for DMA mapping errors * regmap: fix the offset of register error log drivers/base/regmap/regmap.c * locking/mutex: Fix HANDOFF condition kernel/locking/mutex.c * PCI: Call Max Payload Size-related fixup quirks early drivers/pci/quirks.c x86/reboot: Limit Dell Optiplex 990 quirk to early BIOS versions usb: mtu3: fix the wrong HS mult value usb: mtu3: use @mult for HS isoc or intr usb: host: xhci-rcar: Don't reload firmware after the completion * ALSA: usb-audio: Add registration quirk for JBL Quantum 800 sound/usb/quirks.c Revert "btrfs: compression: don't try to compress if we don't have enough pages" * mm/page_alloc: speed up the iteration of max_order mm/page_alloc.c net: ll_temac: Remove left-over debug message powerpc/boot: Delete unneeded .globl _zimage_start powerpc/module64: Fix comment in R_PPC64_ENTRY handling crypto: talitos - reduce max key size for SEC1 * SUNRPC/nfs: Fix return value for nfs4_callback_compound() include/linux/sunrpc/svc.h * ipv4/icmp: l3mdev: Perform icmp error route lookup on source device routing table (v2) net/ipv4/icmp.c USB: serial: mos7720: improve OOM-handling in read_mos_reg() * igmp: Add ip_mc_list lock in ip_check_mc_rcu net/ipv4/igmp.c ARM: imx: fix missing 3rd argument in macro imx_mmdc_perf_init ARM: imx: add missing clk_disable_unprepare() media: stkwebcam: fix memory leak in stk_camera_probe * clk: fix build warning for orphan_list drivers/clk/clk.c * ALSA: pcm: fix divide error in snd_pcm_lib_ioctl sound/core/pcm_lib.c ARM: 8918/2: only build return_address() if needed * cryptoloop: add a deprecation warning drivers/block/Kconfig perf/x86/amd/ibs: Work around erratum #1197 perf/x86/intel/pt: Fix mask of num_address_ranges qede: Fix memset corruption net: macb: Add a NULL check on desc_ptp qed: Fix the VF msix vectors flow gpu: ipu-v3: Fix i.MX IPU-v3 offset calculations for (semi)planar U/V formats xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG * ext4: fix race writing to an inline_data file while its xattrs are changing fs/ext4/inline.c Merge 4.19.206 into android-4.19-stable Linux 4.19.206 * net: don't unconditionally copy_from_user a struct ifreq for socket ioctls include/linux/netdevice.h net/socket.c Revert "floppy: reintroduce O_NDELAY fix" KVM: x86/mmu: Treat NX as used (not reserved) for all !TDP shadow MMUs fbmem: add margin check to fb_check_caps() vt_kdsetmode: extend console locking net/rds: dma_map_sg is entitled to merge entries drm/nouveau/disp: power down unused DP links during init * drm: Copy drm_wait_vblank to user before returning drivers/gpu/drm/drm_ioc32.c qed: Fix null-pointer dereference in qed_rdma_create_qp() qed: qed ll2 race condition fixes vringh: Use wiov->used to check for read/write desc order virtio_pci: Support surprise removal of virtio pci device virtio: Improve vq->broken access to avoid any compiler optimization * opp: remove WARN when no valid OPPs remain drivers/opp/of.c usb: gadget: u_audio: fix race condition on endpoint stop net: hns3: fix get wrong pfc_en when query PFC configuration net: marvell: fix MVNETA_TX_IN_PRGRS bit number xgene-v2: Fix a resource leak in the error handling path of 'xge_probe()' ip_gre: add validation for csum_start e1000e: Fix the max snoop/no-snoop latency for 10M IB/hfi1: Fix possible null-pointer dereference in _extend_sdma_tx_descs() * usb: dwc3: gadget: Stop EP0 transfers during pullup disable drivers/usb/dwc3/gadget.c * usb: dwc3: gadget: Fix dwc3_calc_trbs_left() drivers/usb/dwc3/gadget.c USB: serial: option: add new VID/PID to support Fibocom FG150 Revert "USB: serial: ch341: fix character loss at high transfer rates" can: usb: esd_usb2: esd_usb2_rx_event(): fix the interchange of the CAN RX and TX error counters * once: Fix panic when module unload include/linux/once.h lib/once.c * netfilter: conntrack: collect all entries in one cycle net/netfilter/nf_conntrack_core.c ARC: Fix CONFIG_STACKDEPOT * bpf: Fix truncation handling for mod32 dst reg wrt zero kernel/bpf/verifier.c * bpf: Fix 32 bit src register truncation on div/mod include/linux/filter.h kernel/bpf/verifier.c * bpf: Do not use ax register in interpreter on div/mod kernel/bpf/core.c * net: qrtr: fix another OOB Read in qrtr_endpoint_post net/qrtr/qrtr.c Bug: 201722185 Change-Id: If1b537661fa4a5aaccbcfa264106a2e48b85ebe1 Signed-off-by: Wilson Sung <wilsonsung@google.com>
| * locking/mutex: Fix HANDOFF conditionPeter Zijlstra2021-09-221-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit 048661a1f963e9517630f080687d48af79ed784c ] Yanfei reported that setting HANDOFF should not depend on recomputing @first, only on @first state. Which would then give: if (ww_ctx || !first) first = __mutex_waiter_is_first(lock, &waiter); if (first) __mutex_set_flag(lock, MUTEX_FLAG_HANDOFF); But because 'ww_ctx || !first' is basically 'always' and the test for first is relatively cheap, omit that first branch entirely. Reported-by: Yanfei Xu <yanfei.xu@windriver.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Waiman Long <longman@redhat.com> Reviewed-by: Yanfei Xu <yanfei.xu@windriver.com> Link: https://lore.kernel.org/r/20210630154114.896786297@infradead.org Signed-off-by: Sasha Levin <sashal@kernel.org>
* | Merge android-4.19-stable (4.19.196) into android-msm-barbet-4.19-sc-ltsLucas Wei2021-08-034-11/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge 4.19.196 into android-4.19-stable Linux 4.19.196 i2c: robotfuzz-osif: fix control-request directions nilfs2: fix memory leak in nilfs_sysfs_delete_device_group pinctrl: stm32: fix the reported number of GPIO lines per bank net: ll_temac: Avoid ndo_start_xmit returning NETDEV_TX_BUSY PCI: Add AMD RS690 quirk to enable 64-bit DMA net: qed: Fix memcpy() overflow of qed_dcbx_params() KVM: selftests: Fix kvm_check_cap() assertion r8169: Avoid memcpy() over-reading of ETH_SS_STATS sh_eth: Avoid memcpy() over-reading of ETH_SS_STATS * r8152: Avoid memcpy() over-reading of ETH_SS_STATS drivers/net/usb/r8152.c * net/packet: annotate accesses to po->ifindex net/packet/af_packet.c * net/packet: annotate accesses to po->bind net/packet/af_packet.c net: caif: fix memory leak in ldisc_open * inet: annotate date races around sk->sk_txhash include/net/sock.h * ping: Check return value of function 'ping_queue_rcv_skb' net/ipv4/ping.c * net: ethtool: clear heap allocations for ethtool function net/core/ethtool.c mac80211: drop multicast fragments * cfg80211: call cfg80211_leave_ocb when switching away from OCB net/wireless/util.c mac80211: remove warning in ieee80211_get_sband() * Revert "PCI: PM: Do not read power state in pci_enable_device_flags()" drivers/pci/pci.c MIPS: generic: Update node names to avoid unit addresses * Makefile: Move -Wno-unused-but-set-variable out of GCC only block Makefile ARM: 9081/1: fix gcc-10 thumb2-kernel regression drm/radeon: wait for moving fence after pinning drm/nouveau: wait for moving fence after pinning v2 * module: limit enabling module.sig_enforce kernel/module.c x86/fpu: Reset state for all signal restore failures * usb: dwc3: core: fix kernel panic when do reboot drivers/usb/dwc3/core.c * usb: dwc3: debugfs: Add and remove endpoint dirs dynamically drivers/usb/dwc3/debug.h drivers/usb/dwc3/debugfs.c drivers/usb/dwc3/gadget.c * inet: use bigger hash table for IP ID generation net/ipv4/route.c can: bcm/raw/isotp: use per module netdevice notifier KVM: arm/arm64: Fix KVM_VGIC_V3_ADDR_TYPE_REDIST read tools headers UAPI: Sync linux/in.h copy with the kernel sources net: fec_ptp: add clock rate zero check * mm/slub.c: include swab.h mm/slub.c * mm/slub: clarify verification reporting mm/slub.c net: bridge: fix vlan tunnel dst refcnt when egressing * net: bridge: fix vlan tunnel dst null pointer dereference net/bridge/br_private.h * cfg80211: make certificate generation more robust net/wireless/Makefile dmaengine: pl330: fix wrong usage of spinlock flags in dma_cyclc ARCv2: save ABI registers across signal handling * PCI: Work around Huawei Intelligent NIC VF FLR erratum drivers/pci/quirks.c * PCI: Add ACS quirk for Broadcom BCM57414 NIC drivers/pci/quirks.c * PCI: Mark some NVIDIA GPUs to avoid bus reset drivers/pci/quirks.c * PCI: Mark TI C667X to avoid bus reset drivers/pci/quirks.c * tracing: Do no increment trace_clock_global() by one kernel/trace/trace_clock.c * tracing: Do not stop recording comms if the trace file is being read kernel/trace/trace.c * tracing: Do not stop recording cmdlines when tracing is off kernel/trace/trace.c * usb: core: hub: Disable autosuspend for Cypress CY7C65632 drivers/usb/core/hub.c can: mcba_usb: fix memory leak in mcba_usb can: bcm: fix infoleak in struct bcm_msg_head hwmon: (scpi-hwmon) shows the negative temperature properly radeon: use memcpy_to/fromio for UVD fw upload pinctrl: ralink: rt2880: avoid to error in calls is pin is already enabled ASoC: rt5659: Fix the lost powers for the HDA header net: ethernet: fix potential use-after-free in ec_bhf_remove * icmp: don't send out ICMP messages with a source address of 0.0.0.0 include/uapi/linux/in.h net/ipv4/icmp.c net: cdc_eem: fix tx fixup skb leak net: hamradio: fix memory leak in mkiss_close be2net: Fix an error handling path in 'be_probe()' * net/af_unix: fix a data-race in unix_dgram_sendmsg / unix_release_sock net/unix/af_unix.c * net: ipv4: fix memory leak in ip_mc_add1_src net/ipv4/igmp.c net: fec_ptp: fix issue caused by refactor the fec_devtype net: usb: fix possible use-after-free in smsc75xx_bind * net: cdc_ncm: switch to eth%d interface naming drivers/net/usb/cdc_ncm.c * ptp: improve max_adj check against unreasonable values drivers/ptp/ptp_clock.c include/linux/ptp_clock_kernel.h * ptp: ptp_clock: Publish scaled_ppm_to_ppb drivers/ptp/ptp_clock.c include/linux/ptp_clock_kernel.h * net: qrtr: fix OOB Read in qrtr_endpoint_post net/qrtr/qrtr.c netxen_nic: Fix an error handling path in 'netxen_nic_probe()' qlcnic: Fix an error handling path in 'qlcnic_probe()' * net: make get_net_ns return error if NET_NS is disabled include/linux/socket.h include/net/net_namespace.h net/core/net_namespace.c net/socket.c * net: add documentation to socket.c include/linux/net.h include/linux/socket.h net/socket.c net: stmmac: dwmac1000: Fix extended MAC address registers definition alx: Fix an error handling path in 'alx_probe()' sch_cake: Fix out of bounds when parsing TCP options and header netfilter: synproxy: Fix out of bounds when parsing TCP options net/mlx5e: Block offload of outer header csum for UDP tunnels net/mlx5e: Remove dependency in IPsec initialization flows * rtnetlink: Fix regression in bridge VLAN configuration net/core/rtnetlink.c * udp: fix race between close() and udp_abort() net/ipv4/udp.c net/ipv6/udp.c net: rds: fix memory leak in rds_recvmsg * net: ipv4: fix memory leak in netlbl_cipsov4_add_std net/ipv4/cipso_ipv4.c batman-adv: Avoid WARN_ON timing related checks mm/memory-failure: make sure wait for page writeback in memory_failure afs: Fix an IS_ERR() vs NULL check dmaengine: stedma40: add missing iounmap() on error in d40_probe() * dmaengine: QCOM_HIDMA_MGMT depends on HAS_IOMEM drivers/dma/qcom/Kconfig * dmaengine: ALTERA_MSGDMA depends on HAS_IOMEM drivers/dma/Kconfig * fib: Return the correct errno code net/core/fib_rules.c * net: Return the correct errno code net/compat.c net/x25: Return the correct errno code * rtnetlink: Fix missing error code in rtnl_bridge_notify() net/core/rtnetlink.c * net: ipconfig: Don't override command-line hostnames or domains net/ipv4/ipconfig.c nvme-loop: check for NVME_LOOP_Q_LIVE in nvme_loop_destroy_admin_queue() nvme-loop: clear NVME_LOOP_Q_LIVE when nvme_loop_configure_admin_queue() fails nvme-loop: reset queue count to 1 in nvme_loop_destroy_io_queues() * scsi: scsi_devinfo: Add blacklist entry for HPE OPEN-V drivers/scsi/scsi_devinfo.c ethernet: myri10ge: Fix missing error code in myri10ge_probe() scsi: target: core: Fix warning on realtime kernels gfs2: Fix use-after-free in gfs2_glock_shrink_scan HID: gt683r: add missing MODULE_DEVICE_TABLE gfs2: Prevent direct-I/O write fallback errors from getting lost ARM: OMAP2+: Fix build warning when mmc_omap is not built * HID: usbhid: fix info leak in hid_submit_ctrl drivers/hid/usbhid/hid-core.c include/linux/hid.h * HID: Add BUS_VIRTUAL to hid_connect logging drivers/hid/hid-core.c HID: hid-sensor-hub: Return error for hid_set_field() failure * HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for Saitek X65 drivers/hid/hid-ids.h drivers/hid/hid-quirks.c net: ieee802154: fix null deref in parse dev addr * FROMGIT: bpf: Do not change gso_size during bpf_skb_change_proto() net/core/filter.c ANDROID: gki_config: disable per-cgroup pressure tracking * BACKPORT: cgroup: make per-cgroup pressure stall tracking configurable include/linux/cgroup-defs.h include/linux/cgroup.h kernel/cgroup/cgroup.c kernel/sched/psi.c * ANDROID: selinux: modify RTM_GETNEIGH{TBL} security/selinux/include/classmap.h security/selinux/include/security.h security/selinux/nlmsgtab.c security/selinux/ss/policydb.c security/selinux/ss/policydb.h security/selinux/ss/services.c BACKPORT: x86, lto: Pass -stack-alignment only on LLD < 13.0.0 * ANDROID: Add CONFIG_LLD_VERSION init/Kconfig scripts/lld-version.sh ANDROID: GKI: Update the ABI XML ANDROID: GKI: Update the symbol list * Revert "perf/core: Fix endless multiplex timer" kernel/events/core.c Merge 4.19.195 into android-4.19-stable Linux 4.19.195 * proc: only require mm_struct for writing fs/proc/base.c * tracing: Correct the length check which causes memory corruption kernel/trace/trace.c ftrace: Do not blindly read the ip address in ftrace_bug() * scsi: core: Only put parent device if host state differs from SHOST_CREATED drivers/scsi/hosts.c * scsi: core: Put .shost_dev in failure path if host state changes to RUNNING drivers/scsi/hosts.c * scsi: core: Fix error handling of scsi_host_alloc() drivers/scsi/hosts.c NFSv4: nfs4_proc_set_acl needs to restore NFS_CAP_UIDGID_NOMAP on error. NFSv4: Fix second deadlock in nfs4_evict_inode() NFS: Fix use-after-free in nfs4_init_client() * kvm: fix previous commit for 32-bit builds include/linux/kvm_host.h perf session: Correct buffer copying when peeking events NFSv4: Fix deadlock between nfs4_evict_inode() and nfs4_opendata_get_inode() NFS: Fix a potential NULL dereference in nfs_get_client() IB/mlx5: Fix initializing CQ fragments buffer * sched/fair: Make sure to update tg contrib for blocked load kernel/sched/fair.c * perf: Fix data race between pin_count increment/decrement kernel/events/core.c * vmlinux.lds.h: Avoid orphan section with !SMP include/asm-generic/vmlinux.lds.h * RDMA/mlx4: Do not map the core_clock page to user space unless enabled include/linux/mlx4/device.h regulator: max77620: Use device_set_of_node_from_dev() * regulator: core: resolve supply for boot-on/always-on regulators drivers/regulator/core.c * usb: fix various gadget panics on 10gbps cabling drivers/usb/gadget/config.c * usb: fix various gadgets null ptr deref on 10gbps cabling. drivers/usb/gadget/function/f_hid.c usb: gadget: eem: fix wrong eem header operation USB: serial: cp210x: fix alternate function for CP2102N QFN20 USB: serial: quatech2: fix control-request directions USB: serial: omninet: add device id for Zyxel Omni 56K Plus USB: serial: ftdi_sio: add NovaTech OrionMX product ID * usb: gadget: f_fs: Ensure io_completion_wq is idle during unbind drivers/usb/gadget/function/f_fs.c usb: typec: ucsi: Clear PPM capability data in ucsi_init() error path * usb: dwc3: ep0: fix NULL pointer exception drivers/usb/dwc3/ep0.c * usb: pd: Set PD_T_SINK_WAIT_CAP to 310ms include/linux/usb/pd.h * usb: f_ncm: only first packet of aggregate needs to start timer drivers/usb/gadget/function/f_ncm.c * USB: f_ncm: ncm_bitrate (speed) is unsigned drivers/usb/gadget/function/f_ncm.c * cgroup1: don't allow '\n' in renaming kernel/cgroup/cgroup-v1.c btrfs: return value from btrfs_mark_extent_written() in case of error staging: rtl8723bs: Fix uninitialized variables * kvm: avoid speculation-based attacks from out-of-range memslot accesses include/linux/kvm_host.h * drm: Lock pointer access in drm_master_release() drivers/gpu/drm/drm_auth.c * drm: Fix use-after-free read in drm_getunique() drivers/gpu/drm/drm_ioctl.c ARM: dts: imx6q-dhcom: Add PU,VDD1P1,VDD2P5 regulators ARM: dts: imx6qdl-sabresd: Assign corresponding power supply for LDOs i2c: mpc: implement erratum A-004447 workaround i2c: mpc: Make use of i2c_recover_bus() powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P1010 i2c controllers powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P2041 i2c controllers bnx2x: Fix missing error code in bnx2x_iov_init_one() MIPS: Fix kernel hang under FUNCTION_GRAPH_TRACER and PREEMPT_TRACER nvme-fabrics: decode host pathing error for connect net: appletalk: cops: Fix data race in cops_probe1 net: macb: ensure the device is available before accessing GEMGXL control registers scsi: target: qla2xxx: Wait for stop_phase1 at WWN removal scsi: vmw_pvscsi: Set correct residual data length scsi: bnx2fc: Return failure if io_req is already in ABTS processing RDS tcp loopback connection can hang net/qla3xxx: fix schedule while atomic in ql_sem_spinlock * wq: handle VM suspension in stall detection kernel/workqueue.c * cgroup: disable controllers at parse time kernel/cgroup/cgroup.c * net: mdiobus: get rid of a BUG_ON() drivers/net/phy/mdio_bus.c * netlink: disable IRQs for netlink_lock_table() net/netlink/af_netlink.c * bonding: init notify_work earlier to avoid uninitialized use drivers/net/bonding/bond_main.c isdn: mISDN: netjet: Fix crash in nj_probe: ASoC: sti-sas: add missing MODULE_DEVICE_TABLE ASoC: Intel: bytcr_rt5640: Add quirk for the Lenovo Miix 3-830 tablet ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet net/nfc/rawsock.c: fix a permission check bug * proc: Track /proc/$pid/attr/ opener mm_struct fs/proc/base.c * perf/core: Fix endless multiplex timer kernel/events/core.c * Revert "perf/cgroups: Don't rotate events for cgroups unnecessarily" include/linux/perf_event.h kernel/events/core.c * Revert "perf/core: Fix corner case in perf_rotate_context()" kernel/events/core.c Merge 4.19.194 into android-4.19-stable Linux 4.19.194 xen-pciback: redo VF placement in the virtual topology * sched/fair: Optimize select_idle_cpu kernel/sched/fair.c ACPI: EC: Look for ECDT EC after calling acpi_load_tables() ACPI: probe ECDT before loading AML tables regardless of module-level code flag KVM: arm64: Fix debug register indexing KVM: SVM: Truncate GPR value for DR and CR accesses in !64-bit mode btrfs: fix unmountable seed device after fstrim * perf/core: Fix corner case in perf_rotate_context() kernel/events/core.c * perf/cgroups: Don't rotate events for cgroups unnecessarily include/linux/perf_event.h kernel/events/core.c bnxt_en: Remove the setting of dev_port. selftests/bpf: Avoid running unprivileged tests with alignment requirements selftests/bpf: add "any alignment" annotation for some tests bpf: Apply F_NEEDS_EFFICIENT_UNALIGNED_ACCESS to more ACCEPT test cases. bpf: Make more use of 'any' alignment in test_verifier.c bpf: Adjust F_NEEDS_EFFICIENT_UNALIGNED_ACCESS handling in test_verifier.c * bpf: Add BPF_F_ANY_ALIGNMENT. include/uapi/linux/bpf.h kernel/bpf/syscall.c kernel/bpf/verifier.c selftests/bpf: Generalize dummy program types bpf: test make sure to run unpriv test cases in test_verifier bpf: fix test suite to enable all unpriv program types mm, hugetlb: fix simple resv_huge_pages underflow on UFFDIO_COPY btrfs: fixup error handling in fixup_inode_link_counts btrfs: return errors from btrfs_del_csums in cleanup_ref_head btrfs: fix error handling in btrfs_del_csums btrfs: mark ordered extent and inode with error if we fail to finish x86/apic: Mark _all_ legacy interrupts when IO/APIC is missing nfc: fix NULL ptr dereference in llcp_sock_getname() after failed connect ocfs2: fix data corruption by fallocate * pid: take a reference when initializing `cad_pid` init/main.c usb: dwc2: Fix build in periphal-only mode * ext4: fix bug on in ext4_es_cache_extent as ext4_split_extent_at failed fs/ext4/extents.c ALSA: hda: Fix for mute key LED for HP Pavilion 15-CK0xx * ALSA: timer: Fix master timer notification sound/core/timer.c * HID: multitouch: require Finger field to mark Win8 reports as MT drivers/hid/hid-multitouch.c net: caif: fix memory leak in cfusbl_device_notify net: caif: fix memory leak in caif_device_notify * net: caif: add proper error handling include/net/caif/caif_dev.h include/net/caif/cfcnfg.h * net: caif: added cfserl_release function include/net/caif/cfserl.h * Bluetooth: use correct lock to prevent UAF of hdev object net/bluetooth/hci_sock.c * Bluetooth: fix the erroneous flush_work() order net/bluetooth/hci_core.c * tipc: fix unique bearer names sanity check net/tipc/bearer.c * tipc: add extack messages for bearer/media failure net/tipc/bearer.c ixgbevf: add correct exception tracing for XDP ieee802154: fix error return code in ieee802154_llsec_getparams() ieee802154: fix error return code in ieee802154_add_iface() netfilter: nfnetlink_cthelper: hit EBUSY on updates if size mismatches HID: i2c-hid: fix format string mismatch HID: pidff: fix error return code in hid_pidff_init() ipvs: ignore IP_VS_SVC_F_HASHED flag when adding service vfio/platform: fix module_put call in error flow samples: vfio-mdev: fix error handing in mdpy_fb_probe() * vfio/pci: zap_vma_ptes() needs MMU drivers/vfio/pci/Kconfig vfio/pci: Fix error return code in vfio_ecap_init() efi: cper: fix snprintf() use in cper_dimm_err_location() efi: Allow EFI_MEMORY_XP and EFI_MEMORY_RO both to be cleared * nl80211: validate key indexes for cfg80211_registered_device net/wireless/core.h net/wireless/nl80211.c net/wireless/util.c * ALSA: usb: update old-style static const declaration sound/usb/mixer_quirks.c * net: usb: cdc_ncm: don't spew notifications drivers/net/usb/cdc_ncm.c include/linux/usb/usbnet.h Merge 4.19.193 into android-4.19-stable Linux 4.19.193 * usb: core: reduce power-on-good delay time of root hub drivers/usb/core/hub.h net: hns3: check the return of skb_checksum_help() drivers/net/ethernet: clean up unused assignments * hugetlbfs: hugetlb_fault_mutex_hash() cleanup include/linux/hugetlb.h MIPS: ralink: export rt_sysc_membase for rt2880_wdt.c MIPS: alchemy: xxs1500: add gpio-au1000.h header file sch_dsmark: fix a NULL deref in qdisc_reset() * ipv6: record frag_max_size in atomic fragments in input path net/ipv6/reassembly.c scsi: libsas: Use _safe() loop in sas_resume_port() ixgbe: fix large MTU request from VF * bpf: Set mac_len in bpf_skb_change_head net/core/filter.c ASoC: cs35l33: fix an error code in probe() staging: emxx_udc: fix loop in _nbu2ss_nuke() * mld: fix panic in mld_newpack() net/ipv6/mcast.c net: bnx2: Fix error return code in bnx2_init_board() openvswitch: meter: fix race when getting now_ms. net: mdio: octeon: Fix some double free issues net: mdio: thunder: Fix a double free issue in the .remove function net: fec: fix the potential memory leak in fec_enet_init() net: dsa: fix error code getting shifted with 4 in dsa_slave_get_sset_count net: netcp: Fix an error message drm/amdgpu: Fix a use-after-free drm/amd/amdgpu: fix refcount leak drm/amd/display: Disconnect non-DP with no EDID SMB3: incorrect file id in requests compounded with open platform/x86: intel_punit_ipc: Append MODULE_DEVICE_TABLE for ACPI platform/x86: hp-wireless: add AMD's hardware id to the supported list btrfs: do not BUG_ON in link_to_fixup_dir openrisc: Define memory barrier mb scsi: BusLogic: Fix 64-bit system enumeration error for Buslogic media: gspca: properly check for errors in po1030_probe() media: dvb: Add check on sp8870_readreg return ASoC: cs43130: handle errors in cs43130_probe() properly libertas: register sysfs groups properly dmaengine: qcom_hidma: comment platform_driver_register call isdn: mISDNinfineon: check/cleanup ioremap failure correctly in setup_io char: hpet: add checks after calling ioremap net: caif: remove BUG_ON(dev == NULL) in caif_xmit net: fujitsu: fix potential null-ptr-deref serial: max310x: unregister uart driver in case of failure and abort platform/x86: hp_accel: Avoid invoking _INI to speed up resume perf jevents: Fix getting maximum number of fds i2c: i801: Don't generate an interrupt on bus reset i2c: s3c2410: fix possible NULL pointer deref on read message after write net: dsa: fix a crash if ->get_sset_count() fails net: dsa: mt7530: fix VLAN traffic leaks * tipc: skb_linearize the head skb when reassembling msgs net/tipc/msg.c * Revert "net:tipc: Fix a double free in tipc_sk_mcast_rcv" net/tipc/socket.c net/mlx4: Fix EEPROM dump support drm/meson: fix shutdown crash when component not probed NFSv4: Fix v4.0/v4.1 SEEK_DATA return -ENOTSUPP when set NFS_V4_2 config NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce() NFS: fix an incorrect limit in filelayout_decode_layout() Bluetooth: cmtp: fix file refcount when cmtp_attach_device fails spi: mt7621: Don't leak SPI master in probe error path spi: mt7621: Disable clock in probe error path spi: gpio: Don't leak SPI master in probe error path * bpf: No need to simulate speculative domain for immediates kernel/bpf/verifier.c * bpf: Fix mask direction swap upon off reg sign change kernel/bpf/verifier.c * bpf: Wrap aux data inside bpf_sanitize_info container kernel/bpf/verifier.c * bpf: Fix leakage of uninitialized bpf stack under speculation include/linux/bpf_verifier.h kernel/bpf/verifier.c bpf: Update selftests to reflect new error states * bpf: Tighten speculative pointer arithmetic mask kernel/bpf/verifier.c * bpf: Move sanitize_val_alu out of op switch kernel/bpf/verifier.c * bpf: Refactor and streamline bounds check into helper kernel/bpf/verifier.c * bpf: Improve verifier error messages for users kernel/bpf/verifier.c * bpf: Rework ptr_limit into alu_limit and add common error path kernel/bpf/verifier.c * bpf: Ensure off_reg has no mixed signed bounds for all types kernel/bpf/verifier.c * bpf: Move off_reg into sanitize_ptr_alu kernel/bpf/verifier.c bpf, test_verifier: switch bpf_get_stack's 0 s> r8 test bpf: Test_verifier, bpf_get_stack return value add <0 * bpf: extend is_branch_taken to registers kernel/bpf/verifier.c selftests/bpf: add selftest part of "bpf: improve verifier branch analysis" selftests/bpf: Test narrow loads with off > 0 in test_verifier bpf, selftests: Fix up some test_verifier cases for unprivileged bpf: fix up selftests after backports were fixed net: usb: fix memory leak in smsc75xx_bind usb: gadget: udc: renesas_usb3: Fix a race in usb3_start_pipen() * usb: dwc3: gadget: Properly track pending and queued SG drivers/usb/dwc3/gadget.c USB: serial: pl2303: add device id for ADLINK ND-6530 GC USB: serial: ftdi_sio: add IDs for IDS GmbH Products USB: serial: option: add Telit LE910-S1 compositions 0x7010, 0x7011 USB: serial: ti_usb_3410_5052: add startech.com device id serial: rp2: use 'request_firmware' instead of 'request_firmware_nowait' serial: sh-sci: Fix off-by-one error in FIFO threshold register setting * USB: usbfs: Don't WARN about excessively large memory allocations drivers/usb/core/devio.c USB: trancevibrator: fix control-request direction iio: adc: ad7793: Add missing error code in ad7793_setup() staging: iio: cdc: ad7746: avoid overwrite of num_channels mei: request autosuspend after sending rx flow control thunderbolt: dma_port: Fix NVM read buffer bounds and offset issue misc/uss720: fix memory leak in uss720_probe kgdb: fix gcc-11 warnings harder * dm snapshot: properly fix a crash when an origin has no snapshots drivers/md/dm-snap.c ath10k: Validate first subframe of A-MSDU before processing the list mac80211: extend protection against mixed key and fragment cache attacks mac80211: do not accept/forward invalid EAPOL frames mac80211: prevent attacks on TKIP/WEP as well mac80211: check defrag PN against current frame mac80211: add fragment cache to sta_info mac80211: drop A-MSDUs on old ciphers * cfg80211: mitigate A-MSDU aggregation attacks net/wireless/util.c * mac80211: properly handle A-MSDUs that start with an RFC 1042 header include/net/cfg80211.h net/wireless/util.c mac80211: prevent mixed key and fragment cache attacks mac80211: assure all fragments are encrypted net: hso: fix control-request directions * proc: Check /proc/$pid/attr/ writes against file opener fs/proc/base.c perf intel-pt: Fix transaction abort handling perf intel-pt: Fix sample instruction bytes iommu/vt-d: Fix sysfs leak in alloc_iommu() NFSv4: Fix a NULL pointer dereference in pnfs_mark_matching_lsegs_return() cifs: set server->cipher_type to AES-128-CCM for SMB3.0 * NFC: nci: fix memory leak in nci_allocate_device include/net/nfc/nci_core.h * usb: dwc3: gadget: Enable suspend events drivers/usb/dwc3/gadget.c * mm, vmstat: drop zone->lock in /proc/pagetypeinfo mm/vmstat.c Merge 4.19.192 into android-4.19-stable * Revert "spi: Fix use-after-free with devm_spi_alloc_*" drivers/spi/spi.c include/linux/spi/spi.h * Revert "modules: inherit TAINT_PROPRIETARY_MODULE" include/linux/module.h kernel/module.c Linux 4.19.192 * Bluetooth: SMP: Fail if remote and local public keys are identical net/bluetooth/smp.c video: hgafb: correctly handle card detect failure during probe tty: vt: always invoke vc->vc_sw->con_resize callback * vt: Fix character height handling with VT_RESIZEX include/linux/console_struct.h vgacon: Record video mode changes with VT_RESIZEX video: hgafb: fix potential NULL pointer dereference qlcnic: Add null check after calling netdev_alloc_skb leds: lp5523: check return value of lp5xx_read and jump to cleanup code net: rtlwifi: properly check for alloc_workqueue() failure scsi: ufs: handle cleanup correctly on devm_reset_control_get error net: stmicro: handle clk_prepare() failure during init ethernet: sun: niu: fix missing checks of niu_pci_eeprom_read() Revert "niu: fix missing checks of niu_pci_eeprom_read" Revert "qlcnic: Avoid potential NULL pointer dereference" Revert "rtlwifi: fix a potential NULL pointer dereference" Revert "media: rcar_drif: fix a memory disclosure" cdrom: gdrom: initialize global variable at init time cdrom: gdrom: deallocate struct gdrom_unit fields in remove_gdrom Revert "gdrom: fix a memory leak bug" Revert "scsi: ufs: fix a missing check of devm_reset_control_get" * Revert "ecryptfs: replace BUG_ON with error handling code" fs/ecryptfs/crypto.c Revert "video: imsttfb: fix potential NULL pointer dereferences" Revert "hwmon: (lm80) fix a missing check of bus read in lm80 probe" Revert "leds: lp5523: fix a missing check of return value of lp55xx_read" Revert "net: stmicro: fix a missing check of clk_prepare" Revert "video: hgafb: fix potential NULL pointer dereference" * dm snapshot: fix crash with transient storage and zero chunk size drivers/md/dm-snap.c xen-pciback: reconfigure also from backend watch handler Revert "serial: mvebu-uart: Fix to avoid a potential NULL pointer dereference" rapidio: handle create_workqueue() failure Revert "rapidio: fix a NULL pointer dereference when create_workqueue() fails" ALSA: hda/realtek: Add some CLOVE SSIDs of ALC293 ALSA: hda/realtek: reset eapd coeff to default value for alc287 Revert "ALSA: sb8: add a check for request_region" * ALSA: bebob/oxfw: fix Kconfig entry for Mackie d.2 Pro sound/firewire/Kconfig * ALSA: usb-audio: Validate MS endpoint descriptors sound/usb/midi.c ALSA: dice: fix stream format at middle sampling rate for Alesis iO 26 ALSA: line6: Fix racy initialization of LINE6 MIDI ALSA: dice: fix stream format for TC Electronic Konnekt Live at high sampling transfer frequency cifs: fix memory leak in smb2_copychunk_range * locking/mutex: clear MUTEX_FLAGS if wait_list is empty due to signal kernel/locking/mutex.c kernel/locking/mutex.h nvmet: seset ns->file when open fails * ptrace: make ptrace() fail if the tracee changed its pid unexpectedly kernel/ptrace.c platform/x86: dell-smbios-wmi: Fix oops on rmmod dell_smbios RDMA/mlx5: Recover from fatal event in dual port mode scsi: qla2xxx: Fix error return code in qla82xx_write_flash_dword() RDMA/rxe: Clear all QP fields if creation failed openrisc: Fix a memory leak firmware: arm_scpi: Prevent the ternary sign expansion bug Bug: 192919066 Change-Id: Ib6428dd7e4a5e7ec60bf27de1e99461d771748ac Signed-off-by: Lucas Wei <lucaswei@google.com>
| * locking/mutex: clear MUTEX_FLAGS if wait_list is empty due to signalZqiang2021-05-264-11/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit 3a010c493271f04578b133de977e0e5dd2848cea ] When a interruptible mutex locker is interrupted by a signal without acquiring this lock and removed from the wait queue. if the mutex isn't contended enough to have a waiter put into the wait queue again, the setting of the WAITER bit will force mutex locker to go into the slowpath to acquire the lock every time, so if the wait queue is empty, the WAITER bit need to be clear. Fixes: 040a0a371005 ("mutex: Add support for wound/wait style locks") Suggested-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Zqiang <qiang.zhang@windriver.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20210517034005.30828-1-qiang.zhang@windriver.com Signed-off-by: Sasha Levin <sashal@kernel.org>
* | Merge android-4.19-stable (4.19.189) into android-msm-pixel-4.19-ltsLucas Wei2021-05-193-15/+20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge 4.19.189 into android-4.19-stable Linux 4.19.189 USB: CDC-ACM: fix poison/unpoison imbalance net: hso: fix NULL-deref on disconnect regression x86/crash: Fix crash_setup_memmap_entries() out-of-bounds access ia64: tools: remove duplicate definition of ia64_mf() on ia64 ia64: fix discontig.c section mismatches cavium/liquidio: Fix duplicate argument xen-netback: Check for hotplug-status existence before watching s390/entry: save the caller of psw_idle net: geneve: check skb is large enough for IPv4/IPv6 header ARM: dts: Fix swapped mmc order for omap3 HID: wacom: Assign boolean values to a bool variable HID: alps: fix error return code in alps_input_configured() * HID: google: add don USB id drivers/hid/hid-ids.h perf/x86/intel/uncore: Remove uncore extra PCI dev HSWEP_PCI_PCU_3 * locking/qrwlock: Fix ordering in queued_write_lock_slowpath() kernel/locking/qrwlock.c pinctrl: lewisburg: Update number of pins in community * gup: document and work around "COW can break either way" issue mm/gup.c * net: phy: marvell: fix detection of PHY on Topaz switches include/linux/marvell_phy.h ARM: 9071/1: uprobes: Don't hook on thumb instructions ARM: footbridge: fix PCI interrupt mapping ibmvnic: remove duplicate napi_schedule call in open function ibmvnic: remove duplicate napi_schedule call in do_reset function ibmvnic: avoid calling napi_disable() twice i40e: fix the panic when running bpf in xdpdrv mode * net: ip6_tunnel: Unregister catch-all devices net/ipv6/ip6_tunnel.c * net: sit: Unregister catch-all devices net/ipv6/sit.c net: davicom: Fix regulator not turned off on failed probe netfilter: nft_limit: avoid possible divide error in nft_limit_init * netfilter: conntrack: do not print icmpv6 as unknown via /proc net/netfilter/nf_conntrack_standalone.c scsi: libsas: Reset num_scatter if libata marks qc as NODATA * arm64: alternatives: Move length validation in alternative_{insn, endif} arch/arm64/include/asm/alternative.h * arm64: fix inline asm in load_unaligned_zeropad() arch/arm64/include/asm/word-at-a-time.h * readdir: make sure to verify directory entry for legacy interfaces too fs/readdir.c * dm verity fec: fix misaligned RS roots IO drivers/md/dm-verity-fec.c drivers/md/dm-verity-fec.h HID: wacom: set EV_KEY and EV_ABS only for non-HID_GENERIC type of devices Input: i8042 - fix Pegatron C15B ID entry Input: s6sy761 - fix coordinate read bit shift mac80211: clear sta->fast_rx when STA removed from 4-addr VLAN pcnet32: Use pci_resource_len to validate PCI resource net: ieee802154: forbid monitor for add llsec seclevel net: ieee802154: stop dump llsec seclevels for monitors net: ieee802154: forbid monitor for add llsec devkey net: ieee802154: stop dump llsec devkeys for monitors net: ieee802154: forbid monitor for add llsec dev net: ieee802154: stop dump llsec devs for monitors net: ieee802154: stop dump llsec keys for monitors scsi: scsi_transport_srp: Don't block target in SRP_PORT_LOST state ASoC: fsl_esai: Fix TDM slot setup for I2S mode drm/msm: Fix a5xx/a6xx timestamps ARM: keystone: fix integer overflow warning * neighbour: Disregard DEAD dst in neigh_update net/core/neighbour.c arc: kernel: Return -EFAULT if copy_to_user() fails lockdep: Add a missing initialization hint to the "INFO: Trying to register non-static key" message ARM: dts: Fix moving mmc devices with aliases for omap4 & 5 ARM: dts: Drop duplicate sha2md5_fck to fix clk_disable race * dmaengine: dw: Make it dependent to HAS_IOMEM drivers/dma/dw/Kconfig * gpio: sysfs: Obey valid_mask drivers/gpio/gpiolib-sysfs.c Input: nspire-keypad - enable interrupts only when opened * net/sctp: fix race condition in sctp_destroy_sock net/sctp/socket.c ANDROID: GKI: update allowed list for incrementalfs.ko * ANDROID: fs-verity: Export function to check signatures fs/verity/signature.c include/linux/fsverity.h * UPSTREAM: fs-verity: move structs needed for file signing to UAPI header fs/verity/fsverity_private.h include/uapi/linux/fsverity.h * UPSTREAM: fs-verity: rename "file measurement" to "file digest" fs/verity/enable.c fs/verity/fsverity_private.h fs/verity/measure.c fs/verity/open.c fs/verity/signature.c * UPSTREAM: fs-verity: rename fsverity_signed_digest to fsverity_formatted_digest fs/verity/fsverity_private.h fs/verity/signature.c * UPSTREAM: fs-verity: remove filenames from file comments fs/verity/enable.c fs/verity/hash_algs.c fs/verity/init.c fs/verity/measure.c fs/verity/open.c fs/verity/signature.c fs/verity/verify.c ANDROID: clang: update to 12.0.5 Merge 4.19.188 into android-4.19-stable Linux 4.19.188 xen/events: fix setting irq affinity perf map: Tighten snprintf() string precision to pass gcc check on some 32-bit arches * driver core: Fix locking bug in deferred_probe_timeout_work_func() drivers/base/dd.c * netfilter: x_tables: fix compat match/target pad out-of-bound write net/ipv4/netfilter/arp_tables.c net/ipv4/netfilter/ip_tables.c net/ipv6/netfilter/ip6_tables.c net/netfilter/x_tables.c * staging: m57621-mmc: delete driver from the tree. drivers/staging/Kconfig drivers/staging/Makefile net: phy: broadcom: Only advertise EEE for supported modes riscv,entry: fix misaligned base for excp_vect_table * block: only update parent bi_status when bio fail block/bio.c drm/tegra: dc: Don't set PLL clock to 0Hz gfs2: report "already frozen/thawed" errors drm/imx: imx-ldb: fix out of bounds array access warning * KVM: arm64: Disable guest access to trace filter controls arch/arm64/include/asm/kvm_arm.h * KVM: arm64: Hide system instruction access to Trace registers arch/arm64/kernel/cpufeature.c * Revert "net: xfrm: Localize sequence counter per network namespace" include/net/netns/xfrm.h net/xfrm/xfrm_state.c Merge 4.19.187 into android-4.19-stable * ANDROID: Incremental fs: Set credentials before reading/writing fs/incfs/data_mgmt.c fs/incfs/format.c fs/incfs/format.h fs/incfs/main.c fs/incfs/vfs.c Linux 4.19.187 Revert "cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath." net: ieee802154: stop dump llsec params for monitors net: ieee802154: forbid monitor for del llsec seclevel net: ieee802154: forbid monitor for set llsec params net: ieee802154: fix nl802154 del llsec devkey net: ieee802154: fix nl802154 add llsec key net: ieee802154: fix nl802154 del llsec dev net: ieee802154: fix nl802154 del llsec key net: ieee802154: nl-mac: fix check on panid net: mac802154: Fix general protection fault drivers: net: fix memory leak in peak_usb_create_dev drivers: net: fix memory leak in atusb_probe * net: tun: set tun->dev->addr_len during TUNSETLINK processing drivers/net/tun.c * cfg80211: remove WARN_ON() in cfg80211_sme_connect net/wireless/sme.c * net: sched: bump refcount for new action in ACT replace mode net/sched/act_api.c clk: socfpga: fix iomem pointer cast on 64-bit RDMA/cxgb4: check for ipv6 address properly while destroying listener * net/mlx5: Fix PBMC register mapping include/linux/mlx5/mlx5_ifc.h * net/mlx5: Fix placement of log_max_flow_counter include/linux/mlx5/mlx5_ifc.h s390/cpcmd: fix inline assembly register clobbering * workqueue: Move the position of debug_work_activate() in __queue_work() kernel/workqueue.c * clk: fix invalid usage of list cursor in unregister drivers/clk/clk.c * clk: fix invalid usage of list cursor in register drivers/clk/clk.c soc/fsl: qbman: fix conflicting alignment attributes ASoC: sunxi: sun4i-codec: fill ASoC card owner net/ncsi: Avoid channel_monitor hrtimer deadlock ARM: dts: imx6: pbab01: Set vmmc supply for both SD interfaces * net:tipc: Fix a double free in tipc_sk_mcast_rcv net/tipc/socket.c cxgb4: avoid collecting SGE_QBASE regs during traffic gianfar: Handle error code at MAC address change * sch_red: fix off-by-one checks in red_check_params() include/net/red.h amd-xgbe: Update DMA coherency values i40e: Fix kernel oops when i40e driver removes VF's i40e: Added Asym_Pause to supported link modes ASoC: wm8960: Fix wrong bclk and lrclk with pll enabled for some chips * net: xfrm: Localize sequence counter per network namespace include/net/netns/xfrm.h net/xfrm/xfrm_state.c regulator: bd9571mwv: Fix AVS and DVFS voltage range * xfrm: interface: fix ipv4 pmtu check to honor ip header df net/xfrm/xfrm_interface.c virtio_net: Add XDP meta data support * i2c: turn recovery error on init to debug drivers/i2c/i2c-core-base.c usbip: synchronize event handler with sysfs code paths usbip: vudc synchronize sysfs code paths usbip: stub-dev synchronize sysfs code paths usbip: add sysfs_lock to synchronize sysfs code paths * net-ipv6: bugfix - raw & sctp - switch to ipv6_can_nonlocal_bind() net/ipv6/raw.c net/sctp/ipv6.c net: sched: sch_teql: fix null-pointer dereference * net: ensure mac header is set in virtio_net_hdr_to_skb() include/linux/virtio_net.h net: hso: fix null-ptr-deref during tty device unregistration ice: Increase control queue timeout batman-adv: initialize "struct batadv_tvlv_tt_vlan_data"->reserved field ARM: dts: turris-omnia: configure LED[2]/INTn pin as interrupt pin parisc: avoid a warning on u8 cast for cmpxchg on u8 pointers * parisc: parisc-agp requires SBA IOMMU driver drivers/char/agp/Kconfig * fs: direct-io: fix missing sdio->boundary fs/direct-io.c ocfs2: fix deadlock between setattr and dio_end_io_write nds32: flush_dcache_page: use page_mapping_file to avoid races with swapoff ia64: fix user_stack_pointer() for ptrace() * net: ipv6: check for validity before dereferencing cfg->fc_nlinfo.nlh net/ipv6/route.c xen/evtchn: Change irq_info lock to raw_spinlock_t nfc: Avoid endless loops caused by repeated llcp_sock_connect() nfc: fix memory leak in llcp_sock_connect() nfc: fix refcount leak in llcp_sock_connect() nfc: fix refcount leak in llcp_sock_bind() ASoC: intel: atom: Stop advertising non working S24LE support ALSA: aloop: Fix initialization of controls Merge 4.19.186 into android-4.19-stable Linux 4.19.186 * init/Kconfig: make COMPILE_TEST depend on HAS_IOMEM init/Kconfig * init/Kconfig: make COMPILE_TEST depend on !S390 init/Kconfig bpf, x86: Validate computation of branch displacements for x86-32 bpf, x86: Validate computation of branch displacements for x86-64 cifs: Silently ignore unknown oplock break handle cifs: revalidate mapping when we open files for SMB1 POSIX ia64: fix format strings for err_inject ia64: mca: allocate early mca with GFP_ATOMIC scsi: target: pscsi: Clean up after failure in pscsi_map_sg() x86/build: Turn off -fcf-protection for realmode targets platform/x86: thinkpad_acpi: Allow the FnLock LED to change state drm/msm: Ratelimit invalid-fence message mac80211: choose first enabled channel for monitor mISDN: fix crash in fritzpci net: pxa168_eth: Fix a potential data race in pxa168_eth_remove platform/x86: intel-hid: Support Lenovo ThinkPad X1 Tablet Gen 2 bus: ti-sysc: Fix warning on unbind if reset is not deasserted ARM: dts: am33xx: add aliases for mmc interfaces Merge 4.19.185 into android-4.19-stable Linux 4.19.185 drivers: video: fbcon: fix NULL dereference in fbcon_cursor() staging: rtl8192e: Change state information from u16 to u8 staging: rtl8192e: Fix incorrect source in memcpy() usb: dwc2: Fix HPRT0.PrtSusp bit setting for HiKey 960 board. usb: gadget: udc: amd5536udc_pci fix null-ptr-dereference USB: cdc-acm: fix use-after-free after probe failure USB: cdc-acm: fix double free on probe failure USB: cdc-acm: downgrade message to debug USB: cdc-acm: untangle a circular dependency between callback and softint cdc-acm: fix BREAK rx code path adding necessary calls usb: xhci-mtk: fix broken streams issue on 0.96 xHCI usb: musb: Fix suspend with devices connected for a64 * USB: quirks: ignore remote wake-up on Fibocom L850-GL LTE modem drivers/usb/core/quirks.c usbip: vhci_hcd fix shift out-of-bounds in vhci_hub_control() firewire: nosy: Fix a use-after-free bug in nosy_ioctl() * extcon: Fix error handling in extcon_dev_register drivers/extcon/extcon.c * extcon: Add stubs for extcon_register_notifier_all() functions include/linux/extcon.h pinctrl: rockchip: fix restore error in resume reiserfs: update reiserfs_xattrs_initialized() condition drm/amdgpu: check alignment on CPU page for bo map drm/amdgpu: fix offset calculation in amdgpu_vm_bo_clear_mappings() * mm: fix race by making init_zero_pfn() early_initcall mm/memory.c * tracing: Fix stack trace event size kernel/trace/trace.c * PM: runtime: Fix ordering in pm_runtime_get_suppliers() drivers/base/power/runtime.c * PM: runtime: Fix race getting/putting suppliers at probe drivers/base/power/runtime.c ALSA: hda/realtek: call alc_update_headset_mode() in hp_automute_hook ALSA: hda/realtek: fix a determine_headset_type issue for a Dell AIO * ALSA: usb-audio: Apply sample rate quirk to Logitech Connect sound/usb/quirks.c * bpf: Remove MTU check in __bpf_skb_max_len net/core/filter.c net: wan/lmc: unregister device when no matching device is found appletalk: Fix skb allocation size in loopback case net: ethernet: aquantia: Handle error cleanup of start on open ath10k: hold RCU lock when calling ieee80211_find_sta_by_ifaddr() brcmfmac: clear EAP/association status bits on linkdown events * ext4: do not iput inode under running transaction in ext4_rename() fs/ext4/namei.c * locking/ww_mutex: Simplify use_ww_ctx & ww_ctx handling kernel/locking/mutex.c * thermal/core: Add NULL pointer check before using cooling device stats drivers/thermal/thermal_sysfs.c ASoC: rt5659: Update MCLK rate in set_sysclk() staging: comedi: cb_pcidas64: fix request_irq() warn staging: comedi: cb_pcidas: fix request_irq() warn scsi: qla2xxx: Fix broken #endif placement scsi: st: Fix a use after free in st_open() vhost: Fix vhost_vq_reset() ASoC: cs42l42: Always wait at least 3ms after reset ASoC: cs42l42: Fix mixer volume control ASoC: cs42l42: Fix channel width support ASoC: cs42l42: Fix Bitclock polarity inversion ASoC: es8316: Simplify adc_pga_gain_tlv table ASoC: sgtl5000: set DAP_AVC_CTRL register to correct default value on probe ASoC: rt5651: Fix dac- and adc- vol-tlv values being off by a factor of 10 ASoC: rt5640: Fix dac- and adc- vol-tlv values being off by a factor of 10 rpc: fix NULL dereference on kmalloc failure * ext4: fix bh ref count on error paths fs/ext4/inode.c * ipv6: weaken the v4mapped source check net/ipv6/ip6_input.c net/ipv6/tcp_ipv6.c * tcp: relookup sock for RST+ACK packets handled by obsolete req sock include/net/inet_connection_sock.h net/ipv4/inet_connection_sock.c net/ipv4/tcp_minisocks.c selinux: vsock: Set SID for socket returned by accept() * Revert "can: dev: Move device back to init netns on owning netns delete" include/net/rtnetlink.h net/core/dev.c Merge 4.19.184 into android-4.19-stable ANDROID: Add OWNERS files referring to the respective android-mainline OWNERS BACKPORT: drm/virtio: Use vmalloc for command buffer allocations. UPSTREAM: drm/virtio: Rewrite virtio_gpu_queue_ctrl_buffer using fenced version. Linux 4.19.184 xen-blkback: don't leak persistent grants from xen_blkbk_map() can: peak_usb: Revert "can: peak_usb: add forgotten supported devices" * ext4: add reclaim checks to xattr code fs/ext4/xattr.c mac80211: fix double free in ibss_leave * net: qrtr: fix a kernel-infoleak in qrtr_recvmsg() net/qrtr/qrtr.c * net: sched: validate stab values include/net/red.h * can: dev: Move device back to init netns on owning netns delete include/net/rtnetlink.h net/core/dev.c x86/mem_encrypt: Correct physical address calculation in __set_clr_pte_enc() * locking/mutex: Fix non debug version of mutex_lock_io_nested() include/linux/mutex.h scsi: mpt3sas: Fix error return code of mpt3sas_base_attach() scsi: qedi: Fix error return code of qedi_alloc_global_queues() perf auxtrace: Fix auxtrace queue conflict * dm verity: add root hash pkcs#7 signature verification drivers/md/dm-verity-target.c * ACPI: scan: Use unique number for instance_no include/acpi/acpi_bus.h ACPI: scan: Rearrange memory allocation in acpi_device_add() * Revert "netfilter: x_tables: Update remaining dereference to RCU" net/ipv4/netfilter/arp_tables.c net/ipv4/netfilter/ip_tables.c net/ipv6/netfilter/ip6_tables.c * netfilter: x_tables: Use correct memory barriers. include/linux/netfilter/x_tables.h net/netfilter/x_tables.c * Revert "netfilter: x_tables: Switch synchronization to RCU" include/linux/netfilter/x_tables.h net/ipv4/netfilter/arp_tables.c net/ipv4/netfilter/ip_tables.c net/ipv6/netfilter/ip6_tables.c net/netfilter/x_tables.c * bpf: Don't do bpf_cgroup_storage_set() for kuprobe/tp programs include/linux/bpf.h RDMA/cxgb4: Fix adapter LE hash errors while destroying ipv6 listening server net/mlx5e: Fix error path for ethtool set-priv-flag arm64: kdump: update ppos when reading elfcorehdr drm/msm: fix shutdown hook in case GPU components failed to bind net: stmmac: dwmac-sun8i: Provide TX and RX fifo sizes net: cdc-phonet: fix data-interface release on probe failure mac80211: fix rate mask reset can: m_can: m_can_do_rx_poll(): fix extraneous msg loss warning can: c_can: move runtime PM enable/disable to c_can_platform can: c_can_pci: c_can_pci_remove(): fix use-after-free can: flexcan: flexcan_chip_freeze(): fix chip freeze for missing bitrate can: peak_usb: add forgotten supported devices * netfilter: ctnetlink: fix dump of the expect mask attribute net/netfilter/nf_conntrack_netlink.c ftgmac100: Restart MAC HW once net/qlcnic: Fix a use after free in qlcnic_83xx_get_minidump_template e1000e: Fix error handling in e1000_set_d0_lplu_state_82571 e1000e: add rtnl_lock() to e1000_reset_task net: dsa: bcm_sf2: Qualify phydev->dev_flags based on port * macvlan: macvlan_count_rx() needs to be aware of preemption include/linux/if_macvlan.h libbpf: Fix INSTALL flag order * veth: Store queue_mapping independently of XDP prog presence drivers/net/veth.c bus: omap_l3_noc: mark l3 irqs as IRQF_NO_THREAD * dm ioctl: fix out of bounds array access when no devices drivers/md/dm-ioctl.c ARM: dts: at91-sama5d27_som1: fix phy address to 7 arm64: dts: ls1043a: mark crypto engine dma coherent arm64: dts: ls1012a: mark crypto engine dma coherent arm64: dts: ls1046a: mark crypto engine dma coherent squashfs: fix xattr id and id lookup sanity checks * squashfs: fix inode lookup sanity checks fs/squashfs/squashfs_fs.h platform/x86: intel-vbtn: Stop reporting SW_DOCK events netsec: restore phy power state after controller reset ia64: fix ptrace(PTRACE_SYSCALL_INFO_EXIT) sign ia64: fix ia64_syscall_get_set_arguments() for break-based syscalls * block: Suppress uevent for hidden device when removed block/genhd.c nfs: we don't support removing system.nfs4_acl * drm/radeon: fix AGP dependency drivers/gpu/drm/Kconfig * u64_stats,lockdep: Fix u64_stats_init() vs lockdep include/linux/u64_stats_sync.h sparc64: Fix opcode filtering in handling of no fault loads atm: idt77252: fix null-ptr-dereference atm: uPD98402: fix incorrect allocation net: wan: fix error return code of uhdlc_init() net: hisilicon: hns: fix error return code of hns_nic_clear_all_rx_fetch() NFS: Correct size calculation for create reply length * nfs: fix PNFS_FLEXFILE_LAYOUT Kconfig default fs/nfs/Kconfig gpiolib: acpi: Add missing IRQF_ONESHOT gianfar: fix jumbo packets+napi+rx overrun crash sun/niu: fix wrong RXMAC_BC_FRM_CNT_COUNT count net: tehuti: fix error return code in bdx_probe() ixgbe: Fix memleak in ixgbe_configure_clsu32 * Revert "r8152: adjust the settings about MAC clock speed down for RTL8153" drivers/net/usb/r8152.c atm: lanai: dont run lanai_dev_close if not open atm: eni: dont release is never initialized powerpc/4xx: Fix build errors from mfdcr() net: fec: ptp: avoid register access when ipg clock is disabled * ANDROID: Make vsock virtio packet buff size configurable include/linux/virtio_vsock.h * ANDROID: fix up ext4 build from 4.19.183 fs/ext4/namei.c Bug: 187007303 Change-Id: I7bd7cc06a4928013a8ef194a55aadbb59ff0c6c1 Signed-off-by: Lucas Wei <lucaswei@google.com>
| * locking/qrwlock: Fix ordering in queued_write_lock_slowpath()Ali Saidi2021-04-281-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit 84a24bf8c52e66b7ac89ada5e3cfbe72d65c1896 ] While this code is executed with the wait_lock held, a reader can acquire the lock without holding wait_lock. The writer side loops checking the value with the atomic_cond_read_acquire(), but only truly acquires the lock when the compare-and-exchange is completed successfully which isn’t ordered. This exposes the window between the acquire and the cmpxchg to an A-B-A problem which allows reads following the lock acquisition to observe values speculatively before the write lock is truly acquired. We've seen a problem in epoll where the reader does a xchg while holding the read lock, but the writer can see a value change out from under it. Writer | Reader -------------------------------------------------------------------------------- ep_scan_ready_list() | |- write_lock_irq() | |- queued_write_lock_slowpath() | |- atomic_cond_read_acquire() | | read_lock_irqsave(&ep->lock, flags); --> (observes value before unlock) | chain_epi_lockless() | | epi->next = xchg(&ep->ovflist, epi); | | read_unlock_irqrestore(&ep->lock, flags); | | | atomic_cmpxchg_relaxed() | |-- READ_ONCE(ep->ovflist); | A core can order the read of the ovflist ahead of the atomic_cmpxchg_relaxed(). Switching the cmpxchg to use acquire semantics addresses this issue at which point the atomic_cond_read can be switched to use relaxed semantics. Fixes: b519b56e378ee ("locking/qrwlock: Use atomic_cond_read_acquire() when spinning in qrwlock") Signed-off-by: Ali Saidi <alisaidi@amazon.com> [peterz: use try_cmpxchg()] Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Steve Capper <steve.capper@arm.com> Acked-by: Will Deacon <will@kernel.org> Acked-by: Waiman Long <longman@redhat.com> Tested-by: Steve Capper <steve.capper@arm.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
| * lockdep: Add a missing initialization hint to the "INFO: Trying to register ↵Tetsuo Handa2021-04-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | non-static key" message [ Upstream commit 3a85969e9d912d5dd85362ee37b5f81266e00e77 ] Since this message is printed when dynamically allocated spinlocks (e.g. kzalloc()) are used without initialization (e.g. spin_lock_init()), suggest to developers to check whether initialization functions for objects were called, before making developers wonder what annotation is missing. [ mingo: Minor tweaks to the message. ] Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20210321064913.4619-1-penguin-kernel@I-love.SAKURA.ne.jp Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
| * locking/ww_mutex: Simplify use_ww_ctx & ww_ctx handlingWaiman Long2021-04-071-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit 5de2055d31ea88fd9ae9709ac95c372a505a60fa ] The use_ww_ctx flag is passed to mutex_optimistic_spin(), but the function doesn't use it. The frequent use of the (use_ww_ctx && ww_ctx) combination is repetitive. In fact, ww_ctx should not be used at all if !use_ww_ctx. Simplify ww_mutex code by dropping use_ww_ctx from mutex_optimistic_spin() an clear ww_ctx if !use_ww_ctx. In this way, we can replace (use_ww_ctx && ww_ctx) by just (ww_ctx). Signed-off-by: Waiman Long <longman@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Davidlohr Bueso <dbueso@suse.de> Link: https://lore.kernel.org/r/20210316153119.13802-2-longman@redhat.com Signed-off-by: Sasha Levin <sashal@kernel.org>
* | Merge android-4.19-stable (4.19.177) into android-msm-pixel-4.19-ltsLucas Wei2021-03-122-4/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge 4.19.177 into android-4.19-stable Linux 4.19.177 kvm: check tlbs_dirty directly scsi: qla2xxx: Fix crash during driver load on big endian machines xen-blkback: fix error handling in xen_blkbk_map() xen-scsiback: don't "handle" error by BUG() xen-netback: don't "handle" error by BUG() xen-blkback: don't "handle" error by BUG() xen/arm: don't ignore return errors from set_phys_to_machine * Xen/gntdev: correct error checking in gntdev_map_grant_pages() include/xen/grant_table.h Xen/gntdev: correct dev_bus_addr handling in gntdev_map_grant_pages() Xen/x86: also check kernel mapping in set_foreign_p2m_mapping() Xen/x86: don't bail early from clear_foreign_p2m_mapping() * net: qrtr: Fix port ID for control messages net/qrtr/qrtr.c KVM: SEV: fix double locking due to incorrect backport x86/build: Disable CET instrumentation in the kernel for 32-bit too * ovl: expand warning in ovl_d_real() fs/overlayfs/super.c net/qrtr: restrict user-controlled length in qrtr_tun_write_iter() net/rds: restrict iovecs length for RDS_CMSG_RDMA_ARGS vsock: fix locking in vsock_shutdown() vsock/virtio: update credit only if socket is not closed * net: watchdog: hold device global xmit lock during tx disable include/linux/netdevice.h net/vmw_vsock: improve locking in vsock_connect_timeout() * net: fix iteration for sctp transport seq_files net/sctp/proc.c usb: dwc3: ulpi: Replace CPU-based busyloop with Protocol-based one usb: dwc3: ulpi: fix checkpatch warning h8300: fix PREEMPTION build, TI_PRE_COUNT undefined i2c: stm32f7: fix configuration of the digital filter * firmware_loader: align .builtin_fw to 8 include/asm-generic/vmlinux.lds.h net: hns3: add a check for queue_id in hclge_reset_vf_queue() * netfilter: conntrack: skip identical origin tuple in same zone only net/netfilter/nf_conntrack_core.c net: stmmac: set TxQ mode back to DCB after disabling CBS xen/netback: avoid race in xenvif_rx_ring_slots_available() netfilter: flowtable: fix tcp and udp header checksum update netfilter: xt_recent: Fix attempt to update deleted entry * bpf: Check for integer overflow when using roundup_pow_of_two() kernel/bpf/stackmap.c mt76: dma: fix a possible memory leak in mt76_add_fragment() ARM: kexec: fix oops after TLB are invalidated ARM: ensure the signal page contains defined contents ARM: dts: lpc32xx: Revert set default clock rate of HCLK PLL bfq-iosched: Revert "bfq: Fix computation of shallow depth" riscv: virt_addr_valid must check the address belongs to linear mapping drm/amd/display: Free atomic state after drm_atomic_commit drm/amd/display: Fix dc_sink kref count in emulated_link_detect * ovl: skip getxattr of security labels fs/overlayfs/copy_up.c * cap: fix conversions on getxattr security/commoncap.c * ovl: perform vfs_getxattr() with mounter creds fs/overlayfs/inode.c platform/x86: hp-wmi: Disable tablet-mode reporting by default arm64: dts: rockchip: Fix PCIe DT properties on rk3399 * arm/xen: Don't probe xenbus as part of an early initcall include/xen/xenbus.h * tracing: Check length before giving out the filter buffer kernel/trace/trace.c * tracing: Do not count ftrace events in top level enable output kernel/trace/trace_events.c ANDROID: build_config: drop CONFIG_KASAN_PANIC_ON_WARN Merge 4.19.176 into android-4.19-stable Linux 4.19.176 * regulator: Fix lockdep warning resolving supplies drivers/regulator/core.c * regulator: core: Clean enabling always-on regulators + their supplies drivers/regulator/core.c * regulator: core: enable power when setting up constraints drivers/regulator/core.c squashfs: add more sanity checks in xattr id lookup squashfs: add more sanity checks in inode lookup squashfs: add more sanity checks in id lookup * blk-mq: don't hold q->sysfs_lock in blk_mq_map_swqueue block/blk-mq.c * block: don't hold q->sysfs_lock in elevator_init_mq block/elevator.c Fix unsynchronized access to sev members through svm_register_enc_region * memcg: fix a crash in wb_workfn when a device disappears fs/fs-writeback.c include/linux/backing-dev.h include/trace/events/writeback.h mm/backing-dev.c * include/trace/events/writeback.h: fix -Wstringop-truncation warnings include/trace/events/writeback.h * lib/string: Add strscpy_pad() function include/linux/string.h lib/string.c SUNRPC: Handle 0 length opaque XDR object data properly * SUNRPC: Move simple_get_bytes and simple_get_netobj into private header include/linux/sunrpc/xdr.h iwlwifi: mvm: guard against device removal in reprobe iwlwifi: pcie: fix context info memory leak iwlwifi: pcie: add a NULL check in iwl_pcie_txq_unmap iwlwifi: mvm: take mutex for calling iwl_mvm_get_sync_time() pNFS/NFSv4: Try to return invalid layout in pnfs_layout_process() chtls: Fix potential resource leak * regulator: core: avoid regulator_resolve_supply() race condition drivers/regulator/core.c * af_key: relax availability checks for skb size calculation net/key/af_key.c remoteproc: qcom_q6v5_mss: Validate MBA firmware size before load remoteproc: qcom_q6v5_mss: Validate modem blob firmware size before load * fgraph: Initialize tracing_graph_pause at task creation init/init_task.c * block: fix NULL pointer dereference in register_disk block/genhd.c * tracing/kprobe: Fix to support kretprobe events on unloaded modules include/linux/kprobes.h * BACKPORT: bpf: add bpf_ktime_get_boot_ns() include/linux/bpf.h include/uapi/linux/bpf.h kernel/bpf/core.c kernel/bpf/helpers.c kernel/trace/bpf_trace.c net/core/filter.c Merge 4.19.175 into android-4.19-stable Linux 4.19.175 net: dsa: mv88e6xxx: override existent unicast portvec in port_fdb_add * net: ip_tunnel: fix mtu calculation net/ipv4/ip_tunnel.c md: Set prev_flush_start and flush_bio in an atomic way iommu/vt-d: Do not use flush-queue when caching-mode is on * Input: xpad - sync supported devices with fork on GitHub drivers/input/joystick/xpad.c x86/apic: Add extra serialization for non-serializing MSRs * x86/build: Disable CET instrumentation in the kernel Makefile mm: thp: fix MADV_REMOVE deadlock on shmem THP mm: hugetlb: remove VM_BUG_ON_PAGE from page_huge_active mm: hugetlb: fix a race between isolating and freeing page mm: hugetlb: fix a race between freeing and dissolving the page * mm: hugetlbfs: fix cannot migrate the fallocated HugeTLB page include/linux/hugetlb.h ARM: footbridge: fix dc21285 PCI configuration accessors KVM: SVM: Treat SVM as unsupported when running as an SEV guest nvme-pci: avoid the deepest sleep state on Kingston A2000 SSDs mmc: core: Limit retries when analyse of SDIO tuples fails smb3: Fix out-of-bounds bug in SMB2_negotiate() cifs: report error instead of invalid when revalidating a dentry fails * xhci: fix bounce buffer usage for non-sg list case drivers/usb/host/xhci-ring.c * genirq/msi: Activate Multi-MSI early when MSI_FLAG_ACTIVATE_EARLY is set include/linux/msi.h kernel/irq/msi.c kretprobe: Avoid re-registration of the same kretprobe earlier mac80211: fix station rate table updates on assoc * ovl: fix dentry leak in ovl_get_redirect fs/overlayfs/dir.c * usb: dwc3: fix clock issue during resume in OTG mode drivers/usb/dwc3/core.c usb: dwc2: Fix endpoint direction check in ep_from_windex usb: renesas_usbhs: Clear pipe running flag in usbhs_pkt_pop() USB: usblp: don't call usb_set_interface if there's a single alt USB: gadget: legacy: fix an error code in eth_bind() * memblock: do not start bottom-up allocations with kernel_end mm/memblock.c net: mvpp2: TCAM entry enable should be written after SRAM data net: lapb: Copy the skb before sending a packet arm64: dts: ls1046a: fix dcfg address range rxrpc: Fix deadlock around release of dst cached on udp tunnel Input: i8042 - unbreak Pegatron C15B * elfcore: fix building with clang include/linux/elfcore.h kernel/Makefile USB: serial: option: Adding support for Cinterion MV31 USB: serial: cp210x: add new VID/PID for supporting Teraoka AD2000 USB: serial: cp210x: add pid/vid for WSDA-200-USB * UPSTREAM: dma-buf: Fix SET_NAME ioctl uapi drivers/dma-buf/dma-buf.c include/uapi/linux/dma-buf.h ANDROID: GKI: Update ABI for coresight-clk-amba-dummy.ko. Merge 4.19.174 into android-4.19-stable Linux 4.19.174 * workqueue: Restrict affinity change to rescuer kernel/workqueue.c * kthread: Extract KTHREAD_IS_PER_CPU include/linux/kthread.h kernel/kthread.c kernel/smpboot.c objtool: Don't fail on missing symbol table selftests/powerpc: Only test lwm/stmw on big endian scsi: ibmvfc: Set default timeout to avoid crash during migration mac80211: fix fast-rx encryption check scsi: libfc: Avoid invoking response handler twice if ep is already completed scsi: scsi_transport_srp: Don't block target in failfast state x86: __always_inline __{rd,wr}msr() platform/x86: intel-vbtn: Support for tablet mode on Dell Inspiron 7352 platform/x86: touchscreen_dmi: Add swap-x-y quirk for Goodix touchscreen on Estar Beauty HD tablet phy: cpcap-usb: Fix warning for missing regulator_disable * net_sched: gen_estimator: support large ewma log net/core/gen_estimator.c * sysctl: handle overflow in proc_get_long kernel/sysctl.c ACPI: thermal: Do not call acpi_thermal_check() directly ibmvnic: Ensure that CRQ entry read are correctly ordered net: dsa: bcm_sf2: put device node before return Merge 4.19.173 into android-4.19-stable Linux 4.19.173 * tcp: fix TLP timer not set when CA_STATE changes from DISORDER to OPEN include/net/tcp.h net/ipv4/tcp_input.c net/ipv4/tcp_recovery.c team: protect features update by RCU to avoid deadlock NFC: fix possible resource leak NFC: fix resource leak when target index is invalid rxrpc: Fix memory leak in rxrpc_lookup_local * iommu/vt-d: Don't dereference iommu_device if IOMMU_API is not built include/linux/intel-iommu.h iommu/vt-d: Gracefully handle DMAR units with no supported address widths can: dev: prevent potential information leak in can_fill_info() net/mlx5: Fix memory leak on flow table creation error flow mac80211: pause TX while changing interface type iwlwifi: pcie: reschedule in long-running memory reads iwlwifi: pcie: use jiffies for memory read spin time limit pNFS/NFSv4: Fix a layout segment leak in pnfs_layout_process() RDMA/cxgb4: Fix the reported max_recv_sge value * xfrm: fix disable_xfrm sysctl when used on xfrm interfaces net/xfrm/xfrm_policy.c * xfrm: Fix oops in xfrm_replay_advance_bmp net/xfrm/xfrm_input.c netfilter: nft_dynset: add timeout extension to template ARM: imx: build suspend-imx6.S with arm instruction set xen-blkfront: allow discard-* nodes to be optional mt7601u: fix rx buffer refcounting mt7601u: fix kernel crash unplugging the device * leds: trigger: fix potential deadlock with libata drivers/leds/led-triggers.c xen: Fix XenStore initialisation for XS_LOCAL KVM: x86: get smi pending status correctly KVM: x86/pmu: Fix HW_REF_CPU_CYCLES event pseudo-encoding in intel_arch_events[] drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[] drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCs PM: hibernate: flush swap writer after marking net: usb: qmi_wwan: added support for Thales Cinterion PLSx3 modem family * wext: fix NULL-ptr-dereference with cfg80211's lack of commit() net/wireless/wext-core.c ARM: dts: imx6qdl-gw52xx: fix duplicate regulator naming media: rc: ensure that uevent can be read directly after rc device register ALSA: hda/via: Apply the workaround generically for Clevo machines xen/privcmd: allow fetching resource sizes kernel: kexec: remove the lock operation of system_transition_mutex ACPI: sysfs: Prefer "compatible" modalias nbd: freeze the queue while we're adding connections Revert "Revert "ANDROID: enable LLVM_IAS=1 for clang's integrated assembler for x86_64"" ANDROID: GKI: Update ABI ANDROID: GKI: Update cuttlefish symbol list * ANDROID: GKI: fix up abi issues with 4.19.172 include/linux/sched.h Merge 4.19.172 into android-4.19-stable Linux 4.19.172 * fs: fix lazytime expiration handling in __writeback_single_inode() fs/fs-writeback.c * writeback: Drop I_DIRTY_TIME_EXPIRE fs/ext4/inode.c fs/fs-writeback.c include/linux/fs.h include/trace/events/writeback.h dm integrity: conditionally disable "recalculate" feature tools: Factor HOSTCC, HOSTLD, HOSTAR definitions * tracing: Fix race in trace_open and buffer resize call kernel/trace/ring_buffer.c HID: wacom: Correct NULL dereference on AES pen proximity * futex: Handle faults correctly for PI futexes kernel/futex.c * futex: Simplify fixup_pi_state_owner() kernel/futex.c * futex: Use pi_state_update_owner() in put_pi_state() kernel/futex.c * rtmutex: Remove unused argument from rt_mutex_proxy_unlock() kernel/futex.c kernel/locking/rtmutex.c kernel/locking/rtmutex_common.h * futex: Provide and use pi_state_update_owner() kernel/futex.c * futex: Replace pointless printk in fixup_owner() kernel/futex.c * futex: Ensure the correct return value from futex_lock_pi() kernel/futex.c * futex: Prevent exit livelock kernel/futex.c * futex: Provide distinct return value when owner is exiting kernel/futex.c * futex: Add mutex around futex exit include/linux/futex.h include/linux/sched.h kernel/futex.c * futex: Provide state handling for exec() as well kernel/futex.c * futex: Sanitize exit state handling kernel/futex.c * futex: Mark the begin of futex exit explicitly include/linux/futex.h kernel/exit.c kernel/futex.c * futex: Set task::futex_state to DEAD right after handling futex exit kernel/exit.c kernel/futex.c * futex: Split futex_mm_release() for exit/exec include/linux/futex.h kernel/fork.c kernel/futex.c * exit/exec: Seperate mm_release() fs/exec.c include/linux/sched/mm.h kernel/exit.c kernel/fork.c * futex: Replace PF_EXITPIDONE with a state include/linux/futex.h include/linux/sched.h kernel/exit.c kernel/futex.c * futex: Move futex exit handling into futex code include/linux/compat.h include/linux/futex.h kernel/fork.c kernel/futex.c * Revert "mm/slub: fix a memory leak in sysfs_slab_add()" mm/slub.c gpio: mvebu: fix pwm .get_state period calculation * FROMGIT: f2fs: flush data when enabling checkpoint back fs/f2fs/super.c ANDROID: GKI: Added the get_task_pid function Bug: 181732917 Change-Id: I371506c789fee218749bb057bc7b8d159970847c Signed-off-by: Lucas Wei <lucaswei@google.com>
| * rtmutex: Remove unused argument from rt_mutex_proxy_unlock()Thomas Gleixner2021-01-302-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | commit 2156ac1934166d6deb6cd0f6ffc4c1076ec63697 upstream Nothing uses the argument. Remove it as preparation to use pi_state_update_owner(). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | Merge android-4.19-stable (4.19.145) into android-msm-pixel-4.19-ltslucaswei2020-12-031-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge 4.19.145 into android-4.19-stable Linux 4.19.145 net/mlx5e: Don't support phys switch id if not in switchdev mode * net: disable netpoll on fresh napis net/core/dev.c * tipc: fix shutdown() of connectionless socket net/tipc/socket.c * sctp: not disable bh in the whole sctp_get_port_local() net/sctp/socket.c net: usb: dm9601: Add USB ID of Keenetic Plus DSL * netlabel: fix problems with mapping removal net/netlabel/netlabel_domainhash.c * block: ensure bdi->io_pages is always initialized block/blk-core.c ALSA; firewire-tascam: exclude Tascam FE-8 from detection * FROMGIT: binder: print warnings when detecting oneway spamming. drivers/android/binder.c drivers/android/binder_alloc.c drivers/android/binder_alloc.h Merge 4.19.144 into android-4.19-stable Linux 4.19.144 * net: usb: Fix uninit-was-stored issue in asix_read_phy_addr() drivers/net/usb/asix_common.c * cfg80211: regulatory: reject invalid hints net/wireless/reg.c mm/hugetlb: fix a race between hugetlb sysctl handlers checkpatch: fix the usage of capture group ( ... ) vfio/pci: Fix SR-IOV VF handling with MMIO blocking * KVM: arm64: Set HCR_EL2.PTW to prevent AT taking synchronous exception arch/arm64/include/asm/kvm_arm.h * KVM: arm64: Survive synchronous exceptions caused by AT instructions arch/arm64/include/asm/kvm_asm.h KVM: arm64: Defer guest entry when an asynchronous exception is pending * KVM: arm64: Add kvm_extable for vaxorcism code arch/arm64/include/asm/kvm_asm.h arch/arm64/kernel/vmlinux.lds.S * mm: slub: fix conversion of freelist_corrupted() mm/slub.c dm thin metadata: Avoid returning cmd->bm wild pointer on error dm cache metadata: Avoid returning cmd->bm wild pointer on error dm writecache: handle DAX to partitions on persistent memory correctly * libata: implement ATA_HORKAGE_MAX_TRIM_128M and apply to Sandisks include/linux/libata.h * block: allow for_each_bvec to support zero len bvec include/linux/bvec.h affs: fix basic permission bits to actually work media: rc: uevent sysfs file races with rc_unregister_device() media: rc: do not access device via sysfs after rc_unregister_device() ALSA: hda - Fix silent audio output and corrupted input on MSI X570-A PRO ALSA: firewire-digi00x: exclude Avid Adrenaline from detection ALSA: hda/hdmi: always check pin power status in i915 pin fixup ALSA: pcm: oss: Remove superfluous WARN_ON() for mulaw sanity check ALSA: ca0106: fix error code handling usb: qmi_wwan: add D-Link DWM-222 A2 device ID net: usb: qmi_wwan: add Telit 0x1050 composition btrfs: fix potential deadlock in the search ioctl * uaccess: Add non-pagefault user-space write function include/linux/uaccess.h mm/maccess.c * uaccess: Add non-pagefault user-space read functions include/linux/uaccess.h mm/maccess.c btrfs: set the lockdep class for log tree extent buffers btrfs: Remove extraneous extent_buffer_get from tree_mod_log_rewind btrfs: Remove redundant extent_buffer_get in get_old_root vfio-pci: Invalidate mmaps and block MMIO access on disabled memory vfio-pci: Fault mmaps to enable vma tracking vfio/type1: Support faulting PFNMAP vmas btrfs: drop path before adding new uuid tree entry xfs: don't update mtime on COW faults ext2: don't update mtime on COW faults * include/linux/log2.h: add missing () around n in roundup_pow_of_two() include/linux/log2.h thermal: ti-soc-thermal: Fix bogus thermal shutdowns for omap4430 iommu/vt-d: Serialize IOMMU GCMD register modifications x86, fakenuma: Fix invalid starting node ID tg3: Fix soft lockup when tg3_reset_task() fails. perf jevents: Fix suspicious code in fixregex() xfs: fix xfs_bmap_validate_extent_raw when checking attr fork of rt files net: gemini: Fix another missing clk_disable_unprepare() in probe * fix regression in "epoll: Keep a reference on files added to the check list" fs/eventpoll.c net: ethernet: mlx4: Fix memory allocation in mlx4_buddy_init() perf tools: Correct SNOOPX field offset nvmet-fc: Fix a missed _irqsave version of spin_lock in 'nvmet_fc_fod_op_done()' * netfilter: nfnetlink: nfnetlink_unicast() reports EAGAIN instead of ENOBUFS include/linux/netfilter/nfnetlink.h net/netfilter/nfnetlink.c net/netfilter/nfnetlink_log.c net/netfilter/nfnetlink_queue.c selftests/bpf: Fix massive output from test_maps bnxt: don't enable NAPI until rings are ready xfs: fix boundary test in xfs_attr_shortform_verify bnxt_en: fix HWRM error when querying VF temperature bnxt_en: Fix PCI AER error recovery flow bnxt_en: Check for zero dir entries in NVRAM. bnxt_en: Don't query FW when netif_running() is false. gtp: add GTPA_LINK info to msg sent to userspace dmaengine: pl330: Fix burst length if burst size is smaller than bus width net: arc_emac: Fix memleak in arc_mdio_probe ravb: Fixed to be able to unload modules net: systemport: Fix memleak in bcm_sysport_probe net: hns: Fix memleak in hns_nic_dev_probe * netfilter: nf_tables: fix destination register zeroing include/net/netfilter/nf_tables.h * netfilter: nf_tables: incorrect enum nft_list_attributes definition include/uapi/linux/netfilter/nf_tables.h netfilter: nf_tables: add NFTA_SET_USERDATA if not null MIPS: BMIPS: Also call bmips_cpu_setup() for secondary cores MIPS: mm: BMIPS5000 has inclusive physical caches dmaengine: at_hdmac: check return value of of_find_device_by_node() in at_dma_xlate() batman-adv: bla: use netif_rx_ni when not in interrupt context batman-adv: Fix own OGM check in aggregated OGMs batman-adv: Avoid uninitialized chaddr when handling DHCP * dmaengine: of-dma: Fix of_dma_router_xlate's of_dma_xlate handling drivers/dma/of-dma.c xen/xenbus: Fix granting of vmalloc'd memory s390: don't trace preemption in percpu macros * cpuidle: Fixup IRQ state drivers/cpuidle/cpuidle.c ceph: don't allow setlease on cephfs drm/msm/a6xx: fix gmu start on newer firmware nvmet: Disable keep-alive timer when kato is cleared to 0h hwmon: (applesmc) check status earlier. drm/msm: add shutdown support for display platform_driver tty: serial: qcom_geni_serial: Drop __init from qcom_geni_console_setup scsi: target: tcmu: Optimize use of flush_dcache_page scsi: target: tcmu: Fix size in calls to tcmu_flush_dcache_range perf record/stat: Explicitly call out event modifiers in the documentation * HID: core: Sanitize event code and type when mapping input drivers/hid/hid-input.c drivers/hid/hid-multitouch.c include/linux/hid.h * HID: core: Correctly handle ReportSize being zero drivers/hid/hid-core.c Merge 4.19.143 into android-4.19-stable Linux 4.19.143 * ALSA: usb-audio: Update documentation comment for MS2109 quirk sound/usb/quirks-table.h * HID: hiddev: Fix slab-out-of-bounds write in hiddev_ioctl_usage() drivers/hid/usbhid/hiddev.c tpm: Unify the mismatching TPM space buffer sizes * usb: dwc3: gadget: Handle ZLP for sg requests drivers/usb/dwc3/gadget.c * usb: dwc3: gadget: Fix handling ZLP drivers/usb/dwc3/gadget.c * usb: dwc3: gadget: Don't setup more than requested drivers/usb/dwc3/gadget.c btrfs: check the right error variable in btrfs_del_dir_entries_in_log usb: storage: Add unusual_uas entry for Sony PSZ drives USB: cdc-acm: rework notification_buffer resizing * USB: gadget: u_f: Unbreak offset calculation in VLAs drivers/usb/gadget/u_f.h * USB: gadget: f_ncm: add bounds checks to ncm_unwrap_ntb() drivers/usb/gadget/function/f_ncm.c * USB: gadget: u_f: add overflow checks to VLA macros drivers/usb/gadget/u_f.h usb: host: ohci-exynos: Fix error handling in exynos_ohci_probe() * USB: Ignore UAS for JMicron JMS567 ATA/ATAPI Bridge drivers/usb/storage/unusual_devs.h * USB: quirks: Ignore duplicate endpoint on Sound Devices MixPre-D drivers/usb/core/quirks.c * USB: quirks: Add no-lpm quirk for another Raydium touchscreen drivers/usb/core/quirks.c usb: uas: Add quirk for PNY Pro Elite USB: yurex: Fix bad gfp argument drm/amd/pm: correct Vega12 swctf limit setting drm/amd/pm: correct Vega10 swctf limit setting drm/amdgpu: Fix buffer overflow in INFO ioctl irqchip/stm32-exti: Avoid losing interrupts due to clearing pending bits by mistake genirq/matrix: Deal with the sillyness of for_each_cpu() on UP * device property: Fix the secondary firmware node handling in set_primary_fwnode() drivers/base/core.c * PM: sleep: core: Fix the handling of pending runtime resume requests drivers/base/power/main.c * xhci: Always restore EP_SOFT_CLEAR_TOGGLE even if ep reset failed drivers/usb/host/xhci.c * xhci: Do warm-reset when both CAS and XDEV_RESUME are set drivers/usb/host/xhci-hub.c * usb: host: xhci: fix ep context print mismatch in debugfs drivers/usb/host/xhci-debugfs.c XEN uses irqdesc::irq_data_common::handler_data to store a per interrupt XEN data pointer which contains XEN specific information. * writeback: Fix sync livelock due to b_dirty_time processing fs/fs-writeback.c include/trace/events/writeback.h * writeback: Avoid skipping inode writeback fs/fs-writeback.c include/linux/fs.h * writeback: Protect inode->i_io_list with inode->i_lock fs/fs-writeback.c serial: 8250: change lock order in serial8250_do_startup() serial: 8250_exar: Fix number of ports for Commtech PCIe cards serial: pl011: Don't leak amba_ports entry on driver register error serial: pl011: Fix oops on -EPROBE_DEFER serial: samsung: Removes the IRQ not found warning vt_ioctl: change VT_RESIZEX ioctl to check for error return from vc_resize() vt: defer kfree() of vc_screenbuf in vc_do_resize() * USB: lvtest: return proper error code in probe drivers/usb/misc/lvstest.c fbcon: prevent user font height or width change from causing potential out-of-bounds access btrfs: fix space cache memory leak after transaction abort btrfs: reset compression level for lzo on remount * blk-mq: order adding requests to hctx->dispatch and checking SCHED_RESTART block/blk-mq-sched.c block/blk-mq.c HID: i2c-hid: Always sleep 60ms after I2C_HID_PWR_ON commands * block: loop: set discard granularity and alignment for block device backed loop drivers/block/loop.c powerpc/perf: Fix soft lockups due to missed interrupt accounting net: gianfar: Add of_node_put() before goto statement macvlan: validate setting of multiple remote source MAC addresses Revert "scsi: qla2xxx: Fix crash on qla2x00_mailbox_command" scsi: qla2xxx: Fix null pointer access during disconnect from subsystem scsi: qla2xxx: Check if FW supports MQ before enabling * scsi: ufs: Clean up completed request without interrupt notification drivers/scsi/ufs/ufshcd.c * scsi: ufs: Improve interrupt handling for shared interrupts drivers/scsi/ufs/ufshcd.c * scsi: ufs: Fix possible infinite loop in ufshcd_hold drivers/scsi/ufs/ufshcd.c scsi: fcoe: Fix I/O path allocation ASoC: wm8994: Avoid attempts to read unreadable registers s390/cio: add cond_resched() in the slow_eval_known_fn() loop spi: stm32: fix stm32_spi_prepare_mbr in case of odd clk_rate * fs: prevent BUG_ON in submit_bh_wbc() fs/buffer.c fs/ext4/super.c * ext4: correctly restore system zone info when remount fails fs/ext4/block_validity.c fs/ext4/super.c * ext4: handle error of ext4_setup_system_zone() on remount fs/ext4/super.c * ext4: handle option set by mount flags correctly fs/ext4/super.c * jbd2: abort journal if free a async write error metadata buffer fs/jbd2/transaction.c * ext4: handle read only external journal device fs/ext4/super.c * ext4: don't BUG on inconsistent journal feature fs/ext4/super.c * jbd2: make sure jh have b_transaction set in refile/unfile_buffer fs/jbd2/transaction.c usb: gadget: f_tcm: Fix some resource leaks in some error paths i2c: rcar: in slave mode, clear NACK earlier null_blk: fix passing of REQ_FUA flag in null_handle_rq nvme-fc: Fix wrong return value in __nvme_fc_init_request() drm/msm/adreno: fix updating ring fence media: gpio-ir-tx: improve precision of transmitted signal due to scheduling Revert "ath10k: fix DMA related firmware crashes on multiple devices" * efi: provide empty efi_enter_virtual_mode implementation include/linux/efi.h USB: sisusbvga: Fix a potential UB casued by left shifting a negative value powerpc/spufs: add CONFIG_COREDUMP dependency KVM: arm64: Fix symbol dependency in __hyp_call_panic_nvhe EDAC/ie31200: Fallback if host bridge device is already initialized scsi: fcoe: Memory leak fix in fcoe_sysfs_fcf_del() ceph: fix potential mdsc use-after-free crash scsi: iscsi: Do not put host in iscsi_set_flashnode_param() btrfs: file: reserve qgroup space after the hole punch range is locked locking/lockdep: Fix overflow in presentation of average lock-time drm/nouveau: Fix reference count leak in nouveau_connector_detect drm/nouveau: fix reference count leak in nv50_disp_atomic_commit drm/nouveau/drm/noveau: fix reference count leak in nouveau_fbcon_open * f2fs: fix use-after-free issue fs/f2fs/super.c * HID: quirks: add NOGET quirk for Logitech GROUP drivers/hid/hid-ids.h drivers/hid/hid-quirks.c cec-api: prevent leaking memory through hole in structure mips/vdso: Fix resource leaks in genvdso.c rtlwifi: rtl8192cu: Prevent leaking urb ARM: dts: ls1021a: output PPS signal on FIPER2 * PCI: Fix pci_create_slot() reference count leak drivers/pci/slot.c omapfb: fix multiple reference count leaks due to pm_runtime_get_sync * f2fs: fix error path in do_recover_data() fs/f2fs/f2fs.h fs/f2fs/inline.c fs/f2fs/node.c fs/f2fs/recovery.c selftests/powerpc: Purge extra count_pmc() calls of ebb selftests xfs: Don't allow logging of XFS_ISTALE inodes scsi: lpfc: Fix shost refcount mismatch when deleting vport drm/amdgpu/display: fix ref count leak when pm_runtime_get_sync fails drm/amdgpu: fix ref count leak in amdgpu_display_crtc_set_config drm/amd/display: fix ref count leak in amdgpu_drm_ioctl drm/amdgpu: fix ref count leak in amdgpu_driver_open_kms drm/radeon: fix multiple reference count leak drm/amdkfd: Fix reference count leaks. * iommu/iova: Don't BUG on invalid PFNs drivers/iommu/iova.c scsi: target: tcmu: Fix crash on ARM during cmd completion * blktrace: ensure our debugfs dir exists kernel/trace/blktrace.c media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq() powerpc/xive: Ignore kmemleak false positives arm64: dts: qcom: msm8916: Pull down PDM GPIOs during sleep mfd: intel-lpss: Add Intel Emmitsburg PCH PCI IDs ASoC: tegra: Fix reference count leaks. ASoC: img-parallel-out: Fix a reference count leak ASoC: img: Fix a reference count leak in img_i2s_in_set_fmt ALSA: pci: delete repeated words in comments ipvlan: fix device features net: ena: Make missed_tx stat incremental * tipc: fix uninit skb->data in tipc_nl_compat_dumpit() net/tipc/netlink_compat.c net/smc: Prevent kernel-infoleak in __smc_diag_dump() * net: qrtr: fix usage of idr in port assignment to socket net/qrtr/qrtr.c * net: Fix potential wrong skb->protocol in skb_vlan_untag() net/core/skbuff.c * gre6: Fix reception with IP6_TNL_F_RCV_DSCP_COPY net/ipv6/ip6_tunnel.c powerpc/64s: Don't init FSCR_DSCR in __init_FSCR() ANDROID: gki_defconfig: initialize locals with zeroes * UPSTREAM: security: allow using Clang's zero initialization for stack variables Makefile init/main.c security/Kconfig.hardening * Revert "binder: Prevent context manager from incrementing ref 0" drivers/android/binder.c ANDROID: GKI: update the ABI xml BACKPORT: recordmcount: support >64k sections * UPSTREAM: arm64: vdso: Build vDSO with -ffixed-x18 arch/arm64/kernel/vdso/Makefile * UPSTREAM: cgroup: Remove unused cgrp variable kernel/cgroup/cgroup.c * UPSTREAM: cgroup: freezer: call cgroup_enter_frozen() with preemption disabled in ptrace_stop() kernel/signal.c * UPSTREAM: cgroup: freezer: fix frozen state inheritance kernel/cgroup/cgroup.c * UPSTREAM: signal: unconditionally leave the frozen state in ptrace_stop() kernel/signal.c * BACKPORT: cgroup: cgroup v2 freezer include/linux/cgroup-defs.h include/linux/cgroup.h include/linux/sched/jobctl.h kernel/cgroup/Makefile kernel/cgroup/cgroup.c kernel/cgroup/freezer.c kernel/fork.c kernel/signal.c * UPSTREAM: cgroup: implement __cgroup_task_count() helper kernel/cgroup/cgroup-internal.h kernel/cgroup/cgroup-v1.c kernel/cgroup/cgroup.c * UPSTREAM: cgroup: rename freezer.c into legacy_freezer.c kernel/cgroup/Makefile * UPSTREAM: cgroup: remove extra cgroup_migrate_finish() call kernel/cgroup/cgroup.c * UPSTREAM: cgroup: saner refcounting for cgroup_root kernel/cgroup/cgroup-internal.h kernel/cgroup/cgroup-v1.c kernel/cgroup/cgroup.c * UPSTREAM: cgroup: Add named hierarchy disabling to cgroup_no_v1 boot param kernel/cgroup/cgroup-v1.c * UPSTREAM: cgroup: remove unnecessary unlikely() kernel/cgroup/cgroup.c * UPSTREAM: cgroup: Simplify cgroup_ancestor include/linux/cgroup.h Merge 4.19.142 into android-4.19-stable Linux 4.19.142 KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set * KVM: Pass MMU notifier range flags to kvm_unmap_hva_range() arch/arm64/include/asm/kvm_host.h * clk: Evict unregistered clks from parent caches drivers/clk/clk.c xen: don't reschedule in preemption off sections mm/hugetlb: fix calculation of adjust_range_if_pmd_sharing_possible * do_epoll_ctl(): clean the failure exits up a bit fs/eventpoll.c * epoll: Keep a reference on files added to the check list fs/eventpoll.c efi: add missed destroy_workqueue when efisubsys_init fails powerpc/pseries: Do not initiate shutdown when system is running on UPS net: dsa: b53: check for timeout hv_netvsc: Fix the queue_mapping in netvsc_vf_xmit() net: gemini: Fix missing free_netdev() in error path of gemini_ethernet_port_probe() net: ena: Prevent reset after device destruction * bonding: fix active-backup failover for current ARP slave drivers/net/bonding/bond_main.c afs: Fix NULL deref in afs_dynroot_depopulate() RDMA/bnxt_re: Do not add user qps to flushlist Fix build error when CONFIG_ACPI is not set/enabled: efi: avoid error message when booting under Xen kconfig: qconf: fix signal connection to invalid slots kconfig: qconf: do not limit the pop-up menu to the first row kvm: x86: Toggling CR4.PKE does not load PDPTEs in PAE mode kvm: x86: Toggling CR4.SMAP does not load PDPTEs in PAE mode vfio/type1: Add proper error unwind for vfio_iommu_replay() ASoC: intel: Fix memleak in sst_media_open ASoC: msm8916-wcd-analog: fix register Interrupt offset s390/ptrace: fix storage key handling s390/runtime_instrumentation: fix storage key handling * bonding: fix a potential double-unregister drivers/net/bonding/bond_main.c * bonding: show saner speed for broadcast mode drivers/net/bonding/bond_main.c net: fec: correct the error path for regulator disable in probe i40e: Fix crash during removing i40e driver i40e: Set RX_ONLY mode for unicast promiscuous on VLAN ASoC: q6routing: add dummy register read/write function * ext4: don't allow overlapping system zones fs/ext4/block_validity.c * ext4: fix potential negative array index in do_split() fs/ext4/namei.c * fs/signalfd.c: fix inconsistent return codes for signalfd4 fs/signalfd.c alpha: fix annotation of io{read,write}{16,32}be() xfs: Fix UBSAN null-ptr-deref in xfs_sysfs_init tools/testing/selftests/cgroup/cgroup_util.c: cg_read_strcmp: fix null pointer dereference virtio_ring: Avoid loop when vq is broken in virtqueue_poll scsi: libfc: Free skb in fc_disc_gpn_id_resp() for valid cases cpufreq: intel_pstate: Fix cpuinfo_max_freq when MSR_TURBO_RATIO_LIMIT is 0 ceph: fix use-after-free for fsc->mdsc jffs2: fix UAF problem xfs: fix inode quota reservation checks svcrdma: Fix another Receive buffer leak m68knommu: fix overwriting of bits in ColdFire V3 cache control Input: psmouse - add a newline when printing 'proto' by sysfs media: vpss: clean up resources in init rtc: goldfish: Enable interrupt in set_alarm() when necessary media: budget-core: Improve exception handling in budget_register() scsi: target: tcmu: Fix crash in tcmu_flush_dcache_range on ARM * scsi: ufs: Add DELAY_BEFORE_LPM quirk for Micron devices drivers/scsi/ufs/ufs_quirks.h drivers/scsi/ufs/ufshcd.c * spi: Prevent adding devices below an unregistering controller drivers/spi/Kconfig drivers/spi/spi.c * kthread: Do not preempt current task if it is going to call schedule() kernel/kthread.c drm/amd/display: fix pow() crashing when given base 0 scsi: zfcp: Fix use-after-free in request timeout handlers * jbd2: add the missing unlock_buffer() in the error path of jbd2_write_superblock() fs/jbd2/journal.c * ext4: fix checking of directory entry validity for inline directories fs/ext4/namei.c * mm, page_alloc: fix core hung in free_pcppages_bulk() mm/page_alloc.c * mm: include CMA pages in lowmem_reserve at boot mm/page_alloc.c kernel/relay.c: fix memleak on destroy relay channel romfs: fix uninitialized memory leak in romfs_dev_read() btrfs: sysfs: use NOFS for device creation btrfs: inode: fix NULL pointer dereference if inode doesn't need compression btrfs: Move free_pages_out label in inline extent handling branch in compress_file_range btrfs: don't show full path of bind mounts in subvol= btrfs: export helpers for subvolume name/id resolution khugepaged: adjust VM_BUG_ON_MM() in __khugepaged_enter() khugepaged: khugepaged_test_exit() check mmget_still_valid() perf probe: Fix memory leakage when the probe point is not found drm/vgem: Replace opencoded version of drm_gem_dumb_map_offset() * ANDROID: tty: fix tty name overflow drivers/tty/serdev/serdev-ttyport.c * ANDROID: Revert "PCI: Probe bridge window attributes once at enumeration-time" drivers/pci/probe.c drivers/pci/setup-bus.c include/linux/pci.h Merge 4.19.141 into android-4.19-stable Linux 4.19.141 drm/amdgpu: Fix bug where DPM is not enabled after hibernate and resume * drm: Added orientation quirk for ASUS tablet model T103HAF drivers/gpu/drm/drm_panel_orientation_quirks.c arm64: dts: marvell: espressobin: add ethernet alias khugepaged: retract_page_tables() remember to test exit sh: landisk: Add missing initialization of sh_io_port_base tools build feature: Quote CC and CXX for their arguments perf bench mem: Always memset source before memcpy ALSA: echoaudio: Fix potential Oops in snd_echo_resume() mfd: dln2: Run event handler loop under spinlock test_kmod: avoid potential double free in trigger_config_run_type() fs/ufs: avoid potential u32 multiplication overflow fs/minix: remove expected error message in block_to_path() fs/minix: fix block limit check for V1 filesystems fs/minix: set s_maxbytes correctly nfs: Fix getxattr kernel panic and memory overflow net: qcom/emac: add missed clk_disable_unprepare in error path of emac_clks_phase1_init drm/vmwgfx: Fix two list_for_each loop exit tests drm/vmwgfx: Use correct vmw_legacy_display_unit pointer Input: sentelic - fix error return when fsp_reg_write fails * watchdog: initialize device before misc_register drivers/watchdog/watchdog_dev.c scsi: lpfc: nvmet: Avoid hang / use-after-free again when destroying targetport openrisc: Fix oops caused when dumping stack i2c: rcar: avoid race when unregistering slave tools build feature: Use CC and CXX from parent pwm: bcm-iproc: handle clk_get_rate() return clk: clk-atlas6: fix return value check in atlas6_clk_init() i2c: rcar: slave: only send STOP event when we have been addressed * iommu/vt-d: Enforce PASID devTLB field mask include/linux/intel-iommu.h iommu/omap: Check for failure of a call to omap_iommu_dump_ctx selftests/powerpc: ptrace-pkey: Don't update expected UAMOR value selftests/powerpc: ptrace-pkey: Update the test to mark an invalid pkey correctly selftests/powerpc: ptrace-pkey: Rename variables to make it easier to follow code * dm rq: don't call blk_mq_queue_stopped() in dm_stop_queue() drivers/md/dm-rq.c gpu: ipu-v3: image-convert: Combine rotate/no-rotate irq handlers mmc: renesas_sdhi_internal_dmac: clean up the code for dma complete USB: serial: ftdi_sio: clean up receive processing USB: serial: ftdi_sio: make process-packet buffer unsigned media: rockchip: rga: Only set output CSC mode for RGB input media: rockchip: rga: Introduce color fmt macros and refactor CSC mode logic RDMA/ipoib: Fix ABBA deadlock with ipoib_reap_ah() RDMA/ipoib: Return void from ipoib_ib_dev_stop() mfd: arizona: Ensure 32k clock is put on driver unbind and error drm/imx: imx-ldb: Disable both channels for split mode in enc->disable() remoteproc: qcom: q6v5: Update running state before requesting stop perf intel-pt: Fix FUP packet state * module: Correctly truncate sysfs sections output kernel/module.c pseries: Fix 64 bit logical memory block panic watchdog: f71808e_wdt: clear watchdog timeout occurred flag watchdog: f71808e_wdt: remove use of wrong watchdog_info option watchdog: f71808e_wdt: indicate WDIOF_CARDRESET support in watchdog_info.options * tracing: Use trace_sched_process_free() instead of exit() for pid tracing kernel/trace/trace_events.c tracing/hwlat: Honor the tracing_cpumask kprobes: Fix NULL pointer dereference at kprobe_ftrace_handler ftrace: Setup correct FTRACE_FL_REGS flags for module * mm/page_counter.c: fix protection usage propagation mm/page_counter.c ocfs2: change slot number type s16 to u16 ext2: fix missing percpu_counter_inc MIPS: CPU#0 is not hotpluggable * driver core: Avoid binding drivers to dead devices drivers/base/dd.c mac80211: fix misplaced while instead of if bcache: fix overflow in offset_to_stripe() bcache: allocate meta data pages as compound pages md/raid5: Fix Force reconstruct-write io stuck in degraded raid5 * net/compat: Add missing sock updates for SCM_RIGHTS include/net/sock.h net/compat.c net/core/sock.c net: stmmac: dwmac1000: provide multicast filter fallback net: ethernet: stmmac: Disable hardware multicast filter media: vsp1: dl: Fix NULL pointer dereference on unbind powerpc: Fix circular dependency between percpu.h and mmu.h powerpc: Allow 4224 bytes of stack expansion for the signal frame cifs: Fix leak when handling lease break for cached root fid xtensa: fix xtensa_pmu_setup prototype iio: dac: ad5592r: fix unbalanced mutex unlocks in ad5592r_read_raw() dt-bindings: iio: io-channel-mux: Fix compatible string in example code btrfs: fix return value mixup in btrfs_get_extent btrfs: fix memory leaks after failure to lookup checksums during inode logging btrfs: only search for left_info if there is no right_info in try_merge_free_space btrfs: fix messages after changing compression level by remount btrfs: open device without device_list_mutex btrfs: don't traverse into the seed devices in show_devname btrfs: ref-verify: fix memory leak in add_block_entry btrfs: don't allocate anonymous block device for user invisible roots btrfs: free anon block device right after subvolume deletion * PCI: Probe bridge window attributes once at enumeration-time drivers/pci/probe.c drivers/pci/setup-bus.c include/linux/pci.h PCI: qcom: Add support for tx term offset for rev 2.1.0 PCI: qcom: Define some PARF params needed for ipq8064 SoC * PCI: Add device even if driver attach failed drivers/pci/bus.c * PCI: Mark AMD Navi10 GPU rev 0x00 ATS as broken drivers/pci/quirks.c PCI: hotplug: ACPI: Fix context refcounting in acpiphp_grab_context() * genirq/affinity: Make affinity setting if activated opt-in drivers/irqchip/irq-gic-v3-its.c include/linux/irq.h kernel/irq/manage.c smb3: warn on confusing error scenario with sec=krb5 ANDROID: ABI: update the ABI xml representation * Revert "ALSA: usb-audio: work around streaming quirk for MacroSilicon MS2109" sound/usb/card.h sound/usb/pcm.c sound/usb/quirks.c sound/usb/stream.c Merge 4.19.140 into android-4.19-stable Linux 4.19.140 xen/gntdev: Fix dmabuf import with non-zero sgt offset xen/balloon: make the balloon wait interruptible xen/balloon: fix accounting in alloc_xenballooned_pages error path irqdomain/treewide: Free firmware node after domain removal ARM: 8992/1: Fix unwind_frame for clang-built kernels parisc: mask out enable and reserved bits from sba imask parisc: Implement __smp_store_release and __smp_load_acquire barriers mtd: rawnand: qcom: avoid write to unavailable register * spi: spidev: Align buffers for DMA drivers/spi/spidev.c * include/asm-generic/vmlinux.lds.h: align ro_after_init include/asm-generic/vmlinux.lds.h cpufreq: dt: fix oops on armada37xx NFS: Don't return layout segments that are in use NFS: Don't move layouts to plh_return_segs list while in use drm/ttm/nouveau: don't call tt destroy callback on alloc failure. 9p: Fix memory leak in v9fs_mount * ALSA: usb-audio: add quirk for Pioneer DDJ-RB sound/usb/quirks-table.h fs/minix: reject too-large maximum file size fs/minix: don't allow getting deleted inodes fs/minix: check return value of sb_getblk() * bitfield.h: don't compile-time validate _val in FIELD_FIT include/linux/bitfield.h crypto: cpt - don't sleep of CRYPTO_TFM_REQ_MAY_SLEEP was not specified crypto: ccp - Fix use of merged scatterlists crypto: qat - fix double free in qat_uclo_create_batch_init_list crypto: hisilicon - don't sleep of CRYPTO_TFM_REQ_MAY_SLEEP was not specified * pstore: Fix linking when crypto API disabled fs/pstore/platform.c * ALSA: usb-audio: work around streaming quirk for MacroSilicon MS2109 sound/usb/card.h sound/usb/pcm.c sound/usb/quirks.c sound/usb/stream.c * ALSA: usb-audio: fix overeager device match for MacroSilicon MS2109 sound/usb/quirks-table.h * ALSA: usb-audio: Creative USB X-Fi Pro SB1095 volume knob support sound/usb/mixer_quirks.c ALSA: hda - fix the micmute led status for Lenovo ThinkCentre AIO USB: serial: cp210x: enable usb generic throttle/unthrottle USB: serial: cp210x: re-enable auto-RTS on open * net: initialize fastreuse on inet_inherit_port net/ipv4/inet_hashtables.c * net: refactor bind_bucket fastreuse into helper include/net/inet_connection_sock.h net/ipv4/inet_connection_sock.c net/tls: Fix kmap usage * net: Set fput_needed iff FDPUT_FPUT is set net/socket.c net/nfc/rawsock.c: add CAP_NET_RAW check. drivers/net/wan/lapbether: Added needed_headroom and a skb->len check * af_packet: TPACKET_V3: fix fill status rwlock imbalance net/packet/af_packet.c crypto: aesni - add compatibility with IAS x86/fsgsbase/64: Fix NULL deref in 86_fsgsbase_read_task svcrdma: Fix page leak in svc_rdma_recv_read_chunk() pinctrl-single: fix pcs_parse_pinconf() return value ocfs2: fix unbalanced locking dlm: Fix kobject memleak fsl/fman: fix eth hash table allocation fsl/fman: check dereferencing null pointer fsl/fman: fix unreachable code fsl/fman: fix dereference null return value fsl/fman: use 32-bit unsigned integer net: spider_net: Fix the size used in a 'dma_free_coherent()' call liquidio: Fix wrong return value in cn23xx_get_pf_num() net: ethernet: aquantia: Fix wrong return value tools, build: Propagate build failures from tools/build/Makefile.build wl1251: fix always return 0 error s390/qeth: don't process empty bridge port events ASoC: meson: axg-tdm-interface: fix link fmt setup selftests/powerpc: Fix online CPU selection * PCI: Release IVRS table in AMD ACS quirk drivers/pci/quirks.c selftests/powerpc: Fix CPU affinity for child process powerpc/boot: Fix CONFIG_PPC_MPC52XX references net: dsa: rtl8366: Fix VLAN set-up net: dsa: rtl8366: Fix VLAN semantics Bluetooth: hci_serdev: Only unregister device if it was registered Bluetooth: hci_h5: Set HCI_UART_RESET_ON_INIT to correct flags power: supply: check if calc_soc succeeded in pm860x_init_battery * Smack: prevent underflow in smk_set_cipso() security/smack/smackfs.c * Smack: fix another vsscanf out of bounds security/smack/smackfs.c RDMA/core: Fix return error value in _ib_modify_qp() to negative PCI: cadence: Fix updating Vendor ID and Subsystem Vendor ID register net: dsa: mv88e6xxx: MV88E6097 does not support jumbo configuration scsi: mesh: Fix panic after host or bus reset usb: dwc2: Fix error path in gadget registration MIPS: OCTEON: add missing put_device() call in dwc3_octeon_device_init() coresight: tmc: Fix TMC mode read in tmc_read_unprepare_etb() thermal: ti-soc-thermal: Fix reversed condition in ti_thermal_expose_sensor() * usb: core: fix quirks_param_set() writing to a const pointer drivers/usb/core/quirks.c USB: serial: iuu_phoenix: fix led-activity helpers drm/imx: tve: fix regulator_disable error path powerpc/book3s64/pkeys: Use PVR check instead of cpu feature PCI/ASPM: Add missing newline in sysfs 'policy' staging: rtl8192u: fix a dubious looking mask before a shift RDMA/rxe: Prevent access to wr->next ptr afrer wr is posted to send queue RDMA/qedr: SRQ's bug fixes powerpc/vdso: Fix vdso cpu truncation mwifiex: Prevent memory corruption handling keys scsi: scsi_debug: Add check for sdebug_max_queue during module init drm/bridge: sil_sii8620: initialize return of sii8620_readb phy: exynos5-usbdrd: Calibrating makes sense only for USB2.0 PHY drm: panel: simple: Fix bpc for LG LB070WV8 panel * leds: core: Flush scheduled work for system suspend drivers/leds/led-class.c * PCI: Fix pci_cfg_wait queue locking problem drivers/pci/access.c RDMA/rxe: Skip dgid check in loopback mode xfs: fix reflink quota reservation accounting error xfs: don't eat an EIO/ENOSPC writeback error when scrubbing data fork media: exynos4-is: Add missed check for pinctrl_lookup_state() media: firewire: Using uninitialized values in node_probe() * ipvs: allow connection reuse for unconfirmed conntrack include/net/ip_vs.h scsi: eesox: Fix different dev_id between request_irq() and free_irq() scsi: powertec: Fix different dev_id between request_irq() and free_irq() drm/radeon: fix array out-of-bounds read and write issues cxl: Fix kobject memleak * drm/mipi: use dcs write for mipi_dsi_dcs_set_tear_scanline drivers/gpu/drm/drm_mipi_dsi.c scsi: cumana_2: Fix different dev_id between request_irq() and free_irq() ASoC: Intel: bxt_rt298: add missing .owner field media: omap3isp: Add missed v4l2_ctrl_handler_free() for preview_init_entities() leds: lm355x: avoid enum conversion warning drm/arm: fix unintentional integer overflow on left shift drm/etnaviv: Fix error path on failure to enable bus clk iio: improve IIO_CONCENTRATION channel type description ath10k: Acquire tx_lock in tx error paths video: pxafb: Fix the function used to balance a 'dma_alloc_coherent()' call console: newport_con: fix an issue about leak related system resources video: fbdev: sm712fb: fix an issue about iounmap for a wrong address agp/intel: Fix a memory leak on module initialisation failure drm/msm: ratelimit crtc event overflow error ACPICA: Do not increment operation_region reference counts for field units bcache: fix super block seq numbers comparision in register_cache_set() dyndbg: fix a BUG_ON in ddebug_describe_flags usb: bdc: Halt controller on suspend bdc: Fix bug causing crash after multiple disconnects usb: gadget: net2280: fix memory leak on probe error handling paths gpu: host1x: debug: Fix multiple channels emitting messages simultaneously iwlegacy: Check the return value of pcie_capability_read_*() brcmfmac: set state of hanger slot to FREE when flushing PSQ brcmfmac: To fix Bss Info flag definition Bug brcmfmac: keep SDIO watchdog running when console_interval is non-zero * mm/mmap.c: Add cond_resched() for exit_mmap() CPU stalls mm/mmap.c irqchip/irq-mtk-sysirq: Replace spinlock with raw_spinlock drm/radeon: disable AGP by default * drm/debugfs: fix plain echo to connector "force" attribute drivers/gpu/drm/drm_debugfs.c usb: mtu3: clear dual mode of u3port when disable device drm/nouveau: fix multiple instances of reference count leaks drm/etnaviv: fix ref count leak via pm_runtime_get_sync arm64: dts: hisilicon: hikey: fixes to comply with adi, adv7533 DT binding md-cluster: fix wild pointer of unlock_all_bitmaps() video: fbdev: neofb: fix memory leak in neo_scan_monitor() crypto: aesni - Fix build with LLVM_IAS=1 drm/radeon: Fix reference count leaks caused by pm_runtime_get_sync drm/amdgpu: avoid dereferencing a NULL pointer fs/btrfs: Add cond_resched() for try_release_extent_mapping() stalls * loop: be paranoid on exit and prevent new additions / removals drivers/block/loop.c Bluetooth: add a mutex lock to avoid UAF in do_enale_set * soc: qcom: rpmh-rsc: Set suppress_bind_attrs flag drivers/soc/qcom/rpmh-rsc.c drm/tilcdc: fix leak & null ref in panel_connector_get_modes ARM: socfpga: PM: add missing put_device() call in socfpga_setup_ocram_self_refresh() spi: lantiq: fix: Rx overflow error in full duplex mode ARM: at91: pm: add missing put_device() call in at91_pm_sram_init() ARM: dts: gose: Fix ports node name for adv7612 ARM: dts: gose: Fix ports node name for adv7180 platform/x86: intel-vbtn: Fix return value check in check_acpi_dev() platform/x86: intel-hid: Fix return value check in check_acpi_dev() m68k: mac: Fix IOP status/control register writes m68k: mac: Don't send IOP message until channel is idle clk: scmi: Fix min and max rate when registering clocks with discrete rates arm64: dts: exynos: Fix silent hang after boot on Espresso firmware: arm_scmi: Fix SCMI genpd domain probing crypto: ccree - fix resource leak on error path arm64: dts: qcom: msm8916: Replace invalid bias-pull-none property * EDAC: Fix reference count leaks drivers/edac/edac_device_sysfs.c drivers/edac/edac_pci_sysfs.c arm64: dts: rockchip: fix rk3399-puma gmac reset gpio arm64: dts: rockchip: fix rk3399-puma vcc5v0-host gpio arm64: dts: rockchip: fix rk3368-lion gmac reset gpio * sched: correct SD_flags returned by tl->sd_flags() kernel/sched/topology.c * sched/fair: Fix NOHZ next idle balance kernel/sched/fair.c x86/mce/inject: Fix a wrong assignment of i_mce.status * cgroup: add missing skcd->no_refcnt check in cgroup_sk_clone() kernel/cgroup/cgroup.c * HID: input: Fix devices that return multiple bytes in battery report drivers/hid/hid-input.c * tracepoint: Mark __tracepoint_string's __used include/linux/tracepoint.h * ANDROID: fix a bug in quota2 net/netfilter/xt_quota2.c ANDROID: Update the ABI xml based on the new driver core padding * ANDROID: GKI: add some padding to some driver core structures include/linux/device.h include/linux/fwnode.h ANDROID: GKI: Update the ABI xml representation * ANDROID: sched: add "frozen" field to task_struct include/linux/sched.h * ANDROID: cgroups: add v2 freezer ABI changes include/linux/cgroup-defs.h * ANDROID: cgroups: ABI padding include/linux/cgroup-defs.h Merge 4.19.139 into android-4.19-stable Linux 4.19.139 * Smack: fix use-after-free in smk_write_relabel_self() security/smack/smackfs.c i40e: Memory leak in i40e_config_iwarp_qvlist i40e: Fix of memory leak and integer truncation in i40e_virtchnl.c i40e: Wrong truncation from u16 to u8 i40e: add num_vectors checker in iwarp handler rxrpc: Fix race between recvmsg and sendmsg on immediate call failure selftests/net: relax cpu affinity requirement in msg_zerocopy test Revert "vxlan: fix tos value before xmit" openvswitch: Prevent kernel-infoleak in ovs_ct_put_key() net: thunderx: use spin_lock_bh in nicvf_set_rx_mode_task() * net: gre: recompute gre csum for sctp over gre tunnels net/ipv4/gre_offload.c hv_netvsc: do not use VF device if link is down net: lan78xx: replace bogus endpoint lookup vxlan: Ensure FDB dump is performed under RCU net: ethernet: mtk_eth_soc: fix MTU warnings * ipv6: fix memory leaks on IPV6_ADDRFORM path include/net/addrconf.h net/ipv6/anycast.c net/ipv6/ipv6_sockglue.c * ipv4: Silence suspicious RCU usage warning net/ipv4/fib_trie.c * xattr: break delegations in {set,remove}xattr fs/xattr.c include/linux/xattr.h * Drivers: hv: vmbus: Ignore CHANNELMSG_TL_CONNECT_RESULT(23) include/linux/hyperv.h tools lib traceevent: Fix memory leak in process_dynamic_array_len atm: fix atm_dev refcnt leaks in atmtcp_remove_persistent igb: reinit_locked() should be called with rtnl_lock * cfg80211: check vendor command doit pointer before use net/wireless/nl80211.c firmware: Fix a reference count leak. usb: hso: check for return value in hso_serial_common_create() i2c: slave: add sanity check when unregistering i2c: slave: improve sanity check when registering drm/nouveau/fbcon: zero-initialise the mode_cmd2 structure drm/nouveau/fbcon: fix module unload when fbcon init has failed for some reason net/9p: validate fds in p9_fd_open leds: 88pm860x: fix use-after-free on unbind leds: lm3533: fix use-after-free on unbind leds: da903x: fix use-after-free on unbind leds: wm831x-status: fix use-after-free on unbind mtd: properly check all write ioctls for permissions vgacon: Fix for missing check in scrollback handling * binder: Prevent context manager from incrementing ref 0 drivers/android/binder.c omapfb: dss: Fix max fclk divider for omap36xx * Bluetooth: Prevent out-of-bounds read in hci_inquiry_result_with_rssi_evt() net/bluetooth/hci_event.c * Bluetooth: Prevent out-of-bounds read in hci_inquiry_result_evt() net/bluetooth/hci_event.c * Bluetooth: Fix slab-out-of-bounds read in hci_extended_inquiry_result_evt() net/bluetooth/hci_event.c * staging: android: ashmem: Fix lockdep warning for write operation drivers/staging/android/ashmem.c ALSA: seq: oss: Serialize ioctls Revert "ALSA: hda: call runtime_allow() for all hda controllers" * usb: xhci: Fix ASMedia ASM1142 DMA addressing drivers/usb/host/xhci-pci.c * usb: xhci: define IDs for various ASMedia host controllers drivers/usb/host/xhci-pci.c USB: iowarrior: fix up report size handling for some devices USB: serial: qcserial: add EM7305 QDL product ID * BACKPORT: loop: Fix wrong masking of status flags drivers/block/loop.c * BACKPORT: loop: Add LOOP_CONFIGURE ioctl drivers/block/loop.c include/uapi/linux/loop.h * BACKPORT: loop: Clean up LOOP_SET_STATUS lo_flags handling drivers/block/loop.c include/uapi/linux/loop.h * BACKPORT: loop: Rework lo_ioctl() __user argument casting drivers/block/loop.c * BACKPORT: loop: Move loop_set_status_from_info() and friends up drivers/block/loop.c * BACKPORT: loop: Factor out configuring loop from status drivers/block/loop.c * BACKPORT: loop: Remove figure_loop_size() drivers/block/loop.c * BACKPORT: loop: Refactor loop_set_status() size calculation drivers/block/loop.c * BACKPORT: loop: Factor out setting loop device size drivers/block/loop.c * BACKPORT: loop: Remove sector_t truncation checks drivers/block/loop.c * BACKPORT: loop: Call loop_config_discard() only after new config is applied drivers/block/loop.c Merge 4.19.138 into android-4.19-stable Linux 4.19.138 * ext4: fix direct I/O read error fs/ext4/inode.c * random32: move the pseudo-random 32-bit definitions to prandom.h include/linux/prandom.h include/linux/random.h * random32: remove net_rand_state from the latent entropy gcc plugin include/linux/random.h lib/random32.c * random: fix circular include dependency on arm64 after addition of percpu.h include/linux/random.h ARM: percpu.h: fix build error * random32: update the net random state on interrupt and activity drivers/char/random.c include/linux/random.h kernel/time/timer.c lib/random32.c ANDROID: GKI: update the ABI xml * ANDROID: GKI: power: Add property to enable/disable cc toggle drivers/power/supply/power_supply_sysfs.c include/linux/power_supply.h ANDROID: Enforce KMI stability Merge 4.19.137 into android-4.19-stable Linux 4.19.137 x86/i8259: Use printk_deferred() to prevent deadlock KVM: LAPIC: Prevent setting the tscdeadline timer if the lapic is hw disabled xen-netfront: fix potential deadlock in xennet_remove() cxgb4: add missing release on skb in uld_send() x86/unwind/orc: Fix ORC for newly forked tasks Revert "i2c: cadence: Fix the hold bit setting" net: ethernet: ravb: exit if re-initialization fails in tx timeout parisc: add support for cmpxchg on u8 pointers nfc: s3fwrn5: add missing release on skb in s3fwrn5_recv_frame qed: Disable "MFW indication via attention" SPAM every 5 minutes usb: hso: Fix debug compile warning on sparc32 net/mlx5e: fix bpf_prog reference count leaks in mlx5e_alloc_rq net: gemini: Fix missing clk_disable_unprepare() in error path of gemini_ethernet_port_probe() * Bluetooth: fix kernel oops in store_pending_adv_report net/bluetooth/hci_event.c * arm64: csum: Fix handling of bad packets arch/arm64/include/asm/checksum.h * arm64/alternatives: move length validation inside the subsection arch/arm64/include/asm/alternative.h mac80211: mesh: Free pending skb when destroying a mpath mac80211: mesh: Free ie data when leaving mesh * bpf: Fix map leak in HASH_OF_MAPS map kernel/bpf/hashtab.c ibmvnic: Fix IRQ mapping disposal in error path mlxsw: core: Free EMAD transactions using kfree_rcu() mlxsw: core: Increase scope of RCU read-side critical section mlx4: disable device on shutdown net: lan78xx: fix transfer-buffer memory leak net: lan78xx: add missing endpoint sanity check net/mlx5: Verify Hardware supports requested ptp function on a given pin sh: Fix validation of system call number selftests/net: psock_fanout: fix clang issues for target arch PowerPC selftests/net: rxtimestamp: fix clang issues for target arch PowerPC * xfrm: Fix crash when the hold queue is used. include/net/xfrm.h net/x25: Fix null-ptr-deref in x25_disconnect net/x25: Fix x25_neigh refcnt leak when x25 disconnect xfs: fix missed wakeup on l_flush_wait rds: Prevent kernel-infoleak in rds_notify_queue_get() * drm: hold gem reference until object is no longer accessed drivers/gpu/drm/drm_gem.c drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl() Revert "drm/amdgpu: Fix NULL dereference in dpm sysfs handlers" ARM: 8986/1: hw_breakpoint: Don't invoke overflow handler on uaccess watchpoints * wireless: Use offsetof instead of custom macro. include/uapi/linux/wireless.h 9p/trans_fd: Fix concurrency del of req_list in p9_fd_cancelled/p9_read_work * PCI/ASPM: Disable ASPM on ASMedia ASM1083/1085 PCIe-to-PCI bridge drivers/pci/quirks.c Btrfs: fix selftests failure due to uninitialized i_mode in test inodes * sctp: implement memory accounting on tx path net/sctp/socket.c btrfs: inode: Verify inode mode to avoid NULL pointer dereference drm/amd/display: prevent memory leak ath9k: release allocated buffer if timed out ath9k_htc: release allocated buffer if timed out * tracing: Have error path in predicate_parse() free its allocated memory kernel/trace/trace_events_filter.c drm/amdgpu: fix multiple memory leaks in acp_hw_init iio: imu: adis16400: fix memory leak media: rc: prevent memory leak in cx23888_ir_probe crypto: ccp - Release all allocated memory if sha type is invalid * ANDROID: GKI: kernel: tick-sched: Move wake callback registration code kernel/time/tick-sched.c Merge 4.19.136 into android-4.19-stable Linux 4.19.136 * regmap: debugfs: check count when read regmap file drivers/base/regmap/regmap-debugfs.c * rtnetlink: Fix memory(net_device) leak when ->newlink fails net/core/rtnetlink.c * udp: Improve load balancing for SO_REUSEPORT. net/ipv4/udp.c net/ipv6/udp.c * udp: Copy has_conns in reuseport_grow(). net/core/sock_reuseport.c * sctp: shrink stream outq when fails to do addstream reconf net/sctp/stream.c * sctp: shrink stream outq only when new outcnt < old outcnt net/sctp/stream.c AX.25: Prevent integer overflows in connect and sendmsg * tcp: allow at most one TLP probe per flight include/linux/tcp.h net/ipv4/tcp_input.c net/ipv4/tcp_output.c rxrpc: Fix sendmsg() returning EPIPE due to recvmsg() returning ENODATA * qrtr: orphan socket in qrtr_release() net/qrtr/qrtr.c * net: udp: Fix wrong clean up for IS_UDPLITE macro net/ipv4/udp.c net/ipv6/udp.c * net-sysfs: add a newline when printing 'tx_timeout' by sysfs net/core/net-sysfs.c ip6_gre: fix null-ptr-deref in ip6gre_init_net() drivers/net/wan/x25_asy: Fix to make it work * dev: Defer free of skbs in flush_backlog net/core/dev.c AX.25: Prevent out-of-bounds read in ax25_sendmsg() AX.25: Fix out-of-bounds read in ax25_connect() Change-Id: Icec947c4e82f9b19199b4507b521f7a9285c6e03 Signed-off-by: lucaswei <lucaswei@google.com>
| * locking/lockdep: Fix overflow in presentation of average lock-timeChris Wilson2020-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit a7ef9b28aa8d72a1656fa6f0a01bbd1493886317 ] Though the number of lock-acquisitions is tracked as unsigned long, this is passed as the divisor to div_s64() which interprets it as a s32, giving nonsense values with more than 2 billion acquisitons. E.g. acquisitions holdtime-min holdtime-max holdtime-total holdtime-avg ------------------------------------------------------------------------- 2350439395 0.07 353.38 649647067.36 0.-32 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20200725185110.11588-1-chris@chris-wilson.co.uk Signed-off-by: Sasha Levin <sashal@kernel.org>
* | Merge android-4.19-stable (4.19.125) into android-msm-pixel-4.19-ltslucaswei2020-09-162-4/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge 4.19.125 into android-4.19-stable Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-4.19.y' into android-4.19-stable Linux 4.19.125 rxrpc: Fix ack discard * rxrpc: Trace discarded ACKs include/trace/events/rxrpc.h iio: adc: stm32-dfsdm: fix device used to request dma iio: adc: stm32-dfsdm: Use dma_request_chan() instead dma_request_slave_channel() iio: adc: stm32-adc: fix device used to request dma iio: adc: stm32-adc: Use dma_request_chan() instead dma_request_slave_channel() x86/unwind/orc: Fix unwind_get_return_address_ptr() for inactive tasks rxrpc: Fix a memory leak in rxkad_verify_response() rapidio: fix an error in get_user_pages_fast() error handling ipack: tpci200: fix error return code in tpci200_register() mei: release me_cl object reference misc: rtsx: Add short delay after exit from ASPM iio: dac: vf610: Fix an error handling path in 'vf610_dac_probe()' iio: sca3000: Remove an erroneous 'get_device()' staging: greybus: Fix uninitialized scalar variable staging: iio: ad2s1210: Fix SPI reading Revert "gfs2: Don't demote a glock until its revokes are written" brcmfmac: abort and release host after error tty: serial: qcom_geni_serial: Fix wrap around of TX buffer cxgb4/cxgb4vf: Fix mac_hlist initialization and free cxgb4: free mac_hlist properly net: bcmgenet: abort suspend on error net: bcmgenet: code movement Revert "net/ibmvnic: Fix EOI when running in XIVE mode" media: fdp1: Fix R-Car M3-N naming in debug message thunderbolt: Drop duplicated get_switch_at_route() staging: most: core: replace strcpy() by strscpy() libnvdimm/btt: Fix LBA masking during 'free list' population libnvdimm/btt: Remove unnecessary code in btt_freelist_init * nfit: Add Hyper-V NVDIMM DSM command set to white list include/uapi/linux/ndctl.h powerpc/64s: Disable STRICT_KERNEL_RWX powerpc: Remove STRICT_KERNEL_RWX incompatibility with RELOCATABLE drm/i915/gvt: Init DPLL/DDI vreg for virtual display instead of inheritance. dmaengine: owl: Use correct lock in owl_dma_get_pchan() dmaengine: tegra210-adma: Fix an error handling path in 'tegra_adma_probe()' apparmor: Fix aa_label refcnt leak in policy_update apparmor: fix potential label refcnt leak in aa_change_profile apparmor: Fix use-after-free in aa_audit_rule_init drm/etnaviv: fix perfmon domain interation ALSA: hda/realtek - Add more fixup entries for Clevo machines ALSA: hda/realtek - Fix silent output on Gigabyte X570 Aorus Xtreme * ALSA: pcm: fix incorrect hw_base increase sound/core/pcm_lib.c ALSA: iec1712: Initialize STDSP24 properly when using the model=staudio option padata: purge get_cpu and reorder_via_wq from padata_do_serial padata: initialize pd->cpu with effective cpumask * padata: Replace delayed timer with immediate workqueue in padata_reorder include/linux/padata.h ARM: futex: Address build warning platform/x86: asus-nb-wmi: Do not load on Asus T100TA and T200TA * USB: core: Fix misleading driver bug report drivers/usb/core/message.c stmmac: fix pointer check after utilization in stmmac_interrupt ceph: fix double unlock in handle_cap_export() * HID: quirks: Add HID_QUIRK_NO_INIT_REPORTS quirk for Dell K12A keyboard-dock drivers/hid/hid-ids.h drivers/hid/hid-quirks.c gtp: set NLM_F_MULTI flag in gtp_genl_dump_pdp() x86/apic: Move TSC deadline timer debug printk * HID: i2c-hid: reset Synaptics SYNA2393 on resume drivers/hid/hid-ids.h scsi: ibmvscsi: Fix WARN_ON during event pool release * component: Silence bind error on -EPROBE_DEFER drivers/base/component.c aquantia: Fix the media type of AQC100 ethernet controller in the driver vhost/vsock: fix packet delivery order to monitoring devices * configfs: fix config_item refcnt leak in configfs_rmdir() fs/configfs/dir.c scsi: qla2xxx: Delete all sessions before unregister local nvme port scsi: qla2xxx: Fix hang when issuing nvme disconnect-all in NPIV * HID: alps: ALPS_1657 is too specific; use U1_UNICORN_LEGACY instead drivers/hid/hid-ids.h * HID: alps: Add AUI1657 device ID drivers/hid/hid-ids.h * HID: multitouch: add eGalaxTouch P80H84 support drivers/hid/hid-ids.h drivers/hid/hid-multitouch.c * gcc-common.h: Update for GCC 10 scripts/gcc-plugins/gcc-common.h ubi: Fix seq_file usage in detailed_erase_block_info debugfs file i2c: mux: demux-pinctrl: Fix an error handling path in 'i2c_demux_pinctrl_probe()' iommu/amd: Fix over-read of ACPI UID from IVRS table ubifs: remove broken lazytime support * fix multiplication overflow in copy_fdtable() fs/file.c mtd: spinand: Propagate ECC information to the MTD structure ima: Fix return value of ima_write_policy() evm: Check also if *tfm is an error pointer in init_desc() ima: Set file->f_mode instead of file->f_flags in ima_calc_file_hash() riscv: set max_pfn to the PFN of the last page KVM: SVM: Fix potential memory leak in svm_cpu_init() * i2c: dev: Fix the race between the release of i2c_dev and cdev drivers/i2c/i2c-dev.c * ubsan: build ubsan.c more conservatively lib/Makefile * x86/uaccess, ubsan: Fix UBSAN vs. SMAP lib/Makefile * ANDROID: scsi: ufs: Handle clocks when lrbp fails drivers/scsi/ufs/ufshcd.c * ANDROID: fscrypt: handle direct I/O with IV_INO_LBLK_32 fs/crypto/crypto.c fs/crypto/inline_crypt.c fs/direct-io.c fs/ext4/inode.c fs/f2fs/f2fs.h include/linux/fscrypt.h * BACKPORT: FROMLIST: fscrypt: add support for IV_INO_LBLK_32 policies fs/crypto/crypto.c fs/crypto/fscrypt_private.h fs/crypto/inline_crypt.c fs/crypto/keyring.c fs/crypto/keysetup.c fs/crypto/policy.c include/uapi/linux/fscrypt.h ANDROID: Update the ABI xml and qcom whitelist ANDROID: Fix build.config.gki-debug Merge 4.19.124 into android-4.19-stable Linux 4.19.124 * Makefile: disallow data races on gcc-10 as well Makefile KVM: x86: Fix off-by-one error in kvm_vcpu_ioctl_x86_setup_mce ARM: dts: r8a7740: Add missing extal2 to CPG node arm64: dts: renesas: r8a77980: Fix IPMMU VIP[01] nodes ARM: dts: r8a73a4: Add missing CMT1 interrupts arm64: dts: rockchip: Rename dwc3 device nodes on rk3399 to make dtc happy arm64: dts: rockchip: Replace RK805 PMIC node name with "pmic" on rk3328 boards * clk: Unlink clock if failed to prepare or enable drivers/clk/clk.c Revert "ALSA: hda/realtek: Fix pop noise on ALC225" usb: gadget: legacy: fix error return code in cdc_bind() usb: gadget: legacy: fix error return code in gncm_bind() usb: gadget: audio: Fix a missing error return value in audio_bind() usb: gadget: net2272: Fix a memory leak in an error handling path in 'net2272_plat_probe()' * dwc3: Remove check for HWO flag in dwc3_gadget_ep_reclaim_trb_sg() drivers/usb/dwc3/gadget.c clk: rockchip: fix incorrect configuration of rk3228 aclk_gpu* clocks * exec: Move would_dump into flush_old_exec fs/exec.c x86/unwind/orc: Fix error handling in __unwind_start() * x86: Fix early boot crash on gcc-10, third try include/linux/compiler.h init/main.c cifs: fix leaked reference on requeued write ARM: dts: imx27-phytec-phycard-s-rdk: Fix the I2C1 pinctrl entries ARM: dts: dra7: Fix bus_dma_limit for PCIe * usb: xhci: Fix NULL pointer dereference when enqueuing trbs from urb sg list drivers/usb/host/xhci-ring.c * USB: gadget: fix illegal array access in binding with UDC drivers/usb/gadget/configfs.c * usb: host: xhci-plat: keep runtime active when removing host drivers/usb/host/xhci-plat.c * usb: core: hub: limit HUB_QUIRK_DISABLE_AUTOSUSPEND to USB5534B drivers/usb/core/hub.c * ALSA: usb-audio: Add control message quirk delay for Kingston HyperX headset sound/usb/quirks.c * ALSA: rawmidi: Fix racy buffer resize under concurrent accesses include/sound/rawmidi.h sound/core/rawmidi.c ALSA: hda/realtek - Limit int mic boost for Thinkpad T530 * gcc-10: avoid shadowing standard library 'free()' in crypto crypto/xts.c * gcc-10: disable 'restrict' warning for now Makefile * gcc-10: disable 'stringop-overflow' warning for now Makefile * gcc-10: disable 'array-bounds' warning for now Makefile * gcc-10: disable 'zero-length-bounds' warning for now Makefile * Stop the ad-hoc games with -Wno-maybe-initialized Makefile init/Kconfig kernel/trace/Kconfig * kbuild: compute false-positive -Wmaybe-uninitialized cases in Kconfig Makefile init/Kconfig kernel/trace/Kconfig * gcc-10 warnings: fix low-hanging fruit include/linux/fs.h include/linux/tty.h * pnp: Use list_for_each_entry() instead of open coding include/linux/pnp.h hwmon: (da9052) Synchronize access with mfd IB/mlx4: Test return value of calls to ib_get_cached_pkey netfilter: nft_set_rbtree: Introduce and use nft_rbtree_interval_start() arm64: fix the flush_icache_range arguments in machine_kexec * netfilter: conntrack: avoid gcc-10 zero-length-bounds warning include/net/netfilter/nf_conntrack.h net/netfilter/nf_conntrack_core.c NFSv4: Fix fscache cookie aux_data to ensure change_attr is included nfs: fscache: use timespec64 in inode auxdata NFS: Fix fscache super_cookie index_key from changing after umount mmc: block: Fix request completion in the CQE timeout path mmc: core: Check request type before completing the request i40iw: Fix error handling in i40iw_manage_arp_cache() pinctrl: cherryview: Add missing spinlock usage in chv_gpio_irq_handler pinctrl: baytrail: Enable pin configuration setting for GPIO chip gfs2: Another gfs2_walk_metadata fix ALSA: hda/realtek - Fix S3 pop noise on Dell Wyse ipc/util.c: sysvipc_find_ipc() incorrectly updates position index drm/qxl: lost qxl_bo_kunmap_atomic_page in qxl_image_init_helper() ALSA: hda/hdmi: fix race in monitor detection during probe cpufreq: intel_pstate: Only mention the BIOS disabling turbo mode once dmaengine: mmp_tdma: Reset channel error on release dmaengine: pch_dma.c: Avoid data race between probe and irq handler riscv: fix vdso build with lld * tcp: fix SO_RCVLOWAT hangs with fat skbs include/net/tcp.h net/ipv4/tcp.c net/ipv4/tcp_input.c * net: tcp: fix rx timestamp behavior for tcp_recvmsg net/ipv4/tcp.c netprio_cgroup: Fix unlimited memory leak of v2 cgroups * net: ipv4: really enforce backoff for redirects net/ipv4/route.c net: dsa: loop: Add module soft dependency hinic: fix a bug of ndo_stop virtio_net: fix lockdep warning on 32 bit * tcp: fix error recovery in tcp_zerocopy_receive() net/ipv4/tcp.c * Revert "ipv6: add mtu lock check in __ip6_rt_update_pmtu" net/ipv6/route.c * pppoe: only process PADT targeted at local interfaces drivers/net/ppp/pppoe.c * net: phy: fix aneg restart in phy_ethtool_set_eee drivers/net/phy/phy.c * netlabel: cope with NULL catmap net/ipv4/cipso_ipv4.c net/ipv6/calipso.c net/netlabel/netlabel_kapi.c * net: fix a potential recursive NETDEV_FEAT_CHANGE net/core/dev.c mmc: sdhci-acpi: Add SDHCI_QUIRK2_BROKEN_64_BIT_DMA for AMDI0040 * scsi: sg: add sg_remove_request in sg_write drivers/scsi/sg.c virtio-blk: handle block_device_operations callbacks after hot unplug drop_monitor: work around gcc-10 stringop-overflow warning net: moxa: Fix a potential double 'free_irq()' net/sonic: Fix a resource leak in an error handling path in 'jazz_sonic_probe()' * shmem: fix possible deadlocks on shmlock_user_lock mm/shmem.c net: dsa: Do not make user port errors fatal * ANDROID: rtc: class: call hctosys in resource managed registration drivers/rtc/class.c ANDROID: GKI: Update the ABI xml and whitelist * ANDROID: power_supply: Add RTX power-supply property drivers/power/supply/power_supply_sysfs.c include/linux/power_supply.h * f2fs: flush dirty meta pages when flushing them fs/f2fs/checkpoint.c * f2fs: fix checkpoint=disable:%u%% fs/f2fs/f2fs.h fs/f2fs/super.c * f2fs: rework filename handling fs/f2fs/dir.c fs/f2fs/f2fs.h fs/f2fs/hash.c fs/f2fs/inline.c fs/f2fs/namei.c fs/f2fs/recovery.c * f2fs: split f2fs_d_compare() from f2fs_match_name() fs/f2fs/dir.c fs/f2fs/f2fs.h * f2fs: don't leak filename in f2fs_try_convert_inline_dir() fs/f2fs/inline.c ANDROID: clang: update to 11.0.1 FROMLIST: x86_64: fix jiffies ODR violation * ANDROID: arm64: vdso: Fix removing SCS flags arch/arm64/kernel/vdso/Makefile Merge branch 'android-4.19' into android-4.19-stable ANDROID: GKI: Update the ABI xml and whitelist * ANDROID: Incremental fs: wake up log pollers less often fs/incfs/data_mgmt.c fs/incfs/data_mgmt.h * ANDROID: Incremental fs: Fix scheduling while atomic error fs/incfs/vfs.c * ANDROID: Incremental fs: Avoid continually recalculating hashes fs/incfs/data_mgmt.c * ANDROID: export: Disable symbol trimming on modules include/linux/export.h ANDROID: GKI: Update the ABI xml and whitelist * ANDROID: fscrypt: set dun_bytes more precisely fs/crypto/inline_crypt.c * ANDROID: dm-default-key: set dun_bytes more precisely drivers/md/dm-default-key.c * ANDROID: block: backport the ability to specify max_dun_bytes block/blk-crypto.c block/keyslot-manager.c drivers/md/dm-default-key.c drivers/scsi/ufs/ufshcd-crypto.c fs/crypto/inline_crypt.c include/linux/bio-crypt-ctx.h include/linux/blk-crypto.h include/linux/keyslot-manager.h ANDROID: Revert "ANDROID: GKI: gki_defconfig: CONFIG_DM_DEFAULT_KEY=m" Merge 4.19.123 into android-4.19 Linux 4.19.123 ipc/mqueue.c: change __do_notify() to bypass check_kill_permission() scripts/decodecode: fix trapping instruction formatting objtool: Fix stack offset tracking for indirect CFAs netfilter: nf_osf: avoid passing pointer to local var * netfilter: nat: never update the UDP checksum when it's 0 net/netfilter/nf_nat_proto_udp.c x86/unwind/orc: Fix premature unwind stoppage due to IRET frames x86/unwind/orc: Fix error path for bad ORC entry type x86/unwind/orc: Prevent unwinding before ORC initialization x86/unwind/orc: Don't skip the first frame for inactive tasks x86/entry/64: Fix unwind hints in rewind_stack_do_exit() x86/entry/64: Fix unwind hints in kernel exit path x86/entry/64: Fix unwind hints in register clearing code batman-adv: Fix refcnt leak in batadv_v_ogm_process batman-adv: Fix refcnt leak in batadv_store_throughput_override batman-adv: Fix refcnt leak in batadv_show_throughput_override batman-adv: fix batadv_nc_random_weight_tq KVM: VMX: Mark RCX, RDX and RSI as clobbered in vmx_vcpu_run()'s asm blob KVM: VMX: Explicitly reference RCX as the vmx_vcpu pointer in asm blobs * coredump: fix crash when umh is disabled fs/coredump.c kernel/umh.c staging: gasket: Check the return value of gasket_get_bar_index() * mm/page_alloc: fix watchdog soft lockups during set_zone_contiguous() mm/page_alloc.c arm64: hugetlb: avoid potential NULL dereference KVM: arm64: Fix 32bit PC wrap-around KVM: arm: vgic: Fix limit condition when writing to GICD_I[CS]ACTIVER * tracing: Add a vmalloc_sync_mappings() for safe measure kernel/trace/trace.c USB: serial: garmin_gps: add sanity checking for data length USB: uas: add quirk for LaCie 2Big Quadra * HID: usbhid: Fix race between usbhid_close() and usbhid_stop() drivers/hid/usbhid/hid-core.c drivers/hid/usbhid/usbhid.h * sctp: Fix bundling of SHUTDOWN with COOKIE-ACK net/sctp/sm_statefuns.c HID: wacom: Read HID_DG_CONTACTMAX directly for non-generic devices * net: stricter validation of untrusted gso packets include/linux/virtio_net.h bnxt_en: Fix VF anti-spoof filter setup. bnxt_en: Improve AER slot reset. net/mlx5: Fix command entry leak in Internal Error State net/mlx5: Fix forced completion access non initialized command entry bnxt_en: Fix VLAN acceleration handling in bnxt_fix_features(). * tipc: fix partial topology connection closure net/tipc/topsrv.c sch_sfq: validate silly quantum values sch_choke: avoid potential panic in choke_reset() net: usb: qmi_wwan: add support for DW5816e net_sched: sch_skbprio: add message validation to skbprio_change() net/mlx4_core: Fix use of ENOSPC around mlx4_counter_alloc() net: macsec: preserve ingress frame ordering fq_codel: fix TCA_FQ_CODEL_DROP_BATCH_SIZE sanity checks dp83640: reverse arguments to list_add_tail vt: fix unicode console freeing with a common interface tracing/kprobes: Fix a double initialization typo USB: serial: qcserial: Add DW5816e support * ANDROID: usb: gadget: Add missing inline qualifier to stub functions include/linux/usb/gadget.h ANDROID: Drop ABI monitoring from KASAN build config ANDROID: Rename build.config.gki.arch_kasan ANDROID: GKI: Enable CONFIG_STATIC_USERMODEHELPER * ANDROID: dm-default-key: Update key size for wrapped keys drivers/md/dm-default-key.c ANDROID: gki_defconfig: enable CONFIG_MMC_CRYPTO * ANDROID: mmc: MMC crypto API drivers/mmc/core/Kconfig include/linux/mmc/core.h include/linux/mmc/host.h ANDROID: GKI: Update the ABI xml and whitelist * ANDROID: GKI: add missing exports for cam_smmu_api.ko drivers/iommu/dma-iommu.c Merge 4.19.122 into android-4.19 Linux 4.19.122 * drm/atomic: Take the atomic toys away from X drivers/gpu/drm/drm_ioctl.c cgroup, netclassid: remove double cond_resched * mac80211: add ieee80211_is_any_nullfunc() include/linux/ieee80211.h platform/x86: GPD pocket fan: Fix error message when temp-limits are out of range ALSA: hda: Match both PCI ID and SSID for driver blacklist hexagon: define ioremap_uc hexagon: clean up ioremap mfd: intel-lpss: Use devm_ioremap_uc for MMIO * lib: devres: add a helper function for ioremap_uc include/linux/io.h lib/devres.c drm/amdgpu: Fix oops when pp_funcs is unset in ACPI event * sctp: Fix SHUTDOWN CTSN Ack in the peer restart case net/sctp/sm_make_chunk.c net: systemport: suppress warnings on failed Rx SKB allocations net: bcmgenet: suppress warnings on failed Rx SKB allocations * lib/mpi: Fix building for powerpc with clang lib/mpi/longlong.h scripts/config: allow colons in option strings for sed s390/ftrace: fix potential crashes when switching tracers cifs: protect updating server->dstaddr with a spinlock ASoC: rsnd: Fix "status check failed" spam for multi-SSI ASoC: rsnd: Don't treat master SSI in multi SSI setup as parent net: stmmac: Fix sub-second increment net: stmmac: fix enabling socfpga's ptp_ref_clock wimax/i2400m: Fix potential urb refcnt leak drm/amdgpu: Correctly initialize thermal controller for GPUs with Powerplay table v0 (e.g Hawaii) ASoC: codecs: hdac_hdmi: Fix incorrect use of list_for_each_entry ASoC: rsnd: Fix HDMI channel mapping for multi-SSI mode ASoC: rsnd: Fix parent SSI start/stop in multi-SSI mode * usb: dwc3: gadget: Properly set maxpacket limit drivers/usb/dwc3/core.h drivers/usb/dwc3/gadget.c ASoC: sgtl5000: Fix VAG power-on handling selftests/ipc: Fix test failure seen after initial test run ASoC: topology: Check return value of pcm_new_ver powerpc/pci/of: Parse unassigned resources vhost: vsock: kick send_pkt worker once device is started ANDROID: GKI: fix build warning on 32bits due to ASoC msm change ANDROID: GKI: fix build error on 32bits due to ASoC msm change ANDROID: GKI: update abi definition due to FAIR_GROUP_SCHED removal ANDROID: GKI: Remove FAIR_GROUP_SCHED ANDROID: GKI: BULK update ABI XML representation and qcom whitelist ANDROID: build.config.gki.aarch64: Enable WHITELIST_STRICT_MODE ANDROID: GKI: Update the ABI xml and qcom whitelist * ANDROID: remove unused variable fs/f2fs/xattr.c ANDROID: Drop ABI monitoring from KASAN build config Merge 4.19.121 into android-4.19 Linux 4.19.121 mmc: meson-mx-sdio: remove the broken ->card_busy() op mmc: meson-mx-sdio: Set MMC_CAP_WAIT_WHILE_BUSY mmc: sdhci-msm: Enable host capabilities pertains to R1b response mmc: sdhci-pci: Fix eMMC driver strength for BYT-based controllers mmc: sdhci-xenon: fix annoying 1.8V regulator warning mmc: cqhci: Avoid false "cqhci: CQE stuck on" by not open-coding timeout loop btrfs: transaction: Avoid deadlock due to bad initialization timing of fs_info::journal_info btrfs: fix partial loss of prealloc extent past i_size after fsync * selinux: properly handle multiple messages in selinux_netlink_send() security/selinux/hooks.c dmaengine: dmatest: Fix iteration non-stop logic nfs: Fix potential posix_acl refcnt leak in nfs3_set_acl ALSA: opti9xx: shut up gcc-10 range warning iommu/amd: Fix legacy interrupt remapping for x2APIC-enabled system scsi: target/iblock: fix WRITE SAME zeroing iommu/qcom: Fix local_base status check vfio/type1: Fix VA->PA translation for PFNMAP VMAs in vaddr_get_pfn() vfio: avoid possible overflow in vfio_iommu_type1_pin_pages RDMA/core: Fix race between destroy and release FD object RDMA/core: Prevent mixed use of FDs between shared ufiles RDMA/mlx4: Initialize ib_spec on the stack RDMA/mlx5: Set GRH fields in query QP on RoCE scsi: qla2xxx: check UNLOADING before posting async work scsi: qla2xxx: set UNLOADING before waiting for session deletion dm multipath: use updated MPATHF_QUEUE_IO on mapping for bio-based mpath dm writecache: fix data corruption when reloading the target * dm verity fec: fix hash block number in verity_fec_decode drivers/md/dm-verity-fec.c PM: hibernate: Freeze kernel threads in software_resume() PM: ACPI: Output correct message on target power state ALSA: pcm: oss: Place the plugin buffer overflow checks correctly ALSA: hda/hdmi: fix without unlocked before return * ALSA: usb-audio: Correct a typo of NuPrime DAC-10 USB ID sound/usb/quirks.c ALSA: hda/realtek - Two front mics on a Lenovo ThinkCenter btrfs: fix block group leak when removing fails drm/qxl: qxl_release use after free drm/qxl: qxl_release leak in qxl_hw_surface_alloc() drm/qxl: qxl_release leak in qxl_draw_dirty_fb() * drm/edid: Fix off-by-one in DispID DTD pixel clock drivers/gpu/drm/drm_edid.c ANDROID: GKI: Bulk update ABI XML representation ANDROID: GKI: Enable net testing options ANDROID: gki_defconfig: Enable CONFIG_REMOTEPROC ANDROID: Rename build.config.gki.arch_kasan ANDROID: GKI: Update ABI for IOMMU * ANDROID: Incremental fs: Fix issues with very large files fs/incfs/vfs.c ANDROID: Correct build.config branch name ANDROID: GKI: Bulk update ABI XML representation and whitelist. * UPSTREAM: vdso: Fix clocksource.h macro detection include/vdso/clocksource.h Merge 4.19.120 into android-4.19 ANDROID: GKI: update abi definition due to added padding * ANDROID: GKI: networking: add Android ABI padding to a lot of networking structures include/linux/ipv6.h include/linux/net.h include/linux/netdevice.h include/linux/skbuff.h * ANDROID: GKI: dma-mapping.h: add Android ABI padding to a structure include/linux/dma-mapping.h * ANDROID: GKI: ioport.h: add Android ABI padding to a structure include/linux/ioport.h * ANDROID: GKI: iomap.h: add Android ABI padding to a structure include/linux/iomap.h * ANDROID: GKI: genhd.h: add Android ABI padding to some structures include/linux/genhd.h * ANDROID: GKI: hrtimer.h: add Android ABI padding to a structure include/linux/hrtimer.h * ANDROID: GKI: ethtool.h: add Android ABI padding to a structure include/linux/ethtool.h * ANDROID: GKI: sched: add Android ABI padding to some structures include/linux/sched/topology.h include/linux/sched/user.h * ANDROID: GKI: kernfs.h: add Android ABI padding to some structures include/linux/kernfs.h * ANDROID: GKI: kobject.h: add Android ABI padding to some structures include/linux/kobject.h * ANDROID: GKI: mm.h: add Android ABI padding to a structure include/linux/mm.h * ANDROID: GKI: mmu_notifier.h: add Android ABI padding to some structures include/linux/mmu_notifier.h * ANDROID: GKI: pci: add Android ABI padding to some structures drivers/pci/pci.h include/linux/pci.h * ANDROID: GKI: irqdomain.h: add Android ABI padding to a structure include/linux/irqdomain.h * ANDROID: GKI: blk_types.h: add Android ABI padding to a structure include/linux/blk_types.h * ANDROID: GKI: scsi.h: add Android ABI padding to a structure drivers/scsi/sd.h * ANDROID: GKI: quota.h: add Android ABI padding to some structures include/linux/quota.h * ANDROID: GKI: timer.h: add Android ABI padding to a structure include/linux/timer.h * ANDROID: GKI: user_namespace.h: add Android ABI padding to a structure include/linux/user_namespace.h FROMGIT: f2fs: fix missing check for f2fs_unlock_op Linux 4.19.120 * propagate_one(): mnt_set_mountpoint() needs mount_lock fs/pnode.c * ext4: check for non-zero journal inum in ext4_calculate_overhead fs/ext4/super.c * qed: Fix use after free in qed_chain_free include/linux/qed/qed_chain.h bpf, x86_32: Fix clobbering of dst for BPF_JSET hwmon: (jc42) Fix name to have no illegal characters * ext4: convert BUG_ON's to WARN_ON's in mballoc.c fs/ext4/mballoc.c * ext4: increase wait time needed before reuse of deleted inode numbers fs/ext4/ialloc.c * ext4: use matching invalidatepage in ext4_writepage fs/ext4/inode.c * arm64: Delete the space separator in __emit_inst arch/arm64/include/asm/sysreg.h ALSA: hda: call runtime_allow() for all hda controllers xen/xenbus: ensure xenbus_map_ring_valloc() returns proper grant status objtool: Support Clang non-section symbols in ORC dump objtool: Fix CONFIG_UBSAN_TRAP unreachable warnings scsi: target: tcmu: reset_ring should reset TCMU_DEV_BIT_BROKEN scsi: target: fix PR IN / READ FULL STATUS for FC ALSA: hda: Explicitly permit using autosuspend if runtime PM is supported ALSA: hda: Keep the controller initialization even if no codecs found xfs: fix partially uninitialized structure in xfs_reflink_remap_extent x86: hyperv: report value of misc_features net: fec: set GPR bit on suspend by DT configuration. bpf, x86: Fix encoding for lower 8-bit registers in BPF_STX BPF_B xfs: clear PF_MEMALLOC before exiting xfsaild thread * mm: shmem: disable interrupt when acquiring info->lock in userfaultfd_copy path mm/shmem.c bpf, x86_32: Fix incorrect encoding in BPF_LDX zero-extension * perf/core: fix parent pid/tid in task exit events kernel/events/core.c net/mlx5: Fix failing fw tracer allocation on s390 * cpumap: Avoid warning when CONFIG_DEBUG_PER_CPU_MAPS is enabled kernel/bpf/cpumap.c ARM: dts: bcm283x: Disable dsi0 node * PCI: Move Apex Edge TPU class quirk to fix BAR assignment drivers/pci/quirks.c * PCI: Avoid ASMedia XHCI USB PME# from D0 defect drivers/pci/quirks.c * svcrdma: Fix leak of svc_rdma_recv_ctxt objects include/linux/sunrpc/svc_rdma.h * svcrdma: Fix trace point use-after-free race include/trace/events/rpcrdma.h xfs: acquire superblock freeze protection on eofblocks scans net/cxgb4: Check the return from t4_query_params properly rxrpc: Fix DATA Tx to disable nofrag for UDP on AF_INET6 socket i2c: altera: use proper variable to hold errno nfsd: memory corruption in nfsd4_lock() ASoC: wm8960: Fix wrong clock after suspend & resume ASoC: tas571x: disable regulators on failed probe ASoC: q6dsp6: q6afe-dai: add missing channels to MI2S DAIs iio:ad7797: Use correct attribute_group usb: gadget: udc: bdc: Remove unnecessary NULL checks in bdc_req_complete * usb: dwc3: gadget: Do link recovery for SS and SSP drivers/usb/dwc3/gadget.c * binder: take read mode of mmap_sem in binder_alloc_free_page() drivers/android/binder_alloc.c * include/uapi/linux/swab.h: fix userspace breakage, use __BITS_PER_LONG for swap include/uapi/linux/swab.h mtd: cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer remoteproc: Fix wrong rvring index computation * FROMLIST: PM / devfreq: Restart previous governor if new governor fails to start drivers/devfreq/devfreq.c * ANDROID: GKI: arm64: Enable GZIP and LZ4 kernel compression modes arch/arm64/Kconfig ANDROID: GKI: arm64: gki_defconfig: Set arm_smmu configuration * ANDROID: GKI: iommu/arm-smmu: Modularize ARM SMMU driver drivers/iommu/Kconfig drivers/iommu/arm-smmu.c * ANDROID: GKI: iommu: Snapshot of vendor changes arch/arm64/mm/dma-mapping.c drivers/iommu/dma-iommu.c drivers/iommu/io-pgtable.c drivers/iommu/iommu.c drivers/iommu/iova.c include/linux/dma-iommu.h include/linux/dma-mapping.h include/linux/io-pgtable.h include/linux/iommu.h include/linux/iova.h include/trace/events/iommu.h * ANDROID: GKI: Additions to ARM SMMU register definitions drivers/iommu/arm-smmu-regs.h * ANDROID: GKI: iommu/io-pgtable-arm: LPAE related updates by vendor drivers/iommu/io-pgtable-arm.c * ANDROID: GKI: common: dma-mapping: make dma_common_contiguous_remap more robust kernel/dma/mapping.c * ANDROID: GKI: dma-coherent: Expose device base address and size include/linux/dma-mapping.h kernel/dma/coherent.c * ANDROID: GKI: arm64: add support for NO_KERNEL_MAPPING and STRONGLY_ORDERED arch/arm64/mm/dma-mapping.c * ANDROID: GKI: dma-mapping: Add dma_remap functions arch/arm64/mm/dma-mapping.c include/linux/dma-mapping.h kernel/dma/mapping.c * ANDROID: GKI: arm64: Support early fixup for CMA arch/arm64/include/asm/dma-contiguous.h arch/arm64/mm/mmu.c * ANDROID: GKI: iommu: dma-mapping-fast: Fast ARMv7/v8 Long Descriptor Format arch/arm64/include/asm/dma-iommu.h arch/arm64/mm/dma-mapping.c drivers/iommu/Kconfig drivers/iommu/Makefile drivers/iommu/dma-mapping-fast.c drivers/iommu/io-pgtable-fast.c drivers/iommu/io-pgtable.c include/linux/dma-mapping-fast.h include/linux/io-pgtable-fast.h include/linux/io-pgtable.h * ANDROID: GKI: arm64: dma-mapping: add support for IOMMU mapper arch/arm64/Kconfig arch/arm64/include/asm/device.h arch/arm64/include/asm/dma-iommu.h arch/arm64/mm/dma-mapping.c drivers/iommu/Kconfig * ANDROID: GKI: add ARCH_NR_GPIO for ABI match arch/arm64/Kconfig * ANDROID: GKI: kernel: Export symbol of `cpu_do_idle` arch/arm64/kernel/arm64ksyms.c * ANDROID: GKI: kernel: Export symbols needed by msm_minidump.ko and minidump_log.ko (again) arch/arm64/kernel/arm64ksyms.c * ANDROID: GKI: add missing exports for __flush_dcache_area arch/arm64/kernel/arm64ksyms.c * ANDROID: GKI: arm64: Export caching APIs arch/arm64/kernel/arm64ksyms.c * ANDROID: GKI: arm64: provide dma cache routines with same API as 32 bit arch/arm64/include/asm/cacheflush.h arch/arm64/mm/cache.S ANDROID: gki_defconfig: add FORTIFY_SOURCE, remove SPMI_MSM_PMIC_ARB * Revert "ANDROID: GKI: spmi: pmic-arb: don't enable SPMI_MSM_PMIC_ARB by default" drivers/spmi/Kconfig ANDROID: GKI: update abi definitions after adding padding * ANDROID: GKI: elevator: add Android ABI padding to some structures include/linux/elevator.h * ANDROID: GKI: dentry: add Android ABI padding to some structures include/linux/dcache.h * ANDROID: GKI: bio: add Android ABI padding to some structures include/linux/bio.h * ANDROID: GKI: scsi: add Android ABI padding to some structures include/scsi/scsi_cmnd.h include/scsi/scsi_device.h include/scsi/scsi_host.h * ANDROID: GKI: ufs: add Android ABI padding to some structures drivers/scsi/ufs/ufshcd.h * ANDROID: GKI: workqueue.h: add Android ABI padding to some structures include/linux/workqueue.h * ANDROID: GKI: fs.h: add Android ABI padding to some structures include/linux/fs.h * ANDROID: GKI: USB: add Android ABI padding to some structures include/linux/usb.h include/linux/usb/hcd.h include/linux/usb/usbnet.h * ANDROID: GKI: mm: add Android ABI padding to some structures include/linux/mm_types.h include/linux/mmzone.h * ANDROID: GKI: mount.h: add Android ABI padding to some structures include/linux/mount.h * ANDROID: GKI: sched.h: add Android ABI padding to some structures include/linux/sched.h include/linux/sched/signal.h * ANDROID: GKI: sock.h: add Android ABI padding to some structures include/net/sock.h * ANDROID: GKI: module.h: add Android ABI padding to some structures include/linux/module.h * ANDROID: GKI: device.h: add Android ABI padding to some structures include/linux/device.h * ANDROID: GKI: phy: add Android ABI padding to some structures include/linux/phy.h * ANDROID: GKI: add android_kabi.h include/linux/android_kabi.h ANDROID: ABI: update due to previous changes in the tree * BACKPORT: sched/core: Fix reset-on-fork from RT with uclamp kernel/sched/core.c * ANDROID: GKI: Add support for missing V4L2 symbols drivers/media/v4l2-core/v4l2-ioctl.c include/uapi/linux/videodev2.h ANDROID: GKI: Bulk update ABI XML representation * ANDROID: GKI: arm64: psci: Support for OS initiated scheme drivers/firmware/psci.c * ANDROID: GKI: net: add counter for number of frames coalesced in GRO include/linux/netdevice.h * ANDROID: GKI: cfg80211: Include length of kek in rekey data include/net/cfg80211.h net/wireless/nl80211.c * BACKPORT: loop: change queue block size to match when using DIO drivers/block/loop.c * ANDROID: Incremental fs: Add setattr call fs/incfs/vfs.c ANDROID: GKI: enable CONFIG_RTC_SYSTOHC * ANDROID: GKI: ipv4: add vendor padding to __IPV4_DEVCONF_* enums include/uapi/linux/ip.h * Revert "ANDROID: GKI: ipv4: increase __IPV4_DEVCONF_MAX to 64" include/uapi/linux/ip.h * ANDROID: driver: gpu: drm: fix export symbol types drivers/gpu/drm/drm_panel.c * ANDROID: SoC: core: fix export symbol type sound/soc/soc-core.c * ANDROID: ufshcd-crypto: fix export symbol type drivers/scsi/ufs/ufshcd-crypto.c * ANDROID: GKI: drivers: mailbox: fix race resulting in multiple message submission drivers/mailbox/mailbox.c ANDROID: GKI: arm64: gki_defconfig: Enable a few thermal configs * Revert "ANDROID: GKI: add base.h include to match MODULE_VERSIONS" drivers/thermal/thermal_core.c * FROMLIST: thermal: Make cooling device trip point writable from sysfs drivers/thermal/thermal_core.c drivers/thermal/thermal_core.h drivers/thermal/thermal_sysfs.c * ANDROID: GKI: drivers: thermal: cpu_cooling: Use CPU ID as cooling device ID drivers/thermal/cpu_cooling.c * ANDROID: GKI: PM / devfreq: Allow min freq to be 0 drivers/devfreq/devfreq.c ANDROID: GKI: arm64: gki_defconfig: Enable REGULATOR_PROXY_CONSUMER ANDROID: GKI: Bulk Update ABI XML representation ANDROID: KASAN support for GKI remove CONFIG_CC_WERROR ANDROID: KASAN support for GKI ANDROID: virt_wifi: fix export symbol types * ANDROID: vfs: fix export symbol type fs/attr.c * ANDROID: vfs: fix export symbol types fs/namei.c * ANDROID: fscrypt: fix export symbol type fs/crypto/fname.c * ANDROID: cfi: fix export symbol types kernel/cfi.c * ANDROID: bpf: fix export symbol type kernel/bpf/core.c Merge 4.19.119 into android-4.19 Linux 4.19.119 s390/mm: fix page table upgrade vs 2ndary address mode accesses xfs: Fix deadlock between AGI and AGF with RENAME_WHITEOUT serial: sh-sci: Make sure status register SCxSR is read in correct sequence * xhci: prevent bus suspend if a roothub port detected a over-current condition drivers/usb/host/xhci-hub.c * usb: f_fs: Clear OS Extended descriptor counts to zero in ffs_data_reset() drivers/usb/gadget/function/f_fs.c * usb: dwc3: gadget: Fix request completion check drivers/usb/dwc3/gadget.c UAS: fix deadlock in error handling and PM flushing work UAS: no use logging any details in case of ENODEV cdc-acm: introduce a cool down cdc-acm: close race betrween suspend() and acm_softint staging: vt6656: Power save stop wake_up_count wrap around. staging: vt6656: Fix pairwise key entry save. staging: vt6656: Fix drivers TBTT timing counter. staging: vt6656: Fix calling conditions of vnt_set_bss_mode staging: vt6656: Don't set RCR_MULTICAST or RCR_BROADCAST by default. vt: don't use kmalloc() for the unicode screen buffer vt: don't hardcode the mem allocation upper bound staging: comedi: Fix comedi_device refcnt leak in comedi_open staging: comedi: dt2815: fix writing hi byte of analog output powerpc/setup_64: Set cache-line-size based on cache-block-size ARM: imx: provide v7_cpu_resume() only on ARM_CPU_SUSPEND=y iwlwifi: mvm: beacon statistics shouldn't go backwards iwlwifi: pcie: actually release queue memory in TVQM * ASoC: dapm: fixup dapm kcontrol widget sound/soc/soc-dapm.c * audit: check the length of userspace generated audit records kernel/audit.c * usb-storage: Add unusual_devs entry for JMicron JMS566 drivers/usb/storage/unusual_devs.h tty: rocket, avoid OOB access tty: hvc: fix buffer overflow during hvc_alloc(). KVM: VMX: Enable machine check support for 32bit targets * KVM: Check validity of resolved slot when searching memslots include/linux/kvm_host.h KVM: s390: Return last valid slot if approx index is out-of-bounds tpm: ibmvtpm: retry on H_CLOSED in tpm_ibmvtpm_send() tpm/tpm_tis: Free IRQ if probing fails * ALSA: usb-audio: Filter out unsupported sample rates on Focusrite devices sound/usb/format.c * ALSA: usb-audio: Fix usb audio refcnt leak when getting spdif sound/usb/mixer_quirks.c ALSA: hda/realtek - Add new codec supported for ALC245 ALSA: hda/realtek - Fix unexpected init_amp override ALSA: usx2y: Fix potential NULL dereference tools/vm: fix cross-compile build mm/ksm: fix NULL pointer dereference when KSM zero page is enabled mm/hugetlb: fix a addressing exception caused by huge_pte_offset * vmalloc: fix remap_vmalloc_range() bounds checks include/linux/vmalloc.h mm/vmalloc.c * USB: hub: Fix handling of connect changes during sleep drivers/usb/core/hub.c * USB: core: Fix free-while-in-use bug in the USB S-Glibrary drivers/usb/core/message.c USB: early: Handle AMD's spec-compliant identifiers, too * USB: Add USB_QUIRK_DELAY_CTRL_MSG and USB_QUIRK_DELAY_INIT for Corsair K70 RGB RAPIDFIRE drivers/usb/core/quirks.c USB: sisusbvga: Change port variable from signed to unsigned * fs/namespace.c: fix mountpoint reference counter race fs/namespace.c iio: xilinx-xadc: Make sure not exceed maximum samplerate iio: xilinx-xadc: Fix sequencer configuration for aux channels in simultaneous mode iio: xilinx-xadc: Fix clearing interrupt when enabling trigger iio: xilinx-xadc: Fix ADC-B powerdown iio: adc: stm32-adc: fix sleep in atomic context iio: st_sensors: rely on odr mask to know if odr can be set * iio: core: remove extra semi-colon from devm_iio_device_register() macro include/linux/iio/iio.h * ALSA: usb-audio: Add connector notifier delegation sound/usb/mixer.c sound/usb/mixer.h sound/usb/mixer_maps.c * ALSA: usb-audio: Add static mapping table for ALC1220-VB-based mobos sound/usb/mixer.c sound/usb/mixer_maps.c sound/usb/quirks-table.h ALSA: hda: Remove ASUS ROG Zenith from the blacklist * KEYS: Avoid false positive ENOMEM error on key read security/keys/internal.h security/keys/keyctl.c mlxsw: Fix some IS_ERR() vs NULL bugs vrf: Check skb for XFRM_TRANSFORMED flag * xfrm: Always set XFRM_TRANSFORMED in xfrm{4,6}_output_finish net/ipv4/xfrm4_output.c net/ipv6/xfrm6_output.c net: dsa: b53: b53_arl_rw_op() needs to select IVL or SVL net: dsa: b53: Rework ARL bin logic net: dsa: b53: Fix ARL register definitions net: dsa: b53: Lookup VID in ARL searches when VLAN is enabled vrf: Fix IPv6 with qdisc and xfrm team: fix hang in team_mode_get() * tcp: cache line align MAX_TCP_HEADER include/net/tcp.h sched: etf: do not assume all sockets are full blown net/x25: Fix x25_neigh refcnt leak when receiving frame net: stmmac: dwmac-meson8b: Add missing boundary to RGMII TX clock array net: netrom: Fix potential nr_neigh refcnt leak in nr_add_node net: bcmgenet: correct per TX/RX ring statistics macvlan: fix null dereference in macvlan_device_event() macsec: avoid to set wrong mtu * ipv6: fix restrict IPV6_ADDRFORM operation net/ipv6/ipv6_sockglue.c cxgb4: fix large delays in PTP synchronization cxgb4: fix adapter crash due to wrong MC size x86/KVM: Clean up host's steal time structure x86/KVM: Make sure KVM_VCPU_FLUSH_TLB flag is not missed * x86/kvm: Cache gfn to pfn translation include/linux/kvm_host.h include/linux/kvm_types.h * x86/kvm: Introduce kvm_(un)map_gfn() include/linux/kvm_host.h KVM: Properly check if "page" is valid in kvm_vcpu_unmap kvm: fix compile on s390 part 2 kvm: fix compilation on s390 kvm: fix compilation on aarch64 * KVM: Introduce a new guest mapping API include/linux/kvm_host.h KVM: nVMX: Always sync GUEST_BNDCFGS when it comes from vmcs01 KVM: VMX: Zero out *all* general purpose registers after VM-Exit * f2fs: fix to avoid memory leakage in f2fs_listxattr fs/f2fs/xattr.c * blktrace: fix dereference after null check kernel/trace/blktrace.c * blktrace: Protect q->blk_trace with RCU include/linux/blkdev.h include/linux/blktrace_api.h kernel/trace/blktrace.c * net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup include/net/addrconf.h net/ipv6/addrconf_core.c net/ipv6/af_inet6.c net/tipc/udp_media.c * net: ipv6: add net argument to ip6_dst_lookup_flow include/net/ipv6.h net/ipv6/af_inet6.c net/ipv6/datagram.c net/ipv6/inet6_connection_sock.c net/ipv6/ip6_output.c net/ipv6/raw.c net/ipv6/syncookies.c net/ipv6/tcp_ipv6.c net/l2tp/l2tp_ip6.c net/sctp/ipv6.c PCI/ASPM: Allow re-enabling Clock PM scsi: smartpqi: fix call trace in device discovery virtio-blk: improve virtqueue error to BLK_STS tracing/selftests: Turn off timeout setting drm/amd/display: Not doing optimize bandwidth if flip pending. * xhci: Ensure link state is U3 after setting USB_SS_PORT_LS_U3 drivers/usb/host/xhci-hub.c ASoC: Intel: bytcr_rt5640: Add quirk for MPMAN MPWIN895CL tablet * perf/core: Disable page faults when getting phys address kernel/events/core.c pwm: bcm2835: Dynamically allocate base pwm: renesas-tpu: Fix late Runtime PM enablement Revert "powerpc/64: irq_work avoid interrupt when called with hardware irqs enabled" * loop: Better discard support for block devices drivers/block/loop.c s390/cio: avoid duplicated 'ADD' uevents kconfig: qconf: Fix a few alignment issues ipc/util.c: sysvipc_find_ipc() should increase position index selftests: kmod: fix handling test numbers above 9 kernel/gcov/fs.c: gcov_seq_next() should increase position index nvme: fix deadlock caused by ANA update wrong locking ASoC: Intel: atom: Take the drv->lock mutex before calling sst_send_slot_map() scsi: iscsi: Report unbind session event when the target has been removed pwm: rcar: Fix late Runtime PM enablement ceph: don't skip updating wanted caps when cap is stale ceph: return ceph_mdsc_do_request() errors from __get_parent() scsi: lpfc: Fix crash in target side cable pulls hitting WAIT_FOR_UNREG scsi: lpfc: Fix kasan slab-out-of-bounds error in lpfc_unreg_login * watchdog: reset last_hw_keepalive time at start drivers/watchdog/watchdog_dev.c * arm64: Silence clang warning on mismatched value/register sizes arch/arm64/kernel/sys_compat.c * arm64: compat: Workaround Neoverse-N1 #1542419 for compat user-space arch/arm64/kernel/sys_compat.c * arm64: Fake the IminLine size on systems affected by Neoverse-N1 #1542419 arch/arm64/include/asm/cache.h arch/arm64/kernel/traps.c * arm64: errata: Hide CTR_EL0.DIC on systems affected by Neoverse-N1 #1542419 arch/arm64/Kconfig arch/arm64/include/asm/cpucaps.h arch/arm64/kernel/cpu_errata.c arch/arm64/kernel/traps.c * arm64: Add part number for Neoverse N1 arch/arm64/include/asm/cputype.h * vti4: removed duplicate log message. net/ipv4/ip_vti.c crypto: mxs-dcp - make symbols 'sha1_null_hash' and 'sha256_null_hash' static bpftool: Fix printing incorrect pointer in btf_dump_ptr drm/msm: Use the correct dma_sync calls harder * ext4: fix extent_status fragmentation for plain files fs/ext4/extents.c ANDROID: abi_gki_aarch64_cuttlefish_whitelist: remove stale symbols * ANDROID: GKI: ipv4: increase __IPV4_DEVCONF_MAX to 64 include/uapi/linux/ip.h * ANDROID: GKI: power: add missing export for POWER_RESET_QCOM=m arch/arm64/kernel/process.c arch/arm64/mm/init.c * BACKPORT: cfg80211: Support key configuration for Beacon protection (BIGTK) include/net/cfg80211.h include/uapi/linux/nl80211.h net/wireless/nl80211.c net/wireless/rdev-ops.h net/wireless/sme.c net/wireless/trace.h net/wireless/util.c * BACKPORT: cfg80211: Enhance the AKM advertizement to support per interface. include/net/cfg80211.h include/uapi/linux/nl80211.h net/wireless/nl80211.c * UPSTREAM: sysrq: Use panic() to force a crash drivers/tty/sysrq.c * ANDROID: GKI: kernel: sound: update codec options with block size include/uapi/sound/compress_params.h ANDROID: add compat cross compiler ANDROID: x86/vdso: disable LTO only for VDSO * BACKPORT: arm64: vdso32: Enable Clang Compilation arch/arm64/kernel/vdso32/Makefile * UPSTREAM: arm64: compat: vdso: Expose BUILD_VDSO32 arch/arm64/include/asm/vdso/compat_gettimeofday.h * BACKPORT: lib/vdso: Enable common headers include/vdso/datapage.h lib/vdso/gettimeofday.c BACKPORT: arm: vdso: Enable arm to use common headers BACKPORT: x86/vdso: Enable x86 to use common headers BACKPORT: mips: vdso: Enable mips to use common headers * UPSTREAM: arm64: vdso32: Include common headers in the vdso library arch/arm64/include/asm/vdso/compat_gettimeofday.h arch/arm64/kernel/vdso32/vgettimeofday.c * UPSTREAM: arm64: vdso: Include common headers in the vdso library arch/arm64/include/asm/vdso/gettimeofday.h arch/arm64/kernel/vdso/vgettimeofday.c * UPSTREAM: arm64: Introduce asm/vdso/processor.h arch/arm64/include/asm/processor.h arch/arm64/include/asm/vdso/processor.h * BACKPORT: arm64: vdso32: Code clean up arch/arm64/include/asm/vdso/compat_gettimeofday.h arch/arm64/kernel/vdso32/vgettimeofday.c * UPSTREAM: linux/elfnote.h: Replace elf.h with UAPI equivalent include/linux/elfnote.h * UPSTREAM: scripts: Fix the inclusion order in modpost scripts/mod/modpost.c * UPSTREAM: common: Introduce processor.h include/vdso/processor.h * UPSTREAM: linux/ktime.h: Extract common header for vDSO include/linux/ktime.h include/vdso/ktime.h * UPSTREAM: linux/jiffies.h: Extract common header for vDSO include/linux/jiffies.h include/vdso/jiffies.h * UPSTREAM: linux/time64.h: Extract common header for vDSO include/linux/time64.h include/vdso/time64.h * BACKPORT: linux/time32.h: Extract common header for vDSO include/linux/time32.h include/vdso/time32.h * BACKPORT: linux/time.h: Extract common header for vDSO include/linux/time.h include/vdso/time.h * UPSTREAM: linux/math64.h: Extract common header for vDSO include/linux/math64.h include/vdso/math64.h * BACKPORT: linux/clocksource.h: Extract common header for vDSO include/linux/clocksource.h include/vdso/clocksource.h BACKPORT: mips: Introduce asm/vdso/clocksource.h * BACKPORT: arm64: Introduce asm/vdso/clocksource.h arch/arm64/include/asm/clocksource.h arch/arm64/include/asm/vdso/clocksource.h BACKPORT: arm: Introduce asm/vdso/clocksource.h BACKPORT: x86: Introduce asm/vdso/clocksource.h * UPSTREAM: linux/limits.h: Extract common header for vDSO include/linux/limits.h include/vdso/limits.h * BACKPORT: linux/kernel.h: split *_MAX and *_MIN macros into <linux/limits.h> include/linux/kernel.h include/linux/limits.h include/uapi/linux/limits.h * BACKPORT: linux/bits.h: Extract common header for vDSO include/linux/bits.h include/vdso/bits.h * UPSTREAM: linux/const.h: Extract common header for vDSO include/linux/const.h include/vdso/const.h * BACKPORT: arm64: vdso: fix flip/flop vdso build bug arch/arm64/kernel/vdso/Makefile arch/arm64/kernel/vdso32/Makefile * UPSTREAM: lib/vdso: Allow the high resolution parts to be compiled out lib/vdso/gettimeofday.c * UPSTREAM: lib/vdso: Only read hrtimer_res when needed in __cvdso_clock_getres() lib/vdso/gettimeofday.c * UPSTREAM: lib/vdso: Mark do_hres() and do_coarse() as __always_inline lib/vdso/gettimeofday.c * UPSTREAM: lib/vdso: Avoid duplication in __cvdso_clock_getres() lib/vdso/gettimeofday.c * UPSTREAM: lib/vdso: Let do_coarse() return 0 to simplify the callsite lib/vdso/gettimeofday.c * UPSTREAM: lib/vdso: Remove checks on return value for 32 bit vDSO lib/vdso/gettimeofday.c * UPSTREAM: lib/vdso: Build 32 bit specific functions in the right context lib/vdso/gettimeofday.c * UPSTREAM: lib/vdso: Make __cvdso_clock_getres() static lib/vdso/gettimeofday.c * UPSTREAM: lib/vdso: Make clock_getres() POSIX compliant again lib/vdso/gettimeofday.c * UPSTREAM: lib/vdso/32: Provide legacy syscall fallbacks lib/vdso/gettimeofday.c * UPSTREAM: lib/vdso: Move fallback invocation to the callers lib/vdso/gettimeofday.c * UPSTREAM: lib/vdso/32: Remove inconsistent NULL pointer checks lib/vdso/gettimeofday.c * UPSTREAM: lib/vdso: Make delta calculation work correctly lib/vdso/gettimeofday.c * UPSTREAM: arm64: compat: Fix syscall number of compat_clock_getres arch/arm64/include/asm/unistd.h * BACKPORT: arm64: lse: Fix LSE atomics with LLVM arch/arm64/include/asm/lse.h UPSTREAM: mips: Fix gettimeofday() in the vdso library UPSTREAM: mips: vdso: Fix __arch_get_hw_counter() * BACKPORT: arm64: Kconfig: Make CONFIG_COMPAT_VDSO a proper Kconfig option arch/arm64/Kconfig arch/arm64/Makefile * UPSTREAM: arm64: vdso32: Rename COMPATCC to CC_COMPAT arch/arm64/kernel/vdso32/Makefile * UPSTREAM: arm64: vdso32: Pass '--target' option to clang via VDSO_CAFLAGS arch/arm64/kernel/vdso32/Makefile * UPSTREAM: arm64: vdso32: Don't use KBUILD_CPPFLAGS unconditionally arch/arm64/kernel/vdso32/Makefile * UPSTREAM: arm64: vdso32: Move definition of COMPATCC into vdso32/Makefile arch/arm64/Makefile arch/arm64/kernel/vdso32/Makefile * UPSTREAM: arm64: Default to building compat vDSO with clang when CONFIG_CC_IS_CLANG arch/arm64/Makefile * UPSTREAM: lib: vdso: Remove CROSS_COMPILE_COMPAT_VDSO lib/vdso/Kconfig * UPSTREAM: arm64: vdso32: Remove jump label config option in Makefile arch/arm64/kernel/vdso32/Makefile * UPSTREAM: arm64: vdso32: Detect binutils support for dmb ishld arch/arm64/include/asm/vdso/compat_barrier.h arch/arm64/kernel/vdso32/Makefile BACKPORT: arm64: vdso: Remove stale files from old assembly implementation * UPSTREAM: arm64: vdso32: Fix broken compat vDSO build warnings arch/arm64/Kconfig arch/arm64/Makefile arch/arm64/kernel/vdso32/Makefile UPSTREAM: mips: compat: vdso: Use legacy syscalls as fallback BACKPORT: arm64: Relax Documentation/arm64/tagged-pointers.rst BACKPORT: arm64: Add tagged-address-abi.rst to index.rst * UPSTREAM: arm64: vdso: Fix Makefile regression arch/arm64/Makefile UPSTREAM: mips: vdso: Fix flip/flop vdso building bug UPSTREAM: mips: vdso: Fix source path UPSTREAM: mips: Add clock_gettime64 entry point UPSTREAM: mips: Add clock_getres entry point BACKPORT: mips: Add support for generic vDSO * BACKPORT: arm64: vdso: Explicitly add build-id option arch/arm64/kernel/vdso/Makefile * BACKPORT: arm64: vdso: use $(LD) instead of $(CC) to link VDSO arch/arm64/kernel/vdso/Makefile * BACKPORT: arm64: vdso: Cleanup Makefiles arch/arm64/kernel/vdso/Makefile arch/arm64/kernel/vdso32/Makefile * UPSTREAM: arm64: vdso: Fix population of AT_SYSINFO_EHDR for compat vdso arch/arm64/include/asm/elf.h * UPSTREAM: arm64: vdso: Fix compilation with clang older than 8 arch/arm64/kernel/vdso/Makefile * UPSTREAM: arm64: compat: Fix __arch_get_hw_counter() implementation arch/arm64/include/asm/vdso/compat_gettimeofday.h * UPSTREAM: arm64: Fix __arch_get_hw_counter() implementation arch/arm64/include/asm/vdso/gettimeofday.h UPSTREAM: x86/vdso/32: Use 32bit syscall fallback UPSTREAM: x86/vdso: Fix flip/flop vdso build bug UPSTREAM: x86/vdso: Give the [ph]vclock_page declarations real types UPSTREAM: x86/vdso: Add clock_gettime64() entry point BACKPORT: x86/vdso: Add clock_getres() entry point BACKPORT: x86/vdso: Switch to generic vDSO implementation UPSTREAM: x86/segments: Introduce the 'CPUNODE' naming to better document the segment limit CPU/node NR trick UPSTREAM: x86/vdso: Initialize the CPU/node NR segment descriptor earlier UPSTREAM: x86/vdso: Introduce helper functions for CPU and node number UPSTREAM: x86/segments/64: Rename the GDT PER_CPU entry to CPU_NUMBER * BACKPORT: arm64: vdso: Enable vDSO compat support arch/arm64/Kconfig arch/arm64/Makefile arch/arm64/kernel/Makefile * UPSTREAM: arm64: compat: Get sigreturn trampolines from vDSO arch/arm64/include/asm/vdso.h arch/arm64/kernel/signal32.c * UPSTREAM: arm64: elf: VDSO code page discovery arch/arm64/include/asm/elf.h * UPSTREAM: arm64: compat: VDSO setup for compat layer arch/arm64/kernel/vdso.c * UPSTREAM: arm64: vdso: Refactor vDSO code arch/arm64/kernel/vdso.c * BACKPORT: arm64: compat: Add vDSO arch/arm64/include/asm/vdso/compat_barrier.h arch/arm64/include/asm/vdso/compat_gettimeofday.h arch/arm64/kernel/vdso32/Makefile arch/arm64/kernel/vdso32/note.c arch/arm64/kernel/vdso32/sigreturn.S arch/arm64/kernel/vdso32/vdso.S arch/arm64/kernel/vdso32/vdso.lds.S arch/arm64/kernel/vdso32/vgettimeofday.c * UPSTREAM: arm64: compat: Generate asm offsets for signals arch/arm64/kernel/asm-offsets.c * UPSTREAM: arm64: compat: Expose signal related structures arch/arm64/include/asm/signal32.h arch/arm64/kernel/signal32.c * UPSTREAM: arm64: compat: Add missing syscall numbers arch/arm64/include/asm/unistd.h * BACKPORT: arm64: vdso: Substitute gettimeofday() with C implementation arch/arm64/Kconfig arch/arm64/include/asm/vdso/gettimeofday.h arch/arm64/include/asm/vdso/vsyscall.h arch/arm64/kernel/asm-offsets.c arch/arm64/kernel/vdso.c arch/arm64/kernel/vdso/Makefile arch/arm64/kernel/vdso/vgettimeofday.c * UPSTREAM: timekeeping: Provide a generic update_vsyscall() implementation include/asm-generic/vdso/vsyscall.h include/vdso/vsyscall.h kernel/time/Makefile kernel/time/vsyscall.c * UPSTREAM: lib/vdso: Add compat support lib/vdso/gettimeofday.c * UPSTREAM: lib/vdso: Provide generic VDSO implementation include/vdso/helpers.h lib/Kconfig lib/vdso/Kconfig lib/vdso/Makefile lib/vdso/gettimeofday.c * UPSTREAM: vdso: Define standardized vdso_datapage include/vdso/datapage.h * UPSTREAM: hrtimer: Split out hrtimer defines into separate header include/linux/hrtimer.h include/linux/hrtimer_defs.h UPSTREAM: nds32: Fix vDSO clock_getres() * UPSTREAM: arm64: compat: Reduce address limit for 64K pages arch/arm64/include/asm/processor.h * BACKPORT: arm64: compat: Add KUSER_HELPERS config option arch/arm64/Kconfig arch/arm64/kernel/Makefile arch/arm64/kernel/kuser32.S arch/arm64/kernel/vdso.c * UPSTREAM: arm64: compat: Refactor aarch32_alloc_vdso_pages() arch/arm64/kernel/vdso.c * BACKPORT: arm64: compat: Split kuser32 arch/arm64/kernel/Makefile arch/arm64/kernel/kuser32.S * UPSTREAM: arm64: compat: Alloc separate pages for vectors and sigpage arch/arm64/include/asm/elf.h arch/arm64/include/asm/signal32.h arch/arm64/kernel/signal32.c arch/arm64/kernel/vdso.c ANDROID: GKI: Update ABI XML representation * ANDROID: GKI: Enable GENERIC_IRQ_CHIP init/Kconfig.gki * ANDROID: GKI: power_supply: Add FG_TYPE power-supply property drivers/power/supply/power_supply_sysfs.c include/linux/power_supply.h * ANDROID: GKI: mm: export mm_trace_rss_stat for modules to report RSS changes mm/memory.c ANDROID: GKI: gki_defconfig: Enable CONFIG_LEDS_TRIGGER_TRANSIENT ANDROID: GKI: gki_defconfig: Enable CONFIG_CPU_FREQ_STAT ANDROID: GKI: arm64: gki_defconfig: Disable HW tracing features ANDROID: GKI: gki_defconfig: Enable CONFIG_I2C_CHARDEV * ANDROID: Incremental fs: Use simple compression in log buffer fs/incfs/data_mgmt.c fs/incfs/data_mgmt.h fs/incfs/vfs.c * ANDROID: GKI: usb: core: Add support to parse config summary capability descriptors drivers/usb/core/config.c drivers/usb/core/generic.c include/linux/usb.h include/uapi/linux/usb/ch9.h ANDROID: GKI: Update ABI XML representation ANDROID: dm-bow: Fix not to skip trim at framented range * ANDROID: Remove VLA from uid_sys_stats.c drivers/misc/uid_sys_stats.c f2fs: fix missing check for f2fs_unlock_op * ANDROID: fix wakeup reason findings kernel/power/wakeup_reason.c * UPSTREAM: cfg80211: fix and clean up cfg80211_gen_new_bssid() include/net/cfg80211.h * UPSTREAM: cfg80211: save multi-bssid properties include/net/cfg80211.h net/wireless/scan.c * UPSTREAM: cfg80211: make BSSID generation function inline include/net/cfg80211.h net/wireless/scan.c * UPSTREAM: cfg80211: parse multi-bssid only if HW supports it include/net/cfg80211.h net/wireless/scan.c * UPSTREAM: cfg80211: Move Multiple BSS info to struct cfg80211_bss to be visible include/net/cfg80211.h net/wireless/core.h net/wireless/scan.c * UPSTREAM: cfg80211: Properly track transmitting and non-transmitting BSS net/wireless/core.h net/wireless/scan.c * UPSTREAM: cfg80211: use for_each_element() for multi-bssid parsing net/wireless/scan.c * UPSTREAM: cfg80211: Parsing of Multiple BSSID information in scanning net/wireless/core.h net/wireless/scan.c * UPSTREAM: cfg80211/nl80211: Offload OWE processing to user space in AP mode include/net/cfg80211.h include/uapi/linux/nl80211.h net/wireless/nl80211.c net/wireless/rdev-ops.h net/wireless/trace.h * ANDROID: GKI: cfg80211: Sync nl80211 commands/feature with upstream include/uapi/linux/nl80211.h ANDROID: GKI: gki_defconfig: Enable FW_LOADER_USER_HELPER* ANDROID: GKI: arm64: gki_defconfig: Disable CONFIG_ARM64_TAGGED_ADDR_ABI ANDROID: GKI: gki_defconfig: CONFIG_CHR_DEV_SG=y ANDROID: GKI: gki_defconfig: CONFIG_DM_DEFAULT_KEY=m ANDROID: update the ABI xml representation * ANDROID: init: GKI: enable hidden configs for GPU init/Kconfig.gki Merge 4.19.118 into android-4.19 Linux 4.19.118 * bpf: fix buggy r0 retval refinement for tracing helpers kernel/bpf/verifier.c * KEYS: Don't write out to userspace while holding key semaphore include/keys/big_key-type.h include/keys/user-type.h include/linux/key-type.h net/dns_resolver/dns_key.c security/keys/keyctl.c security/keys/keyring.c security/keys/request_key_auth.c security/keys/user_defined.c mtd: phram: fix a double free issue in error path mtd: lpddr: Fix a double free in probe() mtd: spinand: Explicitly use MTD_OPS_RAW to write the bad block marker to OOB locktorture: Print ratio of acquisitions, not failures tty: evh_bytechan: Fix out of bounds accesses iio: si1133: read 24-bit signed integer for measurement fbdev: potential information leak in do_fb_ioctl() net: dsa: bcm_sf2: Fix overflow checks * f2fs: fix to wait all node page writeback fs/f2fs/node.c iommu/amd: Fix the configuration of GCR3 table root pointer libnvdimm: Out of bounds read in __nd_ioctl() power: supply: axp288_fuel_gauge: Broaden vendor check for Intel Compute Sticks. ext2: fix debug reference to ext2_xattr_cache ext2: fix empty body warnings when -Wextra is used iommu/vt-d: Fix mm reference leak drm/vc4: Fix HDMI mode validation * f2fs: fix NULL pointer dereference in f2fs_write_begin() fs/f2fs/super.c NFS: Fix memory leaks in nfs_pageio_stop_mirroring() drm/amdkfd: kfree the wrong pointer * x86: ACPI: fix CPU hotplug deadlock include/acpi/processor.h KVM: s390: vsie: Fix possible race when shadowing region 3 tables * compiler.h: fix error in BUILD_BUG_ON() reporting include/linux/compiler.h * percpu_counter: fix a data race at vm_committed_as include/linux/percpu_counter.h * include/linux/swapops.h: correct guards for non_swap_entry() include/linux/swapops.h cifs: Allocate encryption header through kmalloc um: ubd: Prevent buffer overrun on command completion * ext4: do not commit super on read-only bdev fs/ext4/super.c s390/cpum_sf: Fix wrong page count in error message powerpc/maple: Fix declaration made after definition s390/cpuinfo: fix wrong output when CPU0 is offline NFS: direct.c: Fix memory leak of dreq when nfs_get_lock_context fails NFSv4/pnfs: Return valid stateids in nfs_layout_find_inode_by_stateid() rtc: 88pm860x: fix possible race condition soc: imx: gpc: fix power up sequencing clk: tegra: Fix Tegra PMC clock out parents power: supply: bq27xxx_battery: Silence deferred-probe error clk: at91: usb: continue if clk_hw_round_rate() return zero x86/Hyper-V: Report crash data in die() when panic_on_oops is set x86/Hyper-V: Report crash register data when sysctl_record_panic_msg is not set x86/Hyper-V: Trigger crash enlightenment only once during system crash. x86/Hyper-V: Free hv_panic_page when fail to register kmsg dump x86/Hyper-V: Unload vmbus channel in hv panic callback xsk: Add missing check on user supplied headroom size rbd: call rbd_dev_unprobe() after unwatching and flushing notifies rbd: avoid a deadlock on header_rwsem when flushing notifies video: fbdev: sis: Remove unnecessary parentheses and commented code lib/raid6: use vdupq_n_u8 to avoid endianness warnings x86/Hyper-V: Report crash register data or kmsg before running crash kernel of: overlay: kmemleak in dup_and_fixup_symbol_prop() of: unittest: kmemleak in of_unittest_overlay_high_level() of: unittest: kmemleak in of_unittest_platform_populate() of: unittest: kmemleak on changeset destroy ALSA: hda: Don't release card at firmware loading error irqchip/mbigen: Free msi_desc on device teardown netfilter: nf_tables: report EOPNOTSUPP on unsupported flags/object type ARM: dts: imx6: Use gpc for FEC interrupt controller to fix wake on LAN. arm, bpf: Fix bugs with ALU64 {RSH, ARSH} BPF_K shift by 0 watchdog: sp805: fix restart handler * ext4: use non-movable memory for superblock readahead fs/buffer.c fs/ext4/inode.c fs/ext4/super.c include/linux/buffer_head.h * scsi: sg: add sg_remove_request in sg_common_write drivers/scsi/sg.c objtool: Fix switch table detection in .text.unlikely arm, bpf: Fix offset overflow for BPF_MEM BPF_DW ANDROID: GKI: Bulk update ABI report. * ANDROID: GKI: qos: Register irq notify after adding the qos request kernel/power/qos.c * ANDROID: GKI: Add dual role mode to usb_dr_modes array drivers/usb/common/common.c * UPSTREAM: virtio-gpu api: comment feature flags include/uapi/linux/virtio_gpu.h * ANDROID: arch:arm64: Increase kernel command line size arch/arm64/include/uapi/asm/setup.h * ANDROID: GKI: Add special linux_banner_ptr for modules include/linux/printk.h init/version.c * Revert "ANDROID: GKI: Make linux_banner a C pointer" include/linux/printk.h init/version.c * ANDROID: GKI: PM / devfreq: Add new flag to do simple clock scaling drivers/devfreq/governor_simpleondemand.c include/linux/devfreq.h * ANDROID: GKI: Resolve ABI diff for struct snd_usb_audio sound/usb/card.c sound/usb/stream.c sound/usb/usbaudio.h ANDROID: GKI: Bulk update ABI ANDROID: GKI: Update the whitelist for qcom SoCs ANDROID: GKI: arm64: gki_defconfig: Set CONFIG_SCSI_UFSHCD=m * ANDROID: GKI: scsi: add option to override the command timeout drivers/scsi/scsi_lib.c drivers/scsi/sd.c drivers/scsi/sg.c include/scsi/scsi_device.h * ANDROID: GKI: scsi: Adjust DBD setting in mode sense for caching mode page per LLD drivers/scsi/sd.c include/scsi/scsi_host.h * ANDROID: add ion_stat tracepoint to common kernel drivers/staging/android/ion/Makefile drivers/staging/android/ion/ion.c lib/vsprintf.c * UPSTREAM: gpu/trace: add a gpu total memory usage tracepoint drivers/Kconfig drivers/gpu/Makefile drivers/gpu/trace/Kconfig drivers/gpu/trace/Makefile drivers/gpu/trace/trace_gpu_mem.c include/trace/events/gpu_mem.h Merge 4.19.117 into android-4.19 Linux 4.19.117 * mm/vmalloc.c: move 'area->pages' after if statement mm/vmalloc.c wil6210: remove reset file from debugfs wil6210: make sure Rx ring sizes are correlated wil6210: add general initialization/size checks wil6210: ignore HALP ICR if already handled wil6210: check rx_buff_mgmt before accessing it x86/resctrl: Fix invalid attempt at removing the default resource group x86/resctrl: Preserve CDP enable over CPU hotplug x86/microcode/AMD: Increase microcode PATCH_MAX_SIZE * scsi: target: fix hang when multiple threads try to destroy the same iscsi session include/target/iscsi/iscsi_target_core.h scsi: target: remove boilerplate code kvm: x86: Host feature SSBD doesn't imply guest feature SPEC_CTRL_SSBD * ext4: do not zeroout extents beyond i_disksize fs/ext4/extents.c drm/amd/powerplay: force the trim of the mclk dpm_levels if OD is enabled * usb: dwc3: gadget: Don't clear flags before transfer ended drivers/usb/dwc3/gadget.c * usb: dwc3: gadget: don't enable interrupt when disabling endpoint drivers/usb/dwc3/gadget.c mac80211_hwsim: Use kstrndup() in place of kasprintf() btrfs: check commit root generation in should_ignore_root * tracing: Fix the race between registering 'snapshot' event trigger and triggering 'snapshot' operation kernel/trace/trace_events_trigger.c * keys: Fix proc_keys_next to increase position index security/keys/proc.c * ALSA: usb-audio: Check mapping at creating connector controls, too sound/usb/mixer.c sound/usb/mixer_maps.c * ALSA: usb-audio: Don't create jack controls for PCM terminals sound/usb/mixer.c * ALSA: usb-audio: Don't override ignore_ctl_error value from the map sound/usb/mixer.c * ALSA: usb-audio: Filter error from connector kctl ops, too sound/usb/mixer.c ASoC: Intel: mrfld: return error codes when an error occurs ASoC: Intel: mrfld: fix incorrect check on p->sink * ext4: fix incorrect inodes per group in error message fs/ext4/super.c * ext4: fix incorrect group count in ext4_fill_super error message fs/ext4/super.c pwm: pca9685: Fix PWM/GPIO inter-operation * jbd2: improve comments about freeing data buffers whose page mapping is NULL fs/jbd2/commit.c * scsi: ufs: Fix ufshcd_hold() caused scheduling while atomic drivers/scsi/ufs/ufshcd.c * ovl: fix value of i_ino for lower hardlink corner case fs/overlayfs/inode.c net: dsa: mt7530: fix tagged frames pass-through in VLAN-unaware mode net: stmmac: dwmac-sunxi: Provide TX and RX fifo sizes * net: revert default NAPI poll timeout to 2 jiffies net/core/dev.c * net: qrtr: send msgs from local of same id as broadcast net/qrtr/qrtr.c * net: ipv6: do not consider routes via gateways for anycast address check include/net/ip6_route.h * net: ipv4: devinet: Fix crash when add/del multicast IP with autojoin net/ipv4/devinet.c hsr: check protocol version in hsr_newlink() amd-xgbe: Use __napi_schedule() in BH context * ANDROID: GKI: drivers: of-thermal: Relate thermal zones using same sensor drivers/thermal/of-thermal.c ANDROID: GKI: Bulk ABI update * ANDROID: GKI: dma: Add set_dma_mask hook to struct dma_map_ops include/linux/dma-mapping.h Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-4.19.y' into android-4.19 ANDROID: GKI: ABI update due to recent patches Merge 4.19.116 into android-4.19 * FROMLIST: drm/prime: add support for virtio exported objects drivers/gpu/drm/drm_prime.c include/drm/drm_drv.h * FROMLIST: dma-buf: add support for virtio exported objects drivers/dma-buf/dma-buf.c include/linux/dma-buf.h UPSTREAM: drm/virtio: module_param_named() requires linux/moduleparam.h UPSTREAM: drm/virtio: fix resource id creation race UPSTREAM: drm/virtio: make resource id workaround runtime switchable. BACKPORT: drm/virtio: Drop deprecated load/unload initialization * ANDROID: GKI: Add DRM_TTM config to GKI init/Kconfig.gki ANDROID: Bulk update the ABI xml representation * ANDROID: GKI: spmi: pmic-arb: don't enable SPMI_MSM_PMIC_ARB by default drivers/spmi/Kconfig * ANDROID: GKI: attribute page lock and waitqueue functions as sched include/linux/pagemap.h include/linux/wait.h kernel/sched/wait.c mm/filemap.c * ANDROID: GKI: extcon: Fix Add usage of blocking notifier chain drivers/extcon/extcon.c include/linux/extcon.h * ANDROID: GKI: USB: pd: Extcon fix for C current include/linux/extcon.h * ANDROID: drm/dsi: Fix byte order of DCS set/get brightness drivers/gpu/drm/drm_mipi_dsi.c include/drm/drm_mipi_dsi.h * ANDROID: GKI: mm: Export symbols to modularize CONFIG_MSM_DRM mm/vmalloc.c * ANDROID: GKI: ALSA: compress: Add support to send codec specific data include/sound/compress_driver.h include/uapi/sound/compress_offload.h sound/core/compress_offload.c sound/soc/soc-compress.c * ANDROID: GKI: ALSA: Compress - dont use lock for all ioctls sound/core/compress_offload.c * ANDROID: GKI: ASoC: msm: qdsp6v2: add support for AMR_WB_PLUS offload include/uapi/sound/compress_params.h * ANDROID: GKI: msm: dolby: MAT and THD audiocodec name modification include/uapi/sound/compress_params.h * ANDROID: GKI: asoc: msm: Add support for compressed perf mode include/uapi/sound/compress_params.h * ANDROID: GKI: msm: audio: support for gapless_pcm include/uapi/sound/compress_params.h * ANDROID: GKI: uapi: msm: dolby: Support for TrueHD and MAT decoders include/uapi/sound/compress_params.h * ANDROID: GKI: ASoC: msm: qdsp6v2: Add TrueHD HDMI compress pass-though include/uapi/sound/compress_params.h * ANDROID: GKI: ALSA: compress: Add APTX format support in ALSA include/uapi/sound/compress_params.h * ANDROID: GKI: msm: qdsp6v2: Add timestamp support for compress capture include/uapi/sound/compress_params.h * ANDROID: GKI: SoC: msm: Add support for meta data in compressed TX include/uapi/sound/compress_params.h * ANDROID: GKI: ALSA: compress: Add DSD format support for ALSA include/uapi/sound/compress_params.h * ANDROID: GKI: ASoC: msm: qdsp6v2: add support for ALAC and APE offload include/uapi/sound/compress_params.h * ANDROID: GKI: SoC: msm: Add compressed TX and passthrough support include/uapi/sound/compress_offload.h include/uapi/sound/compress_params.h * ANDROID: GKI: ASoC: msm: qdsp6v2: Add FLAC in compress offload path include/uapi/sound/compress_params.h * ANDROID: GKI: ASoC: msm: add support for different compressed formats include/uapi/sound/compress_params.h * ANDROID: GKI: ASoC: msm: Update the encode option and sample rate include/uapi/sound/compress_params.h ANDROID: GKI: Enable CONFIG_SND_VERBOSE_PROCFS in gki_defconfig * ANDROID: GKI: Add hidden CONFIG_SND_SOC_COMPRESS to gki_defconfig init/Kconfig.gki * ANDROID: GKI: ALSA: pcm: add locks for accessing runtime resource include/sound/pcm.h ANDROID: GKI: Update ABI for DRM changes * ANDROID: GKI: Add drm_dp_send_dpcd_{read,write} accessor functions drivers/gpu/drm/drm_dp_mst_topology.c include/drm/drm_dp_mst_helper.h * ANDROID: GKI: drm: Add drm_dp_mst_get_max_sdp_streams_supported accessor function drivers/gpu/drm/drm_dp_mst_topology.c include/drm/drm_dp_mst_helper.h * ANDROID: GKI: drm: Add drm_dp_mst_has_fec accessor function drivers/gpu/drm/drm_dp_mst_topology.c include/drm/drm_dp_mst_helper.h * ANDROID: GKI: Add 'dsc_info' to struct drm_dp_mst_port drivers/gpu/drm/drm_dp_mst_topology.c include/drm/drm_dp_mst_helper.h * ANDROID: GKI: usb: Add support to handle USB SMMU S1 address drivers/usb/core/hcd.c drivers/usb/core/usb.c drivers/usb/host/xhci.c include/linux/usb.h include/linux/usb/hcd.h * ANDROID: GKI: usb: Add helper APIs to return xhci phys addresses drivers/usb/core/hcd.c drivers/usb/core/usb.c drivers/usb/host/xhci.c include/linux/usb.h include/linux/usb/hcd.h * ANDROID: Add C protos for dma_buf/drm_prime get_uuid include/drm/drm_prime.h include/linux/dma-buf.h * ANDROID: GKI: Make linux_banner a C pointer include/linux/printk.h init/version.c * ANDROID: GKI: Add 'refresh_rate', 'id' to struct drm_panel_notifier include/drm/drm_panel.h * ANDROID: GKI: Add 'i2c_mutex' to struct drm_dp_aux include/drm/drm_dp_helper.h * ANDROID: GKI: Add 'checksum' to struct drm_connector include/drm/drm_connector.h * Revert "BACKPORT: drm: Add HDR source metadata property" drivers/gpu/drm/drm_atomic.c drivers/gpu/drm/drm_connector.c include/drm/drm_connector.h include/drm/drm_mode_config.h include/linux/hdmi.h include/uapi/drm/drm_mode.h * Revert "BACKPORT: drm: Parse HDR metadata info from EDID" drivers/gpu/drm/drm_edid.c * ANDROID: drm: Add DP colorspace property drivers/gpu/drm/drm_connector.c include/drm/drm_connector.h * ANDROID: GKI: drm: Initialize display->hdmi when parsing vsdb drivers/gpu/drm/drm_edid.c * ANDROID: drivers: gpu: drm: add support to batch commands drivers/gpu/drm/drm_mipi_dsi.c include/drm/drm_mipi_dsi.h ANDROID: ABI: update the qcom whitelist * ANDROID: GKI: ARM64: smp: add vendor field pending_ipi arch/arm64/kernel/smp.c ANDROID: gki_defconfig: enable msm serial early console * ANDROID: serial: msm_geni_serial_console : Add Earlycon support drivers/tty/serial/Kconfig drivers/tty/serial/Makefile drivers/tty/serial/msm_geni_serial_console.c * ANDROID: GKI: serial: core: export uart_console_device drivers/tty/serial/serial_core.c * f2fs: fix quota_sync failure due to f2fs_lock_op fs/f2fs/data.c * f2fs: support read iostat fs/f2fs/checkpoint.c fs/f2fs/data.c fs/f2fs/f2fs.h fs/f2fs/file.c fs/f2fs/gc.c fs/f2fs/node.c fs/f2fs/sysfs.c include/trace/events/f2fs.h * f2fs: Fix the accounting of dcc->undiscard_blks fs/f2fs/segment.c * f2fs: fix to handle error path of f2fs_ra_meta_pages() fs/f2fs/checkpoint.c * f2fs: report the discard cmd errors properly fs/f2fs/segment.c * f2fs: fix long latency due to discard during umount fs/f2fs/segment.c * f2fs: add tracepoint for f2fs iostat fs/f2fs/f2fs.h fs/f2fs/super.c fs/f2fs/sysfs.c include/trace/events/f2fs.h * f2fs: introduce sysfs/data_io_flag to attach REQ_META/FUA fs/f2fs/data.c fs/f2fs/f2fs.h fs/f2fs/sysfs.c ANDROID: GKI: update abi definition due to previous changes in the tree Linux 4.19.116 efi/x86: Fix the deletion of variables in mixed mode mfd: dln2: Fix sanity checking for endpoints etnaviv: perfmon: fix total and idle HI cyleces readout misc: echo: Remove unnecessary parentheses and simplify check for zero powerpc/fsl_booke: Avoid creating duplicate tlb1 entry ftrace/kprobe: Show the maxactive number on kprobe_events * drm: Remove PageReserved manipulation from drm_pci_alloc drivers/gpu/drm/drm_pci.c * drm/dp_mst: Fix clearing payload state on topology disable drivers/gpu/drm/drm_dp_mst_topology.c * Revert "drm/dp_mst: Remove VCPI while disabling topology mgr" drivers/gpu/drm/drm_dp_mst_topology.c crypto: ccree - only try to map auth tag if needed crypto: ccree - dec auth tag size from cryptlen map crypto: ccree - don't mangle the request assoclen crypto: ccree - zero out internal struct before use crypto: ccree - improve error handling crypto: caam - update xts sector size for large input length dm zoned: remove duplicate nr_rnd_zones increase in dmz_init_zone() btrfs: use nofs allocations for running delayed items powerpc: Make setjmp/longjmp signature standard powerpc: Add attributes for setjmp/longjmp scsi: mpt3sas: Fix kernel panic observed on soft HBA unplug powerpc/kprobes: Ignore traps that happened in real mode powerpc/xive: Use XIVE_BAD_IRQ instead of zero to catch non configured IPIs powerpc/hash64/devmap: Use H_PAGE_THP_HUGE when setting up huge devmap PTE entries powerpc/64/tm: Don't let userspace set regs->trap via sigreturn powerpc/powernv/idle: Restore AMR/UAMOR/AMOR after idle xen/blkfront: fix memory allocation flags in blkfront_setup_indirect() ipmi: fix hung processes in __get_guid() libata: Return correct status in sata_pmp_eh_recover_pm() when ATA_DFLAG_DETACH is set hfsplus: fix crash and filesystem corruption when deleting files cpufreq: powernv: Fix use-after-free * kmod: make request_module() return an error when autoloading is disabled kernel/kmod.c clk: ingenic/jz4770: Exit with error if CGU init failed Input: i8042 - add Acer Aspire 5738z to nomux list s390/diag: fix display of diagnose call statistics perf tools: Support Python 3.8+ in Makefile ocfs2: no need try to truncate file beyond i_size * fs/filesystems.c: downgrade user-reachable WARN_ONCE() to pr_warn_once() fs/filesystems.c * ext4: fix a data race at inode->i_blocks fs/ext4/inode.c NFS: Fix a page leak in nfs_destroy_unlinked_subrequests() powerpc/pseries: Avoid NULL pointer dereference when drmem is unavailable drm/etnaviv: rework perfmon query infrastructure rtc: omap: Use define directive for PIN_CONFIG_ACTIVE_HIGH selftests: vm: drop dependencies on page flags from mlock2 tests * arm64: armv8_deprecated: Fix undef_hook mask for thumb setend arch/arm64/kernel/armv8_deprecated.c scsi: zfcp: fix missing erp_lock in port recovery trigger for point-to-point * dm verity fec: fix memory leak in verity_fec_dtr drivers/md/dm-verity-fec.c dm writecache: add cond_resched to avoid CPU hangs arm64: dts: allwinner: h6: Fix PMU compatible * net: qualcomm: rmnet: Allow configuration updates to existing devices drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c * mm: Use fixed constant in page_frag_alloc instead of size + 1 mm/page_alloc.c tools: gpio: Fix out-of-tree build regression * x86/speculation: Remove redundant arch_smt_update() invocation kernel/cpu.c powerpc/pseries: Drop pointless static qualifier in vpa_debugfs_init() erofs: correct the remaining shrink objects crypto: mxs-dcp - fix scatterlist linearization for hash btrfs: fix missing semaphore unlock in btrfs_sync_file btrfs: fix missing file extent item for hole after ranged fsync btrfs: drop block from cache on error in relocation btrfs: set update the uuid generation as soon as possible Btrfs: fix crash during unmount due to race with delayed inode workers mtd: spinand: Do not erase the block before writing a bad block marker mtd: spinand: Stop using spinand->oobbuf for buffering bad block markers CIFS: Fix bug which the return value by asynchronous read is error KVM: VMX: fix crash cleanup when KVM wasn't used KVM: x86: Gracefully handle __vmalloc() failure during VM allocation KVM: VMX: Always VMCLEAR in-use VMCSes during crash with kexec support KVM: x86: Allocate new rmap and large page tracking when moving memslot KVM: s390: vsie: Fix delivery of addressing exceptions KVM: s390: vsie: Fix region 1 ASCE sanity shadow address checks KVM: nVMX: Properly handle userspace interrupt window request x86/entry/32: Add missing ASM_CLAC to general_protection entry * signal: Extend exec_id to 64bits fs/exec.c include/linux/sched.h kernel/signal.c ath9k: Handle txpower changes even when TPC is disabled MIPS: OCTEON: irq: Fix potential NULL pointer dereference MIPS/tlbex: Fix LDDIR usage in setup_pw() for Loongson-3 * pstore: pstore_ftrace_seq_next should increase position index fs/pstore/inode.c irqchip/versatile-fpga: Apply clear-mask earlier * KEYS: reaching the keys quotas correctly security/keys/key.c security/keys/keyctl.c tpm: tpm2_bios_measurements_next should increase position index tpm: tpm1_bios_measurements_next should increase position index tpm: Don't make log failures fatal * PCI: endpoint: Fix for concurrent memory allocation in OB address region include/linux/pci-epc.h * PCI: Add boot interrupt quirk mechanism for Xeon chipsets drivers/pci/quirks.c PCI/ASPM: Clear the correct bits when enabling L1 substates PCI: pciehp: Fix indefinite wait on sysfs requests nvme: Treat discovery subsystems as unique subsystems * nvme-fc: Revert "add module to ops template to allow module references" include/linux/nvme-fc-driver.h * thermal: devfreq_cooling: inline all stubs for CONFIG_DEVFREQ_THERMAL=n include/linux/devfreq_cooling.h acpi/x86: ignore unspecified bit positions in the ACPI global lock field media: ti-vpe: cal: fix disable_irqs to only the intended target ALSA: hda/realtek - Add quirk for MSI GL63 ALSA: hda/realtek - Remove now-unnecessary XPS 13 headphone noise fixups ALSA: hda/realtek - Set principled PC Beep configuration for ALC256 ALSA: doc: Document PC Beep Hidden Register on Realtek ALC256 ALSA: pcm: oss: Fix regression by buffer overflow fix ALSA: ice1724: Fix invalid access for enumerated ctl items ALSA: hda: Fix potential access overflow in beep helper ALSA: hda: Add driver blacklist * ALSA: usb-audio: Add mixer workaround for TRX40 and co sound/usb/mixer_maps.c * usb: gadget: composite: Inform controller driver of self-powered drivers/usb/gadget/composite.c * usb: gadget: f_fs: Fix use after free issue as part of queue failure drivers/usb/gadget/function/f_fs.c ASoC: topology: use name_prefix for new kcontrol * ASoC: dpcm: allow start or stop during pause for backend sound/soc/soc-pcm.c * ASoC: dapm: connect virtual mux with default value sound/soc/soc-dapm.c * ASoC: fix regwmask sound/soc/soc-ops.c * slub: improve bit diffusion for freelist ptr obfuscation mm/slub.c * uapi: rename ext2_swab() to swab() and share globally in swab.h include/linux/swab.h include/uapi/linux/swab.h lib/find_bit.c * IB/mlx5: Replace tunnel mpls capability bits for tunnel_offloads include/linux/mlx5/mlx5_ifc.h btrfs: track reloc roots based on their commit root bytenr btrfs: remove a BUG_ON() from merge_reloc_roots() btrfs: qgroup: ensure qgroup_rescan_running is only set when the worker is at least queued block, bfq: fix use-after-free in bfq_idle_slice_timer_body locking/lockdep: Avoid recursion in lockdep_count_{for,back}ward_deps() * firmware: fix a double abort case with fw_load_sysfs_fallback drivers/base/firmware_loader/fallback.c md: check arrays is suspended in mddev_detach before call quiesce operations * irqchip/gic-v4: Provide irq_retrigger to avoid circular locking dependency drivers/irqchip/irq-gic-v3-its.c * usb: dwc3: core: add support for disabling SS instances in park mode drivers/usb/dwc3/core.c drivers/usb/dwc3/core.h media: i2c: ov5695: Fix power on and off sequences * block: Fix use-after-free issue accessing struct io_cq block/blk-ioc.c include/linux/iocontext.h * genirq/irqdomain: Check pointer in irq_domain_alloc_irqs_hierarchy() kernel/irq/irqdomain.c efi/x86: Ignore the memory attributes table on i386 x86/boot: Use unsigned comparison for addresses gfs2: Don't demote a glock until its revokes are written * pstore/platform: fix potential mem leak if pstore_init_fs failed fs/pstore/platform.c libata: Remove extra scsi_host_put() in ata_scsi_add_hosts() media: i2c: video-i2c: fix build errors due to 'imply hwmon' PCI/switchtec: Fix init_completion race condition with poll_wait() selftests/x86/ptrace_syscall_32: Fix no-vDSO segfault * sched: Avoid scale real weight down to zero kernel/sched/sched.h irqchip/versatile-fpga: Handle chained IRQs properly * block: keep bdi->io_pages in sync with max_sectors_kb for stacked devices block/blk-settings.c x86: Don't let pgprot_modify() change the page encryption bit * xhci: bail out early if driver can't accress host in resume drivers/usb/host/xhci.c null_blk: fix spurious IO errors after failed past-wp access null_blk: Handle null_add_dev() failures properly null_blk: Fix the null_add_dev() error path firmware: arm_sdei: fix double-lock on hibernate with shared events media: venus: hfi_parser: Ignore HEVC encoding for V1 cpufreq: imx6q: Fixes unwanted cpu overclocking on i.MX6ULL i2c: st: fix missing struct parameter description qlcnic: Fix bad kzalloc null test cxgb4/ptp: pass the sign of offset delta in FW CMD hinic: fix wrong para of wait_for_completion_timeout hinic: fix a bug of waitting for IO stopped net: vxge: fix wrong __VA_ARGS__ usage bus: sunxi-rsb: Return correct data when mixing 16-bit and 8-bit reads ARM: dts: sun8i-a83t-tbs-a711: HM5065 doesn't like such a high voltage ANDROID: build.config.allmodconfig: Re-enable XFS_FS * FROMGIT: of: property: Add device link support for extcon drivers/of/property.c ANDROID: GKI: arm64: gki_defconfig: enable CONFIG_MM_EVENT_STAT * ANDROID: GKI: add fields from per-process mm event tracking feature include/linux/mm_event.h include/linux/sched.h mm/Kconfig mm/Makefile mm/mm_event.c * ANDROID: GKI: fix ABI diffs caused by ION heap and pool vmstat additions include/linux/mmzone.h mm/vmstat.c * UPSTREAM: GKI: panic/reboot: allow specifying reboot_mode for panic only include/linux/reboot.h kernel/panic.c kernel/reboot.c * ANDROID: GKI: of: property: Add device link support for phys property drivers/of/property.c * ANDROID: GKI: usb: phy: Fix ABI diff for usb_otg_state include/linux/usb/phy.h * ANDROID: GKI: usb: phy: Fix ABI diff due to usb_phy.drive_dp_pulse include/linux/usb/phy.h * ANDROID: GKI: usb: phy: Fix ABI diff for usb_phy_type and usb_phy.reset include/linux/usb/phy.h ANDROID: gki_defconfig: enable CONFIG_GPIO_SYSFS * ANDROID: GKI: qcom: Fix compile issue when setting msm_lmh_dcvs as a module kernel/trace/power-traces.c * ANDROID: GKI: drivers: cpu_cooling: allow platform freq mitigation drivers/thermal/cpu_cooling.c include/linux/cpu_cooling.h * ANDROID: GKI: ASoC: Add locking in DAPM widget power update include/sound/soc.h sound/soc/soc-core.c sound/soc/soc-dapm.c * ANDROID: GKI: ASoC: jack: Fix buttons enum value include/sound/jack.h * ANDROID: GKI: ALSA: jack: Add support to report second microphone include/sound/jack.h include/uapi/linux/input-event-codes.h sound/core/jack.c * ANDROID: GKI: ALSA: jack: Update supported jack switch types include/linux/mod_devicetable.h include/sound/jack.h include/uapi/linux/input-event-codes.h sound/core/jack.c * ANDROID: GKI: ALSA: jack: update jack types include/sound/jack.h * ANDROID: GKI: Export symbols arm_cpuidle_suspend, cpuidle_dev and cpuidle_register_governor arch/arm64/kernel/cpuidle.c drivers/cpuidle/cpuidle.c * ANDROID: GKI: usb: hcd: Add USB atomic notifier callback for HC died error drivers/usb/core/hcd.c drivers/usb/core/notify.c drivers/usb/core/usb.h include/linux/usb.h * ANDROID: media: increase video max frame number include/media/videobuf2-core.h include/uapi/linux/videodev2.h * BACKPORT: nvmem: core: add NVMEM_SYSFS Kconfig drivers/nvmem/Kconfig drivers/nvmem/Makefile drivers/nvmem/core.c drivers/nvmem/nvmem-sysfs.c drivers/nvmem/nvmem.h * UPSTREAM: nvmem: add support for cell info drivers/nvmem/core.c include/linux/nvmem-provider.h * UPSTREAM: nvmem: remove the global cell list drivers/nvmem/core.c * UPSTREAM: nvmem: use kref drivers/nvmem/core.c * UPSTREAM: nvmem: use list_for_each_entry_safe in nvmem_device_remove_all_cells() drivers/nvmem/core.c * UPSTREAM: nvmem: provide nvmem_dev_name() drivers/nvmem/core.c include/linux/nvmem-consumer.h ANDROID: GKI: Bulk ABI update * ANDROID: GKI: cpuhotplug: adding hotplug enums for vendor code include/linux/cpuhotplug.h * ANDROID: Incremental fs: Fix create_file performance fs/incfs/format.c ANDROID: build.config.common: Add BUILDTOOLS_PREBUILT_BIN * UPSTREAM: kheaders: include only headers into kheaders_data.tar.xz kernel/gen_kheaders.sh * UPSTREAM: kheaders: remove meaningless -R option of 'ls' kernel/gen_kheaders.sh * ANDROID: GKI: of: platform: initialize of_reserved_mem drivers/of/platform.c * ANDROID: driver: gpu: drm: add notifier for panel related events drivers/gpu/drm/drm_panel.c include/drm/drm_connector.h include/drm/drm_panel.h * ANDROID: include: drm: support unicasting mipi cmds to dsi ctrls include/drm/drm_mipi_dsi.h * ANDROID: include: drm: increase DRM max property count to 64 include/drm/drm_mode_object.h * BACKPORT: drm: Add HDMI colorspace property drivers/gpu/drm/drm_atomic.c drivers/gpu/drm/drm_connector.c include/drm/drm_connector.h * ANDROID: drm: edid: add support for additional CEA extension blocks drivers/gpu/drm/drm_edid.c include/drm/drm_connector.h include/drm/drm_edid.h * BACKPORT: drm: Parse HDR metadata info from EDID drivers/gpu/drm/drm_edid.c * BACKPORT: drm: Add HDR source metadata property drivers/gpu/drm/drm_atomic.c drivers/gpu/drm/drm_connector.c include/drm/drm_connector.h include/drm/drm_mode_config.h include/linux/hdmi.h include/uapi/drm/drm_mode.h * BACKPORT: drm/dp_mst: Parse FEC capability on MST ports drivers/gpu/drm/drm_dp_mst_topology.c include/drm/drm_dp_mst_helper.h ANDROID: GKI: ABI update for DRM changes ANDROID: ABI: add missing elf variables to representation * ANDROID: GKI: power_supply: Add PROP_MOISTURE_DETECTION_ENABLED drivers/power/supply/power_supply_sysfs.c include/linux/power_supply.h * ANDROID: include: drm: add the definitions for DP Link Compliance tests include/drm/drm_dp_helper.h * ANDROID: drivers: gpu: drm: fix bugs encountered while fuzzing drivers/gpu/drm/drm_file.c drivers/gpu/drm/drm_property.c * FROMLIST: power_supply: Add additional health properties to the header drivers/power/supply/power_supply_sysfs.c include/linux/power_supply.h UPSTREAM: power: supply: core: Update sysfs-class-power ABI document * UPSTREAM: Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-4.19.y' into android-4.19 (v5.7-rc1) fs/f2fs/Kconfig fs/f2fs/checkpoint.c fs/f2fs/data.c fs/f2fs/debug.c fs/f2fs/dir.c fs/f2fs/f2fs.h fs/f2fs/file.c fs/f2fs/gc.c fs/f2fs/inode.c fs/f2fs/namei.c fs/f2fs/node.c fs/f2fs/recovery.c fs/f2fs/segment.c fs/f2fs/segment.h fs/f2fs/shrinker.c fs/f2fs/super.c fs/f2fs/sysfs.c fs/f2fs/xattr.c fs/f2fs/xattr.h include/linux/f2fs_fs.h include/trace/events/f2fs.h mm/swapfile.c * ANDROID: drivers: gpu: drm: add support for secure framebuffer drivers/gpu/drm/drm_framebuffer.c include/uapi/drm/drm_mode.h * ANDROID: include: uapi: drm: add additional QCOM modifiers include/uapi/drm/drm_fourcc.h * ANDROID: drm: dsi: add two DSI mode flags for BLLP include/drm/drm_mipi_dsi.h * ANDROID: include: uapi: drm: add additional drm mode flags include/uapi/drm/drm_mode.h * UPSTREAM: drm: plug memory leak on drm_setup() failure drivers/gpu/drm/drm_file.c * UPSTREAM: drm: factor out drm_close_helper() function drivers/gpu/drm/drm_file.c ANDROID: GKI: Bulk ABI update * BACKPORT: nl80211: Add per peer statistics to compute FCS error rate include/net/cfg80211.h include/uapi/linux/nl80211.h net/wireless/nl80211.c * ANDROID: GKI: sound: usb: Add snd_usb_enable_audio_stream/find_snd_usb_substream sound/usb/card.c sound/usb/card.h sound/usb/pcm.c sound/usb/pcm.h sound/usb/usbaudio.h * ANDROID: GKI: add dma-buf includes drivers/dma-buf/dma-buf.c * ANDROID: GKI: sched: struct fields for Per-Sched-domain over utilization include/linux/sched/topology.h * ANDROID: GKI: Add vendor fields to root_domain kernel/sched/sched.h ANDROID: gki_defconfig: Enable CONFIG_IRQ_TIME_ACCOUNTING ANDROID: fix allmodconfig build to use the right toolchain ANDROID: fix allmodconfig build to use the right toolchain ANDROID: GKI: Update ABI * Revert "UPSTREAM: mm, page_alloc: spread allocations across zones before introducing fragmentation" mm/internal.h mm/page_alloc.c * Revert "UPSTREAM: mm: use alloc_flags to record if kswapd can wake" mm/internal.h mm/page_alloc.c * Revert "BACKPORT: mm: move zone watermark accesses behind an accessor" include/linux/mmzone.h mm/compaction.c mm/page_alloc.c * Revert "BACKPORT: mm: reclaim small amounts of memory when an external fragmentation event occurs" include/linux/mm.h include/linux/mmzone.h kernel/sysctl.c mm/page_alloc.c mm/vmscan.c * Revert "BACKPORT: mm, compaction: be selective about what pageblocks to clear skip hints" include/linux/mmzone.h mm/compaction.c * ANDROID: GKI: panic: add vendor callback function in panic() include/linux/kernel.h kernel/panic.c * UPSTREAM: GKI: thermal: make device_register's type argument const drivers/thermal/thermal_core.c include/linux/thermal.h * ANDROID: GKI: add base.h include to match MODULE_VERSIONS drivers/thermal/thermal_core.c ANDROID: update the ABI based on the new whitelist * ANDROID: GKI: fdt: export symbols required by modules drivers/of/fdt.c * ANDROID: GKI: drivers: of: Add APIs to find DDR device rank, HBB drivers/of/fdt.c include/linux/of_fdt.h * ANDROID: GKI: security: Add mmap export symbols for modules security/min_addr.c * ANDROID: GKI: arch: add stub symbols for boot_reason and cold_boot arch/arm64/kernel/setup.c * ANDROID: GKI: USB: Fix ABI diff for struct usb_bus drivers/usb/core/driver.c include/linux/usb.h * ANDROID: GKI: USB: Resolve ABI diff for usb_gadget and usb_gadget_ops drivers/usb/gadget/udc/core.c include/linux/usb/gadget.h * ANDROID: GKI: add hidden V4L2_MEM2MEM_DEV init/Kconfig.gki ANDROID: GKI: enable VIDEO_V4L2_SUBDEV_API * ANDROID: GKI: export symbols from abi_gki_aarch64_qcom_whitelist arch/arm64/mm/mmu.c drivers/base/core.c drivers/clocksource/arm_arch_timer.c drivers/cpuidle/governor.c drivers/gpu/drm/drm_atomic_helper.c drivers/gpu/drm/drm_modes.c fs/kernfs/symlink.c kernel/params.c kernel/power/main.c kernel/power/qos.c kernel/power/suspend.c kernel/printk/printk.c kernel/time/tick-sched.c lib/ioremap.c lib/plist.c mm/memblock.c mm/mmap.c security/security.c sound/usb/helper.c ANDROID: Update the whitelist for qcom SoCs * ANDROID: Incremental fs: Fix compound page usercopy crash fs/incfs/data_mgmt.c fs/incfs/vfs.c ANDROID: Incremental fs: Clean up incfs_test build process * ANDROID: Incremental fs: make remount log buffer change atomic fs/incfs/data_mgmt.c fs/incfs/data_mgmt.h fs/incfs/vfs.c * ANDROID: Incremental fs: Optimize get_filled_block fs/incfs/data_mgmt.c fs/incfs/format.c * ANDROID: Incremental fs: Fix mislabeled __user ptrs fs/incfs/data_mgmt.c fs/incfs/integrity.c fs/incfs/vfs.c * ANDROID: Incremental fs: Use 64-bit int for file_size when writing hash blocks fs/incfs/format.c fs/incfs/format.h Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-4.19.y' into android-4.19 (v5.7-rc1) Merge remote-tracking branch 'aosp/android-4.19' into android-4.19-stable ubifs: wire up FS_IOC_GET_ENCRYPTION_NONCE * f2fs: wire up FS_IOC_GET_ENCRYPTION_NONCE fs/f2fs/file.c * ext4: wire up FS_IOC_GET_ENCRYPTION_NONCE fs/ext4/ioctl.c * fscrypt: add FS_IOC_GET_ENCRYPTION_NONCE ioctl fs/crypto/fscrypt_private.h fs/crypto/keysetup.c fs/crypto/policy.c include/linux/fscrypt.h include/uapi/linux/fscrypt.h * f2fs: keep inline_data when compression conversion fs/f2fs/file.c * f2fs: fix to disable compression on directory fs/f2fs/f2fs.h fs/f2fs/file.c * f2fs: add missing CONFIG_F2FS_FS_COMPRESSION fs/f2fs/sysfs.c * f2fs: switch discard_policy.timeout to bool type fs/f2fs/f2fs.h fs/f2fs/segment.c f2fs: fix to verify tpage before releasing in f2fs_free_dic() * f2fs: show compression in statx fs/f2fs/file.c f2fs: clean up dic->tpages assignment * f2fs: compress: support zstd compress algorithm fs/f2fs/Kconfig fs/f2fs/f2fs.h fs/f2fs/super.c include/trace/events/f2fs.h f2fs: compress: add .{init,destroy}_decompress_ctx callback f2fs: compress: fix to call missing destroy_compress_ctx() * f2fs: change default compression algorithm fs/f2fs/super.c f2fs: clean up {cic,dic}.ref handling * f2fs: fix to use f2fs_readpage_limit() in f2fs_read_multi_pages() fs/f2fs/data.c * f2fs: xattr.h: Make stub helpers inline fs/f2fs/xattr.h * f2fs: fix to avoid double unlock fs/f2fs/data.c * f2fs: fix potential .flags overflow on 32bit architecture fs/f2fs/f2fs.h fs/f2fs/inode.c * f2fs: fix NULL pointer dereference in f2fs_verity_work() fs/f2fs/data.c f2fs: fix to clear PG_error if fsverity failed * f2fs: don't call fscrypt_get_encryption_info() explicitly in f2fs_tmpfile() fs/f2fs/namei.c * f2fs: don't trigger data flush in foreground operation fs/f2fs/f2fs.h fs/f2fs/gc.c fs/f2fs/node.c fs/f2fs/segment.c * f2fs: fix NULL pointer dereference in f2fs_write_begin() fs/f2fs/super.c * f2fs: clean up f2fs_may_encrypt() fs/f2fs/dir.c fs/f2fs/f2fs.h fs/f2fs/namei.c * f2fs: fix to avoid potential deadlock fs/f2fs/data.c * f2fs: don't change inode status under page lock fs/f2fs/dir.c f2fs: fix potential deadlock on compressed quota file * f2fs: delete DIO read lock fs/f2fs/data.c * f2fs: don't mark compressed inode dirty during f2fs_iget() fs/f2fs/f2fs.h f2fs: fix to account compressed blocks in f2fs_compressed_blocks() * f2fs: xattr.h: Replace zero-length array with flexible-array member fs/f2fs/xattr.h * f2fs: fix to update f2fs_super_block fields under sb_lock fs/f2fs/gc.c * f2fs: Add a new CP flag to help fsck fix resize SPO issues fs/f2fs/checkpoint.c include/linux/f2fs_fs.h * f2fs: Fix mount failure due to SPO after a successful online resize FS fs/f2fs/gc.c * f2fs: use kmem_cache pool during inline xattr lookups fs/f2fs/f2fs.h fs/f2fs/super.c fs/f2fs/xattr.c fs/f2fs/xattr.h * f2fs: skip migration only when BG_GC is called fs/f2fs/gc.c * f2fs: fix to show tracepoint correctly fs/f2fs/file.c * f2fs: avoid __GFP_NOFAIL in f2fs_bio_alloc fs/f2fs/data.c fs/f2fs/f2fs.h * f2fs: introduce F2FS_IOC_GET_COMPRESS_BLOCKS fs/f2fs/f2fs.h fs/f2fs/file.c * f2fs: fix to avoid triggering IO in write path fs/f2fs/data.c fs/f2fs/f2fs.h * f2fs: add prefix for f2fs slab cache name fs/f2fs/data.c fs/f2fs/node.c fs/f2fs/segment.c * f2fs: introduce DEFAULT_IO_TIMEOUT fs/f2fs/checkpoint.c fs/f2fs/data.c fs/f2fs/f2fs.h fs/f2fs/gc.c fs/f2fs/inode.c fs/f2fs/node.c fs/f2fs/recovery.c fs/f2fs/segment.c fs/f2fs/super.c * f2fs: skip GC when section is full fs/f2fs/gc.c * f2fs: add migration count iff migration happens fs/f2fs/gc.c * f2fs: clean up bggc mount option fs/f2fs/f2fs.h fs/f2fs/gc.c fs/f2fs/super.c * f2fs: clean up lfs/adaptive mount option fs/f2fs/data.c fs/f2fs/f2fs.h fs/f2fs/file.c fs/f2fs/gc.c fs/f2fs/segment.c fs/f2fs/super.c * f2fs: fix to show norecovery mount option fs/f2fs/f2fs.h fs/f2fs/super.c * f2fs: clean up parameter of macro XATTR_SIZE() fs/f2fs/xattr.c fs/f2fs/xattr.h * f2fs: clean up codes with {f2fs_,}data_blkaddr() fs/f2fs/data.c fs/f2fs/f2fs.h fs/f2fs/file.c fs/f2fs/gc.c fs/f2fs/node.c fs/f2fs/recovery.c * f2fs: show mounted time fs/f2fs/debug.c fs/f2fs/segment.c fs/f2fs/segment.h fs/f2fs/sysfs.c * f2fs: Use scnprintf() for avoiding potential buffer overflow fs/f2fs/sysfs.c * f2fs: allow to clear F2FS_COMPR_FL flag fs/f2fs/file.c * f2fs: fix to check dirty pages during compressed inode conversion fs/f2fs/f2fs.h * f2fs: fix to account compressed inode correctly fs/f2fs/f2fs.h * f2fs: fix wrong check on F2FS_IOC_FSSETXATTR fs/f2fs/file.c f2fs: fix to avoid use-after-free in f2fs_write_multi_pages() * f2fs: fix to avoid using uninitialized variable fs/f2fs/file.c * f2fs: fix inconsistent comments fs/f2fs/checkpoint.c fs/f2fs/data.c fs/f2fs/f2fs.h fs/f2fs/file.c fs/f2fs/gc.c fs/f2fs/inode.c fs/f2fs/namei.c fs/f2fs/node.c fs/f2fs/shrinker.c fs/f2fs/super.c * f2fs: remove i_sem lock coverage in f2fs_setxattr() fs/f2fs/xattr.c * f2fs: cover last_disk_size update with spinlock fs/f2fs/data.c fs/f2fs/f2fs.h fs/f2fs/file.c fs/f2fs/super.c * f2fs: fix to check i_compr_blocks correctly fs/f2fs/inode.c Merge android-4.19 into android-4.19-stable ANDROID: GKI: Removed cuttlefish configs f2fs: fix to avoid potential deadlock * f2fs: add missing function name in kernel message fs/f2fs/f2fs.h fs/f2fs/node.c * f2fs: recycle unused compress_data.chksum feild fs/f2fs/f2fs.h f2fs: fix to avoid NULL pointer dereference f2fs: fix leaking uninitialized memory in compressed clusters * f2fs: fix the panic in do_checkpoint() fs/f2fs/checkpoint.c fs/f2fs/f2fs.h fs/f2fs/super.c * f2fs: fix to wait all node page writeback fs/f2fs/node.c * mm/swapfile.c: move inode_lock out of claim_swapfile mm/swapfile.c * fscrypt: don't evict dirty inodes after removing key fs/crypto/keysetup.c Change-Id: I9ca86223eb4183aa40011ade86b74cc3beaabd4a Signed-off-by: lucaswei <lucaswei@google.com>
| * locktorture: Print ratio of acquisitions, not failuresPaul E. McKenney2020-04-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 80c503e0e68fbe271680ab48f0fe29bc034b01b7 upstream. The __torture_print_stats() function in locktorture.c carefully initializes local variable "min" to statp[0].n_lock_acquired, but then compares it to statp[i].n_lock_fail. Given that the .n_lock_fail field should normally be zero, and given the initialization, it seems reasonable to display the maximum and minimum number acquisitions instead of miscomputing the maximum and minimum number of failures. This commit therefore switches from failures to acquisitions. And this turns out to be not only a day-zero bug, but entirely my own fault. I hate it when that happens! Fixes: 0af3fe1efa53 ("locktorture: Add a lock-torture kernel module") Reported-by: Will Deacon <will@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Acked-by: Will Deacon <will@kernel.org> Cc: Davidlohr Bueso <dave@stgolabs.net> Cc: Josh Triplett <josh@joshtriplett.org> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| * locking/lockdep: Avoid recursion in lockdep_count_{for,back}ward_deps()Boqun Feng2020-04-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit 25016bd7f4caf5fc983bbab7403d08e64cba3004 ] Qian Cai reported a bug when PROVE_RCU_LIST=y, and read on /proc/lockdep triggered a warning: [ ] DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled) ... [ ] Call Trace: [ ] lock_is_held_type+0x5d/0x150 [ ] ? rcu_lockdep_current_cpu_online+0x64/0x80 [ ] rcu_read_lock_any_held+0xac/0x100 [ ] ? rcu_read_lock_held+0xc0/0xc0 [ ] ? __slab_free+0x421/0x540 [ ] ? kasan_kmalloc+0x9/0x10 [ ] ? __kmalloc_node+0x1d7/0x320 [ ] ? kvmalloc_node+0x6f/0x80 [ ] __bfs+0x28a/0x3c0 [ ] ? class_equal+0x30/0x30 [ ] lockdep_count_forward_deps+0x11a/0x1a0 The warning got triggered because lockdep_count_forward_deps() call __bfs() without current->lockdep_recursion being set, as a result a lockdep internal function (__bfs()) is checked by lockdep, which is unexpected, and the inconsistency between the irq-off state and the state traced by lockdep caused the warning. Apart from this warning, lockdep internal functions like __bfs() should always be protected by current->lockdep_recursion to avoid potential deadlocks and data inconsistency, therefore add the current->lockdep_recursion on-and-off section to protect __bfs() in both lockdep_count_forward_deps() and lockdep_count_backward_deps() Reported-by: Qian Cai <cai@lca.pw> Signed-off-by: Boqun Feng <boqun.feng@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20200312151258.128036-1-boqun.feng@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org>
* | Merge android-4.19-q.95 (138a4a6) into msm-4.19Ivaylo Georgiev2020-02-031-16/+16
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-138a4a6: Linux 4.19.95 usb: missing parentheses in USE_NEW_SCHEME USB: serial: option: add Telit ME910G1 0x110a composition USB: core: fix check for duplicate endpoints usb: dwc3: gadget: Fix request complete check net: sch_prio: When ungrafting, replace with FIFO mlxsw: spectrum_qdisc: Ignore grafting of invisible FIFO vlan: vlan_changelink() should propagate errors vlan: fix memory leak in vlan_dev_set_egress_priority vxlan: fix tos value before xmit tcp: fix "old stuff" D-SACK causing SACK to be treated as D-SACK sctp: free cmd->obj.chunk for the unprocessed SCTP_CMD_REPLY sch_cake: avoid possible divide by zero in cake_enqueue() pkt_sched: fq: do not accept silly TCA_FQ_QUANTUM net: usb: lan78xx: fix possible skb leak net: stmmac: dwmac-sunxi: Allow all RGMII modes net: stmmac: dwmac-sun8i: Allow all RGMII modes net: dsa: mv88e6xxx: Preserve priority when setting CPU port. macvlan: do not assume mac_header is set in macvlan_broadcast() gtp: fix bad unlock balance in gtp_encap_enable_socket PCI/switchtec: Read all 64 bits of part_event_bitmap ARM: dts: imx6ul: use nvmem-cells for cpu speed grading cpufreq: imx6q: read OCOTP through nvmem for imx6ul/imx6ull powerpc/spinlocks: Include correct header for static key powerpc/vcpu: Assume dedicated processors as non-preempt hv_netvsc: Fix unwanted rx_table reset llc2: Fix return statement of llc_stat_ev_rx_null_dsap_xid_c (and _test_c) parisc: Fix compiler warnings in debug_core.c block: fix memleak when __blk_rq_map_user_iov() is failed s390/dasd: fix memleak in path handling error case s390/dasd/cio: Interpret ccw_device_get_mdc return value correctly drm/exynos: gsc: add missed component_del s390/purgatory: do not build purgatory with kcov, kasan and friends net: stmmac: Always arm TX Timer at end of transmission start net: stmmac: RX buffer size must be 16 byte aligned net: stmmac: xgmac: Clear previous RX buffer size net: stmmac: Do not accept invalid MTU values fs: avoid softlockups in s_inodes iterators perf/x86/intel: Fix PT PMI handling kconfig: don't crash on NULL expressions in expr_eq() iommu/iova: Init the struct iova to fix the possible memleak regulator: rn5t618: fix module aliases ASoC: wm8962: fix lambda value rfkill: Fix incorrect check to avoid NULL pointer dereference parisc: add missing __init annotation net: usb: lan78xx: Fix error message format specifier cxgb4: Fix kernel panic while accessing sge_info bnx2x: Fix logic to get total no. of PFs per engine bnx2x: Do not handle requests from VFs after parity bpf: Clear skb->tstamp in bpf_redirect when necessary btrfs: Fix error messages in qgroup_rescan_init powerpc: Ensure that swiotlb buffer is allocated from low memory samples: bpf: fix syscall_tp due to unused syscall samples: bpf: Replace symbol compare of trace_event ARM: dts: am437x-gp/epos-evm: fix panel compatible spi: spi-ti-qspi: Fix a bug when accessing non default CS bpf, mips: Limit to 33 tail calls bnxt_en: Return error if FW returns more data than dump length ARM: dts: bcm283x: Fix critical trip point ASoC: topology: Check return value for soc_tplg_pcm_create() spi: spi-cavium-thunderx: Add missing pci_release_regions() ARM: dts: Cygnus: Fix MDIO node address/size cells selftests/ftrace: Fix multiple kprobe testcase ARM: dts: BCM5301X: Fix MDIO node address/size cells netfilter: nf_tables: validate NFT_DATA_VALUE after nft_data_init() netfilter: nf_tables: validate NFT_SET_ELEM_INTERVAL_END netfilter: nft_set_rbtree: bogus lookup/get on consecutive elements in named sets netfilter: uapi: Avoid undefined left-shift in xt_sctp.h ARM: vexpress: Set-up shared OPP table instead of individual for each CPU ARM: dts: imx6ul: imx6ul-14x14-evk.dtsi: Fix SPI NOR probing efi/gop: Fix memory leak in __gop_query32/64() efi/gop: Return EFI_SUCCESS if a usable GOP was found efi/gop: Return EFI_NOT_FOUND if there are no usable GOPs ASoC: Intel: bytcr_rt5640: Update quirk for Teclast X89 x86/efi: Update e820 with reserved EFI boot services data to fix kexec breakage libtraceevent: Fix lib installation with O= mwifiex: Fix heap overflow in mmwifiex_process_tdls_action_frame() netfilter: ctnetlink: netns exit must wait for callbacks locking/spinlock/debug: Fix various data races ASoC: max98090: fix possible race conditions regulator: fix use after free issue bpf: Fix passing modified ctx to ld/abs/ind instruction USB: dummy-hcd: increase max number of devices to 32 USB: dummy-hcd: use usb_urb_dir_in instead of usb_pipein Conflicts: kernel/locking/spinlock_debug.c 1683149 ("usb: dwc3: gadget: Fix logical condition") was reverted on importing android-4.19-q.90 into msm-4.19 as this change prevented the adbd userspace daemon from ever receiving packets from the kernel USB driver. android-4.19-q.95 introduced new change ceaeb21b ("usb: dwc3: gadget: Fix request complete check") that fixed the regression, hence it is safe to restore the revert. It is done in this merge. Change-Id: I5f839319ad7746728a98c01f8b5c3dab9c9f368a Signed-off-by: Ivaylo Georgiev <irgeorgiev@codeaurora.org>
| * locking/spinlock/debug: Fix various data racesMarco Elver2020-01-121-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit 1a365e822372ba24c9da0822bc583894f6f3d821 ] This fixes various data races in spinlock_debug. By testing with KCSAN, it is observable that the console gets spammed with data races reports, suggesting these are extremely frequent. Example data race report: read to 0xffff8ab24f403c48 of 4 bytes by task 221 on cpu 2: debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline] do_raw_spin_lock+0x9b/0x210 kernel/locking/spinlock_debug.c:112 __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_lock+0x39/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:338 [inline] get_partial_node.isra.0.part.0+0x32/0x2f0 mm/slub.c:1873 get_partial_node mm/slub.c:1870 [inline] <snip> write to 0xffff8ab24f403c48 of 4 bytes by task 167 on cpu 3: debug_spin_unlock kernel/locking/spinlock_debug.c:103 [inline] do_raw_spin_unlock+0xc9/0x1a0 kernel/locking/spinlock_debug.c:138 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:159 [inline] _raw_spin_unlock_irqrestore+0x2d/0x50 kernel/locking/spinlock.c:191 spin_unlock_irqrestore include/linux/spinlock.h:393 [inline] free_debug_processing+0x1b3/0x210 mm/slub.c:1214 __slab_free+0x292/0x400 mm/slub.c:2864 <snip> As a side-effect, with KCSAN, this eventually locks up the console, most likely due to deadlock, e.g. .. -> printk lock -> spinlock_debug -> KCSAN detects data race -> kcsan_print_report() -> printk lock -> deadlock. This fix will 1) avoid the data races, and 2) allow using lock debugging together with KCSAN. Reported-by: Qian Cai <cai@lca.pw> Signed-off-by: Marco Elver <elver@google.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Link: https://lkml.kernel.org/r/20191120155715.28089-1-elver@google.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
* | lockdep: suppress extra lockdep loggingPrateek Sood2019-12-061-7/+20
| | | | | | | | | | | | | | | | suppress lockdep locking to avoid console flooding resulting watchdog bite. Change-Id: I0b3a56d3541cdf03872709731c34aef8d177c0da Signed-off-by: Prateek Sood <prsood@codeaurora.org>
* | lockdep: make lockdep track owners after errorPrateek Sood2019-12-061-12/+12
| | | | | | | | | | | | | | | | | | Lockdep stops book keeping of locks and its owners after an error is detected. Keep lockdep tracking on after an error is reported. Change-Id: I0209a929a8da564ccda33d5af8b714594a62800c Signed-off-by: Prateek Sood <prsood@codeaurora.org>
* | lockdep: disable lockdep loggingPrateek Sood2019-12-061-47/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | When lockdep reports a locking error, it disables global debug_locks which results in other lock debugging features getting disabled. Disable only lockdep logging once a locking error is reported. This will help in tracking lock owners and their stacks from ramdumps even when lockdep is not reporting them on console. Change-Id: Ie7b6aa57df84aaa4cf90fc912969d4ca49f77997 Signed-off-by: Prateek Sood <prsood@codeaurora.org>
* | lockdep: save caller1 for locks in task_structPrateek Sood2019-12-061-3/+41
| | | | | | | | | | | | | | | | | | | | | | | | Currently lockdep saves caller0 for locking API's in task_struct. Save caller1 also for a task acquiring the lock. This is helpful for locks like cpu_hotplug_lock which is acquired/release inside a helper function like cpus_read_lock(). Caller1 shall help in getting caller of cpus_read_lock(). Change-Id: I3ea30990245f478778c2e58348a84ab40610056d Signed-off-by: Prateek Sood <prsood@codeaurora.org>
* | Merge android-4.19-q.79 (40321f2) into msm-4.19Ivaylo Georgiev2019-10-211-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-40321f2: Linux 4.19.79 nl80211: validate beacon head cfg80211: Use const more consistently in for_each_element macros cfg80211: add and use strongly typed element iteration macros staging: erofs: detect potential multiref due to corrupted images staging: erofs: add two missing erofs_workgroup_put for corrupted images staging: erofs: some compressed cluster should be submitted for corrupted images staging: erofs: fix an error handling in erofs_readdir() coresight: etm4x: Use explicit barriers on enable/disable vfs: Fix EOVERFLOW testing in put_compat_statfs64 arm64/speculation: Support 'mitigations=' cmdline option arm64: Use firmware to detect CPUs that are not affected by Spectre-v2 arm64: Force SSBS on context switch arm64: ssbs: Don't treat CPUs with SSBS as unaffected by SSB arm64: add sysfs vulnerability show for speculative store bypass arm64: add sysfs vulnerability show for spectre-v2 arm64: Always enable spectre-v2 vulnerability detection arm64: Advertise mitigation of Spectre-v2, or lack thereof arm64: Provide a command line to disable spectre_v2 mitigation arm64: Always enable ssb vulnerability detection arm64: enable generic CPU vulnerabilites support arm64: add sysfs vulnerability show for meltdown arm64: Add sysfs vulnerability show for spectre-v1 arm64: fix SSBS sanitization arm64: docs: Document SSBS HWCAP KVM: arm64: Set SCTLR_EL2.DSSBS if SSBD is forcefully disabled and !vhe arm64: ssbd: Add support for PSTATE.SSBS rather than trapping to EL3 riscv: Avoid interrupts being erroneously enabled in handle_exception() perf stat: Reset previous counts on repeat with interval perf tools: Fix segfault in cpu_cache_level__read() tick: broadcast-hrtimer: Fix a race in bc_set_next tools lib traceevent: Do not free tep->cmdlines in add_new_comm() on failure powerpc/book3s64/radix: Rename CPU_FTR_P9_TLBIE_BUG feature flag powerpc/pseries: Fix cpu_hotplug_lock acquisition in resize_hpt() nbd: fix crash when the blksize is zero KVM: nVMX: Fix consistency check on injected exception error code KVM: PPC: Book3S HV: XIVE: Free escalation interrupts before disabling the VP drm/radeon: Bail earlier when radeon.cik_/si_support=0 is passed nfp: flower: fix memory leak in nfp_flower_spawn_vnic_reprs perf unwind: Fix libunwind build failure on i386 systems kernel/elfcore.c: include proper prototypes perf build: Add detection of java-11-openjdk-devel package sched/core: Fix migration to invalid CPU in __set_cpus_allowed_ptr() sched/membarrier: Fix private expedited registration check sched/membarrier: Call sync_core only before usermode for same mm libnvdimm/nfit_test: Fix acpi_handle redefinition fuse: fix memleak in cuse_channel_open libnvdimm/region: Initialize bad block for volatile namespaces thermal_hwmon: Sanitize thermal_zone type thermal: Fix use-after-free when unregistering thermal zone device ntb: point to right memory window index x86/purgatory: Disable the stackleak GCC plugin for the purgatory pwm: stm32-lp: Add check in case requested period cannot be achieved pNFS: Ensure we do clear the return-on-close layout stateid on fatal errors drm/amdgpu: Check for valid number of registers to read drm/amdgpu: Fix KFD-related kernel oops on Hawaii netfilter: nf_tables: allow lookups in dynamic sets watchdog: aspeed: Add support for AST2600 ceph: reconnect connection if session hang in opening state ceph: fix directories inode i_blkbits initialization xen/pci: reserve MCFG areas earlier 9p: avoid attaching writeback_fid on mmap with type PRIVATE 9p: Transport error uninitialized fs: nfs: Fix possible null-pointer dereferences in encode_attrs() ima: fix freeing ongoing ahash_request ima: always return negative code for error arm64: cpufeature: Detect SSBS and advertise to userspace cfg80211: initialize on-stack chandefs s390/cio: avoid calling strlen on null pointer ieee802154: atusb: fix use-after-free at disconnect xen/xenbus: fix self-deadlock after killing user process Revert "locking/pvqspinlock: Don't wait if vCPU is preempted" mmc: sdhci-of-esdhc: set DMA snooping based on DMA coherence mmc: sdhci: improve ADMA error reporting drm/i915/gvt: update vgpu workload head pointer correctly drm/nouveau/kms/nv50-: Don't create MSTMs for eDP connectors drm/msm/dsi: Fix return value check for clk_get_parent drm/omap: fix max fclk divider for omap36xx perf stat: Fix a segmentation fault when using repeat forever watchdog: imx2_wdt: fix min() calculation in imx2_wdt_set_timeout PCI: Restore Resizable BAR size bits correctly for 1MB BARs PCI: vmd: Fix shadow offsets to reflect spec changes timer: Read jiffies once when forwarding base clk usercopy: Avoid HIGHMEM pfn warning tracing: Make sure variable reference alias has correct var_ref_idx power: supply: sbs-battery: only return health when battery present power: supply: sbs-battery: use correct flags field MIPS: Treat Loongson Extensions as ASEs crypto: ccree - use the full crypt length value crypto: ccree - account for TEE not ready to report crypto: caam - fix concurrency issue in givencrypt descriptor crypto: cavium/zip - Add missing single_release() crypto: skcipher - Unmap pages after an external error crypto: qat - Silence smp_processor_id() warning tools lib traceevent: Fix "robust" test of do_generate_dynamic_list_file can: mcp251x: mcp251x_hw_reset(): allow more time after a reset powerpc/book3s64/mm: Don't do tlbie fixup for some hardware revisions powerpc/powernv/ioda: Fix race in TCE level allocation powerpc/powernv: Restrict OPAL symbol map to only be readable by root powerpc/mce: Schedule work from irq_work powerpc/mce: Fix MCE handling for huge pages ASoC: sgtl5000: Improve VAG power and mute control ASoC: Define a set of DAPM pre/post-up events PM / devfreq: tegra: Fix kHz to Hz conversion nbd: fix max number of supported devs KVM: nVMX: handle page fault in vmread fix KVM: X86: Fix userspace set invalid CR4 KVM: PPC: Book3S HV: Don't lose pending doorbell request on migration on P9 KVM: PPC: Book3S HV: Check for MMU ready on piggybacked virtual cores KVM: PPC: Book3S HV: Fix race in re-enabling XIVE escalation interrupts s390/cio: exclude subchannels with no parent from pseudo check s390/topology: avoid firing events before kobjs are created KVM: s390: Test for bad access register and size at the start of S390_MEM_OP s390/process: avoid potential reading of freed stack ANDROID: cuttlefish_defconfig: Enable BPF_JIT and BPF_JIT_ALWAYS_ON ANDROID: arm64: bpf: implement arch_bpf_jit_check_func ANDROID: bpf: validate bpf_func when BPF_JIT is enabled with CFI UPSTREAM: kcm: use BPF_PROG_RUN Conflicts: arch/arm64/include/asm/cpucaps.h arch/arm64/include/asm/sysreg.h arch/arm64/kernel/cpu_errata.c arch/arm64/kernel/cpufeature.c arch/arm64/kernel/process.c drivers/mmc/host/sdhci.c include/linux/ieee80211.h kernel/sched/core.c net/wireless/scan.c Change-Id: I57a49ff57133edeaed48cb90e2b03fa453bf1451 Signed-off-by: Ivaylo Georgiev <irgeorgiev@codeaurora.org>
| * Revert "locking/pvqspinlock: Don't wait if vCPU is preempted"Wanpeng Li2019-10-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 89340d0935c9296c7b8222b6eab30e67cb57ab82 upstream. This patch reverts commit 75437bb304b20 (locking/pvqspinlock: Don't wait if vCPU is preempted). A large performance regression was caused by this commit. on over-subscription scenarios. The test was run on a Xeon Skylake box, 2 sockets, 40 cores, 80 threads, with three VMs of 80 vCPUs each. The score of ebizzy -M is reduced from 13000-14000 records/s to 1700-1800 records/s: Host Guest score vanilla w/o kvm optimizations upstream 1700-1800 records/s vanilla w/o kvm optimizations revert 13000-14000 records/s vanilla w/ kvm optimizations upstream 4500-5000 records/s vanilla w/ kvm optimizations revert 14000-15500 records/s Exit from aggressive wait-early mechanism can result in premature yield and extra scheduling latency. Actually, only 6% of wait_early events are caused by vcpu_is_preempted() being true. However, when one vCPU voluntarily releases its vCPU, all the subsequently waiters in the queue will do the same and the cascading effect leads to bad performance. kvm optimizations: [1] commit d73eb57b80b (KVM: Boost vCPUs that are delivering interrupts) [2] commit 266e85a5ec9 (KVM: X86: Boost queue head vCPU to mitigate lock waiter preemption) Tested-by: loobinliu@tencent.com Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@kernel.org> Cc: Waiman Long <longman@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Cc: loobinliu@tencent.com Cc: stable@vger.kernel.org Fixes: 75437bb304b20 (locking/pvqspinlock: Don't wait if vCPU is preempted) Signed-off-by: Wanpeng Li <wanpengli@tencent.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | Merge android-4.19-q.76 (8ed9c66) into msm-4.19Ivaylo Georgiev2019-10-101-0/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-8ed9c66: Linux 4.19.76 f2fs: use generic EFSBADCRC/EFSCORRUPTED net/rds: Check laddr_check before calling it net/rds: An rds_sock is added too early to the hash table net_sched: check cops->tcf_block in tc_bind_tclass() Bluetooth: btrtl: Additional Realtek 8822CE Bluetooth devices netfilter: nft_socket: fix erroneous socket assignment xfs: don't crash on null attr fork xfs_bmapi_read drm/nouveau/disp/nv50-: fix center/aspect-corrected scaling ACPI: video: Add new hw_changes_brightness quirk, set it on PB Easynote MZ35 Bluetooth: btrtl: HCI reset on close for Realtek BT chip net: don't warn in inet diag when IPV6 is disabled drm: Flush output polling on shutdown f2fs: fix to do sanity check on segment bitmap of LFS curseg net/ibmvnic: Fix missing { in __ibmvnic_reset dm zoned: fix invalid memory access Revert "f2fs: avoid out-of-range memory access" blk-mq: move cancel of requeue_work to the front of blk_exit_queue blk-mq: change gfp flags to GFP_NOIO in blk_mq_realloc_hw_ctxs initramfs: don't free a non-existent initrd bcache: remove redundant LIST_HEAD(journal) from run_cache_set() PCI: hv: Avoid use of hv_pci_dev->pci_slot after freeing it f2fs: check all the data segments against all node ones irqchip/gic-v3-its: Fix LPI release for Multi-MSI devices bpf: libbpf: retry loading program on EAGAIN Revert "drm/amd/powerplay: Enable/Disable NBPSTATE on On/OFF of UVD" scsi: qla2xxx: Return switch command on a timeout scsi: qla2xxx: Remove all rports if fabric scan retry fails scsi: qla2xxx: Turn off IOCB timeout timer on IOCB completion locking/lockdep: Add debug_locks check in __lock_downgrade() power: supply: sysfs: ratelimit property read error message pinctrl: sprd: Use define directive for sprd_pinconf_params values objtool: Clobber user CFLAGS variable ALSA: hda - Apply AMD controller workaround for Raven platform ALSA: hda - Add laptop imic fixup for ASUS M9V laptop ALSA: dice: fix wrong packet parameter for Alesis iO26 ALSA: usb-audio: Add DSD support for EVGA NU Audio ALSA: usb-audio: Add Hiby device family to quirks for native DSD support ASoC: fsl: Fix of-node refcount unbalance in fsl_ssi_probe_from_dt() ASoC: Intel: cht_bsw_max98090_ti: Enable codec clock once and keep it enabled media: tvp5150: fix switch exit in set control handler iwlwifi: mvm: always init rs_fw with 20MHz bandwidth rates iwlwifi: mvm: send BCAST management frames to the right station net/mlx5e: Rx, Check ip headers sanity net/mlx5e: Rx, Fixup skb checksum for packets with tail padding net/mlx5e: XDP, Avoid checksum complete when XDP prog is loaded net/mlx5e: Allow reporting of checksum unnecessary mlx5: fix get_ip_proto() net/mlx5e: don't set CHECKSUM_COMPLETE on SCTP packets net/mlx5e: Set ECN for received packets using CQE indication CIFS: fix deadlock in cached root handling crypto: talitos - fix missing break in switch statement mtd: cfi_cmdset_0002: Use chip_good() to retry in do_write_oneword() HID: Add quirk for HP X500 PIXART OEM mouse HID: hidraw: Fix invalid read in hidraw_ioctl HID: logitech: Fix general protection fault caused by Logitech driver HID: sony: Fix memory corruption issue on cleanup. HID: prodikeys: Fix general protection fault during probe IB/core: Add an unbound WQ type to the new CQ API drm/amd/display: readd -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines powerpc/xive: Fix bogus error code returned by OPAL RDMA/restrack: Protect from reentry to resource return path net/ibmvnic: free reset work of removed device from queue Revert "Bluetooth: validate BLE connection interval updates" Conflicts: fs/f2fs/data.c fs/f2fs/f2fs.h fs/f2fs/gc.c fs/f2fs/inode.c Change-Id: I6626d6288e229c78e400be190dca200c62d2ec51 Signed-off-by: Ivaylo Georgiev <irgeorgiev@codeaurora.org>
| * locking/lockdep: Add debug_locks check in __lock_downgrade()Waiman Long2019-10-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit 71492580571467fb7177aade19c18ce7486267f5 ] Tetsuo Handa had reported he saw an incorrect "downgrading a read lock" warning right after a previous lockdep warning. It is likely that the previous warning turned off lock debugging causing the lockdep to have inconsistency states leading to the lock downgrade warning. Fix that by add a check for debug_locks at the beginning of __lock_downgrade(). Debugged-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> Reported-by: syzbot+53383ae265fb161ef488@syzkaller.appspotmail.com Signed-off-by: Waiman Long <longman@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Link: https://lkml.kernel.org/r/1547093005-26085-1-git-send-email-longman@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | Merge android-4.19.63 (75ff56e) into msm-4.19Ivaylo Georgiev2019-08-131-3/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-75ff56e: Linux 4.19.63 access: avoid the RCU grace period for the temporary subjective credentials libnvdimm/bus: Stop holding nvdimm_bus_list_mutex over __nd_ioctl() powerpc/tm: Fix oops on sigreturn on systems without TM powerpc/xive: Fix loop exit-condition in xive_find_target_in_mask() ALSA: hda - Add a conexant codec entry to let mute led work ALSA: line6: Fix wrong altsetting for LINE6_PODHD500_1 ALSA: ac97: Fix double free of ac97_codec_device hpet: Fix division by zero in hpet_time_div() mei: me: add mule creek canyon (EHL) device ids fpga-manager: altera-ps-spi: Fix build error binder: prevent transactions to context manager from its own process. x86/speculation/mds: Apply more accurate check on hypervisor platform x86/sysfb_efi: Add quirks for some devices with swapped width and height btrfs: inode: Don't compress if NODATASUM or NODATACOW set usb: pci-quirks: Correct AMD PLL quirk detection usb: wusbcore: fix unbalanced get/put cluster_id locking/lockdep: Hide unused 'class' variable mm: use down_read_killable for locking mmap_sem in access_remote_vm locking/lockdep: Fix lock used or unused stats error proc: use down_read_killable mmap_sem for /proc/pid/maps cxgb4: reduce kernel stack usage in cudbg_collect_mem_region() proc: use down_read_killable mmap_sem for /proc/pid/map_files proc: use down_read_killable mmap_sem for /proc/pid/clear_refs proc: use down_read_killable mmap_sem for /proc/pid/pagemap proc: use down_read_killable mmap_sem for /proc/pid/smaps_rollup mm/mmu_notifier: use hlist_add_head_rcu() memcg, fsnotify: no oom-kill for remote memcg charging mm/gup.c: remove some BUG_ONs from get_gate_page() mm/gup.c: mark undo_dev_pagemap as __maybe_unused 9p: pass the correct prototype to read_cache_page mm/kmemleak.c: fix check for softirq context sh: prevent warnings when using iounmap block/bio-integrity: fix a memory leak bug powerpc/eeh: Handle hugepages in ioremap space dlm: check if workqueues are NULL before flushing/destroying mailbox: handle failed named mailbox channel request f2fs: avoid out-of-range memory access block: init flush rq ref count to 1 powerpc/boot: add {get, put}_unaligned_be32 to xz_config.h PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB RDMA/rxe: Fill in wc byte_len with IB_WC_RECV_RDMA_WITH_IMM perf hists browser: Fix potential NULL pointer dereference found by the smatch tool perf annotate: Fix dereferencing freed memory found by the smatch tool perf session: Fix potential NULL pointer dereference found by the smatch tool perf top: Fix potential NULL pointer dereference detected by the smatch tool perf stat: Fix use-after-freed pointer detected by the smatch tool perf test mmap-thread-lookup: Initialize variable to suppress memory sanitizer warning PCI: mobiveil: Use the 1st inbound window for MEM inbound transactions PCI: mobiveil: Initialize Primary/Secondary/Subordinate bus numbers kallsyms: exclude kasan local symbols on s390 PCI: mobiveil: Fix the Class Code field PCI: mobiveil: Fix PCI base address in MEM/IO outbound windows arm64: assembler: Switch ESB-instruction with a vanilla nop if !ARM64_HAS_RAS IB/ipoib: Add child to parent list only if device initialized powerpc/mm: Handle page table allocation failures IB/mlx5: Fixed reporting counters on 2nd port for Dual port RoCE serial: sh-sci: Fix TX DMA buffer flushing and workqueue races serial: sh-sci: Terminate TX DMA during buffer flushing RDMA/i40iw: Set queue pair state when being queried powerpc/4xx/uic: clear pending interrupt after irq type/pol change um: Silence lockdep complaint about mmap_sem mm/swap: fix release_pages() when releasing devmap pages mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk mfd: arizona: Fix undefined behavior mfd: core: Set fwnode for created devices mfd: madera: Add missing of table registration recordmcount: Fix spurious mcount entries on powerpc powerpc/xmon: Fix disabling tracing while in xmon powerpc/cacheflush: fix variable set but not used iio: iio-utils: Fix possible incorrect mask calculation PCI: xilinx-nwl: Fix Multi MSI data programming genksyms: Teach parser about 128-bit built-in types kbuild: Add -Werror=unknown-warning-option to CLANG_FLAGS i2c: stm32f7: fix the get_irq error cases PCI: sysfs: Ignore lockdep for remove attribute serial: mctrl_gpio: Check if GPIO property exisits before requesting it drm/msm: Depopulate platform on probe failure powerpc/pci/of: Fix OF flags parsing for 64bit BARs mmc: sdhci: sdhci-pci-o2micro: Check if controller supports 8-bit width usb: gadget: Zero ffs_io_data tty: serial_core: Set port active bit in uart_port_activate serial: imx: fix locking in set_termios() drm/rockchip: Properly adjust to a true clock in adjusted_mode powerpc/pseries/mobility: prevent cpu hotplug during DT update drm/amd/display: fix compilation error phy: renesas: rcar-gen2: Fix memory leak at error paths drm/virtio: Add memory barriers for capset cache. drm/amd/display: Always allocate initial connector state state serial: 8250: Fix TX interrupt handling condition tty: serial: msm_serial: avoid system lockup condition tty/serial: digicolor: Fix digicolor-usart already registered warning memstick: Fix error cleanup path of memstick_init drm/crc-debugfs: Also sprinkle irqrestore over early exits drm/crc-debugfs: User irqsafe spinlock in drm_crtc_add_crc_entry gpu: host1x: Increase maximum DMA segment size drm/bridge: sii902x: pixel clock unit is 10kHz instead of 1kHz drm/bridge: tc358767: read display_props in get_modes() PCI: Return error if cannot probe VF drm/edid: Fix a missing-check bug in drm_load_edid_firmware() drm/amdkfd: Fix sdma queue map issue drm/amdkfd: Fix a potential memory leak drm/amd/display: Disable ABM before destroy ABM struct drm/amdgpu/sriov: Need to initialize the HDP_NONSURFACE_BAStE drm/amd/display: Fill prescale_params->scale for RGB565 tty: serial: cpm_uart - fix init when SMC is relocated pinctrl: rockchip: fix leaked of_node references tty: max310x: Fix invalid baudrate divisors calculator usb: core: hub: Disable hub-initiated U1/U2 staging: vt6656: use meaningful error code during buffer allocation iio: adc: stm32-dfsdm: missing error case during probe iio: adc: stm32-dfsdm: manage the get_irq error case drm/panel: simple: Fix panel_simple_dsi_probe hvsock: fix epollout hang from race condition Change-Id: I4c37256db5ec08367a22a1c50bb97db267c822da Signed-off-by: Ivaylo Georgiev <irgeorgiev@codeaurora.org>
| * locking/lockdep: Hide unused 'class' variableArnd Bergmann2019-07-311-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit 68037aa78208f34bda4e5cd76c357f718b838cbb ] The usage is now hidden in an #ifdef, so we need to move the variable itself in there as well to avoid this warning: kernel/locking/lockdep_proc.c:203:21: error: unused variable 'class' [-Werror,-Wunused-variable] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Bart Van Assche <bvanassche@acm.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Qian Cai <cai@lca.pw> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Waiman Long <longman@redhat.com> Cc: Will Deacon <will.deacon@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Yuyang Du <duyuyang@gmail.com> Cc: frederic@kernel.org Fixes: 68d41d8c94a3 ("locking/lockdep: Fix lock used or unused stats error") Link: https://lkml.kernel.org/r/20190715092809.736834-1-arnd@arndb.de Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
| * locking/lockdep: Fix lock used or unused stats errorYuyang Du2019-07-311-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit 68d41d8c94a31dfb8233ab90b9baf41a2ed2da68 ] The stats variable nr_unused_locks is incremented every time a new lock class is register and decremented when the lock is first used in __lock_acquire(). And after all, it is shown and checked in lockdep_stats. However, under configurations that either CONFIG_TRACE_IRQFLAGS or CONFIG_PROVE_LOCKING is not defined: The commit: 091806515124b20 ("locking/lockdep: Consolidate lock usage bit initialization") missed marking the LOCK_USED flag at IRQ usage initialization because as mark_usage() is not called. And the commit: 886532aee3cd42d ("locking/lockdep: Move mark_lock() inside CONFIG_TRACE_IRQFLAGS && CONFIG_PROVE_LOCKING") further made mark_lock() not defined such that the LOCK_USED cannot be marked at all when the lock is first acquired. As a result, we fix this by not showing and checking the stats under such configurations for lockdep_stats. Reported-by: Qian Cai <cai@lca.pw> Signed-off-by: Yuyang Du <duyuyang@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Cc: arnd@arndb.de Cc: frederic@kernel.org Link: https://lkml.kernel.org/r/20190709101522.9117-1-duyuyang@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
* | Merge android-4.19.61 (71ce27c) into msm-4.19Ivaylo Georgiev2019-08-131-9/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-71ce27c: Revert "dt-bindings: allow up to four clocks for orion-mdio" Linux 4.19.61 dm bufio: fix deadlock with loop device dt-bindings: allow up to four clocks for orion-mdio net: mvmdio: allow up to four clocks to be specified for orion-mdio blkcg: update blkcg_print_stat() to handle larger outputs blk-iolatency: clear use_delay when io.latency is set to zero blk-throttle: fix zero wait time for iops throttled group usb: Handle USB3 remote wakeup for LPM enabled devices correctly Bluetooth: Add SMP workaround Microsoft Surface Precision Mouse bug intel_th: msu: Fix single mode with disabled IOMMU mtd: spinand: read returns badly if the last page has bitflips mtd: rawnand: mtk: Correct low level time calculation of r/w cycle eCryptfs: fix a couple type promotion bugs mmc: sdhci-msm: fix mutex while in spinlock powerpc/pseries: Fix oops in hotplug memory notifier powerpc/powernv/npu: Fix reference leak powerpc/watchpoint: Restore NV GPRs while returning from exception powerpc/32s: fix suspend/resume when IBATs 4-7 are used parisc: Fix kernel panic due invalid values in IAOQ0 or IAOQ1 parisc: Ensure userspace privilege for ptraced processes in regset functions crypto: caam - limit output IV to CBC to work around CTR mode DMA issue gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM xfs: abort unaligned nowait directio early xfs: serialize unaligned dio writes against all other dio writes xfs: fix reporting supported extra file attributes for statx() xfs: reserve blocks for ifree transaction during log recovery xfs: don't ever put nlink > 0 inodes on the unlinked list xfs: rename m_inotbt_nores to m_finobt_nores xfs: don't overflow xattr listent buffer xfs: flush removing page cache in xfs_reflink_remap_prep xfs: fix pagecache truncation prior to reflink include/asm-generic/bug.h: fix "cut here" for WARN_ON for __WARN_TAINT architectures coda: pass the host file in vma->vm_file on mmap libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields HID: wacom: correct touch resolution x/y typo HID: wacom: generic: Correct pad syncing HID: wacom: generic: only switch the mode on devices with LEDs IB/mlx5: Report correctly tag matching rendezvous capability Btrfs: add missing inode version, ctime and mtime updates when punching hole Btrfs: fix fsync not persisting dentry deletions due to inode evictions Btrfs: fix data loss after inode eviction, renaming it, and fsync it PCI: qcom: Ensure that PERST is asserted for at least 100 ms PCI: Do not poll for PME if the device is in D3cold PCI: hv: Fix a use-after-free bug in hv_eject_device_work() intel_th: pci: Add Ice Lake NNPI support drm/edid: parse CEA blocks embedded in DisplayID perf/x86/amd/uncore: Set the thread mask for F17h L3 PMCs perf/x86/amd/uncore: Do not set 'ThreadMask' and 'SliceMask' for non-L3 PMCs perf/x86/intel: Fix spurious NMI on fixed counter x86/boot: Fix memory leak in default_get_smp_config() 9p/virtio: Add cleanup path in p9_virtio_init 9p/xen: Add cleanup path in p9_trans_xen_init xen/events: fix binding user event channels to cpus dm zoned: fix zone state management race padata: use smp_mb in padata_reorder to avoid orphaned padata jobs drm/nouveau/i2c: Enable i2c pads & busses during preinit kconfig: fix missing choice values in auto.conf fs/proc/proc_sysctl.c: fix the default values of i_uid/i_gid on /proc/sys inodes. arm64: tegra: Fix AGIC register range KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed media: videobuf2-dma-sg: Prevent size from overflowing media: videobuf2-core: Prevent size alignment wrapping buffer size to 0 media: coda: Remove unbalanced and unneeded mutex unlock media: v4l2: Test type instead of cfg->type in v4l2_ctrl_new_custom() ALSA: hda/realtek: apply ALC891 headset fixup to one Dell machine ALSA: hda/realtek - Fixed Headphone Mic can't record on Dell platform ALSA: seq: Break too long mutex context in the write loop raid5-cache: Need to do start() part job after adding journal device ASoC: dapm: Adapt for debugfs API change lib/scatterlist: Fix mapping iterator when sg->offset is greater than PAGE_SIZE pnfs: Fix a problem where we gratuitously start doing I/O through the MDS pNFS: Fix a typo in pnfs_update_layout pnfs/flexfiles: Fix PTR_ERR() dereferences in ff_layout_track_ds_error NFSv4: Handle the special Linux file open access mode iwlwifi: fix RF-Kill interrupt while FW load for gen2 devices iwlwifi: don't WARN when calling iwl_get_shared_mem_conf with RF-Kill iwlwifi: pcie: fix ALIVE interrupt handling for gen2 devices w/o MSI-X iwlwifi: pcie: don't service an interrupt that was masked arm64: tegra: Update Jetson TX1 GPU regulator timings regulator: s2mps11: Fix buck7 and buck8 wrong voltages Input: alps - fix a mismatch between a condition check and its comment Input: synaptics - whitelist Lenovo T580 SMBus intertouch Input: alps - don't handle ALPS cs19 trackpoint-only device Input: gtco - bounds check collection indent level bcache: destroy dc->writeback_write_wq if failed to create dc->writeback_thread bcache: fix mistaken sysfs entry for io_error counter bcache: ignore read-ahead request failure on backing device bcache: Revert "bcache: free heap cache_set->flush_btree in bch_journal_free" bcache: Revert "bcache: fix high CPU occupancy during journal" Revert "bcache: set CACHE_SET_IO_DISABLE in bch_cached_dev_error()" crypto: crypto4xx - fix a potential double free in ppc4xx_trng_probe crypto: ccp/gcm - use const time tag comparison. crypto: ccp - memset structure fields to zero before reuse crypto: crypto4xx - block ciphers should only accept complete blocks crypto: crypto4xx - fix blocksize for cfb and ofb crypto: crypto4xx - fix AES CTR blocksize value crypto: chacha20poly1305 - fix atomic sleep when using async algorithm crypto: arm64/sha2-ce - correct digest for empty data in finup crypto: arm64/sha1-ce - correct digest for empty data in finup crypto: ccp - Validate the the error value used to index error messages crypto: ghash - fix unaligned memory access in ghash_setkey() scsi: mac_scsi: Fix pseudo DMA implementation, take 2 scsi: mac_scsi: Increase PIO/PDMA transfer length threshold scsi: megaraid_sas: Fix calculation of target ID scsi: core: Fix race on creating sense cache Revert "scsi: ncr5380: Increase register polling limit" scsi: NCR5380: Always re-enable reselection interrupt scsi: NCR5380: Reduce goto statements in NCR5380_select() xen: let alloc_xenballooned_pages() fail if not enough memory free floppy: fix out-of-bounds read in copy_buffer floppy: fix invalid pointer dereference in drive_name floppy: fix out-of-bounds read in next_valid_format floppy: fix div-by-zero in setup_format_params iavf: fix dereference of null rx_buffer pointer net: mvmdio: defer probe of orion-mdio if a clock is not ready gtp: fix use-after-free in gtp_newlink() gtp: fix use-after-free in gtp_encap_destroy() gtp: fix Illegal context switch in RCU read-side critical section. gtp: fix suspicious RCU usage Bluetooth: validate BLE connection interval updates gtp: add missing gtp_encap_disable_sock() in gtp_encap_enable() Bluetooth: Check state in l2cap_disconnect_rsp perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64 Bluetooth: 6lowpan: search for destination address in all peers Bluetooth: Add new 13d3:3501 QCA_ROME device Bluetooth: Add new 13d3:3491 QCA_ROME device Bluetooth: hci_bcsp: Fix memory leak in rx_skb tools: bpftool: Fix json dump crash on powerpc gpiolib: Fix references to gpiod_[gs]et_*value_cansleep() variants bonding: validate ip header before check IPPROTO_IGMP selftests: bpf: fix inlines in test_lwt_seg6local bpf, libbpf, smatch: Fix potential NULL pointer dereference rxrpc: Fix oops in tracepoint net: usb: asix: init MAC address buffers bnx2x: Prevent ptp_task to be rescheduled indefinitely perf stat: Fix group lookup for metric group perf stat: Make metric event lookup more robust bpf: fix uapi bpf_prog_info fields alignment iwlwifi: mvm: Drop large non sta frames igb: clear out skb->tstamp after reading the txtime net: mvpp2: prs: Don't override the sign bit in SRAM parser shift ath10k: destroy sdio workqueue while remove sdio module net: hns3: add some error checking in hclge_tm module net: hns3: fix a -Wformat-nonliteral compile warning bcache: fix potential deadlock in cached_def_free() bcache: check c->gc_thread by IS_ERR_OR_NULL in cache_set_flush() bcache: acquire bch_register_lock later in cached_dev_free() bcache: check CACHE_SET_IO_DISABLE bit in bch_journal() bcache: check CACHE_SET_IO_DISABLE in allocator code EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec wil6210: drop old event after wmi_call timeout crypto: asymmetric_keys - select CRYPTO_HASH where needed crypto: serpent - mark __serpent_setkey_sbox noinline ixgbe: Check DDM existence in transceiver before access rslib: Fix handling of of caller provided syndrome rslib: Fix decoding of shortened codes xsk: Properly terminate assignment in xskq_produce_flush_desc clocksource/drivers/exynos_mct: Increase priority over ARM arch timer libata: don't request sense data on !ZAC ATA devices ASoC: Intel: hdac_hdmi: Set ops to NULL on remove perf tools: Increase MAX_NR_CPUS and MAX_CACHES ath10k: fix PCIE device wake up failed ath10k: add missing error handling ipvs: fix tinfo memory leak in start_sync_thread mt7601u: fix possible memory leak when the device is disconnected x86/build: Add 'set -e' to mkcapflags.sh to delete broken capflags.c mt7601u: do not schedule rx_tasklet when the device has been disconnected rtlwifi: rtl8192cu: fix error handle when usb probe failed net: stmmac: sun8i: force select external PHY when no internal one media: hdpvr: fix locking and a missing msleep media: vimc: cap: check v4l2_fill_pixfmt return value media: coda: increment sequence offset for the last returned frame media: coda: fix last buffer handling in V4L2_ENC_CMD_STOP media: coda: fix mpeg2 sequence number handling acpi/arm64: ignore 5.1 FADTs that are reported as 5.0 timer_list: Guard procfs specific code ntp: Limit TAI-UTC offset media: i2c: fix warning same module names media: s5p-mfc: Make additional clocks optional ipvs: defer hook registration to avoid leaks ipsec: select crypto ciphers for xfrm_algo arm64: Do not enable IRQs for ct_user_exit lightnvm: pblk: fix freeing of merged pages nvme-pci: set the errno on ctrl state change error nvme-pci: properly report state change failure in nvme_reset_work nvme: fix possible io failures when removing multipathed ns EDAC/sysfs: Fix memory leak when creating a csrow object ACPICA: Clear status of GPEs on first direct enable blk-iolatency: only account submitted bios x86/cacheinfo: Fix a -Wtype-limits warning ipoib: correcly show a VF hardware address vhost_net: disable zerocopy by default perf evsel: Make perf_evsel__name() accept a NULL argument x86/atomic: Fix smp_mb__{before,after}_atomic() perf/x86/intel/uncore: Handle invalid event coding for free-running counter sched/fair: Fix "runnable_avg_yN_inv" not used warnings sched/core: Add __sched tag for io_schedule() xfrm: fix sa selector validation blkcg, writeback: dead memcgs shouldn't contribute to writeback ownership arbitration block: null_blk: fix race condition for null_del_dev net: hns3: fix for skb leak when doing selftest qed: iWARP - Fix tc for MPA ll2 connection x86/cpufeatures: Add FDP_EXCPTN_ONLY and ZERO_FCS_FDS rcu: Force inlining of rcu_read_lock() ASoC: meson: axg-tdm: fix sample clock inversion x86/cpu: Add Ice Lake NNPI to Intel family selinux: fix empty write to keycreate file media: s5p-mfc: fix reading min scratch buffer size on MFC v6/v7 bpf: silence warning messages in core regmap: fix bulk writes on paged registers gpio: omap: ensure irq is enabled before wakeup gpio: omap: fix lack of irqstatus_raw0 for OMAP4 iommu: Fix a leak in iommu_insert_resv_region media: fdp1: Support M3N and E3 platforms media: uvcvideo: Fix access to uninitialized fields on probe error irqchip/meson-gpio: Add support for Meson-G12A SoC perf report: Fix OOM error in TUI mode on s390 perf test 6: Fix missing kvm module load for s390 perf cs-etm: Properly set the value of 'old' and 'head' in snapshot mode ipset: Fix memory accounting for hash types on resize net: sfp: add mutex to prevent concurrent state checks RAS/CEC: Fix pfn insertion s390/qdio: handle PENDING state for QEBSM devices net: axienet: Fix race condition causing TX hang net: fec: Do not use netdev messages too early crypto: inside-secure - do not rely on the hardware last bit for result descriptors net: stmmac: modify default value of tx-frames net: stmmac: dwmac4: fix flow control issue perf jvmti: Address gcc string overflow warning for strncpy() arm64: mm: make CONFIG_ZONE_DMA32 configurable cpupower : frequency-set -r option misses the last cpu in related cpu list net: hns3: set ops to null when unregister ad_dev media: wl128x: Fix some error handling in fm_v4l2_init_video_device() locking/lockdep: Fix merging of hlocks with non-zero references batman-adv: Fix duplicated OGMs on NETDEV_UP tua6100: Avoid build warnings. crypto: talitos - Align SEC1 accesses to 32 bits boundaries. crypto: talitos - properly handle split ICV. net: phy: Check against net_device being NULL media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization fails. media: saa7164: fix remove_proc_entry warning media: mc-device.c: don't memset __user pointer contents perf annotate TUI browser: Do not use member from variable within its own initialization fscrypt: clean up some BUG_ON()s in block encryption/decryption xfrm: Fix xfrm sel prefix length validation af_key: fix leaks in key_pol_get_resp and dump_sp. signal/pid_namespace: Fix reboot_pid_ns to use send_sig not force_sig qed: Set the doorbell address correctly net: stmmac: dwmac4/5: Clear unused address entries net: stmmac: dwmac1000: Clear unused address entries media: media_device_enum_links32: clean a reserved field media: vpss: fix a potential NULL pointer dereference media: marvell-ccic: fix DMA s/g desc number calculation media: ov7740: avoid invalid framesize setting crypto: talitos - fix skcipher failure due to wrong output IV media: spi: IR LED: add missing of table registration media: dvb: usb: fix use after free in dvb_usb_device_exit batman-adv: fix for leaked TVLV handler. regmap: debugfs: Fix memory leak in regmap_debugfs_init ath: DFS JP domain W56 fixed pulse type 3 RADAR detection wil6210: fix spurious interrupts in 3-msi ath10k: add peer id check in ath10k_peer_find_by_id ath6kl: add some bounds checking ath9k: Check for errors when reading SREV register ath10k: Do not send probe response template for mesh wil6210: fix potential out-of-bounds read dmaengine: imx-sdma: fix use-after-free on probe error path scsi: iscsi: set auth_protocol back to NULL if CHAP_A value is not supported arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly MIPS: fix build on non-linux hosts MIPS: ath79: fix ar933x uart parity mode ANDROID: arm64: fix function types in COND_SYSCALL ANDROID: x86: fix function types in COND_SYSCALL ANDROID: kernel/Makefile: do not disable LTO for sys_ni.c with CFI UPSTREAM: binder: Set end of SG buffer area properly. Conflicts: arch/arm64/Kconfig arch/x86/include/asm/syscall_wrapper.h drivers/mmc/host/sdhci-msm.c Change-Id: If28d1c397b31023c16a571e0fe33682fe65759db Signed-off-by: Ivaylo Georgiev <irgeorgiev@codeaurora.org>
| * locking/lockdep: Fix merging of hlocks with non-zero referencesImre Deak2019-07-261-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit d9349850e188b8b59e5322fda17ff389a1c0cd7d ] The sequence static DEFINE_WW_CLASS(test_ww_class); struct ww_acquire_ctx ww_ctx; struct ww_mutex ww_lock_a; struct ww_mutex ww_lock_b; struct ww_mutex ww_lock_c; struct mutex lock_c; ww_acquire_init(&ww_ctx, &test_ww_class); ww_mutex_init(&ww_lock_a, &test_ww_class); ww_mutex_init(&ww_lock_b, &test_ww_class); ww_mutex_init(&ww_lock_c, &test_ww_class); mutex_init(&lock_c); ww_mutex_lock(&ww_lock_a, &ww_ctx); mutex_lock(&lock_c); ww_mutex_lock(&ww_lock_b, &ww_ctx); ww_mutex_lock(&ww_lock_c, &ww_ctx); mutex_unlock(&lock_c); (*) ww_mutex_unlock(&ww_lock_c); ww_mutex_unlock(&ww_lock_b); ww_mutex_unlock(&ww_lock_a); ww_acquire_fini(&ww_ctx); (**) will trigger the following error in __lock_release() when calling mutex_release() at **: DEBUG_LOCKS_WARN_ON(depth <= 0) The problem is that the hlock merging happening at * updates the references for test_ww_class incorrectly to 3 whereas it should've updated it to 4 (representing all the instances for ww_ctx and ww_lock_[abc]). Fix this by updating the references during merging correctly taking into account that we can have non-zero references (both for the hlock that we merge into another hlock or for the hlock we are merging into). Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= <ville.syrjala@linux.intel.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Link: https://lkml.kernel.org/r/20190524201509.9199-2-imre.deak@intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
* | Merge android-4.19.45 (50f9143) into msm-4.19Ivaylo Georgiev2019-07-081-14/+30
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-50f9143: Linux 4.19.45 ext4: don't update s_rev_level if not required ext4: fix compile error when using BUFFER_TRACE pstore: Refactor compression initialization pstore: Allocate compression during late_initcall() pstore: Centralize init/exit routines iov_iter: optimize page_copy_sane() libnvdimm/namespace: Fix label tracking error xen/pvh: set xen_domain_type to HVM in xen_pvh_init kbuild: turn auto.conf.cmd into a mandatory include file KVM: lapic: Busy wait for timer to expire when using hv_timer KVM: x86: Skip EFER vs. guest CPUID checks for host-initiated writes jbd2: fix potential double free ALSA: hda/realtek - Fix for Lenovo B50-70 inverted internal microphone bug ALSA: hda/realtek - Fixup headphone noise via runtime suspend ALSA: hda/realtek - Corrected fixup for System76 Gazelle (gaze14) ext4: avoid panic during forced reboot due to aborted journal ext4: fix use-after-free in dx_release() ext4: fix data corruption caused by overlapping unaligned and aligned IO ext4: zero out the unused memory region in the extent tree block tty: Don't force RISCV SBI console as preferred console fs/writeback.c: use rcu_barrier() to wait for inflight wb switches going into workqueue when umount crypto: ccm - fix incompatibility between "ccm" and "ccm_base" ipmi:ssif: compare block number correctly for multi-part return messages bcache: never set KEY_PTRS of journal key to 0 in journal_reclaim() bcache: fix a race between cache register and cacheset unregister Btrfs: do not start a transaction at iterate_extent_inodes() Btrfs: do not start a transaction during fiemap Btrfs: send, flush dellaloc in order to avoid data loss btrfs: Honour FITRIM range constraints during free space trim btrfs: Correctly free extent buffer in case btree_read_extent_buffer_pages fails btrfs: Check the first key and level for cached extent buffer ext4: fix ext4_show_options for file systems w/o journal ext4: actually request zeroing of inode table after grow ext4: fix use-after-free race with debug_want_extra_isize ext4: avoid drop reference to iloc.bh twice ext4: ignore e_value_offs for xattrs with value-in-ea-inode ext4: make sanity check in mballoc more strict jbd2: check superblock mapped prior to committing tty/vt: fix write/write race in ioctl(KDSKBSENT) handler tty: vt.c: Fix TIOCL_BLANKSCREEN console blanking if blankinterval == 0 mtd: spi-nor: intel-spi: Avoid crossing 4K address boundary on read/write mfd: max77620: Fix swapped FPS_PERIOD_MAX_US values mfd: da9063: Fix OTP control register names to match datasheets for DA9063/63L ACPI: PM: Set enable_for_wake for wakeup GPEs during suspend-to-idle userfaultfd: use RCU to free the task struct when fork fails ocfs2: fix ocfs2 read inode data panic in ocfs2_iget hugetlb: use same fault hash key for shared and private mappings mm/hugetlb.c: don't put_page in lock of hugetlb_lock mm/huge_memory: fix vmf_insert_pfn_{pmd, pud}() crash, handle unaligned addresses mm/mincore.c: make mincore() more conservative crypto: ccree - handle tee fips error during power management resume crypto: ccree - add function to handle cryptocell tee fips error crypto: ccree - HOST_POWER_DOWN_EN should be the last CC access during suspend crypto: ccree - pm resume first enable the source clk crypto: ccree - don't map AEAD key and IV on stack crypto: ccree - use correct internal state sizes for export crypto: ccree - don't map MAC key on stack crypto: ccree - fix mem leak on error path crypto: ccree - remove special handling of chained sg bpf, arm64: remove prefetch insn in xadd mapping ASoC: codec: hdac_hdmi add device_link to card device ASoC: fsl_esai: Fix missing break in switch statement ASoC: RT5677-SPI: Disable 16Bit SPI Transfers ASoC: max98090: Fix restore of DAPM Muxes ALSA: hdea/realtek - Headset fixup for System76 Gazelle (gaze14) ALSA: hda/realtek - EAPD turn on later ALSA: hda/hdmi - Consider eld_valid when reporting jack event ALSA: hda/hdmi - Read the pin sense from register when repolling ALSA: usb-audio: Fix a memory leak bug ALSA: line6: toneport: Fix broken usage of timer for delayed execution mmc: core: Fix tag set memory leak crypto: arm64/aes-neonbs - don't access already-freed walk.iv crypto: arm/aes-neonbs - don't access already-freed walk.iv crypto: rockchip - update IV buffer to contain the next IV crypto: gcm - fix incompatibility between "gcm" and "gcm_base" crypto: arm64/gcm-aes-ce - fix no-NEON fallback code crypto: x86/crct10dif-pcl - fix use via crypto_shash_digest() crypto: crct10dif-generic - fix use via crypto_shash_digest() crypto: skcipher - don't WARN on unprocessed data after slow walk step crypto: vmx - fix copy-paste error in CTR mode crypto: ccp - Do not free psp_master when PLATFORM_INIT fails crypto: chacha20poly1305 - set cra_name correctly crypto: salsa20 - don't access already-freed walk.iv crypto: crypto4xx - fix cfb and ofb "overran dst buffer" issues crypto: crypto4xx - fix ctr-aes missing output IV sched/x86: Save [ER]FLAGS on context switch arm64: Save and restore OSDLR_EL1 across suspend/resume arm64: Clear OSDLR_EL1 on CPU boot arm64: compat: Reduce address limit arm64: arch_timer: Ensure counter register reads occur with seqlock held arm64: mmap: Ensure file offset is treated as unsigned power: supply: axp288_fuel_gauge: Add ACEPC T8 and T11 mini PCs to the blacklist power: supply: axp288_charger: Fix unchecked return value ARM: exynos: Fix a leaked reference by adding missing of_node_put mmc: sdhci-of-arasan: Add DTS property to disable DCMDs. ARM: dts: exynos: Fix audio (microphone) routing on Odroid XU3 ARM: dts: exynos: Fix interrupt for shared EINTs on Exynos5260 arm64: dts: rockchip: Disable DCMDs on RK3399's eMMC controller. objtool: Fix function fallthrough detection x86/speculation/mds: Improve CPU buffer clear documentation x86/speculation/mds: Revert CPU buffer clear on double fault exit locking/rwsem: Prevent decrement of reader count before increment fs: sdcardfs: Add missing option to show_options BACKPORT: drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines ANDROID: x86: use the correct function type for sys_ni_syscall ANDROID: x86: use the correct function type for sys32_(rt_)sigreturn ANDROID: x86: use the correct function type for native_set_fixmap ANDROID: x86: use the correct function type in SYSCALL_DEFINE0 ANDROID: x86: add support for CONFIG_LTO_CLANG ANDROID: x86: disable STACK_VALIDATION with LTO_CLANG ANDROID: x86: disable HAVE_ARCH_PREL32_RELOCATIONS with LTO_CLANG ANDROID: x86/vdso: disable LTO only for VDSO ANDROID: x86/cpu/vmware: use the full form of inl in VMWARE_PORT UPSTREAM: x86/build: Keep local relocations with ld.lld ANDROID: crypto: arm64/ghash: fix CFI for GHASH CE ANDROID: crypto: arm64/sha: fix CFI in SHA CE ANDROID: arm64: kvm: disable CFI ANDROID: arm64: mark kpti_install_ng_mappings as __nocfi ANDROID: arm64: disable CFI for cpu_replace_ttbr1 FROMLIST: arm64: use the correct function type for __arm64_sys_ni_syscall FROMLIST: arm64: use the correct function type in SYSCALL_DEFINE0 FROMLIST: arm64: fix syscall_fn_t type ANDROID: modpost: add an exception for CFI stubs ANDROID: ftrace: fix function type mismatches FROMLIST: 9p: pass the correct prototype to read_cache_page FROMLIST: jffs2: pass the correct prototype to read_cache_page UPSTREAM: nfs: pass the correct prototype to read_cache_page FROMLIST: mm: don't cast ->readpage to filler_t for do_read_cache_page UPSTREAM: netfilter: xt_IDLETIMER: fix sysfs callback function type ANDROID: kallsyms: strip the .cfi postfix from symbols with CONFIG_CFI_CLANG ANDROID: add support for clang Control Flow Integrity (CFI) FROMLIST: arm64: select ARCH_SUPPORTS_LTO_CLANG ANDROID: arm64: disable HAVE_ARCH_PREL32_RELOCATIONS with LTO_CLANG ANDROID: arm64: add atomic_ll_sc.o to obj-y if using lld ANDROID: arm64: lse: fix LSE atomics with LTO ANDROID: arm64: vdso: disable LTO FROMLIST: arm64: kvm: use -fno-jump-tables with clang BACKPORT: arm64: sysreg: Make mrs_s and msr_s macros work with Clang and LTO ANDROID: init: ensure initcall ordering with LTO ANDROID: drivers/misc: disable LTO for lkdtm_rodata.o FROMLIST: efi/libstub: disable LTO FROMLIST: scripts/mod: disable LTO for empty.c ANDROID: kbuild: disable LTO_CLANG with KASAN FROMLIST: kbuild: fix dynamic ftrace with clang LTO ANDROID: kbuild: add support for clang LTO ANDROID: kbuild: add CONFIG_LD_IS_LLD UPSTREAM: gcov: clang support UPSTREAM: gcov: docs: add a note on GCC vs Clang differences UPSTREAM: gcov: clang: move common GCC code into gcc_base.c UPSTREAM: module: add stubs for within_module functions UPSTREAM: bpf: relax inode permission check for retrieving bpf program Conflicts: Makefile arch/Kconfig arch/arm64/kvm/hyp/Makefile arch/x86/include/asm/syscall_wrapper.h drivers/mmc/core/queue.c fs/nfs/dir.c fs/nfs/symlink.c include/asm-generic/vmlinux.lds.h include/linux/compiler-clang.h include/linux/pagemap.h kernel/cfi.c mm/filemap.c scripts/link-vmlinux.sh Change-Id: I1e34675a86ecb60d7b8a87e16574ea8920f9cb12 Signed-off-by: Ivaylo Georgiev <irgeorgiev@codeaurora.org>
| * locking/rwsem: Prevent decrement of reader count before incrementWaiman Long2019-05-221-14/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit a9e9bcb45b1525ba7aea26ed9441e8632aeeda58 ] During my rwsem testing, it was found that after a down_read(), the reader count may occasionally become 0 or even negative. Consequently, a writer may steal the lock at that time and execute with the reader in parallel thus breaking the mutual exclusion guarantee of the write lock. In other words, both readers and writer can become rwsem owners simultaneously. The current reader wakeup code does it in one pass to clear waiter->task and put them into wake_q before fully incrementing the reader count. Once waiter->task is cleared, the corresponding reader may see it, finish the critical section and do unlock to decrement the count before the count is incremented. This is not a problem if there is only one reader to wake up as the count has been pre-incremented by 1. It is a problem if there are more than one readers to be woken up and writer can steal the lock. The wakeup was actually done in 2 passes before the following v4.9 commit: 70800c3c0cc5 ("locking/rwsem: Scan the wait_list for readers only once") To fix this problem, the wakeup is now done in two passes again. In the first pass, we collect the readers and count them. The reader count is then fully incremented. In the second pass, the waiter->task is then cleared and they are put into wake_q to be woken up later. Signed-off-by: Waiman Long <longman@redhat.com> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Davidlohr Bueso <dave@stgolabs.net> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tim Chen <tim.c.chen@linux.intel.com> Cc: Will Deacon <will.deacon@arm.com> Cc: huang ying <huang.ying.caritas@gmail.com> Fixes: 70800c3c0cc5 ("locking/rwsem: Scan the wait_list for readers only once") Link: http://lkml.kernel.org/r/20190428212557.13482-2-longman@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
| * Revert "locking/lockdep: Add debug_locks check in __lock_downgrade()"Greg Kroah-Hartman2019-04-271-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 0e0f7b30721233ce610bde2395a8e58ff7771475 which was commit 71492580571467fb7177aade19c18ce7486267f5 upstream. Tetsuo rightly points out that the backport here is incorrect, as it touches the __lock_set_class function instead of the intended __lock_downgrade function. Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> Cc: Waiman Long <longman@redhat.com> Cc: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| * locking/lockdep: Add debug_locks check in __lock_downgrade()Waiman Long2019-03-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 71492580571467fb7177aade19c18ce7486267f5 upstream. Tetsuo Handa had reported he saw an incorrect "downgrading a read lock" warning right after a previous lockdep warning. It is likely that the previous warning turned off lock debugging causing the lockdep to have inconsistency states leading to the lock downgrade warning. Fix that by add a check for debug_locks at the beginning of __lock_downgrade(). Debugged-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> Reported-by: syzbot+53383ae265fb161ef488@syzkaller.appspotmail.com Signed-off-by: Waiman Long <longman@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Link: https://lkml.kernel.org/r/1547093005-26085-1-git-send-email-longman@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | locking/rwsem: for rwsem prio aware enhancementMaria Yu2019-05-242-15/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When add into waiting list will be prio aware, lower prio value means higher priority task will get lock before lower priority task. Only try to preempt waiters with which task priority which is higher than DEFAULT_PRIO. To avoid starvation, add count to record how many waiters preempt to queue in wait list. If preempt count is exceed MAX_PREEMPT_ALLOWED, use simple FIFO to queue in the wait list until the wait list is empty. Change-Id: I4d5fe6a823a16c9762e2e2f416d34bdd701341c4 Signed-off-by: Maria Yu <aiquny@codeaurora.org> Signed-off-by: Biao long <blong@codeaurora.org>
* | Merge android-4.19.27 (36d178b) into msm-4.19Ivaylo Georgiev2019-03-211-2/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-36d178b: Linux 4.19.27 x86/uaccess: Don't leak the AC flag into __put_user() value evaluation MIPS: eBPF: Fix icache flush end address MIPS: BCM63XX: provide DMA masks for ethernet devices MIPS: fix truncation in __cmpxchg_small for short values hugetlbfs: fix races and page leaks during migration drm: Block fb changes for async plane updates mm: enforce min addr even if capable() in expand_downwards() mmc: sdhci-esdhc-imx: correct the fix of ERR004536 mmc: cqhci: Fix a tiny potential memory leak on error condition mmc: cqhci: fix space allocated for transfer descriptor mmc: core: Fix NULL ptr crash from mmc_should_fail_request mmc: tmio: fix access width of Block Count Register mmc: tmio_mmc_core: don't claim spurious interrupts mmc: spi: Fix card detection during probe kvm: selftests: Fix region overlap check in kvm_util KVM: nSVM: clear events pending from svm_complete_interrupts() when exiting to L1 svm: Fix AVIC incomplete IPI emulation cfg80211: extend range deviation for DMG mac80211: Add attribute aligned(2) to struct 'action' mac80211: don't initiate TDLS connection if station is not associated to AP ibmveth: Do not process frames after calling napi_reschedule net: dev_is_mac_header_xmit() true for ARPHRD_RAWIP net: usb: asix: ax88772_bind return error when hw_reset fail drm/msm: Fix A6XX support for opp-level nvme-multipath: drop optimization for static ANA group IDs nvme-rdma: fix timeout handler hv_netvsc: Fix hash key value reset after other ops hv_netvsc: Refactor assignments of struct netvsc_device_info hv_netvsc: Fix ethtool change hash key error net: altera_tse: fix connect_local_phy error path scsi: csiostor: fix NULL pointer dereference in csio_vport_set_state() scsi: lpfc: nvmet: avoid hang / use-after-free when destroying targetport scsi: lpfc: nvme: avoid hang / use-after-free when destroying localport writeback: synchronize sync(2) against cgroup writeback membership switches direct-io: allow direct writes to empty inodes staging: android: ion: Support cpu access during dma_buf_detach drm/sun4i: hdmi: Fix usage of TMDS clock serial: fsl_lpuart: fix maximum acceptable baud rate with over-sampling tty: serial: qcom_geni_serial: Allow mctrl when flow control is disabled drm/amd/powerplay: OD setting fix on Vega10 locking/rwsem: Fix (possible) missed wakeup futex: Fix (possible) missed wakeup sched/wake_q: Fix wakeup ordering for wake_q sched/wait: Fix rcuwait_wake_up() ordering mac80211: fix miscounting of ttl-dropped frames staging: rtl8723bs: Fix build error with Clang when inlining is disabled drivers: thermal: int340x_thermal: Fix sysfs race condition ARC: show_regs: lockdep: avoid page allocator... ARC: fix __ffs return value to avoid build warnings irqchip/gic-v3-mbi: Fix uninitialized mbi_lock selftests: gpio-mockup-chardev: Check asprintf() for error selftests: seccomp: use LDLIBS instead of LDFLAGS phy: ath79-usb: Fix the main reset name to match the DT binding phy: ath79-usb: Fix the power on error path selftests/vm/gup_benchmark.c: match gup struct to kernel ASoC: imx-audmux: change snprintf to scnprintf for possible overflow ASoC: dapm: change snprintf to scnprintf for possible overflow ASoC: rt5682: Fix PLL source register definitions x86/mm/mem_encrypt: Fix erroneous sizeof() genirq: Make sure the initial affinity is not empty selftests: rtc: rtctest: add alarm test on minute boundary selftests: rtc: rtctest: fix alarm tests usb: gadget: Potential NULL dereference on allocation error usb: dwc3: gadget: Fix the uninitialized link_state when udc starts usb: dwc3: gadget: synchronize_irq dwc irq in suspend thermal: int340x_thermal: Fix a NULL vs IS_ERR() check clk: vc5: Abort clock configuration without upstream clock clk: sysfs: fix invalid JSON in clk_dump clk: tegra: dfll: Fix a potential Oop in remove() ASoC: Variable "val" in function rt274_i2c_probe() could be uninitialized ALSA: compress: prevent potential divide by zero bugs ASoC: Intel: Haswell/Broadwell: fix setting for .dynamic field drm/msm: Unblock writer if reader closes file scsi: libsas: Fix rphy phy_identifier for PHYs with end devices attached mac80211: Change default tx_sk_pacing_shift to 7 genirq/matrix: Improve target CPU selection for managed interrupts. irq/matrix: Spread managed interrupts on allocation irq/matrix: Split out the CPU selection code into a helper FROMGIT: binder: create node flag to request sender's security context Modify include/uapi/linux/android/binder.h, as commit: FROMGIT: binder: create node flag to request sender's security context introduces enums and structures, which are already defined in other userspace files that include the binder uapi file. Thus, the redeclaration of these enums and structures can lead to build errors. To avoid this, guard the redundant declarations in the uapi header with the __KERNEL__ header guard, so they are not exported to userspace. Conflicts: drivers/staging/android/ion/ion.c sound/core/compress_offload.c Change-Id: Ibf422b9b32ea1315515c33036b20ae635b8c8e4c Signed-off-by: Ivaylo Georgiev <irgeorgiev@codeaurora.org> Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
| * locking/rwsem: Fix (possible) missed wakeupXie Yongji2019-03-051-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit e158488be27b157802753a59b336142dc0eb0380 ] Because wake_q_add() can imply an immediate wakeup (cmpxchg failure case), we must not rely on the wakeup being delayed. However, commit: e38513905eea ("locking/rwsem: Rework zeroing reader waiter->task") relies on exactly that behaviour in that the wakeup must not happen until after we clear waiter->task. [ peterz: Added changelog. ] Signed-off-by: Xie Yongji <xieyongji@baidu.com> Signed-off-by: Zhang Yu <zhangyu31@baidu.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Fixes: e38513905eea ("locking/rwsem: Rework zeroing reader waiter->task") Link: https://lkml.kernel.org/r/1543495830-2644-1-git-send-email-xieyongji@baidu.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
* | Merge android-4.19.21 (6e0411b) into msm-4.19Ivaylo Georgiev2019-03-131-5/+32
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-6e0411b: Revert "thermal: Fix locking in cooling device sysfs update cur_state" Linux 4.19.21 ath9k: dynack: check da->enabled first in sampling routines ath9k: dynack: make ewma estimation faster perf/x86/intel: Delay memory deallocation until x86_pmu_dead_cpu() IB/hfi1: Add limit test for RC/UC send via loopback cacheinfo: Keep the old value if of_property_read_u32 fails serial: sh-sci: Do not free irqs that have already been freed serial: 8250_pci: Make PCI class test non fatal serial: fix race between flush_to_ldisc and tty_open perf tests evsel-tp-sched: Fix bitwise operator perf/core: Don't WARN() for impossible ring-buffer sizes x86/MCE: Initialize mce.bank in the case of a fatal error in mce_no_way_out() perf/x86/intel/uncore: Add Node ID mask cpu/hotplug: Fix "SMT disabled by BIOS" detection for KVM KVM: nVMX: unconditionally cancel preemption timer in free_nested (CVE-2019-7221) kvm: fix kvm_ioctl_create_device() reference counting (CVE-2019-6974) KVM: x86: work around leak of uninitialized stack contents (CVE-2019-7222) scsi: aic94xx: fix module loading scsi: cxlflash: Prevent deadlock when adapter probe fails staging: speakup: fix tty-operation NULL derefs usb: gadget: musb: fix short isoc packets with inventra dma usb: gadget: udc: net2272: Fix bitwise and boolean operations usb: dwc3: gadget: Handle 0 xfer length for OUT EP usb: phy: am335x: fix race condition in _probe irqchip/gic-v3-its: Plug allocation race for devices sharing a DevID futex: Handle early deadlock return correctly dmaengine: imx-dma: fix wrong callback invoke dmaengine: bcm2835: Fix abort of transactions dmaengine: bcm2835: Fix interrupt race on RT HID: debug: fix the ring buffer implementation fuse: handle zero sized retrieve correctly fuse: decrement NR_WRITEBACK_TEMP on the right page fuse: call pipe_buf_release() under pipe lock ALSA: hda/realtek - Headset microphone support for System76 darp5 ALSA: hda/realtek - Use a common helper for hp pin reference ALSA: hda/realtek - Fix lose hp_pins for disable auto mute ALSA: hda - Serialize codec registrations ALSA: usb-audio: Add support for new T+A USB DAC ALSA: compress: Fix stop handling on compressed capture streams xfs: eof trim writeback mapping as soon as it is cached net/mlx5e: FPGA, fix Innova IPsec TX offload data path performance virtio_net: Account for tx bytes and packets on sending xdp_frames skge: potential memory corruption in skge_get_regs() sctp: walk the list of asoc safely sctp: check and update stream->out_curr when allocating stream_out rxrpc: bad unlock balance in rxrpc_recvmsg Revert "net: phy: marvell: avoid pause mode on SGMII-to-Copper for 88e151x" rds: fix refcount bug in rds_sock_addref net: systemport: Fix WoL with password after deep sleep net/mlx5e: Force CHECKSUM_UNNECESSARY for short ethernet frames net: dsa: slave: Don't propagate flag changes on down slave interfaces net: dsa: mv88e6xxx: Fix counting of ATU violations net: dsa: Fix NULL checking in dsa_slave_set_eee() net: dsa: Fix lockdep false positive splat net: dp83640: expire old TX-skb lib/test_rhashtable: Make test_insert_dup() allocate its hash table dynamically enic: fix checksum validation for IPv6 dccp: fool proof ccid_hc_[rt]x_parse_options() thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set xfs: fix inverted return from xfs_btree_sblock_verify_crc xfs: fix PAGE_MASK usage in xfs_free_file_space fs/xfs: fix f_ffree value for statfs when project quota is set xfs: delalloc -> unwritten COW fork allocation can go wrong xfs: fix transient reference count error in xfs_buf_resubmit_failed_buffers xfs: fix shared extent data corruption due to missing cow reservation xfs: fix overflow in xfs_attr3_leaf_verify xfs: Fix error code in 'xfs_ioc_getbmap()' xfs: cancel COW blocks before swapext xfs: Fix xqmstats offsets in /proc/fs/xfs/xqmstat scripts/gdb: fix lx-version string output kernel/kcov.c: mark write_comp_data() as notrace exec: load_script: don't blindly truncate shebang string fs/epoll: drop ovflist branch prediction kernel/hung_task.c: force console verbose before panic proc/sysctl: fix return error for proc_doulongvec_minmax() kernel/hung_task.c: break RCU locks based on jiffies arm64/sve: ptrace: Fix SVE_PT_REGS_OFFSET definition HID: lenovo: Add checks to fix of_led_classdev_register thermal: generic-adc: Fix adc to temp interpolation PCI: imx: Enable MSI from downstream components kdb: Don't back trace on a cpu that didn't round up thermal: bcm2835: enable hwmon explicitly block/swim3: Fix -EBUSY error when re-opening device after unmount fsl/fman: Use GFP_ATOMIC in {memac,tgec}_add_hash_mac_address() gdrom: fix a memory leak bug isdn: hisax: hfc_pci: Fix a possible concurrency use-after-free bug in HFCPCI_l1hw() zram: fix lockdep warning of free block handling mm/page_alloc.c: don't call kasan_free_pages() at deferred mem init ocfs2: improve ocfs2 Makefile ocfs2: don't clear bh uptodate for block read arch/sh/boards/mach-kfr2r09/setup.c: fix struct mtd_oob_ops build warning scripts/decode_stacktrace: only strip base path when a prefix of the path perf python: Do not force closing original perf descriptor in evlist.get_pollfd() cgroup: fix parsing empty mount option string f2fs: fix sbi->extent_list corruption issue niu: fix missing checks of niu_pci_eeprom_read um: Avoid marking pages with "changed protection" f2fs: fix use-after-free issue when accessing sbi->stat_info cifs: check ntwrk_buf_start for NULL before dereferencing it MIPS: ralink: Select CONFIG_CPU_MIPSR2_IRQ_VI on MT7620/8 crypto: ux500 - Use proper enum in hash_set_dma_transfer crypto: ux500 - Use proper enum in cryp_set_dma_transfer seq_buf: Make seq_buf_puts() null-terminate the buffer hwmon: (lm80) fix a missing check of bus read in lm80 probe hwmon: (lm80) fix a missing check of the status of SMBus read perf build: Don't unconditionally link the libbfd feature test to -liberty and -lz NFS: nfs_compare_mount_options always compare auth flavors. kvm: Change offset in kvm_write_guest_offset_cached to unsigned powerpc/fadump: Do not allow hot-remove memory from fadump reserved area. KVM: x86: svm: report MSR_IA32_MCG_EXT_CTL as unsupported pinctrl: meson: meson8b: fix the GPIO function for the GPIOAO pins pinctrl: meson: meson8: fix the GPIO function for the GPIOAO pins powerpc/mm: Fix reporting of kernel execute faults on the 8xx fbdev: fbcon: Fix unregister crash when more than one framebuffer ACPI/APEI: Clear GHES block_status before panic() igb: Fix an issue that PME is not enabled during runtime suspend ice: Do not enable NAPI on q_vectors that have no rings i40e: define proper net_device::neigh_priv_len fbdev: fbmem: behave better with small rotated displays and many CPUs md: fix raid10 hang issue caused by barrier video: clps711x-fb: release disp device node in probe() drm/amd/display: validate extended dongle caps drbd: Avoid Clang warning about pointless switch statment drbd: skip spurious timeout (ping-timeo) when failing promote drbd: disconnect, if the wrong UUIDs are attached on a connected peer drbd: narrow rcu_read_lock in drbd_sync_handshake mlx5: update timecounter at least twice per counter overflow powerpc/powernv/ioda: Allocate indirect TCE levels of cached userspace addresses on demand iwlwifi: mvm: fix setting HE ppe FW config powerpc/perf: Fix thresholding counter data for unknown type net: hns3: add max vector number check for pf cw1200: Fix concurrency use-after-free bugs in cw1200_hw_scan() scsi: smartpqi: increase fw status register read timeout scsi: smartpqi: correct volume status scsi: smartpqi: correct host serial num for ssa mlxsw: spectrum: Properly cleanup LAG uppers when removing port from LAG xfrm6_tunnel: Fix spi check in __xfrm6_tunnel_alloc_spi mac80211: fix radiotap vendor presence bitmap handling powerpc/uaccess: fix warning/error with access_ok() drm/amd/display: fix YCbCr420 blank color Bluetooth: hci_bcm: Handle deferred probing for the clock supply drm/amd/display: Add retry to read ddc_clock pin net: hns3: fix incomplete uninitialization of IRQ in the hns3_nic_uninit_vector_data() percpu: convert spin_lock_irq to spin_lock_irqsave. perf tools: Cast off_t to s64 to avoid warning on bionic libc perf header: Fix up argument to ctime() usb: musb: dsps: fix runtime pm for peripheral mode usb: musb: dsps: fix otg state machine arm64: KVM: Skip MMIO insn after emulation livepatch: check kzalloc return values tools/power/x86/intel_pstate_tracer: Fix non root execution for post processing a trace file bnxt_en: Disable MSIX before re-reserving NQs/CMPL rings. i2c: sh_mobile: Add support for r8a774c0 (RZ/G2E) perf probe: Fix unchecked usage of strncpy() btrfs: use tagged writepage to mitigate livelock of snapshot perf header: Fix unchecked usage of strncpy() perf dso: Fix unchecked usage of strncpy() perf test: Fix perf_event_attr test failure tty: serial: samsung: Properly set flags in autoCTS mode serial: sh-sci: Resume PIO in sci_rx_interrupt() on DMA failure serial: sh-sci: Fix locking in sci_submit_rx() btrfs: harden agaist duplicate fsid on scanned devices usb: renesas_usbhs: add support for RZ/G2E mmc: jz4740: Get CD/WP GPIOs from descriptors mmc: sdhci-xenon: Fix timeout checks mmc: sdhci-omap: Fix timeout checks mmc: sdhci-of-esdhc: Fix timeout checks memstick: Prevent memstick host from getting runtime suspended during card detection mmc: meson-mx-sdio: check devm_kasprintf for failure mmc: bcm2835: reset host on timeout mmc: bcm2835: Recover from MMC_SEND_EXT_CSD KVM: PPC: Book3S: Only report KVM_CAP_SPAPR_TCE_VFIO on powernv machines ASoC: fsl: Fix SND_SOC_EUKREA_TLV320 build error on i.MX8M ARM: pxa: avoid section mismatch warning selftests/bpf: use __bpf_constant_htons in test_prog.c switchtec: Fix SWITCHTEC_IOCTL_EVENT_IDX_ALL flags overwrite udf: Fix BUG on corrupted inode mlxsw: spectrum_acl: Limit priority value phy: sun4i-usb: add support for missing USB PHY index i2c-axxia: check for error conditions first lightnvm: pblk: add lock protection to list operations lightnvm: pblk: fix resubmission of overwritten write err lbas drm/msm: dpu: Only check flush register against pending flushes drm/msm/dsi: fix dsi clock names in DSI 10nm PLL driver tee: optee: avoid possible double list_del() OPP: Use opp_table->regulators to verify no regulator case cpuidle: big.LITTLE: fix refcount leak platform/x86: mlx-platform: Fix tachometer registers clk: imx6sl: ensure MMDC CH0 handshake is bypassed sata_rcar: fix deferred probing iommu/arm-smmu-v3: Use explicit mb() when moving cons pointer iommu/arm-smmu: Add support for qcom,smmu-v2 variant iommu/arm-smmu-v3: Avoid memory corruption from Hisilicon MSI payloads usb: dwc3: gadget: Disable CSP for stream OUT ep ARM: dts: imx51-zii-rdu1: Do not specify "power-gpio" for hpa1 watchdog: renesas_wdt: don't set divider while watchdog is running ARM: dts: Fix up the D-Link DIR-685 MTD partition info media: coda: fix H.264 deblocking filter controls mips: bpf: fix encoding bug for mm_srlv32_op ARM: dts: Fix OMAP4430 SDP Ethernet startup iommu/amd: Fix amd_iommu=force_isolation pinctrl: sx150x: handle failure case of devm_kstrdup gpio: mt7621: pass mediatek_gpio_bank_probe() failure up the stack gpio: mt7621: report failure of devm_kasprintf() usb: dwc3: trace: add missing break statement to make compiler happy IB/hfi1: Unreserve a reserved request when it is completed kobject: return error code if writing /sys/.../uevent fails driver core: Move async_synchronize_full call tipc: fix node keep alive interval calculation drm/amdgpu/powerplay: fix clock stretcher limits on polaris (v2) media: imx274: select REGMAP_I2C clk: sunxi-ng: a33: Set CLK_SET_RATE_PARENT for all audio module clocks usb: mtu3: fix the issue about SetFeature(U1/U2_Enable) timekeeping: Use proper seqcount initializer usb: hub: delay hub autosuspend if USB3 port is still link training usb: dwc2: Disable power down feature on Samsung SoCs usb: dwc3: Correct the logic for checking TRB full in __dwc3_prepare_one_trb() xtensa: xtfpga.dtsi: fix dtc warnings about SPI smack: fix access permissions for keyring media: DaVinci-VPBE: fix error handling in vpbe_initialize() media: i2c: TDA1997x: select CONFIG_HDMI x86/fpu: Add might_fault() to user_insn() ARM: dts: aspeed: add missing memory unit-address ARM: dts: mmp2: fix TWSI2 drm/v3d: Fix prime imports of buffers from other drivers. arm64: ftrace: don't adjust the LR value mt76x0: dfs: fix IBI_R11 configuration on non-radar channels s390/zcrypt: improve special ap message cmd handling firmware/efi: Add NULL pointer checks in efivars API functions thermal: Fix locking in cooling device sysfs update cur_state Thermal: do not clear passive state during system sleep arm64: io: Ensure value passed to __iormb() is held in a 64-bit register perf: arm_spe: handle devm_kasprintf() failure drm: Clear state->acquire_ctx before leaving drm_atomic_helper_commit_duplicated_state() nfsd4: fix crash on writing v4_end_grace before nfsd startup soc: bcm: brcmstb: Don't leak device tree node reference sunvdc: Do not spin in an infinite loop when vio_ldc_send() returns EAGAIN net: aquantia: return 'err' if set MPI_DEINIT state fails arm64: io: Ensure calls to delay routines are ordered against prior readX() i2c: sh_mobile: add support for r8a77990 (R-Car E3) f2fs: fix wrong return value of f2fs_acl_create f2fs: fix race between write_checkpoint and write_begin f2fs: move dir data flush to write checkpoint process staging: pi433: fix potential null dereference ACPI: SPCR: Consider baud rate 0 as preconfigured state media: adv*/tc358743/ths8200: fill in min width/height/pixelclock iio: accel: kxcjk1013: Add KIOX010A ACPI Hardware-ID iio: adc: meson-saradc: fix internal clock names iio: adc: meson-saradc: check for devm_kasprintf failure powerpc/32: Add .data..Lubsan_data*/.data..Lubsan_type* sections explicitly dmaengine: xilinx_dma: Remove __aligned attribute on zynqmp_dma_desc_ll ptp: Fix pass zero to ERR_PTR() in ptp_clock_register clk: meson: meson8b: mark the CPU clock as CLK_IS_CRITICAL clk: meson: meson8b: fix the width of the cpu_scale_div clock clk: meson: meson8b: do not use cpu_div3 for cpu_scale_out_sel staging: erofs: fix the definition of DBG_BUGON media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm() media: video-i2c: avoid accessing released memory area when removing driver media: rc: ensure close() is called on rc_unregister_device soc/tegra: Don't leak device tree node reference perf tools: Add Hygon Dhyana support modpost: validate symbol names also in find_elf_symbol net/mlx5: EQ, Use the right place to store/read IRQ affinity hint bpf: libbpf: retry map creation without the name drm/amd/display: calculate stream->phy_pix_clk before clock mapping drm/amd/display: fix gamma not being applied correctly ARM: OMAP2+: hwmod: Fix some section annotations drm/rockchip: fix for mailbox read size usbnet: smsc95xx: fix rx packet alignment staging: iio: ad7780: update voltage on read scsi: hisi_sas: change the time of SAS SSP connection i40e: prevent overlapping tx_timeout recover platform/chrome: don't report EC_MKBP_EVENT_SENSOR_FIFO as wakeup vbox: fix link error with 'gcc -Og' fpga: altera-cvp: fix 'bad IO access' on x86_64 Tools: hv: kvp: Fix a warning of buffer overflow with gcc 8.0.1 fpga: altera-cvp: Fix registration for CvP incapable devices staging:iio:ad2s90: Make probe handle spi_setup failure iwlwifi: fw: do not set sgi bits for HE connection dpaa2-ptp: defer probe when portal allocation failed MIPS: Boston: Disable EG20T prefetch ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl serial: fsl_lpuart: clear parity enable bit when disable parity drm/vc4: ->x_scaling[1] should never be set to VC4_SCALING_NONE crypto: aes_ti - disable interrupts while accessing S-box powerpc/pseries: add of_node_put() in dlpar_detach_node() x86/PCI: Fix Broadcom CNB20LE unintended sign extension (redux) dlm: Don't swamp the CPU with callbacks queued during recovery clk: boston: fix possible memory leak in clk_boston_setup() ARM: 8808/1: kexec:offline panic_smp_self_stop CPU scsi: lpfc: Fix LOGO/PLOGI handling when triggerd by ABTS Timeout event scsi: mpt3sas: Call sas_remove_host before removing the target devices scsi: lpfc: Correct LCB RJT handling ath9k: dynack: use authentication messages for 'late' ack ath10k: assign 'n_cipher_suites' for WCN3990 wil6210: fix memory leak in wil_find_tx_bcast_2 wil6210: fix reset flow for Talyn-mb nds32: Fix gcc 8.0 compiler option incompatible. gpu: ipu-v3: image-convert: Prevent race between run and unprepare genirq/affinity: Spread IRQs to all available NUMA nodes drm/sun4i: Initialize registers in tcon-top driver gpiolib: Fix possible use after free on label ASoC: Intel: mrfld: fix uninitialized variable access pinctrl: bcm2835: Use raw spinlock for RT compatibility drm/vgem: Fix vgem_init to get drm device available. staging: iio: adc: ad7280a: handle error from __ad7280_read32() drm/bufs: Fix Spectre v1 vulnerability devres: Align data[] to ARCH_KMALLOC_MINALIGN ANDROID: Turn xt_owner module on UPSTREAM: virt_wifi: fix error return code in virt_wifi_newlink() Conflicts: arch/arm64/include/asm/io.h drivers/iommu/arm-smmu.c drivers/thermal/thermal_core.c Change-Id: Ic348640eaeb3501bfc61d0b6907b7fcbb83f5118 Signed-off-by: Ivaylo Georgiev <irgeorgiev@codeaurora.org>
| * futex: Handle early deadlock return correctlyThomas Gleixner2019-02-121-5/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 1a1fb985f2e2b85ec0d3dc2e519ee48389ec2434 upstream. commit 56222b212e8e ("futex: Drop hb->lock before enqueueing on the rtmutex") changed the locking rules in the futex code so that the hash bucket lock is not longer held while the waiter is enqueued into the rtmutex wait list. This made the lock and the unlock path symmetric, but unfortunately the possible early exit from __rt_mutex_proxy_start() due to a detected deadlock was not updated accordingly. That allows a concurrent unlocker to observe inconsitent state which triggers the warning in the unlock path. futex_lock_pi() futex_unlock_pi() lock(hb->lock) queue(hb_waiter) lock(hb->lock) lock(rtmutex->wait_lock) unlock(hb->lock) // acquired hb->lock hb_waiter = futex_top_waiter() lock(rtmutex->wait_lock) __rt_mutex_proxy_start() ---> fail remove(rtmutex_waiter); ---> returns -EDEADLOCK unlock(rtmutex->wait_lock) // acquired wait_lock wake_futex_pi() rt_mutex_next_owner() --> returns NULL --> WARN lock(hb->lock) unqueue(hb_waiter) The problem is caused by the remove(rtmutex_waiter) in the failure case of __rt_mutex_proxy_start() as this lets the unlocker observe a waiter in the hash bucket but no waiter on the rtmutex, i.e. inconsistent state. The original commit handles this correctly for the other early return cases (timeout, signal) by delaying the removal of the rtmutex waiter until the returning task reacquired the hash bucket lock. Treat the failure case of __rt_mutex_proxy_start() in the same way and let the existing cleanup code handle the eventual handover of the rtmutex gracefully. The regular rt_mutex_proxy_start() gains the rtmutex waiter removal for the failure case, so that the other callsites are still operating correctly. Add proper comments to the code so all these details are fully documented. Thanks to Peter for helping with the analysis and writing the really valuable code comments. Fixes: 56222b212e8e ("futex: Drop hb->lock before enqueueing on the rtmutex") Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com> Co-developed-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: linux-s390@vger.kernel.org Cc: Stefan Liebler <stli@linux.ibm.com> Cc: Sebastian Sewior <bigeasy@linutronix.de> Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/alpine.DEB.2.21.1901292311410.1950@nanos.tec.linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | Merge android-4.19.12 (16c056d) into msm-4.19Ivaylo Georgiev2019-01-291-29/+42
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-16c056d: Linux 4.19.12 Btrfs: fix missing delayed iputs on unmount nvmet-rdma: fix response use after free nvme: validate controller state before rescheduling keep alive i2c: uniphier-f: fix violation of tLOW requirement for Fast-mode i2c: uniphier: fix violation of tLOW requirement for Fast-mode i2c: scmi: Fix probe error on devices with an empty SMB0001 ACPI device node i2c: axxia: properly handle master timeout mlxsw: spectrum_switchdev: Fix VLAN device deletion via ioctl vhost/vsock: fix reset orphans race with close timeout cifs: In Kconfig CONFIG_CIFS_POSIX needs depends on legacy (insecure cifs) drm/ast: Fix connector leak during driver unload acpi/nfit: Fix user-initiated ARS to be "ARS-long" rather than "ARS-short" tools/testing/nvdimm: Align test resources to 128M drm/amdgpu/vcn: Update vcn.cur_state during suspend net: mvpp2: fix phylink handling of invalid PHY modes net: mvpp2: fix detection of 10G SFP modules thermal: armada: fix legacy validity test sense ethernet: fman: fix wrong of_node_put() in probe function ARM: 8816/1: dma-mapping: fix potential uninitialized return ARM: 8815/1: V7M: align v7m_dma_inv_range() with v7 counterpart ARM: 8814/1: mm: improve/fix ARM v7_dma_inv_range() unaligned address handling bpf: check pending signals while verifying programs net/mlx4_en: Fix build break when CONFIG_INET is off mv88e6060: disable hardware level MAC learning macvlan: return correct error value libata: whitelist all SAMSUNG MZ7KM* solid-state disks Input: omap-keypad - fix keyboard debounce configuration Input: synaptics - enable SMBus for HP 15-ay000 clk: mmp: Off by one in mmp_clk_add() clk: mvebu: Off by one bugs in cp110_of_clk_get() drm/amd/powerplay: issue pre-display settings for display change event drm/msm: Fix error return checking drm/msm: dpu: Fix "WARNING: invalid free of devm_ allocated data" drm/msm: dpu: Don't set legacy plane->crtc pointer drm/msm/hdmi: Enable HPD after HDMI IRQ is set up ide: pmac: add of_node_put() drivers/tty: add missing of_node_put() drivers/sbus/char: add of_node_put() sbus: char: add of_node_put() SUNRPC: Fix a potential race in xprt_connect() nfs: don't dirty kernel pages read by direct-io liquidio: read sc->iq_no before release sc bpf: Fix verifier log string check for bad alignment. bonding: fix 802.3ad state sent to partner when unbinding slave net: aquantia: fix rx checksum offload bits net: stmmac: Move debugfs init/exit to ->probe()/->remove() ARC: io.h: Implement reads{x}()/writes{x}() drm/amdgpu: wait for IB test on first device open drm/ttm: fix LRU handling in ttm_buffer_object_transfer drm/msm: Grab a vblank reference when waiting for commit_done drm/msm/dsi: configure VCO rate for 10nm PLL driver drm/msm: fix handling of cmdstream offset drm/msm/gpu: Fix a couple memory leaks in debugfs drm/msm: Fix task dump in gpu recovery x86/earlyprintk/efi: Fix infinite loop on some screen widths drm/amd/display: Fix 6x4K displays light-up on Vega20 (v2) net: ethernet: ave: Replace NET_IP_ALIGN with AVE_FRAME_HEADROOM tools/bpf: add addition type tests to test_btf tools/bpf: fix two test_btf unit test cases scsi: vmw_pscsi: Rearrange code to avoid multiple calls to free_irq during unload scsi: libiscsi: Fix NULL pointer dereference in iscsi_eh_session_reset i2c: rcar: check bus state before reinitializing Input: hyper-v - fix wakeup from suspend-to-idle mac80211_hwsim: fix module init error paths for netlink IB/hfi1: Remove race conditions in user_sdma send path locking/qspinlock, x86: Provide liveness guarantee locking/qspinlock: Re-order code ANDROID: PM / OPP: Document power estimation helper ANDROID: PM / OPP: Add missing of_node_put() to power estimation helper UPSTREAM: mm/memfd: make F_SEAL_FUTURE_WRITE seal more robust UPSTREAM: mm: Add an F_SEAL_FUTURE_WRITE seal to memfd Change-Id: I02ded14673b9aba3b3b555745d835b5c4cd252fe Signed-off-by: Ivaylo Georgiev <irgeorgiev@codeaurora.org>
| * locking/qspinlock, x86: Provide liveness guaranteePeter Zijlstra2018-12-211-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 7aa54be2976550f17c11a1c3e3630002dea39303 upstream. On x86 we cannot do fetch_or() with a single instruction and thus end up using a cmpxchg loop, this reduces determinism. Replace the fetch_or() with a composite operation: tas-pending + load. Using two instructions of course opens a window we previously did not have. Consider the scenario: CPU0 CPU1 CPU2 1) lock trylock -> (0,0,1) 2) lock trylock /* fail */ 3) unlock -> (0,0,0) 4) lock trylock -> (0,0,1) 5) tas-pending -> (0,1,1) load-val <- (0,1,0) from 3 6) clear-pending-set-locked -> (0,0,1) FAIL: _2_ owners where 5) is our new composite operation. When we consider each part of the qspinlock state as a separate variable (as we can when _Q_PENDING_BITS == 8) then the above is entirely possible, because tas-pending will only RmW the pending byte, so the later load is able to observe prior tail and lock state (but not earlier than its own trylock, which operates on the whole word, due to coherence). To avoid this we need 2 things: - the load must come after the tas-pending (obviously, otherwise it can trivially observe prior state). - the tas-pending must be a full word RmW instruction, it cannot be an XCHGB for example, such that we cannot observe other state prior to setting pending. On x86 we can realize this by using "LOCK BTS m32, r32" for tas-pending followed by a regular load. Note that observing later state is not a problem: - if we fail to observe a later unlock, we'll simply spin-wait for that store to become visible. - if we observe a later xchg_tail(), there is no difference from that xchg_tail() having taken place before the tas-pending. Suggested-by: Will Deacon <will.deacon@arm.com> Reported-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Will Deacon <will.deacon@arm.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: andrea.parri@amarulasolutions.com Cc: longman@redhat.com Fixes: 59fb586b4a07 ("locking/qspinlock: Remove unbounded cmpxchg() loop from locking slowpath") Link: https://lkml.kernel.org/r/20181003130957.183726335@infradead.org Signed-off-by: Ingo Molnar <mingo@kernel.org> [bigeasy: GEN_BINARY_RMWcc macro redo] Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
| * locking/qspinlock: Re-order codePeter Zijlstra2018-12-211-29/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 53bf57fab7321fb42b703056a4c80fc9d986d170 upstream. Flip the branch condition after atomic_fetch_or_acquire(_Q_PENDING_VAL) such that we loose the indent. This also result in a more natural code flow IMO. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Will Deacon <will.deacon@arm.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: andrea.parri@amarulasolutions.com Cc: longman@redhat.com Link: https://lkml.kernel.org/r/20181003130257.156322446@infradead.org Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
* | Merge LTS tag v4.19.2 into msm-konaBlagovest Kolenichev2018-11-261-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refs/heads/tmp-7950eb3: Revert "scsi: ufs: Schedule clk gating work on correct queue" Linux 4.19.2 MD: fix invalid stored role for a disk - try2 vga_switcheroo: Fix missing gpu_bound call at audio client registration bpf: wait for running BPF programs when updating map-in-map userns: also map extents in the reverse map to kernel IDs vt: fix broken display when running aptitude net: sched: Remove TCA_OPTIONS from policy Btrfs: fix use-after-free when dumping free space Btrfs: fix use-after-free during inode eviction btrfs: move the dio_sem higher up the callchain btrfs: don't run delayed_iputs in commit btrfs: fix insert_reserved error handling btrfs: only free reserved extent if we didn't insert it btrfs: don't use ctl->free_space for max_extent_size btrfs: set max_extent_size properly btrfs: reset max_extent_size properly Btrfs: fix deadlock when writing out free space caches Btrfs: fix assertion on fsync of regular file when using no-holes feature Btrfs: fix null pointer dereference on compressed write path error btrfs: qgroup: Dirty all qgroups before rescan Btrfs: fix wrong dentries after fsync of file that got its parent replaced Btrfs: fix warning when replaying log after fsync of a tmpfile btrfs: make sure we create all new block groups btrfs: reset max_extent_size on clear in a bitmap btrfs: protect space cache inode alloc with GFP_NOFS btrfs: release metadata before running delayed refs Btrfs: don't clean dirty pages during buffered writes btrfs: wait on caching when putting the bg cache btrfs: keep trim from interfering with transaction commits btrfs: don't attempt to trim devices that don't support it btrfs: iterate all devices during trim, instead of fs_devices::alloc_list btrfs: Ensure btrfs_trim_fs can trim the whole filesystem btrfs: Enhance btrfs_trim_fs function to handle error better btrfs: fix error handling in btrfs_dev_replace_start btrfs: fix error handling in free_log_tree btrfs: locking: Add extra check in btrfs_init_new_buffer() to avoid deadlock btrfs: Handle owner mismatch gracefully when walking up tree btrfs: qgroup: Avoid calling qgroup functions if qgroup is not enabled tracing: Return -ENOENT if there is no target synthetic event selftests/powerpc: Fix ptrace tm failure selftests/ftrace: Fix synthetic event test to delete event correctly soc/tegra: pmc: Fix child-node lookup soc: qcom: rmtfs-mem: Validate that scm is available arm64: dts: stratix10: Correct System Manager register size ARM: dts: socfpga: Fix SDRAM node address for Arria10 Cramfs: fix abad comparison when wrap-arounds occur rpmsg: smd: fix memory leak on channel create arm64: lse: remove -fcall-used-x0 flag media: hdmi.h: rename ADOBE_RGB to OPRGB and ADOBE_YCC to OPYCC media: replace ADOBERGB by OPRGB media: media colorspaces*.rst: rename AdobeRGB to opRGB drm/mediatek: fix OF sibling-node lookup media: adv7842: when the EDID is cleared, unconfigure CEC as well media: adv7604: when the EDID is cleared, unconfigure CEC as well media: em28xx: fix handler for vidioc_s_input() media: em28xx: make v4l2-compliance happier by starting sequence on zero media: em28xx: fix input name for Terratec AV 350 media: tvp5150: avoid going past array on v4l2_querymenu() media: em28xx: use a default format if TRY_FMT fails media: cec: forgot to cancel delayed work media: cec: fix the Signal Free Time calculation media: cec: add new tx/rx status bits to detect aborts/timeouts xen-blkfront: fix kernel panic with negotiate_mq error path xen: remove size limit of privcmd-buf mapping interface xen: fix xen_qlock_wait() media: cec: integrate cec_validate_phys_addr() in cec-api.c media: cec: make cec_get_edid_spa_location() an inline function remoteproc: qcom: q6v5: Propagate EPROBE_DEFER kgdboc: Passing ekgdboc to command line causes panic Revert "media: dvbsky: use just one mutex for serializing device R/W ops" media: v4l2-tpg: fix kernel oops when enabling HFLIP and OSD net: bcmgenet: fix OF child-node lookup TC: Set DMA masks for devices iommu/arm-smmu: Ensure that page-table updates are visible before TLBI ocxl: Fix access to the AFU Descriptor Data power: supply: twl4030-charger: fix OF sibling-node lookup rtc: cmos: Remove the `use_acpi_alarm' module parameter for !ACPI rtc: cmos: Fix non-ACPI undefined reference to `hpet_rtc_interrupt' rtc: ds1307: fix ds1339 wakealarm support MIPS: OCTEON: fix out of bounds array access on CN68XX powerpc/64s/hash: Do not use PPC_INVALIDATE_ERAT on CPUs before POWER9 powerpc/tm: Fix HFSCR bit for no suspend case powerpc/msi: Fix compile error on mpc83xx powerpc64/module elfv1: Set opd addresses after module relocation fsnotify: Fix busy inodes during unmount media: ov7670: make "xclk" clock optional dm zoned: fix various dmz_get_mblock() issues dm zoned: fix metadata block ref counting dm ioctl: harden copy_params()'s copy_from_user() from malicious users lockd: fix access beyond unterminated strings in prints nfsd: Fix an Oops in free_session() nfsd: correctly decrement odstate refcount in error path nfs: Fix a missed page unlock after pg_doio() NFSv4.1: Fix the r/wsize checking NFC: nfcmrvl_uart: fix OF child-node lookup tpm: fix response size validation in tpm_get_random() genirq: Fix race on spurious interrupt detection printk: Fix panic caused by passing log_buf_len to command line smb3: on kerberos mount if server doesn't specify auth type use krb5 smb3: do not attempt cifs operation in smb3 query info error path smb3: allow stats which track session and share reconnects to be reset w1: omap-hdq: fix missing bus unregister at removal iio: adc: at91: fix wrong channel number in triggered buffer mode iio: adc: at91: fix acking DRDY irq on simple conversions iio: adc: imx25-gcq: Fix leak of device_node in mx25_gcq_setup_cfgs() iio: ad5064: Fix regulator handling kbuild: fix kernel/bounds.c 'W=1' warning KVM: arm64: Fix caching of host MDCR_EL2 value KVM: arm/arm64: Ensure only THP is candidate for adjustment mm/hmm: fix race between hmm_mirror_unregister() and mmu_notifier callback mm/rmap: map_pte() was not handling private ZONE_DEVICE page properly hugetlbfs: dirty pages as they are added to pagecache ima: open a new file instance if no read permissions ima: fix showing large 'violations' or 'runtime_measurements_count' userfaultfd: disable irqs when taking the waitqueue lock mm: /proc/pid/smaps_rollup: fix NULL pointer deref in smaps_pte_range() crypto: speck - remove Speck crypto: aegis/generic - fix for big endian systems crypto: morus/generic - fix for big endian systems crypto: aesni - don't use GFP_ATOMIC allocation if the request doesn't cross a page in gcm crypto: tcrypt - fix ghash-generic speed test crypto: lrw - Fix out-of bounds access on counter overflow signal: Guard against negative signal numbers in copy_siginfo_from_user32 signal/GenWQE: Fix sending of SIGKILL PCI: Add Device IDs for Intel GPU "spurious interrupt" quirk PCI/ASPM: Fix link_state teardown on device removal ARM: dts: dra7: Fix up unaligned access setting for PCIe EP EDAC, skx_edac: Fix logical channel intermediate decoding EDAC, {i7core,sb,skx}_edac: Fix uncorrected error counting EDAC, amd64: Add Family 17h, models 10h-2fh support HID: hiddev: fix potential Spectre v1 HID: wacom: Work around HID descriptor bug in DTK-2451 and DTH-2452 selinux: fix mounting of cgroup2 under older policies ext4: fix use-after-free race in ext4_remount()'s error path ext4: propagate error from dquot_initialize() in EXT4_IOC_FSSETXATTR ext4: fix setattr project check in fssetxattr ioctl ext4: initialize retries variable in ext4_da_write_inline_data_begin() ext4: fix EXT4_IOC_SWAP_BOOT gfs2_meta: ->mount() can get NULL dev_name jbd2: fix use after free in jbd2_log_do_checkpoint() IB/rxe: Revise the ib_wr_opcode enum IB/mlx5: Fix MR cache initialization ASoC: sta32x: set ->component pointer in private struct ASoC: intel: skylake: Add missing break in skl_tplg_get_token() libnvdimm, pmem: Fix badblocks population for 'raw' namespaces libnvdimm, region: Fail badblocks listing for inactive regions libnvdimm: Hold reference on parent while scheduling async init scsi: target: Fix target_wait_for_sess_cmds breakage with active signals scsi: sched/wait: Add wait_event_lock_irq_timeout for TASK_UNINTERRUPTIBLE usage dmaengine: ppc4xx: fix off-by-one build failure net/ipv4: defensive cipso option parsing iwlwifi: mvm: check return value of rs_rate_from_ucode_rate() mt76: mt76x2: fix multi-interface beacon configuration usb: gadget: udc: renesas_usb3: Fix b-device mode for "workaround" usb: typec: tcpm: Fix APDO PPS order checking to be based on voltage usbip:vudc: BUG kmalloc-2048 (Not tainted): Poison overwritten libertas: don't set URB_ZERO_PACKET on IN USB transfer xen/pvh: don't try to unplug emulated devices xen/pvh: increase early stack size xen: make xen_qlock_wait() nestable xen: fix race in xen_qlock_wait() xen/balloon: Support xend-based toolstack xen/blkfront: avoid NULL blkfront_info dereference on device removal tpm: Restore functionality to xen vtpm driver. xen-swiotlb: use actually allocated size on check physical continuous ARM: dts: exynos: Mark 1 GHz CPU OPP as suspend OPP on Exynos5250 ARM: dts: exynos: Convert exynos5250.dtsi to opp-v2 bindings OPP: Free OPP table properly on performance state irregularities f2fs: fix to account IO correctly f2fs: fix to recover cold bit of inode block during POR f2fs: fix missing up_read Revert "f2fs: fix to clear PG_checked flag in set_page_dirty()" cpupower: Fix AMD Family 0x17 msr_pstate size ALSA: hda: Check the non-cached stream buffers more explicitly IB/rxe: fix for duplicate request processing and ack psns dmaengine: dma-jz4780: Return error if not probed from DT mfd: menelaus: Fix possible race condition and leak f2fs: fix to flush all dirty inodes recovered in readonly fs signal: Always deliver the kernel's SIGKILL and SIGSTOP to a pid namespace init f2fs: report error if quota off error during umount f2fs: avoid sleeping under spin_lock scsi: lpfc: Correct race with abort on completion path scsi: lpfc: Correct soft lockup when running mds diagnostics uio: ensure class is registered before devices IB/mlx5: Allow transition of DCI QP to reset IB/ipoib: Use dev_port to expose network interface port numbers firmware: coreboot: Unmap ioregion after device population ASoC: AMD: Fix capture unstable in beginning for some runs driver/dma/ioat: Call del_timer_sync() without holding prep_lock Smack: ptrace capability use fixes usb: chipidea: Prevent unbalanced IRQ disable crypto: caam - fix implicit casts in endianness helpers PCI: dwc: pci-dra7xx: Enable errata i870 for both EP and RC mode coresight: etb10: Fix handling of perf mode PCI/MSI: Warn and return error if driver enables MSI/MSI-X twice f2fs: fix to recover inode's i_flags during POR f2fs: fix to recover inode's crtime during POR scsi: qla2xxx: Fix recursive mailbox timeout xhci: Avoid USB autosuspend when resuming USB2 ports. nvmem: check the return value of nvmem_add_cells() PCI: cadence: Correct probe behaviour when failing to get PHY MD: fix invalid stored role for a disk ext4: fix argument checking in EXT4_IOC_MOVE_EXT usb: gadget: udc: atmel: handle at91sam9rl PMC usb: dwc2: fix a race with external vbus supply usb: dwc2: fix call to vbus supply exit routine, call it unlocked irqchip/pdc: Setup all edge interrupts as rising edge at GIC xprtrdma: Reset credit grant properly after a disconnect PCI / ACPI: Enable wake automatically for power managed bridges VMCI: Resource wildcard match fixed Drivers: hv: vmbus: Use cpumask_var_t for on-stack cpu mask f2fs: clear PageError on the read path tpm: suppress transmit cmd error logs when TPM 1.2 is disabled/deactivated usb: typec: tcpm: Report back negotiated PPS voltage and current PCI: cadence: Use AXI region 0 to signal interrupts from EP PCI: mediatek: Fix mtk_pcie_find_port() endpoint/port matching logic usb: host: ohci-at91: fix request of irq for optional gpio RDMA/bnxt_re: Fix recursive lock warning in debug kernel RDMA/bnxt_re: Avoid accessing nq->bar_reg_iomem in failure case IB/ipoib: Clear IPCB before icmp_send RDMA/cm: Respect returned status of cm_init_av_by_path RDMA/core: Do not expose unsupported counters scsi: megaraid_sas: fix a missing-check bug KVM: nVMX: Clear reserved bits of #DB exit qualification UAPI: ndctl: Fix g++-unsupported initialisation in headers scsi: ufs: Schedule clk gating work on correct queue scsi: esp_scsi: Track residual for PIO transfers of: Add missing exports of node name compare functions md: fix memleak for mempool MD: Memory leak when flush bio size is zero f2fs: fix to account IO correctly for cgroup writeback net: stmmac: dwmac-sun8i: fix OF child-node lookup cgroup, netclassid: add a preemption point to write_classid cifs: fix a credits leak for compund commands thermal: da9062/61: Prevent hardware access during system suspend thermal: rcar_thermal: Prevent doing work after unbind libata: Apply NOLPM quirk for SAMSUNG MZ7TD256HAFV-000L9 ath10k: schedule hardware restart if WMI command times out wil6210: fix RX buffers release and unmap ixgbevf: VF2VF TCP RSS ixgbe: disallow IPsec Tx offload when in SR-IOV mode gpio: brcmstb: allow 0 width GPIO banks iwlwifi: mvm: fix BAR seq ctrl reporting libertas_tf: prevent underflow in process_cmdrequest() rsi: fix memory alignment issue in ARM32 platforms mt76x2u: run device cleanup routine if resume fails net: dsa: mv88e6xxx: Fix writing to a PHY page. net: hns3: Fix for vf vlan delete failed problem net: hns3: Fix ping exited problem when doing lp selftest net: hns3: Preserve vlan 0 in hardware table pinctrl: ssbi-gpio: Fix pm8xxx_pin_config_get() to be compliant pinctrl: spmi-mpp: Fix pmic_mpp_config_get() to be compliant perf tests: Fix record+probe_libc_inet_pton.sh without ping's debuginfo failover: Add missing check to validate 'slave_dev' in net_failover_slave_unregister bpf/verifier: fix verifier instability pinctrl: qcom: spmi-mpp: Fix drive strength setting ACPI / LPSS: Add alternative ACPI HIDs for Cherry Trail DMA controllers spi: gpio: No MISO does not imply no RX kprobes: Return error if we fail to reuse kprobe instead of BUG_ON() arm64: entry: Allow handling of undefined instructions from EL1 block, bfq: correctly charge and reset entity service in all cases net: phy: phylink: ensure the carrier is off when starting phylink net: hns3: Set STATE_DOWN bit of hdev state when stopping net net: hns3: Check hdev state when getting link status brcmfmac: fix for proper support of 160MHz bandwidth pinctrl: qcom: spmi-mpp: Fix err handling of pmic_mpp_set_mux pinctrl: sunxi: fix 'pctrl->functions' allocation in sunxi_pinctrl_build_state net: hns3: Fix ets validate issue net: hns3: Add nic state check before calling netif_tx_wake_queue x86: boot: Fix EFI stub alignment efi/x86: Call efi_parse_options() from efi_main() Bluetooth: hci_qca: Remove hdev dereference in qca_close(). Bluetooth: btbcm: Add entry for BCM4335C0 UART bluetooth net: hns3: Fix for packet buffer setting bug ice: update fw version check logic ice: fix changing of ring descriptor size (ethtool -G) signal: Introduce COMPAT_SIGMINSTKSZ for use in compat_sys_sigaltstack ath10k: fix tx status flag setting for management frames nvme: call nvme_complete_rq when nvmf_check_ready fails for mpath I/O mtd: rawnand: atmel: Fix potential NULL pointer dereference x86/intel_rdt: Show missing resctrl mount options cpufreq: dt: Try freeing static OPPs only if we have added them ACPI / processor: Fix the return value of acpi_processor_ids_walk() ACPI / PM: LPIT: Register sysfs attributes based on FADT ACPI/PPTT: Handle architecturally unknown cache types wlcore: Fix BUG with clear completion on timeout x86/olpc: Indicate that legacy PC XO-1 platform should not register RTC iwlwifi: mvm: check for n_profiles validity in EWRD ACPI iwlwifi: mvm: clear HW_RESTART_REQUESTED when stopping the interface iwlwifi: pcie: avoid empty free RB queue mtd: rawnand: denali: set SPARE_AREA_SKIP_BYTES register to 8 if unset sdhci: acpi: add free_slot callback mmc: sdhci-pci-o2micro: Add quirk for O2 Micro dev 0x8620 rev 0x01 bcache: Populate writeback_rate_minimum attribute cpupower: Fix coredump on VMWare perf strbuf: Match va_{add,copy} with va_end perf tools: Free 'printk' string in parse_ftrace_printk() perf tools: Cleanup trace-event-info 'tdata' leak perf tools: Free temporary 'sys' string in read_event_files() spi: spi-ep93xx: Use dma_data_direction for ep93xx_spi_dma_{finish,prepare} lightnvm: pblk: fix race condition on metadata I/O lightnvm: pblk: fix two sleep-in-atomic-context bugs lightnvm: pblk: fix race on sysfs line state hwmon: (pwm-fan) Set fan speed to 0 on suspend s390/sthyi: Fix machine name validity indication tun: Consistently configure generic netdev params via rtnetlink nfp: devlink port split support for 1x100G CXP NIC hv_netvsc: fix vf serial matching with pci slot info arm64: cpufeature: ctr: Fix cpu capability check for late CPUs swim: fix cleanup on setup error ataflop: fix error handling during setup netfilter: xt_nat: fix DNAT target for shifted portmap ranges locking/lockdep: Fix debug_locks off performance problem net: loopback: clear skb->tstamp before netif_rx() net: socionext: Reset tx queue in ndo_stop ARM: dts: exynos: Disable pull control for MAX8997 interrupts on Origen x86/numa_emulation: Fix uniform-split numa emulation x86/mm/pat: Disable preemption around __flush_tlb_all() x86/kvm/nVMX: allow bare VMXON state migration x86/corruption-check: Fix panic in memory_corruption_check() when boot option without value is provided x86/xen: Fix boot loader version reported for PVH guests x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation ALSA: hda - Fix incorrect clearance of thinkpad_acpi hooks ALSA: ca0106: Disable IZD on SB0570 DAC to fix audio pops ALSA: hda: Add 2 more models to the power_save blacklist ALSA: hda - Add mic quirk for the Lenovo G50-30 (17aa:3905) ALSA: hda/realtek - Fix the problem of the front MIC on the Lenovo M715 ALSA: hda - Fix headphone pin config for ASUS G751 ALSA: hda - Add quirk for ASUS G751 laptop parisc: Fix exported address of os_hpmc handler parisc: Fix map_pages() to not overwrite existing pte entries parisc: Fix address in HPMC IVA mailbox: PCC: handle parse error ipmi: Fix timer race with module unload kprobes/x86: Use preempt_enable() in optimized_callback() acpi, nfit: Fix Address Range Scrub completion tracking ACPICA: AML Parser: fix parse loop to correctly skip erroneous extended opcodes ACPICA: AML interpreter: add region addresses in global list during initialization ACPI / OSL: Use 'jiffies' as the time bassis for acpi_os_get_timer() pcmcia: Implement CLKRUN protocol disabling for Ricoh bridges dma-mapping: fix panic caused by passing empty cma command line argument cpufreq: conservative: Take limits changes into account properly block: make sure writesame bio is aligned with logical block size block: make sure discard bio is aligned with logical block size block: setup bounce bio_sets properly jffs2: free jffs2_sb_info through jffs2_kill_sb() hwmon: (pmbus) Fix page count auto-detection. bcache: fix miss key refill->end in writeback bcache: correct dirty data statistics bcache: fix ioctl in flash device bcache: trace missed reading by cache_missed spi: bcm-qspi: fix calculation of address length spi: bcm-qspi: switch back to reading flash using smaller chunks spi: spi-mem: Adjust op len based on message/transfer size limitations mtd: spi-nor: fsl-quadspi: Don't let -EINVAL on the bus mtd: spi-nor: intel-spi: Add support for Intel Ice Lake SPI serial flash mtd: spi-nor: fsl-quadspi: fix read error for flash size larger than 16MB mtd: maps: gpio-addr-flash: Fix ioremapped size mtd: rawnand: marvell: fix the IRQ handler complete() condition gpio: mxs: Get rid of external API call MIPS: VDSO: Reduce VDSO_RANDOMIZE_SIZE to 64MB for 64bit bpf: fix partial copy of map_ptr when dst is scalar Conflicts: drivers/iommu/arm-smmu.c Change-Id: Iff6f46fb6932b2a41a7a3df5f2a18f1eddfb9d66 Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
| * locking/lockdep: Fix debug_locks off performance problemWaiman Long2018-11-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Upstream commit 9506a7425b094d2f1d9c877ed5a78f416669269b ] It was found that when debug_locks was turned off because of a problem found by the lockdep code, the system performance could drop quite significantly when the lock_stat code was also configured into the kernel. For instance, parallel kernel build time on a 4-socket x86-64 server nearly doubled. Further analysis into the cause of the slowdown traced back to the frequent call to debug_locks_off() from the __lock_acquired() function probably due to some inconsistent lockdep states with debug_locks off. The debug_locks_off() function did an unconditional atomic xchg to write a 0 value into debug_locks which had already been set to 0. This led to severe cacheline contention in the cacheline that held debug_locks. As debug_locks is being referenced in quite a few different places in the kernel, this greatly slow down the system performance. To prevent that trashing of debug_locks cacheline, lock_acquired() and lock_contended() now checks the state of debug_locks before proceeding. The debug_locks_off() function is also modified to check debug_locks before calling __debug_locks_off(). Signed-off-by: Waiman Long <longman@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Link: http://lkml.kernel.org/r/1539913518-15598-1-git-send-email-longman@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* | Merge remote-tracking branch 'origin/tmp-35a7f35' into msm-konaRishabh Bhatnagar2018-10-151-4/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/tmp-35a7f35: Linux 4.19-rc8 KVM: vmx: hyper-v: don't pass EPT configuration info to vmx_hv_remote_flush_tlb() ubifs: Fix WARN_ON logic in exit path fs/fat/fatent.c: add cond_resched() to fat_count_free_clusters() mm/thp: fix call to mmu_notifier in set_pmd_migration_entry() v2 mm/mmap.c: don't clobber partially overlapping VMA with MAP_FIXED_NOREPLACE ocfs2: fix a GCC warning afs: Fix afs_server struct leak MAINTAINERS: use the correct location for dt-bindings includes for mux mux: adgs1408: use the correct MODULE_LICENSE gfs2: Fix iomap buffered write support for journaled files (2) arm64: perf: Reject stand-alone CHAIN events for PMUv3 arm64: Fix /proc/iomem for reserved but not memory regions afs: Fix cell proc list lib/bch: fix possible stack overrun net: dsa: bcm_sf2: Call setup during switch resume net: dsa: bcm_sf2: Fix unbind ordering vmlinux.lds.h: Fix linker warnings about orphan .LPBX sections vmlinux.lds.h: Fix incomplete .text.exit discards i2c: Fix kerneldoc for renamed i2c dma put function blk-wbt: wake up all when we scale up, not down net: phy: sfp: remove sfp_mutex's definition r8169: set RX_MULTI_EN bit in RxConfig for 8168F-family chips net: socionext: clear rx irq correctly net/mlx4_core: Fix warnings during boot on driverinit param set failures tipc: eliminate possible recursive locking detected by LOCKDEP selftests: udpgso_bench.sh explicitly requires bash selftests: rtnetlink.sh explicitly requires bash. qmi_wwan: Added support for Gemalto's Cinterion ALASxx WWAN interface tipc: queue socket protocol error messages into socket receive buffer tipc: set link tolerance correctly in broadcast link net: ipv4: don't let PMTU updates increase route MTU net: ipv4: update fnhe_pmtu when first hop's MTU changes net/ipv6: stop leaking percpu memory in fib6 info rds: RDS (tcp) hangs on sendto() to unresponding address dm linear: fix linear_end_io conditional definition IB/mlx5: Unmap DMA addr from HCA before IOMMU net: make skb_partial_csum_set() more robust against overflows devlink: Add helper function for safely copy string param devlink: Fix param cmode driverinit for string type devlink: Fix param set handling for string type samples: disable CONFIG_SAMPLES for UML dm linear: eliminate linear_end_io call if CONFIG_DM_ZONED disabled pinctrl: mcp23s08: fix irq and irqchip setup order gpio: Assign gpio_irq_chip::parents to non-stack pointer libertas: call into generic suspend code before turning off power of: unittest: Disable interrupt node tests for old world MAC systems mfd: cros-ec: copy the whole event in get_next_event_xfer mm: Preserve _PAGE_DEVMAP across mprotect() calls dm: fix report zone remapping to account for partition offset dm cache: destroy migration_cache if cache target registration failed net: ena: fix auto casting to boolean net: ena: fix NULL dereference due to untimely napi initialization net: ena: fix rare bug when failed restart/resume is followed by driver removal net: ena: fix warning in rmmod caused by double iounmap KVM: x86: support CONFIG_KVM_AMD=y with CONFIG_CRYPTO_DEV_CCP_DD=m gfs2: Fix iomap buffered write support for journaled files ARM: KVM: Correctly order SGI register entries in the cp15 array mmc: block: avoid multiblock reads for the last sector in SPI mode x86/mm: Avoid VLA in pgd_alloc() mm, sched/numa: Remove remaining traces of NUMA rate-limiting x86/intel_rdt: Fix out-of-bounds memory access in CBM tests rxrpc: Fix the packet reception routine rxrpc: Fix the rxrpc_tx_packet trace line rxrpc: Fix connection-level abort handling rxrpc: Only take the rwind and mtu values from latest ACK filesystem-dax: Fix dax_layout_busy_page() livelock rxrpc: Carry call state out of locked section in rxrpc_rotate_tx_window() rxrpc: Don't check RXRPC_CALL_TX_LAST after calling rxrpc_rotate_tx_window() rxrpc: Don't need to take the RCU read lock in the packet receiver rxrpc: Use the UDP encap_rcv hook sparc64: fix fall-through annotation sparc32: fix fall-through annotation sparc: vdso: clean-up vdso Makefile oradax: remove redundant null check before kfree sparc64: viohs: Remove VLA usage sbus: Use of_get_child_by_name helper sparc: Convert to using %pOFn instead of device_node.name mach64: detect the dot clock divider correctly on sparc net/smc: retain old name for diag_mode field net/smc: use __aligned_u64 for 64-bit smc_diag fields net: sched: cls_u32: fix hnode refcounting udp: Unbreak modules that rely on external __skb_recv_udp() availability percpu: stop leaking bitmap metadata blocks Linux 4.19-rc7 xfs: fix data corruption w/ unaligned reflink ranges xfs: fix data corruption w/ unaligned dedupe ranges treewide: Replace more open-coded allocation size multiplications mm: madvise(MADV_DODUMP): allow hugetlbfs pages ocfs2: fix locking for res->tracking and dlm->tracking_list mm/vmscan.c: fix int overflow in callers of do_shrink_slab() mm/vmstat.c: skip NR_TLB_REMOTE_FLUSH* properly mm/vmstat.c: fix outdated vmstat_text proc: restrict kernel stack dumps to root mm/hugetlb: add mmap() encodings for 32MB and 512MB page sizes mm/migrate.c: split only transparent huge pages when allocation fails ipc/shm.c: use ERR_CAST() for shm_lock() error return mm/gup_benchmark: fix unsigned comparison to zero in __gup_benchmark_ioctl mm, thp: fix mlocking THP page with migration enabled ocfs2: fix crash in ocfs2_duplicate_clusters_by_page() hugetlb: take PMD sharing into account when flushing tlb/caches mm: migration: fix migration of huge PMD shared pages net: mvpp2: Extract the correct ethtype from the skb for tx csum offload ipv6: take rcu lock in rawv6_send_hdrinc() ARC: clone syscall to setp r25 as thread pointer net: sched: Add policy validation for tc attributes rtnetlink: fix rtnl_fdb_dump() for ndmsg header yam: fix a missing-check bug net: bpfilter: Fix type cast and pointer warnings net: cxgb3_main: fix a missing-check bug Input: uinput - add a schedule point in uinput_inject_events() Input: evdev - add a schedule point in evdev_write() bpf: 32-bit RSH verification must truncate input before the ALU op MIPS: memset: Fix CPU_DADDI_WORKAROUNDS `small_fixup' regression perf record: Use unmapped IP for inline callchain cursors vsprintf: Fix off-by-one bug in bstr_printf() processing dereferenced pointers perf python: Use -Wno-redundant-decls to build with PYTHON=python3 rxrpc: Fix the data_ready handler rxrpc: Fix some missed refs to init_net powerpc/numa: Skip onlining a offline node in kdump path powerpc: Don't print kernel instructions in show_user_instructions() i2c: designware: Call i2c_dw_clk_rate() only when calculating timings xfs: update ctime and remove suid before cloning files xfs: zero posteof blocks when cloning above eof xfs: refactor clonerange preparation into a separate helper iommu/amd: Clear memory encryption mask from physical address net: phy: phylink: fix SFP interface autodetection be2net: don't flip hw_features when VXLANs are added/deleted drm/nouveau/drm/nouveau: Grab runtime PM ref in nv50_mstc_detect() net/packet: fix packet drop as of virtio gso net: dsa: b53: Keep CPU port as tagged in all VLANs openvswitch: load NAT helper bnxt_en: get the reduced max_irqs by the ones used by RDMA bnxt_en: free hwrm resources, if driver probe fails. bnxt_en: Fix enables field in HWRM_QUEUE_COS2BW_CFG request bnxt_en: Fix VNIC reservations on the PF. Input: mousedev - add a schedule point in mousedev_write() team: Forbid enslaving team device to itself net/usb: cancel pending work when unbinding smsc75xx cgroup: Fix dom_cgrp propagation when enabling threaded mode dm cache: fix resize crash if user doesn't reload cache table dm cache metadata: ignore hints array being too small during resize PM / core: Clear the direct_complete flag on errors mlxsw: spectrum: Delete RIF when VLAN device is removed mlxsw: pci: Derive event type from event queue number drm/amdkfd: Fix incorrect use of process->mm drm/amd/display: Signal hw_done() after waiting for flip_done() kvm: nVMX: fix entry with pending interrupt if APICv is enabled ovl: fix format of setxattr debug ovl: fix access beyond unterminated strings KVM: VMX: hide flexpriority from guest when disabled at the module level KVM: VMX: check for existence of secondary exec controls before accessing x86/vdso: Fix vDSO syscall fallback asm constraint regression ALSA: hda/realtek - Cannot adjust speaker's volume on Dell XPS 27 7760 KVM: PPC: Book3S HV: Avoid crash from THP collapse during radix page fault ixgbe: check return value of napi_complete_done() sctp: fix fall-through annotation drm/i915: Handle incomplete Z_FINISH for compressed error states media: v4l: event: Prevent freeing event subscriptions while accessed locking/ww_mutex: Fix runtime warning in the WW mutex selftest x86/cpu/amd: Remove unnecessary parentheses x86/vdso: Only enable vDSO retpolines when enabled and supported r8169: always autoneg on resume ipv4: fix use-after-free in ip_cmsg_recv_dstaddr() net: qualcomm: rmnet: Fix incorrect allocation flag in receive path net: qualcomm: rmnet: Fix incorrect allocation flag in transmit net: qualcomm: rmnet: Skip processing loopback packets net: systemport: Fix wake-up interrupt race during resume smb3: fix lease break problem introduced by compounding cifs: only wake the thread for the very last PDU in a compound cifs: add a warning if we try to to dequeue a deleted mid smb2: fix missing files in root share directory listing rtnl: limit IFLA_NUM_TX_QUEUES and IFLA_NUM_RX_QUEUES to 4096 bonding: fix warning message inet: make sure to grab rcu_read_lock before using ireq->ireq_opt Revert "serial: sh-sci: Allow for compressed SCIF address" Revert "serial: sh-sci: Remove SCIx_RZ_SCIFA_REGTYPE" Revert "serial: 8250_dw: Fix runtime PM handling" RISCV: Fix end PFN for low memory x86/tsc: Fix UV TSC initialization x86/platform/uv: Provide is_early_uv_system() nfp: avoid soft lockups under control message storm declance: Fix continuation with the adapter identification message net: fec: fix rare tx timeout thunderbolt: Initialize after IOMMUs thunderbolt: Do not handle ICM events after domain is stopped powerpc/lib: fix book3s/32 boot failure due to code patching bpf: don't accept cgroup local storage with zero value size drm/cma-helper: Fix crash in fbdev error path sched/numa: Migrate pages to local nodes quicker early in the lifetime of a task mm, sched/numa: Remove rate-limiting of automatic NUMA balancing migration MAINTAINERS: Remove dead path from LOCKING PRIMITIVES entry drm: fix use-after-free read in drm_mode_create_lease_ioctl() s390/cio: Fix how vfio-ccw checks pinned pages sched/numa: Avoid task migration for small NUMA improvement mm/migrate: Use spin_trylock() while resetting rate limit sched/numa: Limit the conditions where scan period is reset sched/numa: Reset scan rate whenever task moves across nodes sched/numa: Pass destination CPU as a parameter to migrate_task_rq sched/numa: Stop multiple tasks from moving to the CPU at the same time perf/x86/amd/uncore: Set ThreadMask and SliceMask for L3 Cache perf events perf/x86/intel/uncore: Fix PCI BDF address of M3UPI on SKX perf/ring_buffer: Prevent concurent ring buffer access perf/x86/intel/uncore: Use boot_cpu_data.phys_proc_id instead of hardcorded physical package ID 0 perf/core: Fix perf_pmu_unregister() locking selftests/x86: Add clock_gettime() tests to test_vdso r8169: fix network stalls due to missing bit TXCFG_AUTO_FIFO x86/vdso: Fix asm constraints on vDSO syscall fallbacks tun: napi flags belong to tfile tun: initialize napi_mutex unconditionally tun: remove unused parameters bond: take rcu lock in netpoll_send_skb_on_dev rtnetlink: Fail dump if target netnsid is invalid Revert "openvswitch: Fix template leak in error cases." tipc: ignore STATE_MSG on wrong link session net: sched: act_ipt: check for underflow in __tcf_ipt_init() usb: xhci-mtk: resume USB3 roothub first xhci: Add missing CAS workaround for Intel Sunrise Point xHCI usb: cdc_acm: Do not leak URB buffers Input: i8042 - enable keyboard wakeups by default when s2idle is used Input: xpad - add support for Xbox1 PDP Camo series gamepad soc: fsl: qman_portals: defer probe after qman's probe lib/xz: Put CRC32_POLY_LE in xz_private.h tcp/dccp: fix lockdep issue when SYN is backlogged PCI: mvebu: Fix PCI I/O mapping creation sequence net/mlx5e: Set vlan masks for all offloaded TC rules net/mlx5: E-Switch, Fix out of bound access when setting vport rate net/mlx5e: Avoid unbounded peer devices when unpairing TC hairpin rules drm/i915: Avoid compiler warning for maybe unused gu_misc_iir drm/i915: Do not redefine the has_csr parameter. MAINTAINERS: MIPS/LOONGSON2 ARCHITECTURE - Use the normal wildcard style KVM: x86: fix L1TF's MMIO GFN calculation tools/kvm_stat: cut down decimal places in update interval dialog KVM: nVMX: Fix emulation of VM_ENTRY_LOAD_BNDCFGS KVM: x86: Do not use kvm_x86_ops->mpx_supported() directly KVM: nVMX: Do not expose MPX VMX controls when guest MPX disabled arm64: KVM: Sanitize PSTATE.M when being set from userspace arm64: KVM: Tighten guest core register access from userspace cfg80211: fix use-after-free in reg_process_hint() mac80211: fix setting IEEE80211_KEY_FLAG_RX_MGMT for AP mode keys cfg80211: fix wext-compat memory leak drm/exynos: Use selected dma_dev default iommu domain instead of a fake one i2c: i2c-scmi: fix for i2c_smbus_write_block_data xfs: fix error handling in xfs_bmap_extents_to_btree pstore/ram: Fix failure-path memory leak in ramoops_init firmware: Always initialize the fw_priv list object docs: fpga: document fpga manager flags fpga: bridge: fix obvious function documentation error tools: hv: fcopy: set 'error' in case an unknown operation was requested fpga: do not access region struct after fpga_region_unregister Drivers: hv: vmbus: Use get/put_cpu() in vmbus_connect() netlink: fix typo in nla_parse_nested() comment r8169: Disable clk during suspend / resume qlcnic: fix Tx descriptor corruption on 82xx devices tipc: fix failover problem smsc95xx: Check for Wake-on-LAN modes smsc75xx: Check for Wake-on-LAN modes r8152: Check for supported Wake-on-LAN Modes sr9800: Check for supported Wake-on-LAN modes lan78xx: Check for supported Wake-on-LAN modes ax88179_178a: Check for supported Wake-on-LAN modes asix: Check for supported Wake-on-LAN modes iomap: set page dirty after partial delalloc on mkwrite xfs: remove invalid log recovery first/last cycle check xfs: validate inode di_forkoff xfs: skip delalloc COW blocks in xfs_reflink_end_cow xfs: don't treat unknown di_flags2 as corruption in scrub xfs: remove duplicated include from alloc.c xfs: don't bring in extents in xfs_bmap_punch_delalloc_range xfs: fix transaction leak in xfs_reflink_allocate_cow() xfs: avoid lockdep false positives in xfs_trans_alloc xfs: refactor xfs_buf_log_item reference count handling xfs: clean up xfs_trans_brelse() xfs: don't unlock invalidated buf on aborted tx commit xfs: remove last of unnecessary xfs_defer_cancel() callers xfs: don't crash the vfs on a garbage inline symlink MAINTAINERS: Remove obsolete drivers/pci pattern from ACPI section MIPS: Fix CONFIG_CMDLINE handling MIPS: VDSO: Always map near top of user memory ibmvnic: remove ndo_poll_controller sfc-falcon: remove ndo_poll_controller sfc: remove ndo_poll_controller net: ena: remove ndo_poll_controller qlogic: netxen: remove ndo_poll_controller qlcnic: remove ndo_poll_controller virtio_net: remove ndo_poll_controller net: hns: remove ndo_poll_controller ehea: remove ndo_poll_controller hinic: remove ndo_poll_controller netpoll: do not test NAPI_STATE_SCHED in poll_one_napi() qed: Fix shmem structure inconsistency between driver and the mfw. Update maintainers for bnx2/bnx2x/qlge/qlcnic drivers. MAINTAINERS: change bridge maintainers s390: qeth: Fix potential array overrun in cmd/rc lookup s390: qeth_core_mpc: Use ARRAY_SIZE instead of reimplementing its function mmc: slot-gpio: Fix debounce time to use miliseconds again bpf: harden flags check in cgroup_storage_update_elem() netfilter: xt_socket: check sk before checking for netns. netfilter: avoid erronous array bounds warning netfilter: nft_set_rbtree: add missing rb_erase() in GC routine rxrpc: Fix error distribution rxrpc: Fix transport sockopts to get IPv4 errors on an IPv6 socket rxrpc: Make service call handling more robust rxrpc: Improve up-front incoming packet checking rxrpc: Emit BUSY packets when supposed to rather than ABORTs rxrpc: Fix RTT gathering rxrpc: Fix checks as to whether we should set up a new call scsi: qedi: Initialize the stats mutex lock crypto: qat - Fix KASAN stack-out-of-bounds bug in adf_probe() crypto: mxs-dcp - Fix wait logic on chan threads crypto: chelsio - Fix memory corruption in DMA Mapped buffers. PCI: Reprogram bridge prefetch registers on resume soc: fsl: qbman: add APIs to retrieve the probing status perf report: Don't try to map ip to invalid map rseq/selftests: fix parametrized test with -fpie iwlwifi: 1000: set the TFD queue size ieee802154: mcr20a: Replace magic number with constants s390/cio: Refactor alloc of ccw_io_region s390/cio: Convert ccw_io_region to pointer rxrpc: Remove dup code from rxrpc_find_connection_rcu() ieee802154: ca8210: remove redundant condition check before debugfs_remove nl80211: Fix possible Spectre-v1 for CQM RSSI thresholds net-tcp: /proc/sys/net/ipv4/tcp_probe_interval is a u32 not int bnxt_en: Fix TX timeout during netpoll. vxlan: fill ttl inherit info net: phy: sfp: Fix unregistering of HWMON SFP device qed: Avoid implicit enum conversion in qed_iwarp_parse_rx_pkt qed: Avoid constant logical operation warning in qed_vf_pf_acquire bonding: avoid possible dead-lock bonding: pass link-local packets to bonding master also. qed: Avoid implicit enum conversion in qed_roce_mode_to_flavor qed: Fix mask parameter in qed_vf_prep_tunn_req_tlv qed: Avoid implicit enum conversion in qed_set_tunn_cls_info wimax/i2400m: fix spelling mistake "not unitialized" -> "uninitialized" qed: fix spelling mistake "toogle" -> "toggle" net: phy: fix WoL handling when suspending the PHY net: core: add member wol_enabled to struct net_device Revert "net: phy: fix WoL handling when suspending the PHY" net: phy: fix WoL handling when suspending the PHY net/ipv6: Remove extra call to ip6_convert_metrics for multipath case mmc: core: Fix debounce time to use microseconds video/fbdev/stifb: Fix spelling mistake in fall-through annotation uvesafb: Fix URLs in the documentation efifb: BGRT: Add nobgrt option fbdev/omapfb: fix omapfb_memory_read infoleak pxa168fb: prepare the clock Bluetooth: SMP: fix crash in unpairing mac80211_hwsim: do not omit multicast announce of first added radio mac80211_hwsim: fix race in radio destruction from netlink notifier mac80211_hwsim: fix locking when iterating radios during ns exit nl80211: Fix possible Spectre-v1 for NL80211_TXRATE_HT cfg80211: fix reg_query_regdb_wmm kernel-doc mac80211: allocate TXQs for active monitor interfaces tipc: lock wakeup & inputq at tipc_link_reset() tipc: reset bearer if device carrier not ok ARM: dts: stm32: update SPI6 dmas property on stm32mp157c soc: fsl: qe: Fix copy/paste bug in ucc_get_tdm_sync_shift() soc: fsl: qbman: qman: avoid allocating from non existing gen_pool ovl: make symbol 'ovl_aops' static tipc: fix flow control accounting for implicit connect net: hns: fix for unmapping problem when SMMU is on xen-netback: handle page straddling in xenvif_set_hash_mapping() xen-netback: validate queue numbers in xenvif_set_hash_mapping() xen-netback: fix input validation in xenvif_set_hash_mapping() net: macb: Clean 64b dma addresses if they are not detected perf script python: Fix export-to-sqlite.py sample columns perf script python: Fix export-to-postgresql.py occasional failure i2c: i2c-isch: fix spelling mistake "unitialized" -> "uninitialized" i2c: i2c-qcom-geni: Properly handle DMA safe buffers ARM: dts: BCM63xx: Fix incorrect interrupt specifiers arm64: hugetlb: Avoid unnecessary clearing in huge_ptep_set_access_flags arm64: hugetlb: Fix handling of young ptes KVM: x86: never trap MSR_KERNEL_GS_BASE USB: serial: simple: add Motorola Tetra MTP6550 id HID: intel-ish-hid: Enable Ice Lake mobile HID: i2c-hid: Remove RESEND_REPORT_DESCR quirk and its handling vfs: swap names of {do,vfs}_clone_file_range() ovl: fix freeze protection bypass in ovl_clone_file_range() ovl: fix freeze protection bypass in ovl_write_iter() ovl: fix memory leak on unlink of indexed file MAINTAINERS: update the Annapurna Labs maintainer email ieee802154: remove unecessary condition check before debugfs_remove_recursive ieee802154: Use kmemdup instead of duplicating it in ca8210_test_int_driver_write crypto: caam/jr - fix ablkcipher_edesc pointer arithmetic netfilter: conntrack: get rid of double sizeof netfilter: nft_osf: use enum nft_data_types for nft_validate_register_store netfilter: bridge: Don't sabotage nf_hook calls from an l3mdev drm/i2c: tda9950: set MAX_RETRIES for errors only drm/i2c: tda9950: fix timeout counter check b43: fix DMA error related regression with proprietary firmware s390/hibernate: fix error handling when suspend cpu != resume cpu ALSA: hda: Fix the audio-component completion timeout xfrm: validate template mode ARM: dts: sun8i: drop A64 HDMI PHY fallback compatible from R40 DT kbuild: allow to use GCC toolchain not in Clang search path ftrace: Build with CPPFLAGS to get -Qunused-arguments ARM: 8799/1: mm: fix pci_ioremap_io() offset check ARM: 8787/1: wire up io_pgetevents syscall gpiolib: Free the last requested descriptor ARC: build: Don't set CROSS_COMPILE in arch's Makefile sysfs: Do not return POSIX ACL xattrs via listxattr dm raid: remove bogus const from decipher_sync_action() return type dm mpath: fix attached_handler_name leak and dangling hw_handler_name pointer mmc: sdhi: sys_dmac: check for all Gen3 types when whitelisting dm thin metadata: fix __udivdi3 undefined on 32-bit mt76x0: fix remove_interface ARC: fix spelling mistake "entires" -> "entries" USB: serial: option: add two-endpoints device-id flag USB: serial: option: improve Quectel EP06 detection HID: i2c-hid: disable runtime PM operations on hantick touchpad ARC: build: Get rid of toolchain check ARM: dts: at91: sama5d2_ptc_ek: fix nand pinctrl ARM: dts: imx53-qsb: disable 1.2GHz OPP xfrm: Fix NULL pointer dereference when skb_dst_force clears the dst_entry. ARCv2: build: use mcpu=hs38 iso generic mcpu=archs mac80211: fix TX status reporting for ieee80211s mac80211: TDLS: fix skb queue/priority assignment cfg80211: Address some corner cases in scan result channel updating mac80211: fix pending queue hang due to TX_DROP cfg80211: reg: Init wiphy_idx in regulatory_hint_core() mac80211: Don't wake up from PS for offchannel TX mac80211: Always report TX status xfrm: reset crypto_done when iterating over multiple input xfrms xfrm: reset transport header back to network header after all input transforms ahave been applied xfrm6: call kfree_skb when skb is toobig xfrm: Validate address prefix lengths in the xfrm selector. [rishabhb@codeaurora.org: resolved some minor conflicts] Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org> Change-Id: Ic3fb7f2c090b32694426ab160416f6a59cca8126
| * locking/ww_mutex: Fix runtime warning in the WW mutex selftestGuenter Roeck2018-10-031-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If CONFIG_WW_MUTEX_SELFTEST=y is enabled, booting an image in an arm64 virtual machine results in the following traceback if 8 CPUs are enabled: DEBUG_LOCKS_WARN_ON(__owner_task(owner) != current) WARNING: CPU: 2 PID: 537 at kernel/locking/mutex.c:1033 __mutex_unlock_slowpath+0x1a8/0x2e0 ... Call trace: __mutex_unlock_slowpath() ww_mutex_unlock() test_cycle_work() process_one_work() worker_thread() kthread() ret_from_fork() If requesting b_mutex fails with -EDEADLK, the error variable is reassigned to the return value from calling ww_mutex_lock on a_mutex again. If this call fails, a_mutex is not locked. It is, however, unconditionally unlocked subsequently, causing the reported warning. Fix the problem by using two error variables. With this change, the selftest still fails as follows: cyclic deadlock not resolved, ret[7/8] = -35 However, the traceback is gone. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Fixes: d1b42b800e5d0 ("locking/ww_mutex: Add kselftests for resolving ww_mutex cyclic deadlocks") Link: http://lkml.kernel.org/r/1538516929-9734-1-git-send-email-linux@roeck-us.net Signed-off-by: Ingo Molnar <mingo@kernel.org>
* | Merge "lib: spinlock: Trigger a watchdog bite on spin_dump for rwlock"qctecmdr Service2018-10-071-0/+5
|\ \
| * | lib: spinlock: Trigger a watchdog bite on spin_dump for rwlockPrasad Sodagudi2018-09-211-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently dump_stack is printed once a spin_bug is detected for rwlock. So provide an options to trigger a panic or watchdog bite for debugging rwlock magic corruptions and lockups. Change-Id: I20807e8eceb8b81635e58701d1f9f9bd36ab5877 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> Signed-off-by: Venkata Narendra Kumar Gutta <vnkgutta@codeaurora.org>