Commit Graph

1166262 Commits

Author SHA1 Message Date
Greg Kroah-Hartman
56f28f2269 Revert "XHCI: Separate PORT and CAPs macros into dedicated file"
This reverts commit e0deb60b16 which is
commit c35ba0ac48355df1d11fcce85945f76c42d250ac upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: Ia59eb26941a34ef70e635dc012b3daaf58ac6d8c
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-16 10:10:40 +00:00
Greg Kroah-Hartman
fae9c0cd1a Revert "usb: dwc3: core: Fix system suspend on TI AM62 platforms"
This reverts commit 85ca88f931 which is
commit 705e3ce37bccdf2ed6f848356ff355f480d51a91 upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: I996ae30bcbeab414995da2ba4608d703122710c9
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-16 10:10:35 +00:00
Greg Kroah-Hartman
45a7ce8a2b ANDROID: GKI: fix up build break where timer_delete_sync() was used
We reverted the commit that renamed del_timer_sync() to
timer_delete_sync() a long while back, but that broke the build when
commit 5071beb59e ("tcp/dccp: Don't use timer_pending() in
reqsk_queue_unlink().") was applied.  So fix it up to use the old
function name instead, allowing the build to work properly.

Fixes: 5071beb59e ("tcp/dccp: Don't use timer_pending() in reqsk_queue_unlink().")
Change-Id: I88112c8da97506f5c0028119f318ae8f730105fa
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-15 17:56:59 +00:00
Greg Kroah-Hartman
a332a3d23d Merge 6.1.115 into android14-6.1-lts
Changes in 6.1.115
	bpf: Use raw_spinlock_t in ringbuf
	iio: accel: bma400: Fix uninitialized variable field_value in tap event handling.
	bpf: Make sure internal and UAPI bpf_redirect flags don't overlap
	bpf: devmap: provide rxq after redirect
	bpf: Fix memory leak in bpf_core_apply
	RDMA/bnxt_re: Fix incorrect AVID type in WQE structure
	RDMA/bnxt_re: Add a check for memory allocation
	x86/resctrl: Avoid overflow in MB settings in bw_validate()
	ARM: dts: bcm2837-rpi-cm3-io3: Fix HDMI hpd-gpio pin
	s390/pci: Handle PCI error codes other than 0x3a
	bpf: fix kfunc btf caching for modules
	iio: frequency: {admv4420,adrf6780}: format Kconfig entries
	iio: frequency: admv4420: fix missing select REMAP_SPI in Kconfig
	drm/vmwgfx: Handle possible ENOMEM in vmw_stdu_connector_atomic_check
	selftests/bpf: Fix cross-compiling urandom_read
	ALSA: hda/cs8409: Fix possible NULL dereference
	RDMA/cxgb4: Fix RDMA_CM_EVENT_UNREACHABLE error for iWARP
	RDMA/irdma: Fix misspelling of "accept*"
	RDMA/srpt: Make slab cache names unique
	ipv4: give an IPv4 dev to blackhole_netdev
	RDMA/bnxt_re: Return more meaningful error
	RDMA/bnxt_re: Fix a bug while setting up Level-2 PBL pages
	drm/msm/dpu: make sure phys resources are properly initialized
	drm/msm/dsi: fix 32-bit signed integer extension in pclk_rate calculation
	drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()
	drm/msm: Allocate memory for disp snapshot with kvzalloc()
	net: usb: usbnet: fix race in probe failure
	octeontx2-af: Fix potential integer overflows on integer shifts
	drm/amd/amdgpu: Fix double unlock in amdgpu_mes_add_ring
	macsec: don't increment counters for an unrelated SA
	netdevsim: use cond_resched() in nsim_dev_trap_report_work()
	net: ethernet: aeroflex: fix potential memory leak in greth_start_xmit_gbit()
	net/smc: Fix searching in list of known pnetids in smc_pnet_add_pnetid
	net: xilinx: axienet: fix potential memory leak in axienet_start_xmit()
	net: systemport: fix potential memory leak in bcm_sysport_xmit()
	irqchip/renesas-rzg2l: Align struct member names to tabs
	irqchip/renesas-rzg2l: Document structure members
	irqchip/renesas-rzg2l: Add support for suspend to RAM
	irqchip/renesas-rzg2l: Fix missing put_device
	drm/msm/dpu: Wire up DSC mask for active CTL configuration
	drm/msm/dpu: don't always program merge_3d block
	tcp/dccp: Don't use timer_pending() in reqsk_queue_unlink().
	genetlink: hold RCU in genlmsg_mcast()
	ravb: Remove setting of RX software timestamp
	net: ravb: Only advertise Rx/Tx timestamps if hardware supports it
	scsi: target: core: Fix null-ptr-deref in target_alloc_device()
	smb: client: fix OOBs when building SMB2_IOCTL request
	usb: typec: altmode should keep reference to parent
	s390: Initialize psw mask in perf_arch_fetch_caller_regs()
	Bluetooth: bnep: fix wild-memory-access in proto_unregister
	net/mlx5: Remove redundant cmdif revision check
	net/mlx5: split mlx5_cmd_init() to probe and reload routines
	net/mlx5: Fix command bitmask initialization
	net/mlx5: Unregister notifier on eswitch init failure
	riscv, bpf: Make BPF_CMPXCHG fully ordered
	bpf: Fix iter/task tid filtering
	arm64:uprobe fix the uprobe SWBP_INSN in big-endian
	arm64: probes: Fix uprobes for big-endian kernels
	xhci: dbgtty: remove kfifo_out() wrapper
	xhci: dbgtty: use kfifo from tty_port struct
	xhci: dbc: honor usb transfer size boundaries.
	usb: gadget: f_uac2: Replace snprintf() with the safer scnprintf() variant
	usb: gadget: f_uac2: fix non-newline-terminated function name
	usb: gadget: f_uac2: fix return value for UAC2_ATTRIBUTE_STRING store
	usb: gadget: Add function wakeup support
	XHCI: Separate PORT and CAPs macros into dedicated file
	usb: dwc3: core: Fix system suspend on TI AM62 platforms
	tty/serial: Make ->dcd_change()+uart_handle_dcd_change() status bool active
	serial: Make uart_handle_cts_change() status param bool active
	serial: imx: Update mctrl old_status on RTSD interrupt
	block, bfq: fix procress reference leakage for bfqq in merge chain
	exec: don't WARN for racy path_noexec check
	fs/ntfs3: Add more attributes checks in mi_enum_attr()
	drm/vboxvideo: Replace fake VLA at end of vbva_mouse_pointer_shape with real VLA
	ASoC: codecs: lpass-rx-macro: add missing CDC_RX_BCL_VBAT_RF_PROC2 to default regs values
	ASoC: fsl_sai: Enable 'FIFO continue on error' FCONT bit
	arm64: Force position-independent veneers
	udf: refactor udf_current_aext() to handle error
	udf: fix uninit-value use in udf_get_fileshortad
	ASoC: qcom: sm8250: add qrb4210-rb2-sndcard compatible string
	platform/x86: dell-sysman: add support for alienware products
	LoongArch: Add support to clone a time namespace
	LoongArch: Don't crash in stack_top() for tasks without vDSO
	jfs: Fix sanity check in dbMount
	tracing: Consider the NULL character when validating the event length
	xfrm: extract dst lookup parameters into a struct
	xfrm: respect ip protocols rules criteria when performing dst lookups
	net/sun3_82586: fix potential memory leak in sun3_82586_send_packet()
	be2net: fix potential memory leak in be_xmit()
	net: plip: fix break; causing plip to never transmit
	octeon_ep: Implement helper for iterating packets in Rx queue
	octeon_ep: Add SKB allocation failures handling in __octep_oq_process_rx()
	net: dsa: mv88e6xxx: Fix error when setting port policy on mv88e6393x
	netfilter: xtables: fix typo causing some targets not to load on IPv6
	net: wwan: fix global oob in wwan_rtnl_policy
	docs: net: reformat driver.rst from a list to sections
	net: provide macros for commonly copied lockless queue stop/wake code
	net/sched: adjust device watchdog timer to detect stopped queue at right time
	net: fix races in netdev_tx_sent_queue()/dev_watchdog()
	net: usb: usbnet: fix name regression
	net/sched: act_api: deny mismatched skip_sw/skip_hw flags for actions created by classifiers
	net: sched: fix use-after-free in taprio_change()
	r8169: avoid unsolicited interrupts
	posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()
	Bluetooth: SCO: Fix UAF on sco_sock_timeout
	Bluetooth: ISO: Fix UAF on iso_sock_timeout
	bpf,perf: Fix perf_event_detach_bpf_prog error handling
	ASoC: dt-bindings: davinci-mcasp: Fix interrupts property
	ASoC: dt-bindings: davinci-mcasp: Fix interrupt properties
	ALSA: firewire-lib: Avoid division by zero in apply_constraint_to_size()
	powercap: dtpm_devfreq: Fix error check against dev_pm_qos_add_request()
	ALSA: hda/realtek: Update default depop procedure
	cpufreq/cppc: Move and rename cppc_cpufreq_{perf_to_khz|khz_to_perf}()
	cpufreq: CPPC: fix perf_to_khz/khz_to_perf conversion exception
	btrfs: fix passing 0 to ERR_PTR in btrfs_search_dir_index_item()
	btrfs: zoned: fix zone unusable accounting for freed reserved extent
	drm/amd: Guard against bad data for ATIF ACPI method
	ACPI: resource: Add LG 16T90SP to irq1_level_low_skip_override[]
	ACPI: PRM: Find EFI_MEMORY_RUNTIME block for PRM handler and context
	ACPI: button: Add DMI quirk for Samsung Galaxy Book2 to fix initial lid detection issue
	nilfs2: fix kernel bug due to missing clearing of buffer delay flag
	openat2: explicitly return -E2BIG for (usize > PAGE_SIZE)
	KVM: nSVM: Ignore nCR3[4:0] when loading PDPTEs from memory
	KVM: arm64: Don't eagerly teardown the vgic on init error
	ALSA: hda/realtek: Add subwoofer quirk for Acer Predator G9-593
	LoongArch: Get correct cores_per_package for SMT systems
	xfrm: fix one more kernel-infoleak in algo dumping
	hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event
	drm/amd/display: Disable PSR-SU on Parade 08-01 TCON too
	selinux: improve error checking in sel_write_load()
	serial: protect uart_port_dtr_rts() in uart_shutdown() too
	net: phy: dp83822: Fix reset pin definitions
	ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
	platform/x86: dell-wmi: Ignore suspend notifications
	ACPI: PRM: Clean up guid type in struct prm_handler_info
	arm64/uprobes: change the uprobe_opcode_t typedef to fix the sparse warning
	xfrm: validate new SA's prefixlen using SA family when sel.family is unset
	Linux 6.1.115

Change-Id: I3348b13afe931340f904062b8a22d8d6c4a46d5c
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-15 16:07:11 +00:00
Greg Kroah-Hartman
db64cb409e Revert "irqchip/gic-v4: Don't allow a VMOVP on a dying VPE"
This reverts commit 64b12b061c which is
commit 1442ee0011983f0c5c4b92380e6853afb513841a upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: Ia5031b51ea15d52b9b2183de4fa1c9871559bb03
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-14 12:03:46 +00:00
Greg Kroah-Hartman
4d5ecb6e03 Merge 6.1.114 into android14-6.1-lts
Changes in 6.1.114
	btrfs: fix uninitialized pointer free in add_inode_ref()
	btrfs: fix uninitialized pointer free on read_alloc_one_name() error
	ksmbd: fix user-after-free from session log off
	ALSA: hda/conexant - Fix audio routing for HP EliteOne 1000 G2
	mptcp: pm: fix UaF read in mptcp_pm_nl_rm_addr_or_subflow
	udf: New directory iteration code
	udf: Convert udf_expand_dir_adinicb() to new directory iteration
	udf: Move udf_expand_dir_adinicb() to its callsite
	udf: Implement searching for directory entry using new iteration code
	udf: Provide function to mark entry as deleted using new directory iteration code
	udf: Convert udf_rename() to new directory iteration code
	udf: Convert udf_readdir() to new directory iteration
	udf: Convert udf_lookup() to use new directory iteration code
	udf: Convert udf_get_parent() to new directory iteration code
	udf: Convert empty_dir() to new directory iteration code
	udf: Convert udf_rmdir() to new directory iteration code
	udf: Convert udf_unlink() to new directory iteration code
	udf: Implement adding of dir entries using new iteration code
	udf: Convert udf_add_nondir() to new directory iteration
	udf: Convert udf_mkdir() to new directory iteration code
	udf: Convert udf_link() to new directory iteration code
	udf: Remove old directory iteration code
	udf: Handle error when expanding directory
	udf: Don't return bh from udf_expand_dir_adinicb()
	net: enetc: remove xdp_drops statistic from enetc_xdp_drop()
	net: enetc: add missing static descriptor and inline keyword
	posix-clock: Fix missing timespec64 check in pc_clock_settime()
	arm64: probes: Remove broken LDR (literal) uprobe support
	arm64: probes: Fix simulate_ldr*_literal()
	net: macb: Avoid 20s boot delay by skipping MDIO bus registration for fixed-link PHY
	irqchip/gic-v3-its: Fix VSYNC referencing an unmapped VPE on GIC v4.1
	fat: fix uninitialized variable
	mm/swapfile: skip HugeTLB pages for unuse_vma
	devlink: drop the filter argument from devlinks_xa_find_get
	devlink: bump the instance index directly when iterating
	maple_tree: correct tree corruption on spanning store
	drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE)
	iommu/vt-d: Fix incorrect pci_for_each_dma_alias() for non-PCI devices
	s390/sclp: Deactivate sclp after all its users
	s390/sclp_vt220: Convert newlines to CRLF instead of LFCR
	KVM: s390: gaccess: Check if guest address is in memslot
	KVM: s390: Change virtual to physical address access in diag 0x258 handler
	x86/cpufeatures: Define X86_FEATURE_AMD_IBPB_RET
	x86/cpufeatures: Add a IBPB_NO_RET BUG flag
	x86/entry: Have entry_ibpb() invalidate return predictions
	x86/bugs: Skip RSB fill at VMEXIT
	x86/bugs: Do not use UNTRAIN_RET with IBPB on entry
	blk-rq-qos: fix crash on rq_qos_wait vs. rq_qos_wake_function race
	io_uring/sqpoll: close race on waiting for sqring entries
	scsi: ufs: core: Set SDEV_OFFLINE when UFS is shut down
	drm/radeon: Fix encoder->possible_clones
	drm/vmwgfx: Handle surface check failure correctly
	drm/amdgpu/swsmu: Only force workload setup on init
	drm/amdgpu: prevent BO_HANDLES error from being overwritten
	iio: dac: ad5770r: add missing select REGMAP_SPI in Kconfig
	iio: dac: ltc1660: add missing select REGMAP_SPI in Kconfig
	iio: dac: stm32-dac-core: add missing select REGMAP_MMIO in Kconfig
	iio: adc: ti-ads8688: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
	iio: hid-sensors: Fix an error handling path in _hid_sensor_set_report_latency()
	iio: light: veml6030: fix ALS sensor resolution
	iio: light: veml6030: fix IIO device retrieval from embedded device
	iio: light: opt3001: add missing full-scale range value
	iio: amplifiers: ada4250: add missing select REGMAP_SPI in Kconfig
	iio: dac: ad5766: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
	iio: proximity: mb1232: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
	iio: dac: ad3552r: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
	iio: adc: ti-ads124s08: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
	Bluetooth: Call iso_exit() on module unload
	Bluetooth: Remove debugfs directory on module init failure
	Bluetooth: ISO: Fix multiple init when debugfs is disabled
	Bluetooth: btusb: Fix regression with fake CSR controllers 0a12:0001
	xhci: Fix incorrect stream context type macro
	xhci: Mitigate failed set dequeue pointer commands
	USB: serial: option: add support for Quectel EG916Q-GL
	USB: serial: option: add Telit FN920C04 MBIM compositions
	usb: dwc3: Wait for EndXfer completion before restoring GUSB2PHYCFG
	parport: Proper fix for array out-of-bounds access
	x86/resctrl: Annotate get_mem_config() functions as __init
	x86/apic: Always explicitly disarm TSC-deadline timer
	x86/entry_32: Do not clobber user EFLAGS.ZF
	x86/entry_32: Clear CPU buffers after register restore in NMI return
	tty: n_gsm: Fix use-after-free in gsm_cleanup_mux
	pinctrl: ocelot: fix system hang on level based interrupts
	pinctrl: apple: check devm_kasprintf() returned value
	irqchip/gic-v4: Don't allow a VMOVP on a dying VPE
	irqchip/sifive-plic: Unmask interrupt in plic_irq_enable()
	tcp: fix mptcp DSS corruption due to large pmtu xmit
	mptcp: prevent MPC handshake on port-based signal endpoints
	nilfs2: propagate directory read errors from nilfs_find_entry()
	powerpc/64: Add big-endian ELFv2 flavour to crypto VMX asm generation
	ALSA: hda/conexant - Use cached pin control for Node 0x1d on HP EliteOne 1000 G2
	udf: Allocate name buffer in directory iterator on heap
	udf: Avoid directory type conversion failure due to ENOMEM
	Linux 6.1.114

