Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 0b500f5

Browse files
committed
Merge 5.10.150 into android12-5.10-lts
Changes in 5.10.150 ALSA: oss: Fix potential deadlock at unregistration ALSA: rawmidi: Drop register_mutex in snd_rawmidi_free() ALSA: usb-audio: Fix potential memory leaks ALSA: usb-audio: Fix NULL dererence at error path ALSA: hda/realtek: remove ALC289_FIXUP_DUAL_SPK for Dell 5530 ALSA: hda/realtek: Correct pin configs for ASUS G533Z ALSA: hda/realtek: Add quirk for ASUS GV601R laptop ALSA: hda/realtek: Add Intel Reference SSID to support headset keys mtd: rawnand: atmel: Unmap streaming DMA mappings cifs: destage dirty pages before re-reading them for cache=none cifs: Fix the error length of VALIDATE_NEGOTIATE_INFO message iio: dac: ad5593r: Fix i2c read protocol requirements iio: ltc2497: Fix reading conversion results iio: adc: ad7923: fix channel readings for some variants iio: pressure: dps310: Refactor startup procedure iio: pressure: dps310: Reset chip after timeout usb: add quirks for Lenovo OneLink+ Dock can: kvaser_usb: Fix use of uninitialized completion can: kvaser_usb_leaf: Fix overread with an invalid command can: kvaser_usb_leaf: Fix TX queue out of sync after restart can: kvaser_usb_leaf: Fix CAN state after restart mmc: sdhci-sprd: Fix minimum clock limit fs: dlm: fix race between test_bit() and queue_work() fs: dlm: handle -EBUSY first in lock arg validation HID: multitouch: Add memory barriers quota: Check next/prev free block number after reading from quota file platform/chrome: cros_ec_proto: Update version on GET_NEXT_EVENT failure ASoC: wcd9335: fix order of Slimbus unprepare/disable ASoC: wcd934x: fix order of Slimbus unprepare/disable hwmon: (gsc-hwmon) Call of_node_get() before of_find_xxx API regulator: qcom_rpm: Fix circular deferral regression RISC-V: Make port I/O string accessors actually work parisc: fbdev/stifb: Align graphics memory size to 4MB riscv: Allow PROT_WRITE-only mmap() riscv: Make VM_WRITE imply VM_READ riscv: Pass -mno-relax only on lld < 15.0.0 UM: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK nvme-pci: set min_align_mask before calculating max_hw_sectors drm/virtio: Check whether transferred 2D BO is shmem drm/udl: Restore display mode on resume block: fix inflight statistics of part0 mm/mmap: undo ->mmap() when arch_validate_flags() fails PCI: Sanitise firmware BAR assignments behind a PCI-PCI bridge powercap: intel_rapl: Use standard Energy Unit for SPR Dram RAPL domain powerpc/boot: Explicitly disable usage of SPE instructions scsi: qedf: Populate sysfs attributes for vport fbdev: smscufx: Fix use-after-free in ufx_ops_open() btrfs: fix race between quota enable and quota rescan ioctl f2fs: increase the limit for reserve_root f2fs: fix to do sanity check on destination blkaddr during recovery f2fs: fix to do sanity check on summary info hardening: Clarify Kconfig text for auto-var-init hardening: Avoid harmless Clang option under CONFIG_INIT_STACK_ALL_ZERO hardening: Remove Clang's enable flag for -ftrivial-auto-var-init=zero jbd2: wake up journal waiters in FIFO order, not LIFO jbd2: fix potential buffer head reference count leak jbd2: fix potential use-after-free in jbd2_fc_wait_bufs jbd2: add miss release buffer head in fc_do_one_pass() ext4: avoid crash when inline data creation follows DIO write ext4: fix null-ptr-deref in ext4_write_info ext4: make ext4_lazyinit_thread freezable ext4: fix check for block being out of directory size ext4: don't increase iversion counter for ea_inodes ext4: ext4_read_bh_lock() should submit IO if the buffer isn't uptodate ext4: place buffer head allocation before handle start ext4: fix miss release buffer head in ext4_fc_write_inode ext4: fix potential memory leak in ext4_fc_record_modified_inode() ext4: fix potential memory leak in ext4_fc_record_regions() ext4: update 'state->fc_regions_size' after successful memory allocation livepatch: fix race between fork and KLP transition ftrace: Properly unset FTRACE_HASH_FL_MOD ring-buffer: Allow splice to read previous partially read pages ring-buffer: Have the shortest_full queue be the shortest not longest ring-buffer: Check pending waiters when doing wake ups as well ring-buffer: Add ring_buffer_wake_waiters() ring-buffer: Fix race between reset page and reading page tracing: Disable interrupt or preemption before acquiring arch_spinlock_t thunderbolt: Explicitly enable lane adapter hotplug events at startup efi: libstub: drop pointless get_memory_map() call media: cedrus: Set the platform driver data earlier KVM: x86/emulator: Fix handing of POP SS to correctly set interruptibility KVM: nVMX: Unconditionally purge queued/injected events on nested "exit" KVM: VMX: Drop bits 31:16 when shoving exception error code into VMCS staging: greybus: audio_helper: remove unused and wrong debugfs usage drm/nouveau/kms/nv140-: Disable interlacing drm/nouveau: fix a use-after-free in nouveau_gem_prime_import_sg_table() drm/i915: Fix watermark calculations for gen12+ RC CCS modifier drm/i915: Fix watermark calculations for gen12+ MC CCS modifier smb3: must initialize two ACL struct fields to zero selinux: use "grep -E" instead of "egrep" userfaultfd: open userfaultfds with O_RDONLY sh: machvec: Use char[] for section boundaries MIPS: SGI-IP27: Free some unused memory MIPS: SGI-IP27: Fix platform-device leak in bridge_platform_create() ARM: 9244/1: dump: Fix wrong pg_level in walk_pmd() ARM: 9247/1: mm: set readonly for MT_MEMORY_RO with ARM_LPAE objtool: Preserve special st_shndx indexes in elf_update_symbol nfsd: Fix a memory leak in an error handling path wifi: ath10k: add peer map clean up for peer delete in ath10k_sta_state() leds: lm3601x: Don't use mutex after it was destroyed wifi: mac80211: allow bw change during channel switch in mesh bpftool: Fix a wrong type cast in btf_dumper_int spi: mt7621: Fix an error message in mt7621_spi_probe() x86/resctrl: Fix to restore to original value when re-enabling hardware prefetch register Bluetooth: btusb: Fine-tune mt7663 mechanism. Bluetooth: btusb: fix excessive stack usage Bluetooth: btusb: mediatek: fix WMT failure during runtime suspend wifi: rtl8xxxu: tighten bounds checking in rtl8xxxu_read_efuse() selftests/xsk: Avoid use-after-free on ctx spi: qup: add missing clk_disable_unprepare on error in spi_qup_resume() spi: qup: add missing clk_disable_unprepare on error in spi_qup_pm_resume_runtime() wifi: rtl8xxxu: Fix skb misuse in TX queue selection spi: meson-spicc: do not rely on busy flag in pow2 clk ops bpf: btf: fix truncated last_member_type_id in btf_struct_resolve wifi: rtl8xxxu: gen2: Fix mistake in path B IQ calibration wifi: rtl8xxxu: Remove copy-paste leftover in gen2_update_rate_mask net: fs_enet: Fix wrong check in do_pd_setup bpf: Ensure correct locking around vulnerable function find_vpid() Bluetooth: hci_{ldisc,serdev}: check percpu_init_rwsem() failure wifi: ath11k: fix number of VHT beamformee spatial streams x86/microcode/AMD: Track patch allocation size explicitly x86/cpu: Include the header of init_ia32_feat_ctl()'s prototype spi: dw: Fix PM disable depth imbalance in dw_spi_bt1_probe spi/omap100k:Fix PM disable depth imbalance in omap1_spi100k_probe i2c: mlxbf: support lock mechanism Bluetooth: hci_core: Fix not handling link timeouts propertly netfilter: nft_fib: Fix for rpath check with VRF devices spi: s3c64xx: Fix large transfers with DMA wifi: rtl8xxxu: Fix AIFS written to REG_EDCA_*_PARAM vhost/vsock: Use kvmalloc/kvfree for larger packets. mISDN: fix use-after-free bugs in l1oip timer handlers sctp: handle the error returned from sctp_auth_asoc_init_active_key tcp: fix tcp_cwnd_validate() to not forget is_cwnd_limited spi: Ensure that sg_table won't be used after being freed net: rds: don't hold sock lock when cancelling work from rds_tcp_reset_callbacks() bnx2x: fix potential memory leak in bnx2x_tpa_stop() net/ieee802154: reject zero-sized raw_sendmsg() once: add DO_ONCE_SLOW() for sleepable contexts net: mvpp2: fix mvpp2 debugfs leak drm: bridge: adv7511: fix CEC power down control register offset drm/bridge: Avoid uninitialized variable warning drm/mipi-dsi: Detach devices when removing the host drm/bridge: parade-ps8640: Fix regulator supply order drm/dp_mst: fix drm_dp_dpcd_read return value checks drm:pl111: Add of_node_put() when breaking out of for_each_available_child_of_node() platform/chrome: fix double-free in chromeos_laptop_prepare() platform/chrome: fix memory corruption in ioctl ASoC: tas2764: Allow mono streams ASoC: tas2764: Drop conflicting set_bias_level power setting ASoC: tas2764: Fix mute/unmute platform/x86: msi-laptop: Fix old-ec check for backlight registering platform/x86: msi-laptop: Fix resource cleanup drm: fix drm_mipi_dbi build errors drm/bridge: megachips: Fix a null pointer dereference bug ASoC: rsnd: Add check for rsnd_mod_power_on ALSA: hda: beep: Simplify keep-power-at-enable behavior drm/omap: dss: Fix refcount leak bugs mmc: au1xmmc: Fix an error handling path in au1xmmc_probe() ASoC: eureka-tlv320: Hold reference returned from of_find_xxx API drm/msm/dpu: index dpu_kms->hw_vbif using vbif_idx drm/msm/dp: correct 1.62G link rate at dp_catalog_ctrl_config_msa() ASoC: da7219: Fix an error handling path in da7219_register_dai_clks() ALSA: dmaengine: increment buffer pointer atomically mmc: wmt-sdmmc: Fix an error handling path in wmt_mci_probe() ASoC: wm8997: Fix PM disable depth imbalance in wm8997_probe ASoC: wm5110: Fix PM disable depth imbalance in wm5110_probe ASoC: wm5102: Fix PM disable depth imbalance in wm5102_probe ASoC: mt6660: Fix PM disable depth imbalance in mt6660_i2c_probe ALSA: hda/hdmi: Don't skip notification handling during PM operation memory: pl353-smc: Fix refcount leak bug in pl353_smc_probe() memory: of: Fix refcount leak bug in of_get_ddr_timings() memory: of: Fix refcount leak bug in of_lpddr3_get_ddr_timings() soc: qcom: smsm: Fix refcount leak bugs in qcom_smsm_probe() soc: qcom: smem_state: Add refcounting for the 'state->of_node' ARM: dts: turris-omnia: Fix mpp26 pin name and comment ARM: dts: kirkwood: lsxl: fix serial line ARM: dts: kirkwood: lsxl: remove first ethernet port ia64: export memory_add_physaddr_to_nid to fix cxl build error soc/tegra: fuse: Drop Kconfig dependency on TEGRA20_APB_DMA ARM: dts: exynos: correct s5k6a3 reset polarity on Midas family ARM: Drop CMDLINE_* dependency on ATAGS arm64: ftrace: fix module PLTs with mcount ARM: dts: exynos: fix polarity of VBUS GPIO of Origen iio: adc: at91-sama5d2_adc: fix AT91_SAMA5D2_MR_TRACKTIM_MAX iio: adc: at91-sama5d2_adc: check return status for pressure and touch iio: adc: at91-sama5d2_adc: lock around oversampling and sample freq iio: adc: at91-sama5d2_adc: disable/prepare buffer on suspend/resume iio: inkern: only release the device node when done with it iio: ABI: Fix wrong format of differential capacitance channel ABI. usb: ch9: Add USB 3.2 SSP attributes usb: common: Parse for USB SSP genXxY usb: common: add function to get interval expressed in us unit usb: common: move function's kerneldoc next to its definition usb: common: debug: Check non-standard control requests clk: meson: Hold reference returned by of_get_parent() clk: oxnas: Hold reference returned by of_get_parent() clk: qoriq: Hold reference returned by of_get_parent() clk: berlin: Add of_node_put() for of_get_parent() clk: sprd: Hold reference returned by of_get_parent() clk: tegra: Fix refcount leak in tegra210_clock_init clk: tegra: Fix refcount leak in tegra114_clock_init clk: tegra20: Fix refcount leak in tegra20_clock_init HSI: omap_ssi: Fix refcount leak in ssi_probe HSI: omap_ssi_port: Fix dma_map_sg error check media: exynos4-is: fimc-is: Add of_node_put() when breaking out of loop tty: xilinx_uartps: Fix the ignore_status media: meson: vdec: add missing clk_disable_unprepare on error in vdec_hevc_start() media: xilinx: vipp: Fix refcount leak in xvip_graph_dma_init RDMA/rxe: Fix "kernel NULL pointer dereference" error RDMA/rxe: Fix the error caused by qp->sk misc: ocxl: fix possible refcount leak in afu_ioctl() fpga: prevent integer overflow in dfl_feature_ioctl_set_irq() dmaengine: hisilicon: Disable channels when unregister hisi_dma dmaengine: hisilicon: Fix CQ head update dmaengine: hisilicon: Add multi-thread support for a DMA channel dyndbg: fix static_branch manipulation dyndbg: fix module.dyndbg handling dyndbg: let query-modname override actual module name dyndbg: drop EXPORTed dynamic_debug_exec_queries mtd: devices: docg3: check the return value of devm_ioremap() in the probe mtd: rawnand: fsl_elbc: Fix none ECC mode RDMA/siw: Always consume all skbuf data in sk_data_ready() upcall. ata: fix ata_id_sense_reporting_enabled() and ata_id_has_sense_reporting() ata: fix ata_id_has_devslp() ata: fix ata_id_has_ncq_autosense() ata: fix ata_id_has_dipm() mtd: rawnand: meson: fix bit map use in meson_nfc_ecc_correct() md: Replace snprintf with scnprintf md/raid5: Ensure stripe_fill happens on non-read IO with journal RDMA/cm: Use SLID in the work completion as the DLID in responder side IB: Set IOVA/LENGTH on IB_MR in core/uverbs layers xhci: Don't show warning for reinit on known broken suspend usb: gadget: function: fix dangling pnp_string in f_printer.c drivers: serial: jsm: fix some leaks in probe serial: 8250: Add an empty line and remove some useless {} serial: 8250: Toggle IER bits on only after irq has been set up tty: serial: fsl_lpuart: disable dma rx/tx use flags in lpuart_dma_shutdown phy: qualcomm: call clk_disable_unprepare in the error handling staging: vt6655: fix some erroneous memory clean-up loops firmware: google: Test spinlock on panic path to avoid lockups serial: 8250: Fix restoring termios speed after suspend scsi: libsas: Fix use-after-free bug in smp_execute_task_sg() scsi: iscsi: iscsi_tcp: Fix null-ptr-deref while calling getpeername() clk: qcom: apss-ipq6018: mark apcs_alias0_core_clk as critical fsi: core: Check error number after calling ida_simple_get mfd: intel_soc_pmic: Fix an error handling path in intel_soc_pmic_i2c_probe() mfd: fsl-imx25: Fix an error handling path in mx25_tsadc_setup_irq() mfd: lp8788: Fix an error handling path in lp8788_probe() mfd: lp8788: Fix an error handling path in lp8788_irq_init() and lp8788_irq_init() mfd: fsl-imx25: Fix check for platform_get_irq() errors mfd: sm501: Add check for platform_driver_register() clk: mediatek: mt8183: mfgcfg: Propagate rate changes to parent dmaengine: ioat: stop mod_timer from resurrecting deleted timer in __cleanup() spmi: pmic-arb: correct duplicate APID to PPID mapping logic clk: vc5: Fix 5P49V6901 outputs disabling when enabling FOD clk: baikal-t1: Fix invalid xGMAC PTP clock divider clk: baikal-t1: Add shared xGMAC ref/ptp clocks internal parent clk: baikal-t1: Add SATA internal ref clock buffer clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration clk: ti: dra7-atl: Fix reference leak in of_dra7_atl_clk_probe clk: ast2600: BCLK comes from EPLL mailbox: bcm-ferxrm-mailbox: Fix error check for dma_map_sg powerpc/math_emu/efp: Include module.h powerpc/sysdev/fsl_msi: Add missing of_node_put() powerpc/pci_dn: Add missing of_node_put() powerpc/powernv: add missing of_node_put() in opal_export_attrs() x86/hyperv: Fix 'struct hv_enlightened_vmcs' definition powerpc/64s: Fix GENERIC_CPU build flags for PPC970 / G5 powerpc: Fix SPE Power ISA properties for e500v1 platforms crypto: sahara - don't sleep when in softirq crypto: hisilicon/zip - fix mismatch in get/set sgl_sge_nr hwrng: imx-rngc - Moving IRQ handler registering after imx_rngc_irq_mask_clear() cgroup/cpuset: Enable update_tasks_cpumask() on top_cpuset iommu/omap: Fix buffer overflow in debugfs crypto: akcipher - default implementation for setting a private key crypto: ccp - Release dma channels before dmaengine unrgister crypto: inside-secure - Change swab to swab32 crypto: qat - fix use of 'dma_map_single' crypto: qat - use pre-allocated buffers in datapath crypto: qat - fix DMA transfer direction iommu/iova: Fix module config properly tracing: kprobe: Fix kprobe event gen test module on exit tracing: kprobe: Make gen test module work in arm and riscv kbuild: remove the target in signal traps when interrupted kbuild: rpm-pkg: fix breakage when V=1 is used crypto: marvell/octeontx - prevent integer overflows crypto: cavium - prevent integer overflow loading firmware thermal/drivers/qcom/tsens-v0_1: Fix MSM8939 fourth sensor hw_id ACPI: APEI: do not add task_work to kernel thread to avoid memory leak f2fs: fix race condition on setting FI_NO_EXTENT flag f2fs: fix to avoid REQ_TIME and CP_TIME collision f2fs: fix to account FS_CP_DATA_IO correctly selftest: tpm2: Add Client.__del__() to close /dev/tpm* handle rcu: Back off upon fill_page_cache_func() allocation failure rcu-tasks: Convert RCU_LOCKDEP_WARN() to WARN_ONCE() ACPI: video: Add Toshiba Satellite/Portege Z830 quirk MIPS: BCM47XX: Cast memcmp() of function to (void *) powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue thermal: intel_powerclamp: Use get_cpu() instead of smp_processor_id() to avoid crash x86/entry: Work around Clang __bdos() bug NFSD: Return nfserr_serverfault if splice_ok but buf->pages have data NFSD: fix use-after-free on source server when doing inter-server copy wifi: brcmfmac: fix invalid address access when enabling SCAN log level bpftool: Clear errno after libcap's checks openvswitch: Fix double reporting of drops in dropwatch openvswitch: Fix overreporting of drops in dropwatch tcp: annotate data-race around tcp_md5sig_pool_populated wifi: ath9k: avoid uninit memory read in ath9k_htc_rx_msg() xfrm: Update ipcomp_scratches with NULL when freed wifi: brcmfmac: fix use-after-free bug in brcmf_netdev_start_xmit() regulator: core: Prevent integer underflow Bluetooth: L2CAP: initialize delayed works at l2cap_chan_create() Bluetooth: hci_sysfs: Fix attempting to call device_add multiple times can: bcm: check the result of can_send() in bcm_can_tx() wifi: rt2x00: don't run Rt5592 IQ calibration on MT7620 wifi: rt2x00: set correct TX_SW_CFG1 MAC register for MT7620 wifi: rt2x00: set VGC gain for both chains of MT7620 wifi: rt2x00: set SoC wmac clock register wifi: rt2x00: correctly set BBP register 86 for MT7620 net: If sock is dead don't access sock's sk_wq in sk_stream_wait_memory Bluetooth: L2CAP: Fix user-after-free r8152: Rate limit overflow messages drm/nouveau/nouveau_bo: fix potential memory leak in nouveau_bo_alloc() drm: Use size_t type for len variable in drm_copy_field() drm: Prevent drm_copy_field() to attempt copying a NULL pointer gpu: lontium-lt9611: Fix NULL pointer dereference in lt9611_connector_init() drm/amd/display: fix overflow on MIN_I64 definition udmabuf: Set ubuf->sg = NULL if the creation of sg table fails drm: bridge: dw_hdmi: only trigger hotplug event on link change drm/vc4: vec: Fix timings for VEC modes drm: panel-orientation-quirks: Add quirk for Anbernic Win600 platform/chrome: cros_ec: Notify the PM of wake events during resume platform/x86: msi-laptop: Change DMI match / alias strings to fix module autoloading ASoC: SOF: pci: Change DMI match info to support all Chrome platforms drm/amdgpu: fix initial connector audio value drm/meson: explicitly remove aggregate driver at module unload time mmc: sdhci-msm: add compatible string check for sdm670 drm/dp: Don't rewrite link config when setting phy test pattern drm/amd/display: Remove interface for periodic interrupt 1 ARM: dts: imx7d-sdb: config the max pressure for tsc2046 ARM: dts: imx6q: add missing properties for sram ARM: dts: imx6dl: add missing properties for sram ARM: dts: imx6qp: add missing properties for sram ARM: dts: imx6sl: add missing properties for sram ARM: dts: imx6sll: add missing properties for sram ARM: dts: imx6sx: add missing properties for sram kselftest/arm64: Fix validatation termination record after EXTRA_CONTEXT arm64: dts: imx8mq-librem5: Add bq25895 as max17055's power supply btrfs: scrub: try to fix super block errors clk: zynqmp: Fix stack-out-of-bounds in strncpy` media: cx88: Fix a null-ptr-deref bug in buffer_prepare() clk: zynqmp: pll: rectify rate rounding in zynqmp_pll_round_rate usb: host: xhci-plat: suspend and resume clocks usb: host: xhci-plat: suspend/resume clks for brcm scsi: 3w-9xxx: Avoid disabling device if failing to enable it nbd: Fix hung when signal interrupts nbd_start_device_ioctl() power: supply: adp5061: fix out-of-bounds read in adp5061_get_chg_type() staging: vt6655: fix potential memory leak blk-throttle: prevent overflow while calculating wait time ata: libahci_platform: Sanity check the DT child nodes number bcache: fix set_at_max_writeback_rate() for multiple attached devices soundwire: cadence: Don't overwrite msg->buf during write commands soundwire: intel: fix error handling on dai registration issues HID: roccat: Fix use-after-free in roccat_read() md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d usb: host: xhci: Fix potential memory leak in xhci_alloc_stream_info() usb: musb: Fix musb_gadget.c rxstate overflow bug Revert "usb: storage: Add quirk for Samsung Fit flash" staging: rtl8723bs: fix a potential memory leak in rtw_init_cmd_priv() nvme: copy firmware_rev on each init nvmet-tcp: add bounds check on Transfer Tag usb: idmouse: fix an uninit-value in idmouse_open clk: bcm2835: Make peripheral PLLC critical perf intel-pt: Fix segfault in intel_pt_print_info() with uClibc arm64: topology: fix possible overflow in amu_fie_setup() io_uring: correct pinned_vm accounting io_uring/af_unix: defer registered files gc to io_uring release mm: hugetlb: fix UAF in hugetlb_handle_userfault net: ieee802154: return -EINVAL for unknown addr type Revert "net/ieee802154: reject zero-sized raw_sendmsg()" net/ieee802154: don't warn zero-sized raw_sendmsg() Revert "drm/amdgpu: move nbio sdma_doorbell_range() into sdma code for vega" Revert "drm/amdgpu: use dirty framebuffer helper" ext4: continue to expand file system when the target size doesn't reach inet: fully convert sk->sk_rx_dst to RCU rules thermal: intel_powerclamp: Use first online CPU as control_cpu f2fs: fix wrong condition to trigger background checkpoint correctly gcov: support GCC 12.1 and newer compilers Revert "drm/amdgpu: make sure to init common IP before gmc" Linux 5.10.150 Change-Id: I54f32f1f0149ec614c8bc7944e15adb5d80cd51a Signed-off-by: Greg Kroah-Hartman <[email protected]>
2 parents 0118fb8 + a10a57a commit 0b500f5

