Commit Graph

669 Commits

Author SHA1 Message Date
Greg Kroah-Hartman
fedef46c69 Merge 5.10.219 into android12-5.10-lts
Changes in 5.10.219
	x86/tsc: Trust initial offset in architectural TSC-adjust MSRs
	tty: n_gsm: fix possible out-of-bounds in gsm0_receive()
	speakup: Fix sizeof() vs ARRAY_SIZE() bug
	ring-buffer: Fix a race between readers and resize checks
	net: smc91x: Fix m68k kernel compilation for ColdFire CPU
	nilfs2: fix unexpected freezing of nilfs_segctor_sync()
	nilfs2: fix potential hang in nilfs_detach_log_writer()
	ALSA: core: Fix NULL module pointer assignment at card init
	wifi: cfg80211: fix the order of arguments for trace events of the tx_rx_evt class
	net: usb: qmi_wwan: add Telit FN920C04 compositions
	drm/amd/display: Set color_mgmt_changed to true on unsuspend
	ASoC: rt5645: Fix the electric noise due to the CBJ contacts floating
	ASoC: dt-bindings: rt5645: add cbj sleeve gpio property
	regulator: vqmmc-ipq4019: fix module autoloading
	ASoC: rt715: add vendor clear control register
	ASoC: da7219-aad: fix usage of device_get_named_child_node()
	drm/amdkfd: Flush the process wq before creating a kfd_process
	nvme: find numa distance only if controller has valid numa id
	openpromfs: finish conversion to the new mount API
	crypto: bcm - Fix pointer arithmetic
	firmware: raspberrypi: Use correct device for DMA mappings
	ecryptfs: Fix buffer size for tag 66 packet
	nilfs2: fix out-of-range warning
	parisc: add missing export of __cmpxchg_u8()
	crypto: ccp - drop platform ifdef checks
	crypto: x86/nh-avx2 - add missing vzeroupper
	crypto: x86/sha256-avx2 - add missing vzeroupper
	s390/cio: fix tracepoint subchannel type field
	jffs2: prevent xattr node from overflowing the eraseblock
	soc: mediatek: cmdq: Fix typo of CMDQ_JUMP_RELATIVE
	null_blk: Fix missing mutex_destroy() at module removal
	md: fix resync softlockup when bitmap size is less than array size
	wifi: ath10k: poll service ready message before failing
	x86/boot: Ignore relocations in .notes sections in walk_relocs() too
	qed: avoid truncating work queue length
	scsi: ufs: qcom: Perform read back after writing reset bit
	scsi: ufs-qcom: Fix ufs RST_n spec violation
	scsi: ufs: qcom: Perform read back after writing REG_UFS_SYS1CLK_1US
	scsi: ufs: ufs-qcom: Fix the Qcom register name for offset 0xD0
	scsi: ufs: ufs-qcom: Clear qunipro_g4_sel for HW version major 5
	scsi: ufs: qcom: Perform read back after writing unipro mode
	scsi: ufs: qcom: Perform read back after writing CGC enable
	scsi: ufs: cdns-pltfrm: Perform read back after writing HCLKDIV
	scsi: ufs: core: Perform read back after disabling interrupts
	scsi: ufs: core: Perform read back after disabling UIC_COMMAND_COMPL
	irqchip/alpine-msi: Fix off-by-one in allocation error path
	irqchip/loongson-pch-msi: Fix off-by-one on allocation error path
	ACPI: disable -Wstringop-truncation
	gfs2: Fix "ignore unlock failures after withdraw"
	selftests/bpf: Fix umount cgroup2 error in test_sockmap
	cpufreq: Reorganize checks in cpufreq_offline()
	cpufreq: Split cpufreq_offline()
	cpufreq: Rearrange locking in cpufreq_remove_dev()
	cpufreq: exit() callback is optional
	net: export inet_lookup_reuseport and inet6_lookup_reuseport
	net: remove duplicate reuseport_lookup functions
	udp: Avoid call to compute_score on multiple sites
	scsi: libsas: Fix the failure of adding phy with zero-address to port
	scsi: hpsa: Fix allocation size for Scsi_Host private data
	x86/purgatory: Switch to the position-independent small code model
	wifi: ath10k: Fix an error code problem in ath10k_dbg_sta_write_peer_debug_trigger()
	wifi: ath10k: populate board data for WCN3990
	tcp: avoid premature drops in tcp_add_backlog()
	net: give more chances to rcu in netdev_wait_allrefs_any()
	macintosh/via-macii: Fix "BUG: sleeping function called from invalid context"
	wifi: carl9170: add a proper sanity check for endpoints
	wifi: ar5523: enable proper endpoint verification
	sh: kprobes: Merge arch_copy_kprobe() into arch_prepare_kprobe()
	Revert "sh: Handle calling csum_partial with misaligned data"
	selftests/binderfs: use the Makefile's rules, not Make's implicit rules
	HID: intel-ish-hid: ipc: Add check for pci_alloc_irq_vectors
	scsi: bfa: Ensure the copied buf is NUL terminated
	scsi: qedf: Ensure the copied buf is NUL terminated
	wifi: mwl8k: initialize cmd->addr[] properly
	usb: aqc111: stop lying about skb->truesize
	net: usb: sr9700: stop lying about skb->truesize
	m68k: Fix spinlock race in kernel thread creation
	m68k: mac: Fix reboot hang on Mac IIci
	net: ipv6: fix wrong start position when receive hop-by-hop fragment
	eth: sungem: remove .ndo_poll_controller to avoid deadlocks
	net: ethernet: cortina: Locking fixes
	af_unix: Fix data races in unix_release_sock/unix_stream_sendmsg
	net: usb: smsc95xx: stop lying about skb->truesize
	net: openvswitch: fix overwriting ct original tuple for ICMPv6
	ipv6: sr: add missing seg6_local_exit
	ipv6: sr: fix incorrect unregister order
	ipv6: sr: fix invalid unregister error path
	net/mlx5: Discard command completions in internal error
	drm/amd/display: Fix potential index out of bounds in color transformation function
	ASoC: soc-acpi: add helper to identify parent driver.
	ASoC: Intel: Disable route checks for Skylake boards
	mtd: rawnand: hynix: fixed typo
	fbdev: shmobile: fix snprintf truncation
	drm/meson: vclk: fix calculation of 59.94 fractional rates
	drm/mediatek: Add 0 size check to mtk_drm_gem_obj
	powerpc/fsl-soc: hide unused const variable
	fbdev: sisfb: hide unused variables
	media: ngene: Add dvb_ca_en50221_init return value check
	media: radio-shark2: Avoid led_names truncations
	drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference
	fbdev: sh7760fb: allow modular build
	media: atomisp: ssh_css: Fix a null-pointer dereference in load_video_binaries
	drm/arm/malidp: fix a possible null pointer dereference
	drm: vc4: Fix possible null pointer dereference
	ASoC: tracing: Export SND_SOC_DAPM_DIR_OUT to its value
	drm/bridge: lt9611: Don't log an error when DSI host can't be found
	drm/bridge: tc358775: Don't log an error when DSI host can't be found
	drm/panel: simple: Add missing Innolux G121X1-L03 format, flags, connector
	drm/mipi-dsi: use correct return type for the DSC functions
	RDMA/hns: Refactor the hns_roce_buf allocation flow
	RDMA/hns: Create QP with selected QPN for bank load balance
	RDMA/hns: Fix incorrect symbol types
	RDMA/hns: Fix return value in hns_roce_map_mr_sg
	RDMA/hns: Use complete parentheses in macros
	RDMA/hns: Modify the print level of CQE error
	clk: qcom: mmcc-msm8998: fix venus clock issue
	x86/insn: Fix PUSH instruction in x86 instruction decoder opcode map
	ext4: avoid excessive credit estimate in ext4_tmpfile()
	sunrpc: removed redundant procp check
	ext4: simplify calculation of blkoff in ext4_mb_new_blocks_simple
	ext4: fix unit mismatch in ext4_mb_new_blocks_simple
	ext4: try all groups in ext4_mb_new_blocks_simple
	ext4: remove unused parameter from ext4_mb_new_blocks_simple()
	ext4: fix potential unnitialized variable
	SUNRPC: Fix gss_free_in_token_pages()
	selftests/kcmp: Make the test output consistent and clear
	selftests/kcmp: remove unused open mode
	RDMA/IPoIB: Fix format truncation compilation errors
	net: qrtr: fix null-ptr-deref in qrtr_ns_remove
	net: qrtr: ns: Fix module refcnt
	netrom: fix possible dead-lock in nr_rt_ioctl()
	af_packet: do not call packet_read_pending() from tpacket_destruct_skb()
	sched/fair: Allow disabling sched_balance_newidle with sched_relax_domain_level
	greybus: lights: check return of get_channel_from_mode
	f2fs: fix to wait on page writeback in __clone_blkaddrs()
	soundwire: cadence: fix invalid PDI offset
	dmaengine: idma64: Add check for dma_set_max_seg_size
	firmware: dmi-id: add a release callback function
	serial: max3100: Lock port->lock when calling uart_handle_cts_change()
	serial: max3100: Update uart_driver_registered on driver removal
	serial: max3100: Fix bitwise types
	greybus: arche-ctrl: move device table to its right location
	serial: sc16is7xx: add proper sched.h include for sched_set_fifo()
	f2fs: compress: support chksum
	f2fs: add compress_mode mount option
	f2fs: compress: clean up parameter of __f2fs_cluster_blocks()
	f2fs: compress: remove unneeded preallocation
	f2fs: introduce FI_COMPRESS_RELEASED instead of using IMMUTABLE bit
	f2fs: compress: fix to relocate check condition in f2fs_{release,reserve}_compress_blocks()
	f2fs: add cp_error check in f2fs_write_compressed_pages
	f2fs: fix to force keeping write barrier for strict fsync mode
	f2fs: do not allow partial truncation on pinned file
	f2fs: fix typos in comments
	f2fs: fix to relocate check condition in f2fs_fallocate()
	f2fs: fix to check pinfile flag in f2fs_move_file_range()
	iio: pressure: dps310: support negative temperature values
	fpga: region: change FPGA indirect article to an
	fpga: region: Rename dev to parent for parent device
	docs: driver-api: fpga: avoid using UTF-8 chars
	fpga: region: Use standard dev_release for class driver
	fpga: region: add owner module and take its refcount
	microblaze: Remove gcc flag for non existing early_printk.c file
	microblaze: Remove early printk call from cpuinfo-static.c
	usb: gadget: u_audio: Clear uac pointer when freed.
	stm class: Fix a double free in stm_register_device()
	ppdev: Remove usage of the deprecated ida_simple_xx() API
	ppdev: Add an error check in register_device
	extcon: max8997: select IRQ_DOMAIN instead of depending on it
	PCI/EDR: Align EDR_PORT_DPC_ENABLE_DSM with PCI Firmware r3.3
	PCI/EDR: Align EDR_PORT_LOCATE_DSM with PCI Firmware r3.3
	f2fs: compress: fix to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock
	f2fs: fix to release node block count in error path of f2fs_new_node_page()
	f2fs: compress: don't allow unaligned truncation on released compress inode
	serial: sh-sci: protect invalidating RXDMA on shutdown
	libsubcmd: Fix parse-options memory leak
	s390/ipl: Fix incorrect initialization of len fields in nvme reipl block
	s390/ipl: Fix incorrect initialization of nvme dump block
	Input: ims-pcu - fix printf string overflow
	Input: ioc3kbd - convert to platform remove callback returning void
	Input: ioc3kbd - add device table
	mmc: sdhci_am654: Add tuning algorithm for delay chain
	mmc: sdhci_am654: Write ITAPDLY for DDR52 timing
	mmc: sdhci_am654: Drop lookup for deprecated ti,otap-del-sel
	mmc: sdhci_am654: Add OTAP/ITAP delay enable
	mmc: sdhci_am654: Add ITAPDLYSEL in sdhci_j721e_4bit_set_clock
	mmc: sdhci_am654: Fix ITAPDLY for HS400 timing
	Input: pm8xxx-vibrator - correct VIB_MAX_LEVELS calculation
	drm/msm/dpu: Always flush the slave INTF on the CTL
	um: Fix return value in ubd_init()
	um: Add winch to winch_handlers before registering winch IRQ
	um: vector: fix bpfflash parameter evaluation
	drm/bridge: tc358775: fix support for jeida-18 and jeida-24
	media: stk1160: fix bounds checking in stk1160_copy_video()
	scsi: qla2xxx: Replace all non-returning strlcpy() with strscpy()
	media: flexcop-usb: clean up endpoint sanity checks
	media: flexcop-usb: fix sanity check of bNumEndpoints
	powerpc/pseries: Add failure related checks for h_get_mpp and h_get_ppp
	um: Fix the -Wmissing-prototypes warning for __switch_mm
	media: cec: cec-adap: always cancel work in cec_transmit_msg_fh
	media: cec: cec-api: add locking in cec_release()
	media: core headers: fix kernel-doc warnings
	media: cec: fix a deadlock situation
	media: cec: call enable_adap on s_log_addrs
	media: cec: abort if the current transmit was canceled
	media: cec: correctly pass on reply results
	media: cec: use call_op and check for !unregistered
	media: cec-adap.c: drop activate_cnt, use state info instead
	media: cec: core: avoid recursive cec_claim_log_addrs
	media: cec: core: avoid confusing "transmit timed out" message
	null_blk: Fix the WARNING: modpost: missing MODULE_DESCRIPTION()
	regulator: bd71828: Don't overwrite runtime voltages
	x86/kconfig: Select ARCH_WANT_FRAME_POINTERS again when UNWINDER_FRAME_POINTER=y
	nfc: nci: Fix uninit-value in nci_rx_work
	ASoC: tas2552: Add TX path for capturing AUDIO-OUT data
	sunrpc: fix NFSACL RPC retry on soft mount
	rpcrdma: fix handling for RDMA_CM_EVENT_DEVICE_REMOVAL
	ipv6: sr: fix memleak in seg6_hmac_init_algo
	params: lift param_set_uint_minmax to common code
	tcp: Fix shift-out-of-bounds in dctcp_update_alpha().
	openvswitch: Set the skbuff pkt_type for proper pmtud support.
	arm64: asm-bug: Add .align 2 to the end of __BUG_ENTRY
	virtio: delete vq in vp_find_vqs_msix() when request_irq() fails
	net: fec: avoid lock evasion when reading pps_enable
	tls: fix missing memory barrier in tls_init
	nfc: nci: Fix kcov check in nci_rx_work()
	nfc: nci: Fix handling of zero-length payload packets in nci_rx_work()
	netfilter: nfnetlink_queue: acquire rcu_read_lock() in instance_destroy_rcu()
	netfilter: nft_payload: restore vlan q-in-q match support
	spi: Don't mark message DMA mapped when no transfer in it is
	nvmet: fix ns enable/disable possible hang
	net/mlx5e: Use rx_missed_errors instead of rx_dropped for reporting buffer exhaustion
	dma-buf/sw-sync: don't enable IRQ from sync_print_obj()
	bpf: Fix potential integer overflow in resolve_btfids
	enic: Validate length of nl attributes in enic_set_vf_port
	net: usb: smsc95xx: fix changing LED_SEL bit value updated from EEPROM
	bpf: Allow delete from sockmap/sockhash only if update is allowed
	net:fec: Add fec_enet_deinit()
	netfilter: tproxy: bail out if IP has been disabled on the device
	kconfig: fix comparison to constant symbols, 'm', 'n'
	spi: stm32: Don't warn about spurious interrupts
	ipvlan: Dont Use skb->sk in ipvlan_process_v{4,6}_outbound
	hwmon: (shtc1) Fix property misspelling
	ALSA: timer: Set lower bound of start tick time
	genirq/cpuhotplug, x86/vector: Prevent vector leak during CPU offline
	media: cec: core: add adap_nb_transmit_canceled() callback
	SUNRPC: Fix loop termination condition in gss_free_in_token_pages()
	binder: fix max_thread type inconsistency
	mmc: core: Do not force a retune before RPMB switch
	io_uring: fail NOP if non-zero op flags is passed in
	afs: Don't cross .backup mountpoint from backup volume
	nilfs2: fix use-after-free of timer for log writer thread
	vxlan: Fix regression when dropping packets due to invalid src addresses
	x86/mm: Remove broken vsyscall emulation code from the page fault code
	netfilter: nf_tables: restrict tunnel object to NFPROTO_NETDEV
	netfilter: nf_tables: Fix potential data-race in __nft_obj_type_get()
	f2fs: fix to do sanity check on i_xattr_nid in sanity_check_inode()
	media: lgdt3306a: Add a check against null-pointer-def
	drm/amdgpu: add error handle to avoid out-of-bounds
	ata: pata_legacy: make legacy_exit() work again
	ACPI: resource: Do IRQ override on TongFang GXxHRXx and GMxHGxx
	arm64: tegra: Correct Tegra132 I2C alias
	arm64: dts: qcom: qcs404: fix bluetooth device address
	md/raid5: fix deadlock that raid5d() wait for itself to clear MD_SB_CHANGE_PENDING
	wifi: rtl8xxxu: Fix the TX power of RTL8192CU, RTL8723AU
	wifi: rtlwifi: rtl8192de: Fix low speed with WPA3-SAE
	wifi: rtlwifi: rtl8192de: Fix endianness issue in RX path
	arm64: dts: hi3798cv200: fix the size of GICR
	media: mc: mark the media devnode as registered from the, start
	media: mxl5xx: Move xpt structures off stack
	media: v4l2-core: hold videodev_lock until dev reg, finishes
	mmc: core: Add mmc_gpiod_set_cd_config() function
	mmc: sdhci-acpi: Sort DMI quirks alphabetically
	mmc: sdhci-acpi: Fix Lenovo Yoga Tablet 2 Pro 1380 sdcard slot not working
	mmc: sdhci-acpi: Disable write protect detection on Toshiba WT10-A
	fbdev: savage: Handle err return when savagefb_check_var failed
	KVM: arm64: Allow AArch32 PSTATE.M to be restored as System mode
	crypto: ecrdsa - Fix module auto-load on add_key
	crypto: qat - Fix ADF_DEV_RESET_SYNC memory leak
	net/ipv6: Fix route deleting failure when metric equals 0
	net/9p: fix uninit-value in p9_client_rpc()
	intel_th: pci: Add Meteor Lake-S CPU support
	sparc64: Fix number of online CPUs
	watchdog: rti_wdt: Set min_hw_heartbeat_ms to accommodate a safety margin
	kdb: Fix buffer overflow during tab-complete
	kdb: Use format-strings rather than '\0' injection in kdb_read()
	kdb: Fix console handling when editing and tab-completing commands
	kdb: Merge identical case statements in kdb_read()
	kdb: Use format-specifiers rather than memset() for padding in kdb_read()
	net: fix __dst_negative_advice() race
	sparc: move struct termio to asm/termios.h
	ext4: fix mb_cache_entry's e_refcnt leak in ext4_xattr_block_cache_find()
	s390/ap: Fix crash in AP internal function modify_bitmap()
	nfs: fix undefined behavior in nfs_block_bits()
	NFS: Fix READ_PLUS when server doesn't support OP_READ_PLUS
	scsi: ufs: ufs-qcom: Clear qunipro_g4_sel for HW major version > 5
	f2fs: compress: fix compression chksum
	RDMA/hns: Use mutex instead of spinlock for ida allocation
	RDMA/hns: Fix CQ and QP cache affinity
	Linux 5.10.219

Change-Id: I0e21ff44d28df2a2802a9fb35f0959bb5ab528fc
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-07-10 14:41:23 +00:00
Carlos Llamas
75805481c3 binder: fix max_thread type inconsistency
commit 42316941335644a98335f209daafa4c122f28983 upstream.

The type defined for the BINDER_SET_MAX_THREADS ioctl was changed from
size_t to __u32 in order to avoid incompatibility issues between 32 and
64-bit kernels. However, the internal types used to copy from user and
store the value were never updated. Use u32 to fix the inconsistency.

Fixes: a9350fc859 ("staging: android: binder: fix BINDER_SET_MAX_THREADS declaration")
Reported-by: Arve Hjønnevåg <arve@android.com>
Cc: stable@vger.kernel.org
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20240421173750.3117808-1-cmllamas@google.com
[cmllamas: resolve minor conflicts due to missing commit 421518a2740f]
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-16 13:32:30 +02:00
Greg Kroah-Hartman
d615d2d800 Merge tag 'android12-5.10.210_r00' into branch android12-5.10
This merges the 5.10.210 LTS releases into the android12-5.10 branch.
Included in here are the following commits:

* 47e789159e Revert "hrtimer: Report offline hrtimer enqueue"
* c5fa21f10b Revert "scsi: core: Introduce enum scsi_disposition"
* 7c333b5976 Revert "scsi: core: Move scsi_host_busy() out of host lock for waking up EH handler"
* d32a2a4b7b Revert "scsi: core: Move scsi_host_busy() out of host lock if it is for per-command"
* b2600e62c4 Revert "bpf: Add map and need_defer parameters to .map_fd_put_ptr()"
* 379ac05cc3 Revert "drm/mipi-dsi: Fix detach call without attach"
* 0412bcfd88 Revert "serial: Add rs485_supported to uart_port"
* 8e1cc643b1 Revert "serial: 8250_exar: Fill in rs485_supported"
* e18733695d Revert "serial: 8250_exar: Set missing rs485_supported flag"
* 8755d58540 Revert "ip6_tunnel: make sure to pull inner header in __ip6_tnl_rcv()"
*   66e91da883 Merge 5.10.210 into android12-5.10-lts
|\
| * aa6ca808a4 Linux 5.10.210
| * cf5a69e355 PCI: dwc: Fix a 64bit bug in dw_pcie_ep_raise_msix_irq()
| * 9f53d24852 net: bcmgenet: Fix EEE implementation
| * 9a865a11d6 netfilter: nf_tables: fix pointer math issue in nft_byteorder_eval()
| * 67f386f756 drm/msm/dsi: Enable runtime PM
| * 21b38d85f6 PM: runtime: Have devm_pm_runtime_enable() handle pm_runtime_dont_use_autosuspend()
| * ede393e118 PM: runtime: add devm_pm_runtime_enable helper
| * a891a0621e dm: limit the number of targets and parameter size area
| * c90746c03b nilfs2: replace WARN_ONs for invalid DAT metadata block requests
| * f3e4963566 nilfs2: fix potential bug in end_buffer_async_write
| * db896bbe4a sched/membarrier: reduce the ability to hammer on sys_membarrier
| * 8f8f185643 net: prevent mss overflow in skb_segment()
| * f7e0231eea Revert "arm64: Stash shadow stack pointer in the task struct on interrupt"
| * 70ca0dbae4 hrtimer: Ignore slack time for RT tasks in schedule_hrtimeout_range()
| * c80ddc1092 netfilter: ipset: Missing gc cancellations fixed
| * a24d5f2ac8 netfilter: ipset: fix performance regression in swap operation
| * 583a6c76b9 scripts/decode_stacktrace.sh: optionally use LLVM utilities
| * 0f906882eb scripts: decode_stacktrace: demangle Rust symbols
| * a3d71b6ae9 scripts/decode_stacktrace.sh: support old bash version
| * ae992f14b1 scripts/decode_stacktrace.sh: silence stderr messages from addr2line/nm
| * 00f09825e1 serial: 8250_exar: Set missing rs485_supported flag
| * 84bf7b8759 serial: 8250_exar: Fill in rs485_supported
| * dfd8b9d26b serial: Add rs485_supported to uart_port
| * 0c36878222 crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init
| * e0d2eeec88 mips: Fix max_mapnr being uninitialized on early stages
| * 41a4bd51d8 PCI: dwc: endpoint: Fix dw_pcie_ep_raise_msix_irq() alignment support
| * ff67f77fb0 bus: moxtet: Add spi device table
| * 88ec9bbcd3 Revert "md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d"
| * 6a42eb0d21 tracing: Inform kmemleak of saved_cmdlines allocation
| * 3a6e27dbe2 pmdomain: core: Move the unused cleanup to a _sync initcall
| * 978e50ef8c can: j1939: Fix UAF in j1939_sk_match_filter during setsockopt(SO_J1939_FILTER)
| * e4a6d3acad of: property: fix typo in io-channels
| * 8180d0c27b ceph: prevent use-after-free in encode_cap_msg()
| * 2e9506c9e0 s390/qeth: Fix potential loss of L3-IP@ in case of network issues
| * 888679afbf irqchip/gic-v3-its: Fix GICv4.1 VPE affinity update
| * 2809645d8a irqchip/irq-brcmstb-l2: Add write memory barrier before exit
| * 45a3657c3f wifi: mac80211: reload info pointer in ieee80211_tx_dequeue()
| * c7fa9590a9 nfp: flower: prevent re-adding mac index for bonded port
| * 962091c408 nfp: use correct macro for LengthSelect in BAR config
| * 58054faf3b crypto: ccp - Fix null pointer dereference in __sev_platform_shutdown_locked
| * 98a4026b22 nilfs2: fix hang in nilfs_lookup_dirty_data_buffers()
| * 364a66be2a nilfs2: fix data corruption in dsync block recovery for small block sizes
| * a643d8d179 ALSA: hda/conexant: Add quirk for SWS JS201D
| * ca0533fe66 mmc: slot-gpio: Allow non-sleeping GPIO ro
| * bdc29f9ca3 x86/mm/ident_map: Use gbpages only where full GB page should be mapped.
| * 09f21bee5b x86/Kconfig: Transmeta Crusoe is CPU family 5, not 6
| * 1a8a72ee17 serial: max310x: improve crystal stable clock detection
| * 6f248ee7aa serial: max310x: set default value when reading clock ready bit
| * 92a0a5d613 ring-buffer: Clean ring_buffer_poll_wait() error return
| * 9ec807e7b6 hv_netvsc: Fix race condition between netvsc_probe and netvsc_remove
| * 93d8109bf1 media: rc: bpf attach/detach requires write permission
| * a98ccbcddb iio: accel: bma400: Fix a compilation problem
| * 36a49290d7 iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC
| * fa5884dd5b staging: iio: ad5933: fix type mismatch regression
| * 8a744f925d tracing: Fix wasted memory in saved_cmdlines logic
| * d033a555d9 ext4: fix double-free of blocks due to wrong extents moved_len
| * f86e12415b misc: fastrpc: Mark all sessions as invalid in cb_remove
| * a423042052 binder: signal epoll threads of self-work
| * 6d11240dd1 ALSA: hda/realtek: Enable headset mic on Vaio VJFE-ADL
| * cdaddb457d xen-netback: properly sync TX responses
| * 0d8011a878 net: hsr: remove WARN_ONCE() in send_hsr_supervision_frame()
| * 2f6d16f052 nfc: nci: free rx_data_reassembly skb on NCI device cleanup
| * 5abf3e8af2 kbuild: Fix changing ELF file type for output of gen_btf for big endian
| * 6717c593c7 firewire: core: correct documentation of fw_csr_string() kernel API
| * 2dc1d93b2c lsm: fix the logic in security_inode_getsecctx()
| * 7d4e19f7ff scsi: Revert "scsi: fcoe: Fix potential deadlock on &fip->ctlr_lock"
| * ca188f2512 modpost: trim leading spaces when processing source files list
| * 7a14b8a477 i2c: i801: Fix block process call transactions
| * 5e8a6140d4 i2c: i801: Remove i801_set_block_buffer_mode
| * 230e89b5ad powerpc/kasan: Fix addr error caused by page alignment
| * 486a4176bc media: ir_toy: fix a memleak in irtoy_tx
| * b8da59ad91 usb: f_mass_storage: forbid async queue when shutdown happen
| * 9a8ccbc6ec USB: hub: check for alternate port before enabling A_ALT_HNP_SUPPORT
| * 9d07bdbfa4 usb: ucsi_acpi: Fix command completion handling
| * f304eb4833 HID: wacom: Do not register input devices until after hid_hw_start
| * 4f7927310e HID: wacom: generic: Avoid reporting a serial of '0' to userspace
| * d51fc41e15 ALSA: hda/realtek: Enable Mute LED on HP Laptop 14-fq0xxx
| * 8da18c51ce ALSA: hda/realtek: Fix the external mic not being recognised for Acer Swift 1 SF114-32
| * 81e7d2530d mm/writeback: fix possible divide-by-zero in wb_dirty_limits(), again
| * 56cfbe6071 tracing/trigger: Fix to return error if failed to alloc snapshot
| * 6d05659b60 i40e: Fix waiting for queues of all VSIs to be disabled
| * f026f23849 MIPS: Add 'memory' clobber to csum_ipv6_magic() inline assembler
| * ed8c87ac8a net: sysfs: Fix /sys/class/net/<iface> path for statistics
| * 4a98bc739d ASoC: rt5645: Fix deadlock in rt5645_jack_detect_work()
| * f8cd86c67d spi: ppc4xx: Drop write-only variable
| * 55cfccb658 net: openvswitch: limit the number of recursions from action sets
| * 3f9b9585b7 of: unittest: Fix compile in the non-dynamic case
| * dc8bce9c71 btrfs: send: return EOPNOTSUPP on unknown flags
| * 22965e4fee btrfs: forbid deleting live subvol qgroup
| * 3f5d47eb16 btrfs: do not ASSERT() if the newly created subvolume already got read
| * d7247ce32a btrfs: forbid creating subvol qgroups
| * 4cee42fcf5 netfilter: nft_set_rbtree: skip end interval element from gc
| * feace3c240 net: stmmac: xgmac: fix a typo of register name in DPP safety handling
| * 78115a3473 net: stmmac: xgmac: use #define for string constants
| * 8868106251 clocksource: Skip watchdog check for large watchdog intervals
| * cda4ca038c vhost: use kzalloc() instead of kmalloc() followed by memset()
| * 63d97c3aba Input: atkbd - skip ATKBD_CMD_SETLEDS when skipping ATKBD_CMD_GETID
| * 9a564a9a07 Input: i8042 - fix strange behavior of touchpad on Clevo NS70PU
| * b1f576be92 hrtimer: Report offline hrtimer enqueue
| * b87060b3e8 usb: host: xhci-plat: Add support for XHCI_SG_TRB_CACHE_SIZE_QUIRK
| * 34fd6f444b USB: serial: cp210x: add ID for IMST iM871A-USB
| * 53479fcfd0 USB: serial: option: add Fibocom FM101-GL variant
| * c537b88b39 USB: serial: qcserial: add new usb-id for Dell Wireless DW5826e
| * e800ef36d1 net/af_iucv: clean up a try_then_request_module()
| * 9f56f38331 blk-iocost: Fix an UBSAN shift-out-of-bounds warning
| * 9878c660d1 scsi: core: Move scsi_host_busy() out of host lock if it is for per-command
| * 1dd947c21d netfilter: nft_set_pipapo: remove scratch_aligned pointer
| * d6fcad0da2 netfilter: nft_set_pipapo: add helper to release pcpu scratch area
| * 1771e8347f netfilter: nft_set_pipapo: store index in scratch maps
| * d1ec65c49e netfilter: nft_ct: reject direction for ct id
| * 730fce47e5 netfilter: nft_compat: restrict match/target protocol to u16
| * 78909916a2 netfilter: nft_compat: reject unused compat flag
| * b06e067e93 ppp_async: limit MRU to 64K
| * 19d7314f2f tipc: Check the bearer type before calling tipc_udp_nl_bearer_add()
| * 09e91f3e7e rxrpc: Fix response to PING RESPONSE ACKs to a dead call
| * 88081ba415 inet: read sk->sk_family once in inet_recv_error()
| * 7e42379d29 hwmon: (coretemp) Fix bogus core_id to attr name mapping
| * f0da068c75 hwmon: (coretemp) Fix out-of-bounds memory access
| * 9551de5caa hwmon: (aspeed-pwm-tacho) mutex for tach reading
| * edfd328fe7 atm: idt77252: fix a memleak in open_card_ubr0
| * e77bf828f1 tunnels: fix out of bounds access when building IPv6 PMTU error
| * fd473100bf selftests: net: avoid just another constant wait
| * 2fc45a4631 net: stmmac: xgmac: fix handling of DPP safety error for DMA channels
| * 66c8243e61 drm/msm/dp: return correct Colorimetry for DP_TEST_DYNAMIC_RANGE_CEA case
| * be3b82e487 phy: ti: phy-omap-usb2: Fix NULL pointer dereference for SRP
| * 784d315482 dmaengine: fix is_slave_direction() return false when DMA_DEV_TO_DEV
| * 68459d2b0c phy: renesas: rcar-gen3-usb2: Fix returning wrong error code
| * ae6769ba51 dmaengine: fsl-qdma: Fix a memory leak related to the queue command DMA
| * fbe1c5c6a8 dmaengine: fsl-qdma: Fix a memory leak related to the status queue DMA
| * 3496a1da71 dmaengine: ti: k3-udma: Report short packet errors
| * b7dbf4115b dmaengine: fsl-dpaa2-qdma: Fix the size of dma pools
| * 6db18971f7 PM: sleep: Fix error handling in dpm_prepare()
| * 6388d0e320 uapi: stddef.h: Fix __DECLARE_FLEX_ARRAY for C++
| * 2563e7c687 bonding: remove print in bond_verify_device_path
| * d1a9900e64 HID: apple: Add 2021 magic keyboard FN key mapping
| * b1e3ea7c48 HID: apple: Add support for the 2021 Magic Keyboard
| * e5eca7954a net: sysfs: Fix /sys/class/net/<iface> path
| * f199018dc7 af_unix: fix lockdep positive in sk_diag_dump_icons()
| * 9c9cab01c7 net: ipv4: fix a memleak in ip_setup_cork
| * 65ee90efc9 netfilter: nft_ct: sanitize layer 3 and 4 protocol number in custom expectations
| * 32fa7abb18 netfilter: nf_log: replace BUG_ON by WARN_ON_ONCE when putting logger
| * d0b5b1f124 llc: call sock_orphan() at release time
| * e34c91e7e8 ipv6: Ensure natural alignment of const ipv6 loopback and router addresses
| * b45fae96bd ixgbe: Fix an error handling path in ixgbe_read_iosf_sb_reg_x550()
| * f8bccfa175 ixgbe: Refactor overtemp event handling
| * e16c254f60 ixgbe: Refactor returning internal error codes
| * 2499c0661b ixgbe: Remove non-inclusive language
| * f48bf9a83b tcp: add sanity checks to rx zerocopy
| * 14690e419b net-zerocopy: Refactor frag-is-remappable test.
| * a9bc32879a ip6_tunnel: make sure to pull inner header in __ip6_tnl_rcv()
| * a57b114a84 ip6_tunnel: use dev_sw_netstats_rx_add()
| * f5944853f7 scsi: core: Move scsi_host_busy() out of host lock for waking up EH handler
| * 7efadce40a scsi: core: Introduce enum scsi_disposition
| * dca11bfa01 scsi: isci: Fix an error code problem in isci_io_request_build()
| * 948090f66a drm: using mul_u32_u32() requires linux/math64.h
| * 02161f622d wifi: cfg80211: fix RCU dereference in __cfg80211_bss_update
| * b54eecdc08 perf: Fix the nr_addr_filters fix
| * 73eda26931 drm/amdgpu: Release 'adev->pm.fw' before return in 'amdgpu_device_need_post()'
| * feacc80040 drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 'get_platform_power_management_table()'
| * e016e35846 ceph: fix deadlock or deadcode of misusing dget()
| * 7610ba1319 blk-mq: fix IO hang from sbitmap wakeup race
| * 27ae156e63 virtio_net: Fix "‘%d’ directive writing between 1 and 11 bytes into a region of size 10" warnings
| * 0079078f5e libsubcmd: Fix memory leak in uniq()
| * 32a8243788 PCI/AER: Decode Requester ID when no error info found
| * feaf0752b3 fs/kernfs/dir: obey S_ISGID
| * 6f921430b0 tty: allow TIOCSLCKTRMIOS with CAP_CHECKPOINT_RESTORE
| * e962b59d37 usb: hub: Replace hardcoded quirk value with BIT() macro
| * 4a5d0528cf PCI: switchtec: Fix stdev_release() crash after surprise hot remove
| * 385e49a40f PCI: Only override AMD USB controller if required
| * bb59b30a5c mfd: ti_am335x_tscadc: Fix TI SoC dependencies
| * e4fdf3b176 xen/gntdev: Fix the abuse of underlying struct page in DMA-buf import
| * 89bdf3a9f9 i3c: master: cdns: Update maximum prescaler value for i2c clock
| * b345f330ae um: net: Fix return type of uml_net_start_xmit()
| * ef21984653 um: Don't use vfprintf() for os_info()
| * e4cc555388 um: Fix naming clash between UML and scheduler
| * d47f5d41d8 leds: trigger: panic: Don't register panic notifier if creating the trigger failed
| * 8342ac4a55 drm/amdgpu: Drop 'fence' check in 'to_amdgpu_amdkfd_fence()'
| * 48bb06f8e3 drm/amdgpu: Let KFD sync with VM fences
| * e90c8f9785 watchdog: it87_wdt: Keep WDTCTRL bit 3 unmodified for IT8784/IT8786
| * 6f59516a36 clk: mmp: pxa168: Fix memory leak in pxa168_clk_init()
| * 2cb6059468 clk: hi3620: Fix memory leak in hi3620_mmc_clk_init()
| * 5fd28ab1c8 drm/msm/dpu: Ratelimit framedone timeout msgs
| * 179fe24bd6 media: ddbridge: fix an error code problem in ddb_probe
| * ac2630fd3c IB/ipoib: Fix mcast list locking
| * 9503ce5f87 drm/exynos: Call drm_atomic_helper_shutdown() at shutdown/unbind time
| * 1eeca000f2 ALSA: hda: intel-dspcfg: add filters for ARL-S and ARL
| * 3841b8a64e ALSA: hda: Intel: add HDA_ARL PCI ID support
| * 56d717aa7b PCI: add INTEL_HDA_ARL to pci_ids.h
| * b68e373dc0 media: rockchip: rga: fix swizzling for RGB formats
| * 32c5e3f808 media: stk1160: Fixed high volume of stk1160_dbg messages
| * 425a441c5c drm/mipi-dsi: Fix detach call without attach
| * 0ec29a0f03 drm/framebuffer: Fix use of uninitialized variable
| * d7b81afa11 drm/drm_file: fix use of uninitialized variable
| * 9a572fc1f6 f2fs: fix write pointers on zoned device after roll forward
| * 7fb8c13273 drm/amd/display: Fix tiled display misalignment
| * 3a1da8abd7 RDMA/IPoIB: Fix error code return in ipoib_mcast_join
| * 13d20b2c20 fast_dput(): handle underflows gracefully
| * 706fb30da0 ASoC: doc: Fix undefined SND_SOC_DAPM_NOPM argument
| * 354785abdf ALSA: hda: Refer to correct stream index at loops
| * 80c69f576f f2fs: fix to check return value of f2fs_reserve_new_block()
| * e474e7a7d6 i40e: Fix VF disable behavior to block all traffic
| * ed6de41473 Bluetooth: L2CAP: Fix possible multiple reject send
| * e1bcd9a42e Bluetooth: qca: Set both WIDEBAND_SPEECH and LE_STATES quirks for QCA2066
| * 27575c2f1f wifi: cfg80211: free beacon_ies when overridden from hidden BSS
| * 40bcbf7d90 wifi: rtlwifi: rtl8723{be,ae}: using calculate_bit_shift()
| * 1632481a99 wifi: rtl8xxxu: Add additional USB IDs for RTL8192EU devices
| * 2131606a5f arm64: dts: qcom: msm8998: Fix 'out-ports' is a required property
| * 4668f3e6ac arm64: dts: qcom: msm8996: Fix 'in-ports' is a required property
| * 82f6e7e68e md: Whenassemble the array, consult the superblock of the freshest device
| * 1746cd95a5 block: prevent an integer overflow in bvec_try_merge_hw_page
| * 1335310a6a net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path
| * 9c51d26ff9 ARM: dts: imx23/28: Fix the DMA controller node name
| * 6c22388d96 ARM: dts: imx23-sansa: Use preferred i2c-gpios properties
| * fb9bdf84b6 ARM: dts: imx27-apf27dev: Fix LED name
| * 1dd3a37909 ARM: dts: imx25/27: Pass timing0
| * 3c2bce8976 ARM: dts: imx25: Fix the iim compatible string
| * 95bc866c11 block/rnbd-srv: Check for unlikely string overflow
| * 03ca1d3d8f ionic: pass opcode to devcmd_wait
| * ba108f3db9 ARM: dts: imx1: Fix sram node
| * 2f22ce556e ARM: dts: imx27: Fix sram node
| * e6c0ea054c ARM: dts: imx: Use flash@0,0 pattern
| * bfbaf1551b ARM: dts: imx25/27-eukrea: Fix RTC node name
| * 24bb6b2647 ARM: dts: rockchip: fix rk3036 hdmi ports node
| * 11c1fc73bf bpf: Set uattr->batch.count as zero before batched update or deletion
| * 2e7f8d05ec scsi: libfc: Fix up timeout error in fc_fcp_rec_error()
| * a72670f465 scsi: libfc: Don't schedule abort twice
| * 80700978cb bpf: Add map and need_defer parameters to .map_fd_put_ptr()
| * 84770a996a wifi: ath9k: Fix potential array-index-out-of-bounds read in ath9k_htc_txstatus()
| * c390b6a2c3 ARM: dts: imx7s: Fix nand-controller #size-cells
| * d7cb295b53 ARM: dts: imx7s: Fix lcdif compatible
| * 73ead7a37a ARM: dts: imx7d: Fix coresight funnel ports
| * 86781b3a8e scsi: arcmsr: Support new PCI device IDs 1883 and 1886
| * db516f6030 bonding: return -ENOMEM instead of BUG in alb_upper_dev_walk
| * 4f87b8d932 PCI: Add no PM reset quirk for NVIDIA Spectrum devices
| * 9bc7617a0d scsi: lpfc: Fix possible file string name overflow when updating firmware
| * 9b9bbba16b selftests/bpf: Fix pyperf180 compilation failure with clang18
| * 747838941f selftests/bpf: satisfy compiler by having explicit return in btf test
| * 69e905beca wifi: rt2x00: restart beacon queue when hardware reset
| * cfbbb3199e ext4: avoid online resizing failures due to oversized flex bg
| * e7b9fa6c29 ext4: remove unnecessary check from alloc_flex_gd()
| * b960192422 ext4: unify the type of flexbg_size to unsigned int
| * 64448275f8 ext4: fix inconsistent between segment fstrim and full fstrim
| * 5183595c0b ecryptfs: Reject casefold directory inodes
| * c430e6bb43 SUNRPC: Fix a suspicious RCU usage warning
| * 150a3a3871 KVM: s390: fix setting of fpc register
| * 856caf2730 s390/ptrace: handle setting of fpc register correctly
| * e2b77d107b jfs: fix array-index-out-of-bounds in diNewExt
| * 5f1f459520 rxrpc_find_service_conn_rcu: fix the usage of read_seqbegin_or_lock()
| * ae53c54ed7 afs: fix the usage of read_seqbegin_or_lock() in afs_find_server*()
| * a02356d996 afs: fix the usage of read_seqbegin_or_lock() in afs_lookup_volume_rcu()
| * 108c4db057 crypto: stm32/crc32 - fix parsing list of devices
| * a63e48cd83 pstore/ram: Fix crash when setting number of cpus to an odd number
| * bc6ef64dbe jfs: fix uaf in jfs_evict_inode
| * 2037cb9d95 jfs: fix array-index-out-of-bounds in dbAdjTree
| * 1c40ca3d39 jfs: fix slab-out-of-bounds Read in dtSearch
| * 7aa3385447 UBSAN: array-index-out-of-bounds in dtSplitRoot
| * de34de6e57 FS:JFS:UBSAN:array-index-out-of-bounds in dbAdjTree
| * 95c864c811 ACPI: APEI: set memory failure flags as MF_ACTION_REQUIRED on synchronous events
| * 3399cc7013 PM / devfreq: Synchronize devfreq_monitor_[start/stop]
| * b17a71435e ACPI: extlog: fix NULL pointer dereference check
| * c261594853 PNP: ACPI: fix fortify warning
| * 3a13ed6298 ACPI: video: Add quirk for the Colorful X15 AT 23 Laptop
| * c74b2af2cc audit: Send netlink ACK before setting connection in auditd_set
| * 37e00ed71e regulator: core: Only increment use_count when enable_count changes
| * 19c7132270 debugobjects: Stop accessing objects after releasing hash bucket lock
| * c57cb397fe perf/core: Fix narrow startup race when creating the perf nr_addr_filters sysfs file
| * 5224b9db24 x86/mce: Mark fatal MCE's page as poison to avoid panic in the kdump kernel
| * beee482cc4 powerpc/lib: Validate size for vector operations
| * 24a58abcff powerpc: pmd_move_must_withdraw() is only needed for CONFIG_TRANSPARENT_HUGEPAGE
| * 02e5b2ff47 x86/boot: Ignore NMIs during very early boot
| * 9d06c199d8 powerpc/mm: Fix build failures due to arch_reserved_kernel_pages()
| * 3928c06363 powerpc: Fix build error due to is_valid_bugaddr()
| * 353496cb35 drivers/perf: pmuv3: don't expose SW_INCR event in sysfs
| * aa28eecb43 powerpc/mm: Fix null-pointer dereference in pgtable_cache_add
| * 4e806600eb x86/entry/ia32: Ensure s32 is sign extended to s64
| * cdc01845df tick/sched: Preserve number of idle sleeps across CPU hotplug events
| * 3736a7832b mips: Call lose_fpu(0) before initializing fcr31 in mips_set_personality_nan
| * 95a8a5193e spi: bcm-qspi: fix SFDP BFPT read by usig mspi read
| * f1ba5bf9e0 gpio: eic-sprd: Clear interrupt after set the interrupt type
| * 0924bcd2fd drm/exynos: gsc: minor fix for loop iteration in gsc_runtime_resume
| * b6abe30de3 drm/exynos: fix accidental on-stack copy of exynos_drm_plane
| * 4e56c5a9b9 drm: panel-simple: add missing bus flags for Tianma tm070jvhg[30/33]
| * e1c50b0c62 btrfs: avoid copying BTRFS_ROOT_SUBVOL_DEAD flag to snapshot of subvolume being deleted
| * d073f4608b btrfs: remove err variable from btrfs_delete_subvolume
| * 90ad17575d mm/sparsemem: fix race in accessing memory_section->usage
| * 74a80f8dda mm: use __pfn_to_section() instead of open coding it
| * 43872f44ee media: mtk-jpeg: Fix use after free bug due to error path handling in mtk_jpeg_dec_device_run
| * 9087d0c2ba arm64: dts: qcom: sc7180: fix USB wakeup interrupt types
| * 3de807b140 arm64: dts: qcom: sc7180: Use pdc interrupts for USB instead of GIC interrupts
| * 8b2c7bb605 ARM: dts: samsung: exynos4210-i9100: Unconditionally enable LDO12
| * 162ae0e78b pipe: wakeup wr_wait after setting max_usage
| * b6f27626f5 fs/pipe: move check to pipe_has_watch_queue()
| * f46eb83238 PM: sleep: Fix possible deadlocks in core system-wide PM code
| * 8b604883d4 PM: core: Remove unnecessary (void *) conversions
| * 57df40f800 PM: sleep: Avoid calling put_device() under dpm_list_mtx
| * 2245a84985 PM: sleep: Use dev_printk() when possible
| * 8a6a51b80b drm/bridge: nxp-ptn3460: simplify some error checking
| * bedbbdf056 drm/tidss: Fix atomic_flush check
| * ea19252691 drm/bridge: nxp-ptn3460: fix i2c_master_send() error checking
| * f55261469b drm: Don't unref the same fb many times by mistake due to deadlock handling
| * bb575bc3e7 gpiolib: acpi: Ignore touchpad wakeup on GPD G1619-04
| * 55a60251fa netfilter: nf_tables: reject QUEUE/DROP verdict parameters
| * 9489e214ea netfilter: nft_chain_filter: handle NETDEV_UNREGISTER for inet/ingress basechain
| * 05dd9facfb wifi: iwlwifi: fix a memory corruption
| * c0760a5c3e exec: Fix error handling in begin_new_exec()
| * 30f38928b6 rbd: don't move requests to the running list on errors
| * 2bdf872bcf btrfs: don't abort filesystem when attempting to snapshot deleted subvolume
| * 5d3687baa9 btrfs: defrag: reject unknown flags of btrfs_ioctl_defrag_range_args
| * f27937426b btrfs: don't warn if discard range is not aligned to sector
| * f8a7a51a6c btrfs: tree-checker: fix inline ref size in error messages
| * be90e25880 btrfs: ref-verify: free ref cache before clearing mount opt
| * 7c3a572e15 net: fec: fix the unhandled context fault from smmu
| * a52b2faf60 fjes: fix memleaks in fjes_hw_setup
| * e1bf3ec97a selftests: netdevsim: fix the udp_tunnel_nic test
| * 83f99138bf net: mvpp2: clear BM pool before initialization
| * 6a2e2d9890 netfilter: nf_tables: validate NFPROTO_* family
| * 4fbdc3a18f netfilter: nf_tables: restrict anonymous set and map names to 16 bytes
| * cf116d9c3c net/mlx5e: fix a double-free in arfs_create_groups
| * 1123661a08 net/mlx5: DR, Use the right GVMI number for drop action
| * a3eba5989f ipv6: init the accept_queue's spinlocks in inet6_create
| * be8d1f619e netlink: fix potential sleeping issue in mqueue_flush_file
| * 69ca75e063 tcp: Add memory barrier to tcp_push()
| * 8499e2f121 afs: Hide silly-rename files from userspace
| * ef70dfa0b1 tracing: Ensure visibility when inserting an element into tracing_map
| * 5ae8d50044 net/rds: Fix UBSAN: array-index-out-of-bounds in rds_cmsg_recv
| * 9ccdef19cf llc: Drop support for ETH_P_TR_802_2.
| * 04f2a74b56 llc: make llc_ui_sendmsg() more robust against bonding changes
| * ea4c3cb7fd vlan: skip nested type that is not IFLA_VLAN_QOS_MAPPING
| * fc74f86a33 bnxt_en: Wait for FLR to complete during probe
| * bc99dcedd2 tcp: make sure init the accept_queue's spinlocks once
| * 5fed92ca32 net/smc: fix illegal rmb_desc access in SMC-D connection dump
| * c71e1c1a08 KVM: use __vcalloc for very large allocations
| * 95670878a6 mm: vmalloc: introduce array allocation functions
| * 02f629bb46 smb3: Replace smb2pdu 1-element arrays with flex-arrays
| * 443b16ee3d stddef: Introduce DECLARE_FLEX_ARRAY() helper
| * bfc0647791 block: Remove special-casing of compound pages
| * ff4332f1ec rename(): fix the locking of subdirectories
| * d132010e6d ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path
| * c6e6640784 nouveau/vmm: don't set addr on the fail path to avoid warning
| * 83217f1bcb rtc: Adjust failure return code for cmos_set_alarm()
| * b51578bd86 mmc: mmc_spi: remove custom DMA mapped buffers
| * 59020bf099 mmc: core: Use mrq.sbc in close-ended ffu
| * 625cb3f3bc scripts/get_abi: fix source path leak
| * 311dc5afad lsm: new security_file_ioctl_compat() hook
| * f726690397 arm64: dts: qcom: sdm845: fix USB DP/DM HS PHY interrupts
| * dfc2c685f3 arm64: dts: qcom: sdm845: fix USB wakeup interrupt types
| * ac4dcccbe9 async: Introduce async_schedule_dev_nocall()
| * 9ef68b58fd async: Split async_schedule_node_domain()
| * 1dd8449e20 parisc/firmware: Fix F-extend for PDC addresses
| * 20a6dea2d1 bus: mhi: host: Drop chan lock before queuing buffers
| * 69ca89d80f rpmsg: virtio: Free driver_override when rpmsg_remove()
| * cd51e26a3b crypto: s390/aes - Fix buffer overread in CTR mode
| * c6a8111aac hwrng: core - Fix page fault dead lock on mmap-ed hwrng
| * 981a31b754 PM: hibernate: Enforce ordering during image compression/decompression
| * 462c383e73 crypto: api - Disallow identical driver names
| * fa94912241 ext4: allow for the last group to be marked as trimmed
| * d173ef1255 iio:adc:ad7091r: Move exports into IIO_AD7091R namespace.
| * 9de69732dd dmaengine: fix NULL pointer in channel unregistration function
| * 653d289060 iio: adc: ad7091r: Enable internal vref if external vref is not supplied
| * 1eba6f7ffa iio: adc: ad7091r: Allow users to configure device events
| * 9ec7498a25 iio: adc: ad7091r: Set alert bit in config register
| * be5d6a297d serial: sc16is7xx: add check for unsupported SPI modes during probe
| * 8df2aec94b spi: introduce SPI_MODE_X_MASK macro
| * 6ec08ce3bf serial: sc16is7xx: set safe default SPI clock frequency
| * e83f114994 units: add the HZ macros
| * 762217e973 units: change from 'L' to 'UL'
| * f37f4a0c53 PCI: mediatek: Clear interrupt status before dispatching handler
| * 490eaca842 usb: cdns3: Fix uvc fail when DMA cross 4k boundery since sg enabled
| * bf70321419 usb: cdns3: fix iso transfer error when mult is not zero
| * 6aec2f089d usb: cdns3: fix incorrect calculation of ep_buf_size when more than one config
| * 2fdc98b05c usb: cdns3: fix uvc failure work since sg support enabled
| * 67d3c71cf8 usb: cdns3: Fixes for sparse warnings
* bb4ccced84 Merge branch 'android12-5.10' into branch 'android12-5.10-lts'