Change-Id: I02423f0d3a5feb145be5ce9aacc44ea4675e573b
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-14 10:32:51 +00:00
Greg Kroah-Hartman
edae6e6e3d Merge 6.1.113 into android14-6.1-lts
Changes in 6.1.113
	EDAC/synopsys: Fix ECC status and IRQ control race condition
	EDAC/synopsys: Fix error injection on Zynq UltraScale+
	wifi: rtw88: always wait for both firmware loading attempts
	crypto: xor - fix template benchmarking
	ACPI: PMIC: Remove unneeded check in tps68470_pmic_opregion_probe()
	wifi: ath9k: fix parameter check in ath9k_init_debug()
	wifi: ath9k: Remove error checks when creating debugfs entries
	net: stmmac: dwmac-loongson: Init ref and PTP clocks rate
	wifi: rtw88: remove CPT execution branch never used
	RISC-V: KVM: Fix sbiret init before forwarding to userspace
	fs/namespace: fnic: Switch to use %ptTd
	mount: handle OOM on mnt_warn_timestamp_expiry
	kselftest/arm64: Don't pass headers to the compiler as source
	kselftest/arm64: Verify simultaneous SSVE and ZA context generation
	kselftest/arm64: Fix enumeration of systems without 128 bit SME for SSVE+ZA
	kselftest/arm64: signal: fix/refactor SVE vector length enumeration
	drivers/perf: Fix ali_drw_pmu driver interrupt status clearing
	wifi: mac80211: don't use rate mask for offchannel TX either
	wifi: iwlwifi: mvm: increase the time between ranging measurements
	ACPICA: Implement ACPI_WARNING_ONCE and ACPI_ERROR_ONCE
	ACPICA: executer/exsystem: Don't nag user about every Stall() violating the spec
	padata: Honor the caller's alignment in case of chunk_size 0
	drivers/perf: hisi_pcie: Record hardware counts correctly
	kselftest/arm64: Actually test SME vector length changes via sigreturn
	can: j1939: use correct function name in comment
	ACPI: CPPC: Fix MASK_VAL() usage
	netfilter: nf_tables: elements with timeout below CONFIG_HZ never expire
	netfilter: nf_tables: reject element expiration with no timeout
	netfilter: nf_tables: reject expiration higher than timeout
	netfilter: nf_tables: remove annotation to access set timeout while holding lock
	perf/arm-cmn: Rework DTC counters (again)
	perf/arm-cmn: Improve debugfs pretty-printing for large configs
	perf/arm-cmn: Refactor node ID handling. Again.
	perf/arm-cmn: Ensure dtm_idx is big enough
	cpufreq: ti-cpufreq: Introduce quirks to handle syscon fails appropriately
	x86/sgx: Fix deadlock in SGX NUMA node search
	crypto: hisilicon/hpre - enable sva error interrupt event
	crypto: hisilicon/hpre - mask cluster timeout error
	crypto: hisilicon/qm - fix coding style issues
	crypto: hisilicon/qm - reset device before enabling it
	crypto: hisilicon/qm - inject error before stopping queue
	wifi: cfg80211: fix UBSAN noise in cfg80211_wext_siwscan()
	wifi: mt76: mt7915: fix rx filter setting for bfee functionality
	wifi: cfg80211: fix two more possible UBSAN-detected off-by-one errors
	wifi: mac80211: use two-phase skb reclamation in ieee80211_do_stop()
	wifi: wilc1000: fix potential RCU dereference issue in wilc_parse_join_bss_param
	Bluetooth: hci_core: Fix sending MGMT_EV_CONNECT_FAILED
	Bluetooth: hci_sync: Ignore errors from HCI_OP_REMOTE_NAME_REQ_CANCEL
	sock_map: Add a cond_resched() in sock_hash_free()
	can: bcm: Clear bo->bcm_proc_read after remove_proc_entry().
	can: m_can: Remove repeated check for is_peripheral
	can: m_can: enable NAPI before enabling interrupts
	can: m_can: m_can_close(): stop clocks after device has been shut down
	Bluetooth: btusb: Fix not handling ZPL/short-transfer
	bareudp: Pull inner IP header in bareudp_udp_encap_recv().
	bareudp: Pull inner IP header on xmit.
	net: enetc: Use IRQF_NO_AUTOEN flag in request_irq()
	r8169: disable ALDPS per default for RTL8125
	net: ipv6: rpl_iptunnel: Fix memory leak in rpl_input
	net: tipc: avoid possible garbage value
	ipv6: avoid possible NULL deref in rt6_uncached_list_flush_dev()
	nbd: fix race between timeout and normal completion
	block, bfq: fix possible UAF for bfqq->bic with merge chain
	block, bfq: choose the last bfqq from merge chain in bfq_setup_cooperator()
	block, bfq: don't break merge chain in bfq_split_bfqq()
	block: print symbolic error name instead of error code
	block: fix potential invalid pointer dereference in blk_add_partition
	spi: ppc4xx: handle irq_of_parse_and_map() errors
	arm64: dts: exynos: exynos7885-jackpotlte: Correct RAM amount to 4GB
	firmware: arm_scmi: Fix double free in OPTEE transport
	spi: ppc4xx: Avoid returning 0 when failed to parse and map IRQ
	regulator: Return actual error in of_regulator_bulk_get_all()
	arm64: dts: renesas: r9a07g043u: Correct GICD and GICR sizes
	arm64: dts: renesas: r9a07g054: Correct GICD and GICR sizes
	arm64: dts: renesas: r9a07g044: Correct GICD and GICR sizes
	ARM: dts: microchip: sam9x60: Fix rtc/rtt clocks
	arm64: dts: ti: k3-j721e-sk: Fix reversed C6x carveout locations
	ARM: dts: microchip: sama7g5: Fix RTT clock
	ARM: dts: imx7d-zii-rmu2: fix Ethernet PHY pinctrl property
	ARM: versatile: fix OF node leak in CPUs prepare
	reset: berlin: fix OF node leak in probe() error path
	reset: k210: fix OF node leak in probe() error path
	clocksource/drivers/qcom: Add missing iounmap() on errors in msm_dt_timer_init()
	ASoC: rt5682s: Return devm_of_clk_add_hw_provider to transfer the error
	ALSA: hda: cs35l41: fix module autoloading
	m68k: Fix kernel_clone_args.flags in m68k_clone()
	hwmon: (max16065) Fix overflows seen when writing limits
	i2c: Add i2c_get_match_data()
	hwmon: (max16065) Remove use of i2c_match_id()
	hwmon: (max16065) Fix alarm attributes
	mtd: slram: insert break after errors in parsing the map
	hwmon: (ntc_thermistor) fix module autoloading
	power: supply: axp20x_battery: Remove design from min and max voltage
	power: supply: max17042_battery: Fix SOC threshold calc w/ no current sense
	fbdev: hpfb: Fix an error handling path in hpfb_dio_probe()
	iommu/amd: Do not set the D bit on AMD v2 table entries
	mtd: powernv: Add check devm_kasprintf() returned value
	rcu/nocb: Fix RT throttling hrtimer armed from offline CPU
	mtd: rawnand: mtk: Use for_each_child_of_node_scoped()
	mtd: rawnand: mtk: Factorize out the logic cleaning mtk chips
	mtd: rawnand: mtk: Fix init error path
	pmdomain: core: Harden inter-column space in debug summary
	drm/stm: Fix an error handling path in stm_drm_platform_probe()
	drm/stm: ltdc: check memory returned by devm_kzalloc()
	drm/amd/display: Add null check for set_output_gamma in dcn30_set_output_transfer_func
	drm/amdgpu: Replace one-element array with flexible-array member
	drm/amdgpu: properly handle vbios fake edid sizing
	drm/radeon: Replace one-element array with flexible-array member
	drm/radeon: properly handle vbios fake edid sizing
	scsi: smartpqi: revert propagate-the-multipath-failure-to-SML-quickly
	scsi: NCR5380: Check for phase match during PDMA fixup
	drm/amd/amdgpu: Properly tune the size of struct
	drm/rockchip: vop: Allow 4096px width scaling
	drm/rockchip: dw_hdmi: Fix reading EDID when using a forced mode
	drm/radeon/evergreen_cs: fix int overflow errors in cs track offsets
	drm/bridge: lontium-lt8912b: Validate mode in drm_bridge_funcs::mode_valid()
	drm/vc4: hdmi: Handle error case of pm_runtime_resume_and_get
	scsi: elx: libefc: Fix potential use after free in efc_nport_vport_del()
	jfs: fix out-of-bounds in dbNextAG() and diAlloc()
	drm/mediatek: Fix missing configuration flags in mtk_crtc_ddp_config()
	drm/mediatek: Use spin_lock_irqsave() for CRTC event lock
	powerpc/8xx: Fix initial memory mapping
	powerpc/8xx: Fix kernel vs user address comparison
	drm/msm: Fix incorrect file name output in adreno_request_fw()
	drm/msm/a5xx: disable preemption in submits by default
	drm/msm/a5xx: properly clear preemption records on resume
	drm/msm/a5xx: fix races in preemption evaluation stage
	drm/msm/a5xx: workaround early ring-buffer emptiness check
	ipmi: docs: don't advertise deprecated sysfs entries
	drm/msm: fix %s null argument error
	drivers:drm:exynos_drm_gsc:Fix wrong assignment in gsc_bind()
	xen: use correct end address of kernel for conflict checking
	HID: wacom: Support sequence numbers smaller than 16-bit
	HID: wacom: Do not warn about dropped packets for first packet
	xen/swiotlb: add alignment check for dma buffers
	xen/swiotlb: fix allocated size
	tpm: Clean up TPM space after command failure
	selftests/bpf: Add selftest deny_namespace to s390x deny list
	selftests/bpf: Add tests for _opts variants of bpf_*_get_fd_by_id()
	selftests/bpf: Workaround strict bpf_lsm return value check.
	selftests/bpf: Use pid_t consistently in test_progs.c
	selftests/bpf: Fix compile error from rlim_t in sk_storage_map.c
	selftests/bpf: Fix error compiling bpf_iter_setsockopt.c with musl libc
	selftests/bpf: Fix missing ARRAY_SIZE() definition in bench.c
	selftests/bpf: Fix missing UINT_MAX definitions in benchmarks
	selftests/bpf: Fix missing BUILD_BUG_ON() declaration
	selftests/bpf: Replace CHECK with ASSERT_* in ns_current_pid_tgid test
	selftests/bpf: Refactor out some functions in ns_current_pid_tgid test
	selftests/bpf: Add a cgroup prog bpf_get_ns_current_pid_tgid() test
	selftests/bpf: Fix include of <sys/fcntl.h>
	selftests/bpf: Fix compiling kfree_skb.c with musl-libc
	selftests/bpf: Fix compiling flow_dissector.c with musl-libc
	selftests/bpf: Fix compiling tcp_rtt.c with musl-libc
	selftests/bpf: Fix compiling core_reloc.c with musl-libc
	selftests/bpf: Fix errors compiling cg_storage_multi.h with musl libc
	selftests/bpf: Fix error compiling test_lru_map.c
	selftests/bpf: Fix C++ compile error from missing _Bool type
	selftests/bpf: Replace extract_build_id with read_build_id
	selftests/bpf: Move test_progs helpers to testing_helpers object
	selftests/bpf: Fix compile if backtrace support missing in libc
	bpf: correctly handle malformed BPF_CORE_TYPE_ID_LOCAL relos
	xz: cleanup CRC32 edits from 2018
	kthread: fix task state in kthread worker if being frozen
	ext4: clear EXT4_GROUP_INFO_WAS_TRIMMED_BIT even mount with discard
	smackfs: Use rcu_assign_pointer() to ensure safe assignment in smk_set_cipso
	ext4: avoid buffer_head leak in ext4_mark_inode_used()
	ext4: avoid potential buffer_head leak in __ext4_new_inode()
	ext4: avoid negative min_clusters in find_group_orlov()
	ext4: return error on ext4_find_inline_entry
	ext4: avoid OOB when system.data xattr changes underneath the filesystem
	nilfs2: fix potential null-ptr-deref in nilfs_btree_insert()
	nilfs2: determine empty node blocks as corrupted
	nilfs2: fix potential oob read in nilfs_btree_check_delete()
	bpf: Fix bpf_strtol and bpf_strtoul helpers for 32bit
	bpf: Improve check_raw_mode_ok test for MEM_UNINIT-tagged types
	bpf: Zero former ARG_PTR_TO_{LONG,INT} args in case of error
	perf mem: Free the allocated sort string, fixing a leak
	perf inject: Fix leader sampling inserting additional samples
	perf sched timehist: Fix missing free of session in perf_sched__timehist()
	perf stat: Display iostat headers correctly
	perf sched timehist: Fixed timestamp error when unable to confirm event sched_in time
	perf time-utils: Fix 32-bit nsec parsing
	clk: imx: composite-8m: Less function calls in __imx8m_clk_hw_composite() after error detection
	clk: imx: composite-8m: Enable gate clk with mcore_booted
	clk: imx: composite-7ulp: Check the PCC present bit
	clk: imx: fracn-gppll: support integer pll
	clk: imx: fracn-gppll: fix fractional part of PLL getting lost
	clk: imx: imx8mp: fix clock tree update of TF-A managed clocks
	clk: imx: imx8qxp: Register dc0_bypass0_clk before disp clk
	clk: imx: imx8qxp: Parent should be initialized earlier than the clock
	remoteproc: imx_rproc: Correct ddr alias for i.MX8M
	remoteproc: imx_rproc: Initialize workqueue earlier
	clk: rockchip: Set parent rate for DCLK_VOP clock on RK3228
	Input: ilitek_ts_i2c - avoid wrong input subsystem sync
	Input: ilitek_ts_i2c - add report id message validation
	drivers: media: dvb-frontends/rtl2832: fix an out-of-bounds write error
	drivers: media: dvb-frontends/rtl2830: fix an out-of-bounds write error
	PCI/PM: Increase wait time after resume
	PCI/PM: Drop pci_bridge_wait_for_secondary_bus() timeout parameter
	PCI: Wait for Link before restoring Downstream Buses
	PCI: keystone: Fix if-statement expression in ks_pcie_quirk()
	clk: qcom: dispcc-sm8250: use special function for Lucid 5LPE PLL
	nvdimm: Fix devs leaks in scan_labels()
	PCI: xilinx-nwl: Fix register misspelling
	PCI: xilinx-nwl: Clean up clock on probe failure/removal
	RDMA/iwcm: Fix WARNING:at_kernel/workqueue.c:#check_flush_dependency
	pinctrl: single: fix missing error code in pcs_probe()
	RDMA/rtrs: Reset hb_missed_cnt after receiving other traffic from peer
	RDMA/rtrs-clt: Reset cid to con_num - 1 to stay in bounds
	clk: ti: dra7-atl: Fix leak of of_nodes
	nfsd: remove unneeded EEXIST error check in nfsd_do_file_acquire
	nfsd: fix refcount leak when file is unhashed after being found
	pinctrl: mvebu: Use devm_platform_get_and_ioremap_resource()
	pinctrl: mvebu: Fix devinit_dove_pinctrl_probe function
	IB/core: Fix ib_cache_setup_one error flow cleanup
	PCI: kirin: Fix buffer overflow in kirin_pcie_parse_port()
	RDMA/erdma: Return QP state in erdma_query_qp
	watchdog: imx_sc_wdt: Don't disable WDT in suspend
	RDMA/hns: Don't modify rq next block addr in HIP09 QPC
	RDMA/hns: Fix Use-After-Free of rsv_qp on HIP08
	RDMA/hns: Fix the overflow risk of hem_list_calc_ba_range()
	RDMA/hns: Fix spin_unlock_irqrestore() called with IRQs enabled
	RDMA/hns: Fix VF triggering PF reset in abnormal interrupt handler
	RDMA/hns: Fix 1bit-ECC recovery address in non-4K OS
	RDMA/hns: Optimize hem allocation performance
	riscv: Fix fp alignment bug in perf_callchain_user()
	RDMA/cxgb4: Added NULL check for lookup_atid
	RDMA/irdma: fix error message in irdma_modify_qp_roce()
	ntb: intel: Fix the NULL vs IS_ERR() bug for debugfs_create_dir()
	ntb_perf: Fix printk format
	ntb: Force physically contiguous allocation of rx ring buffers
	nfsd: call cache_put if xdr_reserve_space returns NULL
	nfsd: return -EINVAL when namelen is 0
	f2fs: fix to update i_ctime in __f2fs_setxattr()
	f2fs: remove unneeded check condition in __f2fs_setxattr()
	f2fs: reduce expensive checkpoint trigger frequency
	f2fs: factor the read/write tracing logic into a helper
	f2fs: fix to avoid racing in between read and OPU dio write
	f2fs: fix to wait page writeback before setting gcing flag
	f2fs: atomic: fix to truncate pagecache before on-disk metadata truncation
	f2fs: clean up w/ dotdot_name
	f2fs: get rid of online repaire on corrupted directory
	spi: atmel-quadspi: Undo runtime PM changes at driver exit time
	spi: spi-fsl-lpspi: Undo runtime PM changes at driver exit time
	lib/sbitmap: define swap_lock as raw_spinlock_t
	nvme-multipath: system fails to create generic nvme device
	iio: adc: ad7606: fix oversampling gpio array
	iio: adc: ad7606: fix standby gpio state to match the documentation
	ABI: testing: fix admv8818 attr description
	iio: chemical: bme680: Fix read/write ops to device by adding mutexes
	iio: magnetometer: ak8975: Convert enum->pointer for data in the match tables
	iio: magnetometer: ak8975: drop incorrect AK09116 compatible
	dt-bindings: iio: asahi-kasei,ak8975: drop incorrect AK09116 compatible
	coresight: tmc: sg: Do not leak sg_table
	cxl/pci: Break out range register decoding from cxl_hdm_decode_init()
	cxl/pci: Fix to record only non-zero ranges
	vdpa: Add eventfd for the vdpa callback
	vhost_vdpa: assign irq bypass producer token correctly
	ep93xx: clock: Fix off by one in ep93xx_div_recalc_rate()
	Revert "dm: requeue IO if mapping table not yet available"
	net: xilinx: axienet: Schedule NAPI in two steps
	net: xilinx: axienet: Fix packet counting
	netfilter: nf_reject_ipv6: fix nf_reject_ip6_tcphdr_put()
	net: seeq: Fix use after free vulnerability in ether3 Driver Due to Race Condition
	net: ipv6: select DST_CACHE from IPV6_RPL_LWTUNNEL
	tcp: check skb is non-NULL in tcp_rto_delta_us()
	net: qrtr: Update packets cloning when broadcasting
	bonding: Fix unnecessary warnings and logs from bond_xdp_get_xmit_slave()
	net: stmmac: set PP_FLAG_DMA_SYNC_DEV only if XDP is enabled
	netfilter: nf_tables: Keep deleted flowtable hooks until after RCU
	netfilter: ctnetlink: compile ctnetlink_label_size with CONFIG_NF_CONNTRACK_EVENTS
	io_uring/sqpoll: do not allow pinning outside of cpuset
	drm/amd/display: Fix Synaptics Cascaded Panamera DSC Determination
	io_uring/io-wq: do not allow pinning outside of cpuset
	io_uring/io-wq: inherit cpuset of cgroup in io worker
	vfio/pci: fix potential memory leak in vfio_intx_enable()
	selinux,smack: don't bypass permissions check in inode_setsecctx hook
	drm/vmwgfx: Prevent unmapping active read buffers
	io_uring/sqpoll: retain test for whether the CPU is valid
	io_uring/sqpoll: do not put cpumask on stack
	Remove *.orig pattern from .gitignore
	PCI: imx6: Fix missing call to phy_power_off() in error handling
	PCI: xilinx-nwl: Fix off-by-one in INTx IRQ handler
	ASoC: rt5682: Return devm_of_clk_add_hw_provider to transfer the error
	soc: versatile: integrator: fix OF node leak in probe() error path
	Revert "media: tuners: fix error return code of hybrid_tuner_request_state()"
	Input: adp5588-keys - fix check on return code
	Input: i8042 - add TUXEDO Stellaris 16 Gen5 AMD to i8042 quirk table
	Input: i8042 - add TUXEDO Stellaris 15 Slim Gen6 AMD to i8042 quirk table
	Input: i8042 - add another board name for TUXEDO Stellaris Gen5 AMD line
	KVM: x86: Enforce x2APIC's must-be-zero reserved ICR bits
	KVM: x86: Move x2APIC ICR helper above kvm_apic_write_nodecode()
	drm/amd/display: Skip Recompute DSC Params if no Stream on Link
	drm/amd/display: Round calculated vtotal
	drm/amd/display: Validate backlight caps are sane
	KEYS: prevent NULL pointer dereference in find_asymmetric_key()
	fs: Create a generic is_dot_dotdot() utility
	ksmbd: make __dir_empty() compatible with POSIX
	ksmbd: allow write with FILE_APPEND_DATA
	ksmbd: handle caseless file creation
	scsi: sd: Fix off-by-one error in sd_read_block_characteristics()
	scsi: mac_scsi: Revise printk(KERN_DEBUG ...) messages
	scsi: mac_scsi: Refactor polling loop
	scsi: mac_scsi: Disallow bus errors during PDMA send
	usbnet: fix cyclical race on disconnect with work queue
	arm64: dts: mediatek: mt8195-cherry: Mark USB 3.0 on xhci1 as disabled
	USB: appledisplay: close race between probe and completion handler
	USB: misc: cypress_cy7c63: check for short transfer
	USB: class: CDC-ACM: fix race between get_serial and set_serial
	usb: cdnsp: Fix incorrect usb_request status
	usb: dwc2: drd: fix clock gating on USB role switch
	bus: integrator-lm: fix OF node leak in probe()
	bus: mhi: host: pci_generic: Fix the name for the Telit FE990A
	firmware_loader: Block path traversal
	tty: rp2: Fix reset with non forgiving PCIe host bridges
	xhci: Set quirky xHC PCI hosts to D3 _after_ stopping and freeing them.
	crypto: ccp - Properly unregister /dev/sev on sev PLATFORM_STATUS failure
	drbd: Fix atomicity violation in drbd_uuid_set_bm()
	drbd: Add NULL check for net_conf to prevent dereference in state validation
	ACPI: sysfs: validate return type of _STR method
	ACPI: resource: Add another DMI match for the TongFang GMxXGxx
	efistub/tpm: Use ACPI reclaim memory for event log to avoid corruption
	perf/x86/intel/pt: Fix sampling synchronization
	wifi: rtw88: 8822c: Fix reported RX band width
	wifi: mt76: mt7615: check devm_kasprintf() returned value
	debugobjects: Fix conditions in fill_pool()
	f2fs: fix several potential integer overflows in file offsets
	f2fs: prevent possible int overflow in dir_block_index()
	f2fs: avoid potential int overflow in sanity_check_area_boundary()
	f2fs: fix to check atomic_file in f2fs ioctl interfaces
	hwrng: mtk - Use devm_pm_runtime_enable
	hwrng: bcm2835 - Add missing clk_disable_unprepare in bcm2835_rng_init
	hwrng: cctrng - Add missing clk_disable_unprepare in cctrng_resume
	arm64: dts: rockchip: Raise Pinebook Pro's panel backlight PWM frequency
	arm64: dts: rockchip: Correct the Pinebook Pro battery design capacity
	vfs: fix race between evice_inodes() and find_inode()&iput()
	fs: Fix file_set_fowner LSM hook inconsistencies
	nfs: fix memory leak in error path of nfs4_do_reclaim
	EDAC/igen6: Fix conversion of system address to physical memory address
	padata: use integer wrap around to prevent deadlock on seq_nr overflow
	soc: versatile: realview: fix memory leak during device remove
	soc: versatile: realview: fix soc_dev leak during device remove
	powerpc/64: Option to build big-endian with ELFv2 ABI
	powerpc/64: Add support to build with prefixed instructions
	powerpc/atomic: Use YZ constraints for DS-form instructions
	usb: yurex: Replace snprintf() with the safer scnprintf() variant
	USB: misc: yurex: fix race between read and write
	xhci: fix event ring segment table related masks and variables in header
	xhci: remove xhci_test_trb_in_td_math early development check
	xhci: Refactor interrupter code for initial multi interrupter support.
	xhci: Preserve RsvdP bits in ERSTBA register correctly
	xhci: Add a quirk for writing ERST in high-low order
	usb: xhci: fix loss of data on Cadence xHC
	pps: remove usage of the deprecated ida_simple_xx() API
	pps: add an error check in parport_attach
	x86/idtentry: Incorporate definitions/declarations of the FRED entries
	x86/entry: Remove unwanted instrumentation in common_interrupt()
	mm/filemap: return early if failed to allocate memory for split
	lib/xarray: introduce a new helper xas_get_order
	mm/filemap: optimize filemap folio adding
	icmp: Add counters for rate limits
	icmp: change the order of rate limits
	bpf: lsm: Set bpf_lsm_blob_sizes.lbs_task to 0
	lockdep: fix deadlock issue between lockdep and rcu
	mm: only enforce minimum stack gap size if it's sensible
	module: Fix KCOV-ignored file name
	mm/damon/vaddr: protect vma traversal in __damon_va_thre_regions() with rcu read lock
	i2c: aspeed: Update the stop sw state when the bus recovery occurs
	i2c: isch: Add missed 'else'
	usb: yurex: Fix inconsistent locking bug in yurex_read()
	perf/arm-cmn: Fail DTC counter allocation correctly
	iio: magnetometer: ak8975: Fix 'Unexpected device' error
	powerpc: Allow CONFIG_PPC64_BIG_ENDIAN_ELF_ABI_V2 with ld.lld 15+
	PCI/PM: Mark devices disconnected if upstream PCIe link is down on resume
	x86/tdx: Fix "in-kernel MMIO" check
	wifi: mt76: do not run mt76_unregister_device() on unregistered hw
	static_call: Handle module init failure correctly in static_call_del_module()
	static_call: Replace pointless WARN_ON() in static_call_module_notify()
	jump_label: Simplify and clarify static_key_fast_inc_cpus_locked()
	jump_label: Fix static_key_slow_dec() yet again
	scsi: pm8001: Do not overwrite PCI queue mapping
	mailbox: rockchip: fix a typo in module autoloading
	mailbox: bcm2835: Fix timeout during suspend mode
	ceph: remove the incorrect Fw reference check when dirtying pages
	ieee802154: Fix build error
	net: sparx5: Fix invalid timestamps
	net/mlx5: Fix error path in multi-packet WQE transmit
	net/mlx5: Added cond_resched() to crdump collection
	net/mlx5e: Fix NULL deref in mlx5e_tir_builder_alloc()
	netfilter: uapi: NFTA_FLOWTABLE_HOOK is NLA_NESTED
	net: ieee802154: mcr20a: Use IRQF_NO_AUTOEN flag in request_irq()
	net: wwan: qcom_bam_dmux: Fix missing pm_runtime_disable()
	selftests: netfilter: Fix nft_audit.sh for newer nft binaries
	netfilter: nf_tables: prevent nf_skb_duplicated corruption
	Bluetooth: btmrvl: Use IRQF_NO_AUTOEN flag in request_irq()
	net: ethernet: lantiq_etop: fix memory disclosure
	net: avoid potential underflow in qdisc_pkt_len_init() with UFO
	net: add more sanity checks to qdisc_pkt_len_init()
	net: stmmac: dwmac4: extend timeout for VLAN Tag register busy bit check
	ipv4: ip_gre: Fix drops of small packets in ipgre_xmit
	ppp: do not assume bh is held in ppp_channel_bridge_input()
	fsdax,xfs: port unshare to fsdax
	iomap: constrain the file range passed to iomap_file_unshare
	sctp: set sk_state back to CLOSED if autobind fails in sctp_listen_start
	i2c: xiic: improve error message when transfer fails to start
	i2c: xiic: Try re-initialization on bus busy timeout
	loop: don't set QUEUE_FLAG_NOMERGES
	Bluetooth: hci_sock: Fix not validating setsockopt user input
	media: usbtv: Remove useless locks in usbtv_video_free()
	ASoC: atmel: mchp-pdmc: Skip ALSA restoration if substream runtime is uninitialized
	ALSA: mixer_oss: Remove some incorrect kfree_const() usages
	ALSA: hda/realtek: Fix the push button function for the ALC257
	ALSA: hda/generic: Unconditionally prefer preferred_dacs pairs
	ASoC: imx-card: Set card.owner to avoid a warning calltrace if SND=m
	ALSA: hda/conexant: Fix conflicting quirk for System76 Pangolin
	f2fs: Require FMODE_WRITE for atomic write ioctls
	wifi: ath9k: fix possible integer overflow in ath9k_get_et_stats()
	wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit
	ice: Adjust over allocation of memory in ice_sched_add_root_node() and ice_sched_add_node()
	wifi: iwlwifi: mvm: Fix a race in scan abort flow
	wifi: cfg80211: Set correct chandef when starting CAC
	net/xen-netback: prevent UAF in xenvif_flush_hash()
	net: hisilicon: hip04: fix OF node leak in probe()
	net: hisilicon: hns_dsaf_mac: fix OF node leak in hns_mac_get_info()
	net: hisilicon: hns_mdio: fix OF node leak in probe()
	ACPI: PAD: fix crash in exit_round_robin()
	ACPICA: Fix memory leak if acpi_ps_get_next_namepath() fails
	ACPICA: Fix memory leak if acpi_ps_get_next_field() fails
	wifi: mt76: mt7915: disable tx worker during tx BA session enable/disable
	net: sched: consistently use rcu_replace_pointer() in taprio_change()
	Bluetooth: btusb: Add Realtek RTL8852C support ID 0x0489:0xe122
	ACPI: video: Add force_vendor quirk for Panasonic Toughbook CF-18
	blk_iocost: fix more out of bound shifts
	nvme-pci: qdepth 1 quirk
	wifi: ath11k: fix array out-of-bound access in SoC stats
	wifi: rtw88: select WANT_DEV_COREDUMP
	ACPI: EC: Do not release locks during operation region accesses
	ACPICA: check null return of ACPI_ALLOCATE_ZEROED() in acpi_db_convert_to_package()
	tipc: guard against string buffer overrun
	net: mvpp2: Increase size of queue_name buffer
	bnxt_en: Extend maximum length of version string by 1 byte
	ipv4: Check !in_dev earlier for ioctl(SIOCSIFADDR).
	wifi: rtw89: correct base HT rate mask for firmware
	ipv4: Mask upper DSCP bits and ECN bits in NETLINK_FIB_LOOKUP family
	net: atlantic: Avoid warning about potential string truncation
	crypto: simd - Do not call crypto_alloc_tfm during registration
	tcp: avoid reusing FIN_WAIT2 when trying to find port in connect() process
	wifi: mac80211: fix RCU list iterations
	ACPICA: iasl: handle empty connection_node
	proc: add config & param to block forcing mem writes
	wifi: mt76: mt7915: hold dev->mt76.mutex while disabling tx worker
	wifi: mwifiex: Fix memcpy() field-spanning write warning in mwifiex_cmd_802_11_scan_ext()
	nfp: Use IRQF_NO_AUTOEN flag in request_irq()
	ALSA: usb-audio: Add input value sanity checks for standard types
	x86/ioapic: Handle allocation failures gracefully
	ALSA: usb-audio: Define macros for quirk table entries
	ALSA: usb-audio: Replace complex quirk lines with macros
	ALSA: usb-audio: Add logitech Audio profile quirk
	ASoC: codecs: wsa883x: Handle reading version failure
	tools/x86/kcpuid: Protect against faulty "max subleaf" values
	x86/kexec: Add EFI config table identity mapping for kexec kernel
	ALSA: asihpi: Fix potential OOB array access
	ALSA: hdsp: Break infinite MIDI input flush loop
	selftests/nolibc: avoid passing NULL to printf("%s")
	x86/syscall: Avoid memcpy() for ia32 syscall_get_arguments()
	fbdev: pxafb: Fix possible use after free in pxafb_task()
	rcuscale: Provide clear error when async specified without primitives
	iommu/arm-smmu-qcom: hide last LPASS SMMU context bank from linux
	power: reset: brcmstb: Do not go into infinite loop if reset fails
	iommu/vt-d: Always reserve a domain ID for identity setup
	iommu/vt-d: Fix potential lockup if qi_submit_sync called with 0 count
	drm/stm: Avoid use-after-free issues with crtc and plane
	drm/amdgpu: disallow multiple BO_HANDLES chunks in one submit
	drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream
	ata: pata_serverworks: Do not use the term blacklist
	ata: sata_sil: Rename sil_blacklist to sil_quirks
	drm/amd/display: Handle null 'stream_status' in 'planes_changed_for_existing_stream'
	drm/amd/display: Check null pointers before using dc->clk_mgr
	drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2)
	jfs: UBSAN: shift-out-of-bounds in dbFindBits
	jfs: Fix uaf in dbFreeBits
	jfs: check if leafidx greater than num leaves per dmap tree
	scsi: smartpqi: correct stream detection
	jfs: Fix uninit-value access of new_ea in ea_buffer
	drm/amdgpu: add raven1 gfxoff quirk
	drm/amdgpu: enable gfxoff quirk on HP 705G4
	drm/amdkfd: Fix resource leak in criu restore queue
	HID: multitouch: Add support for Thinkpad X12 Gen 2 Kbd Portfolio
	platform/x86: touchscreen_dmi: add nanote-next quirk
	drm/stm: ltdc: reset plane transparency after plane disable
	drm/amd/display: Check stream before comparing them
	drm/amd/display: Fix index out of bounds in DCN30 degamma hardware format translation
	drm/amd/display: Fix index out of bounds in degamma hardware format translation
	drm/amd/display: Fix index out of bounds in DCN30 color transformation
	drm/amd/display: Initialize get_bytes_per_element's default to 1
	drm/printer: Allow NULL data in devcoredump printer
	perf,x86: avoid missing caller address in stack traces captured in uprobe
	scsi: aacraid: Rearrange order of struct aac_srb_unit
	scsi: lpfc: Update PRLO handling in direct attached topology
	drm/amdgpu: fix unchecked return value warning for amdgpu_gfx
	scsi: NCR5380: Initialize buffer for MSG IN and STATUS transfers
	drm/radeon/r100: Handle unknown family in r100_cp_init_microcode()
	drm/amd/pm: ensure the fw_info is not null before using it
	of/irq: Refer to actual buffer size in of_irq_parse_one()
	powerpc/pseries: Use correct data types from pseries_hp_errorlog struct
	ext4: ext4_search_dir should return a proper error
	ext4: avoid use-after-free in ext4_ext_show_leaf()
	ext4: fix i_data_sem unlock order in ext4_ind_migrate()
	iomap: handle a post-direct I/O invalidate race in iomap_write_delalloc_release
	blk-integrity: use sysfs_emit
	blk-integrity: convert to struct device_attribute
	blk-integrity: register sysfs attributes on struct device
	spi: spi-imx: Fix pm_runtime_set_suspended() with runtime pm enabled
	spi: s3c64xx: fix timeout counters in flush_fifo
	selftests: breakpoints: use remaining time to check if suspend succeed
	selftests: vDSO: fix vDSO name for powerpc
	selftests: vDSO: fix vdso_config for powerpc
	selftests: vDSO: fix vDSO symbols lookup for powerpc64
	selftests/mm: fix charge_reserved_hugetlb.sh test
	powerpc/vdso: Fix VDSO data access when running in a non-root time namespace
	selftests: vDSO: fix ELF hash table entry size for s390x
	selftests: vDSO: fix vdso_config for s390
	Revert "ALSA: hda: Conditionally use snooping for AMD HDMI"
	platform/x86: ISST: Fix the KASAN report slab-out-of-bounds bug
	i2c: stm32f7: Do not prepare/unprepare clock during runtime suspend/resume
	i2c: qcom-geni: Use IRQF_NO_AUTOEN flag in request_irq()
	i2c: xiic: Wait for TX empty to avoid missed TX NAKs
	media: i2c: ar0521: Use cansleep version of gpiod_set_value()
	firmware: tegra: bpmp: Drop unused mbox_client_to_bpmp()
	spi: bcm63xx: Fix module autoloading
	power: supply: hwmon: Fix missing temp1_max_alarm attribute
	perf/core: Fix small negative period being ignored
	parisc: Fix itlb miss handler for 64-bit programs
	drm: Consistently use struct drm_mode_rect for FB_DAMAGE_CLIPS
	ALSA: core: add isascii() check to card ID generator
	ALSA: usb-audio: Add delay quirk for VIVO USB-C HEADSET
	ALSA: usb-audio: Add native DSD support for Luxman D-08u
	ALSA: line6: add hw monitor volume control to POD HD500X
	ALSA: hda/realtek: Add quirk for Huawei MateBook 13 KLV-WX9
	ALSA: hda/realtek: Add a quirk for HP Pavilion 15z-ec200
	ext4: no need to continue when the number of entries is 1
	ext4: correct encrypted dentry name hash when not casefolded
	ext4: fix slab-use-after-free in ext4_split_extent_at()
	ext4: propagate errors from ext4_find_extent() in ext4_insert_range()
	ext4: fix incorrect tid assumption in ext4_fc_mark_ineligible()
	ext4: dax: fix overflowing extents beyond inode size when partially writing
	ext4: fix incorrect tid assumption in __jbd2_log_wait_for_space()
	ext4: drop ppath from ext4_ext_replay_update_ex() to avoid double-free
	ext4: aovid use-after-free in ext4_ext_insert_extent()
	ext4: fix double brelse() the buffer of the extents path
	ext4: update orig_path in ext4_find_extent()
	ext4: fix incorrect tid assumption in ext4_wait_for_tail_page_commit()
	ext4: fix incorrect tid assumption in jbd2_journal_shrink_checkpoint_list()
	ext4: fix fast commit inode enqueueing during a full journal commit
	ext4: use handle to mark fc as ineligible in __track_dentry_update()
	ext4: mark fc as ineligible using an handle in ext4_xattr_set()
	parisc: Fix 64-bit userspace syscall path
	parisc: Fix stack start for ADDR_NO_RANDOMIZE personality
	drm/rockchip: vop: clear DMA stop bit on RK3066
	of/irq: Support #msi-cells=<0> in of_msi_get_domain
	drm: omapdrm: Add missing check for alloc_ordered_workqueue
	resource: fix region_intersects() vs add_memory_driver_managed()
	jbd2: stop waiting for space when jbd2_cleanup_journal_tail() returns error
	jbd2: correctly compare tids with tid_geq function in jbd2_fc_begin_commit
	mm: krealloc: consider spare memory for __GFP_ZERO
	ocfs2: fix the la space leak when unmounting an ocfs2 volume
	ocfs2: fix uninit-value in ocfs2_get_block()
	ocfs2: reserve space for inline xattr before attaching reflink tree
	ocfs2: cancel dqi_sync_work before freeing oinfo
	ocfs2: remove unreasonable unlock in ocfs2_read_blocks
	ocfs2: fix null-ptr-deref when journal load failed.
	ocfs2: fix possible null-ptr-deref in ocfs2_set_buffer_uptodate
	riscv: define ILLEGAL_POINTER_VALUE for 64bit
	exfat: fix memory leak in exfat_load_bitmap()
	perf hist: Update hist symbol when updating maps
	nfsd: fix delegation_blocked() to block correctly for at least 30 seconds
	nfsd: map the EBADMSG to nfserr_io to avoid warning
	NFSD: Fix NFSv4's PUTPUBFH operation
	aoe: fix the potential use-after-free problem in more places
	clk: rockchip: fix error for unknown clocks
	remoteproc: k3-r5: Fix error handling when power-up failed
	clk: qcom: dispcc-sm8250: use CLK_SET_RATE_PARENT for branch clocks
	media: sun4i_csi: Implement link validate for sun4i_csi subdev
	clk: qcom: gcc-sm8450: Do not turn off PCIe GDSCs during gdsc_disable()
	media: uapi/linux/cec.h: cec_msg_set_reply_to: zero flags
	clk: qcom: clk-rpmh: Fix overflow in BCM vote
	clk: qcom: gcc-sm8150: De-register gcc_cpuss_ahb_clk_src
	media: venus: fix use after free bug in venus_remove due to race condition
	clk: qcom: gcc-sm8250: Do not turn off PCIe GDSCs during gdsc_disable()
	media: qcom: camss: Fix ordering of pm_runtime_enable
	clk: qcom: gcc-sc8180x: Fix the sdcc2 and sdcc4 clocks freq table
	clk: qcom: clk-alpha-pll: Fix CAL_L_VAL override for LUCID EVO PLL
	smb: client: use actual path when queryfs
	iio: magnetometer: ak8975: Fix reading for ak099xx sensors
	gso: fix udp gso fraglist segmentation after pull from frag_list
	tomoyo: fallback to realpath if symlink's pathname does not exist
	net: stmmac: Fix zero-division error when disabling tc cbs
	rtc: at91sam9: fix OF node leak in probe() error path
	Input: adp5589-keys - fix NULL pointer dereference
	Input: adp5589-keys - fix adp5589_gpio_get_value()
	cachefiles: fix dentry leak in cachefiles_open_file()
	ACPI: resource: Add Asus Vivobook X1704VAP to irq1_level_low_skip_override[]
	ACPI: resource: Add Asus ExpertBook B2502CVA to irq1_level_low_skip_override[]
	btrfs: fix a NULL pointer dereference when failed to start a new trasacntion
	btrfs: send: fix invalid clone operation for file that got its size decreased
	btrfs: wait for fixup workers before stopping cleaner kthread during umount
	gpio: davinci: fix lazy disable
	Bluetooth: hci_event: Align BR/EDR JUST_WORKS paring with LE
	ceph: fix cap ref leak via netfs init_request
	tracing/hwlat: Fix a race during cpuhp processing
	tracing/timerlat: Fix a race during cpuhp processing
	close_range(): fix the logics in descriptor table trimming
	drm/i915/gem: fix bitwise and logical AND mixup
	drm/sched: Add locking to drm_sched_entity_modify_sched
	drm/amd/display: Fix system hang while resume with TBT monitor
	cpufreq: intel_pstate: Make hwp_notify_lock a raw spinlock
	kconfig: qconf: fix buffer overflow in debug links
	i2c: create debugfs entry per adapter
	i2c: core: Lock address during client device instantiation
	i2c: xiic: Use devm_clk_get_enabled()
	i2c: xiic: Fix pm_runtime_set_suspended() with runtime pm enabled
	dt-bindings: clock: exynos7885: Fix duplicated binding
	spi: bcm63xx: Fix missing pm_runtime_disable()
	arm64: Add Cortex-715 CPU part definition
	arm64: cputype: Add Neoverse-N3 definitions
	arm64: errata: Expand speculative SSBS workaround once more
	io_uring/net: harden multishot termination case for recv
	uprobes: fix kernel info leak via "[uprobes]" vma
	mm: z3fold: deprecate CONFIG_Z3FOLD
	drm/amd/display: Allow backlight to go below `AMDGPU_DM_DEFAULT_MIN_BACKLIGHT`
	build-id: require program headers to be right after ELF header
	lib/buildid: harden build ID parsing logic
	docs/zh_CN: Update the translation of delay-accounting to 6.1-rc8
	delayacct: improve the average delay precision of getdelay tool to microsecond
	sched: psi: fix bogus pressure spikes from aggregation race
	media: i2c: imx335: Enable regulator supplies
	media: imx335: Fix reset-gpio handling
	remoteproc: k3-r5: Acquire mailbox handle during probe routine
	remoteproc: k3-r5: Delay notification of wakeup event
	dt-bindings: clock: qcom: Add missing UFS QREF clocks
	dt-bindings: clock: qcom: Add GPLL9 support on gcc-sc8180x
	clk: samsung: exynos7885: do not define number of clocks in bindings
	clk: samsung: exynos7885: Update CLKS_NR_FSYS after bindings fix
	r8169: Fix spelling mistake: "tx_underun" -> "tx_underrun"
	r8169: add tally counter fields added with RTL8125
	clk: qcom: gcc-sc8180x: Add GPLL9 support
	ACPI: battery: Simplify battery hook locking
	ACPI: battery: Fix possible crash when unregistering a battery hook
	Revert "arm64: dts: qcom: sm8250: switch UFS QMP PHY to new style of bindings"
	erofs: get rid of erofs_inode_datablocks()
	erofs: get rid of z_erofs_do_map_blocks() forward declaration
	erofs: avoid hardcoded blocksize for subpage block support
	erofs: set block size to the on-disk block size
	erofs: fix incorrect symlink detection in fast symlink
	vhost/scsi: null-ptr-dereference in vhost_scsi_get_req()
	perf report: Fix segfault when 'sym' sort key is not used
	fsdax: dax_unshare_iter() should return a valid length
	fsdax: unshare: zero destination if srcmap is HOLE or UNWRITTEN
	unicode: Don't special case ignorable code points
	net: ethernet: cortina: Drop TSO support
	tracing: Remove precision vsnprintf() check from print event
	ALSA: hda/realtek: cs35l41: Fix order and duplicates in quirks table
	ALSA: hda/realtek: cs35l41: Fix device ID / model name
	drm/crtc: fix uninitialized variable use even harder
	tracing: Have saved_cmdlines arrays all in one allocation
	bootconfig: Fix the kerneldoc of _xbc_exit()
	perf lock: Dynamically allocate lockhash_table
	perf sched: Avoid large stack allocations
	perf sched: Move start_work_mutex and work_done_wait_mutex initialization to perf_sched__replay()
	perf sched: Fix memory leak in perf_sched__map()
	perf sched: Move curr_thread initialization to perf_sched__map()
	perf sched: Move curr_pid and cpu_last_switched initialization to perf_sched__{lat|map|replay}()
	libsubcmd: Don't free the usage string
	selftests: net: Remove executable bits from library scripts
	Bluetooth: Fix usage of __hci_cmd_sync_status
	fs/ntfs3: Do not call file_modified if collapse range failed
	fs/ntfs3: Fix sparse warning in ni_fiemap
	fs/ntfs3: Refactor enum_rstbl to suppress static checker
	virtio_console: fix misc probe bugs
	Input: synaptics-rmi4 - fix UAF of IRQ domain on driver removal
	bpf: Check percpu map value size first
	s390/facility: Disable compile time optimization for decompressor code
	s390/mm: Add cond_resched() to cmm_alloc/free_pages()
	bpf, x64: Fix a jit convergence issue
	ext4: don't set SB_RDONLY after filesystem errors
	ext4: nested locking for xattr inode
	s390/cpum_sf: Remove WARN_ON_ONCE statements
	ktest.pl: Avoid false positives with grub2 skip regex
	RDMA/mad: Improve handling of timed out WRs of mad agent
	PCI: Add function 0 DMA alias quirk for Glenfly Arise chip
	RDMA/rtrs-srv: Avoid null pointer deref during path establishment
	clk: bcm: bcm53573: fix OF node leak in init
	PCI: Add ACS quirk for Qualcomm SA8775P
	i2c: i801: Use a different adapter-name for IDF adapters
	PCI: Mark Creative Labs EMU20k2 INTx masking as broken
	RISC-V: Don't have MAX_PHYSMEM_BITS exceed phys_addr_t
	io_uring: check if we need to reschedule during overflow flush
	ntb: ntb_hw_switchtec: Fix use after free vulnerability in switchtec_ntb_remove due to race condition
	RDMA/mlx5: Enforce umem boundaries for explicit ODP page faults
	riscv/kexec_file: Fix relocation type R_RISCV_ADD16 and R_RISCV_SUB16 unknown
	media: videobuf2-core: clear memory related fields in __vb2_plane_dmabuf_put()
	remoteproc: imx_rproc: Use imx specific hook for find_loaded_rsc_table
	clk: imx: Remove CLK_SET_PARENT_GATE for DRAM mux for i.MX7D
	usb: chipidea: udc: enable suspend interrupt after usb reset
	usb: dwc2: Adjust the timing of USB Driver Interrupt Registration in the Crashkernel Scenario
	comedi: ni_routing: tools: Check when the file could not be opened
	LoongArch: Fix memleak in pci_acpi_scan_root()
	netfilter: nf_reject: Fix build warning when CONFIG_BRIDGE_NETFILTER=n
	virtio_pmem: Check device status before requesting flush
	tools/iio: Add memory allocation failure check for trigger_name
	staging: vme_user: added bound check to geoid
	driver core: bus: Return -EIO instead of 0 when show/store invalid bus attribute
	scsi: lpfc: Add ELS_RSP cmd to the list of WQEs to flush in lpfc_els_flush_cmd()
	scsi: lpfc: Ensure DA_ID handling completion before deleting an NPIV instance
	drm/amd/display: Check null pointer before dereferencing se
	fbcon: Fix a NULL pointer dereference issue in fbcon_putcs
	fbdev: sisfb: Fix strbuf array overflow
	drm/rockchip: vop: limit maximum resolution to hardware capabilities
	drm/rockchip: vop: enable VOP_FEATURE_INTERNAL_RGB on RK3066
	NFSD: Mark filecache "down" if init fails
	ice: fix VLAN replay after reset
	SUNRPC: Fix integer overflow in decode_rc_list()
	NFSv4: Prevent NULL-pointer dereference in nfs42_complete_copies()
	net: phy: dp83869: fix memory corruption when enabling fiber
	tcp: fix to allow timestamp undo if no retransmits were sent
	tcp: fix tcp_enter_recovery() to zero retrans_stamp when it's safe
	netfilter: br_netfilter: fix panic with metadata_dst skb
	selftests: net: no_forwarding: fix VID for $swp2 in one_bridge_two_pvids() test
	Bluetooth: RFCOMM: FIX possible deadlock in rfcomm_sk_state_change
	net: phy: bcm84881: Fix some error handling paths
	thermal: int340x: processor_thermal: Set feature mask before proc_thermal_add
	thermal: intel: int340x: processor: Fix warning during module unload
	Revert "net: stmmac: set PP_FLAG_DMA_SYNC_DEV only if XDP is enabled"
	net: ethernet: adi: adin1110: Fix some error handling path in adin1110_read_fifo()
	net: dsa: b53: fix jumbo frame mtu check
	net: dsa: b53: fix max MTU for 1g switches
	net: dsa: b53: fix max MTU for BCM5325/BCM5365
	net: dsa: b53: allow lower MTUs on BCM5325/5365
	net: dsa: b53: fix jumbo frames on 10/100 ports
	gpio: aspeed: Add the flush write to ensure the write complete.
	gpio: aspeed: Use devm_clk api to manage clock source
	ice: Fix netif_is_ice() in Safe Mode
	i40e: Fix macvlan leak by synchronizing access to mac_filter_hash
	igb: Do not bring the device up after non-fatal error
	net/sched: accept TCA_STAB only for root qdisc
	net: ibm: emac: mal: fix wrong goto
	btrfs: zoned: fix missing RCU locking in error message when loading zone info
	sctp: ensure sk_state is set to CLOSED if hashing fails in sctp_listen_start
	netfilter: xtables: avoid NFPROTO_UNSPEC where needed
	netfilter: fib: check correct rtable in vrf setups
	net: ibm/emac: allocate dummy net_device dynamically
	net: ibm: emac: mal: add dcr_unmap to _remove
	rtnetlink: Add bulk registration helpers for rtnetlink message handlers.
	vxlan: Handle error of rtnl_register_module().
	mctp: Handle error of rtnl_register_module().
	ppp: fix ppp_async_encode() illegal access
	slip: make slhc_remember() more robust against malicious packets
	rust: macros: provide correct provenance when constructing THIS_MODULE
	HID: multitouch: Add support for lenovo Y9000P Touchpad
	net/mlx5: Always drain health in shutdown callback
	wifi: mac80211: Avoid address calculations via out of bounds array indexing
	hwmon: (tmp513) Add missing dependency on REGMAP_I2C
	hwmon: (adm9240) Add missing dependency on REGMAP_I2C
	hwmon: (adt7470) Add missing dependency on REGMAP_I2C
	Revert "net: ibm/emac: allocate dummy net_device dynamically"
	HID: amd_sfh: Switch to device-managed dmam_alloc_coherent()
	HID: plantronics: Workaround for an unexcepted opposite volume key
	Revert "usb: yurex: Replace snprintf() with the safer scnprintf() variant"
	usb: dwc3: core: Stop processing of pending events if controller is halted
	usb: xhci: Fix problem with xhci resume from suspend
	usb: storage: ignore bogus device raised by JieLi BR21 USB sound chip
	usb: gadget: core: force synchronous registration
	hid: intel-ish-hid: Fix uninitialized variable 'rv' in ish_fw_xfer_direct_dma
	drm/v3d: Stop the active perfmon before being destroyed
	drm/vc4: Stop the active perfmon before being destroyed
	scsi: wd33c93: Don't use stale scsi_pointer value
	mptcp: fallback when MPTCP opts are dropped after 1st data
	ata: libata: avoid superfluous disk spin down + spin up during hibernation
	net: explicitly clear the sk pointer, when pf->create fails
	net: Fix an unsafe loop on the list
	net: dsa: lan9303: ensure chip reset and wait for READY status
	mptcp: handle consistently DSS corruption
	mptcp: pm: do not remove closing subflows
	device-dax: correct pgoff align in dax_set_mapping()
	nouveau/dmem: Fix vulnerability in migrate_to_ram upon copy error
	kthread: unpark only parked kthread
	secretmem: disable memfd_secret() if arch cannot set direct map
	net: ethernet: cortina: Restore TSO support
	perf lock: Don't pass an ERR_PTR() directly to perf_session__delete()
	block, bfq: fix uaf for accessing waker_bfqq after splitting
	Revert "iommu/vt-d: Retrieve IOMMU perfmon capability information"
	Linux 6.1.113