File tree

372 files changed

+3056
-1359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

372 files changed

+3056
-1359
lines changed

Documentation/ABI/testing/sysfs-bus-iio

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Description:
142142
Raw capacitance measurement from channel Y. Units after
143143
application of scale and offset are nanofarads.
144144

145-
What: /sys/.../iio:deviceX/in_capacitanceY-in_capacitanceZ_raw
145+
What: /sys/.../iio:deviceX/in_capacitanceY-capacitanceZ_raw
146146
KernelVersion: 3.2
147147
148148
Description:

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 5
33
PATCHLEVEL = 10
4-
SUBLEVEL = 149
4+
SUBLEVEL = 150
55
EXTRAVERSION =
66
NAME = Dare mighty things
77

@@ -834,12 +834,12 @@ endif
834834

835835
# Initialize all stack variables with a zero value.
836836
ifdef CONFIG_INIT_STACK_ALL_ZERO
837-
# Future support for zero initialization is still being debated, see
838-
# https://bugs.llvm.org/show_bug.cgi?id=45497. These flags are subject to being
839-
# renamed or dropped.
840837
KBUILD_CFLAGS += -ftrivial-auto-var-init=zero
838+
ifdef CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO_ENABLER
839+
# https://github.com/llvm/llvm-project/issues/44842
841840
KBUILD_CFLAGS += -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
842841
endif
842+
endif
843843