Change-Id: I426dde9c00dda717bda1273bfda50890d07f6610
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-05-30 15:24:20 +00:00
Dezhi Huang
33c78af45a ANDROID: add vendor hook in do_read_fault to tune fault_around_bytes
with this vendor_hook, oem can dynamically adjust fault_around_bytes to
balance memory usage and performance

Bug: 340744332
Change-Id: I24414c7ba7e77ae06ce5e8cf52377c3485185cfe
Signed-off-by: Dezhi Huang <huangdezhi@hihonor.com>
2024-05-16 16:19:54 +00:00
Carlos Llamas
48a1f83ca9 binder: check offset alignment in binder_get_object()
commit aaef73821a3b0194a01bd23ca77774f704a04d40 upstream.

Commit 6d98eb95b450 ("binder: avoid potential data leakage when copying
txn") introduced changes to how binder objects are copied. In doing so,
it unintentionally removed an offset alignment check done through calls
to binder_alloc_copy_from_buffer() -> check_buffer().

These calls were replaced in binder_get_object() with copy_from_user(),
so now an explicit offset alignment check is needed here. This avoids
later complications when unwinding the objects gets harder.

It is worth noting this check existed prior to commit 7a67a39320
("binder: add function to copy binder object from buffer"), likely
removed due to redundancy at the time.

Fixes: 6d98eb95b450 ("binder: avoid potential data leakage when copying txn")
Cc: stable@vger.kernel.org
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Acked-by: Todd Kjos <tkjos@google.com>
Link: https://lore.kernel.org/r/20240330190115.1877819-1-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-05-02 16:23:38 +02:00
Greg Kroah-Hartman
66e91da883 Merge 5.10.210 into android12-5.10-lts
Changes in 5.10.210
	usb: cdns3: Fixes for sparse warnings
	usb: cdns3: fix uvc failure work since sg support enabled
	usb: cdns3: fix incorrect calculation of ep_buf_size when more than one config
	usb: cdns3: fix iso transfer error when mult is not zero
	usb: cdns3: Fix uvc fail when DMA cross 4k boundery since sg enabled
	PCI: mediatek: Clear interrupt status before dispatching handler
	units: change from 'L' to 'UL'
	units: add the HZ macros
	serial: sc16is7xx: set safe default SPI clock frequency
	spi: introduce SPI_MODE_X_MASK macro
	serial: sc16is7xx: add check for unsupported SPI modes during probe
	iio: adc: ad7091r: Set alert bit in config register
	iio: adc: ad7091r: Allow users to configure device events
	iio: adc: ad7091r: Enable internal vref if external vref is not supplied
	dmaengine: fix NULL pointer in channel unregistration function
	iio:adc:ad7091r: Move exports into IIO_AD7091R namespace.
	ext4: allow for the last group to be marked as trimmed
	crypto: api - Disallow identical driver names
	PM: hibernate: Enforce ordering during image compression/decompression
	hwrng: core - Fix page fault dead lock on mmap-ed hwrng
	crypto: s390/aes - Fix buffer overread in CTR mode
	rpmsg: virtio: Free driver_override when rpmsg_remove()
	bus: mhi: host: Drop chan lock before queuing buffers
	parisc/firmware: Fix F-extend for PDC addresses
	async: Split async_schedule_node_domain()
	async: Introduce async_schedule_dev_nocall()
	arm64: dts: qcom: sdm845: fix USB wakeup interrupt types
	arm64: dts: qcom: sdm845: fix USB DP/DM HS PHY interrupts
	lsm: new security_file_ioctl_compat() hook
	scripts/get_abi: fix source path leak
	mmc: core: Use mrq.sbc in close-ended ffu
	mmc: mmc_spi: remove custom DMA mapped buffers
	rtc: Adjust failure return code for cmos_set_alarm()
	nouveau/vmm: don't set addr on the fail path to avoid warning
	ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path
	rename(): fix the locking of subdirectories
	block: Remove special-casing of compound pages
	stddef: Introduce DECLARE_FLEX_ARRAY() helper
	smb3: Replace smb2pdu 1-element arrays with flex-arrays
	mm: vmalloc: introduce array allocation functions
	KVM: use __vcalloc for very large allocations
	net/smc: fix illegal rmb_desc access in SMC-D connection dump
	tcp: make sure init the accept_queue's spinlocks once
	bnxt_en: Wait for FLR to complete during probe
	vlan: skip nested type that is not IFLA_VLAN_QOS_MAPPING
	llc: make llc_ui_sendmsg() more robust against bonding changes
	llc: Drop support for ETH_P_TR_802_2.
	net/rds: Fix UBSAN: array-index-out-of-bounds in rds_cmsg_recv
	tracing: Ensure visibility when inserting an element into tracing_map
	afs: Hide silly-rename files from userspace
	tcp: Add memory barrier to tcp_push()
	netlink: fix potential sleeping issue in mqueue_flush_file
	ipv6: init the accept_queue's spinlocks in inet6_create
	net/mlx5: DR, Use the right GVMI number for drop action
	net/mlx5e: fix a double-free in arfs_create_groups
	netfilter: nf_tables: restrict anonymous set and map names to 16 bytes
	netfilter: nf_tables: validate NFPROTO_* family
	net: mvpp2: clear BM pool before initialization
	selftests: netdevsim: fix the udp_tunnel_nic test
	fjes: fix memleaks in fjes_hw_setup
	net: fec: fix the unhandled context fault from smmu
	btrfs: ref-verify: free ref cache before clearing mount opt
	btrfs: tree-checker: fix inline ref size in error messages
	btrfs: don't warn if discard range is not aligned to sector
	btrfs: defrag: reject unknown flags of btrfs_ioctl_defrag_range_args
	btrfs: don't abort filesystem when attempting to snapshot deleted subvolume
	rbd: don't move requests to the running list on errors
	exec: Fix error handling in begin_new_exec()
	wifi: iwlwifi: fix a memory corruption
	netfilter: nft_chain_filter: handle NETDEV_UNREGISTER for inet/ingress basechain
	netfilter: nf_tables: reject QUEUE/DROP verdict parameters
	gpiolib: acpi: Ignore touchpad wakeup on GPD G1619-04
	drm: Don't unref the same fb many times by mistake due to deadlock handling
	drm/bridge: nxp-ptn3460: fix i2c_master_send() error checking
	drm/tidss: Fix atomic_flush check
	drm/bridge: nxp-ptn3460: simplify some error checking
	PM: sleep: Use dev_printk() when possible
	PM: sleep: Avoid calling put_device() under dpm_list_mtx
	PM: core: Remove unnecessary (void *) conversions
	PM: sleep: Fix possible deadlocks in core system-wide PM code
	fs/pipe: move check to pipe_has_watch_queue()
	pipe: wakeup wr_wait after setting max_usage
	ARM: dts: samsung: exynos4210-i9100: Unconditionally enable LDO12
	arm64: dts: qcom: sc7180: Use pdc interrupts for USB instead of GIC interrupts
	arm64: dts: qcom: sc7180: fix USB wakeup interrupt types
	media: mtk-jpeg: Fix use after free bug due to error path handling in mtk_jpeg_dec_device_run
	mm: use __pfn_to_section() instead of open coding it
	mm/sparsemem: fix race in accessing memory_section->usage
	btrfs: remove err variable from btrfs_delete_subvolume
	btrfs: avoid copying BTRFS_ROOT_SUBVOL_DEAD flag to snapshot of subvolume being deleted
	drm: panel-simple: add missing bus flags for Tianma tm070jvhg[30/33]
	drm/exynos: fix accidental on-stack copy of exynos_drm_plane
	drm/exynos: gsc: minor fix for loop iteration in gsc_runtime_resume
	gpio: eic-sprd: Clear interrupt after set the interrupt type
	spi: bcm-qspi: fix SFDP BFPT read by usig mspi read
	mips: Call lose_fpu(0) before initializing fcr31 in mips_set_personality_nan
	tick/sched: Preserve number of idle sleeps across CPU hotplug events
	x86/entry/ia32: Ensure s32 is sign extended to s64
	powerpc/mm: Fix null-pointer dereference in pgtable_cache_add
	drivers/perf: pmuv3: don't expose SW_INCR event in sysfs
	powerpc: Fix build error due to is_valid_bugaddr()
	powerpc/mm: Fix build failures due to arch_reserved_kernel_pages()
	x86/boot: Ignore NMIs during very early boot
	powerpc: pmd_move_must_withdraw() is only needed for CONFIG_TRANSPARENT_HUGEPAGE
	powerpc/lib: Validate size for vector operations
	x86/mce: Mark fatal MCE's page as poison to avoid panic in the kdump kernel
	perf/core: Fix narrow startup race when creating the perf nr_addr_filters sysfs file
	debugobjects: Stop accessing objects after releasing hash bucket lock
	regulator: core: Only increment use_count when enable_count changes
	audit: Send netlink ACK before setting connection in auditd_set
	ACPI: video: Add quirk for the Colorful X15 AT 23 Laptop
	PNP: ACPI: fix fortify warning
	ACPI: extlog: fix NULL pointer dereference check
	PM / devfreq: Synchronize devfreq_monitor_[start/stop]
	ACPI: APEI: set memory failure flags as MF_ACTION_REQUIRED on synchronous events
	FS:JFS:UBSAN:array-index-out-of-bounds in dbAdjTree
	UBSAN: array-index-out-of-bounds in dtSplitRoot
	jfs: fix slab-out-of-bounds Read in dtSearch
	jfs: fix array-index-out-of-bounds in dbAdjTree
	jfs: fix uaf in jfs_evict_inode
	pstore/ram: Fix crash when setting number of cpus to an odd number
	crypto: stm32/crc32 - fix parsing list of devices
	afs: fix the usage of read_seqbegin_or_lock() in afs_lookup_volume_rcu()
	afs: fix the usage of read_seqbegin_or_lock() in afs_find_server*()
	rxrpc_find_service_conn_rcu: fix the usage of read_seqbegin_or_lock()
	jfs: fix array-index-out-of-bounds in diNewExt
	s390/ptrace: handle setting of fpc register correctly
	KVM: s390: fix setting of fpc register
	SUNRPC: Fix a suspicious RCU usage warning
	ecryptfs: Reject casefold directory inodes
	ext4: fix inconsistent between segment fstrim and full fstrim
	ext4: unify the type of flexbg_size to unsigned int
	ext4: remove unnecessary check from alloc_flex_gd()
	ext4: avoid online resizing failures due to oversized flex bg
	wifi: rt2x00: restart beacon queue when hardware reset
	selftests/bpf: satisfy compiler by having explicit return in btf test
	selftests/bpf: Fix pyperf180 compilation failure with clang18
	scsi: lpfc: Fix possible file string name overflow when updating firmware
	PCI: Add no PM reset quirk for NVIDIA Spectrum devices
	bonding: return -ENOMEM instead of BUG in alb_upper_dev_walk
	scsi: arcmsr: Support new PCI device IDs 1883 and 1886
	ARM: dts: imx7d: Fix coresight funnel ports
	ARM: dts: imx7s: Fix lcdif compatible
	ARM: dts: imx7s: Fix nand-controller #size-cells
	wifi: ath9k: Fix potential array-index-out-of-bounds read in ath9k_htc_txstatus()
	bpf: Add map and need_defer parameters to .map_fd_put_ptr()
	scsi: libfc: Don't schedule abort twice
	scsi: libfc: Fix up timeout error in fc_fcp_rec_error()
	bpf: Set uattr->batch.count as zero before batched update or deletion
	ARM: dts: rockchip: fix rk3036 hdmi ports node
	ARM: dts: imx25/27-eukrea: Fix RTC node name
	ARM: dts: imx: Use flash@0,0 pattern
	ARM: dts: imx27: Fix sram node
	ARM: dts: imx1: Fix sram node
	ionic: pass opcode to devcmd_wait
	block/rnbd-srv: Check for unlikely string overflow
	ARM: dts: imx25: Fix the iim compatible string
	ARM: dts: imx25/27: Pass timing0
	ARM: dts: imx27-apf27dev: Fix LED name
	ARM: dts: imx23-sansa: Use preferred i2c-gpios properties
	ARM: dts: imx23/28: Fix the DMA controller node name
	net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path
	block: prevent an integer overflow in bvec_try_merge_hw_page
	md: Whenassemble the array, consult the superblock of the freshest device
	arm64: dts: qcom: msm8996: Fix 'in-ports' is a required property
	arm64: dts: qcom: msm8998: Fix 'out-ports' is a required property
	wifi: rtl8xxxu: Add additional USB IDs for RTL8192EU devices
	wifi: rtlwifi: rtl8723{be,ae}: using calculate_bit_shift()
	wifi: cfg80211: free beacon_ies when overridden from hidden BSS
	Bluetooth: qca: Set both WIDEBAND_SPEECH and LE_STATES quirks for QCA2066
	Bluetooth: L2CAP: Fix possible multiple reject send
	i40e: Fix VF disable behavior to block all traffic
	f2fs: fix to check return value of f2fs_reserve_new_block()
	ALSA: hda: Refer to correct stream index at loops
	ASoC: doc: Fix undefined SND_SOC_DAPM_NOPM argument
	fast_dput(): handle underflows gracefully
	RDMA/IPoIB: Fix error code return in ipoib_mcast_join
	drm/amd/display: Fix tiled display misalignment
	f2fs: fix write pointers on zoned device after roll forward
	drm/drm_file: fix use of uninitialized variable
	drm/framebuffer: Fix use of uninitialized variable
	drm/mipi-dsi: Fix detach call without attach
	media: stk1160: Fixed high volume of stk1160_dbg messages
	media: rockchip: rga: fix swizzling for RGB formats
	PCI: add INTEL_HDA_ARL to pci_ids.h
	ALSA: hda: Intel: add HDA_ARL PCI ID support
	ALSA: hda: intel-dspcfg: add filters for ARL-S and ARL
	drm/exynos: Call drm_atomic_helper_shutdown() at shutdown/unbind time
	IB/ipoib: Fix mcast list locking
	media: ddbridge: fix an error code problem in ddb_probe
	drm/msm/dpu: Ratelimit framedone timeout msgs
	clk: hi3620: Fix memory leak in hi3620_mmc_clk_init()
	clk: mmp: pxa168: Fix memory leak in pxa168_clk_init()
	watchdog: it87_wdt: Keep WDTCTRL bit 3 unmodified for IT8784/IT8786
	drm/amdgpu: Let KFD sync with VM fences
	drm/amdgpu: Drop 'fence' check in 'to_amdgpu_amdkfd_fence()'
	leds: trigger: panic: Don't register panic notifier if creating the trigger failed
	um: Fix naming clash between UML and scheduler
	um: Don't use vfprintf() for os_info()
	um: net: Fix return type of uml_net_start_xmit()
	i3c: master: cdns: Update maximum prescaler value for i2c clock
	xen/gntdev: Fix the abuse of underlying struct page in DMA-buf import
	mfd: ti_am335x_tscadc: Fix TI SoC dependencies
	PCI: Only override AMD USB controller if required
	PCI: switchtec: Fix stdev_release() crash after surprise hot remove
	usb: hub: Replace hardcoded quirk value with BIT() macro
	tty: allow TIOCSLCKTRMIOS with CAP_CHECKPOINT_RESTORE
	fs/kernfs/dir: obey S_ISGID
	PCI/AER: Decode Requester ID when no error info found
	libsubcmd: Fix memory leak in uniq()
	virtio_net: Fix "‘%d’ directive writing between 1 and 11 bytes into a region of size 10" warnings
	blk-mq: fix IO hang from sbitmap wakeup race
	ceph: fix deadlock or deadcode of misusing dget()
	drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 'get_platform_power_management_table()'
	drm/amdgpu: Release 'adev->pm.fw' before return in 'amdgpu_device_need_post()'
	perf: Fix the nr_addr_filters fix
	wifi: cfg80211: fix RCU dereference in __cfg80211_bss_update
	drm: using mul_u32_u32() requires linux/math64.h
	scsi: isci: Fix an error code problem in isci_io_request_build()
	scsi: core: Introduce enum scsi_disposition
	scsi: core: Move scsi_host_busy() out of host lock for waking up EH handler
	ip6_tunnel: use dev_sw_netstats_rx_add()
	ip6_tunnel: make sure to pull inner header in __ip6_tnl_rcv()
	net-zerocopy: Refactor frag-is-remappable test.
	tcp: add sanity checks to rx zerocopy
	ixgbe: Remove non-inclusive language
	ixgbe: Refactor returning internal error codes
	ixgbe: Refactor overtemp event handling
	ixgbe: Fix an error handling path in ixgbe_read_iosf_sb_reg_x550()
	ipv6: Ensure natural alignment of const ipv6 loopback and router addresses
	llc: call sock_orphan() at release time
	netfilter: nf_log: replace BUG_ON by WARN_ON_ONCE when putting logger
	netfilter: nft_ct: sanitize layer 3 and 4 protocol number in custom expectations
	net: ipv4: fix a memleak in ip_setup_cork
	af_unix: fix lockdep positive in sk_diag_dump_icons()
	net: sysfs: Fix /sys/class/net/<iface> path
	HID: apple: Add support for the 2021 Magic Keyboard
	HID: apple: Add 2021 magic keyboard FN key mapping
	bonding: remove print in bond_verify_device_path
	uapi: stddef.h: Fix __DECLARE_FLEX_ARRAY for C++
	PM: sleep: Fix error handling in dpm_prepare()
	dmaengine: fsl-dpaa2-qdma: Fix the size of dma pools
	dmaengine: ti: k3-udma: Report short packet errors
	dmaengine: fsl-qdma: Fix a memory leak related to the status queue DMA
	dmaengine: fsl-qdma: Fix a memory leak related to the queue command DMA
	phy: renesas: rcar-gen3-usb2: Fix returning wrong error code
	dmaengine: fix is_slave_direction() return false when DMA_DEV_TO_DEV
	phy: ti: phy-omap-usb2: Fix NULL pointer dereference for SRP
	drm/msm/dp: return correct Colorimetry for DP_TEST_DYNAMIC_RANGE_CEA case
	net: stmmac: xgmac: fix handling of DPP safety error for DMA channels
	selftests: net: avoid just another constant wait
	tunnels: fix out of bounds access when building IPv6 PMTU error
	atm: idt77252: fix a memleak in open_card_ubr0
	hwmon: (aspeed-pwm-tacho) mutex for tach reading
	hwmon: (coretemp) Fix out-of-bounds memory access
	hwmon: (coretemp) Fix bogus core_id to attr name mapping
	inet: read sk->sk_family once in inet_recv_error()
	rxrpc: Fix response to PING RESPONSE ACKs to a dead call
	tipc: Check the bearer type before calling tipc_udp_nl_bearer_add()
	ppp_async: limit MRU to 64K
	netfilter: nft_compat: reject unused compat flag
	netfilter: nft_compat: restrict match/target protocol to u16
	netfilter: nft_ct: reject direction for ct id
	netfilter: nft_set_pipapo: store index in scratch maps
	netfilter: nft_set_pipapo: add helper to release pcpu scratch area
	netfilter: nft_set_pipapo: remove scratch_aligned pointer
	scsi: core: Move scsi_host_busy() out of host lock if it is for per-command
	blk-iocost: Fix an UBSAN shift-out-of-bounds warning
	net/af_iucv: clean up a try_then_request_module()
	USB: serial: qcserial: add new usb-id for Dell Wireless DW5826e
	USB: serial: option: add Fibocom FM101-GL variant
	USB: serial: cp210x: add ID for IMST iM871A-USB
	usb: host: xhci-plat: Add support for XHCI_SG_TRB_CACHE_SIZE_QUIRK
	hrtimer: Report offline hrtimer enqueue
	Input: i8042 - fix strange behavior of touchpad on Clevo NS70PU
	Input: atkbd - skip ATKBD_CMD_SETLEDS when skipping ATKBD_CMD_GETID
	vhost: use kzalloc() instead of kmalloc() followed by memset()
	clocksource: Skip watchdog check for large watchdog intervals
	net: stmmac: xgmac: use #define for string constants
	net: stmmac: xgmac: fix a typo of register name in DPP safety handling
	netfilter: nft_set_rbtree: skip end interval element from gc
	btrfs: forbid creating subvol qgroups
	btrfs: do not ASSERT() if the newly created subvolume already got read
	btrfs: forbid deleting live subvol qgroup
	btrfs: send: return EOPNOTSUPP on unknown flags
	of: unittest: Fix compile in the non-dynamic case
	net: openvswitch: limit the number of recursions from action sets
	spi: ppc4xx: Drop write-only variable
	ASoC: rt5645: Fix deadlock in rt5645_jack_detect_work()
	net: sysfs: Fix /sys/class/net/<iface> path for statistics
	MIPS: Add 'memory' clobber to csum_ipv6_magic() inline assembler
	i40e: Fix waiting for queues of all VSIs to be disabled
	tracing/trigger: Fix to return error if failed to alloc snapshot
	mm/writeback: fix possible divide-by-zero in wb_dirty_limits(), again
	ALSA: hda/realtek: Fix the external mic not being recognised for Acer Swift 1 SF114-32
	ALSA: hda/realtek: Enable Mute LED on HP Laptop 14-fq0xxx
	HID: wacom: generic: Avoid reporting a serial of '0' to userspace
	HID: wacom: Do not register input devices until after hid_hw_start
	usb: ucsi_acpi: Fix command completion handling
	USB: hub: check for alternate port before enabling A_ALT_HNP_SUPPORT
	usb: f_mass_storage: forbid async queue when shutdown happen
	media: ir_toy: fix a memleak in irtoy_tx
	powerpc/kasan: Fix addr error caused by page alignment
	i2c: i801: Remove i801_set_block_buffer_mode
	i2c: i801: Fix block process call transactions
	modpost: trim leading spaces when processing source files list
	scsi: Revert "scsi: fcoe: Fix potential deadlock on &fip->ctlr_lock"
	lsm: fix the logic in security_inode_getsecctx()
	firewire: core: correct documentation of fw_csr_string() kernel API
	kbuild: Fix changing ELF file type for output of gen_btf for big endian
	nfc: nci: free rx_data_reassembly skb on NCI device cleanup
	net: hsr: remove WARN_ONCE() in send_hsr_supervision_frame()
	xen-netback: properly sync TX responses
	ALSA: hda/realtek: Enable headset mic on Vaio VJFE-ADL
	binder: signal epoll threads of self-work
	misc: fastrpc: Mark all sessions as invalid in cb_remove
	ext4: fix double-free of blocks due to wrong extents moved_len
	tracing: Fix wasted memory in saved_cmdlines logic
	staging: iio: ad5933: fix type mismatch regression
	iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC
	iio: accel: bma400: Fix a compilation problem
	media: rc: bpf attach/detach requires write permission
	hv_netvsc: Fix race condition between netvsc_probe and netvsc_remove
	ring-buffer: Clean ring_buffer_poll_wait() error return
	serial: max310x: set default value when reading clock ready bit
	serial: max310x: improve crystal stable clock detection
	x86/Kconfig: Transmeta Crusoe is CPU family 5, not 6
	x86/mm/ident_map: Use gbpages only where full GB page should be mapped.
	mmc: slot-gpio: Allow non-sleeping GPIO ro
	ALSA: hda/conexant: Add quirk for SWS JS201D
	nilfs2: fix data corruption in dsync block recovery for small block sizes
	nilfs2: fix hang in nilfs_lookup_dirty_data_buffers()
	crypto: ccp - Fix null pointer dereference in __sev_platform_shutdown_locked
	nfp: use correct macro for LengthSelect in BAR config
	nfp: flower: prevent re-adding mac index for bonded port
	wifi: mac80211: reload info pointer in ieee80211_tx_dequeue()
	irqchip/irq-brcmstb-l2: Add write memory barrier before exit
	irqchip/gic-v3-its: Fix GICv4.1 VPE affinity update
	s390/qeth: Fix potential loss of L3-IP@ in case of network issues
	ceph: prevent use-after-free in encode_cap_msg()
	of: property: fix typo in io-channels
	can: j1939: Fix UAF in j1939_sk_match_filter during setsockopt(SO_J1939_FILTER)
	pmdomain: core: Move the unused cleanup to a _sync initcall
	tracing: Inform kmemleak of saved_cmdlines allocation
	Revert "md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d"
	bus: moxtet: Add spi device table
	PCI: dwc: endpoint: Fix dw_pcie_ep_raise_msix_irq() alignment support
	mips: Fix max_mapnr being uninitialized on early stages
	crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init
	serial: Add rs485_supported to uart_port
	serial: 8250_exar: Fill in rs485_supported
	serial: 8250_exar: Set missing rs485_supported flag
	scripts/decode_stacktrace.sh: silence stderr messages from addr2line/nm
	scripts/decode_stacktrace.sh: support old bash version
	scripts: decode_stacktrace: demangle Rust symbols
	scripts/decode_stacktrace.sh: optionally use LLVM utilities
	netfilter: ipset: fix performance regression in swap operation
	netfilter: ipset: Missing gc cancellations fixed
	hrtimer: Ignore slack time for RT tasks in schedule_hrtimeout_range()
	Revert "arm64: Stash shadow stack pointer in the task struct on interrupt"
	net: prevent mss overflow in skb_segment()
	sched/membarrier: reduce the ability to hammer on sys_membarrier
	nilfs2: fix potential bug in end_buffer_async_write
	nilfs2: replace WARN_ONs for invalid DAT metadata block requests
	dm: limit the number of targets and parameter size area
	PM: runtime: add devm_pm_runtime_enable helper
	PM: runtime: Have devm_pm_runtime_enable() handle pm_runtime_dont_use_autosuspend()
	drm/msm/dsi: Enable runtime PM
	netfilter: nf_tables: fix pointer math issue in nft_byteorder_eval()
	net: bcmgenet: Fix EEE implementation
	PCI: dwc: Fix a 64bit bug in dw_pcie_ep_raise_msix_irq()
	Linux 5.10.210

Change-Id: I5e7327f58dd6abd26ac2b1e328a81c1010d1147c
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-04-10 07:10:03 +00:00
Carlos Llamas
36e3dadee0 FROMLIST: binder: check offset alignment in binder_get_object()
Commit 6d98eb95b450 ("binder: avoid potential data leakage when copying
txn") introduced changes to how binder objects are copied. In doing so,
it unintentionally removed an offset alignment check done through calls
to binder_alloc_copy_from_buffer() -> check_buffer().

These calls were replaced in binder_get_object() with copy_from_user(),
so now an explicit offset alignment check is needed here. This avoids
later complications when unwinding the objects gets harder.

It is worth noting this check existed prior to commit 7a67a39320
("binder: add function to copy binder object from buffer"), likely
removed due to redundancy at the time.

Fixes: 6d98eb95b450 ("binder: avoid potential data leakage when copying txn")
Cc:  <stable@vger.kernel.org>
Acked-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>

Bug: 320661088
Link: https://lore.kernel.org/all/20240330190115.1877819-1-cmllamas@google.com/
Change-Id: Iaddabaa28de7ba7b7d35dbb639d38ca79dbc5077
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2024-04-01 16:07:18 +00:00
Greg Kroah-Hartman
17d3242550 Merge tag 'android12-5.10.209_r00' into android12-5.10
This merges up to the 5.10.209 LTS release into the android12-5.10
branch.  included in here are the following commits:

* f5f23fd864 ANDROID: GKI: db845c: Update symbols list and ABI
*   717f23122d Merge "Merge branch 'android12-5.10' into branch 'android12-5.10-lts'" into android12-5.10-lts
|\
| * 10896fff34 Merge branch 'android12-5.10' into branch 'android12-5.10-lts'
* | 6f5d6d6de5 UPSTREAM: drm/msm/dsi: Enable runtime PM
* | 5a2e61dcbd UPSTREAM: PM: runtime: Have devm_pm_runtime_enable() handle pm_runtime_dont_use_autosuspend()
* | cb06375abb UPSTREAM: PM: runtime: add devm_pm_runtime_enable helper
|/
* 7edcfba384 Revert "clk: fixed-rate: add devm_clk_hw_register_fixed_rate"
* a8a9ceb11a Revert "clk: fixed-rate: fix clk_hw_register_fixed_rate_with_accuracy_parent_hw"
*   7e6944b050 Merge 5.10.209 into android12-5.10-lts
|\
| * 16ad71c250 Linux 5.10.209
| * 66e4f4a847 arm64: dts: armada-3720-turris-mox: set irq type for RTC
| * 2e23761beb i2c: s3c24xx: fix transferring more than one message in polling mode
| * da60686bab i2c: s3c24xx: fix read transfers in polling mode
| * 8ba74e9016 selftests: mlxsw: qos_pfc: Adjust the test to support 8 lanes
| * 3e1ca80659 selftests: mlxsw: qos_pfc: Convert to iproute2 dcb
| * 56750ea5d1 mlxsw: spectrum_acl_tcam: Fix stack corruption
| * a9b233b287 mlxsw: spectrum_acl_tcam: Reorder functions to avoid forward declarations
| * d3669ebc4c mlxsw: spectrum_acl_tcam: Make fini symmetric to init
| * a557dbda64 mlxsw: spectrum_acl_tcam: Add missing mutex_destroy()
| * 936d06d699 mlxsw: spectrum: Use 'bitmap_zalloc()' when applicable
| * e8bfdf6301 mlxsw: spectrum_acl_erp: Fix error flow of pool allocation failure
| * f90b1cebc4 ethtool: netlink: Add missing ethnl_ops_begin/complete
| * b44e1aec80 kdb: Fix a potential buffer overflow in kdb_local()
| * 977c2cf563 ipvs: avoid stat macros calls from preemptible context
| * 00a86f81c8 netfilter: nf_tables: reject NFT_SET_CONCAT with not field length description
| * 9a4d25267d netfilter: nf_tables: skip dead set elements in netlink dump
| * 2d4c0798a1 netfilter: nf_tables: do not allow mismatch field size and set key length
| * b099b495e1 net: dsa: vsc73xx: Add null pointer check to vsc73xx_gpio_probe
| * 6c8a5bbca6 net: ravb: Fix dma_addr_t truncation in error case
| * ba77c8b4e1 net: phy: micrel: populate .soft_reset for KSZ9131
| * 1658d7a7a2 net: ethernet: ti: am65-cpsw: Fix max mtu to fit ethernet frames
| * 2295c22348 net: qualcomm: rmnet: fix global oob in rmnet_policy
| * b55808b96e s390/pci: fix max size calculation in zpci_memcpy_toio()
| * 178b437344 PCI: keystone: Fix race condition when initializing PHYs
| * 0de2e62067 nvmet-tcp: Fix the H2C expected PDU len calculation
| * 172276460a serial: imx: Correct clock error message in function probe()
| * 5ff00408e5 apparmor: avoid crash when parsed profile name is empty
| * 866d32bff0 perf env: Avoid recursively taking env->bpf_progs.lock
| * 39669fae69 nvmet-tcp: fix a crash in nvmet_req_complete()
| * f775f2621c nvmet-tcp: Fix a kernel panic when host sends an invalid H2C PDU length
| * 1550b870ae usb: cdc-acm: return correct error code on unsupported break
| * d7c74b010a tty: use 'if' in send_break() instead of 'goto'
| * 3483ca0390 tty: don't check for signal_pending() in send_break()
| * 2cf81d3440 tty: early return from send_break() on TTY_DRIVER_HARDWARE_BREAK
| * 4e76dbd7c3 tty: change tty_write_lock()'s ndelay parameter to bool
| * abcc25a237 perf genelf: Set ELF program header addresses properly
| * 1e17feb4ad iio: adc: ad9467: fix scale setting
| * a3167e5ab5 iio: adc: ad9467: don't ignore error codes
| * 00e916d998 iio: adc: ad9467: fix reset gpio handling
| * 8083d68401 iio: adc: ad9467: Benefit from devm_clk_get_enabled() to simplify
| * 6e04a9d305 serial: imx: fix tx statemachine deadlock
| * 6746f3e893 software node: Let args be NULL in software_node_get_reference_args
| * 381bea33a8 acpi: property: Let args be NULL in __acpi_node_get_property_reference
| * 7166e8e913 libapi: Add missing linux/types.h header to get the __u64 type on io.h
| * bc57f3ef8a serial: 8250: omap: Don't skip resource freeing if pm_runtime_resume_and_get() failed
| * 89b97e6b19 power: supply: cw2015: correct time_to_empty units in sysfs
| * 5e3995ec39 MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup()
| * c3ed63f6a1 MIPS: Alchemy: Fix an out-of-bound access in db1200_dev_setup()
| * 9995dee8b9 mips: Fix incorrect max_low_pfn adjustment
| * 5cdda6239c mips: dmi: Fix early remap on MIPS32
| * b152868773 leds: aw2013: Select missing dependency REGMAP_I2C
| * 927626a207 mfd: syscon: Fix null pointer dereference in of_syscon_register()
| * c964a0597b HID: wacom: Correct behavior when processing some confidence == false touches
| * c7883c9f83 iio: adc: ad7091r: Pass iio_dev to event handler
| * ba7be66674 KVM: arm64: vgic-its: Avoid potential UAF in LPI translation cache
| * 9b5a278594 KVM: arm64: vgic-v4: Restore pending state on host userspace write
| * 7521ea8f62 x86/kvm: Do not try to disable kvmclock if it was not enabled
| * 322c5fe40f wifi: mwifiex: configure BSSID consistently when starting AP
| * ba8a4fba62 wifi: rtlwifi: Convert LNKCTL change to PCIe cap RMW accessors
| * 3dc3122b0b wifi: rtlwifi: Remove bogus and dangerous ASPM disable/enable code
| * 5e9142b6a2 iommu/arm-smmu-qcom: Add missing GMU entry to match table
| * 394c6c0b6d Bluetooth: Fix atomicity violation in {min,max}_key_size_set
| * 3b8d7a1b85 rootfs: Fix support for rootfstype= when root= is given
| * 8c0b563e9b io_uring/rw: ensure io->bytes_done is always initialized
| * daa61bacd3 pwm: jz4740: Don't use dev_err_probe() in .request()
| * a7d4ec5672 fbdev: flush deferred work in fb_deferred_io_fsync()
| * ff2d54d9cc ALSA: hda/relatek: Enable Mute LED on HP Laptop 15s-fq2xxx
| * b5c2a32621 ALSA: oxygen: Fix right channel of capture volume mixer
| * 57f34589e9 serial: imx: Ensure that imx_uart_rs485_config() is called with enabled clock
| * b7747ca58e usb: mon: Fix atomicity violation in mon_bin_vma_fault
| * 5e5ab50eff usb: typec: class: fix typec_altmode_put_partner to put plugs
| * baaa6d8e3f Revert "usb: typec: class: fix typec_altmode_put_partner to put plugs"
| * f5c09e1d6e usb: chipidea: wait controller resume finished for wakeup irq
| * 084de4c659 Revert "usb: dwc3: don't reset device side if dwc3 was configured as host-only"
| * 1af0423587 Revert "usb: dwc3: Soft reset phy on probe for host"
| * 3253888660 usb: dwc: ep0: Update request status in dwc3_ep0_stall_restart
| * e70b17282a usb: phy: mxs: remove CONFIG_USB_OTG condition for mxs_phy_is_otg_host()
| * d65cade544 tick-sched: Fix idle and iowait sleeptime accounting vs CPU hotplug
| * 7e7a0d8654 binder: fix race between mmput() and do_exit()
| * cce8ba6fa4 xen-netback: don't produce zero-size SKB frags
| * d1e68ad279 net: ethernet: mtk_eth_soc: remove duplicate if statements
| * 8a29463915 kprobes: Fix to handle forcibly unoptimized kprobes on freeing_list
| * c02cdc2c5e Revert "ASoC: atmel: Remove system clock tree configuration for at91sam9g20ek"
| * 79026a2d0a virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session()
| * dfdb686d1b virtio-crypto: fix memory-leak
| * c3b3389ad0 dma-mapping: Fix build error unused-value
| * 0dfe57f1f2 Input: atkbd - use ab83 as id when skipping the getid command
| * c8c1158ffb binder: fix use-after-free in shinker's callback
| * abbb909287 binder: fix unused alloc->free_async_space
| * fa62c9050e binder: fix async space check for 0-sized buffers
| * 4533e7623e keys, dns: Fix size check of V1 server-list header
| * 9e8a31c1aa of: unittest: Fix of_count_phandle_with_args() expected value message
| * d5f490343c of: Fix double free in of_parse_phandle_with_args_map
| * c9ee325bae IB/iser: Prevent invalidating wrong MR
| * bedecbb5a5 mmc: sdhci_omap: Fix TI SoC dependencies
| * 613af7d576 mmc: sdhci_am654: Fix TI SoC dependencies
| * 8da3a51f74 pwm: stm32: Fix enable count for clk in .probe()
| * e33e1bdbe6 pwm: stm32: Use hweight32 in stm32_pwm_detect_channels
| * 5af4ce2a54 pwm: stm32: Use regmap_clear_bits and regmap_set_bits where applicable
| * bed5ec2a59 clk: fixed-rate: fix clk_hw_register_fixed_rate_with_accuracy_parent_hw
| * 764b78b927 clk: fixed-rate: add devm_clk_hw_register_fixed_rate
| * e5236e58cc clk: si5341: fix an error code problem in si5341_output_clk_set_rate
| * 428381fbcb watchdog: rti_wdt: Drop runtime pm reference count when watchdog is unused
| * d83662bb90 watchdog: bcm2835_wdt: Fix WDIOC_SETTIMEOUT handling
| * 6c93290da9 watchdog/hpwdt: Only claim UNKNOWN NMI if from iLO
| * cbc15095d1 watchdog: set cdev owner before adding
| * e4f4a2cb74 drivers: clk: zynqmp: update divider round rate logic
| * af0b86199b clk: zynqmp: Add a check for NULL pointer
| * 45b4ea38c9 clk: zynqmp: make bestdiv unsigned
| * 7fdcd873c0 drivers: clk: zynqmp: calculate closest mux rate
| * 6cccbfafc0 clk: qcom: videocc-sm8150: Add missing PLL config property
| * 84ee04572f clk: qcom: videocc-sm8150: Update the videocc resets
| * 74bbdacf1b dt-bindings: clock: Update the videocc resets for sm8150
| * 0c8ba6937a gpu/drm/radeon: fix two memleaks in radeon_vm_init
| * 520e213a0b drivers/amd/pm: fix a use-after-free in kv_parse_power_table
| * aeed2b4e4a drm/amd/pm: fix a double-free in si_dpm_init
| * d53fee9e34 drm/amdgpu/debugfs: fix error code when smc register accessors are NULL
| * 56a79c68b5 media: dvb-frontends: m88ds3103: Fix a memory leak in an error handling path of m88ds3103_probe()
| * b5ebb9b4c1 media: dvbdev: drop refcount on error path in dvb_device_open()
| * 9284f409e4 f2fs: fix to update iostat correctly in f2fs_filemap_fault()
| * 40d36882c7 f2fs: fix to check compress file in f2fs_move_file_range()
| * b864287581 media: rkisp1: Disable runtime PM in probe error path
| * 962b35733b clk: qcom: gpucc-sm8150: Update the gpu_cc_pll1 config
| * 21a30b5969 media: cx231xx: fix a memleak in cx231xx_init_isoc
| * abd50cebf9 drm/bridge: tc358767: Fix return value on error case
| * 3f6932b5ba drm/radeon/trinity_dpm: fix a memleak in trinity_parse_power_table
| * e646308eda drm/radeon/dpm: fix a memleak in sumo_parse_power_table
| * 57ca798480 drm/radeon: check the alloc_workqueue return value in radeon_crtc_init()
| * c20a6aa0a3 drm/drv: propagate errors from drm_modeset_register_all()
| * da5e0feb12 drm/msm/dsi: Use pm_runtime_resume_and_get to prevent refcnt leaks
| * b704eabe87 drm/msm/mdp4: flush vblank event on disable
| * 96f5856867 ASoC: cs35l34: Fix GPIO name and drop legacy include
| * defe0327f5 ASoC: cs35l33: Fix GPIO name and drop legacy include
| * 1421b06618 drm/radeon: check return value of radeon_ring_lock()
| * 9924469212 drm/radeon/r100: Fix integer overflow issues in r100_cs_track_check()
| * ca267f79a5 drm/radeon/r600_cs: Fix possible int overflows in r600_cs_check_reg()
| * 6f866885e1 f2fs: fix to avoid dirent corruption
| * 13ea8af957 drm/bridge: Fix typo in post_disable() description
| * 3233d8bf78 media: pvrusb2: fix use after free on context disconnection
| * 53926e2a39 drm/bridge: tpd12s015: Drop buggy __exit annotation for remove function
| * 1eb7ceae48 drm/nouveau/fence:: fix warning directly dereferencing a rcu pointer
| * b1a07165be rcu: Create an unrcu_pointer() to remove __rcu from a pointer
| * 1d1d5b90ea drm/panel-elida-kd35t133: hold panel in reset for unprepare
| * 7794c14812 RDMA/usnic: Silence uninitialized symbol smatch warnings
| * d807f4ef22 ARM: davinci: always select CONFIG_CPU_ARM926T
| * da23bd709b ip6_tunnel: fix NEXTHDR_FRAGMENT handling in ip6_tnl_parse_tlv_enc_lim()
| * 4e09df9b24 Bluetooth: btmtkuart: fix recv_buf() return value
| * fd54d16613 Bluetooth: Fix bogus check for re-auth no supported with non-ssp
| * 15be96e1a6 netfilter: nf_tables: mark newset as dead on transaction abort
| * 6f39bea662 wifi: rtlwifi: rtl8192se: using calculate_bit_shift()
| * c713826653 wifi: rtlwifi: rtl8192ee: using calculate_bit_shift()
| * 99f56c3f7c wifi: rtlwifi: rtl8192de: using calculate_bit_shift()
| * b75b68dde5 rtlwifi: rtl8192de: make arrays static const, makes object smaller
| * df14e43219 wifi: rtlwifi: rtl8192ce: using calculate_bit_shift()
| * 016781c16e wifi: rtlwifi: rtl8192cu: using calculate_bit_shift()
| * bf277a76d3 wifi: rtlwifi: rtl8192c: using calculate_bit_shift()
| * 483c975e40 wifi: rtlwifi: rtl8188ee: phy: using calculate_bit_shift()
| * 31b651a7a1 wifi: rtlwifi: add calculate_bit_shift()
| * 64299791d0 dma-mapping: clear dev->dma_mem to NULL after freeing it
| * a6dd109564 dma-mapping: Add dma_release_coherent_memory to DMA API
| * ad43344ab4 virtio/vsock: fix logic which reduces credit update messages
| * 30ae0c6631 selftests/net: fix grep checking for fib_nexthop_multiprefix
| * 7a0f8295e7 scsi: hisi_sas: Replace with standard error code return value
| * afea95d319 bpf: Fix verification of indirect var-off stack access
| * 419ab8f74a arm64: dts: qcom: sdm845-db845c: correct LED panic indicator
| * 812cebdc5f arm64: dts: qcom: qrb5165-rb5: correct LED panic indicator
| * ba31bb08c1 scsi: fnic: Return error if vmalloc() failed
| * 2757f17972 bpf: fix check for attempt to corrupt spilled pointer
| * 7e98bbeb07 arm64: dts: ti: k3-am65-main: Fix DSS irq trigger type
| * d49863ed28 wifi: rtlwifi: rtl8821ae: phy: fix an undefined bitwise shift behavior
| * 2799324d92 firmware: meson_sm: populate platform devices from sm device tree data
| * 3959dbb375 firmware: ti_sci: Fix an off-by-one in ti_sci_debugfs_create()
| * 01f9feb5ed net/ncsi: Fix netlink major/minor version numbers
| * 7bcddd12a9 ncsi: internal.h: Fix a spello
| * ae98b7f7bb ARM: dts: qcom: apq8064: correct XOADC register address
| * 4675cacd6b wifi: libertas: stop selecting wext
| * 24d8aef5d9 wifi: ath11k: Defer on rproc_get failure
| * 91f3111558 bpf: Add crosstask check to __bpf_get_stack
| * d5d181df8d bpf, lpm: Fix check prefixlen before walking trie
| * eb0eac5736 wifi: rtw88: fix RX filter in FIF_ALLMULTI flag
| * d8caf15ab1 NFSv4.1/pnfs: Ensure we handle the error NFS4ERR_RETURNCONFLICT
| * 722c700dd8 blocklayoutdriver: Fix reference leak of pnfs_device_node
| * 4518dc468c crypto: scomp - fix req->dst buffer overflow
| * 1798c8fd00 crypto: sahara - do not resize req->src when doing hash operations
| * 67ae336f3b crypto: sahara - fix processing hash requests with req->nbytes < sg->length
| * b3287c8a7e crypto: sahara - improve error handling in sahara_sha_process()
| * 98985edab6 crypto: sahara - fix wait_for_completion_timeout() error handling
| * 69451bf97c crypto: sahara - fix ahash reqsize
| * d8d9580831 crypto: sahara - handle zero-length aes requests
| * b839648d05 crypto: sahara - avoid skcipher fallback code duplication
| * 14f57a013a crypto: virtio - Wait for tasklet to complete on device remove
| * 5c28478af3 gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump
| * 57c7b331f0 gfs2: Also reflect single-block allocations in rgd->rd_extfail_pt
| * 22f63f9bc8 Revert "gfs2: Don't reject a supposedly full bitmap if we have blocks reserved"
| * cd48d2a8e6 fs: indicate request originates from old mount API
| * acd413da3e pstore: ram_core: fix possible overflow in persistent_ram_init_ecc()
| * c60fd7a663 crypto: sahara - fix error handling in sahara_hw_descriptor_create()
| * 25b7ca747b crypto: sahara - fix processing requests with cryptlen < sg->length
| * fc91d32c7d crypto: sahara - fix ahash selftest failure
| * 4f4786b818 crypto: sahara - fix cbc selftest failure
| * ccdb86c339 crypto: sahara - remove FLAGS_NEW_KEY logic
| * 7f807dc073 crypto: af_alg - Disallow multiple in-flight AIO requests
| * 97f9d0455b crypto: ccp - fix memleak in ccp_init_dm_workarea
| * 95586bb74b crypto: sa2ul - Return crypto_aead_setkey to transfer the error
| * 0eb69890e8 crypto: virtio - Handle dataq logic with tasklet
| * 0dee72f9b7 virtio-crypto: wait ctrl queue instead of busy polling
| * 4ee475e76b virtio-crypto: use private buffer for control request
| * 7d386768ef virtio-crypto: change code style
| * 1ff5742889 virtio-crypto: implement RSA algorithm
| * f32dfee5a6 virtio-crypto: introduce akcipher service
| * b2092cdcda virtio_crypto: Introduce VIRTIO_CRYPTO_NOSPC
| * 1bc7a682ed selinux: Fix error priority for bind with AF_UNSPEC on PF_INET6 socket
| * 001a3f59d8 mtd: Fix gluebi NULL pointer dereference caused by ftl notifier
| * 1d7b39c842 ACPI: extlog: Clear Extended Error Log status when RAS_CEC handled the error
| * 46e3dc02a4 spi: sh-msiof: Enforce fixed DTDL for R-Car H3
| * 94c742324e efivarfs: force RO when remounting if SetVariable is not supported
| * 44a88650ba calipso: fix memory leak in netlbl_calipso_add_pass()
| * 5ac84b01a0 netlabel: remove unused parameter in netlbl_netlink_auditinfo()
| * 47210a5754 net: netlabel: Fix kerneldoc warnings
| * d5ce66bdf6 cpufreq: scmi: process the result of devm_of_clk_add_hw_provider()
| * fda1309205 cpufreq: Use of_property_present() for testing DT property presence
| * ba7c7e3530 of: Add of_property_present() helper
| * ded221bf4c of: property: define of_property_read_u{8,16,32,64}_array() unconditionally
| * f39c3d578c ACPI: LPIT: Avoid u32 multiplication overflow
| * c4e1a0ef0b ACPI: video: check for error while searching for backlight device parent
| * 11ac297aba mtd: rawnand: Increment IFC_TIMEOUT_MSECS for nand controller response
| * f8df7c9886 spi: spi-zynqmp-gqspi: fix driver kconfig dependencies
| * 5a669f3511 powerpc/imc-pmu: Add a null pointer check in update_events_in_group()
| * a67a04ad05 powerpc/powernv: Add a null pointer check in opal_powercap_init()
| * e6ad05e3ae powerpc/powernv: Add a null pointer check in opal_event_init()
| * 1eefa93faf powerpc/powernv: Add a null pointer check to scom_debug_init_one()
| * 428ab6a9dd selftests/powerpc: Fix error handling in FPU/VMX preemption tests
| * b582aa1f66 powerpc/pseries/memhp: Fix access beyond end of drmem array
| * f2ec41874b powerpc/pseries/memhotplug: Quieten some DLPAR operations
| * 81dce186f1 powerpc/44x: select I2C for CURRITUCK
| * d67339e9c8 powerpc: Remove in_kernel_text()
| * ecbbd90e70 powerpc: add crtsavres.o to always-y instead of extra-y
| * 6aa7865ba7 EDAC/thunderx: Fix possible out-of-bounds string access
| * 36dbbfff28 x86/lib: Fix overflow when counting digits
| * 83da4fc5aa coresight: etm4x: Fix width of CCITMIN field
| * 67d3d17e31 PCI: Add ACS quirk for more Zhaoxin Root Ports
| * e5457b54ad parport: parport_serial: Add Brainboxes device IDs and geometry
| * 937293ff64 parport: parport_serial: Add Brainboxes BAR details
| * 5e0be1229a uio: Fix use-after-free in uio_open
| * 214aac202d binder: fix comment on binder_alloc_new_buf() return value
| * 689f13128f binder: fix trivial typo of binder_free_buf_locked()
| * e18d60757b binder: use EPOLLERR from eventpoll.h
| * 19d949b37e ACPI: resource: Add another DMI match for the TongFang GMxXGxx
| * f138fb6e64 drm/crtc: fix uninitialized variable use
| * 7ba78e0823 ARM: sun9i: smp: fix return code check of of_property_match_string
| * 01d8918415 net: qrtr: ns: Return 0 if server port is not present
| * dbf8b0d938 ida: Fix crash in ida_free when the bitmap is empty
| * d8a07ba130 i2c: rk3x: fix potential spinlock recursion on poll
| * a57c59c85c Input: xpad - add Razer Wolverine V2 support
| * 86e4e2eea4 ARC: fix spare error
| * 9700ff5a4f s390/scm: fix virtual vs physical address confusion
| * 6e17155869 Input: i8042 - add nomux quirk for Acer P459-G2-M
| * b0e82ef611 Input: atkbd - skip ATKBD_CMD_GETID in translated mode
| * 6f1614080f reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning
| * 8d6913d050 ring-buffer: Do not record in NMI if the arch does not support cmpxchg in NMI
| * 439f3bbf75 tracing: Add size check when printing trace_marker output
| * bc6619c9aa tracing: Have large events show up as '[LINE TOO BIG]' instead of nothing
| * c0f1db7380 jbd2: fix soft lockup in journal_finish_inode_data_buffers()
| * cd94f81f77 neighbour: Don't let neigh_forced_gc() disable preemption for long
| * 3887ba7198 drm/crtc: Fix uninit-value bug in drm_mode_setcrtc
| * 956b740f3e jbd2: correct the printing of write_flags in jbd2_write_superblock()
| * 656d684109 clk: rockchip: rk3128: Fix HCLK_OTG gate register
| * 05644e6365 drm/exynos: fix a wrong error checking
| * 0fc35b0d9f drm/exynos: fix a potential error pointer dereference
| * fb2f34d939 nvme: introduce helper function to get ctrl state
| * a8b1ddeeac ASoC: da7219: Support low DC impedance headset
| * 1059aa41c5 net/tg3: fix race condition in tg3_reset_task()
| * 44ad1b9eb3 nouveau/tu102: flush all pdbs on vmm flush
| * ffe13302b8 ASoC: rt5650: add mutex to avoid the jack detection failure
| * 8b50b177bf ASoC: cs43130: Fix incorrect frame delay configuration
| * 921ff9f2b1 ASoC: cs43130: Fix the position of const qualifier
| * 304529d564 ASoC: Intel: Skylake: mem leak in skl register function
| * 1e31b47b2e ASoC: nau8822: Fix incorrect type in assignment and cast to restricted __be16
| * 9c89777c7d ASoC: Intel: Skylake: Fix mem leak in few functions
| * c78083013b ASoC: wm8974: Correct boost mixer inputs
| * 06a33eec1d nvme-core: check for too small lba shift
| * 974f127fcf drm/amdgpu: Fix cat debugfs amdgpu_regs_didt causes kernel null pointer
| * 52a33dbeac debugfs: fix automount d_fsdata usage
| * 65bde47aad mptcp: fix uninit-value in mptcp_incoming_options
| * 6b00598b64 ALSA: hda - Fix speaker and headset mic pin config for CHUWI CoreBook XPro
| * 94e192054f pinctrl: lochnagar: Don't build on MIPS
| * 3e47740091 f2fs: explicitly null-terminate the xattr list
* | 62f62d810d Revert "ipv6: remove max_size check inline with ipv4"
* |   08731a14db Merge "Merge 5.10.208 into android12-5.10-lts" into android12-5.10-lts
|\ \
| * | 680475ab46 Merge 5.10.208 into android12-5.10-lts
| |\|
| | * 3fee45ee55 Linux 5.10.208
| | * 929ba86476 Revert "nvme: use command_id instead of req->tag in trace_nvme_complete_rq()"
| | * 8a10841c1a PCI: Disable ATS for specific Intel IPU E2000 devices
| | * b74a0c4ddf PCI: Extract ATS disabling to a helper function
| | * 25d1e7be85 netfilter: nf_tables: Reject tables of unsupported family
| | * 03585b18b7 drm/qxl: fix UAF on handle creation
| | * dd56c5790d ipv6: remove max_size check inline with ipv4
| | * c6b2a6b827 net: tls, update curr on splice as well
| | * d36b6b152f powerpc: update ppc_save_regs to save current r1 in pt_regs
| | * ae64985e0e mmc: sdhci-sprd: Fix eMMC init failure after hw reset
| | * f7796d76bd mmc: core: Cancel delayed work before releasing host
| | * c29da60e1f mmc: rpmb: fixes pause retune on all RPMB partitions.
| | * c82efcaad2 mmc: meson-mx-sdhc: Fix initialization frozen issue
| | * 73704c6b35 mm: fix unmap_mapping_range high bits shift bug
| | * 4aca0af447 i2c: core: Fix atomic xfer check for non-preempt config
| | * 0ba8c7ef19 x86/kprobes: fix incorrect return address calculation in kprobe_emulate_call_indirect
| | * 23c006a760 firewire: ohci: suppress unexpected system reboot in AMD Ryzen machines and ASM108x/VT630x PCIe cards
| | * 70168fdc74 mm/memory-failure: check the mapcount of the precise page
| | * 18203c4484 net: Implement missing SO_TIMESTAMPING_NEW cmsg support
| | * 701b03fc14 bnxt_en: Remove mis-applied code from bnxt_cfg_ntp_filters()
| | * cfbf618e9a asix: Add check for usbnet_get_endpoints
| | * 0fc5fe6e41 net/qla3xxx: fix potential memleak in ql_alloc_buffer_queues
| | * c492f9c7d3 net/qla3xxx: switch from 'pci_' to 'dma_' API
| | * 53e92564c5 i40e: Restore VF MSI-X state during PCI reset
| | * 6d3465c3dd ASoC: meson: g12a-tohdmitx: Fix event generation for S/PDIF mux
| | * e08399e812 ASoC: meson: g12a-toacodec: Fix event generation
| | * 51e88b2cef ASoC: meson: g12a-tohdmitx: Validate written enum values
| | * 85f8d007de ASoC: meson: g12a-toacodec: Validate written enum values
| | * 21ecce2456 i40e: fix use-after-free in i40e_aqc_add_filters()
| | * f8c03fd826 net: Save and restore msg_namelen in sock_sendmsg
| | * 06ce3b8ec4 netfilter: nft_immediate: drop chain reference counter on error
| | * cf3c516dec netfilter: nftables: add loop check helper function
| | * 4366b7e1f5 net: bcmgenet: Fix FCS generation for fragmented skbuffs
| | * d1eb795385 sfc: fix a double-free bug in efx_probe_filters
| | * cb69cad457 ARM: sun9i: smp: Fix array-index-out-of-bounds read in sunxi_mc_smp_init
| | * 8abb7ab7cf net: sched: em_text: fix possible memory leak in em_text_destroy()
| | * ecdfb0970c i40e: Fix filter input checks to prevent config with invalid values
| | * 8d4ae760c7 drm/i915/dp: Fix passing the correct DPCD_REV for drm_dp_set_phy_test_pattern
| | * 3ff482518b octeontx2-af: Fix marking couple of structure as __packed
| | * 6adeb15cb6 nfc: llcp_core: Hold a ref to llcp_local->dev when holding a ref to llcp_local
| | * 74c9135d16 ALSA: hda/realtek: Fix mute and mic-mute LEDs for HP ProBook 440 G6
| | * 132ba71b4e block: Don't invalidate pagecache for invalid falloc modes
| | * ef1d1d7c10 keys, dns: Fix missing size check of V1 server-list header
* | | 274aa12c42 ANDROID: db845c: Enable device tree overlay support
|/ /
* | c925f18af7 Merge 5.10.207 into android12-5.10-lts
|\|
| * 03a0e87f70 Linux 5.10.207
| * a7fd5c7ba4 scsi: core: Always send batch on reset or error handling command
| * e30419672e Revert "scsi: core: Add scsi_prot_ref_tag() helper"
| * f60f60e1de Revert "scsi: core: Introduce scsi_get_sector()"
| * a5edb40702 Revert "scsi: core: Make scsi_get_lba() return the LBA"
| * 2129297760 Revert "scsi: core: Use scsi_cmd_to_rq() instead of scsi_cmnd.request"
| * cea19678bf Revert "scsi: core: Use a structure member to track the SCSI command submitter"
| * 6963d049a4 Revert "scsi: core: Always send batch on reset or error handling command"
* | 3d0828af52 Revert "ANDROID: GKI: Fix abi break in struct scsi_cmd"
* | ffc061ba7d ANDROID: GKI: Fix abi break in struct scsi_cmd
* | 8a9d593fd6 Merge 5.10.206 into android12-5.10-lts
|/
* cf13ba74e8 Linux 5.10.206
* 2df1e1887c spi: atmel: Fix PDC transfer setup bug
* 2a0a658ed6 Bluetooth: SMP: Fix crash when receiving new connection when debug is enabled
* ecd50f820d Revert "MIPS: Loongson64: Enable DMA noncoherent support"
* 9175341bd8 dm-integrity: don't modify bio's immutable bio_vec in integrity_metadata()
* 73117ea033 netfilter: nf_tables: skip set commit for deleted/destroyed sets
* 8bf79dec73 tracing: Fix blocked reader of snapshot buffer
* 0afe420228 ring-buffer: Fix wake ups when buffer_percent is set to 100
* 9db5239d75 scsi: core: Always send batch on reset or error handling command
* f2d30198c0 scsi: core: Use a structure member to track the SCSI command submitter
* df83ca8e98 scsi: core: Use scsi_cmd_to_rq() instead of scsi_cmnd.request
* d054858a9c scsi: core: Make scsi_get_lba() return the LBA
* f230e6d424 scsi: core: Introduce scsi_get_sector()
* 294d66c35a scsi: core: Add scsi_prot_ref_tag() helper
* 929f475eba spi: atmel: Fix CS and initialization bug
* 23d9267c54 spi: atmel: Switch to transfer_one transfer method
* db1b14eec8 Bluetooth: af_bluetooth: Fix Use-After-Free in bt_sock_recvmsg
* 0c54b79d1d smb: client: fix OOB in smbCalcSize()
* 203a412e52 smb: client: fix OOB in SMB2_query_info_init()
* 79e158ddc3 usb: fotg210-hcd: delete an incorrect bounds test
* da448f145f Bluetooth: MGMT/SMP: Fix address type when using SMP over BREDR/LE
* 4bc912140b Bluetooth: use inclusive language in SMP
* e219c3110a Bluetooth: SMP: Convert BT_ERR/BT_DBG to bt_dev_err/bt_dev_dbg
* cdbc4a1115 ARM: dts: Fix occasional boot hang for am3 usb
* 1e2db0124c 9p/net: fix possible memory leak in p9_check_errors()
* c4a22227f7 x86/alternatives: Sync core before enabling interrupts
* 7d407ef183 lib/vsprintf: Fix %pfwf when current node refcount == 0
* 565fadc3ea bus: ti-sysc: Flush posted write only after srst_udelay
* e50cfb5447 tracing / synthetic: Disable events after testing in synth_event_gen_test_init()
* cd6e41593e dt-bindings: nvmem: mxs-ocotp: Document fsl,ocotp
* 786788bb13 net: ks8851: Fix TX stall caused by TX buffer overrun
* 391c1019a0 net: rfkill: gpio: set GPIO direction
* 6d7b8e5a6d net: 9p: avoid freeing uninit memory in p9pdu_vreadf
* 45b63f09ba Input: soc_button_array - add mapping for airplane mode button
* 2aa744ad0e Bluetooth: L2CAP: Send reject on command corrupted request
* 25a6fdd26d Bluetooth: hci_event: Fix not checking if HCI_OP_INQUIRY has been sent
* 71e1c76540 USB: serial: option: add Quectel RM500Q R13 firmware support
* d521896bcc USB: serial: option: add Foxconn T99W265 with new baseline
* d0cf8a4bee USB: serial: option: add Quectel EG912Y module support
* f41f44cea9 USB: serial: ftdi_sio: update Actisense PIDs constant names
* 20d84a1946 wifi: cfg80211: fix certs build to not depend on file order
* 7a0a5cbfea wifi: cfg80211: Add my certificate
* 9dcf50da59 iio: adc: ti_am335x_adc: Fix return value check of tiadc_request_dma()
* abbebddb19 iio: common: ms_sensors: ms_sensors_i2c: fix humidity conversion time table
* c40db29812 scsi: bnx2fc: Fix skb double free in bnx2fc_rcv()
* e3749f85fd Input: ipaq-micro-keys - add error handling for devm_kmemdup
* b5f67cea27 iio: imu: inv_mpu6050: fix an error code problem in inv_mpu6050_read_raw
* 505df1c0ab interconnect: Treat xlate() returning NULL node as an error
* cc5eec86a4 btrfs: do not allow non subvolume root targets for snapshot
* bd267af18f smb: client: fix NULL deref in asn1_ber_decoder()
* 41350e813a ALSA: hda/hdmi: add force-connect quirk for NUC5CPYB
* a4692c38cd ALSA: hda/hdmi: Add quirk to force pin connectivity on NUC10
* e032ddb0e3 pinctrl: at91-pio4: use dedicated lock class for IRQ
* 0b85149a9d i2c: aspeed: Handle the coalesced stop conditions with the start conditions.
* 3dce7a52b2 afs: Fix overwriting of result of DNS query
* 97be1e865e keys, dns: Allow key types (eg. DNS) to be reclaimed immediately on expiry
* 9e0d18f946 net: check dev->gso_max_size in gso_features_check()
* 59dc16ce09 net: warn if gso_type isn't set for a GSO SKB
* 63ad66d484 afs: Fix dynamic root lookup DNS check
* 65d2c287fc afs: Fix the dynamic root's d_delete to always delete unused dentries
* a3218319ee net: check vlan filter feature in vlan_vids_add_by_dev() and vlan_vids_del_by_dev()
* 12e5a4719c net/rose: fix races in rose_kill_by_device()
* be0988c9b0 ethernet: atheros: fix a memleak in atl1e_setup_ring_resources
* 8b6f8bfe3a net: sched: ife: fix potential use-after-free
* f245312e9f net/mlx5e: Correct snprintf truncation handling for fw_version buffer used by representors
* e8ba688a64 net/mlx5: Fix fw tracer first block check
* fc4c53f8e9 net/mlx5e: Fix slab-out-of-bounds in mlx5_query_nic_vport_mac_list()
* 50aa92e699 Revert "net/mlx5e: fix double free of encap_header"
* b851889e91 wifi: mac80211: mesh_plink: fix matches_local logic
* 717f08fb51 s390/vx: fix save/restore of fpu kernel context
* c48219fad1 reset: Fix crash when freeing non-existent optional resets
* c999682ce8 ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init
* dbc8edb80f smb: client: fix OOB in smb2_query_reparse_point()
* bc3c57493b ksmbd: fix wrong name of SMB2_CREATE_ALLOCATION_SIZE

Updates the .xml file to track the new symbol that is required:

Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function int devm_pm_runtime_enable(device*)'

Change-Id: I68d1c499f716926e1e84a98895170b9d192019e8
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-03-28 10:29:56 +00:00
Chris Goldsworthy
f211036cf3 ANDROID: arm64: Call fixup_exception() within do_sea()
path_lookupat() is capable of safely reading unampped VAs. If an
unmapped VA is read whilst the function is being called, the resulting
page fault will get re-directed to __do_page_fault(), which will call
fixup_exception() to handle the aforementioned unmapped VA read.

Now, for an OS running in a VM, let's say that memory was still mapped
at S1 but lent to another VM (i.e. unmapped at S2 for the given VM).
The reading of an unmapped VA in path_lookupat() still needs to be
handled. For hypervisors that inject an abort leading to a do_sea()
call, call fixup_exception() from do_sea() if
trace_android_vh_try_fixup_sea() indicates that we can do so.

Bug: 320358381
Change-Id: I0aedcd954f08e3011b27524f9a7b038debbb246d
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2024-03-11 17:55:08 +00:00
hao lv
94b9d8e513 ANDROID: add hooks into blk-mq-sched.c for customized I/O scheduler
android_vh_blk_mq_sched_insert_request: Add judgment on rq. If it is a
customized rq, it needs to be added to the corresponding customized
queue

Bug: 319582497

Change-Id: I2bf8fee37273b3495d60c64bb53e43debceb5614
Signed-off-by: hao lv <hao.lv5@transsion.com>
2024-02-29 08:43:13 +08:00
hao lv
6912e0c8e9 ANDROID: add hooks into blk-ma-tag.c for customized I/O scheduler
android_vh_blk_mq_all_tag_iter: The customized solution adds a new tag
type, so need to use the customized solution for traversal

android_vh_blk_mq_queue_tag_busy_iter: The customized solution adds a
new tag type, so need to use the customized solution for traversal

android_vh_blk_mq_free_tags: Release the customized tag

Bug: 319582497

Change-Id: I648a9a31c11c284a75653405b8f8521d9da34d20
Signed-off-by: hao lv <hao.lv5@transsion.com>
2024-02-29 08:43:05 +08:00
hao lv
f76294a655 ANDROID: add hooks into blk-flush.c for customized I/O scheduler
android_vh_blk_alloc_flush_queue: Expand the flush request size to carry
more customized information

Bug: 319582497

Change-Id: I728852bd29ff7f851545c52fbdeafa7cd3a4addf
Signed-off-by: hao lv <hao.lv5@transsion.com>
2024-02-29 08:42:57 +08:00
hao lv
d269992366 ANDROID: add hooks into blk-core.c for customized I/O scheduler
android_rvh_blk_allocated_queue_init: Allocate specific request_queue
information and save the pointer address in the ANDROID_OEM_DATA field.
The allocation process may be scheduled, so a restricted hook function
is used

android_rvh_blk_flush_plug_list: Flush the customized plug list. During
this process, the scheduled queue_rq will be called to process the
request, so a restricted hook function is used

Bug: 319582497

Change-Id: I0af3915de899b678ffd4f207cac2e35a744936b8
Signed-off-by: hao lv <hao.lv5@transsion.com>
2024-02-29 08:42:49 +08:00
hao lv
ccbc7f8808 ANDROID: add hooks into blk-mq.c for customized I/O scheduler.
Our scheduler uses the ANDROID_OEM_DATA field in the request_queue
structure to customize a set of ops operations for the request queue
applied by the ufs/emmc driver. Adopt fine-grained IO scheduling
strategies based on specific request types and user scenarios

android_rvh_internal_blk_mq_alloc_request: Obtain a new tag.
This process may be scheduled because the tag cannot be allocated
quickly, so a restricted hook is required.

android_vh_internal_blk_mq_free_request: Release individually allocated
tags

android_vh_blk_mq_complete_request: Record the time when the request was
completed

android_vh_blk_mq_add_to_requeue_list: Add requests to a separate
distribution queue

android_rvh_blk_mq_delay_run_hw_queue: The process of calling queue_rq
to handle the request may be scheduled, so restricted hooks need to be
used

android_vh_blk_mq_run_hw_queue: Set need_run to true

android_vh_blk_mq_insert_request: Insert the request into a customized
queue

android_rvh_blk_mq_alloc_rq_map: The process of assigning customized
tags may be scheduled, so restricted hooks need to be used

android_rvh_blk_mq_init_allocated_queue: The customized scheduler is
initialized and needs to allocate some resources. This process may be
scheduled, so restricted hooks need to be used

android_vh_blk_mq_exit_queue: Release resources allocated by the
customized scheduler

android_vh_blk_mq_alloc_tag_set: Get tagset information

Bug: 319582497

Change-Id: I2b16d69a1e7085a4f5f82660b75188c517b01894
Signed-off-by: hao lv <hao.lv5@transsion.com>
2024-02-29 08:42:35 +08:00
hao lv
34338029ab ANDROID: add hooks into bio.c for customized I/O scheduler
android_vh_bio_free: We have added some additional information to
each bio, which needs to be freed simultaneously when the bio is free

Bug: 319582497

Change-Id: I532f98fa0569f2eb8da66cff746349c828e0912c
Signed-off-by: hao lv <hao.lv5@transsion.com>
2024-02-29 08:42:22 +08:00
Fuchun Liao
517fdcc1f8 ANDROID: binder: Add vendor hook to fix priority restore
When cpu loading is high, the task maybe preempted after restoring the
sched priority in trace_android_vh_binder_free_buf(). This means that
node->has_async_transaction can't be cleared immediately and the work
isn't added to the proc->todo queue as soon as possible.

To fix this we add a new hook trace_android_vh_binder_buffer_release()
to restore the priority after node->has_async_transaction has been
updated and the node->work has been added to the proc->todo queue.

Note: the old trace_android_vh_binder_free_buf() hook is kept to avoid
breaking KMI but is not extrictly needed.

Bug: 327307900
Fixes: 0eb66ec39ca8 ("ANDROID: vendor_hooks: Add hooks for binder")
Change-Id: I8126c79c9c68faa3ce0cd87ce83e2591bd61d5dd
Signed-off-by: Fuchun Liao <lfc@oppo.com>
[cmllamas: fix-up commit log and variable naming]
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2024-02-28 17:37:39 +00:00
qiwu.chen
ca7dabaf67 ANDROID: Add vendor hook for task exiting routine
Currently, there are various global init exit issues encountered
on Andriod/linux system. It's hard to debug these issues on product
environment without a usable coredump.

For example, it's hard to get the root cause why global init task exited from the below kmsg:
[ 4.696032][T400001] e2fsck: /dev/block/by-name/metadata: clean, 35/8192 files, 2083/8192 blocks
[ 4.696783][T500326] [bq27z561] fg_debug_dump_regs: slave_dump:Reg[0x0073] = 0x05C5
[ 4.700583][T400001] EXT4-fs (sdc17): mounted filesystem with ordered data mode. Opts: discard
[ 4.706445][T400001] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f0000
[ 4.706459][T400001] CPU: 4 PID: 1 Comm: init Tainted: G S W 5.10.136-android12-9-00005-gf9a66cbe7091-ab9177899 #1
[ 4.706464][T400001] Hardware name: MT6983Z/TCZA (DT)
[ 4.706469][T400001] Call trace:
[ 4.706482][T400001] dump_backtrace.cfi_jt+0x0/0x8
[ 4.706493][T400001] dump_stack_lvl+0xc4/0x140
[ 4.706504][T400001] panic+0x178/0x464
[ 4.706511][T400001] do_exit+0xb30/0xf9c
[ 4.706517][T400001] do_group_exit+0x130/0x1c8
[ 4.706523][T400001] do_group_exit+0x0/0x1c8
[ 4.706529][T400001] __do_sys_exit_group+0x0/0x18
[ 4.706535][T400001] __se_sys_exit_group+0x0/0x14
[ 4.706543][T400001] el0_svc_common+0xd4/0x270
[ 4.706551][T400001] el0_svc+0x28/0x88
[ 4.706559][T400001] el0_sync_handler+0x8c/0xf0
[ 4.706567][T400001] el0_sync+0x1b4/0x1c0

Add hook for task exiting routine, while will be helpful for OEMs to
get the reason of any exiting task to be noticed such as dump last
exit thread executable sections and registers info.

Bug: 324013972
Link: https://lore.kernel.org/lkml/20231110032043.34516-1-qiwu.chen@transsion.com/T/
Change-Id: Ibb7c9012af18b99a1bb458d236f166e6450241c3
Signed-off-by: qiwu.chen <qiwu.chen@transsion.com>
2024-02-28 15:56:33 +00:00
Carlos Llamas
a423042052 binder: signal epoll threads of self-work
commit 97830f3c3088638ff90b20dfba2eb4d487bf14d7 upstream.

In (e)poll mode, threads often depend on I/O events to determine when
data is ready for consumption. Within binder, a thread may initiate a
command via BINDER_WRITE_READ without a read buffer and then make use
of epoll_wait() or similar to consume any responses afterwards.

It is then crucial that epoll threads are signaled via wakeup when they
queue their own work. Otherwise, they risk waiting indefinitely for an
event leaving their work unhandled. What is worse, subsequent commands
won't trigger a wakeup either as the thread has pending work.

Fixes: 457b9a6f09 ("Staging: android: add binder driver")
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Martijn Coenen <maco@android.com>
Cc: Alice Ryhl <aliceryhl@google.com>
Cc: Steven Moreland <smoreland@google.com>
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20240131215347.1808751-1-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-02-23 08:42:26 +01:00
Greg Kroah-Hartman
10896fff34 Merge branch 'android12-5.10' into branch 'android12-5.10-lts'
Catch the -lts branch up with the changes in the normal branch.

This includes the following commits:

* 13fdad03e6 ANDROID: GKI: fix ABI breakage in struct ipv6_devconf
* be6ad5e439 Reapply "net: release reference to inet6_dev pointer"
* a4508eb552 Reapply "net: change accept_ra_min_rtr_lft to affect all RA lifetimes"
* d4c4255fb4 Reapply "net: add sysctl accept_ra_min_rtr_lft"
* 08538f14e5 ANDROID: GKI: explicit include of stringify.h
* c9ca12bfd2 ANDROID: introduce a vendor hook to allow speculative swap pagefaults
* d47a714fa7 ANDROID: mm: allow limited speculative page faulting in do_swap_page()
* febebd3d31 UPSTREAM: net: tls, update curr on splice as well
* db57c320fa ANDROID: GKI: Update oplus symbol list
* 0a9731879a ANDROID: mm: Add vendor hooks for recording when kswapd finishing the reclaim job
* 8cbe4885a9 ANDROID: GKI: Update oplus symbol list
* 46469e117f ANDROID: vendor_hooks: Add hooks for adjusting alloc_flags
* 5fe6b5a194 Reapply "perf: Fix perf_event_validate_size()"
* 067856b87f UPSTREAM: ida: Fix crash in ida_free when the bitmap is empty
* fd764687e8 UPSTREAM: netfilter: nf_tables: Reject tables of unsupported family
* 102b3d7a64 UPSTREAM: net/rose: Fix Use-After-Free in rose_ioctl
*   f6de684297 Merge "Merge tag 'android12-5.10.205_r00' into branch 'android12-5.10'" into android12-5.10
|\
| * 3afa5a4331 Merge tag 'android12-5.10.205_r00' into branch 'android12-5.10'
* | 40c0aa9ee1 Reapply "perf: Disallow mis-matched inherited group reads"
* | 789c68e980 ANDROID: scsi: ufs: UFS HPB feature not working
* | 75c057fe65 ANDROID: GKI: Update symbol list for mtk
|/
* cbfcf517dc FROMGIT: usb: dwc: ep0: Update request status in dwc3_ep0_stall_restart
* 050c668fef FROMGIT: BACKPORT: mm: update mark_victim tracepoints fields
* 7efc668a49 ANDROID: ABI: update allowed list for galaxy
* 3e4106c3c9 BACKPORT: exfat: reduce block requests when zeroing a cluster
* a5ea932a75 UPSTREAM: netfilter: nf_tables: skip set commit for deleted/destroyed sets
* 99512f1216 FROMGIT: PM / devfreq: Synchronize devfreq_monitor_[start/stop]
* d5552f63b8 UPSTREAM: dm verity: don't perform FEC for failed readahead IO
* 2274751099 UPSTREAM: netfilter: nft_set_pipapo: skip inactive elements during set walk
* a72131befe UPSTREAM: ipv4: igmp: fix refcnt uaf issue when receiving igmp query packet
* 718225bcc1 UPSTREAM: x86/sev: Check for user-space IOIO pointing to kernel space
* 5b118b5b1d UPSTREAM: x86/sev: Check IOBM for IOIO exceptions from user-space
* 0edf68775a UPSTREAM: nvmet-tcp: Fix a possible UAF in queue intialization setup
* f22c548c91 FROMLIST: binder: fix memory leaks of spam and pending work
* 5144c1c2e3 ANDROID: Snapshot Mainline's version of checkpatch.pl
* b39b9bde93 ANDROID: scsi: ufs: vendor check response and recovery addition
* 4246d242fa ANDROID: scsi: ufs: add perf heuristic design
* 83578817d0 ANDROID: ABI: Update symbol list for Mediatek
* 85d8fb9163 ANDROID: Add vendor hook for ufs perf heuristic and error recovery
* 7b8b02fa37 UPSTREAM: io_uring/fdinfo: lock SQ thread while retrieving thread cpu/pid
* 469a933a87 UPSTREAM: ufs: core: wlun send SSU timeout recovery
* 1b6cfcd1ed ANDROID: GKI: db845c: Update symbols list and ABI on rpmsg_register_device_override
* ced76f823f ANDROID: fix up rpmsg_device ABI break
* 72b5689f02 ANDROID: fix up platform_device ABI break
* 4172086503 UPSTREAM: rpmsg: Fix possible refcount leak in rpmsg_register_device_override()
* 0f4467ff35 UPSTREAM: rpmsg: glink: Release driver_override
* fa6692abc2 BACKPORT: rpmsg: Fix calling device_lock() on non-initialized device
* 20f1dfc0f7 BACKPORT: rpmsg: Fix kfree() of static memory on setting driver_override
* 68482b6bd9 UPSTREAM: rpmsg: Constify local variable in field store macro
* 66b73fb5b9 UPSTREAM: driver: platform: Add helper for safer setting of driver_override
* 525ecbbfda FROMGIT: Input: uinput - allow injecting event times
* e6278ff4b7 ANDROID: abi_gki_aarch64_qcom: Add android_gki_sysctl_vals
* 4194727e2c UPSTREAM: kheaders: Have cpio unconditionally replace files
* efe30da3a3 ANDROID: ABI: Update oplus symbol list
* 464ef3ee59 ANDROID: vendor_hooks: Add hooks for binder
* ba88bbf1bb BACKPORT: firmware_loader: Abort all upcoming firmware load request once reboot triggered
* 10120b0270 UPSTREAM: firmware_loader: Refactor kill_pending_fw_fallback_reqs()
*   f40707abde Merge "Merge tag 'android12-5.10.198_r00' into android12-5.10" into android12-5.10
|\
| * 1289e04b48 Merge tag 'android12-5.10.198_r00' into android12-5.10
* 422887ef07 ANDROID: GKI: Update symbols to symbol list
* 91d2427218 ANDROID: Add Interrupt Hook for madvise Compression
* 4e38f783da UPSTREAM: netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c

Change-Id: I9ace27ef5bb0f8ae42d808292ed4f5b9778ac8a6
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-02-14 14:10:51 +00:00
Suren Baghdasaryan
c9ca12bfd2 ANDROID: introduce a vendor hook to allow speculative swap pagefaults
Since SPF is an out-of-tree feature, the risks of changing its behavior
are higher. Add a vendor hook to enable speculative swap pagefaults. By
default it's disabled and should not cause troubles for current users.

Bug: 322762567
Change-Id: I3df7c545aa27d2707ee51ea42368f785c5faa735
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2024-02-08 14:28:49 -08:00
liwei
0a9731879a ANDROID: mm: Add vendor hooks for recording when kswapd finishing the reclaim job
To monitor the reclaiming ability of kswapd, add vendor hook recording when the kswapd finish the reclaiming job and the reclaim progress.

android_vh_vmscan_kswpad_done(int, unsigned int, unsigned int, unsigned int)

Bug: 301044280

Change-Id: Id6e0a97003f0a156cff4d0996bc38bcd89b1dc69
Signed-off-by: John Hsu <john.hsu@mediatek.com>
Signed-off-by: liwei <liwei1234@oppo.com>
(cherry picked from commit 6c3dd25d2fdeff6fc752ef74e87e22f86ae1d939)
2024-02-02 17:56:46 +00:00
liwei
46469e117f ANDROID: vendor_hooks: Add hooks for adjusting alloc_flags
In some situations, we want to adjust the alloc_flags for better performance.

more detail explain:
the reason why we add a vendor hook adjusting alloc_flags:
1 the user only pass parameter size and gfp_flags once. if we mask the
__GFP_RECLAIM, we can't distinguish high-order and low-order, they all
will not rise reclaim behavior, it's wrong.

2 for __iommu_dma_alloc_pages, there is a loop to try to alloc pages from
high-order to low-order fallback, and we add hook callsite to only change
the high-order( > costly order) alloc behavior(which high probability will
result more overhead than benifit).
which allow low order alloc to do reclaim behavior still, otherwise may
end up with alloc fail.

3 in android ION(drivers/dma-buf/heaps/system_heap.c )
there is same logic, high-order alloc will not do reclaim behavior.

so this change add a vendor hook for adjusting alloc_flags, and add a
callsite in __iommu_dma_alloc_pages to turn the reclaim behavior.

Bug: 300857012
Change-Id: I30bd634d8ede1cc29c83d52bdd9276c8cf72ac1e
Signed-off-by: lvwenhuan <lvwenhuan@oppo.com>
Signed-off-by: liwei <liwei1234@oppo.com>
(cherry picked from commit d6c24c3a63567676de818011403abe5b9b3d38b0)
2024-02-02 17:56:02 +00:00
Greg Kroah-Hartman
7e6944b050 Merge 5.10.209 into android12-5.10-lts
Changes in 5.10.209
	f2fs: explicitly null-terminate the xattr list
	pinctrl: lochnagar: Don't build on MIPS
	ALSA: hda - Fix speaker and headset mic pin config for CHUWI CoreBook XPro
	mptcp: fix uninit-value in mptcp_incoming_options
	debugfs: fix automount d_fsdata usage
	drm/amdgpu: Fix cat debugfs amdgpu_regs_didt causes kernel null pointer
	nvme-core: check for too small lba shift
	ASoC: wm8974: Correct boost mixer inputs
	ASoC: Intel: Skylake: Fix mem leak in few functions
	ASoC: nau8822: Fix incorrect type in assignment and cast to restricted __be16
	ASoC: Intel: Skylake: mem leak in skl register function
	ASoC: cs43130: Fix the position of const qualifier
	ASoC: cs43130: Fix incorrect frame delay configuration
	ASoC: rt5650: add mutex to avoid the jack detection failure
	nouveau/tu102: flush all pdbs on vmm flush
	net/tg3: fix race condition in tg3_reset_task()
	ASoC: da7219: Support low DC impedance headset
	nvme: introduce helper function to get ctrl state
	drm/exynos: fix a potential error pointer dereference
	drm/exynos: fix a wrong error checking
	clk: rockchip: rk3128: Fix HCLK_OTG gate register
	jbd2: correct the printing of write_flags in jbd2_write_superblock()
	drm/crtc: Fix uninit-value bug in drm_mode_setcrtc
	neighbour: Don't let neigh_forced_gc() disable preemption for long
	jbd2: fix soft lockup in journal_finish_inode_data_buffers()
	tracing: Have large events show up as '[LINE TOO BIG]' instead of nothing
	tracing: Add size check when printing trace_marker output
	ring-buffer: Do not record in NMI if the arch does not support cmpxchg in NMI
	reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning
	Input: atkbd - skip ATKBD_CMD_GETID in translated mode
	Input: i8042 - add nomux quirk for Acer P459-G2-M
	s390/scm: fix virtual vs physical address confusion
	ARC: fix spare error
	Input: xpad - add Razer Wolverine V2 support
	i2c: rk3x: fix potential spinlock recursion on poll
	ida: Fix crash in ida_free when the bitmap is empty
	net: qrtr: ns: Return 0 if server port is not present
	ARM: sun9i: smp: fix return code check of of_property_match_string
	drm/crtc: fix uninitialized variable use
	ACPI: resource: Add another DMI match for the TongFang GMxXGxx
	binder: use EPOLLERR from eventpoll.h
	binder: fix trivial typo of binder_free_buf_locked()
	binder: fix comment on binder_alloc_new_buf() return value
	uio: Fix use-after-free in uio_open
	parport: parport_serial: Add Brainboxes BAR details
	parport: parport_serial: Add Brainboxes device IDs and geometry
	PCI: Add ACS quirk for more Zhaoxin Root Ports
	coresight: etm4x: Fix width of CCITMIN field
	x86/lib: Fix overflow when counting digits
	EDAC/thunderx: Fix possible out-of-bounds string access
	powerpc: add crtsavres.o to always-y instead of extra-y
	powerpc: Remove in_kernel_text()
	powerpc/44x: select I2C for CURRITUCK
	powerpc/pseries/memhotplug: Quieten some DLPAR operations
	powerpc/pseries/memhp: Fix access beyond end of drmem array
	selftests/powerpc: Fix error handling in FPU/VMX preemption tests
	powerpc/powernv: Add a null pointer check to scom_debug_init_one()
	powerpc/powernv: Add a null pointer check in opal_event_init()
	powerpc/powernv: Add a null pointer check in opal_powercap_init()
	powerpc/imc-pmu: Add a null pointer check in update_events_in_group()
	spi: spi-zynqmp-gqspi: fix driver kconfig dependencies
	mtd: rawnand: Increment IFC_TIMEOUT_MSECS for nand controller response
	ACPI: video: check for error while searching for backlight device parent
	ACPI: LPIT: Avoid u32 multiplication overflow
	of: property: define of_property_read_u{8,16,32,64}_array() unconditionally
	of: Add of_property_present() helper
	cpufreq: Use of_property_present() for testing DT property presence
	cpufreq: scmi: process the result of devm_of_clk_add_hw_provider()
	net: netlabel: Fix kerneldoc warnings
	netlabel: remove unused parameter in netlbl_netlink_auditinfo()
	calipso: fix memory leak in netlbl_calipso_add_pass()
	efivarfs: force RO when remounting if SetVariable is not supported
	spi: sh-msiof: Enforce fixed DTDL for R-Car H3
	ACPI: extlog: Clear Extended Error Log status when RAS_CEC handled the error
	mtd: Fix gluebi NULL pointer dereference caused by ftl notifier
	selinux: Fix error priority for bind with AF_UNSPEC on PF_INET6 socket
	virtio_crypto: Introduce VIRTIO_CRYPTO_NOSPC
	virtio-crypto: introduce akcipher service
	virtio-crypto: implement RSA algorithm
	virtio-crypto: change code style
	virtio-crypto: use private buffer for control request
	virtio-crypto: wait ctrl queue instead of busy polling
	crypto: virtio - Handle dataq logic with tasklet
	crypto: sa2ul - Return crypto_aead_setkey to transfer the error
	crypto: ccp - fix memleak in ccp_init_dm_workarea
	crypto: af_alg - Disallow multiple in-flight AIO requests
	crypto: sahara - remove FLAGS_NEW_KEY logic
	crypto: sahara - fix cbc selftest failure
	crypto: sahara - fix ahash selftest failure
	crypto: sahara - fix processing requests with cryptlen < sg->length
	crypto: sahara - fix error handling in sahara_hw_descriptor_create()
	pstore: ram_core: fix possible overflow in persistent_ram_init_ecc()
	fs: indicate request originates from old mount API
	Revert "gfs2: Don't reject a supposedly full bitmap if we have blocks reserved"
	gfs2: Also reflect single-block allocations in rgd->rd_extfail_pt
	gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump
	crypto: virtio - Wait for tasklet to complete on device remove
	crypto: sahara - avoid skcipher fallback code duplication
	crypto: sahara - handle zero-length aes requests
	crypto: sahara - fix ahash reqsize
	crypto: sahara - fix wait_for_completion_timeout() error handling
	crypto: sahara - improve error handling in sahara_sha_process()
	crypto: sahara - fix processing hash requests with req->nbytes < sg->length
	crypto: sahara - do not resize req->src when doing hash operations
	crypto: scomp - fix req->dst buffer overflow
	blocklayoutdriver: Fix reference leak of pnfs_device_node
	NFSv4.1/pnfs: Ensure we handle the error NFS4ERR_RETURNCONFLICT
	wifi: rtw88: fix RX filter in FIF_ALLMULTI flag
	bpf, lpm: Fix check prefixlen before walking trie
	bpf: Add crosstask check to __bpf_get_stack
	wifi: ath11k: Defer on rproc_get failure
	wifi: libertas: stop selecting wext
	ARM: dts: qcom: apq8064: correct XOADC register address
	ncsi: internal.h: Fix a spello
	net/ncsi: Fix netlink major/minor version numbers
	firmware: ti_sci: Fix an off-by-one in ti_sci_debugfs_create()
	firmware: meson_sm: populate platform devices from sm device tree data
	wifi: rtlwifi: rtl8821ae: phy: fix an undefined bitwise shift behavior
	arm64: dts: ti: k3-am65-main: Fix DSS irq trigger type
	bpf: fix check for attempt to corrupt spilled pointer
	scsi: fnic: Return error if vmalloc() failed
	arm64: dts: qcom: qrb5165-rb5: correct LED panic indicator
	arm64: dts: qcom: sdm845-db845c: correct LED panic indicator
	bpf: Fix verification of indirect var-off stack access
	scsi: hisi_sas: Replace with standard error code return value
	selftests/net: fix grep checking for fib_nexthop_multiprefix
	virtio/vsock: fix logic which reduces credit update messages
	dma-mapping: Add dma_release_coherent_memory to DMA API
	dma-mapping: clear dev->dma_mem to NULL after freeing it
	wifi: rtlwifi: add calculate_bit_shift()
	wifi: rtlwifi: rtl8188ee: phy: using calculate_bit_shift()
	wifi: rtlwifi: rtl8192c: using calculate_bit_shift()
	wifi: rtlwifi: rtl8192cu: using calculate_bit_shift()
	wifi: rtlwifi: rtl8192ce: using calculate_bit_shift()
	rtlwifi: rtl8192de: make arrays static const, makes object smaller
	wifi: rtlwifi: rtl8192de: using calculate_bit_shift()
	wifi: rtlwifi: rtl8192ee: using calculate_bit_shift()
	wifi: rtlwifi: rtl8192se: using calculate_bit_shift()
	netfilter: nf_tables: mark newset as dead on transaction abort
	Bluetooth: Fix bogus check for re-auth no supported with non-ssp
	Bluetooth: btmtkuart: fix recv_buf() return value
	ip6_tunnel: fix NEXTHDR_FRAGMENT handling in ip6_tnl_parse_tlv_enc_lim()
	ARM: davinci: always select CONFIG_CPU_ARM926T
	RDMA/usnic: Silence uninitialized symbol smatch warnings
	drm/panel-elida-kd35t133: hold panel in reset for unprepare
	rcu: Create an unrcu_pointer() to remove __rcu from a pointer
	drm/nouveau/fence:: fix warning directly dereferencing a rcu pointer
	drm/bridge: tpd12s015: Drop buggy __exit annotation for remove function
	media: pvrusb2: fix use after free on context disconnection
	drm/bridge: Fix typo in post_disable() description
	f2fs: fix to avoid dirent corruption
	drm/radeon/r600_cs: Fix possible int overflows in r600_cs_check_reg()
	drm/radeon/r100: Fix integer overflow issues in r100_cs_track_check()
	drm/radeon: check return value of radeon_ring_lock()
	ASoC: cs35l33: Fix GPIO name and drop legacy include
	ASoC: cs35l34: Fix GPIO name and drop legacy include
	drm/msm/mdp4: flush vblank event on disable
	drm/msm/dsi: Use pm_runtime_resume_and_get to prevent refcnt leaks
	drm/drv: propagate errors from drm_modeset_register_all()
	drm/radeon: check the alloc_workqueue return value in radeon_crtc_init()
	drm/radeon/dpm: fix a memleak in sumo_parse_power_table
	drm/radeon/trinity_dpm: fix a memleak in trinity_parse_power_table
	drm/bridge: tc358767: Fix return value on error case
	media: cx231xx: fix a memleak in cx231xx_init_isoc
	clk: qcom: gpucc-sm8150: Update the gpu_cc_pll1 config
	media: rkisp1: Disable runtime PM in probe error path
	f2fs: fix to check compress file in f2fs_move_file_range()
	f2fs: fix to update iostat correctly in f2fs_filemap_fault()
	media: dvbdev: drop refcount on error path in dvb_device_open()
	media: dvb-frontends: m88ds3103: Fix a memory leak in an error handling path of m88ds3103_probe()
	drm/amdgpu/debugfs: fix error code when smc register accessors are NULL
	drm/amd/pm: fix a double-free in si_dpm_init
	drivers/amd/pm: fix a use-after-free in kv_parse_power_table
	gpu/drm/radeon: fix two memleaks in radeon_vm_init
	dt-bindings: clock: Update the videocc resets for sm8150
	clk: qcom: videocc-sm8150: Update the videocc resets
	clk: qcom: videocc-sm8150: Add missing PLL config property
	drivers: clk: zynqmp: calculate closest mux rate
	clk: zynqmp: make bestdiv unsigned
	clk: zynqmp: Add a check for NULL pointer
	drivers: clk: zynqmp: update divider round rate logic
	watchdog: set cdev owner before adding
	watchdog/hpwdt: Only claim UNKNOWN NMI if from iLO
	watchdog: bcm2835_wdt: Fix WDIOC_SETTIMEOUT handling
	watchdog: rti_wdt: Drop runtime pm reference count when watchdog is unused
	clk: si5341: fix an error code problem in si5341_output_clk_set_rate
	clk: fixed-rate: add devm_clk_hw_register_fixed_rate
	clk: fixed-rate: fix clk_hw_register_fixed_rate_with_accuracy_parent_hw
	pwm: stm32: Use regmap_clear_bits and regmap_set_bits where applicable
	pwm: stm32: Use hweight32 in stm32_pwm_detect_channels
	pwm: stm32: Fix enable count for clk in .probe()
	mmc: sdhci_am654: Fix TI SoC dependencies
	mmc: sdhci_omap: Fix TI SoC dependencies
	IB/iser: Prevent invalidating wrong MR
	of: Fix double free in of_parse_phandle_with_args_map
	of: unittest: Fix of_count_phandle_with_args() expected value message
	keys, dns: Fix size check of V1 server-list header
	binder: fix async space check for 0-sized buffers
	binder: fix unused alloc->free_async_space
	binder: fix use-after-free in shinker's callback
	Input: atkbd - use ab83 as id when skipping the getid command
	dma-mapping: Fix build error unused-value
	virtio-crypto: fix memory-leak
	virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session()
	Revert "ASoC: atmel: Remove system clock tree configuration for at91sam9g20ek"
	kprobes: Fix to handle forcibly unoptimized kprobes on freeing_list
	net: ethernet: mtk_eth_soc: remove duplicate if statements
	xen-netback: don't produce zero-size SKB frags
	binder: fix race between mmput() and do_exit()
	tick-sched: Fix idle and iowait sleeptime accounting vs CPU hotplug
	usb: phy: mxs: remove CONFIG_USB_OTG condition for mxs_phy_is_otg_host()
	usb: dwc: ep0: Update request status in dwc3_ep0_stall_restart
	Revert "usb: dwc3: Soft reset phy on probe for host"
	Revert "usb: dwc3: don't reset device side if dwc3 was configured as host-only"
	usb: chipidea: wait controller resume finished for wakeup irq
	Revert "usb: typec: class: fix typec_altmode_put_partner to put plugs"
	usb: typec: class: fix typec_altmode_put_partner to put plugs
	usb: mon: Fix atomicity violation in mon_bin_vma_fault
	serial: imx: Ensure that imx_uart_rs485_config() is called with enabled clock
	ALSA: oxygen: Fix right channel of capture volume mixer
	ALSA: hda/relatek: Enable Mute LED on HP Laptop 15s-fq2xxx
	fbdev: flush deferred work in fb_deferred_io_fsync()
	pwm: jz4740: Don't use dev_err_probe() in .request()
	io_uring/rw: ensure io->bytes_done is always initialized
	rootfs: Fix support for rootfstype= when root= is given
	Bluetooth: Fix atomicity violation in {min,max}_key_size_set
	iommu/arm-smmu-qcom: Add missing GMU entry to match table
	wifi: rtlwifi: Remove bogus and dangerous ASPM disable/enable code
	wifi: rtlwifi: Convert LNKCTL change to PCIe cap RMW accessors
	wifi: mwifiex: configure BSSID consistently when starting AP
	x86/kvm: Do not try to disable kvmclock if it was not enabled
	KVM: arm64: vgic-v4: Restore pending state on host userspace write
	KVM: arm64: vgic-its: Avoid potential UAF in LPI translation cache
	iio: adc: ad7091r: Pass iio_dev to event handler
	HID: wacom: Correct behavior when processing some confidence == false touches
	mfd: syscon: Fix null pointer dereference in of_syscon_register()
	leds: aw2013: Select missing dependency REGMAP_I2C
	mips: dmi: Fix early remap on MIPS32
	mips: Fix incorrect max_low_pfn adjustment
	MIPS: Alchemy: Fix an out-of-bound access in db1200_dev_setup()
	MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup()
	power: supply: cw2015: correct time_to_empty units in sysfs
	serial: 8250: omap: Don't skip resource freeing if pm_runtime_resume_and_get() failed
	libapi: Add missing linux/types.h header to get the __u64 type on io.h
	acpi: property: Let args be NULL in __acpi_node_get_property_reference
	software node: Let args be NULL in software_node_get_reference_args
	serial: imx: fix tx statemachine deadlock
	iio: adc: ad9467: Benefit from devm_clk_get_enabled() to simplify
	iio: adc: ad9467: fix reset gpio handling
	iio: adc: ad9467: don't ignore error codes
	iio: adc: ad9467: fix scale setting
	perf genelf: Set ELF program header addresses properly
	tty: change tty_write_lock()'s ndelay parameter to bool
	tty: early return from send_break() on TTY_DRIVER_HARDWARE_BREAK
	tty: don't check for signal_pending() in send_break()
	tty: use 'if' in send_break() instead of 'goto'
	usb: cdc-acm: return correct error code on unsupported break
	nvmet-tcp: Fix a kernel panic when host sends an invalid H2C PDU length
	nvmet-tcp: fix a crash in nvmet_req_complete()
	perf env: Avoid recursively taking env->bpf_progs.lock
	apparmor: avoid crash when parsed profile name is empty
	serial: imx: Correct clock error message in function probe()
	nvmet-tcp: Fix the H2C expected PDU len calculation
	PCI: keystone: Fix race condition when initializing PHYs
	s390/pci: fix max size calculation in zpci_memcpy_toio()
	net: qualcomm: rmnet: fix global oob in rmnet_policy
	net: ethernet: ti: am65-cpsw: Fix max mtu to fit ethernet frames
	net: phy: micrel: populate .soft_reset for KSZ9131
	net: ravb: Fix dma_addr_t truncation in error case
	net: dsa: vsc73xx: Add null pointer check to vsc73xx_gpio_probe
	netfilter: nf_tables: do not allow mismatch field size and set key length
	netfilter: nf_tables: skip dead set elements in netlink dump
	netfilter: nf_tables: reject NFT_SET_CONCAT with not field length description
	ipvs: avoid stat macros calls from preemptible context
	kdb: Fix a potential buffer overflow in kdb_local()
	ethtool: netlink: Add missing ethnl_ops_begin/complete
	mlxsw: spectrum_acl_erp: Fix error flow of pool allocation failure
	mlxsw: spectrum: Use 'bitmap_zalloc()' when applicable
	mlxsw: spectrum_acl_tcam: Add missing mutex_destroy()
	mlxsw: spectrum_acl_tcam: Make fini symmetric to init
	mlxsw: spectrum_acl_tcam: Reorder functions to avoid forward declarations
	mlxsw: spectrum_acl_tcam: Fix stack corruption
	selftests: mlxsw: qos_pfc: Convert to iproute2 dcb
	selftests: mlxsw: qos_pfc: Adjust the test to support 8 lanes
	i2c: s3c24xx: fix read transfers in polling mode
	i2c: s3c24xx: fix transferring more than one message in polling mode
	arm64: dts: armada-3720-turris-mox: set irq type for RTC
	Linux 5.10.209

Change-Id: I86438e299a811ccb08c5a27b2259c33cd482ff00
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-01-27 03:00:58 +00:00
Carlos Llamas
7e7a0d8654 binder: fix race between mmput() and do_exit()
commit 9a9ab0d963621d9d12199df9817e66982582d5a5 upstream.

Task A calls binder_update_page_range() to allocate and insert pages on
a remote address space from Task B. For this, Task A pins the remote mm
via mmget_not_zero() first. This can race with Task B do_exit() and the
final mmput() refcount decrement will come from Task A.

  Task A            | Task B
  ------------------+------------------
  mmget_not_zero()  |
                    |  do_exit()
                    |    exit_mm()
                    |      mmput()
  mmput()           |
    exit_mmap()     |
      remove_vma()  |
        fput()      |

In this case, the work of ____fput() from Task B is queued up in Task A
as TWA_RESUME. So in theory, Task A returns to userspace and the cleanup
work gets executed. However, Task A instead sleep, waiting for a reply
from Task B that never comes (it's dead).

This means the binder_deferred_release() is blocked until an unrelated
binder event forces Task A to go back to userspace. All the associated
death notifications will also be delayed until then.

In order to fix this use mmput_async() that will schedule the work in
the corresponding mm->async_put_work WQ instead of Task A.

Fixes: 457b9a6f09 ("Staging: android: add binder driver")
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20231201172212.1813387-4-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-25 14:37:51 -08:00
Carlos Llamas
c8c1158ffb binder: fix use-after-free in shinker's callback
commit 3f489c2067c5824528212b0fc18b28d51332d906 upstream.

The mmap read lock is used during the shrinker's callback, which means
that using alloc->vma pointer isn't safe as it can race with munmap().
As of commit dd2283f260 ("mm: mmap: zap pages with read mmap_sem in
munmap") the mmap lock is downgraded after the vma has been isolated.

I was able to reproduce this issue by manually adding some delays and
triggering page reclaiming through the shrinker's debug sysfs. The
following KASAN report confirms the UAF:

  ==================================================================
  BUG: KASAN: slab-use-after-free in zap_page_range_single+0x470/0x4b8
  Read of size 8 at addr ffff356ed50e50f0 by task bash/478

  CPU: 1 PID: 478 Comm: bash Not tainted 6.6.0-rc5-00055-g1c8b86a3799f-dirty #70
  Hardware name: linux,dummy-virt (DT)
  Call trace:
   zap_page_range_single+0x470/0x4b8
   binder_alloc_free_page+0x608/0xadc
   __list_lru_walk_one+0x130/0x3b0
   list_lru_walk_node+0xc4/0x22c
   binder_shrink_scan+0x108/0x1dc
   shrinker_debugfs_scan_write+0x2b4/0x500
   full_proxy_write+0xd4/0x140
   vfs_write+0x1ac/0x758
   ksys_write+0xf0/0x1dc
   __arm64_sys_write+0x6c/0x9c

  Allocated by task 492:
   kmem_cache_alloc+0x130/0x368
   vm_area_alloc+0x2c/0x190
   mmap_region+0x258/0x18bc
   do_mmap+0x694/0xa60
   vm_mmap_pgoff+0x170/0x29c
   ksys_mmap_pgoff+0x290/0x3a0
   __arm64_sys_mmap+0xcc/0x144

  Freed by task 491:
   kmem_cache_free+0x17c/0x3c8
   vm_area_free_rcu_cb+0x74/0x98
   rcu_core+0xa38/0x26d4
   rcu_core_si+0x10/0x1c
   __do_softirq+0x2fc/0xd24

  Last potentially related work creation:
   __call_rcu_common.constprop.0+0x6c/0xba0
   call_rcu+0x10/0x1c
   vm_area_free+0x18/0x24
   remove_vma+0xe4/0x118
   do_vmi_align_munmap.isra.0+0x718/0xb5c
   do_vmi_munmap+0xdc/0x1fc
   __vm_munmap+0x10c/0x278
   __arm64_sys_munmap+0x58/0x7c

Fix this issue by performing instead a vma_lookup() which will fail to
find the vma that was isolated before the mmap lock downgrade. Note that
this option has better performance than upgrading to a mmap write lock
which would increase contention. Plus, mmap_write_trylock() has been
recently removed anyway.

Fixes: dd2283f260 ("mm: mmap: zap pages with read mmap_sem in munmap")
Cc: stable@vger.kernel.org
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Minchan Kim <minchan@kernel.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20231201172212.1813387-3-cmllamas@google.com
[cmllamas: use find_vma() instead of vma_lookup() as commit ce6d42f2e4a2
 is missing in v5.10. This only works because we check the vma against
 our cached alloc->vma pointer.]
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-25 14:37:50 -08:00
Carlos Llamas
abbb909287 binder: fix unused alloc->free_async_space
commit c6d05e0762ab276102246d24affd1e116a46aa0c upstream.

Each transaction is associated with a 'struct binder_buffer' that stores
the metadata about its buffer area. Since commit 74310e06be ("android:
binder: Move buffer out of area shared with user space") this struct is
no longer embedded within the buffer itself but is instead allocated on
the heap to prevent userspace access to this driver-exclusive info.

Unfortunately, the space of this struct is still being accounted for in
the total buffer size calculation, specifically for async transactions.
This results in an additional 104 bytes added to every async buffer
request, and this area is never used.

This wasted space can be substantial. If we consider the maximum mmap
buffer space of SZ_4M, the driver will reserve half of it for async
transactions, or 0x200000. This area should, in theory, accommodate up
to 262,144 buffers of the minimum 8-byte size. However, after adding
the extra 'sizeof(struct binder_buffer)', the total number of buffers
drops to only 18,724, which is a sad 7.14% of the actual capacity.

This patch fixes the buffer size calculation to enable the utilization
of the entire async buffer space. This is expected to reduce the number
of -ENOSPC errors that are seen on the field.

Fixes: 74310e06be ("android: binder: Move buffer out of area shared with user space")
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20231201172212.1813387-6-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-25 14:37:50 -08:00
Carlos Llamas
fa62c9050e binder: fix async space check for 0-sized buffers
commit 3091c21d3e9322428691ce0b7a0cfa9c0b239eeb upstream.

Move the padding of 0-sized buffers to an earlier stage to account for
this round up during the alloc->free_async_space check.

Fixes: 74310e06be ("android: binder: Move buffer out of area shared with user space")
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20231201172212.1813387-5-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-25 14:37:50 -08:00
Carlos Llamas
214aac202d binder: fix comment on binder_alloc_new_buf() return value
commit e1090371e02b601cbfcea175c2a6cc7c955fa830 upstream.

Update the comments of binder_alloc_new_buf() to reflect that the return
value of the function is now ERR_PTR(-errno) on failure.

No functional changes in this patch.

Cc: stable@vger.kernel.org
Fixes: 57ada2fb22 ("binder: add log information for binder transaction failures")
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20231201172212.1813387-8-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-25 14:37:38 -08:00
Carlos Llamas
689f13128f binder: fix trivial typo of binder_free_buf_locked()
commit 122a3c1cb0ff304c2b8934584fcfea4edb2fe5e3 upstream.

Fix minor misspelling of the function in the comment section.

No functional changes in this patch.

Cc: stable@vger.kernel.org
Fixes: 0f966cba95c7 ("binder: add flag to clear buffer on txn complete")
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20231201172212.1813387-7-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-25 14:37:38 -08:00
Carlos Llamas
e18d60757b binder: use EPOLLERR from eventpoll.h
commit 6ac061db9c58ca5b9270b1b3940d2464fb3ff183 upstream.

Use EPOLLERR instead of POLLERR to make sure it is cast to the correct
__poll_t type. This fixes the following sparse issue:

  drivers/android/binder.c:5030:24: warning: incorrect type in return expression (different base types)
  drivers/android/binder.c:5030:24:    expected restricted __poll_t
  drivers/android/binder.c:5030:24:    got int

Fixes: f88982679f ("binder: check for binder_thread allocation failure in binder_poll()")
Cc: stable@vger.kernel.org
Cc: Eric Biggers <ebiggers@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20231201172212.1813387-2-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-25 14:37:38 -08:00
Carlos Llamas
f22c548c91 FROMLIST: binder: fix memory leaks of spam and pending work
commit 1aa3aaf8953c84bad398adf6c3cabc9d6685bf7d upstream

A transaction complete work is allocated and queued for each
transaction. Under certain conditions the work->type might be marked as
BINDER_WORK_TRANSACTION_ONEWAY_SPAM_SUSPECT to notify userspace about
potential spamming threads or as BINDER_WORK_TRANSACTION_PENDING when
the target is currently frozen.

However, these work types are not being handled in binder_release_work()
so they will leak during a cleanup. This was reported by syzkaller with
the following kmemleak dump:

BUG: memory leak
unreferenced object 0xffff88810e2d6de0 (size 32):
  comm "syz-executor338", pid 5046, jiffies 4294968230 (age 13.590s)
  hex dump (first 32 bytes):
    e0 6d 2d 0e 81 88 ff ff e0 6d 2d 0e 81 88 ff ff  .m-......m-.....
    04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff81573b75>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
    [<ffffffff83d41873>] kmalloc include/linux/slab.h:599 [inline]
    [<ffffffff83d41873>] kzalloc include/linux/slab.h:720 [inline]
    [<ffffffff83d41873>] binder_transaction+0x573/0x4050 drivers/android/binder.c:3152
    [<ffffffff83d45a05>] binder_thread_write+0x6b5/0x1860 drivers/android/binder.c:4010
    [<ffffffff83d486dc>] binder_ioctl_write_read drivers/android/binder.c:5066 [inline]
    [<ffffffff83d486dc>] binder_ioctl+0x1b2c/0x3cf0 drivers/android/binder.c:5352
    [<ffffffff816b25f2>] vfs_ioctl fs/ioctl.c:51 [inline]
    [<ffffffff816b25f2>] __do_sys_ioctl fs/ioctl.c:871 [inline]
    [<ffffffff816b25f2>] __se_sys_ioctl fs/ioctl.c:857 [inline]
    [<ffffffff816b25f2>] __x64_sys_ioctl+0xf2/0x140 fs/ioctl.c:857
    [<ffffffff84b30008>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84b30008>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

Fix the leaks by kfreeing these work types in binder_release_work() and
handle them as a BINDER_WORK_TRANSACTION_COMPLETE cleanup.

Cc: stable@vger.kernel.org
Fixes: a7dc1e6f99df ("binder: tell userspace to dump current backtrace when detected oneway spamming")
Reported-by: syzbot+7f10c1653e35933c0f1e@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=7f10c1653e35933c0f1e
Suggested-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Todd Kjos <tkjos@google.com>
Link: https://lore.kernel.org/r/20230922175138.230331-1-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[cmllamas: backport to v5.15 by dropping BINDER_WORK_TRANSACTION_PENDING
 as commit 0567461a7a6e is not present. Remove fixes tag accordingly.]
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

Link: https://lore.kernel.org/all/20231208034842.997899-1-cmllamas@google.com/
Change-Id: I8e1ee7af87ef5706544e4f320e9498b8f4855a6b
[cmllamas: also backport to v5.10 to fix OOT 0493c72d6d]
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2023-12-15 13:22:07 +00:00
Browse Zhang
85d8fb9163 ANDROID: Add vendor hook for ufs perf heuristic and error recovery
Added vendor hook to consider ufs host/device perf heuristic
and error recovery according to different platform/design
Vendor/Platform can take necessary action according to their
design/implementation

Added vendor hook before calling UFS command ops
   - trace_android_vh_ufs_perf_huristic_ctrl
Added vendor hook after sending UFS command to host
   - trace_android_vh_ufs_send_command_post_change
Added vendor hook for abort success case
   - trace_android_vh_ufs_abort_success_ctrl

Added vendor hook for completion response check
 - trace_android_vh_ufs_compl_rsp_check_done
Added vendor hook for vendor specific error handling
 - trace_android_vh_ufs_err_handler
Added vendor hook for err logs printing control
 - trace_android_vh_ufs_err_print_ctrl
Added vendor hook for error checking flow trigger
 - trace_android_vh_ufs_err_check_ctrl

Bug: 312806167
Change-Id: I2190afe62b60da9d47001307f858f10fc8a59986
Signed-off-by: Sanjeev Yadav <sanjeev.y@mediatek.com>
Signed-off-by: Browse Zhang <browse.zhang@mediatek.com>
2023-12-12 22:03:30 +00:00
lfc
464ef3ee59 ANDROID: vendor_hooks: Add hooks for binder
Add hooks to support oem's binder feature of improving binder_thread->task sched priority

1) Check if it is a specific task in trace_android_vh_alloc_oem_binder_struct() and store the flag to t->android_vendor_data1
2) If it is a specific binder task and binder_thread selected, raise the sched priority of binder_thread->task in runqueue.
3) If it is a specific binder task but no binder_thread selected (e.g pending_async or no free threads), insert t->work to the appropriate position in the list.
4) Reset the sched priority when BR_TRANSACTION or BC_FREE_BUFFER.
Some high-priority async binder task reset the sched priority when BC_FREE_BUFFER in trace_android_vh_binder_free_buf().
Some middle-priority async binder task reset the sched priority when driver return server "BR_TRANSACTION" in trace_android_vh_binder_transaction_received().

Bug: 308391339

Change-Id: Iab4939fe4a4881b31961aaa2fef500b51c944743
Signed-off-by: lfc <lfc@oppo.com>
2023-11-21 02:40:33 +00:00
Treehugger Robot
f40707abde Merge "Merge tag 'android12-5.10.198_r00' into android12-5.10" into android12-5.10 2023-11-03 21:00:44 +00:00
zihan ju
91d2427218 ANDROID: Add Interrupt Hook for madvise Compression
We introduce an interrupt hook in Android to manage memory compression
using madvise, improving user experience.

Currently, when a user returns to the home screen, memory compression is
triggered using madvise. The vma and PAGEOUT flag are sent to
process_madvise, initiating page reclaim.

However, if an app is re-opened soon after starting compression, the
reclaim process can cause read delays, leading to potential lag.

To resolve this, we propose to skip pte range traversal. By comparing
the vma's task uid with the current app's uid, we can identify and
interrupt the madvise operation for that vma.

Implementing this requires a vendor hook for should_end_madvise. This
allows us to skip traversal, enhancing user experience.

Bug: 307846869

Change-Id: If2bdbc200b7305e92f836353b7356aa115e00705
Signed-off-by: zihan ju <zihan.ju@transsion.com>
2023-11-01 19:07:41 +00:00
Greg Kroah-Hartman
1289e04b48 Merge tag 'android12-5.10.198_r00' into android12-5.10
This merges catches the android12-5.10 branch up with the 5.10.198 LTS
release.  Included in here are the following commits:

* 9db823a19d Revert "netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp"
* f95f372cf9 Revert "net: bridge: use DEV_STATS_INC()"
*   3e7bedcc0e Merge 5.10.198 into android12-5.10-lts
|\
| * a8d812240f Linux 5.10.198
| * 660627c71b xen/events: replace evtchn_rwlock with RCU
| * 1e3d016a95 mmc: renesas_sdhi: only reset SCC when its pointer is populated
| * a7d86a77c3 netfilter: nftables: exthdr: fix 4-byte stack OOB write
| * 84f6b686df netfilter: nf_tables: fix kdoc warnings after gc rework
| * c17446c008 parisc: Restore __ldcw_align for PA-RISC 2.0 processors
| * cfc333393a RDMA/mlx5: Fix NULL string error
| * 0d520cdb0c RDMA/siw: Fix connection failure handling
| * 5a4a6a47e0 RDMA/uverbs: Fix typo of sizeof argument
| * 626868282c RDMA/cma: Fix truncation compilation warning in make_cma_ports
| * 7de0e42444 RDMA/cma: Initialize ib_sa_multicast structure to 0 when join
| * 36953b4da7 gpio: pxa: disable pinctrl calls for MMP_GPIO
| * 6ad972e668 gpio: aspeed: fix the GPIO number passed to pinctrl_gpio_set_config()
| * d7d8f1a679 IB/mlx4: Fix the size of a buffer in add_port_entries()
| * 204c2d485f of: dynamic: Fix potential memory leak in of_changeset_action()
| * b74f12f98b RDMA/core: Require admin capabilities to set system parameters
| * ccd87fe7a0 dm zoned: free dmz->ddev array in dmz_put_zoned_devices
| * 82d87c944e cpupower: add Makefile dependencies for install targets
| * 492241613c sctp: update hb timer immediately after users change hb_interval
| * f876584938 sctp: update transport state when processing a dupcook packet
| * ff346b01eb tcp: fix delayed ACKs for MSS boundary condition
| * 677aaa261e tcp: fix quick-ack counting to count actual ACKs of new data
| * 6a24d0661f tipc: fix a potential deadlock on &tx->lock
| * b9f1568ba3 net: stmmac: dwmac-stm32: fix resume on STM32 MCU
| * 3a5142f017 netfilter: nf_tables: nft_set_rbtree: fix spurious insertion failure
| * 0ba9348532 netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp
| * b212f361a5 net: ethernet: ti: am65-cpsw: Fix error code in am65_cpsw_nuss_init_tx_chns()
| * dba849cc98 net: nfc: llcp: Add lock when modifying device list
| * 30bc4d7aeb net: usb: smsc75xx: Fix uninit-value access in __smsc75xx_read_reg
| * d44346dda7 net: dsa: mv88e6xxx: Avoid EEPROM timeout when EEPROM is absent
| * 96b2e10903 ipv4, ipv6: Fix handling of transhdrlen in __ip{,6}_append_data()
| * 2ea52a2fb8 net: fix possible store tearing in neigh_periodic_work()
| * 6e3d9e5cab modpost: add missing else to the "of" check
| * 225cd4f67b NFSv4: Fix a nfs4_state_manager() race
| * d8f2ba9ec3 ima: rework CONFIG_IMA dependency block
| * 77f82df960 scsi: target: core: Fix deadlock due to recursive locking
| * a9430129d8 ima: Finish deprecation of IMA_TRUSTED_KEYRING Kconfig
| * 725fd20805 regmap: rbtree: Fix wrong register marked as in-cache when creating new node
| * 666cdc43df wifi: mt76: mt76x02: fix MT76x0 external LNA gain handling
| * 54a4faab2b drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close()
| * 93dd471d3a bpf: Fix tr dereferencing
| * 10a18c8bac wifi: mwifiex: Fix oob check condition in mwifiex_process_rx_packet
| * 8c15c1bcc5 wifi: iwlwifi: dbg_ini: fix structure packing
| * a5f643ab11 ubi: Refuse attaching if mtd's erasesize is 0
| * 33420a8206 arm64: Add Cortex-A520 CPU part definition
| * 81d03e2518 net: prevent rewrite of msg_name in sock_sendmsg()
| * 72fc02ebfc net: replace calls to sock->ops->connect() with kernel_connect()
| * 1aeff207e2 wifi: mwifiex: Fix tlv_buf_left calculation
| * f6f25930fa qed/red_ll2: Fix undefined behavior bug in struct qed_ll2_info
| * b9c4b3ca90 scsi: zfcp: Fix a double put in zfcp_port_enqueue()
| * 04b6b67a3e Revert "PCI: qcom: Disable write access to read only registers for IP v2.3.3"
| * c2cf152e8b Revert "clk: imx: pll14xx: dynamically configure PLL for 393216000/361267200Hz"
| * f94471c0cc block: fix use-after-free of q->q_usage_counter
| * 0d6987d4a3 rbd: take header_rwsem in rbd_dev_refresh() only when updating
| * d3d170c5fc rbd: decouple parent info read-in from updating rbd_dev
| * 3ceb306f9b rbd: decouple header read-in from updating rbd_dev->header
| * 7c4f11d73b rbd: move rbd_dev_refresh() definition
| * d0952ce316 drm/mediatek: Fix backport issue in mtk_drm_gem_prime_vmap()
| * c33d75a57a ring-buffer: Fix bytes info in per_cpu buffer stats
| * 0ecde7dd76 ring-buffer: remove obsolete comment for free_buffer_page()
| * 2ad1a1d3d6 NFSv4: Fix a state manager thread deadlock regression
| * ec4325e806 NFS: rename nfs_client_kset to nfs_kset
| * 598539f38c NFS: Cleanup unused rpc_clnt variable
| * 19f3d5d13b spi: zynqmp-gqspi: fix clock imbalance on probe failure
| * 2cdec9c13f spi: spi-zynqmp-gqspi: Fix runtime PM imbalance in zynqmp_qspi_probe
| * ae03dafc37 fs: binfmt_elf_efpic: fix personality for ELF-FDPIC
| * 8ec1abb59a ata: libata-sata: increase PMP SRST timeout to 10s
| * dc0bd0f2da ata: libata-core: Do not register PM operations for SAS ports
| * 531d9f6dbf ata: libata-core: Fix port and device removal
| * 99d308c319 ata: libata-core: Fix ata_port_request_pm() locking
| * eaf4496662 net: thunderbolt: Fix TCPv6 GSO checksum calculation
| * 72595dbfca bpf: Fix BTF_ID symbol generation collision in tools/
| * 6a80578bd4 bpf: Fix BTF_ID symbol generation collision
| * cbbfdb4bab btrfs: properly report 0 avail for very full file systems
| * ef47f25e98 ring-buffer: Update "shortest_full" in polling
| * b7a0df4c08 proc: nommu: /proc/<pid>/maps: release mmap read lock
| * acc7fc82d0 Revert "SUNRPC dont update timeout value on connection reset"
| * e3b8c9e0fc i2c: i801: unregister tco_pdev in i801_probe() error path
| * b664e9db8d ata: libata-scsi: ignore reserved bits for REPORT SUPPORTED OPERATION CODES
| * 25872c67de ALSA: hda: Disable power save for solving pop issue on Lenovo ThinkCentre M70q
| * 5a03b42ae1 netfilter: nf_tables: disallow rule removal from chain binding
| * 7130a87ca3 nilfs2: fix potential use after free in nilfs_gccache_submit_read_data()
| * e14afa4450 serial: 8250_port: Check IRQ data before use
| * 6d5c886293 Revert "tty: n_gsm: fix UAF in gsm_cleanup_mux"
| * 14443223e0 Smack:- Use overlay inode label in smack_inode_copy_up()
| * 297c51c63f smack: Retrieve transmuting information in smack_inode_getsecurity()
| * 41de7a6b95 smack: Record transmuting in smk_transmuted
| * 831f18c735 nvme-pci: always return an ERR_PTR from nvme_pci_alloc_dev
| * fb28f89d50 netfilter: nft_exthdr: Fix for unsafe packet data read
| * e18216cd0e netfilter: nft_exthdr: Search chunks in SCTP packets only
| * 152b8ac839 watchdog: iTCO_wdt: Set NO_REBOOT if the watchdog is not already running
| * 13b7d49f33 watchdog: iTCO_wdt: No need to stop the timer in probe
| * 0d599a3f57 nvme-pci: do not set the NUMA node of device if it has none
| * 97e148dcb9 nvme-pci: factor out a nvme_pci_alloc_dev helper
| * 71357c751f nvme-pci: factor the iod mempool creation into a helper
| * 38f82cf860 ACPI: Check StorageD3Enable _DSD property in ACPI code
| * 67025d5654 cgroup: Fix suspicious rcu_dereference_check() usage warning
| * b2788f6d49 sched/cpuacct: Optimize away RCU read lock
| * 82756d8a23 sched/cpuacct: Fix charge percpu cpuusage
| * f8e8e72c58 sched/cpuacct: Fix user/system in shown cpuacct.usage*
| * ef3c728ca0 perf build: Define YYNOMEM as YYNOABORT for bison < 3.81
| * da91481c5d fbdev/sh7760fb: Depend on FB=y
| * ffc459a930 ncsi: Propagate carrier gain/loss events to the NCSI controller
| * 8c2500228b powerpc/watchpoints: Disable preemption in thread_change_pc()
| * f5bdbed036 media: vb2: frame_vector.c: replace WARN_ONCE with a comment
| * ebc9184806 bpf: Clarify error expectations from bpf_clone_redirect
| * 0118244848 spi: nxp-fspi: reset the FLSHxCR1 registers
| * f6cf19c1b3 ata: libata-eh: do not clear ATA_PFLAG_EH_PENDING in ata_eh_reset()
| * 2afd8fcee0 scsi: pm80xx: Avoid leaking tags when processing OPC_INB_SET_CONTROLLER_CONFIG command
| * 0decc581e1 scsi: pm80xx: Use phy-specific SAS address when sending PHY_START command
| * f44e66447c platform/mellanox: mlxbf-bootctl: add NET dependency into Kconfig
| * cee5151c54 ring-buffer: Do not attempt to read past "commit"
| * 2956e33fb4 selftests: fix dependency checker script
| * 9ccce21bd7 ring-buffer: Avoid softlockup in ring_buffer_resize()
| * 5dfcb92905 selftests/ftrace: Correctly enable event in instance-event.tc
| * 38ef4b2e4d scsi: qedf: Add synchronization between I/O completions and abort
| * 2081b2a15b parisc: irq: Make irq_stack_union static to avoid sparse warning
| * f47efdffdc parisc: drivers: Fix sparse warning
| * d967a9472b parisc: iosapic.c: Fix sparse warnings
| * 7b2440c2d6 parisc: sba: Fix compile warning wrt list of SBA devices
| * c793005999 dma-debug: don't call __dma_entry_alloc_check_leak() under free_entries_lock
| * 061f402753 i2c: npcm7xx: Fix callback completion ordering
| * dd81e91b2e gpio: pmic-eic-sprd: Add can_sleep flag for PMIC EIC chip
| * b317f69871 xtensa: boot/lib: fix function prototypes
| * be17dfdcc8 xtensa: boot: don't add include-dirs
| * a10bfbe599 xtensa: iss/network: make functions static
| * 608af5511a xtensa: add default definition for XCHAL_HAVE_DIV32
| * 3696261859 power: supply: ucs1002: fix error code in ucs1002_get_property()
| * eff55feb8b bus: ti-sysc: Fix SYSC_QUIRK_SWSUP_SIDLE_ACT handling for uart wake-up
| * 1bc8867196 ARM: dts: ti: omap: motorola-mapphone: Fix abe_clkctrl warning on boot
| * a2a592adad ARM: dts: Unify pwm-omap-dmtimer node names
| * 2d9c9589da ARM: dts: am335x: Guardian: Update beeper label
| * ef83f35ced ARM: dts: motorola-mapphone: Drop second ti,wlcore compatible value
| * 12a28c379e ARM: dts: motorola-mapphone: Add 1.2GHz OPP
| * afdc40a74a ARM: dts: motorola-mapphone: Configure lower temperature passive cooling
| * 093a9a02d4 ARM: dts: ti: omap: Fix bandgap thermal cells addressing for omap3/4
| * 28e5423ad8 ARM: dts: omap: correct indentation
| * 50789f3723 clk: tegra: fix error return case for recalc_rate
| * 0fd5839e25 bus: ti-sysc: Fix missing AM35xx SoC matching
| * 1d4d846e2a bus: ti-sysc: Use fsleep() instead of usleep_range() in sysc_reset()
| * a8ee76d727 MIPS: Alchemy: only build mmc support helpers if au1xmmc is enabled
| * d678c078f3 btrfs: reset destination buffer when read_extent_buffer() gets invalid range
| * a1f85bc9bc ata: ahci: Add Elkhart Lake AHCI controller
| * 51d190cc98 ata: ahci: Rename board_ahci_mobile
| * 8061c399c8 ata: ahci: Add support for AMD A85 FCH (Hudson D4)
| * 0156cce71f ata: libata: Rename link flag ATA_LFLAG_NO_DB_DELAY
| * 9f0d346630 netfilter: nft_exthdr: Fix non-linear header modification
| * ed60b8014c netfilter: exthdr: add support for tcp option removal
| * 10670abe11 netfilter: nft_exthdr: break evaluation if setting TCP option fails
| * 45b3eb6afc netfilter: nf_tables: add and use nft_thoff helper
| * 39546418b8 netfilter: nf_tables: add and use nft_sk helper
| * af844ba799 netfilter: nft_exthdr: Support SCTP chunks
| * 858ca19216 netfilter: use actual socket sk for REJECT action
| * 2d9ea86f3c media: venus: hfi_venus: Write to VIDC_CTRL_INIT after unmasking interrupts
| * c4cc1f690f media: venus: hfi: Add a 6xx boot logic
| * 4596fece3c media: venus: core: Add differentiator IS_V6(core)
| * 3ed9d3dc24 media: venus: hfi: Define additional 6xx registers
| * ebccb53232 media: venus: hfi,pm,firmware: Convert to block relative addressing
| * 4ccdeb68da media: venus: core: Add io base variables for each block
| * 6d3745bbc3 mmc: renesas_sdhi: register irqs before registering controller
| * 995ef65e4b mmc: tmio: support custom irq masks
| * 97eb045386 mmc: renesas_sdhi: populate SCC pointer at the proper place
| * 7217ceb61a mmc: renesas_sdhi: probe into TMIO after SCC parameters have been setup
| * e492f81251 Input: i8042 - add quirk for TUXEDO Gemini 17 Gen1/Clevo PD70PN
| * 677bff659f Input: i8042 - rename i8042-x86ia64io.h to i8042-acpipnpio.h
| * 3fac8ce48f netfilter: nf_tables: double hook unregistration in netns path
| * e51f30826b netfilter: nf_tables: unregister flowtable hooks on netns exit
| * 5e95c88e90 i2c: mux: demux-pinctrl: check the return value of devm_kstrdup()
| * 0a78bcc2d5 gpio: tb10x: Fix an error handling path in tb10x_gpio_probe()
| * f515112e83 net: rds: Fix possible NULL-pointer dereference
| * 466e88548e bnxt_en: Flush XDP for bnxt_poll_nitroa0()'s NAPI
| * 78106529b3 locking/seqlock: Do the lockdep annotation before locking in do_write_seqcount_begin_nested()
| * a8dd21118b seqlock: Prefix internal seqcount_t-only macros with a "do_"
| * ac01a0dd79 seqlock: Rename __seqprop() users
| * a8460ee6c8 seqlock: avoid -Wshadow warnings
| * f1893feb20 netfilter: ipset: Fix race between IPSET_CMD_CREATE and IPSET_CMD_SWAP
| * b44dd92e2a team: fix null-ptr-deref when team device type is changed
| * 04cc361f02 net: bridge: use DEV_STATS_INC()
| * 1671dc1b25 net: hns3: add 5ms delay before clear firmware reset irq source
| * 309af4a39b net: hns3: only enable unicast promisc when mac table full
| * ae806c74c0 x86/srso: Fix SBPB enablement for spec_rstack_overflow=off
| * 423ba1b3a5 x86/srso: Fix srso_show_state() side effect
| * 1ec40ef6f7 platform/x86: intel_scu_ipc: Fail IPC send if still busy
| * 4c5eaf6d8b platform/x86: intel_scu_ipc: Don't override scu in intel_scu_ipc_dev_simple_command()
| * 441b61d742 platform/x86: intel_scu_ipc: Check status upon timeout in ipc_wait_for_interrupt()
| * c463898b6e platform/x86: intel_scu_ipc: Check status after timeout in busy_loop()
| * 60d73c62e3 dccp: fix dccp_v4_err()/dccp_v6_err() again
| * 09a1c790e1 powerpc/perf/hv-24x7: Update domain value check
| * 8689c9ace9 ipv4: fix null-deref in ipv4_link_failure
| * 47907ebeb7 i40e: Fix VF VLAN offloading when port VLAN is configured
| * a91861446f ASoC: imx-audmix: Fix return error with devm_clk_get()
| * c4ecedf980 selftests: tls: swap the TX and RX sockets in some tests
| * 78ef69b6e7 selftests/tls: Add {} to avoid static checker warning
| * 388c9d3eef bpf: Avoid deadlock when using queue and stack maps from NMI
| * 6dc85d848c netfilter: nf_tables: disallow element removal on anonymous sets
| * a45632f997 ASoC: meson: spdifin: start hw on dai probe
| * 09c85f2d21 netfilter: nf_tables: fix memleak when more than 255 elements expired
| * 4deaf1316b netfilter: nft_set_hash: try later when GC hits EAGAIN on iteration
| * 26d0e4d632 netfilter: nft_set_pipapo: stop GC iteration if GC transaction allocation fails
| * b796c4e4bf netfilter: nft_set_rbtree: use read spinlock to avoid datapath contention
| * c323ed65f6 netfilter: nft_set_rbtree: skip sync GC for new elements in this transaction
| * 09f2dda1e5 netfilter: nf_tables: defer gc run if previous batch is still pending
| * b71dcee2fc netfilter: nf_tables: use correct lock to protect gc_list
| * 23292bdfda netfilter: nf_tables: GC transaction race with abort path
| * dc0b1f0195 netfilter: nf_tables: GC transaction race with netns dismantle
| * 4046f2b56e netfilter: nf_tables: fix GC transaction races with netns and netlink event exit path
| * 891ca5dfe3 netfilter: nf_tables: don't fail inserts if duplicate has expired
| * 911dd3cdf1 netfilter: nf_tables: remove busy mark and gc batch API
| * 77046cb008 netfilter: nft_set_hash: mark set element as dead when deleting from packet path
| * 146c768667 netfilter: nf_tables: adapt set backend to use GC transaction API
| * 448be07748 netfilter: nf_tables: GC transaction API to avoid race with control plane
| * b15ea4017a netfilter: nf_tables: don't skip expired elements during walk
| * f8bf770615 netfilter: nf_tables: integrate pipapo into commit protocol
| * 9b65bff30a tracing: Have event inject files inc the trace array ref count
| * f8a86ab3c4 ext4: do not let fstrim block system suspend
| * c502b09d9b ext4: move setting of trimmed bit into ext4_try_to_trim_range()
| * e78e9f08a2 ext4: replace the traditional ternary conditional operator with with max()/min()
| * cbf6a0f654 ext4: mark group as trimmed only if it was fully scanned
| * 5eaf4a1e06 ext4: change s_last_trim_minblks type to unsigned long
| * 24a86315a3 ext4: scope ret locally in ext4_try_to_trim_range()
| * da1895f731 ext4: add new helper interface ext4_try_to_trim_range()
| * 6f5fc957df ext4: remove the 'group' parameter of ext4_trim_extent
| * 69c9665830 ata: libahci: clear pending interrupt status
| * 11d15a115c ata: ahci: Drop pointless VPRINTK() calls and convert the remaining ones
| * 407bf1c140 tracing: Increase trace array ref count on enable and filter files
| * 3f7df02fa0 SUNRPC: Mark the cred for revalidation if the server rejects it
| * 25ae2b2fdb NFS/pNFS: Report EINVAL errors from connect() to the server
| * 26db22a639 NFS: Use the correct commit info in nfs_join_page_group()
* | 3414e62421 Merge 5.10.197 into android12-5.10-lts
|\|
| * 393e225fe8 Linux 5.10.197
| * 242c5740dd ext4: fix rec_len verify error
| * 8768583b25 scsi: pm8001: Setup IRQs on resume
| * f4fffa1abb scsi: megaraid_sas: Fix deadlock on firmware crashdump
| * 3753e568d6 ata: libata: disallow dev-initiated LPM transitions to unsupported states
| * 993bb01d22 i2c: aspeed: Reset the i2c controller when timeout occurs
| * f5e303fce3 tracefs: Add missing lockdown check to tracefs_create_dir()
| * 96afb318ae nfsd: fix change_info in NFSv4 RENAME replies
| * b3183f5f05 tracing: Have option files inc the trace array ref count
| * ec7eb8b064 tracing: Have current_trace inc the trace array ref count
| * bb3e295a38 drm/amd/display: enable cursor degamma for DCN3+ DRM legacy gamma
| * 2cdcf6481c mm/filemap: fix infinite loop in generic_file_buffered_read()
| * 0c5d5f8e0d proc: fix a dentry lock race between release_task and lookup
| * 8db844077e net/sched: Retire rsvp classifier
| * 7a8f285cb5 drm/amdgpu: fix amdgpu_cs_p1_user_fence
| * 7390bb377b btrfs: release path before inode lookup during the ino lookup ioctl
| * 3d379dd109 btrfs: fix lockdep splat and potential deadlock after failure running delayed items
| * c6422e6f17 ovl: fix incorrect fdput() on aio completion
| * 68308b0a33 attr: block mode changes of symlinks
| * 634444dea8 md/raid1: fix error: ISO C90 forbids mixed declarations
| * 7be3a38f0e samples/hw_breakpoint: fix building without module unloading
| * d20beafaa6 x86/boot/compressed: Reserve more memory for page tables
| * 7635020b9b scsi: lpfc: Fix the NULL vs IS_ERR() bug for debugfs_create_file()
| * f990052376 selftests: tracing: Fix to unmount tracefs for recovering environment
| * ae889fffae scsi: qla2xxx: Fix NULL vs IS_ERR() bug for debugfs_create_dir()
| * 82910aa550 drm: gm12u320: Fix the timeout usage for usb_bulk_msg()
| * df380d6f5c btrfs: compare the correct fsid/metadata_uuid in btrfs_validate_super
| * ab90a3930d btrfs: add a helper to read the superblock metadata_uuid
| * cc87d2bb39 btrfs: move btrfs_pinned_by_swapfile prototype into volumes.h
| * e16f5f8cab perf tools: Add an option to build without libbfd
| * c560958127 perf jevents: Make build dependency on test JSONs
| * 4954c5a054 mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller
| * b87d03ed6a mtd: rawnand: brcmnand: Allow SoC to provide I/O operations
| * 5df5829158 kobject: Add sanity check for kset->kobj.ktype in kset_register()
| * a3efb2b57e media: pci: ipu3-cio2: Initialise timing struct to avoid a compiler warning
| * f354456f8d serial: cpm_uart: Avoid suspicious locking
| * bbe3ff47bf scsi: target: iscsi: Fix buffer overflow in lio_target_nacl_info_show()
| * 6d3a1dd105 usb: gadget: fsl_qe_udc: validate endpoint index for ch9 udc
| * 890d10e6b7 media: pci: cx23885: replace BUG with error return
| * 2ae53dd15e media: tuners: qt1010: replace BUG_ON with a regular error
| * 578b67614a media: dvb-usb-v2: gl861: Fix null-ptr-deref in gl861_i2c_master_xfer
| * a9def3e971 media: az6007: Fix null-ptr-deref in az6007_i2c_xfer()
| * 4a9763d2bc media: anysee: fix null-ptr-deref in anysee_master_xfer
| * c7e5ac737d media: af9005: Fix null-ptr-deref in af9005_i2c_xfer
| * 97fdbdb750 media: dw2102: Fix null-ptr-deref in dw2102_i2c_transfer()
| * 6c01ef65de media: dvb-usb-v2: af9035: Fix null-ptr-deref in af9035_i2c_master_xfer
| * 9f3b2b6668 powerpc/pseries: fix possible memory leak in ibmebus_bus_init()
| * 756747d4b4 jfs: fix invalid free of JFS_IP(ipimap)->i_imap in diUnmount
| * 6f8b344589 fs/jfs: prevent double-free in dbUnmount() after failed jfs_remount()
| * 4bff1d95ba ext2: fix datatype of block number in ext2_xattr_set2()
| * 7993cfc041 md: raid1: fix potential OOB in raid1_remove_disk()
| * 5933cd6139 bus: ti-sysc: Configure uart quirks for k3 SoC
| * 5475b8bea1 drm/exynos: fix a possible null-pointer dereference due to data race in exynos_drm_crtc_atomic_disable()
| * d51d6c42d1 ALSA: hda: intel-dsp-cfg: add LunarLake support
| * fcfb71848e samples/hw_breakpoint: Fix kernel BUG 'invalid opcode: 0000'
| * 9726e8dcab drm/bridge: tc358762: Instruct DSI host to generate HSE packets
| * 672205c6f2 wifi: mac80211_hwsim: drop short frames
| * 5bf52e431c netfilter: ebtables: fix fortify warnings in size_entry_mwt()
| * f6f0a68754 alx: fix OOB-read compiler warning
| * acf0019b93 mmc: sdhci-esdhc-imx: improve ESDHC_FLAG_ERR010450
| * c7a8813d91 tpm_tis: Resend command to recover from data transfer errors
| * 0fc7147c69 crypto: lib/mpi - avoid null pointer deref in mpi_cmp_ui()
| * 03385b243b wifi: wil6210: fix fortify warnings
| * 269eb4e1d5 wifi: mwifiex: fix fortify warning
| * 08fdbe3790 wifi: ath9k: fix printk specifier
| * 268a10c9eb wifi: ath9k: fix fortify warnings
| * 8c19ddc215 crypto: lrw,xts - Replace strlcpy with strscpy
| * cfca20009b devlink: remove reload failed checks in params get/set callbacks
| * 020ecfa7b6 hw_breakpoint: fix single-stepping when using bpf_overflow_handler
| * bfc747fe07 ACPI: video: Add backlight=native DMI quirk for Apple iMac12,1 and iMac12,2
| * dc01bfdc3d perf/smmuv3: Enable HiSilicon Erratum 162001900 quirk for HIP08/09
| * 560014aefb ACPI: video: Add backlight=native DMI quirk for Lenovo Ideapad Z470
| * 3f72fdb20f scftorture: Forgive memory-allocation failure if KASAN
| * 55887adc76 rcuscale: Move rcu_scale_writer() schedule_timeout_uninterruptible() to _idle()
| * f8bab887a4 kernel/fork: beware of __put_task_struct() calling context
| * 625c12dc04 ACPICA: Add AML_NO_OPERAND_RESOLVE flag to Timer
| * a6f4129378 locks: fix KASAN: use-after-free in trace_event_raw_event_filelock_lock
| * b7c3cf2f6c btrfs: output extra debug info if we failed to find an inline backref
| * 69ddafc7a7 autofs: fix memory leak of waitqueues in autofs_catatonic_mode
* | 16aeda0b7d Merge 5.10.196 into android12-5.10-lts
|\|
| * ff0bfa8f23 Linux 5.10.196
| * 2cc1f49862 Revert "configfs: fix a race in configfs_lookup()"
* | 5b4fcff944 Revert "configfs: fix a race in configfs_lookup()"
* | 84ae70e787 FROMLIST: lib/test_meminit: fix off-by-one error in test_pages()
* | a8b0203a91 FROMLIST: drm/mediatek: Fix backport issue in mtk_drm_gem_prime_vmap()
* | cb5f0587c6 Revert "scsi: core: Use 32-bit hostnum in scsi_host_lookup()"
* | 734d166d62 Revert "fs/nls: make load_nls() take a const parameter"
* | db08d2cf82 Revert "tracing: Introduce pipe_cpumask to avoid race on trace_pipes"
* | 73c7cc0b1e Revert "tracing: Zero the pipe cpumask on alloc to avoid spurious -EBUSY"
* | 2b40885cdc Revert "crypto: api - Use work queue in crypto_destroy_instance"
* | 92ecfcb0af Revert "ip_tunnels: use DEV_STATS_INC()"
* | 8026d5839b Merge 5.10.195 into android12-5.10-lts
|\|
| * 5452d1be67 Linux 5.10.195
| * d653c35de0 parisc: Drop loops_per_jiffy from per_cpu struct
| * 1d02ef8c8a drm/amd/display: Fix a bug when searching for insert_above_mpcc
| * 2e18493c42 kcm: Fix error handling for SOCK_DGRAM in kcm_sendmsg().
| * 606a0d8ff6 ixgbe: fix timestamp configuration code
| * 6edf82223f ipv6: fix ip6_sock_set_addr_preferences() typo
| * a5096cc6e7 net/tls: do not free tls_rec on async operation in bpf_exec_tx_verdict()
| * 03be4412d3 platform/mellanox: mlxbf-tmfifo: Drop jumbo frames
| * 687031788f platform/mellanox: mlxbf-tmfifo: Drop the Rx packet if no more descriptors
| * 33db24ad81 kcm: Fix memory leak in error path of kcm_sendmsg()
| * ed584f1e72 r8152: check budget for r8152_poll()
| * 1e90a93ac4 hsr: Fix uninit-value access in fill_frame_info()
| * 75f2de75c1 net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()
| * 61054a8ddb net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()
| * d1c6c93c27 net/smc: use smc_lgr_list.lock to protect smc_lgr_list.list iterate in smcr_port_add
| * fcb9e879a5 kselftest/runner.sh: Propagate SIGTERM to runner child
| * d94aac13a1 selftests/kselftest/runner/run_one(): allow running non-executable files
| * 7c8ddcdab1 net: ipv4: fix one memleak in __inet_del_ifa()
| * 15dabd02a9 bus: mhi: host: Skip MHI reset if device is in RDDM
| * de20747ee6 ARM: dts: BCM5301X: Extend RAM to full 256MB for Linksys EA6500 V2
| * 81d06d1919 ARM: dts: samsung: exynos4210-i9100: Fix LCD screen's physical size
| * 61fa6a16bb scsi: qla2xxx: Flush mailbox commands on chip reset
| * b5775b8530 scsi: qla2xxx: Fix crash in PCIe error handling
| * 41a660c204 scsi: qla2xxx: Consolidate zio threshold setting for both FCP & NVMe
| * 5c069bce2d scsi: qla2xxx: If fcport is undergoing deletion complete I/O with retry
| * e7ed3585d0 arm64: sdei: abort running SDEI handlers during crash
| * 0b55460c31 ACPI: APEI: explicit init of HEST and GHES in apci_init()
| * c6dc2a2e11 perf hists browser: Fix the number of entries for 'e' key
| * c07e4a4ef3 perf tools: Handle old data in PERF_RECORD_ATTR
| * b52a33a907 perf hists browser: Fix hierarchy mode header
| * d72b01d9f9 drm/amd/display: prevent potential division by zero errors
| * d68f639dde mtd: rawnand: brcmnand: Fix potential false time out warning
| * d00b031266 mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write
| * c839a24d6e mtd: rawnand: brcmnand: Fix crash during the panic_write
| * e76cef3dcd btrfs: use the correct superblock to compare fsid in btrfs_validate_super
| * f2873a18c2 btrfs: don't start transaction when joining with TRANS_JOIN_NOSTART
| * 3856e7b118 fuse: nlookup missing decrement in fuse_direntplus_link
| * 1d21b03f77 ata: pata_ftide010: Add missing MODULE_DESCRIPTION
| * 35a3dec703 ata: sata_gemini: Add missing MODULE_DESCRIPTION
| * b1d63e2bbd ext4: add correct group descriptors and reserved GDT blocks to system zone
| * 6612d5b535 sh: boards: Fix CEU buffer size passed to dma_declare_coherent_memory()
| * 97ef9ba7df net: hns3: fix the port information display when sfp is absent
| * 780f60dde2 netfilter: nfnetlink_osf: avoid OOB read
| * e89a361d99 net: dsa: sja1105: fix -ENOSPC when replacing the same tc-cbs too many times
| * 94a3117eff net: dsa: sja1105: fix bandwidth discrepancy between tc-cbs software and offload
| * e90e70343b ip_tunnels: use DEV_STATS_INC()
| * 2539b28a2b idr: fix param name in idr_alloc_cyclic() doc
| * 0878052579 s390/zcrypt: don't leak memory if dev_set_name() fails
| * d878011b5d igb: Change IGB_MIN to allow set rx/tx value between 64 and 80
| * 417b11433e igbvf: Change IGBVF_MIN to allow set rx/tx value between 64 and 80
| * 9444881a37 igc: Change IGC_MIN to allow set rx/tx value between 64 and 80
| * 46f02fc7f6 kcm: Destroy mutex in kcm_exit_net()
| * 746a8df5e4 net: sched: sch_qfq: Fix UAF in qfq_dequeue()
| * 31e08e7fa6 af_unix: Fix data race around sk->sk_err.
| * 90e32f81f9 af_unix: Fix data-races around sk->sk_shutdown.
| * cf29b42766 af_unix: Fix data-race around unix_tot_inflight.
| * b401d7e485 af_unix: Fix data-races around user->unix_inflight.
| * 98e12d075c net: ipv6/addrconf: avoid integer underflow in ipv6_create_tempaddr
| * d47bc5023e veth: Fixing transmit return status for dropped packets
| * ab9796f43c igb: disable virtualization features on 82580
| * 160fdb4116 ipv4: ignore dst hint for multipath routes
| * 29039819c6 drm/i915/gvt: Drop unused helper intel_vgpu_reset_gtt()
| * 23d2651372 drm/i915/gvt: Save/restore HW status to support GVT suspend/resume
| * 895dc4c471 net: read sk->sk_family once in sk_mc_loop()
| * 8edced38db ipv4: annotate data-races around fi->fib_dead
| * ab5c26dc53 sctp: annotate data-races around sk->sk_wmem_queued
| * 94d527c375 net/sched: fq_pie: avoid stalls in fq_pie_timer()
| * a2d9d884e8 pwm: lpc32xx: Remove handling of PWM channels
| * 6909e28cf3 watchdog: intel-mid_wdt: add MODULE_ALIAS() to allow auto-load
| * aec02fba99 perf top: Don't pass an ERR_PTR() directly to perf_session__delete()
| * 28df38af32 x86/virt: Drop unnecessary check on extended CPUID level in cpu_has_svm()
| * 23ec6fc52c perf annotate bpf: Don't enclose non-debug code with an assert()
| * 934d29b9fa backlight: gpio_backlight: Drop output GPIO direction check for initial power state
| * 84f9953215 kconfig: fix possible buffer overflow
| * 6cc6f79b93 NFSv4/pnfs: minor fix for cleanup path in nfs4_get_device_info
| * 4185605cd0 NFS: Fix a potential data corruption
| * 2ccab9f827 soc: qcom: qmi_encdec: Restrict string length in decode
| * bf27518fb9 clk: qcom: gcc-mdm9615: use proper parent for pll0_vote clock
| * 972acd701b clk: imx: pll14xx: dynamically configure PLL for 393216000/361267200Hz
| * 9214536728 dt-bindings: clock: xlnx,versal-clk: drop select:false
| * 690a22d6c5 pinctrl: cherryview: fix address_space_handler() argument
| * b02d1fb74e parisc: led: Reduce CPU overhead for disk & lan LED computation
| * 3add85c962 parisc: led: Fix LAN receive and transmit LEDs
| * 2a1cf9fe09 lib/test_meminit: allocate pages up to order MAX_ORDER
| * 6bfa28f441 drm/ast: Fix DRAM init on AST2200
| * 4aade6c910 fbdev/ep93xx-fb: Do not assign to struct fb_info.dev
| * db8b5a2254 scsi: qla2xxx: Remove unsupported ql2xenabledif option
| * fd48544f3e scsi: qla2xxx: Turn off noisy message log
| * 931fadf972 scsi: qla2xxx: Fix erroneous link up failure
| * 3694f18bea scsi: qla2xxx: fix inconsistent TMF timeout
| * 4d7da12483 scsi: qla2xxx: Fix deletion race condition
| * f271e3d64b io_uring: break iopolling on signal
| * 9faa6d0677 io_uring: break out of iowq iopoll on teardown
| * 208858d4b0 io_uring: always lock in io_apoll_task_func
| * 6ffab754d2 net/ipv6: SKB symmetric hash should incorporate transport ports
| * 26f9ccb7a0 udf: initialize newblock to 0
| * 06494cd473 md/md-bitmap: remove unnecessary local variable in backlog_store()
| * 5103216b86 tracing: Zero the pipe cpumask on alloc to avoid spurious -EBUSY
| * 1c4c9191b3 usb: typec: tcpci: clear the fault status bit
| * beba5051dd USB: core: Fix oversight in SuperSpeed initialization
| * 9d241c5d9a USB: core: Fix race by not overwriting udev->descriptor in hub_port_init()
| * 6ceffc2ecf USB: core: Change usb_get_device_descriptor() API
| * 3cef18d13f USB: core: Unite old scheme and new scheme descriptor reads
| * 38e1f2ee82 usb: typec: bus: verify partner exists in typec_altmode_attention
| * b97e3c5e97 cpufreq: brcmstb-avs-cpufreq: Fix -Warray-bounds bug
| * a1d2e2c670 crypto: stm32 - fix loop iterating through scatterlist for DMA
| * 54d03dc5d1 s390/ipl: add missing secure/has_secure file to ipl type 'unknown'
| * dc2f60de9a pstore/ram: Check start of empty przs during init
| * 5b1f71c0b9 fsverity: skip PKCS#7 parser when keyring is empty
| * a9864e126b net: handle ARPHRD_PPP in dev_is_mac_header_xmit()
| * c681d477c0 X.509: if signature is unsupported skip validation
| * 4b8a938e32 dccp: Fix out of bounds access in DCCP error handler
| * a4f4a5b41a dlm: fix plock lookup when using multiple lockspaces
| * 9f73fd6972 parisc: Fix /proc/cpuinfo output for lscpu
| * 1f03e6dd19 procfs: block chmod on /proc/thread-self/comm
| * 9a0b35dc3a Revert "PCI: Mark NVIDIA T4 GPUs to avoid bus reset"
| * 3d8d13a174 ntb: Fix calculation ntb_transport_tx_free_entry()
| * c028e90e0d ntb: Clean up tx tail index on link down
| * 3cfdc448e8 ntb: Drop packets when qp link is down
| * ffed0c8fcf scsi: mpt3sas: Perform additional retries if doorbell read returns 0
| * bf67d43f07 Revert "scsi: qla2xxx: Fix buffer overrun"
| * 27dfaf2ee0 media: dvb: symbol fixup for dvb_attach()
| * 5a85727239 arm64: csum: Fix OoB access in IP checksum code for negative lengths
| * b24bebcea5 xtensa: PMU: fix base address for the newer hardware
| * 8594605a04 backlight/lv5207lp: Compare against struct fb_info.device
| * e2c77841cd backlight/bd6107: Compare against struct fb_info.device
| * 35c56c4873 backlight/gpio_backlight: Compare against struct fb_info.device
| * 13264260eb ARM: OMAP2+: Fix -Warray-bounds warning in _pwrdm_state_switch()
| * 5c5f02e16b ipmi_si: fix a memleak in try_smi_init()
| * 5d27baee6c scsi: core: Fix the scsi_set_resid() documentation
| * 8c90c4e619 printk: ringbuffer: Fix truncating buffer size min_t cast
| * 61b918dfb6 ALSA: pcm: Fix missing fixup call in compat hw_refine ioctl
| * ab192e5e5d PM / devfreq: Fix leak in devfreq_dev_release()
| * 3e39008e9e igb: set max size RX buffer when store bad packet is enabled
| * 8836c26620 skbuff: skb_segment, Call zero copy functions before using skbuff frags
| * 5541827d13 netfilter: xt_sctp: validate the flag_info count
| * a1b711c370 netfilter: xt_u32: validate user space input
| * 83091f8ac0 netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
| * 1186eaffd8 igmp: limit igmpv3_newpack() packet size to IP_MAX_MTU
| * 504bb3fc66 virtio_ring: fix avail_wrap_counter in virtqueue_add_packed
| * ea374bdf23 cpufreq: Fix the race condition while updating the transition_task of policy
| * 27b75c7203 dmaengine: ste_dma40: Add missing IRQ check in d40_probe
| * cfe215a04a um: Fix hostaudio build errors
| * eb33921806 mtd: rawnand: fsmc: handle clk prepare error in fsmc_nand_resume()
| * 40d8f9bffe mtd: spi-nor: Check bus width while setting QE bit
| * 71ac2ffd7f rpmsg: glink: Add check for kstrdup
| * 268fce6ec2 phy/rockchip: inno-hdmi: do not power on rk3328 post pll on reg write
| * 6739746f4b phy/rockchip: inno-hdmi: round fractal pixclock in rk3328 recalc_rate
| * 88813bd9bb phy/rockchip: inno-hdmi: use correct vco_div_5 macro on rk3328
| * 3a890f993b mtd: rawnand: brcmnand: Fix mtd oobsize
| * c5d30d6aa8 tracing: Fix race issue between cpu buffer write and swap
| * ee519526d5 x86/speculation: Mark all Skylake CPUs as vulnerable to GDS
| * 15ec7cb55e HID: multitouch: Correct devm device reference for hidinput input_dev name
| * e38a6f1268 HID: logitech-dj: Fix error handling in logi_dj_recv_switch_to_dj_mode()
| * bdb3cd9dff RDMA/siw: Correct wrong debug message
| * d006f2cb3c RDMA/siw: Balance the reference of cep->kref in the error path
| * aa950b9835 Revert "IB/isert: Fix incorrect release of isert connection"
| * 9baf2278b3 amba: bus: fix refcount leak
| * 0c6c0280f7 serial: tegra: handle clk prepare error in tegra_uart_hw_init()
| * 9cce8ef7a6 scsi: fcoe: Fix potential deadlock on &fip->ctlr_lock
| * 356da2d5c0 scsi: core: Use 32-bit hostnum in scsi_host_lookup()
| * 629079f502 cgroup:namespace: Remove unused cgroup_namespaces_init()
| * 3534ae5f17 media: ov2680: Fix regulators being left enabled on ov2680_power_on() errors
| * a427ce197e media: ov2680: Fix vflip / hflip set functions
| * cd7a0e391e media: ov2680: Fix ov2680_bayer_order()
| * faf1408a68 media: ov2680: Remove auto-gain and auto-exposure controls
| * e1552a0b99 media: i2c: ov2680: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips
| * 2d29ce41de media: ov5640: Enable MIPI interface in ov5640_set_power_mipi()
| * 44c71cbe7c USB: gadget: f_mass_storage: Fix unused variable warning
| * 8f7de82158 media: go7007: Remove redundant if statement
| * 3183b0cab7 iommu/vt-d: Fix to flush cache of PASID directory table
| * 4136094df5 iommu/qcom: Disable and reset context bank before programming
| * b374b039e0 fsi: aspeed: Reset master errors after CFAM reset
| * f8949c06c7 IB/uverbs: Fix an potential error pointer dereference
| * 10bd5f8ceb driver core: test_async: fix an error code
| * 19138f8cc6 dma-buf/sync_file: Fix docs syntax
| * e621dbeb9f coresight: tmc: Explicit type conversions to prevent integer overflow
| * d7f21ef741 scsi: qedf: Do not touch __user pointer in qedf_dbg_fp_int_cmd_read() directly
| * 1198a0e935 scsi: qedf: Do not touch __user pointer in qedf_dbg_debug_cmd_read() directly
| * d86d85e23e scsi: qedf: Do not touch __user pointer in qedf_dbg_stop_io_on_error_cmd_read() directly
| * 4ede2ee95b x86/APM: drop the duplicate APM_MINOR_DEV macro
| * 9a26aaea6c serial: sprd: Fix DMA buffer leak issue
| * 6232bd4dca serial: sprd: Assign sprd_port after initialized to avoid wrong access
| * 6d65079c69 scsi: qla4xxx: Add length check when parsing nlattrs
| * b65b13d01b scsi: be2iscsi: Add length check when parsing nlattrs
| * 4df82c6d6e scsi: iscsi: Add strlen() check in iscsi_if_set{_host}_param()
| * 18d49266dd scsi: iscsi: Add length check for nlattr payload
| * 3ef17ca476 scsi: iscsi: Rename iscsi_set_param() to iscsi_if_set_param()
| * 8356a3ba10 scsi: RDMA/srp: Fix residual handling
| * cc2d5cdb19 usb: phy: mxs: fix getting wrong state with mxs_phy_is_otg_host()
| * 5a6f480b2e media: mediatek: vcodec: Return NULL if no vdec_fb is found
| * 43c69dc9a3 media: rkvdec: increase max supported height for H.264
| * 1e5eac0022 scsi: hisi_sas: Fix normally completed I/O analysed as failed
| * b6aca9f5ab scsi: hisi_sas: Fix warnings detected by sparse
| * 0d383e555f scsi: hisi_sas: Modify v3 HW SATA completion error processing
| * 6342206051 scsi: hisi_sas: Modify v3 HW SSP underflow error processing
| * d84e5d445a scsi: libsas: Introduce more SAM status code aliases in enum exec_status
| * 519b9e3e5c scsi: hisi_sas: Print SAS address for v3 hw erroneous completion print
| * 5e5a528c29 media: cx24120: Add retval check for cx24120_message_send()
| * d13a84874a media: dvb-usb: m920x: Fix a potential memory leak in m920x_i2c_xfer()
| * 656423cc56 media: dib7000p: Fix potential division by zero
| * 61bc9293da drivers: usb: smsusb: fix error handling code in smsusb_init_device
| * d8a8f75fce media: v4l2-core: Fix a potential resource leak in v4l2_fwnode_parse_link()
| * 5865926da2 media: i2c: tvp5150: check return value of devm_kasprintf()
| * 6dff92b3fe media: ad5820: Drop unsupported ad5823 from i2c_ and of_device_id tables
| * 9d82a58d2a NFSv4.2: fix handling of COPY ERR_OFFLOAD_NO_REQ
| * 7bc36ac671 NFS: Guard against READDIR loop when entry names exceed MAXNAMELEN
| * 3f1a2b0b2d NFSD: da_addr_body field missing in some GETDEVICEINFO replies
| * aaeac3a6b1 fs: lockd: avoid possible wrong NULL parameter
| * 6d53616189 jfs: validate max amount of blocks before allocation.
| * f08944e3c6 powerpc/iommu: Fix notifiers being shared by PCI and VIO buses
| * 46ff3bd14b nfs/blocklayout: Use the passed in gfp flags
| * 953c54dfdc powerpc/pseries: Rework lppaca_shared_proc() to avoid DEBUG_PREEMPT
| * e46cc0e42f powerpc: Don't include lppaca.h in paca.h
| * 9837d6a483 wifi: ath10k: Use RMW accessors for changing LNKCTL
| * 924d1ab987 net/mlx5: Use RMW accessors for changing LNKCTL
| * 37eecd5085 drm/radeon: Use RMW accessors for changing LNKCTL
| * ead3dbc92b drm/amdgpu: Use RMW accessors for changing LNKCTL
| * 2f8269ca80 powerpc/perf: Convert fsl_emb notifier to state machine callbacks
| * d45bf1528b powerpc/fadump: reset dump area size if fadump memory reserve fails
| * ad83d83dd8 vfio/type1: fix cap_migration information leak
| * d8f5613c5c clk: imx: composite-8m: fix clock pauses when set_rate would be a no-op
| * 0d81a0546b clk: imx8mp: fix sai4 clock
| * 69795c689e PCI/ASPM: Use RMW accessors for changing LNKCTL
| * f647b8fe55 PCI: pciehp: Use RMW accessors for changing LNKCTL
| * ae52f8ba45 pinctrl: mcp23s08: check return value of devm_kasprintf()
| * ef8e561ddb PCI: Mark NVIDIA T4 GPUs to avoid bus reset
| * 344c16a844 clk: qcom: reset: Use the correct type of sleep/delay based on length
| * 289f5a88f1 clk: qcom: gcc-sm8250: Fix gcc_sdcc2_apps_clk_src
| * b3a80429b1 clk: qcom: gcc-sm8250: use ARRAY_SIZE instead of specifying num_parents
| * 245759d987 ext4: correct grp validation in ext4_mb_good_group
| * 2aefe3ae09 clk: qcom: gcc-sc7180: Fix up gcc_sdcc2_apps_clk_src
| * 74a5f9755a clk: qcom: gcc-sc7180: use ARRAY_SIZE instead of specifying num_parents
| * 2640d3be82 clk: sunxi-ng: Modify mismatched function name
| * c1ff788f73 drivers: clk: keystone: Fix parameter judgment in _of_pll_clk_init()
| * 13623b966b ipmi:ssif: Fix a memory leak when scanning for an adapter
| * 6128288d8f ipmi:ssif: Add check for kstrdup
| * 8917591d72 ALSA: ac97: Fix possible error value of *rac97
| * cd062ebe0c of: unittest: Fix overlay type in apply/revert check
| * ca7634e549 bus: ti-sysc: Fix cast to enum warning
| * 43f561e809 drm/mediatek: Fix potential memory leak if vmap() fail
| * 2655155486 bus: ti-sysc: Fix build warning for 64-bit build
| * 98ef243d59 audit: fix possible soft lockup in __audit_inode_child()
| * 69800bc5d7 drm/msm/a2xx: Call adreno_gpu_init() earlier
| * 7fcbaf4bdb drm/amd/pm: fix variable dereferenced issue in amdgpu_device_attr_create()
| * 9b89db24c6 smackfs: Prevent underflow in smk_set_cipso()
| * 9f4017cac7 firmware: meson_sm: fix to avoid potential NULL pointer dereference
| * 815e42029f drm/msm/mdp5: Don't leak some plane state
| * a21e73a6d8 drm: xlnx: zynqmp_dpsub: Add missing check for dma_set_mask
| * 524f23b082 ima: Remove deprecated IMA_TRUSTED_KEYRING Kconfig
| * e2d1c9b397 drm/panel: simple: Add missing connector type and pixel format for AUO T215HVN01
| * c02917e70a drm/armada: Fix off-by-one error in armada_overlay_get_property()
| * f41c65f8d0 of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name()
| * 883fdbbdbe drm/tegra: dpaux: Fix incorrect return value of platform_get_irq
| * 5f0994e3f2 drm/tegra: Remove superfluous error messages around platform_get_irq()
| * 4a61d72585 md/md-bitmap: hold 'reconfig_mutex' in backlog_store()
| * 8563d52a4f md/bitmap: don't set max_write_behind if there is no write mostly device
| * a15f309eb9 drm/amdgpu: Update min() to min_t() in 'amdgpu_info_ioctl'
| * 8e766a94ec arm64: dts: qcom: sdm845: Fix the min frequency of "ice_core_clk"
| * 36d3e4dedb arm64: dts: qcom: sdm845: Add missing RPMh power domain to GCC
| * 0eea279e01 ARM: dts: BCM53573: Fix Ethernet info for Luxul devices
| * ed4e48de89 drm: adv7511: Fix low refresh rate register for ADV7533/5
| * 61ccdd2167 ARM: dts: samsung: s5pv210-smdkv210: correct ethernet reg addresses (split)
| * e9875d2f25 ARM: dts: s5pv210: add dummy 5V regulator for backlight on SMDKv210
| * c4c72bf42f ARM: dts: s5pv210: adjust node names to DT spec
| * bbcea0924b ARM: dts: samsung: s3c6410-mini6410: correct ethernet reg addresses (split)
| * a2d6c5e8e7 ARM: dts: s3c64xx: align pinctrl with dtschema
| * 3f0d83994e x86/mm: Fix PAT bit missing from page protection modify mask
| * b56309c77d drm/etnaviv: fix dumping of active MMU context
| * 8303282409 ARM: dts: BCM53573: Use updated "spi-gpio" binding properties
| * 031ab0f10e ARM: dts: BCM53573: Add cells sizes to PCIe node
| * 8415d803d8 ARM: dts: BCM53573: Drop nonexistent #usb-cells
| * cfc4a78e70 ARM: dts: BCM53573: Describe on-SoC BCM53125 rev 4 switch
| * 36d958ad40 ARM: dts: BCM5301X: Harmonize EHCI/OHCI DT nodes name
| * 826ef15769 drm/amdgpu: avoid integer overflow warning in amdgpu_device_resize_fb_bar()
| * 967cbc8a23 arm64: dts: qcom: msm8996: Add missing interrupt to the USB2 controller
| * 71d2d9aa2b soc: qcom: ocmem: Fix NUM_PORTS & NUM_MACROS macros
| * 1356531e92 soc: qcom: ocmem: Add OCMEM hardware version print
| * 4bf179f536 ASoC: stac9766: fix build errors with REGMAP_AC97
| * 86d89987f0 quota: fix dqput() to follow the guarantees dquot_srcu should provide
| * af4ff47489 quota: add new helper dquot_active()
| * 905e316e5e quota: rename dquot_active() to inode_quota_active()
| * a5da2849db quota: factor out dquot_write_dquot()
| * 53805176ec drm/bridge: tc358764: Fix debug print parameter order
| * abd1c17ef4 netrom: Deny concurrent connect().
| * b08cc6c039 net/sched: sch_hfsc: Ensure inner classes have fsc curve
| * ab04c731a1 hwmon: (tmp513) Fix the channel number in tmp51x_is_visible()
| * db7a353166 mlxsw: i2c: Limit single transaction buffer size
| * 3d36ba3f7e mlxsw: i2c: Fix chunk size setting in output mailbox buffer
| * 7cc9e1dcc1 net: arcnet: Do not call kfree_skb() under local_irq_disable()
| * d4f79aa9ee wifi: ath9k: use IS_ERR() with debugfs_create_dir()
| * 50f89daf9e Bluetooth: btusb: Do not call kfree_skb() under spin_lock_irqsave()
| * bef85d58f7 wifi: mwifiex: avoid possible NULL skb pointer dereference
| * cfce1973ff wifi: ath9k: protect WMI command response buffer replacement with a lock
| * ee72b2b1f5 wifi: ath9k: fix races between ath9k_wmi_cmd and ath9k_wmi_ctrl_rx
| * 91d92d8975 samples/bpf: fix broken map lookup probe
| * 08a6e99a33 wifi: mwifiex: Fix missed return in oob checks failed path
| * 0c4240d23d wifi: mwifiex: fix memory leak in mwifiex_histogram_read()
| * 0fe11dd3fe fs: ocfs2: namei: check return value of ocfs2_add_entry()
| * d8f5415d4d lwt: Check LWTUNNEL_XMIT_CONTINUE strictly
| * a97f221651 lwt: Fix return values of BPF xmit ops
| * 97ccf9f195 hwrng: iproc-rng200 - Implement suspend and resume calls
| * 49729fc472 crypto: caam - fix unchecked return value error
| * 7a97044477 ice: ice_aq_check_events: fix off-by-one check when filling buffer
| * 9b812dcf2b selftests/bpf: Clean up fmod_ret in bench_rename test script
| * 88bc7122db net: tcp: fix unexcepted socket die when snd_wnd is 0
| * e87da6a0ac Bluetooth: Fix potential use-after-free when clear keys
| * 6668886ebe Bluetooth: nokia: fix value check in nokia_bluetooth_serdev_probe()
| * 625bf86bf5 crypto: api - Use work queue in crypto_destroy_instance
| * 7545292d87 crypto: stm32 - Properly handle pm_runtime_get failing
| * 323084d77d selftests/bpf: fix static assert compilation issue for test_cls_*.c
| * a8d6965843 wifi: mwifiex: fix error recovery in PCIE buffer descriptor management
| * 3fe3923d09 wifi: mwifiex: Fix OOB and integer underflow when rx packets
| * 5120d93c24 can: gs_usb: gs_usb_receive_bulk_callback(): count RX overflow errors also in case of OOM
| * 1d6c3017ce spi: tegra20-sflash: fix to check return value of platform_get_irq() in tegra_sflash_probe()
| * ca7ee1b75c wifi: mt76: testmode: add nla_policy for MT76_TM_ATTR_TX_LENGTH
| * 791a12102e bpf: reject unhashed sockets in bpf_sk_assign
| * 4d271804f5 udp: re-score reuseport groups when connected sockets are present
| * e6e11cbaa1 regmap: rbtree: Use alloc_flags for memory allocations
| * 1d210321de hwrng: nomadik - keep clock enabled while hwrng is registered
| * f24152c209 tcp: tcp_enter_quickack_mode() should be static
| * b275f0ae35 bpf: Clear the probe_addr for uprobe
| * 514116de91 bpftool: Use a local bpf_perf_event_value to fix accessing its fields
| * 920b2f99bc cpufreq: powernow-k8: Use related_cpus instead of cpus in driver.exit()
| * 133a1f45b9 x86/efistub: Fix PCI ROM preservation in mixed mode
| * 3de36b8b9b s390/paes: fix PKEY_TYPE_EP11_AES handling for secure keyblobs
| * e06326ff3a s390/pkey: fix/harmonize internal keyblob headers
| * 08b1803bfc perf/imx_ddr: don't enable counter0 if none of 4 counters are used
| * c0e1f9bddc x86/decompressor: Don't rely on upper 32 bits of GPRs being preserved
| * 0682fc175c selftests/resctrl: Close perf value read fd on errors
| * f399938a91 selftests/resctrl: Unmount resctrl FS if child fails to run benchmark
| * bf1f7aeb57 selftests/resctrl: Don't leak buffer in fill_cache()
| * 3ee719b3a0 OPP: Fix passing 0 to PTR_ERR in _opp_attach_genpd()
| * 066fbd8bc9 refscale: Fix uninitalized use of wait_queue_head_t
| * ac96370db7 selftests/harness: Actually report SKIP for signal tests
| * ac5a73b5d9 tmpfs: verify {g,u}id mount options correctly
| * 644e93a790 fs: Fix error checking for d_hash_and_lookup()
| * 731f39e4a1 eventfd: prevent underflow for eventfd semaphores
| * 755e86f28a eventfd: Export eventfd_ctx_do_read()
| * 6b5d585e23 reiserfs: Check the return value from __getblk()
| * 5101e2c8a5 Revert "net: macsec: preserve ingress frame ordering"
| * ca8f04553e udf: Handle error when adding extent to a file
| * 4ac54312f6 udf: Check consistency of Space Bitmap Descriptor
| * 42714d3d70 net: Avoid address overwrite in kernel_connect
| * 4ded72985b platform/mellanox: Fix mlxbf-tmfifo not handling all virtio CONSOLE notifications
| * 0c0547d2a6 tracing: Introduce pipe_cpumask to avoid race on trace_pipes
| * 99d8d419dd ALSA: seq: oss: Fix racy open/close of MIDI devices
| * 21f47cc15a scsi: storvsc: Always set no_report_opcodes
| * 5cbc749d11 sctp: handle invalid error codes without calling BUG()
| * 2bdd081a7d bnx2x: fix page fault following EEH recovery
| * d11a454288 netlabel: fix shift wrapping bug in netlbl_catmap_setlong()
| * 7dd6ef1ced scsi: qedi: Fix potential deadlock on &qedi_percpu->p_work_lock
| * 7a1a7f40ad idmaengine: make FSL_EDMA and INTEL_IDMA64 depends on HAS_IOMEM
| * d399b6ce1a net: usb: qmi_wwan: add Quectel EM05GV2
| * bb8a4a3632 vmbus_testing: fix wrong python syntax for integer value comparison
| * 0ff30413a7 clk: fixed-mmio: make COMMON_CLK_FIXED_MMIO depend on HAS_IOMEM
| * 0111b7bb51 kprobes: Prohibit probing on CFI preamble symbol
| * 654e3d2779 security: keys: perform capable check only on privileged operations
| * b23cbd3c25 ata: pata_arasan_cf: Use dev_err_probe() instead dev_err() in data_xfer()
| * 331d85f0bc ovl: Always reevaluate the file signature for IMA
| * 357badc01a drm/amd/display: Exit idle optimizations before attempt to access PHY
| * de0cdcceaa platform/x86: huawei-wmi: Silence ambient light sensor
| * 8964b32a67 platform/x86: intel: hid: Always call BTNL ACPI method
| * 6b953ee81a ASoC: atmel: Fix the 8K sample parameter in I2SC master
| * 37121461dd ASoc: codecs: ES8316: Fix DMIC config
| * bc2b0d4d37 fs/nls: make load_nls() take a const parameter
| * 0a584c0779 s390/dasd: fix hanging device after request requeue
| * 0c96df6913 s390/dasd: use correct number of retries for ERP requests
| * a5fd143673 m68k: Fix invalid .section syntax
| * f7700e987f vxlan: generalize vxlan_parse_gpe_hdr and remove unused args
| * b7cd83cfff ethernet: atheros: fix return value check in atl1c_tso_csum()
| * 16c1134267 ASoC: da7219: Check for failure reading AAD IRQ events
| * afa2dbd7d1 ASoC: da7219: Flush pending AAD IRQ when suspending
| * efa372af6b 9p: virtio: make sure 'offs' is initialized in zc_request
| * 2f13007fbe media: pci: cx23885: fix error handling for cx23885 ATSC boards
| * 92704dd055 media: pulse8-cec: handle possible ping error
| * 9d9cdc32bf phy: qcom-snps-femto-v2: use qcom_snps_hsphy_suspend/resume error code
| * a8ba2b6959 ARM: dts: imx: Set default tuning step for imx7d usdhc
| * 678a88ac02 ARM: dts: imx: Adjust dma-apbh node name
| * 6895499b22 ARM: dts: imx7s: Drop dma-apb interrupt-names
| * 614c27dfde ARM: dts: imx: update sdma node name format
| * d45e2a3d2e ASoC: rt5682: Fix a problem with error handling in the io init function of the soundwire
| * 977baccbbd pinctrl: amd: Don't show `Invalid config param` errors
| * f1d637b63d nilfs2: fix WARNING in mark_buffer_dirty due to discarded buffer reuse
| * 0e11bb5ad3 nilfs2: fix general protection fault in nilfs_lookup_dirty_data_buffers()
| * 734c6d3dc7 fsi: master-ast-cf: Add MODULE_FIRMWARE macro
| * da5dc81ed2 firmware: stratix10-svc: Fix an NULL vs IS_ERR() bug in probe
| * 9fda231901 serial: sc16is7xx: fix bug when first setting GPIO direction
| * 2f982ce208 serial: sc16is7xx: fix broken port 0 uart init
| * bd0ed45dd6 serial: qcom-geni: fix opp vote on shutdown
| * c709c7ca02 configfs: fix a race in configfs_lookup()
| * 746b363bef Bluetooth: btsdio: fix use after free bug in btsdio_remove due to race condition
| * b074fb0fa0 staging: rtl8712: fix race condition
| * 65bfaf5f9d HID: wacom: remove the battery when the EKR is off
| * 542c614707 usb: chipidea: imx: improve logic if samsung,picophy-* parameter is 0
| * 5c4996c229 usb: dwc3: meson-g12a: do post init to fix broken usb after resumption
| * d44fa38193 USB: serial: option: add FOXCONN T99W368/T99W373 product
| * df6696e42e USB: serial: option: add Quectel EM05G variant (0x030e)
| * f71b0b4a49 modules: only allow symbol_get of EXPORT_SYMBOL_GPL modules
| * 92de8497c3 rtc: ds1685: use EXPORT_SYMBOL_GPL for ds1685_rtc_poweroff
| * 1aeb76ffdf net: enetc: use EXPORT_SYMBOL_GPL for enetc_phc_index
| * d90e5956c0 mmc: au1xmmc: force non-modular build and remove symbol_get usage
| * c1112a2b54 ARM: pxa: remove use of symbol_get()
| * 8c599aa78c erofs: ensure that the post-EOF tails are all zeroed
* | 397f70b65c Merge 5.10.194 into android12-5.10-lts
|\|
| * 006d584764 Linux 5.10.194
| * d93ba6e46e rcu-tasks: Add trc_inspect_reader() checks for exiting critical section
| * 3e22624f8f rcu-tasks: Wait for trc_read_check_handler() IPIs
| * 9190c1f0ae rcu-tasks: Fix IPI failure handling in trc_wait_for_one_reader
| * ad4f8c117b rcu: Prevent expedited GP from enabling tick on offline CPU
| * 268e922522 Revert "MIPS: Alchemy: fix dbdma2"
| * 79ea9eb723 Revert "drm/amdgpu: install stub fence into potential unused fence pointers"
| * be4ccafc07 mhi: pci_generic: Fix implicit conversion warning
| * df3427204f ARM: module: Use module_init_layout_section() to spot init sections
| * b59cfee8d8 arm64: module: Use module_init_layout_section() to spot init sections
| * 943ed7dc5e arm64: module-plts: inline linux/moduleloader.h
| * ecd62c8512 module: Expose module_init_layout_section()
* | feb0269d54 Revert "drm/display/dp: Fix the DP DSC Receiver cap size"
* | 3acf914de4 Merge 5.10.193 into android12-5.10-lts
|\|
| * 4566606fe3 Linux 5.10.193
| * b3ac2c1d72 mm,hwpoison: fix printing of page flags
| * 7f92be110c ASoC: Intel: sof_sdw: include rt711.h for RT711 JD mode
| * 32f71ef627 mm: memory-failure: fix unexpected return value in soft_offline_page()
| * 20c2db79f1 mm: memory-failure: kill soft_offline_free_page()
| * 406166a3ac mm: fix page reference leak in soft_offline_page()
| * 749630ce91 mm,hwpoison: refactor get_any_page
| * 0df5eaab03 dma-buf/sw_sync: Avoid recursive lock during fence signal
| * 7592a392b3 pinctrl: renesas: rza2: Add lock around pinctrl_generic{{add,remove}_group,{add,remove}_function}
| * 91cbf41a9d clk: Fix undefined reference to `clk_rate_exclusive_{get,put}'
| * 148a86651c scsi: core: raid_class: Remove raid_component_add()
| * 5d02f4320a scsi: snic: Fix double free in snic_tgt_create()
| * d643d3f322 ASoC: rt711: add two jack detection modes
| * c7b26063fc drm/i915: Fix premature release of request's reusable memory
| * 2d69f68ad4 cgroup/cpuset: Free DL BW in case can_attach() fails
| * 4603c2a104 sched/deadline: Create DL BW alloc, free & check overflow interface
| * c9546921a4 cgroup/cpuset: Iterate only if DEADLINE tasks are present
| * 5ac05ce568 sched/cpuset: Keep track of SCHED_DEADLINE task in cpusets
| * b950133d9a sched/cpuset: Bring back cpuset_mutex
| * 312713e3ea cgroup/cpuset: Rename functions dealing with DEADLINE accounting
| * b2125926ba timers/nohz: Switch to ONESHOT_STOPPED in the low-res handler when the tick is stopped
| * ae4f109b95 tick: Detect and fix jiffies update stall
| * c7e91047d3 torture: Fix hang during kthread shutdown phase
| * 4bc6a4fca1 x86/fpu: Set X86_FEATURE_OSXSAVE feature after enabling OSXSAVE in CR4
| * 9e0c0b4ce5 drm/display/dp: Fix the DP DSC Receiver cap size
| * 8735d1c66c drm/vmwgfx: Fix shader stage validation
| * ff0639b222 PCI: acpiphp: Use pci_assign_unassigned_bridge_resources() only for non-root bus
| * da4e9eff0f media: vcodec: Fix potential array out-of-bounds in encoder queue_setup
| * d2540b5f5a of: dynamic: Refactor action prints to not use "%pOF" inside devtree_lock
| * 851f686ed0 radix tree: remove unused variable
| * 3b9a61570b lib/clz_ctz.c: Fix __clzdi2() and __ctzdi2() for 32-bit kernels
| * 72e4a5a28e batman-adv: Hold rtnl lock during MTU update via netlink
| * ee1d443eef batman-adv: Fix batadv_v_ogm_aggr_send memory leak
| * 0c6da1d849 batman-adv: Fix TT global entry leak when client roamed back
| * 6f5d10c0ac batman-adv: Do not get eth header before batadv_check_management_packet
| * 7c09590883 batman-adv: Don't increase MTU when set by user
| * 480f2a129d batman-adv: Trigger events for auto adjusted MTU
| * 0dbedf9afe selinux: set next pointer before attaching to list
| * a54c2048cd nfsd: Fix race to FREE_STATEID and cl_revoked
| * 7c262127d2 NFS: Fix a use after free in nfs_direct_join_group()
| * f3c5697aae mm: add a call to flush_cache_vmap() in vmap_pfn()
| * c9a0e31d92 clk: Fix slab-out-of-bounds error in devm_clk_release()
| * f979b92db1 NFSv4: Fix dropped lock for racing OPEN and delegation return
| * 0a809e0157 ibmveth: Use dcbf rather than dcbfl
| * ffde5f9e88 bonding: fix macvlan over alb bond support
| * 615ea2603d net: remove bond_slave_has_mac_rcu()
| * c8e1e17dee rtnetlink: Reject negative ifindexes in RTM_NEWLINK
| * 7b79dabd63 rtnetlink: return ENODEV when ifname does not exist and group is given
| * d64cdb9cb6 netfilter: nf_tables: fix out of memory error handling
| * 5db1249c70 net/sched: fix a qdisc modification with ambiguous command request
| * 3847137cd1 igb: Avoid starting unnecessary workqueues
| * fa7d7a7f00 ice: fix receive buffer size miscalculation
| * 70dfdbba30 net: validate veth and vxcan peer ifindexes
| * 67c8d7ef54 net: bcmgenet: Fix return value check for fixed_phy_register()
| * 92b20b1569 net: bgmac: Fix return value check for fixed_phy_register()
| * 0b39e3070a ipvlan: Fix a reference count leak warning in ipvlan_ns_exit()
| * 8162b73eef dccp: annotate data-races in dccp_poll()
| * 403cc3e625 sock: annotate data-races around prot->memory_pressure
| * 005b6572d0 octeontx2-af: SDP: fix receive link config
| * b8205dfed6 tracing: Fix memleak due to race between current_tracer and trace
| * 9c2ceffd4e tracing: Fix cpu buffers unavailable due to 'record_disabled' missed
| * 0498107394 rbd: prevent busy loop when requesting exclusive lock
| * 5f16975233 rbd: retrieve and check lock owner twice before blocklisting
| * 2547026bb8 rbd: make get_lock_owner_info() return a single locker or NULL
| * 145248ebe0 libceph, rbd: ignore addr->type while comparing in some cases
| * 61c303cfb1 drm/amd/display: check TG is non-null before checking if enabled
| * b964eb37c0 drm/amd/display: do not wait for mpc idle if tg is disabled
| * 7e11c58b26 ALSA: pcm: Fix potential data race at PCM memory allocation helpers
| * 8c3a4c3b64 dm integrity: reduce vmalloc space footprint on 32-bit architectures
| * 4fdfd3d2f0 dm integrity: increase RECALC_SECTORS to improve recalculate speed
| * 570f52137e fbdev: fix potential OOB read in fast_imageblit()
| * 31131cce24 fbdev: Fix sys_imageblit() for arbitrary image widths
| * 209a84a14c fbdev: Improve performance of sys_imageblit()
| * 188edaaaad MIPS: cpu-features: Use boot_cpu_type for CPU type based features
| * 61913b303b MIPS: cpu-features: Enable octeon_cache by cpu_type
| * bda55fb5ca fs: dlm: fix mismatch of plock results from userspace
| * c3a1c4d996 fs: dlm: use dlm_plock_info for do_unlock_close
| * d503919895 fs: dlm: change plock interrupted message to debug again
| * 1652bcbf9e fs: dlm: add pid to debug log
| * e850cd32df dlm: replace usage of found with dedicated list iterator variable
| * 7b44c1f383 dlm: improve plock logging if interrupted
| * cd689b5912 PCI: acpiphp: Reassign resources on bridge if necessary
| * e827572152 xprtrdma: Remap Receive buffers after a reconnect
| * 8a64aadc29 NFSv4: fix out path in __nfs4_get_acl_uncached
| * c6aecc29d2 objtool/x86: Fix SRSO mess
* | 4d68de3b8c UPSTREAM: mhi: pci_generic: Fix implicit conversion warning
* | 9577f310ce Revert "macsec: Fix traffic counters/statistics"
* | 13fda7dc0e Revert "macsec: use DEV_STATS_INC()"
* | 63caeeae27 Revert "xfrm: add forgotten nla_policy for XFRMA_MTIMER_THRESH"
* | b23fd871be Merge 5.10.192 into android12-5.10-lts
|\|
| * 1599cb60ba Linux 5.10.192
| * 0e8139f923 x86/srso: Correct the mitigation status when SMT is disabled
| * 23e5987465 objtool/x86: Fixup frame-pointer vs rethunk
| * 26e3f7690c x86/retpoline,kprobes: Fix position of thunk sections with CONFIG_LTO_CLANG
| * 88e16ce7f8 x86/srso: Disable the mitigation on unaffected configurations
| * 69712baf24 x86/CPU/AMD: Fix the DIV(0) initial fix attempt
| * 62ebfeb0dc x86/retpoline: Don't clobber RFLAGS during srso_safe_ret()
| * 91b349289e x86/static_call: Fix __static_call_fixup()
| * d2be58f921 x86/srso: Explain the untraining sequences a bit more
| * 06597b650b x86/cpu: Cleanup the untrain mess
| * e0f50b0e41 x86/cpu: Rename srso_(.*)_alias to srso_alias_\1
| * 0676a39253 x86/cpu: Rename original retbleed methods
| * 8b0ff83e8a x86/cpu: Clean up SRSO return thunk mess
| * 20e24c8b4c x86/ibt: Add ANNOTATE_NOENDBR
| * bbbe1b23c7 objtool: Add frame-pointer-specific function ignore
| * bd3d12e6fd x86/alternative: Make custom return thunk unconditional
| * 043d3bfe0a x86/cpu: Fix up srso_safe_ret() and __x86_return_thunk()
| * d5b3c88d15 x86/cpu: Fix __x86_return_thunk symbol type
| * 5962f64ed2 mmc: f-sdh30: fix order of function calls in sdhci_f_sdh30_remove
| * 98c7fe38c4 net: fix the RTO timer retransmitting skb every 1ms if linear option is enabled
| * 9aead733f5 virtio-net: set queues after driver_ok
| * c080cee930 af_unix: Fix null-ptr-deref in unix_stream_sendpage().
| * 7aa165d761 netfilter: set default timeout to 3 secs for sctp shutdown send and recv state
| * e62de63c63 mmc: block: Fix in_flight[issue_type] value error
| * 9022e9e62d mmc: wbsd: fix double mmc_free_host() in wbsd_init()
| * 6e74926ede cifs: Release folio lock on fscache read hit.
| * a04ac0c318 ALSA: usb-audio: Add support for Mythware XA001AU capture and playback interfaces.
| * bd70d0b280 serial: 8250: Fix oops for port->pm on uart_change_pm()
| * 03a7f213af ALSA: hda/realtek - Remodified 3k pull low procedure
| * b7d1c71984 ASoC: meson: axg-tdm-formatter: fix channel slot allocation
| * e761b7e90a ASoC: rt5665: add missed regulator_bulk_disable
| * d23dd85903 arm64: dts: rockchip: Disable HS400 for eMMC on ROCK Pi 4
| * 70626b93d6 arm64: dts: rockchip: sort nodes/properties on rk3399-rock-4
| * 7ba9ac0b5a arm64: dts: rockchip: fix regulator name on rk3399-rock-4
| * fba59a4b55 arm64: dts: rockchip: add SPDIF node for ROCK Pi 4
| * 77806f63c3 arm64: dts: rockchip: add ES8316 codec for ROCK Pi 4
| * 1411c3e86e arm64: dts: rockchip: use USB host by default on rk3399-rock-pi-4
| * eb5b1e932c arm64: dts: rockchip: fix supplies on rk3399-rock-pi-4
| * 73990370d6 bus: ti-sysc: Flush posted write on enable before reset
| * 0a593e8a9d net: do not allow gso_size to be set to GSO_BY_FRAGS
| * 51bc052db8 sock: Fix misuse of sk_under_memory_pressure()
| * 773075d38a net: dsa: mv88e6xxx: Wait for EEPROM done before HW reset
| * 0a9040dede i40e: fix misleading debug logs
| * abe68922d7 team: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves
| * 526d42c558 net: phy: broadcom: stub c45 read/write for 54810
| * a7653eaea0 netfilter: nft_dynset: disallow object maps
| * 49f57a9087 ipvs: fix racy memcpy in proc_do_sync_threshold
| * c8d0d3811e drm/panel: simple: Fix AUO G121EAN01 panel timings according to the docs
| * 86517421f4 selftests: mirror_gre_changes: Tighten up the TTL test match
| * 614811692e xfrm: add forgotten nla_policy for XFRMA_MTIMER_THRESH
| * bd30aa9c7f xfrm: add NULL check in xfrm_update_ae_params
| * 0b4d69539f ip_vti: fix potential slab-use-after-free in decode_session6
| * ec23b25e56 ip6_vti: fix slab-use-after-free in decode_session6
| * bafa236380 xfrm: fix slab-use-after-free in decode_session6
| * 0f89909c80 net: xfrm: Amend XFRMA_SEC_CTX nla_policy structure
| * 8b92d03cfc net: af_key: fix sadb_x_filter validation
| * 7e50815d29 net: xfrm: Fix xfrm_address_filter OOB read
| * 549e4e167a i2c: designware: Handle invalid SMBus block data response length value
| * bd7bef82ce btrfs: fix BUG_ON condition in btrfs_cancel_balance
| * 483d713ba2 tty: serial: fsl_lpuart: Clear the error flags by writing 1 for lpuart32 platforms
| * 869ce5e598 tty: n_gsm: fix the UAF caused by race condition in gsm_cleanup_mux
| * 0ba7f969be powerpc/rtas_flash: allow user copy to flash block cache objects
| * c5f59de362 fbdev: mmp: fix value check in mmphw_probe()
| * 268cc9bc54 i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue
| * 3ff54d904f virtio-mmio: don't break lifecycle of vm_dev
| * b1fe05cc51 virtio-mmio: Use to_virtio_mmio_device() to simply code
| * 3b76d92636 tracing/probes: Fix to update dynamic data counter if fetcharg uses it
| * 265a979ded tracing/probes: Have process_fetch_insn() take a void * instead of pt_regs
| * a890545353 mmc: meson-gx: fix deferred probing
| * e8a41b4a50 mmc: meson-gx: use devm_mmc_alloc_host
| * 50ed76c9e0 mmc: core: add devm_mmc_alloc_host
| * d523ce6f51 mmc: sunxi: fix deferred probing
| * 939a12f29a mmc: bcm2835: fix deferred probing
| * 01dfc61f72 USB: dwc3: qcom: fix NULL-deref on suspend
| * 3e2b5d66e9 usb: cdns3: fix NCM gadget RX speed 20x slow than expection at iMX8QM
| * f5c11b45f3 usb: cdns3: allocate TX FIFO size according to composite EP number
| * a461bcfb36 usb: gadget: udc: core: Introduce check_config to verify USB configuration
| * a64f5fe493 irqchip/mips-gic: Use raw spinlock for gic_lock
| * 0704666c57 irqchip/mips-gic: Get rid of the reliance on irq_cpu_online()
| * 372f1752b7 bus: mhi: host: Range check CHDBOFF and ERDBOFF
| * 77944a6f3c bus: mhi: Move host MHI code to "host" directory
| * f738912615 bus: mhi: Add MMIO region length to controller structure
| * 1cacbb711e bus: mhi: Add MHI PCI support for WWAN modems
| * 436b423253 iio: addac: stx104: Fix race condition when converting analog-to-digital
| * aeecd8d97d iio: addac: stx104: Fix race condition for stx104_write_raw()
| * f6576d4851 iio: adc: stx104: Implement and utilize register structures
| * 9d16098245 iio: adc: stx104: Utilize iomap interface
| * d2ba1f40fc dt-bindings: iio: add AD74413R
| * c5e580831b iio: add addac subdirectory
| * bb70fdbfa2 IMA: allow/fix UML builds
| * 66a3b2a121 ring-buffer: Do not swap cpu_buffer during resize process
| * dd5a12cdf2 powerpc/kasan: Disable KCOV in KASAN code
| * 9f9eed4511 ALSA: hda: fix a possible null-pointer dereference due to data race in snd_hdac_regmap_sync()
| * 7a21c2e474 ALSA: hda/realtek: Add quirks for Unis H3C Desktop B760 & Q760
| * b870b9a47f drm/amdgpu: Fix potential fence use-after-free v2
| * f19add5c77 Bluetooth: btusb: Add MT7922 bluetooth ID for the Asus Ally
| * 2958cf9f80 Bluetooth: L2CAP: Fix use-after-free
| * 04bb8af40a pcmcia: rsrc_nonstatic: Fix memory leak in nonstatic_release_resource_db()
| * 7c5b2649f6 gfs2: Fix possible data races in gfs2_show_options()
| * e8f3d96051 usb: chipidea: imx: add missing USB PHY DPDM wakeup setting
| * 7a3a7c6fa0 usb: chipidea: imx: don't request QoS for imx8ulp
| * 2caeb722f0 media: platform: mediatek: vpu: fix NULL ptr dereference
| * 99d6afa19d usb: gadget: u_serial: Avoid spinlock recursion in __gs_console_push
| * e52de26cb3 media: v4l2-mem2mem: add lock to protect parameter num_rdy
| * 5c094ca994 FS: JFS: Check for read-only mounted filesystem in txBegin
| * 2a3f20efe6 FS: JFS: Fix null-ptr-deref Read in txBegin
| * e778c8b0a9 MIPS: dec: prom: Address -Warray-bounds warning
| * 911b48eec4 fs: jfs: Fix UBSAN: array-index-out-of-bounds in dbAllocDmapLev
| * 4503f6fc95 udf: Fix uninitialized array access for some pathnames
| * a2966e0436 ovl: check type and offset of struct vfsmount in ovl_entry
| * 73311dd831 RDMA/mlx5: Return the firmware result upon destroying QP/RQ
| * 19312bc3ff HID: add quirk for 03f0:464a HP Elite Presenter Mouse
| * 04bd3a362d drm/amdgpu: install stub fence into potential unused fence pointers
| * 04e774fb67 dma-remap: use kvmalloc_array/kvfree for larger dma memory remap
| * cbaebbba72 quota: fix warning in dqgrab()
| * 8a4f4d47b8 quota: Properly disable quotas when add_dquot_ref() fails
| * df907501ba iopoll: Call cpu_relax() in busy loops
| * 940ccc291c ASoC: Intel: sof_sdw: Add support for Rex soundwire
| * b2882c51e6 ARM: dts: imx6dl: prtrvt, prtvt7, prti6q, prtwd2: fix USB related warnings
| * dbe0f607f8 PCI: tegra194: Fix possible array out of bounds access
| * 10459ffd56 ASoC: Intel: sof_sdw: add quirk for LNL RVP
| * 9f4dd39696 ASoC: Intel: sof_sdw: add quirk for MTL RVP
| * 751c5b6a23 ALSA: emu10k1: roll up loops in DSP setup code for Audigy
| * e6825b30d3 drm/radeon: Fix integer overflow in radeon_cs_parser_init
| * e6c0a9728e net/mlx5: Skip clock update work when device is in error state
| * 81cc91bba4 net/mlx5: Move all internal timer metadata into a dedicated struct
| * ba2e27e510 net/mlx5: Refactor init clock function
| * e77ef78741 macsec: use DEV_STATS_INC()
| * ecf0e627fb macsec: Fix traffic counters/statistics
| * b630367a60 mmc: sdhci-f-sdh30: Replace with sdhci_pltfm
* | 412095349f Merge 5.10.191 into android12-5.10-lts
|\|
| * da742ebfa0 Linux 5.10.191
| * 3b55ce96ef sch_netem: fix issues in netem_change() vs get_dist_table()
| * db9d161a04 alpha: remove __init annotation from exported page_is_ram()
| * 4af122b5d7 scsi: qedf: Fix firmware halt over suspend and resume
| * 3bb05745ca scsi: qedi: Fix firmware halt over suspend and resume
| * aa9a76d5ff scsi: core: Fix possible memory leak if device_add() fails
| * 58889d5ad7 scsi: snic: Fix possible memory leak if device_add() fails
| * a370e2d653 scsi: 53c700: Check that command slot is not NULL
| * 1678408d08 scsi: storvsc: Fix handling of virtual Fibre Channel timeouts
| * 267ad381c2 scsi: core: Fix legacy /proc parsing buffer overflow
| * 039ce5eb6b netfilter: nf_tables: report use refcount overflow
| * 93b3195d37 nvme-rdma: fix potential unbalanced freeze & unfreeze
| * 9ad83e3e61 nvme-tcp: fix potential unbalanced freeze & unfreeze
| * 200ae5fa0b btrfs: set cache_block_group_error if we find an error
| * bd3175f9d5 btrfs: don't stop integrity writeback too early
| * c91d822127 ibmvnic: Handle DMA unmapping of login buffs in release functions
| * 9024873b94 ibmvnic: Unmap DMA login rsp buffer on send login fail
| * d4750cea76 ibmvnic: Enforce stronger sanity checks on login response
| * 879750c6a7 net/mlx5: Allow 0 for total host VFs
| * f8510dfa95 dmaengine: mcf-edma: Fix a potential un-allocated memory access
| * e8d349408a net: hns3: add wait until mac link down
| * 70660e6faa net: hns3: refactor hclge_mac_link_status_wait for interface reuse
| * b564f32fb3 net: phy: at803x: remove set/get wol callbacks for AR8032
| * 0d35738118 wifi: cfg80211: fix sband iftype data lookup for AP_VLAN
| * 33c677d1e0 IB/hfi1: Fix possible panic during hotplug remove
| * 13f7752f4a drivers: net: prevent tun_build_skb() to exceed the packet size limit
| * 6d701c95ee dccp: fix data-race around dp->dccps_mss_cache
| * 6d0bd7b7b3 bonding: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves
| * 5850c391fd tunnels: fix kasan splat when generating ipv4 pmtu error
| * b3b6b9331a net/packet: annotate data-races around tp->status
| * cafe399d4d mISDN: Update parameter type of dsp_cmx_send()
| * 4f1d1cc16a selftests: forwarding: tc_flower: Relax success criterion
| * 501e3de09a selftests: forwarding: Switch off timeout
| * fe8fac37aa selftests: forwarding: Skip test when no interfaces are specified
| * 44a47be97c selftests: forwarding: ethtool_extended_state: Skip when using veth pairs
| * 0a93fa240d selftests: forwarding: ethtool: Skip when using veth pairs
| * 7e6af9c133 selftests: forwarding: Add a helper to skip test when using veth pairs
| * e731ad5221 selftests/rseq: Fix build with undefined __weak
| * cba47d0c95 drm/nouveau/disp: Revert a NULL check inside nouveau_connector_get_modes
| * 98eaa12c96 x86: Move gds_ucode_mitigated() declaration to header
| * 09f78fc442 x86/speculation: Add cpu_show_gds() prototype
| * 5258281a93 x86/mm: Fix VDSO and VVAR placement on 5-level paging machines
| * eda9f8ffca x86/cpu/amd: Enable Zenbleed fix for AMD Custom APU 0405
| * cb1eefc046 x86/srso: Fix build breakage with the LLVM linker
| * df8d390a21 usb: common: usb-conn-gpio: Prevent bailing out if initial role is none
| * 598ccdb92d usb: dwc3: Properly handle processing of pending events
| * fe7c3a445d usb-storage: alauda: Fix uninit-value in alauda_check_media()
| * d7e5e2b87f binder: fix memory leak in binder_init()
| * 0439ce5aef iio: cros_ec: Fix the allocation size for cros_ec_command
| * aa425ee227 io_uring: correct check for O_TMPFILE
| * 3720724087 nilfs2: fix use-after-free of nilfs_root in dirtying inodes via iput
| * a16c66baa4 x86/pkeys: Revert a5eff72597 ("x86/pkeys: Add PKRU value to init_fpstate")
| * 04499d2c97 radix tree test suite: fix incorrect allocation size for pthreads
| * db0e1e2abd hwmon: (pmbus/bel-pfe) Enable PMBUS_SKIP_STATUS_CHECK for pfe1100
| * a73d999fdf drm/amd/display: check attr flag before set cursor degamma on DCN3+
| * 188e8e25ae drm/shmem-helper: Reset vma->vm_ops before calling dma_buf_mmap()
| * 6b6839e440 drm/nouveau/gr: enable memory loads on helper invocation on all channels
| * 002cde0b78 riscv,mmio: Fix readX()-to-delay() ordering
| * 8362ad5367 dmaengine: pl330: Return DMA_PAUSED when transaction is paused
| * 7328c5319e selftests/bpf: Fix sk_assign on s390x
| * b1a3e27d6b selftests/bpf: Workaround verification failure for fexit_bpf2bpf/func_replace_return_code
| * 4af2d9ddb7 selftests/bpf: make test_align selftest more robust
| * 1952a4d5e4 bpf: aggressively forget precise markings during state checkpointing
| * 7ca3e7459f bpf: stop setting precise in current state
| * 2474ec58b9 bpf: allow precision tracking for programs with subprogs
| * 6796c2a0c5 ipv6: adjust ndisc_is_useropt() to also return true for PIO
| * f327f463c7 mmc: moxart: read scr register without changing byte order
| * 890ac460b0 wireguard: allowedips: expand maximum node depth
* | e06ad3b48e Revert "drm/ttm: add ttm_bo_pin()/ttm_bo_unpin() v2"
* | 918b4c2c76 Revert "drm/ttm: make ttm_bo_unpin more defensive"
* | 1c80a01fc2 Revert "drm/ttm: never consider pinned BOs for eviction&swap"
* | 70435a8ac9 Revert "drm/ttm: check null pointer before accessing when swapping"
* | 0dd121e0e6 Revert "tracing: Show real address for trace event arguments"
* | 06fab437d7 Revert "tracing: Fix sleeping while atomic in kdb ftdump"
* | df0f5bd7a8 Merge 5.10.190 into android12-5.10-lts
|/
* ec585727b6 Linux 5.10.190
* b6fc2fbf89 x86/CPU/AMD: Do not leak quotient data after a division by 0
* 98b7ab5e8d ARM: dts: nxp/imx6sll: fix wrong property name in usbphy node
* 14f2e2ac73 ARM: dts: imx6sll: fixup of operating points
* f1c928496d ARM: dts: imx: add usb alias
* c0e7123e89 wifi: mt76: mt7615: do not advertise 5 GHz on first phy of MT7615D (DBDC)
* 37fad83ae5 mt76: mt7615: Fix fall-through warnings for Clang
* b85c7882fd mt76: move band capabilities in mt76_phy
* 381f7df0f3 exfat: check if filename entries exceeds max filename length
* bd3bdb9e0d exfat: support dynamic allocate bh for exfat_entry_set_cache
* e0d192a402 exfat: speed up iterate/lookup by fixing start point of traversing cluster chain
* 86e4e949ea PM: sleep: wakeirq: fix wake irq arming
* 9a320469ad PM / wakeirq: support enabling wake-up irq after runtime_suspend called
* 48d1d0ce07 soundwire: fix enumeration completion
* 7d949774e7 soundwire: bus: pm_runtime_request_resume on peripheral attachment
* 662735bc11 soundwire: bus: add better dev_dbg to track complete() calls
* 173d9c7090 selftests/rseq: Play nice with binaries statically linked against glibc 2.35+
* c08de20e70 selftests/rseq: check if libc rseq support is registered
* fbb6657037 powerpc/mm/altmap: Fix altmap boundary check
* 1f09d67d39 mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()
* 027710952b mtd: rawnand: omap_elm: Fix incorrect type in assignment
* d328849fb6 ext2: Drop fragment support
* 7e4e87ec56 fs: Protect reconfiguration of sb read-write from racing writes
* ec0d0be417 net: usbnet: Fix WARNING in usbnet_start_xmit/usb_submit_urb
* 06f87c9621 Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_ready_cb
* 7f740bc696 fs/sysv: Null check to prevent null-ptr-deref bug
* 426656e8dd tracing: Fix sleeping while atomic in kdb ftdump
* 4f86da9abe file: reinstate f_pos locking optimization for regular files
* d39971d902 drm/ttm: check null pointer before accessing when swapping
* c9c78b91c7 open: make RESOLVE_CACHED correctly test for O_TMPFILE
* 3048cb0dc0 bpf: Disable preemption in bpf_event_output
* 33a339e717 net: tap_open(): set sk_uid from current_fsuid()
* 5ea23f1cb6 net: tun_chr_open(): set sk_uid from current_fsuid()
* 8d104bfd41 arm64: dts: stratix10: fix incorrect I2C property for SCL signal
* 8625802a1b mtd: rawnand: meson: fix OOB available bytes for ECC
* 82dc2bffea mtd: spinand: toshiba: Fix ecc_get_status
* ddf7cc7029 exfat: release s_lock before calling dir_emit()
* 79d16a84ea exfat: use kvmalloc_array/kvfree instead of kmalloc_array/kfree
* a4b2673e3c ceph: defer stopping mdsc delayed_work
* b5b39ff691 USB: zaurus: Add ID for A-300/B-500/C-700
* 513bfdde8a libceph: fix potential hang in ceph_osdc_notify()
* 181274d2f3 scsi: zfcp: Defer fc_rport blocking until after ADISC response
* 6d9f5f3d89 tcp_metrics: fix data-race in tcpm_suck_dst() vs fastopen
* 05d1dc88c4 tcp_metrics: annotate data-races around tm->tcpm_net
* 079afb1815 tcp_metrics: annotate data-races around tm->tcpm_vals[]
* 57bcbbb208 tcp_metrics: annotate data-races around tm->tcpm_lock
* 289091eef3 tcp_metrics: annotate data-races around tm->tcpm_stamp
* 420aad608f tcp_metrics: fix addr_same() helper
* 80e9488ece net/mlx5: fs_core: Skip the FTs in the same FS_TYPE_PRIO_CHAINS fs_prio
* 7a634336a0 net/mlx5: fs_core: Make find_closest_ft more generic
* c650597647 vxlan: Fix nexthop hash size
* 1683124129 ip6mr: Fix skb_under_panic in ip6mr_cache_report()
* c33d5a5c5b s390/qeth: Don't call dev_close/dev_open (DOWN/UP)
* 8e309f43d0 net: dcb: choose correct policy to parse DCB_ATTR_BCN
* 6d4f24736d net: netsec: Ignore 'phy-mode' on SynQuacer in DT mode
* 216092963c net: ll_temac: fix error checking of irq_of_parse_and_map()
* 20fe059c1d net: ll_temac: Switch to use dev_err_probe() helper
* a0e42f4bd4 bpf: sockmap: Remove preempt_disable in sock_map_sk_acquire
* aaa71c4e8a net/sched: cls_route: No longer copy tcf_result on update to avoid use-after-free
* a8d478200b net/sched: cls_fw: No longer copy tcf_result on update to avoid use-after-free
* b4256c99a7 net/sched: cls_u32: No longer copy tcf_result on update to avoid use-after-free
* 268b29ef19 net: add missing data-race annotation for sk_ll_usec
* ad417bab9d net: add missing data-race annotations around sk->sk_peek_off
* 11e0590af3 net: add missing READ_ONCE(sk->sk_rcvbuf) annotation
* dc20f7bada net: add missing READ_ONCE(sk->sk_sndbuf) annotation
* 427c611d84 net: add missing READ_ONCE(sk->sk_rcvlowat) annotation
* c7ebe08f40 net: annotate data-races around sk->sk_max_pacing_rate
* 14db69381d mISDN: hfcpci: Fix potential deadlock on &hc->lock
* d163337bef net: sched: cls_u32: Fix match key mis-addressing
* e68929f11b perf test uprobe_from_different_cu: Skip if there is no gcc
* eb8031b7ce net: dsa: fix value check in bcm_sf2_sw_probe()
* abb0172fa8 rtnetlink: let rtnl_bridge_setlink checks IFLA_BRIDGE_MODE length
* 6b93c51068 bpf: Add length check for SK_DIAG_BPF_STORAGE_REQ_MAP_FD parsing
* 2cf6791207 net/mlx5e: fix return value check in mlx5e_ipsec_remove_trailer()
* 1651598547 net/mlx5: DR, fix memory leak in mlx5dr_cmd_create_reformat_ctx
* ef3d0a732d wifi: cfg80211: Fix return value in scan logic
* b4bdcbc0e3 KVM: s390: fix sthyi error handling
* 4241cfc973 word-at-a-time: use the same return type for has_zero regardless of endianness
* 94f8447ab8 arm64: dts: imx8mn-var-som: add missing pull-up for onboard PHY reset pinmux
* 832a4d4cdb loop: Select I/O scheduler 'none' from inside add_disk()
* 3f7395c382 perf: Fix function pointer case
* a883b98dc7 io_uring: gate iowait schedule on having pending requests
* 058c0cbd25 x86/kprobes: Fix JNG/JNLE emulation
* edc2ac7c72 x86/kprobes: Update kcb status flag after singlestepping
* f07f3938c8 x86/kprobes: Move 'inline' to the beginning of the kprobe_is_ss() declaration
* 2b5afe25f5 x86/kprobes: Fix to identify indirect jmp and others using range case
* ba7d1dae9f x86/kprobes: Use int3 instead of debug trap for single-step
* 2c57553a77 x86/kprobes: Identify far indirect JMP correctly
* 41db23bad9 x86/kprobes: Retrieve correct opcode for group instruction
* ff97a14c8a x86/kprobes: Do not decode opcode in resume_execution()
* 5601d812c8 kprobes/x86: Fix fall-through warnings for Clang
* 7a413fa047 ASoC: cs42l51: fix driver to properly autoload with automatic module loading
* 4d360a8194 io_uring: treat -EAGAIN for REQ_F_NOWAIT as final for io-wq
* 9164e27c5a selftests: mptcp: depend on SYN_COOKIES
* f0acd6c3a2 cpufreq: intel_pstate: Drop ACPI _PSS states table patching
* a241fc02f1 ACPI: processor: perflib: Avoid updating frequency QoS unnecessarily
* ad938dd2af ACPI: processor: perflib: Use the "no limit" frequency QoS
* 4148f28f98 drm/ttm: make ttm_bo_unpin more defensive
* c0f2b2b020 dm cache policy smq: ensure IO doesn't prevent cleaner policy progress
* aae65b1793 ceph: never send metrics if disable_send_metrics is set
* 4f669618c9 ASoC: wm8904: Fill the cache for WM8904_ADC_TEST_0 register
* c837f121bc s390/dasd: fix hanging device after quiesce/resume
* 276738b382 virtio-net: fix race between set queues and probe
* 3d10481a90 btrfs: check if the transaction was aborted at btrfs_wait_for_commit()
* fc511ae405 staging: r8712: Fix memory leak in _r8712_init_xmit_priv()
* 223ecf871b staging: rtl8712: Use constants from <linux/ieee80211.h>
* 836b131683 KVM: VMX: Don't fudge CR0 and CR4 for restricted L2 guest
* c710ff0612 KVM: nVMX: Do not clear CR3 load/store exiting bits if L1 wants 'em
* 7fc51da40b KVM: VMX: Fold ept_update_paging_mode_cr0() back into vmx_set_cr0()
* 96c73bc9ef KVM: VMX: Invert handling of CR0.WP for EPT without unrestricted guest
* 90cd5ab951 irqchip/gic-v4.1: Properly lock VPEs when doing a directLPI invalidation
* 57b8db5800 irq-bcm6345-l1: Do not assume a fixed block to cpu mapping
* b1867cddd7 tpm_tis: Explicitly check for error code
* 5be81139d2 nfsd: Remove incorrect check in nfsd4_validate_stateid
* 4a871fcebc file: always lock position for FMODE_ATOMIC_POS
* c5c797ccc3 btrfs: check for commit error at btrfs_attach_transaction_barrier()
* 5e0e4e72ca hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled
* 7c6df7f0fc ALSA: hda/relatek: Enable Mute LED on HP 250 G8
* 8fc0eabaa7 tty: n_gsm: fix UAF in gsm_cleanup_mux
* caac4b6c15 staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext()
* baef414b1c Documentation: security-bugs.rst: clarify CVE handling
* 0d5b23743b Documentation: security-bugs.rst: update preferences when dealing with the linux-distros group
* 65cd02e3c3 Revert "usb: xhci: tegra: Fix error check"
* b0fd110578 usb: xhci-mtk: set the dma max_seg_size
* d0b588bbe4 USB: quirks: add quirk for Focusrite Scarlett
* 66a622275a usb: ohci-at91: Fix the unhandle interrupt when resume
* 96c433aff5 usb: dwc3: don't reset device side if dwc3 was configured as host-only
* 05b201de44 usb: dwc3: pci: skip BYT GPIO lookup table for hardwired phy
* 75ad45cef6 Revert "usb: dwc3: core: Enable AutoRetry feature in the controller"
* bf468806b6 can: gs_usb: gs_can_close(): add missing set of CAN state to CAN_STATE_STOPPED
* d5db33a667 USB: serial: simple: sort driver entries
* 81c54eef1d USB: serial: simple: add Kaufmann RKS+CAN VCP
* fca2a74eee USB: serial: option: add Quectel EC200A module support
* c704cb2113 USB: serial: option: support Quectel EM060K_128
* 1037ee1dbf serial: sifive: Fix sifive_serial_console_setup() section
* 6209a7383d serial: 8250_dw: Preserve original value of DLF register
* 9e671a6116 serial: qcom-geni: drop bogus runtime pm state update
* 68e6287ac6 USB: gadget: Fix the memory leak in raw_gadget driver
* da1b105dc6 Revert "usb: gadget: tegra-xudc: Fix error check in tegra_xudc_powerdomain_init()"
* a6d2fd1703 tracing: Fix warning in trace_buffered_event_disable()
* 0efbdbc453 ring-buffer: Fix wrong stat of cpu_buffer->read
* e410839c0c ata: pata_ns87415: mark ns87560_tf_read static
* 82ce0ae87a dm raid: protect md_stop() with 'reconfig_mutex'
* d6a1cf4ee5 dm raid: clean up four equivalent goto tags in raid_ctr()
* a43c761a7e dm raid: fix missing reconfig_mutex unlock in raid_ctr() error paths
* d82bfe9686 block: Fix a source code comment in include/uapi/linux/blkzoned.h
* ab6d14bc40 ASoC: fsl_spdif: Silence output on stop
* 94bac776cd drm/msm: Fix IS_ERR_OR_NULL() vs NULL check in a5xx_submit_in_rb()
* b0100bdb9d RDMA/mthca: Fix crash when polling CQ for shared QPs
* 62a8a4cafa drm/msm/adreno: Fix snapshot BINDLESS_DATA size
* 5c9e03b867 drm/msm/dpu: drop enum dpu_core_perf_data_bus_id
* 08aa5a5297 RDMA/mlx4: Make check for invalid flags stricter
* 9d1fd118bc tipc: stop tipc crypto on failure in tipc_node_create
* d03de93776 tipc: check return value of pskb_trim()
* 3661bab5af benet: fix return value check in be_lancer_xmit_workarounds()
* f40f7a858b net/sched: mqprio: Add length check for TCA_MQPRIO_{MAX/MIN}_RATE64
* 3ed3729a6a net/sched: mqprio: add extack to mqprio_parse_nlattr()
* 6227b46154 net/sched: mqprio: refactor nlattr parsing to a separate function
* 308a43f152 netfilter: nf_tables: disallow rule addition to bound chain via NFTA_RULE_CHAIN_ID
* ab5a97a94b netfilter: nf_tables: skip immediate deactivate in _PREPARE_ERROR
* 7782ce022f netfilter: nftables: add helper function to validate set element data
* 893cb3c351 netfilter: nft_set_rbtree: fix overlap expiration walk
* 89060b831c platform/x86: msi-laptop: Fix rfkill out-of-sync on MSI Wind U100
* 75f57acda3 team: reset team's flags when down link is P2P device
* de982f46be bonding: reset bond's flags when down link is P2P device
* b2712c4bfc ice: Fix memory management in ice_ethtool_fdir.c
* 0cd74fbd3b tcp: Reduce chance of collisions in inet6_hashfn().
* b55a2b34b1 ipv6 addrconf: fix bug where deleting a mngtmpaddr can create a new temporary address
* 5a3c929682 ethernet: atheros: fix return value check in atl1e_tso_csum()
* ad249aa3c3 phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()
* 6f26f14573 vxlan: calculate correct header length for GPE
* d2741769d5 vxlan: move to its own directory
* 076f786f04 net: hns3: fix wrong bw weight of disabled tc issue
* 344b7c0003 net: hns3: reconstruct function hclge_ets_validate()
* 111b699300 net: phy: marvell10g: fix 88x3310 power up
* 8a6cc852f6 i40e: Fix an NULL vs IS_ERR() bug for debugfs_create_dir()
* 39c789c957 media: staging: atomisp: select V4L2_FWNODE
* fb1db97904 phy: qcom-snps-femto-v2: properly enable ref clock
* ffebc22bdd phy: qcom-snps-femto-v2: keep cfg_ahb_clk enabled during runtime suspend
* f34090579a phy: qcom-snps: correct struct qcom_snps_hsphy kerneldoc
* ceba255a79 phy: qcom-snps: Use dev_err_probe() to simplify code
* ed3d841f2f ext4: fix to check return value of freeze_bdev() in ext4_shutdown()
* e3454b438c pwm: meson: fix handling of period/duty if greater than UINT_MAX
* b306d09967 pwm: meson: Simplify duplicated per-channel tracking
* 840ce9cfc8 tracing: Show real address for trace event arguments
* 8996b13051 drm/ttm: never consider pinned BOs for eviction&swap
* 5f6d5b58c5 drm/ttm: add ttm_bo_pin()/ttm_bo_unpin() v2
* 1815d9bf02 fs: dlm: interrupt posix locks only when process is killed
* 0f6741acfd dlm: rearrange async condition return
* 7931233310 dlm: cleanup plock_op vs plock_xop
* 838d6e86ec PCI/ASPM: Avoid link retraining race
* 9f283ca643 PCI/ASPM: Factor out pcie_wait_for_retrain()
* ffc0ee491f PCI/ASPM: Return 0 or -ETIMEDOUT from pcie_retrain_link()
* 9fd349c885 i2c: nomadik: Remove a useless call in the remove function
* a7ab5d7943 i2c: nomadik: Use devm_clk_get_enabled()
* ec954a4ab0 i2c: nomadik: Remove unnecessary goto label
* 04b1140678 i2c: Improve size determinations
* 41e90f0e50 i2c: Delete error messages for failed memory allocations
* 52df40a5c7 btrfs: fix extent buffer leak after tree mod log failure at split_node()
* 52403c3dad btrfs: fix race between quota disable and relocation
* 3069fc0326 gpio: tps68470: Make tps68470_gpio_output() always set the initial value
* 22786d5381 io_uring: don't audit the capability check in io_uring_create()
* 8e635da0e0 KVM: s390: pv: fix index value of replaced ASCE

Change-Id: I0a0bef19a2542dd337e01594e091619a1e35698a
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-31 10:18:41 +00:00
Greg Kroah-Hartman
04c980352b Merge branch 'android12-5.10' into branch 'android12-5.10-lts'
Catch up on a number of bugfixes and abi updates in the android12-5.10
branch.  This merge contains the following commits:

6af2483a2f BACKPORT: ravb: Fix use-after-free issue in ravb_tx_timeout_work()
d43bb6d288 UPSTREAM: ravb: Fix up dma_free_coherent() call in ravb_remove()
e6ddd6b656 UPSTREAM: netfilter: ipset: Fix race between IPSET_CMD_CREATE and IPSET_CMD_SWAP
e39ee80b1a UPSTREAM: net: xfrm: Fix xfrm_address_filter OOB read
40439d12b8 UPSTREAM: igb: set max size RX buffer when store bad packet is enabled
44ddc37b10 UPSTREAM: netfilter: nfnetlink_osf: avoid OOB read
ede2f9b7e5 ANDROID: abi_gki_aarch64_qcom: Add wait_for_device_probe symbol
db2f2cb88d UPSTREAM: netfilter: xt_sctp: validate the flag_info count
cba41df427 UPSTREAM: netfilter: xt_u32: validate user space input
4865c22b17 UPSTREAM: net/sched: Retire rsvp classifier
f8424e6555 UPSTREAM: ipv4: fix null-deref in ipv4_link_failure
cd7744312f UPSTREAM: netfilter: nf_tables: disallow rule removal from chain binding
6cd0cd3893 UPSTREAM: netfilter: nf_tables: report use refcount overflow
99d2841c81 UPSTREAM: usb: gadget: ncm: Handle decoding of multiple NTB's in unwrap call
3cf9365660 Merge tag 'android12-5.10.189_r00' into android12-5.10
785004172f ANDROID: ABI: Update oplus symbol list
d3961f624b ANDROID: vendor_hooks: Add hooks for oem percpu-rwsem optimaton
180ea0f6d4 UPSTREAM: net: sched: sch_qfq: Fix UAF in qfq_dequeue()
6b6202b762 UPSTREAM: net/sched: sch_hfsc: Ensure inner classes have fsc curve
ff86e87c7e FROMGIT: f2fs: split initial and dynamic conditions for extent_cache
e22810eb27 ANDROID: GKI:  Update moto symbols list
3718ea1e77 ANDROID: vendor_hook: Add hook to skip swapcache
909a83a97d ANDROID: GKI: Update symbols to symbol list
6356ed35b9 ANDROID: add vendor hook of add/delete/iterate node for swap_avail_heads
bd34b88730 UPSTREAM: tty: n_gsm: fix the UAF caused by race condition in gsm_cleanup_mux
7ba85ae103 UPSTREAM: netfilter: nf_tables: prevent OOB access in nft_byteorder_eval
9f68d2976a UPSTREAM: net/sched: sch_qfq: account for stab overhead in qfq_enqueue
88525fa7d9 ANDROID: GKI update xiaomi symbols list
1a6995cf14 UPSTREAM: af_unix: Fix null-ptr-deref in unix_stream_sendpage().
37d958fa88 UPSTREAM: USB: dwc3: fix use-after-free on core driver unbind
6388400ba5 UPSTREAM: xhci: Fix incorrect tracking of free space on transfer rings
bc78acae08 UPSTREAM: kfence: avoid passing -g for test
b3bad92280 UPSTREAM: coresight: etm4x: Do not access TRCIDR1 for identification
b155bf3086 UPSTREAM: usb: typec: tcpm: fix warning when handle discover_identity message
72a7bbb4a3 UPSTREAM: f2fs: fix to update age extent in f2fs_do_zero_range()
1e1986dd44 UPSTREAM: f2fs: fix to update age extent correctly during truncation
3e9ba88034 BACKPORT: f2fs: fix to do sanity check on extent cache correctly
e95427763f UPSTREAM: net/sched: sch_qfq: refactor parsing of netlink parameters
216e24b08c BACKPORT: f2fs: don't reset unchangable mount option in f2fs_remount()
a96eb7c2ca ANDROID: arm64: dts: qcom: sdm845-db845c: Do not point MDSS to the boot splash memory region
ad067abfe1 BACKPORT: net: nfc: Fix use-after-free caused by nfc_llcp_find_local
00c7bec87c ANDROID: ABI: Update oplus symbol list  ashmem: is_ashmem_file Export is_ashmem_file function which will be used by the minidump module to get ashmem info.
300d1ff660 ANDROID: GKI: Update abi_gki_aarch64_qcom for page_owner symbols
a9c0f62260 ANDROID: mm: Export page_owner_inited and __set_page_owner
d26e92d681 FROMGIT: pstore/ram: Check start of empty przs during init
966df87a17 UPSTREAM: exfat: check if filename entries exceeds max filename length
dcb17f36f3 BACKPORT: FROMGIT: netfilter: nfnetlink_log: always add a timestamp
a8b58500cb FROMGIT: arm64: dts: qcom: sdm845-db845c: Mark cont splash memory region as reserved
8001debfc1 UPSTREAM: media: usb: siano: Fix warning due to null work_func_t function pointer
8e682bb18a UPSTREAM: Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_ready_cb
14ce45e3c7 ANDROID: ABI: Update oplus symbol list
98a66e87c1 ANDROID: Export symbols to do reverse mapping within memcg in kernel modules.
8af1bc5622 ANDROID: GKI: export symbols to modify lru stats
b019a989a2 UPSTREAM: net: tap_open(): set sk_uid from current_fsuid()
169c9f103f UPSTREAM: net: tun_chr_open(): set sk_uid from current_fsuid()
819a8605da UPSTREAM: netfilter: nf_tables: disallow rule addition to bound chain via NFTA_RULE_CHAIN_ID
f2545eebf0 BACKPORT: UPSTREAM: usb: dwc3: gadget: Execute gadget stop after halting the controller
6d38ae2f4c UPSTREAM: usb: dwc3: gadget: Stall and restart EP0 if host is unresponsive
6f01e099d8 UPSTREAM: net/sched: cls_route: No longer copy tcf_result on update to avoid use-after-free
0ebe76176b UPSTREAM: net/sched: cls_fw: No longer copy tcf_result on update to avoid use-after-free
45edbf4058 UPSTREAM: net/sched: cls_u32: No longer copy tcf_result on update to avoid use-after-free
e172f5cfc0 ANDROID: GKI: update xiaomi symbol list
28b82089b2 UPSTREAM: netfilter: nf_tables: skip bound chain on rule flush
bad8adda41 UPSTREAM: net/sched: cls_fw: Fix improper refcount update leads to use-after-free
84f8556570 UPSTREAM: tty: n_gsm: fix UAF in gsm_cleanup_mux
0fa8d8cd99 UPSTREAM: netfilter: nft_set_pipapo: fix improper element removal
6efa28db9a BACKPORT: FROMGIT: irqchip/gic-v3: Workaround for GIC-700 erratum 2941627
ec3f57af0a ANDROID: vendor_hook: fix the error record position of mutex
028e0fb3a4 FROMGIT: fs: drop_caches: draining pages before dropping caches
67f65c7764 ANDROID: GKI: Update symbols to symbol list
8e164a95fb ANDROID: GKI: Update symbols to symbol list
c4191be802 ANDROID: GKI: add symbol list file for moto
2427afff1e UPSTREAM: gfs2: Don't deref jdesc in evict
e933b7be1c UPSTREAM: media: dvb-core: Fix kernel WARNING for blocking operation in wait_event*()

Change-Id: I7b09cba3db8ae584fd0821bfbecf945e7d0bf9a4
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-31 10:10:41 +00:00
xieliujie
d3961f624b ANDROID: vendor_hooks: Add hooks for oem percpu-rwsem optimaton
Recently we have discovered many lag issues caused by percpu_rwsem
lock-holding tasks not being scheduled for a long time. we need to
identify them and provide appropriate scheduling protection in our
oem scheduler.
To support this, we add one hook below:
    trace_android_vh_percpu_rwsem_wq_add

Bug: 301066838
Change-Id: Id770c1a7978842abfc62d3fa9aeb5ac7a1904972
Signed-off-by: xieliujie <xieliujie@oppo.com>
(cherry picked from commit f451f4a59950135ea9a6ede218c58f10dbb3abaa)
2023-09-27 09:11:18 +08:00
Xiaojun Ji
3718ea1e77 ANDROID: vendor_hook: Add hook to skip swapcache
We want to skip swapcache in some scenarios to reduce
swap cache

Bug: 300857016
Change-Id: I8cbc45733d861be6f56628b40a1ef936cae3b45d
Signed-off-by: Xiaojun Ji <jixj@motorola.com>
2023-09-18 15:46:03 +08:00
Lincheng Yang
6356ed35b9 ANDROID: add vendor hook of add/delete/iterate node for swap_avail_heads
Our Android phones occur Panic as follows:

[77522.303024][ T9734] Call trace:
[77522.303039][ T9734] dump_backtrace.cfi_jt+0x0/0x8
[77522.303052][ T9734] dump_stack_lvl+0xc4/0x140
[77522.303061][ T9734] dump_stack+0x1c/0x2c
[77522.303123][ T9734] mrdump_common_die+0x3a8/0x544 [mrdump]
[77522.303177][ T9734] ipanic_die+0x24/0x38 [mrdump]
[77522.303189][ T9734] die+0x340/0x698
[77522.303199][ T9734] bug_handler+0x48/0x108
[77522.303210][ T9734] brk_handler+0xac/0x1a8
[77522.303221][ T9734] do_debug_exception+0xe0/0x1e0
[77522.303233][ T9734] el1_dbg+0x38/0x54
[77522.303242][ T9734] el1_sync_handler+0x40/0x88
[77522.303255][ T9734] el1_sync+0x8c/0x140
[77522.303264][ T9734] plist_requeue+0xd4/0x110
[77522.303297][ T9734] tran_get_swap_pages+0xc8/0x364 [memfusion]
[77522.303329][ T9734] probe_android_vh_get_swap_page+0x1b4/0x220 [memfusion]
[77522.303342][ T9734] get_swap_page+0x258/0x304
[77522.303352][ T9734] shrink_page_list+0xe00/0x1e0c
[77522.303361][ T9734] shrink_inactive_list+0x2f4/0xac8
[77522.303373][ T9734] shrink_lruvec+0x1a4/0x34c
[77522.303383][ T9734] shrink_node_memcgs+0x84/0x3b0
[77522.303391][ T9734] shrink_node+0x2c4/0x6e4
[77522.303400][ T9734] shrink_zones+0x16c/0x29c
[77522.303410][ T9734] do_try_to_free_pages+0xe4/0x2bc
[77522.303418][ T9734] try_to_free_pages+0x388/0x7b4
[77522.303429][ T9734] __alloc_pages_direct_reclaim+0x88/0x278
[77522.303438][ T9734] __alloc_pages_slowpath+0x464/0xb24
[77522.303447][ T9734] __alloc_pages_nodemask+0x1f4/0x3dc
[77522.303458][ T9734] do_anonymous_page+0x164/0x914
[77522.303466][ T9734] handle_pte_fault+0x15c/0x9f8
[77522.303476][ T9734] ___handle_speculative_fault+0x234/0xe18
[77522.303485][ T9734] __handle_speculative_fault+0x78/0x21c
[77522.303497][ T9734] do_page_fault+0x36c/0x754
[77522.303506][ T9734] do_translation_fault+0x48/0x64
[77522.303514][ T9734] do_mem_abort+0x6c/0x164
[77522.303522][ T9734] el0_da+0x24/0x34
[77522.303531][ T9734] el0_sync_handler+0xc8/0xf0
[77522.303539][ T9734] el0_sync+0x1b4/0x1c0

The analysis shows that when we iterate the swap_avail_heads list, we get
node A, but before we access node A, node A is maybe deleted, and by the time
we actually access node A, it no longer exists, as follows:

            CPU1 thread1                                 CPU2 thread2
plist_for_each_entry_safe()
get si->avail_lists[node] from swap_avail_heads
                                             remove si->avail_lists[node] from swap_avail_heads
plist_requeue(&si->avail_lists[node])
BUG_ON(plist_node_empty(node)); // trigger

Due to when we use vendor hook of get_swap_page, the get_swap_pages() function
is overridden, use our own spin_lock to protect when iterate swap_avail_heads
list, but now use native swap_avail_lock spin_lock protect when the
swap_avail_heads list to add and delete nodes, so there will be concurrent
access.

So add vendor hook of add/delete/iterate node for avail_list, in this way, we
can use our own spin_lock to protect the swap_avail_heads list to add, delete
and iterate node.

Due to enable_swap_info function to call vendor hook of add_to_avail_list,
need first init swap_avail_heads, so also add vendor hook of
swap_avail_heads_init.

Due to the vendor hook of __cgroup_throttle_swaprate need to call
blkcg_schedule_throttle function, so export it also.

Bug: 225795494
Change-Id: I03107cbda6310fa7ae85e41b8cf1fa8225cafe78
Signed-off-by: Lincheng Yang <lincheng.yang@transsion.com>
Suggested-by: Bing Han <bing.han@transsion.com>
2023-09-15 19:58:39 +00:00
Greg Kroah-Hartman
412095349f Merge 5.10.191 into android12-5.10-lts
Changes in 5.10.191
	wireguard: allowedips: expand maximum node depth
	mmc: moxart: read scr register without changing byte order
	ipv6: adjust ndisc_is_useropt() to also return true for PIO
	bpf: allow precision tracking for programs with subprogs
	bpf: stop setting precise in current state
	bpf: aggressively forget precise markings during state checkpointing
	selftests/bpf: make test_align selftest more robust
	selftests/bpf: Workaround verification failure for fexit_bpf2bpf/func_replace_return_code
	selftests/bpf: Fix sk_assign on s390x
	dmaengine: pl330: Return DMA_PAUSED when transaction is paused
	riscv,mmio: Fix readX()-to-delay() ordering
	drm/nouveau/gr: enable memory loads on helper invocation on all channels
	drm/shmem-helper: Reset vma->vm_ops before calling dma_buf_mmap()
	drm/amd/display: check attr flag before set cursor degamma on DCN3+
	hwmon: (pmbus/bel-pfe) Enable PMBUS_SKIP_STATUS_CHECK for pfe1100
	radix tree test suite: fix incorrect allocation size for pthreads
	x86/pkeys: Revert a5eff72597 ("x86/pkeys: Add PKRU value to init_fpstate")
	nilfs2: fix use-after-free of nilfs_root in dirtying inodes via iput
	io_uring: correct check for O_TMPFILE
	iio: cros_ec: Fix the allocation size for cros_ec_command
	binder: fix memory leak in binder_init()
	usb-storage: alauda: Fix uninit-value in alauda_check_media()
	usb: dwc3: Properly handle processing of pending events
	usb: common: usb-conn-gpio: Prevent bailing out if initial role is none
	x86/srso: Fix build breakage with the LLVM linker
	x86/cpu/amd: Enable Zenbleed fix for AMD Custom APU 0405
	x86/mm: Fix VDSO and VVAR placement on 5-level paging machines
	x86/speculation: Add cpu_show_gds() prototype
	x86: Move gds_ucode_mitigated() declaration to header
	drm/nouveau/disp: Revert a NULL check inside nouveau_connector_get_modes
	selftests/rseq: Fix build with undefined __weak
	selftests: forwarding: Add a helper to skip test when using veth pairs
	selftests: forwarding: ethtool: Skip when using veth pairs
	selftests: forwarding: ethtool_extended_state: Skip when using veth pairs
	selftests: forwarding: Skip test when no interfaces are specified
	selftests: forwarding: Switch off timeout
	selftests: forwarding: tc_flower: Relax success criterion
	mISDN: Update parameter type of dsp_cmx_send()
	net/packet: annotate data-races around tp->status
	tunnels: fix kasan splat when generating ipv4 pmtu error
	bonding: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves
	dccp: fix data-race around dp->dccps_mss_cache
	drivers: net: prevent tun_build_skb() to exceed the packet size limit
	IB/hfi1: Fix possible panic during hotplug remove
	wifi: cfg80211: fix sband iftype data lookup for AP_VLAN
	net: phy: at803x: remove set/get wol callbacks for AR8032
	net: hns3: refactor hclge_mac_link_status_wait for interface reuse
	net: hns3: add wait until mac link down
	dmaengine: mcf-edma: Fix a potential un-allocated memory access
	net/mlx5: Allow 0 for total host VFs
	ibmvnic: Enforce stronger sanity checks on login response
	ibmvnic: Unmap DMA login rsp buffer on send login fail
	ibmvnic: Handle DMA unmapping of login buffs in release functions
	btrfs: don't stop integrity writeback too early
	btrfs: set cache_block_group_error if we find an error
	nvme-tcp: fix potential unbalanced freeze & unfreeze
	nvme-rdma: fix potential unbalanced freeze & unfreeze
	netfilter: nf_tables: report use refcount overflow
	scsi: core: Fix legacy /proc parsing buffer overflow
	scsi: storvsc: Fix handling of virtual Fibre Channel timeouts
	scsi: 53c700: Check that command slot is not NULL
	scsi: snic: Fix possible memory leak if device_add() fails
	scsi: core: Fix possible memory leak if device_add() fails
	scsi: qedi: Fix firmware halt over suspend and resume
	scsi: qedf: Fix firmware halt over suspend and resume
	alpha: remove __init annotation from exported page_is_ram()
	sch_netem: fix issues in netem_change() vs get_dist_table()
	Linux 5.10.191

Change-Id: Ice1868f0a7b328bb0e56985ac0bb5af9434fd073
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-08-28 16:37:52 +00:00
Qi Zheng
d7e5e2b87f binder: fix memory leak in binder_init()
commit adb9743d6a08778b78d62d16b4230346d3508986 upstream.

In binder_init(), the destruction of binder_alloc_shrinker_init() is not
performed in the wrong path, which will cause memory leaks. So this commit
introduces binder_alloc_shrinker_exit() and calls it in the wrong path to
fix that.

Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
Acked-by: Carlos Llamas <cmllamas@google.com>
Fixes: f2517eb76f ("android: binder: Add global lru shrinker to binder")
Cc: stable <stable@kernel.org>
Link: https://lore.kernel.org/r/20230625154937.64316-1-qi.zheng@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-16 18:21:00 +02:00
Vatsal Parasrampuria
b4b7d22830 ANDROID: wakeupbypass: Add vendor hook for batteryswap
Implemented a hook to check if battery swap is enabled in
alarm timer suspend routine. During a battery swap, it is
crucial to ensure that the device remains in a suspended
state, relying on a limited backup power source. It is
essential to prevent any unintended awakenings in this
state, as they could potentially lead to sudden surges
in the power consumption, ultimately resulting in a
device shutdown. Hence, we disable alarmtimer IRQs when
in batteryswap mode.

Bug: 290881352
Change-Id: I31dc30d9a3168bb1356cccba49f0a70fd6b73782
Signed-off-by: Vatsal Parasrampuria <vp9924@zebra.com>
2023-07-20 00:34:49 +00:00
shenjiangjiang
28f1c8e015 ANDROID: vendor_hook: Add hook to abort reclaim and compaction
We need to abort the reclaim/compaction by sending
signal(such as SIGUSR2) to the reclaim thread, or
just abort when cpu-usage is too-high or free-mem is enough.

Bug: 289987875
Change-Id: I4b637cbd2b37235eec27a985a9b5b95598247c59
Signed-off-by: shenjiangjiang <shenjiangjiang@oppo.com>
(cherry picked from commit 024628cc9203cbd4f8471d98435b3a3d6f85764d)
2023-07-18 17:31:55 +00:00
Oven
4782c8cb16 ANDROID: vendor_hook: Add hook to tune readaround size
In some situations, we want to decrease readaround size for better
performance. So we add this hook.

Bug: 288216516
Change-Id: If2f5f75976c99ff1f82ce29d370f9216926055ab
Signed-off-by: Oven <liyangouwen1@oppo.com>
2023-06-30 08:42:41 +00:00
Oven
69a794a283 ANDROID: vendor_hooks: Add hooks to avoid key threads stalled in
memory allocations

We add these hooks to avoid key threads blocked in memory allocation
path.
-android_vh_free_unref_page_bypass  ----We create a memory pool for the key threads. This hook determines whether a page should be free to the pool or to buddy freelist. It works with a existing hook `android_vh_alloc_pages_reclaim_bypass`, which takes pages out of the pool.

-android_vh_kvmalloc_node_use_vmalloc  ----For key threads, we perfer not to run into direct reclaim. So we clear __GFP_DIRECT_RECLAIM flag. For threads which are not that important, we perfer use vmalloc.

-android_vh_should_alloc_pages_retry  ----Before key threads run into direct reclaim, we want to retry with a lower watermark.

-android_vh_unreserve_highatomic_bypass  ----We want to keep more highatomic pages when unreserve them to avoid highatomic allocation failures.

-android_vh_pageset_update  ----We found the default per-cpu pageset is quite few in smartphones with large ram size. This hook is used to increase it to reduce zone->lock contentions.

-android_vh_rmqueue_bulk_bypass  ----We found sometimes when key threads run into rmqueue_bulk,  it took several milliseconds spinning at zone->lock or filling per-cpu pages. We use this hook to take pages from the mempool mentioned above,  rather than grab zone->lock and fill a batch of pages to per-cpu.

Bug: 288216516
Change-Id: I1656032d6819ca627723341987b6094775bc345f
Signed-off-by: Oven <liyangouwen1@oppo.com>
2023-06-30 08:42:41 +00:00
Carlos Llamas
2218752325 binder: fix UAF caused by faulty buffer cleanup
commit bdc1c5fac982845a58d28690cdb56db8c88a530d upstream.

In binder_transaction_buffer_release() the 'failed_at' offset indicates
the number of objects to clean up. However, this function was changed by
commit 44d8047f1d ("binder: use standard functions to allocate fds"),
to release all the objects in the buffer when 'failed_at' is zero.

This introduced an issue when a transaction buffer is released without
any objects having been processed so far. In this case, 'failed_at' is
indeed zero yet it is misinterpreted as releasing the entire buffer.

This leads to use-after-free errors where nodes are incorrectly freed
and subsequently accessed. Such is the case in the following KASAN
report:

  ==================================================================
  BUG: KASAN: slab-use-after-free in binder_thread_read+0xc40/0x1f30
  Read of size 8 at addr ffff4faf037cfc58 by task poc/474

  CPU: 6 PID: 474 Comm: poc Not tainted 6.3.0-12570-g7df047b3f0aa #5
  Hardware name: linux,dummy-virt (DT)
  Call trace:
   dump_backtrace+0x94/0xec
   show_stack+0x18/0x24
   dump_stack_lvl+0x48/0x60
   print_report+0xf8/0x5b8
   kasan_report+0xb8/0xfc
   __asan_load8+0x9c/0xb8
   binder_thread_read+0xc40/0x1f30
   binder_ioctl+0xd9c/0x1768
   __arm64_sys_ioctl+0xd4/0x118
   invoke_syscall+0x60/0x188
  [...]

  Allocated by task 474:
   kasan_save_stack+0x3c/0x64
   kasan_set_track+0x2c/0x40
   kasan_save_alloc_info+0x24/0x34
   __kasan_kmalloc+0xb8/0xbc
   kmalloc_trace+0x48/0x5c
   binder_new_node+0x3c/0x3a4
   binder_transaction+0x2b58/0x36f0
   binder_thread_write+0x8e0/0x1b78
   binder_ioctl+0x14a0/0x1768
   __arm64_sys_ioctl+0xd4/0x118
   invoke_syscall+0x60/0x188
  [...]

  Freed by task 475:
   kasan_save_stack+0x3c/0x64
   kasan_set_track+0x2c/0x40
   kasan_save_free_info+0x38/0x5c
   __kasan_slab_free+0xe8/0x154
   __kmem_cache_free+0x128/0x2bc
   kfree+0x58/0x70
   binder_dec_node_tmpref+0x178/0x1fc
   binder_transaction_buffer_release+0x430/0x628
   binder_transaction+0x1954/0x36f0
   binder_thread_write+0x8e0/0x1b78
   binder_ioctl+0x14a0/0x1768
   __arm64_sys_ioctl+0xd4/0x118
   invoke_syscall+0x60/0x188
  [...]
  ==================================================================

In order to avoid these issues, let's always calculate the intended
'failed_at' offset beforehand. This is renamed and wrapped in a helper
function to make it clear and convenient.

Fixes: 32e9f56a96d8 ("binder: don't detect sender/target during buffer cleanup")
Reported-by: Zi Fan Tan <zifantan@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Acked-by: Todd Kjos <tkjos@google.com>
Link: https://lore.kernel.org/r/20230505203020.4101154-1-cmllamas@google.com
[cmllamas: resolve trivial conflict due to missing commit 9864bb4801331]
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-06-05 09:07:04 +02:00
Peifeng Li
64c7044d39 ANDROID: vendor_hook: add hooks in dm_bufio.c
1. android_vh_dm_bufio_shrink_scan_bypass
To adjust dm_bufio-buffer shrinker's policy in some cases.
2. cleanup_old_buffers_bypass
To adjust the policy of dm_bufio-buffer periodic eviction
in some cases.

Bug: 281467813

Signed-off-by: Peifeng Li <lipeifeng@oppo.com>
Change-Id: I29a9d91d18d2e279170533db83b59cfc3b17ebe2
2023-05-22 10:51:36 +08:00
Carlos Llamas
66cba6260a FROMLIST: binder: fix UAF caused by faulty buffer cleanup
In binder_transaction_buffer_release() the 'failed_at' offset indicates
the number of objects to clean up. However, this function was changed by
commit 44d8047f1d ("binder: use standard functions to allocate fds"),
to release all the objects in the buffer when 'failed_at' is zero.

This introduced an issue when a transaction buffer is released without
any objects having been processed so far. In this case, 'failed_at' is
indeed zero yet it is misinterpreted as releasing the entire buffer.

This leads to use-after-free errors where nodes are incorrectly freed
and subsequently accessed. Such is the case in the following KASAN
report:

  ==================================================================
  BUG: KASAN: slab-use-after-free in binder_thread_read+0xc40/0x1f30
  Read of size 8 at addr ffff4faf037cfc58 by task poc/474

  CPU: 6 PID: 474 Comm: poc Not tainted 6.3.0-12570-g7df047b3f0aa #5
  Hardware name: linux,dummy-virt (DT)
  Call trace:
   dump_backtrace+0x94/0xec
   show_stack+0x18/0x24
   dump_stack_lvl+0x48/0x60
   print_report+0xf8/0x5b8
   kasan_report+0xb8/0xfc
   __asan_load8+0x9c/0xb8
   binder_thread_read+0xc40/0x1f30
   binder_ioctl+0xd9c/0x1768
   __arm64_sys_ioctl+0xd4/0x118
   invoke_syscall+0x60/0x188
  [...]

  Allocated by task 474:
   kasan_save_stack+0x3c/0x64
   kasan_set_track+0x2c/0x40
   kasan_save_alloc_info+0x24/0x34
   __kasan_kmalloc+0xb8/0xbc
   kmalloc_trace+0x48/0x5c
   binder_new_node+0x3c/0x3a4
   binder_transaction+0x2b58/0x36f0
   binder_thread_write+0x8e0/0x1b78
   binder_ioctl+0x14a0/0x1768
   __arm64_sys_ioctl+0xd4/0x118
   invoke_syscall+0x60/0x188
  [...]

  Freed by task 475:
   kasan_save_stack+0x3c/0x64
   kasan_set_track+0x2c/0x40
   kasan_save_free_info+0x38/0x5c
   __kasan_slab_free+0xe8/0x154
   __kmem_cache_free+0x128/0x2bc
   kfree+0x58/0x70
   binder_dec_node_tmpref+0x178/0x1fc
   binder_transaction_buffer_release+0x430/0x628
   binder_transaction+0x1954/0x36f0
   binder_thread_write+0x8e0/0x1b78
   binder_ioctl+0x14a0/0x1768
   __arm64_sys_ioctl+0xd4/0x118
   invoke_syscall+0x60/0x188
  [...]
  ==================================================================

In order to avoid these issues, let's always calculate the intended
'failed_at' offset beforehand. This is renamed and wrapped in a helper
function to make it clear and convenient.

Fixes: 32e9f56a96d8 ("binder: don't detect sender/target during buffer cleanup")
Reported-by: Zi Fan Tan <zifantan@google.com>
Link: https://b.corp.google.com/issues/275041864
Cc: stable@vger.kernel.org
Signed-off-by: Carlos Llamas <cmllamas@google.com>

Bug: 275041864
Link: https://lore.kernel.org/all/20230505203020.4101154-1-cmllamas@google.com
Change-Id: I4bcc8bde77a8118872237d100cccb5caf95d99a1
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2023-05-05 23:25:49 +00:00
Carlos Llamas
2e61d90c44 ANDROID: fix use of plain integer as NULL pointer
This patch fixes the following sparse issues:

  drivers/android/binder.c:1373:70: sparse: sparse: Using plain integer as NULL pointer
  drivers/android/binder.c:2508:41: sparse: sparse: Using plain integer as NULL pointer

Fixes: e107ea9e4dd1 ("ANDROID: vendor_hooks: Add hooks for binder proc transaction")
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202304150607.IuUhkfxB-lkp@intel.com/
Cc: zhengding chen <chenzhengding@oppo.com>
Change-Id: I272b3239e2d81bfdd28d1fe412f2c3d0731ec50f
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2023-04-26 02:29:00 +00:00