Change-Id: Ibad3f07882dd1e60de8b7af941df9e1d887f588f
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-14 10:29:43 +00:00
Pablo Neira Ayuso
70c5eb7f38 UPSTREAM: netfilter: xtables: fix typo causing some targets not to load on IPv6
[ Upstream commit 306ed1728e8438caed30332e1ab46b28c25fe3d8 ]

- There is no NFPROTO_IPV6 family for mark and NFLOG.
- TRACE is also missing module autoload with NFPROTO_IPV6.

This results in ip6tables failing to restore a ruleset. This issue has been
reported by several users providing incomplete patches.

Very similar to Ilya Katsnelson's patch including a missing chunk in the
TRACE extension.

Fixes: 0bfcb7b71e73 ("netfilter: xtables: avoid NFPROTO_UNSPEC where needed")
Reported-by: Ignat Korchagin <ignat@cloudflare.com>
Reported-by: Ilya Katsnelson <me@0upti.me>
Reported-by: Krzysztof Olędzki <ole@ans.pl>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 6ee5a1b7ce)
Change-Id: Ib8a151eb5e1b6f0d2d3efd6ca971cb8efab9b9e5
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-14 10:27:32 +00:00
Greg Kroah-Hartman
ca877f130b Merge 8f5ad212f4 ("net: ibm: emac: mal: add dcr_unmap to _remove") into android14-6.1
Steps on the way to 6.1.113