844844
DEBUG_CFLAGS :=
845845

arch/arm/Kconfig

-1
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,6 @@ config CMDLINE
17921792
choice
17931793
prompt "Kernel command line type" if CMDLINE != ""
17941794
default CMDLINE_FROM_BOOTLOADER
1795-
depends on ATAGS
17961795

17971796
config CMDLINE_FROM_BOOTLOADER
17981797
bool "Use bootloader kernel arguments if available"

arch/arm/boot/dts/armada-385-turris-omnia.dts

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
marvell,function = "spi0";
308308
};
309309

310-
spi0cs1_pins: spi0cs1-pins {
310+
spi0cs2_pins: spi0cs2-pins {
311311
marvell,pins = "mpp26";
312312
marvell,function = "spi0";
313313
};
@@ -342,7 +342,7 @@
342342
};
343343
};
344344

345-
/* MISO, MOSI, SCLK and CS1 are routed to pin header CN11 */
345+
/* MISO, MOSI, SCLK and CS2 are routed to pin header CN11 */
346346
};
347347

348348
&uart0 {

arch/arm/boot/dts/exynos4412-midas.dtsi

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@
588588
clocks = <&camera 1>;
589589
clock-names = "extclk";
590590
samsung,camclk-out = <1>;
591-
gpios = <&gpm1 6 GPIO_ACTIVE_HIGH>;
591+
gpios = <&gpm1 6 GPIO_ACTIVE_LOW>;
592592

593593
port {
594594
is_s5k6a3_ep: endpoint {

arch/arm/boot/dts/exynos4412-origen.dts

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
};
9696

9797
&ehci {
98-
samsung,vbus-gpio = <&gpx3 5 1>;
98+
samsung,vbus-gpio = <&gpx3 5 GPIO_ACTIVE_HIGH>;
9999
status = "okay";
100100
phys = <&exynos_usbphy 2>, <&exynos_usbphy 3>;
101101
phy-names = "hsic0", "hsic1";

arch/arm/boot/dts/imx6dl.dtsi

+3
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@
8484
ocram: sram@900000 {
8585
compatible = "mmio-sram";
8686
reg = <0x00900000 0x20000>;
87+
ranges = <0 0x00900000 0x20000>;
88+
#address-cells = <1>;
89+
#size-cells = <1>;
8790
clocks = <&clks IMX6QDL_CLK_OCRAM>;
8891
};
8992

arch/arm/boot/dts/imx6q.dtsi

+3
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@
163163
ocram: sram@900000 {
164164
compatible = "mmio-sram";
165165
reg = <0x00900000 0x40000>;
166+
ranges = <0 0x00900000 0x40000>;
167+
#address-cells = <1>;
168+
#size-cells = <1>;
166169
clocks = <&clks IMX6QDL_CLK_OCRAM>;
167170
};
168171

arch/arm/boot/dts/imx6qp.dtsi

+6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@
99
ocram2: sram@940000 {
1010
compatible = "mmio-sram";
1111
reg = <0x00940000 0x20000>;
12+
ranges = <0 0x00940000 0x20000>;
13+
#address-cells = <1>;
14+
#size-cells = <1>;
1215
clocks = <&clks IMX6QDL_CLK_OCRAM>;
1316
};
1417

1518
ocram3: sram@960000 {
1619
compatible = "mmio-sram";
1720
reg = <0x00960000 0x20000>;
21+
ranges = <0 0x00960000 0x20000>;
22+
#address-cells = <1>;
23+
#size-cells = <1>;
1824
clocks = <&clks IMX6QDL_CLK_OCRAM>;
1925
};
2026

arch/arm/boot/dts/imx6sl.dtsi

+3
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@
114114
ocram: sram@900000 {
115115
compatible = "mmio-sram";
116116
reg = <0x00900000 0x20000>;
117+
ranges = <0 0x00900000 0x20000>;
118+
#address-cells = <1>;
119+
#size-cells = <1>;
117120
clocks = <&clks IMX6SL_CLK_OCRAM>;
118121
};
119122

arch/arm/boot/dts/imx6sll.dtsi

+3
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@
115115
ocram: sram@900000 {
116116
compatible = "mmio-sram";
117117
reg = <0x00900000 0x20000>;
118+
ranges = <0 0x00900000 0x20000>;
119+
#address-cells = <1>;
120+
#size-cells = <1>;
118121
};
119122

120123
intc: interrupt-controller@a01000 {

arch/arm/boot/dts/imx6sx.dtsi

+6
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,18 @@
161161
ocram_s: sram@8f8000 {
162162
compatible = "mmio-sram";
163163
reg = <0x008f8000 0x4000>;
164+
ranges = <0 0x008f8000 0x4000>;
165+
#address-cells = <1>;
166+
#size-cells = <1>;
164167
clocks = <&clks IMX6SX_CLK_OCRAM_S>;
165168
};
166169

167170
ocram: sram@900000 {
168171
compatible = "mmio-sram";
169172
reg = <0x00900000 0x20000>;
173+
ranges = <0 0x00900000 0x20000>;
174+
#address-cells = <1>;
175+
#size-cells = <1>;
170176
clocks = <&clks IMX6SX_CLK_OCRAM>;
171177
};
172178

arch/arm/boot/dts/imx7d-sdb.dts

+1-6
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,7 @@
199199
interrupt-parent = <&gpio2>;
200200
interrupts = <29 0>;
201201
pendown-gpio = <&gpio2 29 GPIO_ACTIVE_HIGH>;
202-
ti,x-min = /bits/ 16 <0>;
203-
ti,x-max = /bits/ 16 <0>;
204-
ti,y-min = /bits/ 16 <0>;
205-
ti,y-max = /bits/ 16 <0>;
206-
ti,pressure-max = /bits/ 16 <0>;
207-
ti,x-plate-ohms = /bits/ 16 <400>;
202+
touchscreen-max-pressure = <255>;
208203
wakeup-source;
209204
};
210205
};

arch/arm/boot/dts/kirkwood-lsxl.dtsi

+5-11
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010

1111
ocp@f1000000 {
1212
pinctrl: pin-controller@10000 {
13+
/* Non-default UART pins */
14+
pmx_uart0: pmx-uart0 {
15+
marvell,pins = "mpp4", "mpp5";
16+
};
17+
1318
pmx_power_hdd: pmx-power-hdd {
1419
marvell,pins = "mpp10";
1520
marvell,function = "gpo";
@@ -213,22 +218,11 @@
213218
&mdio {
214219
status = "okay";
215220

216-
ethphy0: ethernet-phy@0 {
217-
reg = <0>;
218-
};
219-
220221
ethphy1: ethernet-phy@8 {
221222
reg = <8>;
222223
};
223224
};
224225

225-
&eth0 {
226-
status = "okay";
227-
ethernet0-port@0 {
228-
phy-handle = <&ethphy0>;
229-
};
230-
};
231-
232226
&eth1 {
233227
status = "okay";
234228
ethernet1-port@0 {

arch/arm/mm/dump.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ static void walk_pmd(struct pg_state *st, pud_t *pud, unsigned long start)
342342
addr = start + i * PMD_SIZE;
343343
domain = get_domain_name(pmd);
344344
if (pmd_none(*pmd) || pmd_large(*pmd) || !pmd_present(*pmd))
345-
note_page(st, addr, 3, pmd_val(*pmd), domain);
345+
note_page(st, addr, 4, pmd_val(*pmd), domain);
346346
else
347347
walk_pte(st, pmd, addr, domain);
348348

arch/arm/mm/mmu.c

+4
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,11 @@ static struct mem_type mem_types[] __ro_after_init = {
300300
.prot_pte = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY |
301301
L_PTE_XN | L_PTE_RDONLY,
302302
.prot_l1 = PMD_TYPE_TABLE,
303+
#ifdef CONFIG_ARM_LPAE
304+
.prot_sect = PMD_TYPE_SECT | L_PMD_SECT_RDONLY | PMD_SECT_AP2,
305+
#else
303306
.prot_sect = PMD_TYPE_SECT,
307+
#endif
304308
.domain = DOMAIN_KERNEL,
305309
},
306310
[MT_ROM] = {

arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi

+1
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,7 @@
899899
interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
900900
pinctrl-names = "default";
901901
pinctrl-0 = <&pinctrl_gauge>;
902+
power-supplies = <&bq25895>;
902903
maxim,over-heat-temp = <700>;
903904
maxim,over-volt = <4500>;
904905
maxim,rsns-microohm = <5000>;

arch/arm64/kernel/ftrace.c

+16-1
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,26 @@ int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec,
216216
unsigned long pc = rec->ip;
217217
u32 old = 0, new;
218218

219+
new = aarch64_insn_gen_nop();
220+
221+
/*
222+
* When using mcount, callsites in modules may have been initalized to
223+
* call an arbitrary module PLT (which redirects to the _mcount stub)
224+
* rather than the ftrace PLT we'll use at runtime (which redirects to
225+
* the ftrace trampoline). We can ignore the old PLT when initializing
226+
* the callsite.
227+
*
228+
* Note: 'mod' is only set at module load time.
229+
*/
230+
if (!IS_ENABLED(CONFIG_DYNAMIC_FTRACE_WITH_REGS) &&
231+
IS_ENABLED(CONFIG_ARM64_MODULE_PLTS) && mod) {
232+
return aarch64_insn_patch_text_nosync((void *)pc, new);
233+
}
234+
219235
if (!ftrace_find_callable_addr(rec, mod, &addr))
220236
return -EINVAL;
221237

222238
old = aarch64_insn_gen_branch_imm(pc, addr, AARCH64_INSN_BRANCH_LINK);
223-
new = aarch64_insn_gen_nop();
224239

225240
return ftrace_modify_code(pc, old, new, true);
226241
}

arch/arm64/kernel/topology.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static int validate_cpu_freq_invariance_counters(int cpu)
158158
}
159159

160160
/* Convert maximum frequency from KHz to Hz and validate */
161-
max_freq_hz = cpufreq_get_hw_max_freq(cpu) * 1000;
161+
max_freq_hz = cpufreq_get_hw_max_freq(cpu) * 1000ULL;
162162
if (unlikely(!max_freq_hz)) {
163163
pr_debug("CPU%d: invalid maximum frequency.\n", cpu);
164164
return -EINVAL;

arch/ia64/mm/numa.c

+1
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,6 @@ int memory_add_physaddr_to_nid(u64 addr)
106106
return 0;
107107
return nid;
108108
}
109+
EXPORT_SYMBOL(memory_add_physaddr_to_nid);
109110
#endif
110111
#endif

arch/mips/bcm47xx/prom.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static __init void prom_init_mem(void)
8686
pr_debug("Assume 128MB RAM\n");
8787
break;
8888
}
89-
if (!memcmp(prom_init, prom_init + mem, 32))
89+
if (!memcmp((void *)prom_init, (void *)prom_init + mem, 32))
9090
break;
9191
}
9292
lowmem = mem;
@@ -163,7 +163,7 @@ void __init bcm47xx_prom_highmem_init(void)
163163

164164
off = EXTVBASE + __pa(off);
165165
for (extmem = 128 << 20; extmem < 512 << 20; extmem <<= 1) {
166-
if (!memcmp(prom_init, (void *)(off + extmem), 16))
166+
if (!memcmp((void *)prom_init, (void *)(off + extmem), 16))
167167
break;
168168
}
169169
extmem -= lowmem;

0 commit comments

Comments
 (0)