Change-Id: I03a621f712ea5dbe45be6ab423169708b32cb6c0
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-14 08:37:53 +00:00
Greg Kroah-Hartman
d90aa3b1e7 ANDROID: GKI: rexport __qdisc_calculate_pkt_len
The symbol __qdisc_calculate_pkt_len was removed from the .h file in
76feedc74b ("net/sched: accept TCA_STAB only for root qdisc") but it
still lives on in some export symbol lists.  It's not really needed if
they rebuild, but for now, let's just keep it exported so that
everything continues to build properly, as it's safe to do it this way.

Fixes: 76feedc74b ("net/sched: accept TCA_STAB only for root qdisc")
Change-Id: If549f5074d022b6f0d0d2ab7a566eeb6e7db458a
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-14 08:36:49 +00:00
Greg Kroah-Hartman
f27c9aabfc Merge 5de0b8ca7c ("sctp: ensure sk_state is set to CLOSED if hashing fails in sctp_listen_start") into android14-6.1
Steps on the way to 6.1.113

Change-Id: I937c62c39fd745f3742241843985570249e63ac5
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-14 08:35:13 +00:00
Greg Kroah-Hartman
4d9f717a6f Merge fc2f4a5a71 ("drm/rockchip: vop: enable VOP_FEATURE_INTERNAL_RGB on RK3066") into android14-6.1
Steps on the way to 6.1.113

Change-Id: I7413c9d094d0a17b4c6901c73a556bf4959a1402
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-14 07:39:30 +00:00
Greg Kroah-Hartman
2a9237e80d Revert "perf,x86: avoid missing caller address in stack traces captured in uprobe"
This reverts commit bd04497003 which is
commit cfa7f3d2c526c224a6271cc78a4a27a0de06f4f0 upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: Ic71d998534456fcb573ec47c0897698e96bc675d
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-13 15:23:18 +00:00
Greg Kroah-Hartman
07d3db8105 Revert "i2c: create debugfs entry per adapter"
This reverts commit e2a268b0f5 which is
commit 73febd775bdbdb98c81255ff85773ac410ded5c4 upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: I4561926ae6f69310f5217894c6936c1dbfff8c00
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-13 15:23:18 +00:00
Greg Kroah-Hartman
a521ff2141 Revert "i2c: core: Lock address during client device instantiation"
This reverts commit e2852a0246 which is
commit 8d3cefaf659265aa82b0373a563fdb9d16a2b947 upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: I79971fdc8bf43c4d141d5a9780d9c6795da484b9
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-13 15:23:18 +00:00
Greg Kroah-Hartman
ff83a68a27 Merge beff507e9e ("s390/cpum_sf: Remove WARN_ON_ONCE statements") into android14-6.1-lts
Steps on the way to 6.1.113

Resolves merge conflicts in:
	fs/erofs/fscache.c
	fs/erofs/inode.c
	fs/erofs/zdata.c
	kernel/sched/psi.c

Change-Id: Icbb83e1d8d4b65f380f36046a6e98e341c53d77d
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-13 15:19:22 +00:00
Greg Kroah-Hartman
0eefe2e6a1 Merge c6cbefd65a ("wifi: iwlwifi: mvm: Fix a race in scan abort flow") into android14-6.1-lts
Steps on the way to 6.1.113

Change-Id: I4cc09033acf2fb15352e1e61d5fe51107cd22bce
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-13 13:38:21 +00:00
Greg Kroah-Hartman
bf14675822 Merge 71446b65c0 ("scsi: pm8001: Do not overwrite PCI queue mapping") into android14-6.1-lts
Steps on the way to 6.1.113

Resolves merge conflicts in:
	kernel/jump_label.c

Change-Id: Ibd4d6563350488956bd310e499467554ce495341
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-11 15:03:39 +00:00
Greg Kroah-Hartman
fbffc4367f Revert "icmp: Add counters for rate limits"
This reverts commit 3ff50bc627 which is
commit d0941130c9 upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: I45a0407c330d682047d4fba1fbabfb245cd0fe5f
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-11 14:20:55 +00:00
Greg Kroah-Hartman
da03308716 Revert "icmp: change the order of rate limits"
This reverts commit 997ba88896 which is
commit 8c2bd38b95f75f3d2a08c93e35303e26d480d24e upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: Ia2a9191d440cf2ed5526ff624bb2d637d2325b17
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-11 14:20:49 +00:00
Greg Kroah-Hartman
d181caa76b Merge dffe86df26 ("wifi: mt76: do not run mt76_unregister_device() on unregistered hw") into android14-6.1-lts
Steps on the way to 6.1.113

Change-Id: I0d5bfdc8d4e5fe6d4c6e82cb762ce3818286e411
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-11 13:47:39 +00:00
Greg Kroah-Hartman
25281a36af Revert "Merge 71147efd68 ("usb: xhci: fix loss of data on Cadence xHC") into android14-6.1-lts"
This reverts commit d2e4c7790d, reversing
changes made to 27d626695a.

This reverts the recent USB xhci changes that were just merged, as they
break the kernel abi.  If they are needed, they can be brought back in
the future in an abi-safe way.

Bug: 161946584
Change-Id: I57060237f6709650a69373651accd2748fcb2aa3
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-11 13:45:56 +00:00
Greg Kroah-Hartman
d2e4c7790d Merge 71147efd68 ("usb: xhci: fix loss of data on Cadence xHC") into android14-6.1-lts
Steps on the way to 6.1.113

Resolves merge conflicts in:
	drivers/usb/host/xhci-mem.c
	drivers/usb/host/xhci.h

Change-Id: I423af7c6bba0aaeb56dacbed4059f2fc0d0e1de5
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-10 13:54:56 +00:00
Greg Kroah-Hartman
27d626695a Merge 732413d5ae ("USB: misc: yurex: fix race between read and write") into android14-6.1-lts
Steps on the way to 6.1.113

Change-Id: Ie7950304b1c062afe32c9e4f87aaa2e77ede3ceb
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-10 13:41:31 +00:00
Greg Kroah-Hartman
b7ad70d2c5 Merge b986ec200f ("soc: versatile: realview: fix soc_dev leak during device remove") into android14-6.1-lts
Steps on the way to 6.1.113

Change-Id: I8de726c0f7aac71a8b0b01802a95b0680ce31ecb
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-10 08:20:12 +00:00
Greg Kroah-Hartman
fe72cb35dd Merge branch 'android14-6.1' into android14-6.1-lts
This catches the -lts branch up with a lot of abi updates and resolves a
merge conflict in f2fs.  Changes in here include:

* 976b055754 UPSTREAM: HID: Use kvzalloc instead of kzalloc in hid_register_field()
* fadb08b366 FROMGIT: xhci: Fix Link TRB DMA in command ring stopped completion event
* 19b68814b1 Merge tag 'android14-6.1.112_r00' into android14-6.1
* 29d66b3902 UPSTREAM: exit: Sleep at TASK_IDLE when waiting for application core dump
* 179ccc9377 UPSTREAM: spi: spi-geni-qcom: Rename the label unmap_if_dma
* 9a072aa707 UPSTREAM: spi: spi-geni-qcom: Add SPI Device mode support for GENI based QuPv3
* 759bab9407 ANDROID: GKI: update symbol list for honor
* f949397a1b ANDROID: GKI: net: add vendor hooks for link data path
* 3165cd1163 ANDROID: ABI: Update symbol list for spi-geni-qcom updates
* 3b727b0154 UPSTREAM: spi: spi-geni-qcom: Do not do DMA map/unmap inside driver, use framework instead
* a874ed06eb UPSTREAM: Revert "tty: serial: simplify qcom_geni_serial_send_chunk_fifo()"
* e9c03c47d6 UPSTREAM: serial: qcom-geni: Don't cancel/abort if we can't get the port lock
* 2c16ff3847 UPSTREAM: serial: qcom_geni: Convert to platform remove callback returning void
* 7161dbc311 UPSTREAM: serial: qcom-geni: Use port lock wrappers
* cd5bd514c0 UPSTREAM: tty: serial: qcom-geni-serial: Poll primary sequencer irq status after cancel_tx
* 5722a4dd8b UPSTREAM: serial: qcom-geni: clean up clock-rate debug printk
* d5e0fbcd4a UPSTREAM: serial: qcom-geni: use icc tag defines
* 5bdef2817a ANDROID: ABI: update gki symbol list
* a03d1670d2 ANDROID: Add vendor hook for cma adjusting
* e02772c76d BACKPORT: firmware: arm_scmi: Queue in scmi layer for mailbox implementation
* 4dc2498506 UPSTREAM: tty: serial: simplify qcom_geni_serial_send_chunk_fifo()
* 719b876f95 UPSTREAM: tty: serial: qcom-geni-serial: Add a poll_init() function
* d15f99d2b5 UPSTREAM: serial: qcom-geni: drop bogus uart_write_wakeup()
* 3991e7fcc9 UPSTREAM: serial: qcom-geni: fix mapping of empty DMA buffer
* 64bccf317e UPSTREAM: serial: qcom-geni: fix DMA mapping leak on shutdown
* 4c3917c600 UPSTREAM: serial: qcom-geni: fix console shutdown hang
* 8bbc5694db UPSTREAM: serial: qcom_geni: Fix variable naming
* 53be6ca12d BACKPORT: tty: serial: qcom-geni-serial: add support for serial engine DMA
* 3321cd20f3 BACKPORT: soc: qcom-geni-se: add more symbol definitions
* 61df751af7 BACKPORT: tty: serial: qcom-geni-serial: use of_device_id data
* 3ebd383e35 BACKPORT: tty: serial: qcom-geni-serial: drop the return value from handle_rx
* a88673be7e UPSTREAM: tty: serial: qcom-geni-serial: refactor qcom_geni_serial_send_chunk_fifo()
* 94076b81a1 UPSTREAM: soc: qcom: geni-se: add GP_LENGTH/IRQ_EN_SET/IRQ_EN_CLEAR registers
* a137aa79a6 UPSTREAM: soc: qcom: geni-se: Add M_TX_FIFO_NOT_EMPTY bit definition
* 1790581f0a FROMLIST: ufs: core: requeue aborted request
* 51903b71f0 FROMLIST: ufs: core: fix the issue of ICU failure
* 00f19bd9ed ANDROID: GKI: Add symbol for rockchip pci remove
* 5e1f4bb11f ANDROID: abi_gki_aarch64_qcom: Add pci_ecam_map_bus and pci_host_common_probe
* 72f51dd698 ANDROID: abi_gki_aarch64_honor: whitelist symbols added for skip memcg reclaim by priority
* f2b3f5888f ANDROID: mm: add vendor hook to skip memcg reclaim by priority
* add3d68602 ANDROID: KVM: arm64: Don't run a protected VCPU if it isn't runnable
* 1fe91f863a ANDROID: usb: Optimization the transfer rate of accessory mode in USB3.2 mode
* 299cc91948 UPSTREAM: spi: spi-geni-qcom: Select FIFO mode for chip select
* b490c66749 ANDROID: KVM: arm64: Don't skip accounting when memcache top-up fails
* 1181501872 ANDROID: KVM: arm64: Fix accounting when VM creation fails
* 8baadbac00 UPSTREAM: spi: geni-qcom: Convert to platform remove callback returning void
* 5ab05b86ef UPSTREAM: spi: spi-geni-qcom: Add support for SE DMA mode
* 271bd223dd UPSTREAM: soc: qcom: geni-se: Add SPI Device mode support for GENI based QuPv3
* 27021bed80 UPSTREAM: tty: serial: qcom-geni-serial: split out the FIFO tx code
* ad717604be UPSTREAM: tty: serial: qcom-geni-serial: remove unneeded tabs
* ad37632534 UPSTREAM: tty: serial: qcom-geni-serial: refactor qcom_geni_serial_isr()
* 1f0775355f UPSTREAM: tty: serial: qcom-geni-serial: remove stray newlines
* 59cbbd0b09 UPSTREAM: tty: serial: qcom-geni-serial: improve the to_dev_port() macro
* f4eec633c0 UPSTREAM: tty: serial: qcom-geni-serial: align #define values
* b92a6c8545 UPSTREAM: tty: serial: qcom-geni-serial: remove unused symbols
* 6e6cda8f06 UPSTREAM: tty: serial: qcom-geni-serial: drop unneeded forward definitions
* d75a50763e UPSTREAM: tty: serial: qcom-geni-serial: stop operations in progress at shutdown
* 481220c5b9 ANDROID: abi_gki_aarch64_qcom: whitelist mm symbols
* e697302b05 ANDROID: mm: export lru_gen_caps
* 1a3bbc1910 ANDROID: mm: export unpack_shadow
* a6266110c1 UPSTREAM: i2c: qcom-geni: Use IRQF_NO_AUTOEN flag in request_irq()
* c24feb930a UPSTREAM: i2c: qcom-geni: Use goto for clearer exit path
* 80c036f7f2 UPSTREAM: i2c: qcom-geni: Add missing geni_icc_disable in geni_i2c_runtime_resume
* 688cbb4cee UPSTREAM: i2c: qcom-geni: Add missing geni_icc_disable in geni_i2c_runtime_resume
* aff2261bb1 UPSTREAM: i2c: qcom-geni: Add missing clk_disable_unprepare in geni_i2c_runtime_resume
* 371a327f3d UPSTREAM: i2c: qcom-geni: use 'time_left' variable with wait_for_completion_timeout()
* c756c6b094 UPSTREAM: i2c: qcom-geni: remove printout on handled timeouts
* fa329140c1 UPSTREAM: i2c: qcom-geni: fix missing clk_disable_unprepare() and geni_se_resources_off()
* 8fd3f0784d UPSTREAM: i2c: qcom-geni: Convert to devm_platform_ioremap_resource()
* 02b20eb4bc UPSTREAM: i2c: Convert to platform remove callback returning void
* a650b9fb29 UPSTREAM: i2c: qcom-geni: change i2c_master_hub to static
* aa4151b832 UPSTREAM: i2c: qcom-geni: add support for I2C Master Hub variant
* 47d1f8edd6 UPSTREAM: i2c: qcom-geni: add desc struct to prepare support for I2C Master Hub variant
* 752034bc87 UPSTREAM: wifi: cfg80211: fix reporting failed MLO links status with cfg80211_connect_done
* 40c204b003 UPSTREAM: scsi: ufs: core: Do not set link to OFF state while waking up from hibernation
* 2589c7fa08 UPSTREAM: mm/mglru: fix overshooting shrinker memory
* 4d8187d2c8 UPSTREAM: gso: fix udp gso fraglist segmentation after pull from frag_list
* b11f74b6c1 UPSTREAM: soc: qcom: geni-se: Do not bother about enable/disable of interrupts in secondary sequencer
* f9d2a8a3bf UPSTREAM: soc: qcom: geni-se: Add interfaces geni_se_tx_init_dma() and geni_se_rx_init_dma()
* 8097478ae8 UPSTREAM: unicode: Don't special case ignorable code points
* d41d398db6 BACKPORT: f2fs: fix to handle segment allocation failure correctly
* 751a02f798 UPSTREAM: f2fs: stop checkpoint when get a out-of-bounds segment
* acc7335e1f BACKPORT: f2fs: kill heap-based allocation
* 19e119d2d0 Reapply "io_uring: drop any code related to SCM_RIGHTS"
* 80e851bf0d FROMGIT: scsi: ufs: core: Support Updating UIC Command Timeout
* 0d60f50b9d ANDROID: GKI: Update symbol list for mtk
* 0ff444ed0b UPSTREAM: Revert "usb: typec: tcpm: clear pd_event queue in PORT_RESET"
* 311457e823 ANDROID: GKI: update symbol list for transsion
* 8d29837471 UPSTREAM: firmware_loader: Abort all upcoming firmware load request once reboot triggered
* a9d791a2b2 UPSTREAM: firmware_loader: Refactor kill_pending_fw_fallback_reqs()
* 0e8b65e41f ANDROID: sched: Make uclamp changes depend on CAP_SYS_NICE
* d4dab27b9d UPSTREAM: f2fs: fix to update i_ctime in __f2fs_setxattr()
* d645f73da1 UPSTREAM: f2fs: atomic: fix to truncate pagecache before on-disk metadata truncation
* 693980c220 BACKPORT: f2fs: Create COW inode from parent dentry for atomic write
* e35539a5ac BACKPORT: f2fs: atomic: fix to avoid racing w/ GC
* 9de4353ca0 UPSTREAM: f2fs: use meta inode for GC of COW file
* 9b5ee2f2b1 BACKPORT: f2fs: use meta inode for GC of atomic file
* 30f8a76da5 ANDROID: abi_gki_aarch64_qcom: Add missing symbol to QCOM list
* 6f2e0215d7 ANDROID: GKI: Add KMI symbols for virtio-audio
* ba06e1f121 ANDROID: fix up ABI with change to private struct geni_wrapper
* e0de5c9e33 UPSTREAM: soc: qcom: geni-se: add desc struct to specify clocks from device match data
* 1cdc168f1e ANDROID: GKI: Update symbol list for mtk
* 7c49c3acea UPSTREAM: arm64: cputype: Add Neoverse-V3 definitions
* 53769a60e3 UPSTREAM: arm64: cputype: Add Cortex-X4 definitions
* ecc82c7e71 UPSTREAM: arm64: barrier: Restore spec_bar() macro
* bd3cc5c733 UPSTREAM: KVM: arm64: Add memory length checks and remove inline in do_ffa_mem_xfer
* a43e7c2c12 ANDROID: GKI: Update symbol list for BCMSTB
* 5162f9a67b UPSTREAM: arm64: Add Neoverse-V2 part
* 1105954181 UPSTREAM: usb: dwc3: core: update LC timer as per USB Spec V3.2
* cc274231f6 ANDROID: GKI: Add symbol for pci power limit

Change-Id: Ie47fa8a9c5b1da4140b099de4d9d6647089c6e18
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-11-07 15:36:01 +00:00
Hailong.Liu
976b055754 UPSTREAM: HID: Use kvzalloc instead of kzalloc in hid_register_field()
The function hid_register_field() might allocate more than 32k, which
would use order-4 contiguous memory if the parameter usage exceeds
1024. However, after the system runs for a while, the memory can
become heavily fragmented. This increases the likelihood of order-4 page
allocation failure. Here’s the relevant log.

[71553.093623]kworker/1: 0: page allocation failure: order:4, mode:0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
[71553.093669]Workqueue: events uhid_device_add_worker
[71553.093683]Call trace:
[71553.093687]: dump_backtrace+0xf4/0x118
[71553.093696]: show_stack+0x18/0x24
[71553.093702]: dump_stack_lvl+0x60/0x7c
[71553.093710]: dump_stack+0x18/0x3c
[71553.093717]: warn_alloc+0xf4/0x174
[71553.093725]: __alloc_pages_slowpath+0x1ba0/0x1cac
[71553.093732]: __alloc_pages+0x460/0x560
[71553.093738]: __kmalloc_large_node+0xbc/0x1f8
[71553.093746]: __kmalloc+0x144/0x254
[71553.093752]: hid_add_field+0x13c/0x308
[71553.093758]: hid_parser_main+0x250/0x298
[71553.093765]: hid_open_report+0x214/0x30c
[71553.093771]: mt_probe+0x130/0x258
[71553.093778]: hid_device_probe+0x11c/0x1e4
[71553.093784]: really_probe+0xe4/0x388
[71553.093791]: __driver_probe_device+0xa0/0x12c
[71553.093798]: driver_probe_device+0x44/0x214
[71553.093804]: __device_attach_driver+0xdc/0x124
[71553.093812]: bus_for_each_drv+0x88/0xec
[71553.093818]: __device_attach+0x84/0x170
[71553.093824]: device_initial_probe+0x14/0x20
[71553.093831]: bus_probe_device+0x48/0xd0
[71553.093836]: device_add+0x248/0x928
[71553.093844]: hid_add_device+0xf8/0x1a4
[71553.093850]: uhid_device_add_worker+0x24/0x144
[71553.093857]: process_one_work+0x158/0x804
[71553.093865]: worker_thread+0x15c/0x494
[71553.093872]: kthread+0xf4/0x1e4
[71553.093880]: ret_from_fork+0x10/0x20

To fix the allocation failure, use kvzalloc() instead of kzalloc().

Signed-off-by: Hailong.Liu <hailong.liu@oppo.com>
Acked-by: Barry Song <baohua@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
(cherry picked from commit 748fe4399f9194285a91ec8c09141e49a6b470b4)

Bug: 377189880
Change-Id: Id660d93fcd43378f2f40fbbec9a95c31c1a28e63
Signed-off-by: Hailong Liu <hailong.liu@oppo.com>
2024-11-04 08:22:12 +00:00
Greg Kroah-Hartman
7c15117f94 Linux 6.1.115
Link: https://lore.kernel.org/r/20241028062258.708872330@linuxfoundation.org
Tested-by: Mark Brown <broonie@kernel.org>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Tested-by: SeongJae Park <sj@kernel.org>
Tested-by: Peter Schneider <pschneider1968@googlemail.com>
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Tested-by: Hardik Garg <hargar@linux.microsoft.com>
Tested-by: Salvatore Bonaccorso <carnil@debian.org>
Tested-by: kernelci.org bot <bot@kernelci.org>
Tested-by: Pavel Machek (CIP) <pavel@denx.de>
Tested-by: Ron Economos <re@w6rz.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:07 +01:00
Sabrina Dubroca
bce1afaa21 xfrm: validate new SA's prefixlen using SA family when sel.family is unset
[ Upstream commit 3f0ab59e6537c6a8f9e1b355b48f9c05a76e8563 ]

This expands the validation introduced in commit 07bf790895 ("xfrm:
Validate address prefix lengths in the xfrm selector.")

syzbot created an SA with
    usersa.sel.family = AF_UNSPEC
    usersa.sel.prefixlen_s = 128
    usersa.family = AF_INET

Because of the AF_UNSPEC selector, verify_newsa_info doesn't put
limits on prefixlen_{s,d}. But then copy_from_user_state sets
x->sel.family to usersa.family (AF_INET). Do the same conversion in
verify_newsa_info before validating prefixlen_{s,d}, since that's how
prefixlen is going to be used later on.

Reported-by: syzbot+cc39f136925517aed571@syzkaller.appspotmail.com
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-01 01:56:07 +01:00
junhua huang
354b3847ea arm64/uprobes: change the uprobe_opcode_t typedef to fix the sparse warning
commit ef08c0fadd upstream.

After we fixed the uprobe inst endian in aarch_be, the sparse check report
the following warning info:

sparse warnings: (new ones prefixed by >>)
>> kernel/events/uprobes.c:223:25: sparse: sparse: restricted __le32 degrades to integer
>> kernel/events/uprobes.c:574:56: sparse: sparse: incorrect type in argument 4 (different base types)
@@     expected unsigned int [addressable] [usertype] opcode @@     got restricted __le32 [usertype] @@
   kernel/events/uprobes.c:574:56: sparse:     expected unsigned int [addressable] [usertype] opcode
   kernel/events/uprobes.c:574:56: sparse:     got restricted __le32 [usertype]
>> kernel/events/uprobes.c:1483:32: sparse: sparse: incorrect type in initializer (different base types)
@@     expected unsigned int [usertype] insn @@     got restricted __le32 [usertype] @@
   kernel/events/uprobes.c:1483:32: sparse:     expected unsigned int [usertype] insn
   kernel/events/uprobes.c:1483:32: sparse:     got restricted __le32 [usertype]

use the __le32 to u32 for uprobe_opcode_t, to keep the same.

Fixes: 60f07e22a7 ("arm64:uprobe fix the uprobe SWBP_INSN in big-endian")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: junhua huang <huang.junhua@zte.com.cn>
Link: https://lore.kernel.org/r/202212280954121197626@zte.com.cn
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:07 +01:00
Dan Carpenter
2c3766fac9 ACPI: PRM: Clean up guid type in struct prm_handler_info
commit 3d1c651272cf1df8aac7d9b6d92d836d27bed50f upstream.

Clang 19 prints a warning when we pass &th->guid to efi_pa_va_lookup():

drivers/acpi/prmt.c:156:29: error: passing 1-byte aligned argument to
4-byte aligned parameter 1 of 'efi_pa_va_lookup' may result in an
unaligned pointer access [-Werror,-Walign-mismatch]
  156 |                         (void *)efi_pa_va_lookup(&th->guid, handler_info->handler_address);
      |                                                  ^

The problem is that efi_pa_va_lookup() takes a efi_guid_t and &th->guid
is a regular guid_t.  The difference between the two types is the
alignment.  efi_guid_t is a typedef.

	typedef guid_t efi_guid_t __aligned(__alignof__(u32));

It's possible that this a bug in Clang 19.  Even though the alignment of
&th->guid is not explicitly specified, it will still end up being aligned
at 4 or 8 bytes.

Anyway, as Ard points out, it's cleaner to change guid to efi_guid_t type
and that also makes the warning go away.

Fixes: 088984c8d54c ("ACPI: PRM: Find EFI_MEMORY_RUNTIME block for PRM handler and context")
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Suggested-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Tested-by: Paul E. McKenney <paulmck@kernel.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://patch.msgid.link/3777d71b-9e19-45f4-be4e-17bf4fa7a834@stanley.mountain
[ rjw: Subject edit ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:07 +01:00
Armin Wolf
fc35bb2e1f platform/x86: dell-wmi: Ignore suspend notifications
commit a7990957fa53326fe9b47f0349373ed99bb69aaa upstream.

Some machines like the Dell G15 5155 emit WMI events when
suspending/resuming. Ignore those WMI events.

Tested-by: siddharth.manthan@gmail.com
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Acked-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20241014220529.397390-1-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:07 +01:00
Zichen Xie
e19bf49e90 ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
commit 49da1463c9e3d2082276c3e0e2a8b65a88711cd2 upstream.

A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
possibly return NULL pointer. NULL Pointer Dereference may be
triggerred without addtional check.
Add a NULL check for the returned pointer.

Fixes: b5022a36d2 ("ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers")
Cc: stable@vger.kernel.org
Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
Link: https://patch.msgid.link/20241006205737.8829-1-zichenxie0106@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:07 +01:00
Michel Alex
61b8628cbb net: phy: dp83822: Fix reset pin definitions
commit de96f6a3003513c796bbe4e23210a446913f5c00 upstream.

This change fixes a rare issue where the PHY fails to detect a link
due to incorrect reset behavior.

The SW_RESET definition was incorrectly assigned to bit 14, which is the
Digital Restart bit according to the datasheet. This commit corrects
SW_RESET to bit 15 and assigns DIG_RESTART to bit 14 as per the
datasheet specifications.

The SW_RESET define is only used in the phy_reset function, which fully
re-initializes the PHY after the reset is performed. The change in the
bit definitions should not have any negative impact on the functionality
of the PHY.

v2:
- added Fixes tag
- improved commit message

Cc: stable@vger.kernel.org
Fixes: 5dc39fd5ef ("net: phy: DP83822: Add ability to advertise Fiber connection")
Signed-off-by: Alex Michel <alex.michel@wiedemann-group.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Message-ID: <AS1P250MB0608A798661549BF83C4B43EA9462@AS1P250MB0608.EURP250.PROD.OUTLOOK.COM>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:07 +01:00
Jiri Slaby (SUSE)
d7b5876a6e serial: protect uart_port_dtr_rts() in uart_shutdown() too
[ Upstream commit 602babaa84d627923713acaf5f7e9a4369e77473 ]

Commit af224ca2df (serial: core: Prevent unsafe uart port access, part
3) added few uport == NULL checks. It added one to uart_shutdown(), so
the commit assumes, uport can be NULL in there. But right after that
protection, there is an unprotected "uart_port_dtr_rts(uport, false);"
call. That is invoked only if HUPCL is set, so I assume that is the
reason why we do not see lots of these reports.

Or it cannot be NULL at this point at all for some reason :P.

Until the above is investigated, stay on the safe side and move this
dereference to the if too.

I got this inconsistency from Coverity under CID 1585130. Thanks.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Peter Hurley <peter@hurleysoftware.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240805102046.307511-3-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[Adapted over commit 5701cb8bf5 ("tty: Call ->dtr_rts() parameter
active consistently") not in the tree]
Signed-off-by: Tomas Krcka <krckatom@amazon.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-01 01:56:07 +01:00
Paul Moore
8251093971 selinux: improve error checking in sel_write_load()
[ Upstream commit 42c773238037c90b3302bf37a57ae3b5c3f6004a ]

Move our existing input sanity checking to the top of sel_write_load()
and add a check to ensure the buffer size is non-zero.

Move a local variable initialization from the declaration to before it
is used.

Minor style adjustments.

Reported-by: Sam Sun <samsun1006219@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
[cascardo: keep fsi initialization at its declaration point as it is used earlier]
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-01 01:56:07 +01:00
Mario Limonciello
5660bcc4dd drm/amd/display: Disable PSR-SU on Parade 08-01 TCON too
commit ba1959f71117b27f3099ee789e0815360b4081dd upstream.

Stuart Hayhurst has found that both at bootup and fullscreen VA-API video
is leading to black screens for around 1 second and kernel WARNING [1] traces
when calling dmub_psr_enable() with Parade 08-01 TCON.

These symptoms all go away with PSR-SU disabled for this TCON, so disable
it for now while DMUB traces [2] from the failure can be analyzed and the failure
state properly root caused.

Cc: Marc Rossi <Marc.Rossi@amd.com>
Cc: Hamza Mahfooz <Hamza.Mahfooz@amd.com>
Link: https://gitlab.freedesktop.org/drm/amd/uploads/a832dd515b571ee171b3e3b566e99a13/dmesg.log [1]
Link: https://gitlab.freedesktop.org/drm/amd/uploads/8f13ff3b00963c833e23e68aa8116959/output.log [2]
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/2645
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Link: https://lore.kernel.org/r/20240205211233.2601-1-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit afb634a6823d8d9db23c5fb04f79c5549349628b)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:07 +01:00
Haiyang Zhang
4faa6e3e66 hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event
commit 4c262801ea60c518b5bebc22a09f5b78b3147da2 upstream.

The existing code moves VF to the same namespace as the synthetic NIC
during netvsc_register_vf(). But, if the synthetic device is moved to a
new namespace after the VF registration, the VF won't be moved together.

To make the behavior more consistent, add a namespace check for synthetic
NIC's NETDEV_REGISTER event (generated during its move), and move the VF
if it is not in the same namespace.

Cc: stable@vger.kernel.org
Fixes: c0a41b887c ("hv_netvsc: move VF to same namespace as netvsc device")
Suggested-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/1729275922-17595-1-git-send-email-haiyangz@microsoft.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00
Petr Vaganov
dc2ad8e881 xfrm: fix one more kernel-infoleak in algo dumping
commit 6889cd2a93e1e3606b3f6e958aa0924e836de4d2 upstream.

During fuzz testing, the following issue was discovered:

BUG: KMSAN: kernel-infoleak in _copy_to_iter+0x598/0x2a30
 _copy_to_iter+0x598/0x2a30
 __skb_datagram_iter+0x168/0x1060
 skb_copy_datagram_iter+0x5b/0x220
 netlink_recvmsg+0x362/0x1700
 sock_recvmsg+0x2dc/0x390
 __sys_recvfrom+0x381/0x6d0
 __x64_sys_recvfrom+0x130/0x200
 x64_sys_call+0x32c8/0x3cc0
 do_syscall_64+0xd8/0x1c0
 entry_SYSCALL_64_after_hwframe+0x79/0x81

Uninit was stored to memory at:
 copy_to_user_state_extra+0xcc1/0x1e00
 dump_one_state+0x28c/0x5f0
 xfrm_state_walk+0x548/0x11e0
 xfrm_dump_sa+0x1e0/0x840
 netlink_dump+0x943/0x1c40
 __netlink_dump_start+0x746/0xdb0
 xfrm_user_rcv_msg+0x429/0xc00
 netlink_rcv_skb+0x613/0x780
 xfrm_netlink_rcv+0x77/0xc0
 netlink_unicast+0xe90/0x1280
 netlink_sendmsg+0x126d/0x1490
 __sock_sendmsg+0x332/0x3d0
 ____sys_sendmsg+0x863/0xc30
 ___sys_sendmsg+0x285/0x3e0
 __x64_sys_sendmsg+0x2d6/0x560
 x64_sys_call+0x1316/0x3cc0
 do_syscall_64+0xd8/0x1c0
 entry_SYSCALL_64_after_hwframe+0x79/0x81

Uninit was created at:
 __kmalloc+0x571/0xd30
 attach_auth+0x106/0x3e0
 xfrm_add_sa+0x2aa0/0x4230
 xfrm_user_rcv_msg+0x832/0xc00
 netlink_rcv_skb+0x613/0x780
 xfrm_netlink_rcv+0x77/0xc0
 netlink_unicast+0xe90/0x1280
 netlink_sendmsg+0x126d/0x1490
 __sock_sendmsg+0x332/0x3d0
 ____sys_sendmsg+0x863/0xc30
 ___sys_sendmsg+0x285/0x3e0
 __x64_sys_sendmsg+0x2d6/0x560
 x64_sys_call+0x1316/0x3cc0
 do_syscall_64+0xd8/0x1c0
 entry_SYSCALL_64_after_hwframe+0x79/0x81

Bytes 328-379 of 732 are uninitialized
Memory access of size 732 starts at ffff88800e18e000
Data copied to user address 00007ff30f48aff0

CPU: 2 PID: 18167 Comm: syz-executor.0 Not tainted 6.8.11 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014

Fixes copying of xfrm algorithms where some random
data of the structure fields can end up in userspace.
Padding in structures may be filled with random (possibly sensitve)
data and should never be given directly to user-space.

A similar issue was resolved in the commit
8222d5910d ("xfrm: Zero padding when dumping algos and encap")

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.

Fixes: c7a5899eb2 ("xfrm: redact SA secret with lockdown confidentiality")
Cc: stable@vger.kernel.org
Co-developed-by: Boris Tonofa <b.tonofa@ideco.ru>
Signed-off-by: Boris Tonofa <b.tonofa@ideco.ru>
Signed-off-by: Petr Vaganov <p.vaganov@ideco.ru>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00
Huacai Chen
9bb6ec1175 LoongArch: Get correct cores_per_package for SMT systems
commit b7296f9d5bf99330063d4bbecc43c9b33fed0137 upstream.

In loongson_sysconf, The "core" of cores_per_node and cores_per_package
stands for a logical core, which means in a SMT system it stands for a
thread indeed. This information is gotten from SMBIOS Type4 Structure,
so in order to get a correct cores_per_package for both SMT and non-SMT
systems in parse_cpu_table() we should use SMBIOS_THREAD_PACKAGE_OFFSET
instead of SMBIOS_CORE_PACKAGE_OFFSET.

Cc: stable@vger.kernel.org
Reported-by: Chao Li <lichao@loongson.cn>
Tested-by: Chao Li <lichao@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00
José Relvas
22aba10069 ALSA: hda/realtek: Add subwoofer quirk for Acer Predator G9-593
commit 35fdc6e1c16099078bcbd73a6c8f1733ae7f1909 upstream.

The Acer Predator G9-593 has a 2+1 speaker system which isn't probed
correctly.
This patch adds a quirk with the proper pin connections.

Note that I do not own this laptop, so I cannot guarantee that this
fixes the issue.
Testing was done by other users here:
https://discussion.fedoraproject.org/t/-/118482

This model appears to have two different dev IDs...

- 0x1177 (as seen on the forum link above)
- 0x1178 (as seen on https://linux-hardware.org/?probe=127df9999f)

I don't think the audio system was changed between model revisions, so
the patch applies for both IDs.

Signed-off-by: José Relvas <josemonsantorelvas@gmail.com>
Link: https://patch.msgid.link/20241020102756.225258-1-josemonsantorelvas@gmail.com
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00
Marc Zyngier
9df62691d3 KVM: arm64: Don't eagerly teardown the vgic on init error
commit df5fd75ee305cb5927e0b1a0b46cc988ad8db2b1 upstream.

As there is very little ordering in the KVM API, userspace can
instanciate a half-baked GIC (missing its memory map, for example)
at almost any time.

This means that, with the right timing, a thread running vcpu-0
can enter the kernel without a GIC configured and get a GIC created
behind its back by another thread. Amusingly, it will pick up
that GIC and start messing with the data structures without the
GIC having been fully initialised.

Similarly, a thread running vcpu-1 can enter the kernel, and try
to init the GIC that was previously created. Since this GIC isn't
properly configured (no memory map), it fails to correctly initialise.

And that's the point where we decide to teardown the GIC, freeing all
its resources. Behind vcpu-0's back. Things stop pretty abruptly,
with a variety of symptoms.  Clearly, this isn't good, we should be
a bit more careful about this.

It is obvious that this guest is not viable, as it is missing some
important part of its configuration. So instead of trying to tear
bits of it down, let's just mark it as *dead*. It means that any
further interaction from userspace will result in -EIO. The memory
will be released on the "normal" path, when userspace gives up.

Cc: stable@vger.kernel.org
Reported-by: Alexander Potapenko <glider@google.com>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20241009183603.3221824-1-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00
Sean Christopherson
6876793907 KVM: nSVM: Ignore nCR3[4:0] when loading PDPTEs from memory
commit f559b2e9c5c5308850544ab59396b7d53cfc67bd upstream.

Ignore nCR3[4:0] when loading PDPTEs from memory for nested SVM, as bits
4:0 of CR3 are ignored when PAE paging is used, and thus VMRUN doesn't
enforce 32-byte alignment of nCR3.

In the absolute worst case scenario, failure to ignore bits 4:0 can result
in an out-of-bounds read, e.g. if the target page is at the end of a
memslot, and the VMM isn't using guard pages.

Per the APM:

  The CR3 register points to the base address of the page-directory-pointer
  table. The page-directory-pointer table is aligned on a 32-byte boundary,
  with the low 5 address bits 4:0 assumed to be 0.

And the SDM's much more explicit:

  4:0    Ignored

Note, KVM gets this right when loading PDPTRs, it's only the nSVM flow
that is broken.

Fixes: e4e517b4be ("KVM: MMU: Do not unconditionally read PDPTE from guest memory")
Reported-by: Kirk Swidowski <swidowski@google.com>
Cc: Andy Nguyen <theflow@google.com>
Cc: 3pvd <3pvd@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20241009140838.1036226-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00
Aleksa Sarai
958f8343f4 openat2: explicitly return -E2BIG for (usize > PAGE_SIZE)
commit f92f0a1b05698340836229d791b3ffecc71b265a upstream.

While we do currently return -EFAULT in this case, it seems prudent to
follow the behaviour of other syscalls like clone3. It seems quite
unlikely that anyone depends on this error code being EFAULT, but we can
always revert this if it turns out to be an issue.

Cc: stable@vger.kernel.org # v5.6+
Fixes: fddb5d430a ("open: introduce openat2(2) syscall")
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Link: https://lore.kernel.org/r/20241010-extensible-structs-check_fields-v3-3-d2833dfe6edd@cyphar.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00
Ryusuke Konishi
27524f6562 nilfs2: fix kernel bug due to missing clearing of buffer delay flag
commit 6ed469df0bfbef3e4b44fca954a781919db9f7ab upstream.

Syzbot reported that after nilfs2 reads a corrupted file system image
and degrades to read-only, the BUG_ON check for the buffer delay flag
in submit_bh_wbc() may fail, causing a kernel bug.

This is because the buffer delay flag is not cleared when clearing the
buffer state flags to discard a page/folio or a buffer head. So, fix
this.

This became necessary when the use of nilfs2's own page clear routine
was expanded.  This state inconsistency does not occur if the buffer
is written normally by log writing.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Link: https://lore.kernel.org/r/20241015213300.7114-1-konishi.ryusuke@gmail.com
Fixes: 8c26c4e269 ("nilfs2: fix issue with flush kernel thread after remount in RO mode because of driver's internal error or metadata corruption")
Reported-by: syzbot+985ada84bf055a575c07@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=985ada84bf055a575c07
Cc: stable@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00
Shubham Panwar
71edf620e3 ACPI: button: Add DMI quirk for Samsung Galaxy Book2 to fix initial lid detection issue
commit 8fa73ee44daefc884c53a25158c25a4107eb5a94 upstream.

Add a DMI quirk for Samsung Galaxy Book2 to fix an initial lid state
detection issue.

The _LID device incorrectly returns the lid status as "closed" during
boot, causing the system to enter a suspend loop right after booting.

The quirk ensures that the correct lid state is reported initially,
preventing the system from immediately suspending after startup.  It
only addresses the initial lid state detection and ensures proper
system behavior upon boot.

Signed-off-by: Shubham Panwar <shubiisp8@gmail.com>
Link: https://patch.msgid.link/20241020095045.6036-2-shubiisp8@gmail.com
[ rjw: Changelog edits ]
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00
Koba Ko
8ce081ad84 ACPI: PRM: Find EFI_MEMORY_RUNTIME block for PRM handler and context
commit 088984c8d54c0053fc4ae606981291d741c5924b upstream.

PRMT needs to find the correct type of block to translate the PA-VA
mapping for EFI runtime services.

The issue arises because the PRMT is finding a block of type
EFI_CONVENTIONAL_MEMORY, which is not appropriate for runtime services
as described in Section 2.2.2 (Runtime Services) of the UEFI
Specification [1]. Since the PRM handler is a type of runtime service,
this causes an exception when the PRM handler is called.

    [Firmware Bug]: Unable to handle paging request in EFI runtime service
    WARNING: CPU: 22 PID: 4330 at drivers/firmware/efi/runtime-wrappers.c:341
        __efi_queue_work+0x11c/0x170
    Call trace:

Let PRMT find a block with EFI_MEMORY_RUNTIME for PRM handler and PRM
context.

If no suitable block is found, a warning message will be printed, but
the procedure continues to manage the next PRM handler.

However, if the PRM handler is actually called without proper allocation,
it would result in a failure during error handling.

By using the correct memory types for runtime services, ensure that the
PRM handler and the context are properly mapped in the virtual address
space during runtime, preventing the paging request error.

The issue is really that only memory that has been remapped for runtime
by the firmware can be used by the PRM handler, and so the region needs
to have the EFI_MEMORY_RUNTIME attribute.

Link: https://uefi.org/sites/default/files/resources/UEFI_Spec_2_10_Aug29.pdf # [1]
Fixes: cefc7ca462 ("ACPI: PRM: implement OperationRegion handler for the PlatformRtMechanism subtype")
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Koba Ko <kobak@nvidia.com>
Reviewed-by: Matthew R. Ochs <mochs@nvidia.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://patch.msgid.link/20241012205010.4165798-1-kobak@nvidia.com
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00
Christian Heusel
e7f56a30c5 ACPI: resource: Add LG 16T90SP to irq1_level_low_skip_override[]
commit 53f1a907d36fb3aa02a4d34073bcec25823a6c74 upstream.

The LG Gram Pro 16 2-in-1 (2024) the 16T90SP has its keybopard IRQ (1)
described as ActiveLow in the DSDT, which the kernel overrides to EdgeHigh
which breaks the keyboard.

Add the 16T90SP to the irq1_level_low_skip_override[] quirk table to fix
this.

Reported-by: Dirk Holten <dirk.holten@gmx.de>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219382
Cc: All applicable <stable@vger.kernel.org>
Suggested-by: Dirk Holten <dirk.holten@gmx.de>
Signed-off-by: Christian Heusel <christian@heusel.eu>
Link: https://patch.msgid.link/20241017-lg-gram-pro-keyboard-v2-1-7c8fbf6ff718@heusel.eu
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00
Mario Limonciello
cd67af3c17 drm/amd: Guard against bad data for ATIF ACPI method
commit bf58f03931fdcf7b3c45cb76ac13244477a60f44 upstream.

If a BIOS provides bad data in response to an ATIF method call
this causes a NULL pointer dereference in the caller.

```
? show_regs (arch/x86/kernel/dumpstack.c:478 (discriminator 1))
? __die (arch/x86/kernel/dumpstack.c:423 arch/x86/kernel/dumpstack.c:434)
? page_fault_oops (arch/x86/mm/fault.c:544 (discriminator 2) arch/x86/mm/fault.c:705 (discriminator 2))
? do_user_addr_fault (arch/x86/mm/fault.c:440 (discriminator 1) arch/x86/mm/fault.c:1232 (discriminator 1))
? acpi_ut_update_object_reference (drivers/acpi/acpica/utdelete.c:642)
? exc_page_fault (arch/x86/mm/fault.c:1542)
? asm_exc_page_fault (./arch/x86/include/asm/idtentry.h:623)
? amdgpu_atif_query_backlight_caps.constprop.0 (drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:387 (discriminator 2)) amdgpu
? amdgpu_atif_query_backlight_caps.constprop.0 (drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:386 (discriminator 1)) amdgpu
```

It has been encountered on at least one system, so guard for it.

Fixes: d38ceaf99e ("drm/amdgpu: add core driver (v4)")
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit c9b7c809b89f24e9372a4e7f02d64c950b07fdee)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00
Naohiro Aota
deee4bd713 btrfs: zoned: fix zone unusable accounting for freed reserved extent
commit bf9821ba4792a0d9a2e72803ae7b4341faf3d532 upstream.

When btrfs reserves an extent and does not use it (e.g, by an error), it
calls btrfs_free_reserved_extent() to free the reserved extent. In the
process, it calls btrfs_add_free_space() and then it accounts the region
bytes as block_group->zone_unusable.

However, it leaves the space_info->bytes_zone_unusable side not updated. As
a result, ENOSPC can happen while a space_info reservation succeeded. The
reservation is fine because the freed region is not added in
space_info->bytes_zone_unusable, leaving that space as "free". OTOH,
corresponding block group counts it as zone_unusable and its allocation
pointer is not rewound, we cannot allocate an extent from that block group.
That will also negate space_info's async/sync reclaim process, and cause an
ENOSPC error from the extent allocation process.

Fix that by returning the space to space_info->bytes_zone_unusable.
Ideally, since a bio is not submitted for this reserved region, we should
return the space to free space and rewind the allocation pointer. But, it
needs rework on extent allocation handling, so let it work in this way for
now.

Fixes: 169e0da91a ("btrfs: zoned: track unusable bytes for zones")
CC: stable@vger.kernel.org # 5.15+
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-01 01:56:06 +01:00