Commit Graph

69980 Commits

Author SHA1 Message Date
Ye Bin
d55931c1cc UPSTREAM: ext4: fix kernel BUG in 'ext4_write_inline_data_end()'
commit 5c099c4fdc438014d5893629e70a8ba934433ee8 upstream.

Syzbot report follow issue:
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:227!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3629 Comm: syz-executor212 Not tainted 6.1.0-rc5-syzkaller-00018-g59d0d52c30d4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:ext4_write_inline_data+0x344/0x3e0 fs/ext4/inline.c:227
RSP: 0018:ffffc90003b3f368 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8880704e16c0 RCX: 0000000000000000
RDX: ffff888021763a80 RSI: ffffffff821e31a4 RDI: 0000000000000006
RBP: 000000000006818e R08: 0000000000000006 R09: 0000000000068199
R10: 0000000000000079 R11: 0000000000000000 R12: 000000000000000b
R13: 0000000000068199 R14: ffffc90003b3f408 R15: ffff8880704e1c82
FS:  000055555723e3c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffe8ac9080 CR3: 0000000079f81000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 ext4_write_inline_data_end+0x2a3/0x12f0 fs/ext4/inline.c:768
 ext4_write_end+0x242/0xdd0 fs/ext4/inode.c:1313
 ext4_da_write_end+0x3ed/0xa30 fs/ext4/inode.c:3063
 generic_perform_write+0x316/0x570 mm/filemap.c:3764
 ext4_buffered_write_iter+0x15b/0x460 fs/ext4/file.c:285
 ext4_file_write_iter+0x8bc/0x16e0 fs/ext4/file.c:700
 call_write_iter include/linux/fs.h:2191 [inline]
 do_iter_readv_writev+0x20b/0x3b0 fs/read_write.c:735
 do_iter_write+0x182/0x700 fs/read_write.c:861
 vfs_iter_write+0x74/0xa0 fs/read_write.c:902
 iter_file_splice_write+0x745/0xc90 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0x114/0x180 fs/splice.c:931
 splice_direct_to_actor+0x335/0x8a0 fs/splice.c:886
 do_splice_direct+0x1ab/0x280 fs/splice.c:974
 do_sendfile+0xb19/0x1270 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x1d0/0x210 fs/read_write.c:1309
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
---[ end trace 0000000000000000 ]---

Above issue may happens as follows:
ext4_da_write_begin
  ext4_da_write_inline_data_begin
    ext4_da_convert_inline_data_to_extent
      ext4_clear_inode_state(inode, EXT4_STATE_MAY_INLINE_DATA);
ext4_da_write_end

ext4_run_li_request
  ext4_mb_prefetch
    ext4_read_block_bitmap_nowait
      ext4_validate_block_bitmap
        ext4_mark_group_bitmap_corrupted(sb, block_group, EXT4_GROUP_INFO_BBITMAP_CORRUPT)
	 percpu_counter_sub(&sbi->s_freeclusters_counter,grp->bb_free);
	  -> sbi->s_freeclusters_counter become zero
ext4_da_write_begin
  if (ext4_nonda_switch(inode->i_sb)) -> As freeclusters_counter is zero will return true
    *fsdata = (void *)FALL_BACK_TO_NONDELALLOC;
    ext4_write_begin
ext4_da_write_end
  if (write_mode == FALL_BACK_TO_NONDELALLOC)
    ext4_write_end
      if (inline_data)
        ext4_write_inline_data_end
	  ext4_write_inline_data
	    BUG_ON(pos + len > EXT4_I(inode)->i_inline_size);
           -> As inode is already convert to extent, so 'pos + len' > inline_size
	   -> then trigger BUG.

To solve this issue, instead of checking ext4_has_inline_data() which
is only cleared after data has been written back, check the
EXT4_STATE_MAY_INLINE_DATA flag in ext4_write_end().

Fixes: f19d5870cb ("ext4: add normal write support for inline data")
Reported-by: syzbot+4faa160fa96bfba639f8@syzkaller.appspotmail.com
Reported-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Link: https://lore.kernel.org/r/20221206144134.1919987-1-yebin@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
[ta: Fix conflict in if expression and use the local variable inline_data
as it is initialized with ext4_has_inline_data(inode) anyway.]
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 257756238
Change-Id: Ifc77db2f12db2270a2f7100e548e113dee3ee492
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
2023-04-05 12:46:44 +00:00
Paul Lawrence
faf3626b8e ANDROID: incremental fs: Evict inodes before freeing mount data
Since evicting inodes triggers writes to the backing file, which uses
the mi_owner field from the mount_info struct, make sure inodes are
evicted before we free the mount_info data

Test: incfs_test
Bug: 270117845
Change-Id: I673b2e0e04b5adc3998caf6f22443598a30338af
Signed-off-by: Paul Lawrence <paullawrence@google.com>
(cherry picked from commit 7899985277527b29c47929a6d6a89c5c89b406ad)
2023-04-04 15:48:57 +00:00
Greg Kroah-Hartman
fb0cece721 Merge tag 'android12-5.10.168_r00' into android12-5.10
This is the merge of the upstream LTS release of 5.10.168 into the
android12-5.10 branch.

It contains the following commits:

* b34e092097 Revert "nvmem: core: Fix a conflict between MTD and NVMEM on wp-gpios property"
*   570621d64f Merge 5.10.168 into android12-5.10-lts
|\
| * 707c48210a Linux 5.10.168
| * 0a626e27f9 Fix page corruption caused by racy check in __free_pages
| * 0ef2490a87 arm64: dts: meson-axg: Make mmc host controller interrupts level-sensitive
| * 5bfc8f0961 arm64: dts: meson-g12-common: Make mmc host controller interrupts level-sensitive
| * 809f4acb7f arm64: dts: meson-gx: Make mmc host controller interrupts level-sensitive
| * 8eee3521bc riscv: Fixup race condition on PG_dcache_clean in flush_icache_pte
| * 6ff8b48253 ceph: flush cap releases when the session is flushed
| * 4f518a4a79 usb: typec: altmodes/displayport: Fix probe pin assign check
| * f25fa93e52 usb: core: add quirk for Alcor Link AK9563 smartcard reader
| * dd965ad39d btrfs: free device in btrfs_close_devices for a single device filesystem
| * 1be271c52b net: USB: Fix wrong-direction WARNING in plusb.c
| * 2b693fe3f7 cifs: Fix use-after-free in rdata->read_into_pages()
| * bbc8509044 pinctrl: intel: Restore the pins that used to be in Direct IRQ mode
| * 4863f46dda spi: dw: Fix wrong FIFO level setting for long xfers
| * 6e2a0521e4 pinctrl: single: fix potential NULL dereference
| * 61f8a493c0 pinctrl: aspeed: Fix confusing types in return value
| * ef3edede7b ALSA: pci: lx6464es: fix a debug loop
| * 3914b71dad selftests: forwarding: lib: quote the sysctl values
| * c53f34ec3f rds: rds_rm_zerocopy_callback() use list_first_entry()
| * 3eb04ef278 net/mlx5: fw_tracer, Zero consumer index when reloading the tracer
| * fac1fb8008 net/mlx5: fw_tracer, Clear load bit when freeing string DBs buffers
| * 703c3efa4b net/mlx5e: IPoIB, Show unknown speed instead of error
| * 896bd85688 net: mscc: ocelot: fix VCAP filters not matching on MAC with "protocol 802.1Q"
| * 1ad4112c9f ice: Do not use WQ_MEM_RECLAIM flag for workqueue
| * 34a5af788e uapi: add missing ip/ipv6 header dependencies for linux/stddef.h
| * 4259a40827 ionic: clean interrupt before enabling queue to avoid credit race
| * 07097ad30b net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY
| * cafa2ad4f1 bonding: fix error checking in bond_debug_reregister()
| * 30fdf66035 xfrm: fix bug with DSCP copy to v6 from v4 tunnel
| * 491b7a5fc8 RDMA/usnic: use iommu_map_atomic() under spin_lock()
| * b1afb666c3 IB/IPoIB: Fix legacy IPoIB due to wrong number of queues
| * a893cc6448 xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()
| * 79b595d959 IB/hfi1: Restore allocated resources on failed copyout
| * 3797e94c19 xfrm: compat: change expression for switch in xfrm_xlate64
| * bc9771cd63 can: j1939: do not wait 250 ms if the same addr was already claimed
| * edaf5c7183 of/address: Return an error when no valid dma-ranges are found
| * b7d5fa8052 tracing: Fix poll() and select() do not work on per_cpu trace_pipe and trace_pipe_raw
| * 35452bf986 ALSA: hda/realtek: Fix the speaker output on Samsung Galaxy Book2 Pro 360
| * e1646e2be9 ALSA: emux: Avoid potential array out-of-bound in snd_emux_xg_control()
| * 1c65762399 ALSA: hda/realtek: Add Positivo N14KP6-TG
| * f1fd16cd97 btrfs: zlib: zero-initialize zlib workspace
| * a1406d5aa3 btrfs: limit device extents to the device size
| * dbe5a11954 migrate: hugetlb: check for hugetlb shared PMD in node migration
| * 97a5104d64 mm/migration: return errno when isolate_huge_page failed
| * 91ad3104b2 iio:adc:twl6030: Enable measurement of VAC
| * e4c3ea9b60 bpf: Do not reject when the stack read size is different from the tracked scalar size
| * 34ec4c7831 nvmem: core: Fix a conflict between MTD and NVMEM on wp-gpios property
| * b2e4128795 wifi: brcmfmac: Check the count value of channel spec to prevent out-of-bounds reads
| * 914e38f02a f2fs: fix to do sanity check on i_extra_isize in is_alive()
| * 3931014367 fbdev: smscufx: fix error handling code in ufx_usb_probe
| * 6c8a2c67a9 serial: 8250_dma: Fix DMA Rx rearm race
| * 967e726e57 serial: 8250_dma: Fix DMA Rx completion race
| * 1fd7a6a579 nvmem: core: fix cell removal on error
| * bb875f0a34 nvmem: core: initialise nvmem->id early
| * b591abac78 drm/i915: Fix potential bit_17 double-free
| * 5c4d4a83bf Squashfs: fix handling and sanity checking of xattr_ids count
| * 30187be290 mm/swapfile: add cond_resched() in get_swap_pages()
| * 639b40007a fpga: stratix10-soc: Fix return value check in s10_ops_write_init()
| * 0139d61d28 x86/debug: Fix stack recursion caused by wrongly ordered DR7 accesses
| * 556959327b mm: hugetlb: proc: check for hugetlb shared PMD in /proc/PID/smaps
| * 50d31309c9 riscv: disable generation of unwind tables
| * 71a4f39f99 parisc: Wire up PTRACE_GETREGS/PTRACE_SETREGS for compat case
| * 2982b473d7 parisc: Fix return code of pdc_iodc_print()
| * 170e1cc3c0 nvmem: qcom-spmi-sdam: fix module autoloading
| * f11330b7ba iio: imu: fxos8700: fix MAGN sensor scale and unit
| * 5b30998c7f iio: imu: fxos8700: remove definition FXOS8700_CTRL_ODR_MIN
| * 42e34a0839 iio: imu: fxos8700: fix failed initialization ODR mode assignment
| * ab976ecd04 iio: imu: fxos8700: fix incorrect ODR mode readback
| * 9d6502ed63 iio: imu: fxos8700: fix swapped ACCEL and MAGN channels readback
| * aff4add609 iio: imu: fxos8700: fix map label of channel type to MAGN sensor
| * 9545ce720a iio: imu: fxos8700: fix IMU data bits returned to user space
| * 6d43eddc56 iio: imu: fxos8700: fix incomplete ACCEL and MAGN channels readback
| * f7d996c953 iio: imu: fxos8700: fix ACCEL measurement range selection
| * 11ac43f763 iio:adc:twl6030: Enable measurements of VUSB, VBAT and others
| * 5602f6a244 iio: adc: berlin2-adc: Add missing of_node_put() in error path
| * 33483172b3 iio: hid: fix the retval in accel_3d_capture_sample
| * 55cf65461b efi: Accept version 2 of memory attributes table
| * 8fb515c8b1 ALSA: hda/realtek: Add Acer Predator PH315-54
| * 192fd121d0 watchdog: diag288_wdt: fix __diag288() inline assembly
| * 5bcdcf437d watchdog: diag288_wdt: do not use stack buffers for hardware data
| * 0c76eddc1f net: qrtr: free memory on error path in radix_tree_insert()
| * 28d190882b fbcon: Check font dimension limits
| * 658e0d99db Input: i8042 - add Clevo PCX0DX to i8042 quirk table
| * a82d493604 Input: i8042 - add TUXEDO devices to i8042 quirk tables
| * 04d99a0a96 Input: i8042 - merge quirk tables
| * ab85074c30 Input: i8042 - move __initconst to fix code styling warning
| * 55515d7d87 vc_screen: move load of struct vc_data pointer in vcs_read() to avoid UAF
| * 434a36ed64 usb: gadget: f_fs: Fix unbalanced spinlock in __ffs_ep0_queue_wait
| * 6e5565aa00 usb: dwc3: qcom: enable vbus override when in OTG dr-mode
| * 1ca8629505 usb: dwc3: dwc3-qcom: Fix typo in the dwc3 vbus override API
| * 30d0e2cf99 iio: adc: stm32-dfsdm: fill module aliases
| * 4bbc34401d net/x25: Fix to not accept on connected socket
| * 2b1e8e20b9 platform/x86: dell-wmi: Add a keymap for KEY_MUTE in type 0x0010 table
| * ac4d9c86e9 i2c: rk3x: fix a bunch of kernel-doc warnings
| * 9758ffe1c0 scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress
| * 1b28bf868f scsi: target: core: Fix warning on RT kernels
| * 4e66ba3cfb i2c: mxs: suppress probe-deferral error message
| * d09b0bf9ff qede: execute xdp_do_flush() before napi_complete_done()
| * 8aba483f70 qede: add netpoll support for qede driver
| * 87d4ff1873 efi: fix potential NULL deref in efi_mem_reserve_persistent
| * 70154489f5 net: openvswitch: fix flow memory leak in ovs_flow_cmd_new
| * 4fb430c698 virtio-net: Keep stop() to follow mirror sequence of open()
| * 812236bb6a selftests: net: udpgso_bench_tx: Cater for pending datagrams zerocopy benchmarking
| * 9e7e2887cc selftests: net: udpgso_bench: Fix racing bug between the rx/tx programs
| * 4babbd1f59 selftests: net: udpgso_bench_rx/tx: Stop when wrong CLI args are provided
| * a4a493e599 selftests: net: udpgso_bench_rx: Fix 'used uninitialized' compiler warning
| * 4d9c962716 ata: libata: Fix sata_down_spd_limit() when no link speed is reported
| * b6d4407211 can: j1939: fix errant WARN_ON_ONCE in j1939_session_deactivate
| * 6362b86170 igc: return an error if the mac type is unknown in igc_ptp_systim_to_hwtstamp()
| * 98c93a0160 net: phy: meson-gxl: Add generic dummy stubs for MMD register access
| * de2785aa34 squashfs: harden sanity check in squashfs_read_xattr_id_table
| * f53c6e7e77 netfilter: br_netfilter: disable sabotage_in hook after first suppression
| * dd6991251a netrom: Fix use-after-free caused by accept on already connected socket
| * 362a2f5531 net: phy: dp83822: Fix null pointer access on DP83825/DP83826 devices
| * 6824169e74 sfc: correctly advertise tunneled IPv6 segmentation
| * 539fc3ef51 virtio-net: execute xdp_do_flush() before napi_complete_done()
| * 63d1c4edbf fix "direction" argument of iov_iter_kvec()
| * 0c67fb7775 fix iov_iter_bvec() "direction" argument
| * b5437e0ba9 READ is "data destination", not source...
| * fefb47a833 WRITE is "data source", not destination...
| * f9815b303e vhost/net: Clear the pending messages when the backend is removed
| * de990d1571 scsi: Revert "scsi: core: map PQ=1, PDT=other values to SCSI_SCAN_TARGET_PRESENT"
| * d08a9b0ad2 drm/vc4: hdmi: make CEC adapter name unique
| * 8c6b46d426 arm64: dts: imx8mm: Fix pad control for UART1_DTE_RX
| * 9bd6074e18 bpf, sockmap: Check for any of tcp_bpf_prots when cloning a listener
| * 36dbb8daf0 bpf: Fix to preserve reg parent/live fields when copying range info
| * 8de8c4a25e bpf: Support <8-byte scalar spill and refill
| * 2b557fa635 ALSA: hda/via: Avoid potential array out-of-bound in add_secret_dac_path()
| * 1b1f56cc0e bpf: Fix a possible task gone issue with bpf_send_signal[_thread]() helpers
| * 2d0f276d50 powerpc/imc-pmu: Revert nest_init_lock to being a mutex
| * 9ff2bebc2c bpf: Fix incorrect state pruning for <8B spill/fill
| * 60c27e0e37 bus: sunxi-rsb: Fix error handling in sunxi_rsb_init()
| * d5a2dcee53 firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region
* | b405332f4b Merge 5.10.167 into android12-5.10-lts
|\|
| * a5acb54d40 Linux 5.10.167
| * 6446369fb9 net: fix NULL pointer in skb_segment_list
| * 0f9db1209f Bluetooth: fix null ptr deref on hci_sync_conn_complete_evt
| * d744c03c04 ACPI: processor idle: Practically limit "Dummy wait" workaround to old Intel systems
| * bd0050b7ff dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init
| * 19c9a2ba46 blk-cgroup: fix missing pd_online_fn() while activating policy
| * a1c0263f1e bpf: Skip task with pid=1 in send_signal_common()
| * f185468631 arm64: dts: imx8mq-thor96: fix no-mmc property for SDHCI
| * a26cef0041 ARM: dts: vf610: Fix pca9548 i2c-mux node names
| * 67a8beb854 ARM: dts: imx: Fix pca9547 i2c-mux node name
* | 0ddb73d446 Merge 5.10.166 into android12-5.10-lts
|\|
| * 8d823aaa22 Linux 5.10.166
| * 19f1f99be3 clk: Fix pointer casting to prevent oops in devm_clk_release()
| * f84c9b72fb perf/x86/amd: fix potential integer overflow on shift of a int
| * 743435cd17 netfilter: conntrack: unify established states for SCTP paths
| * e284c273db x86/i8259: Mark legacy PIC interrupts with IRQ_LEVEL
| * 2eca102b35 block: fix and cleanup bio_check_ro
| * 7fe4fab870 Revert "selftests/ftrace: Update synthetic event syntax errors"
| * 032a7d5ff5 nfsd: Ensure knfsd shuts down when the "nfsd" pseudofs is unmounted
| * 8fe3e574b3 nouveau: explicitly wait on the fence in nouveau_bo_move_m2mf
| * 9f3dd454fe Revert "Input: synaptics - switch touchpad on HP Laptop 15-da3001TU to RMI mode"
| * 230be65a18 tools: gpio: fix -c option of gpio-event-mon
| * 7ff8128bb1 net: mdio-mux-meson-g12a: force internal PHY off on mux switch
| * 62a0806eb4 net/tg3: resolve deadlock in tg3_reset_task() during EEH
| * e9c1b1e1a0 thermal: intel: int340x: Add locking to int340x_thermal_get_trip_type()
| * 3af20f6321 net: ravb: Fix possible hang if RIS2_QFF1 happen
| * 6ef652f35d sctp: fail if no bound addresses can be used for a given scope
| * cf9a2ce038 net/sched: sch_taprio: do not schedule in taprio_reset()
| * 7de16d75b2 netrom: Fix use-after-free of a listening socket.
| * 498584ccf4 netfilter: conntrack: fix vtag checks for ABORT/SHUTDOWN_COMPLETE
| * 7f9828fb1f ipv4: prevent potential spectre v1 gadget in fib_metrics_match()
| * 34c6142f0d ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()
| * 870a565bd6 netlink: annotate data races around sk_state
| * 8583f52c23 netlink: annotate data races around dst_portid and dst_group
| * eccb532ada netlink: annotate data races around nlk->portid
| * 0308b7dfea netfilter: nft_set_rbtree: skip elements in transaction from garbage collection
| * 4aacf3d784 netfilter: nft_set_rbtree: Switch to node list walk for overlap detection
| * d4c008f3b7 net: fix UaF in netns ops registration error path
| * 539ca5dcbc netlink: prevent potential spectre v1 gadgets
| * ed173f77fd i2c: designware: use casting of u64 in clock multiplication to avoid overflow
| * 8949ef3a7a i2c: designware: Use DIV_ROUND_CLOSEST() macro
| * 8ebc2efcb6 units: Add SI metric prefix definitions
| * 974aaf1180 units: Add Watt units
| * 76d9ebb7f0 EDAC/qcom: Do not pass llcc_driv_data as edac_device_ctl_info's pvt_info
| * 511f6c7c40 EDAC/device: Respect any driver-supplied workqueue polling value
| * 0cb922cef7 ARM: 9280/1: mm: fix warning on phys_addr_t to void pointer assignment
| * 98d85586aa thermal: intel: int340x: Protect trip temperature from concurrent updates
| * 76c5640737 KVM: x86/vmx: Do not skip segment attributes if unusable bit is set
| * e037baee16 cifs: Fix oops due to uncleared server->smbd_conn in reconnect
| * c42a6e6870 ftrace/scripts: Update the instructions for ftrace-bisect.sh
| * 886aa44923 trace_events_hist: add check for return value of 'create_hist_field'
| * de3930a488 tracing: Make sure trace_printk() can output as soon as it can be used
| * 083b3dda86 module: Don't wait for GOING modules
| * ce3aa76946 scsi: hpsa: Fix allocation size for scsi_host_alloc()
| * 6da7055826 xhci: Set HCD flag to defer primary roothub registration
| * 1d580d3e13 Bluetooth: hci_sync: cancel cmd_timer if hci_open failed
| * b98a8b731b exit: Use READ_ONCE() for all oops/warn limit reads
| * 53f177b504 docs: Fix path paste-o for /sys/kernel/warn_count
| * b0bd5dcfa6 panic: Expose "warn_count" to sysfs
| * 8c99d4c4c1 panic: Introduce warn_limit
| * 55eba18262 panic: Consolidate open-coded panic_on_warn checks
| * 530cdae5c2 exit: Allow oops_limit to be disabled
| * 7cffbcd68f exit: Expose "oops_count" to sysfs
| * de586785b9 exit: Put an upper limit on how often we can oops
| * 191a3b17dd panic: Separate sysctl logic from CONFIG_SMP
| * 1b9a33a94b ia64: make IA64_MCA_RECOVERY bool instead of tristate
| * 6d971830da csky: Fix function name in csky_alignment() and die()
| * 648d8b8c49 h8300: Fix build errors from do_exit() to make_task_dead() transition
| * 63d77c5596 hexagon: Fix function name in die()
| * b2c178f311 objtool: Add a missing comma to avoid string concatenation
| * d9c740c765 exit: Add and use make_task_dead.
| * 715a63588f kasan: no need to unset panic_on_warn in end_report()
| * b857b42a8c ubsan: no need to unset panic_on_warn in ubsan_epilogue()
| * 590ba6fee0 panic: unset panic_on_warn inside panic()
| * e97ec099d7 kernel/panic: move panic sysctls to its own file
| * e6226917f4 sysctl: add a new register_sysctl_init() interface
| * c4097e844a fs: reiserfs: remove useless new_opts in reiserfs_remount
| * 1f6768143b x86: ACPI: cstate: Optimize C3 entry on AMD CPUs
| * 5fb884d748 netfilter: conntrack: do not renew entry stuck in tcp SYN_SENT state
| * a7345145e7 Revert "selftests/bpf: check null propagation only neither reg is PTR_TO_BTF_ID"
| * 20a02bc845 lockref: stop doing cpu_relax in the cmpxchg loop
| * f8ddf7dbf5 platform/x86: asus-nb-wmi: Add alternate mapping for KEY_SCREENLOCK
| * 9968f9a862 platform/x86: touchscreen_dmi: Add info for the CSL Panther Tab HD
| * 52249c2168 scsi: hisi_sas: Set a port invalid only if there are no devices attached when refreshing port id
| * 71bd134c4e KVM: s390: interrupt: use READ_ONCE() before cmpxchg()
| * 300da569a1 spi: spidev: remove debug messages that access spidev->spi without locking
| * a84def9b10 ASoC: fsl-asoc-card: Fix naming of AC'97 CODEC widgets
| * d9a0752a6a ASoC: fsl_ssi: Rename AC'97 streams to avoid collisions with AC'97 CODEC
| * 00f2301611 cpufreq: armada-37xx: stop using 0 as NULL pointer
| * 2ca345d19c s390/debug: add _ASM_S390_ prefix to header guard
| * ae108a5fc9 drm: Add orientation quirk for Lenovo ideapad D330-10IGL
| * 96f4899a38 ASoC: fsl_micfil: Correct the number of steps on SX controls
| * 3b154d5204 kcsan: test: don't put the expect array on the stack
| * b75e9fc402 cpufreq: Add Tegra234 to cpufreq-dt-platdev blocklist
| * 6bc564f3fe scsi: iscsi: Fix multiple iSCSI session unbind events sent to userspace
| * d79e700680 tcp: fix rate_app_limited to default to 1
| * a84240df70 net: dsa: microchip: ksz9477: port map correction in ALU table entry register
| * 704a423c93 driver core: Fix test_async_probe_init saves device in wrong array
| * 216f35db6e w1: fix WARNING after calling w1_process()
| * 8e5be0ae55 w1: fix deadloop in __w1_remove_master_device()
| * ddf16dae65 tcp: avoid the lookup process failing to get sk in ehash table
| * 5f10f7efe0 nvme-pci: fix timeout request state check
| * 98519ed691 dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()
| * 28fc6095da HID: betop: check shape of output reports
| * 16791d5a7a l2tp: prevent lockdep issue in l2tp_tunnel_register()
| * f96b2f6908 net: macb: fix PTP TX timestamp failure due to packet padding
| * 42ecd72f02 dmaengine: Fix double increment of client_count in dma_chan_get()
| * 1e97e2e08e drm/panfrost: fix GENERIC_ATOMIC64 dependency
| * 31f63c62a8 net: mlx5: eliminate anonymous module_init & module_exit
| * 4b3b5cc1a7 usb: gadget: f_fs: Ensure ep0req is dequeued before free_request
| * 6dd9ea0553 usb: gadget: f_fs: Prevent race during ffs_ep0_queue_wait
| * 55be77aa89 HID: revert CHERRY_MOUSE_000C quirk
| * 34f1194993 net: stmmac: fix invalid call to mdiobus_get_phy()
| * 20fd459876 HID: check empty report_list in bigben_probe()
| * 5dc3469a11 HID: check empty report_list in hid_validate_values()
| * 4bc5f1f6bc net: mdio: validate parameter addr in mdiobus_get_phy()
| * 67866b1e0a net: usb: sr9700: Handle negative len
| * 2d77e5c0ad l2tp: close all race conditions in l2tp_tunnel_register()
| * 76c640d6a1 l2tp: convert l2tp_tunnel_list to idr
| * 5b209b8c99 l2tp: Don't sleep and disable BH under writer-side sk_callback_lock
| * e34a965f77 l2tp: Serialize access to sk_user_data with sk_callback_lock
| * c60fe70078 net/sched: sch_taprio: fix possible use-after-free
| * 802fd7623e wifi: rndis_wlan: Prevent buffer overflow in rndis_query_oid
| * 1af8071bd0 gpio: mxc: Always set GPIOs used as interrupt source to INPUT mode
| * 613020d048 net: wan: Add checks for NULL for utdm in undo_uhdlc_init and unmap_si_regs
| * ad1baab3a5 net: nfc: Fix use-after-free in local_cleanup()
| * 2a0156a4aa phy: rockchip-inno-usb2: Fix missing clk_disable_unprepare() in rockchip_usb2phy_power_on()
| * da75dec7c6 bpf: Fix pointer-leak due to insufficient speculative store bypass mitigation
| * f351af45e2 amd-xgbe: Delay AN timeout during KR training
| * a65a8727a2 amd-xgbe: TX Flow Ctrl Registers are h/w ver dependent
| * aa8b584cec ARM: dts: at91: sam9x60: fix the ddr clock for sam9x60
| * fa566549a1 phy: ti: fix Kconfig warning and operator precedence
| * b18490138d PM: AVS: qcom-cpr: Fix an error handling path in cpr_probe()
| * 39ab0fc498 affs: initialize fsdata in affs_truncate()
| * f6fa12fbb1 IB/hfi1: Remove user expected buffer invalidate race
| * 6ce4382bd1 IB/hfi1: Immediately remove invalid memory from hardware
| * 6dd8136fd1 IB/hfi1: Fix expected receive setup error exit issues
| * ee474dd66e IB/hfi1: Reserve user expected TIDs
| * 73e5666bf3 IB/hfi1: Reject a zero-length user expected buffer
| * d66c1d4178 RDMA/core: Fix ib block iterator counter overflow
| * eab7a92037 tomoyo: fix broken dependency on *.conf.default
| * 6813d8ba7d firmware: arm_scmi: Harden shared memory access in fetch_notification
| * e85df1db28 firmware: arm_scmi: Harden shared memory access in fetch_response
| * 329fbd2603 EDAC/highbank: Fix memory leak in highbank_mc_probe()
| * 7b4516ba56 HID: intel_ish-hid: Add check for ishtp_dma_tx_map
| * d775671dcc ARM: imx: add missing of_node_put()
| * 5c1dcedd52 arm64: dts: imx8mm-beacon: Fix ecspi2 pinmux
| * cccb0aea9c ARM: dts: imx6qdl-gw560x: Remove incorrect 'uart-has-rtscts'
| * 6805e392f5 ARM: dts: imx7d-pico: Use 'clock-frequency'
| * 2a3c3a01e2 ARM: dts: imx6ul-pico-dwarf: Use 'clock-frequency'
| * e57ea0c6ba memory: mvebu-devbus: Fix missing clk_disable_unprepare in mvebu_devbus_probe()
| * 53f55d6e07 memory: atmel-sdramc: Fix missing clk_disable_unprepare in atmel_ramc_probe()
| * 935ec78de5 clk: Provide new devm_clk helpers for prepared and enabled clocks
| * 0b8b21c0b3 clk: generalize devm_clk_get() a bit
* | e5ea3c44c8 Revert "xhci: Add update_hub_device override for PCI xHCI hosts"
* | a73c1dbdd5 Revert "xhci: Detect lpm incapable xHC USB3 roothub ports from ACPI tables"
* | fa89210a0e Revert "xhci: Add a flag to disable USB3 lpm on a xhci root port level."
* | 78da590924 Merge 5.10.165 into android12-5.10-lts
|\|
| * 179624a57b Linux 5.10.165
| * e699cce29a io_uring/rw: remove leftover debug statement
| * 3d5f181bda io_uring/rw: ensure kiocb_end_write() is always called
| * c1a279d79e io_uring: fix double poll leak on repolling
| * ddaaadf22b io_uring: Clean up a false-positive warning from GCC 9.3.0
| * 8bc72b4952 mm/khugepaged: fix collapse_pte_mapped_thp() to allow anon_vma
| * 217721b763 Bluetooth: hci_qca: Fixed issue during suspend
| * c208f1e84a Bluetooth: hci_qca: check for SSR triggered flag while suspend
| * ef11bc4bb9 Bluetooth: hci_qca: Wait for SSR completion during suspend
| * c392c350a0 soc: qcom: apr: Make qcom,protection-domain optional again
| * 71e5cd1018 Revert "wifi: mac80211: fix memory leak in ieee80211_if_add()"
| * be1067427a net/mlx5: fix missing mutex_unlock in mlx5_fw_fatal_reporter_err_work()
| * f6c201b438 net/ulp: use consistent error code when blocking ULP
| * fc2491562a io_uring/net: fix fast_iov assignment in io_setup_async_msg()
| * 89a77271d2 io_uring: io_kiocb_update_pos() should not touch file for non -1 offset
| * c6e3c12ff9 tracing: Use alignof__(struct {type b;}) instead of offsetof()
| * 03ba86bb38 x86/fpu: Use _Alignof to avoid undefined behavior in TYPE_ALIGN
| * 2f45b20c39 Revert "drm/amdgpu: make display pinning more flexible (v2)"
| * d6544bccc1 efi: rt-wrapper: Add missing include
| * 4012603cbd arm64: efi: Execute runtime services from a dedicated stack
| * bf1d287c14 drm/amd/display: Fix COLOR_SPACE_YCBCR2020_TYPE matrix
| * 75105d943d drm/amd/display: Calculate output_color_space after pixel encoding adjustment
| * a3ef532483 drm/amd/display: Fix set scaling doesn's work
| * 59590f50ec drm/i915: re-disable RC6p on Sandy Bridge
| * d960fff8e2 mei: me: add meteor lake point M DID
| * ae2a9dcc8c gsmi: fix null-deref in gsmi_get_variable
| * a75e80d118 serial: atmel: fix incorrect baudrate setup
| * 5a7a040795 dmaengine: tegra210-adma: fix global intr clear
| * c9da2cb968 serial: pch_uart: Pass correct sg to dma_unmap_sg()
| * e924f79e67 dt-bindings: phy: g12a-usb3-pcie-phy: fix compatible string documentation
| * 31132df12a dt-bindings: phy: g12a-usb2-phy: fix compatible string documentation
| * a9f2658a01 usb-storage: apply IGNORE_UAS only for HIKSEMI MD202 on RTL9210
| * e92c700591 usb: gadget: f_ncm: fix potential NULL ptr deref in ncm_bitrate()
| * 06600ae7e0 usb: gadget: g_webcam: Send color matching descriptor per frame
| * 6107a8f15c usb: typec: altmodes/displayport: Fix pin assignment calculation
| * d26f38d16f usb: typec: altmodes/displayport: Add pin assignment helper
| * 9c58f1e9e6 usb: host: ehci-fsl: Fix module alias
| * 3dc896db02 USB: serial: cp210x: add SCALANCE LPE-9000 device id
| * 856e4b5e53 USB: gadgetfs: Fix race between mounting and unmounting
| * 894681682d tty: serial: qcom-geni-serial: fix slab-out-of-bounds on RX FIFO buffer
| * c4ab24e333 thunderbolt: Use correct function to calculate maximum USB3 link rate
| * 531268a875 cifs: do not include page data when checking signature
| * 3bd4337485 btrfs: fix race between quota rescan and disable leading to NULL pointer deref
| * 6ee8feca91 mmc: sdhci-esdhc-imx: correct the tuning start tap and step setting
| * 79819909c2 mmc: sunxi-mmc: Fix clock refcount imbalance during unbind
| * 2eed23765b comedi: adv_pci1760: Fix PWM instruction handling
| * 7efeed828c usb: core: hub: disable autosuspend for TI TUSB8041
| * b171d0d2cf misc: fastrpc: Fix use-after-free race condition for maps
| * 193cd85314 misc: fastrpc: Don't remove map on creater_process and device_release
| * e0db5d44bc USB: misc: iowarrior: fix up header size for USB_DEVICE_ID_CODEMERCS_IOW100
| * 20d0dedc7a staging: vchiq_arm: fix enum vchiq_status return types
| * a06e9ec5ab USB: serial: option: add Quectel EM05CN modem
| * 2f44c60bb8 USB: serial: option: add Quectel EM05CN (SG) modem
| * fcd49b2309 USB: serial: option: add Quectel EC200U modem
| * 21c5b61812 USB: serial: option: add Quectel EM05-G (RS) modem
| * 46b898f934 USB: serial: option: add Quectel EM05-G (CS) modem
| * 3774654f7a USB: serial: option: add Quectel EM05-G (GR) modem
| * 9f8e45720e prlimit: do_prlimit needs to have a speculation check
| * 96562a23cf xhci: Detect lpm incapable xHC USB3 roothub ports from ACPI tables
| * 2551f8cbf2 usb: acpi: add helper to check port lpm capability using acpi _DSM
| * 4d70a8a9ab xhci: Add a flag to disable USB3 lpm on a xhci root port level.
| * 83e3a5be74 xhci: Add update_hub_device override for PCI xHCI hosts
| * 081105213f xhci: Fix null pointer dereference when host dies
| * 66fc160085 usb: xhci: Check endpoint is valid before dereferencing it
| * 8ca60d59b9 xhci-pci: set the dma max_seg_size
| * ea2e6286e3 io_uring/rw: defer fsnotify calls to task context
| * e90cfb9699 io_uring: do not recalculate ppos unnecessarily
| * ea528ecac3 io_uring: update kiocb->ki_pos at execution time
| * 076f872314 io_uring: remove duplicated calls to io_kiocb_ppos
| * e9c6556708 io_uring: ensure that cached task references are always put on exit
| * e0140e9da3 io_uring: fix CQ waiting timeout handling
| * de77faee28 io_uring: lock overflowing for IOPOLL
| * 78e8151f04 io_uring: check for valid register opcode earlier
| * aa4c9b3e45 io_uring: fix async accept on O_NONBLOCK sockets
| * 4bc17e6381 io_uring: allow re-poll if we made progress
| * f901b4bfd0 io_uring: support MSG_WAITALL for IORING_OP_SEND(MSG)
| * 96ccba4a1a io_uring: add flag for disabling provided buffer recycling
| * aadd9b0930 io_uring: ensure recv and recvmsg handle MSG_WAITALL correctly
| * abdc16c836 io_uring: improve send/recv error handling
| * 2fd232bbd6 io_uring: don't gate task_work run on TIF_NOTIFY_SIGNAL
| * e84ec6e25d Bluetooth: hci_qca: Fix driver shutdown on closed serdev
| * 1ab0098333 Bluetooth: hci_qca: Wait for timeout during suspend
| * 413638f615 drm/i915/gt: Reset twice
| * cab2123567 ALSA: hda/realtek - Turn on power early
| * 5822baf950 efi: fix userspace infinite retry read efivars after EFI runtime services page fault
| * 712bd74ecc nilfs2: fix general protection fault in nilfs_btree_insert()
| * 03bf73e09a zonefs: Detect append writes at invalid locations
| * 20d0a6d17e Add exception protection processing for vd in axi_chan_handle_err function
| * 187523fa7c wifi: mac80211: sdata can be NULL during AMPDU start
| * 2d1fd99e8e wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices
| * 72009139a6 f2fs: let's avoid panic if extent_tree is not created
| * bf6c7f1801 x86/asm: Fix an assembler warning with current binutils
| * 18bd1c9c02 btrfs: always report error in run_one_delayed_ref()
| * 936b8b15a2 RDMA/srp: Move large values to a new enum for gcc13
| * 0040e48492 net/ethtool/ioctl: return -EOPNOTSUPP if we have no phy stats
| * f7845de23f tools/virtio: initialize spinlocks in vring_test.c
| * 3093027183 selftests/bpf: check null propagation only neither reg is PTR_TO_BTF_ID
| * c7c36bb6ea pNFS/filelayout: Fix coalescing test for single DS
| * 2cbd815970 btrfs: fix trace event name typo for FLUSH_DELAYED_REFS
* | 1e32d1c96a Revert "xhci: Prevent infinite loop in transaction errors recovery for streams"
* | b0d4a37a43 Merge 5.10.164 into android12-5.10-lts
|\|
| * 3a9f1b907b Linux 5.10.164
| * 74985c5757 Revert "usb: ulpi: defer ulpi_register on ulpi_read_id timeout"
| * a88a0d16e1 io_uring/io-wq: only free worker if it was allocated for creation
| * b912ed1363 io_uring/io-wq: free worker if task_work creation is canceled
| * 68bcd06385 drm/virtio: Fix GEM handle creation UAF
| * 4ca71bc0e1 efi: fix NULL-deref in init error path
| * 057f5ddfbc arm64: cmpxchg_double*: hazard against entire exchange variable
| * 9a5fd0844e arm64: atomics: remove LL/SC trampolines
| * 28840e46ea arm64: atomics: format whitespace consistently
| * 5dac4c7212 x86/resctrl: Fix task CLOSID/RMID update race
| * 446c7251f0 x86/resctrl: Use task_curr() instead of task_struct->on_cpu to prevent unnecessary IPI
| * 196c6f0c3e KVM: x86: Do not return host topology information from KVM_GET_SUPPORTED_CPUID
| * 0027164b24 Documentation: KVM: add API issues section
| * caaea2ab6b iommu/mediatek-v1: Fix an error handling path in mtk_iommu_v1_probe()
| * cf38e76241 iommu/mediatek-v1: Add error handle for mtk_iommu_probe
| * 60806adc9b mm: Always release pages to the buddy allocator in memblock_free_late().
| * 092f0c2d1f net/mlx5e: Don't support encap rules with gbp option
| * b3d47227f0 net/mlx5: Fix ptp max frequency adjustment range
| * 453277feb4 net/sched: act_mpls: Fix warning during failed attribute validation
| * 0ca78c9965 nfc: pn533: Wait for out_urb's completion in pn533_usb_send_frame()
| * 92b30a27e4 hvc/xen: lock console list traversal
| * 14e72a56e1 octeontx2-af: Fix LMAC config in cgx_lmac_rx_tx_enable
| * 8e2bfcfaab octeontx2-af: Map NIX block from CGX connection
| * d9be5b57ab octeontx2-af: Update get/set resource count functions
| * 0d0675bc33 tipc: fix unexpected link reset due to discovery messages
| * d83cac6c00 ASoC: wm8904: fix wrong outputs volume after power reactivation
| * d4aa749e04 regulator: da9211: Use irq handler when ready
| * 3ca8ef4d91 EDAC/device: Fix period calculation in edac_device_reset_delay_period()
| * 28b9a0e216 x86/boot: Avoid using Intel mnemonics in AT&T syntax asm
| * 8cbeb60320 powerpc/imc-pmu: Fix use of mutex in IRQs disabled section
| * 4e6a70fd84 netfilter: ipset: Fix overflow before widen in the bitmap_ip_create() function.
| * a3a1114aa6 xfrm: fix rcu lock in xfrm_notify_userpolicy()
| * 091f85db4c ext4: fix uninititialized value in 'ext4_evict_inode'
| * 98407a4ae3 usb: ulpi: defer ulpi_register on ulpi_read_id timeout
| * 3d13818a99 xhci: Prevent infinite loop in transaction errors recovery for streams
| * 2f90fcedc5 xhci: move and rename xhci_cleanup_halted_endpoint()
| * cad965cedb xhci: store TD status in the td struct instead of passing it along
| * 9b63a80c45 xhci: move xhci_td_cleanup so it can be called by more functions
| * 44c635c60f xhci: Add xhci_reset_halted_ep() helper function
| * 10287d18f5 xhci: adjust parameters passed to cleanup_halted_endpoint()
| * aaaa7cc4ab xhci: get isochronous ring directly from endpoint structure
| * a81ace0656 xhci: Avoid parsing transfer events several times
| * ba20d6056b clk: imx: imx8mp: add shared clk gate for usb suspend clk
| * 2b331d2137 dt-bindings: clocks: imx8mp: Add ID for usb suspend clock
| * cb769960ef clk: imx8mp: add clkout1/2 support
| * 85eaaa17c0 clk: imx8mp: Add DISP2 pixel clock
| * 6b21077146 iommu/amd: Fix ill-formed ivrs_ioapic, ivrs_hpet and ivrs_acpihid options
| * 5badda810f iommu/amd: Add PCI segment support for ivrs_[ioapic/hpet/acpihid] commands
| * ab9bb65b85 bus: mhi: host: Fix race between channel preparation and M0 event
| * 6c9e2c11c3 ipv6: raw: Deduct extension header length in rawv6_push_pending_frames
| * 112df4cd2b ixgbe: fix pci device refcount leak
| * f401062d8d platform/x86: sony-laptop: Don't turn off 0x153 keyboard backlight during probe
| * 785607e5e6 drm/msm/dp: do not complete dp_aux_cmd_fifo_tx() if irq is not for aux transfer
| * 8c71777b6a drm/msm/adreno: Make adreno quirks not overwrite each other
| * afb6063aa8 cifs: Fix uninitialized memory read for smb311 posix symlink create
| * 51dbedee2f s390/percpu: add READ_ONCE() to arch_this_cpu_to_op_simple()
| * bddb355267 s390/cpum_sf: add READ_ONCE() semantics to compare and swap loops
| * 2adc64f3e6 ASoC: qcom: lpass-cpu: Fix fallback SD line index handling
| * 5ee3083307 s390/kexec: fix ipl report address for kdump
| * d1725dbf23 perf auxtrace: Fix address filter duplicate symbol selection
| * eaabceae1b docs: Fix the docs build with Sphinx 6.0
| * 38c4a17c6b efi: tpm: Avoid READ_ONCE() for accessing the event log
| * c47883105c KVM: arm64: Fix S1PTW handling on RO memslots
| * 443b390f2c ALSA: hda/realtek: Enable mute/micmute LEDs on HP Spectre x360 13-aw0xxx
| * 550efeff98 netfilter: nft_payload: incorrect arithmetics when fetching VLAN header bits
* | 2702f09758 Revert "ASoC/SoundWire: dai: expand 'stream' concept beyond SoundWire"
* | 5417a09eec Revert "ASoC: Intel/SOF: use set_stream() instead of set_tdm_slots() for HDAudio"
* | c35badfe0d Revert "net: add atomic_long_t to net_device_stats fields"
* | f1242cd146 Revert "PM/devfreq: governor: Add a private governor_data for governor"
* | 4922049993 Merge 5.10.163 into android12-5.10-lts
|\|
| * 19ff2d645f Linux 5.10.163
| * de4a20e148 ALSA: hda - Enable headset mic on another Dell laptop with ALC3254
| * 0ad275c139 ALSA: hda/hdmi: Add a HP device 0x8715 to force connect list
| * df02234e6b ALSA: pcm: Move rwsem lock inside snd_ctl_elem_read to prevent UAF
| * f8ed0a93b5 net/ulp: prevent ULP without clone op from entering the LISTEN status
| * 9f7bc28a6b net: sched: disallow noqueue for qdisc classes
| * 6eb02c596e mptcp: use proper req destructor for IPv6
| * f4c7afa951 mptcp: dedicated request sock for subflow in v6
| * 31472f94c6 mptcp: remove MPTCP 'ifdef' in TCP SYN cookies
| * 5aa15a8400 mptcp: mark ops structures as ro_after_init
| * f5ef26276b serial: fixup backport of "serial: Deassert Transmit Enable on probe in driver-specific way"
| * 2ecf0819e4 fsl_lpuart: Don't enable interrupts too early
| * 23ad034760 ext4: don't set up encryption key during jbd2 transaction
| * d9ff5ad203 ext4: disable fast-commit of encrypted dir operations
| * 5b700b9c04 parisc: Align parisc MADV_XXX constants with all other architectures
| * 07b3672c40 io_uring: Fix unsigned 'res' comparison with zero in io_fixup_rw_res()
| * b57d7b1dcd efi: random: combine bootloader provided RNG seed with RNG protocol output
| * da20f56a35 mbcache: Avoid nesting of cache->c_list_lock under bit locks
| * be01f35efa hfs/hfsplus: avoid WARN_ON() for sanity check, use proper error handling
| * 1f881d9201 hfs/hfsplus: use WARN_ON for sanity check
| * 434909edca selftests: set the BUILD variable to absolute path
| * a41d63f204 ext4: don't allow journal inode to have encrypt flag
| * af90f8b36d drm/i915/gvt: fix vgpu debugfs clean in remove
| * bb7c7b2c89 drm/i915/gvt: fix gvt debugfs destroy
| * bc847857fb riscv: uaccess: fix type of 0 variable on error in get_user()
| * f64e56fb28 fbdev: matroxfb: G200eW: Increase max memory from 1 MB to 16 MB
| * d0c46b55d6 nfsd: fix handling of readdir in v4root vs. mount upcall timeout
| * 67e39c4f4c x86/bugs: Flush IBP in ib_prctl_set()
| * f13301a69a nvme: fix multipath crash caused by flush request when blktrace is enabled
| * 3f257a98e5 ASoC: Intel: bytcr_rt5640: Add quirk for the Advantech MICA-071 tablet
| * 6df376e245 udf: Fix extension of the last extent in the file
| * 84b2cc7b36 caif: fix memory leak in cfctrl_linkup_request()
| * e5a0583744 drm/i915: unpin on error in intel_vgpu_shadow_mm_pin()
| * 232ef345e5 usb: rndis_host: Secure rndis_query check against int overflow
| * 2a9ee7c24b drivers/net/bonding/bond_3ad: return when there's no aggregator
| * bc6a0993bf perf tools: Fix resources leak in perf_data__open_dir()
| * ee756980e4 netfilter: ipset: Rework long task execution when adding/deleting entries
| * ba5d279097 netfilter: ipset: fix hash:net,port,net hang with /0 subnet
| * b2c917e510 net: sched: cbq: dont intepret cls results when asked to drop
| * 5f65f48516 net: sched: atm: dont intepret cls results when asked to drop
| * f4a2ad1002 gpio: sifive: Fix refcount leak in sifive_gpio_probe
| * 7ec369e215 ceph: switch to vfs_inode_has_locks() to fix file lock bug
| * 407710427d filelock: new helper: vfs_inode_has_locks
| * 9f0ff5de3e drm/meson: Reduce the FIFO lines held when AFBC is not used
| * ae2639cd2c RDMA/mlx5: Fix validation of max_rd_atomic caps for DC
| * 106d0d33c9 net: phy: xgmiitorgmii: Fix refcount leak in xgmiitorgmii_probe
| * 398e14bb73 net: amd-xgbe: add missed tasklet_kill
| * e3d90ca906 net/mlx5e: Fix hw mtu initializing at XDP SQ allocation
| * 6d655a9d82 net/mlx5e: IPoIB, Don't allow CQE compression to be turned on by default
| * 670b206173 net/mlx5: Avoid recovery in probe flows
| * 66b92b80c9 net/mlx5: Add forgotten cleanup calls into mlx5_init_once() error path
| * b6c74d2376 vhost: fix range used in translate_desc()
| * 264fb6dcbf vringh: fix range used in iotlb_translate()
| * eabb3ceb04 vhost/vsock: Fix error handling in vhost_vsock_init()
| * e0f5c962c0 nfc: Fix potential resource leaks
| * 513787ff9a qlcnic: prevent ->dcb use-after-free on qlcnic_dcb_enable() failure
| * b314f6c351 net: sched: fix memory leak in tcindex_set_parms
| * 4226ce95a9 net: hns3: add interrupts re-initialization while doing VF FLR
| * 998ebbdc3b nfsd: shut down the NFSv4 state objects before the filecache
| * 69d896b609 veth: Fix race with AF_XDP exposing old or uninitialized descriptors
| * 5f41212dc2 vmxnet3: correctly report csum_level for encapsulated packet
| * 0b70f6ea4d drm/panfrost: Fix GEM handle creation ref-counting
| * e68e088d0d bpf: pull before calling skb_postpull_rcsum()
| * cb0d627bc7 SUNRPC: ensure the matching upcall is in-flight upon downcall
| * 1be16a0c2f ext4: fix deadlock due to mbcache entry corruption
| * 0da99012d3 mbcache: automatically delete entries from cache on freeing
| * 1a56cd972c ext4: fix race when reusing xattr blocks
| * 4cc218e217 ext4: unindent codeblock in ext4_xattr_block_set()
| * 0e6fbc566f ext4: remove EA inode entry from mbcache on inode eviction
| * 27c0867397 mbcache: add functions to delete entry if unused
| * fb59d12ae7 mbcache: don't reclaim used entries
| * 4c363e2961 ext4: use kmemdup() to replace kmalloc + memcpy
| * b8b7922374 ext4: fix leaking uninitialized memory in fast-commit journal
| * a5584ba9b3 ext4: fix various seppling typos
| * adfefe804b ext4: simplify ext4 error translation
| * 95eaa8a953 ext4: move functions in super.c
| * 769469f8f1 fs: ext4: initialize fsdata in pagecache_write()
| * b33e42d65e ext4: use memcpy_to_page() in pagecache_write()
| * 60d4383c1b mm/highmem: Lift memcpy_[to|from]_page to core
| * f86d3338c8 ext4: correct inconsistent error msg in nojournal mode
| * 99017eb3de ext4: goto right label 'failed_mount3a'
| * 56d87959c6 riscv: stacktrace: Fixup ftrace_graph_ret_addr retp argument
| * ecb8e8b2e5 riscv/stacktrace: Fix stack output without ra on the stack top
| * b5c75efd0a ravb: Fix "failed to switch device to config mode" message during unbind
| * 5451efb2ca staging: media: tegra-video: fix device_node use after free
| * f899baf6cb x86/kprobes: Fix optprobe optimization check with CONFIG_RETHUNK
| * 5d112deb2a x86/kprobes: Convert to insn_decode()
| * a1766efc5b perf probe: Fix to get the DW_AT_decl_file and DW_AT_call_file as unsinged data
| * b5d0f7c240 perf probe: Use dwarf_attr_integrate as generic DWARF attr accessor
| * c0a3d21584 media: s5p-mfc: Fix in register read and write for H264
| * 8ff64edf9d media: s5p-mfc: Clear workbit to handle error condition
| * dcd1a4ade5 media: s5p-mfc: Fix to handle reference queue during finishing
| * 97e7896000 x86/MCE/AMD: Clear DFR errors found in THR handler
| * ec75bc4368 x86/mce: Get rid of msr_ops
| * 58de7a95f0 btrfs: replace strncpy() with strscpy()
| * 7a04f85009 perf/x86/intel/uncore: Clear attr_update properly
| * 53d24a9592 perf/x86/intel/uncore: Generalize I/O stacks to PMON mapping procedure
| * 9620f8a5c7 ARM: renumber bits related to _TIF_WORK_MASK
| * 6302709784 drm/amdgpu: make display pinning more flexible (v2)
| * dfc01905b8 drm/amdgpu: handle polaris10/11 overlap asics (v2)
| * 30e95fdc96 ext4: allocate extended attribute value in vmalloc area
| * 8d3e87d43c ext4: avoid unaccounted block allocation when expanding inode
| * 15d0cf84df ext4: initialize quota before expanding inode in setproject ioctl
| * 9882601ee6 ext4: fix inode leak in ext4_xattr_inode_create() on an error path
| * 407f47728c ext4: avoid BUG_ON when creating xattrs
| * 00092b218d ext4: fix error code return to user-space in ext4_get_branch()
| * f06c980287 ext4: fix corruption when online resizing a 1K bigalloc fs
| * 9404839e0c ext4: fix delayed allocation bug in ext4_clu_mapped for bigalloc + inline
| * 84a2f2ed49 ext4: init quota for 'old.inode' in 'ext4_rename'
| * 71e99ec131 ext4: fix bug_on in __es_tree_search caused by bad boot loader inode
| * 9020f56a3c ext4: check and assert if marking an no_delete evicting inode dirty
| * 86c2a2ec4b ext4: fix reserved cluster accounting in __es_remove_extent()
| * 98004f926d ext4: fix bug_on in __es_tree_search caused by bad quota inode
| * 20af66617e ext4: add helper to check quota inums
| * c0a738875c ext4: add EXT4_IGET_BAD flag to prevent unexpected bad inode
| * f9cd698080 ext4: fix undefined behavior in bit shift for ext4_check_flag_values
| * 7223d5e75f ext4: fix use-after-free in ext4_orphan_cleanup
| * d6d18d6e2d ext4: add inode table check in __ext4_get_inode_loc to aovid possible infinite loop
| * bdc698ce91 ext4: silence the warning when evicting inode with dioread_nolock
| * 68af1a4842 drm/ingenic: Fix missing platform_driver_unregister() call in ingenic_drm_init()
| * bf83a303f2 drm/i915/dsi: fix VBT send packet port selection for dual link DSI
| * 439cbbc151 drm/vmwgfx: Validate the box size for the snooped cursor
| * 0a0662d597 drm/connector: send hotplug uevent on connector cleanup
| * 21a773ec89 device_cgroup: Roll back to original exceptions after copy failure
| * 3505c187b8 parisc: led: Fix potential null-ptr-deref in start_task()
| * 2c7c487cd8 remoteproc: core: Do pm_relax when in RPROC_OFFLINE state
| * e291dea722 iommu/amd: Fix ivrs_acpihid cmdline parsing code
| * 28e71fd8d5 driver core: Fix bus_type.match() error handling in __driver_attach()
| * 772dbbfc20 crypto: n2 - add missing hash statesize
| * 7c44205748 PCI/sysfs: Fix double free in error path
| * 99ef6cc791 PCI: Fix pci_device_is_present() for VFs by checking PF
| * f29d127b37 ipmi: fix use after free in _ipmi_destroy_user()
| * bfe1e039a0 ima: Fix a potential NULL pointer access in ima_restore_measurement_list
| * 62307558e7 mtd: spi-nor: Check for zero erase size in spi_nor_find_best_erase_type()
| * 4e17819cb3 ipmi: fix long wait in unload when IPMI disconnect
| * 24bc27ea4e ASoC: jz4740-i2s: Handle independent FIFO flush bits
| * 652f1d66a8 wifi: wilc1000: sdio: fix module autoloading
| * d9f6614a73 efi: Add iMac Pro 2017 to uefi skip cert quirk
| * ffcf71676d md/bitmap: Fix bitmap chunk size overflow issues
| * e94443252b rtc: ds1347: fix value written to century register
| * 6155aed476 cifs: fix missing display of three mount options
| * 8c82733e24 cifs: fix confusing debug message
| * 3df07728ab media: dvb-core: Fix UAF due to refcount races at releasing
| * 7dd5a68cdb media: dvb-core: Fix double free in dvb_register_device()
| * 1032520b21 ARM: 9256/1: NWFPE: avoid compiler-generated __aeabi_uldivmod
| * 1306614412 staging: media: tegra-video: fix chan->mipi value on error
| * 52c0622e53 tracing: Fix infinite loop in tracing_read_pipe on overflowed print_trace_line
| * b838b1b9ca tracing/hist: Fix wrong return value in parse_action_params()
| * ff3dd2c1be x86/kprobes: Fix kprobes instruction boudary check with CONFIG_RETHUNK
| * 362495bf45 ftrace/x86: Add back ftrace_expected for ftrace bug reports
| * b677629cae x86/microcode/intel: Do not retry microcode reloading on the APs
| * 43dd254853 KVM: nVMX: Inject #GP, not #UD, if "generic" VMXON CR0/CR4 check fails
| * e61eacf993 perf/core: Call LSM hook after copying perf_event_attr
| * 0cb31bd883 tracing/hist: Fix out-of-bound write on 'action_data.var_ref_idx'
| * 18a489a3fd dm cache: set needs_check flag after aborting metadata
| * 2b17026685 dm cache: Fix UAF in destroy()
| * 342cfd8426 dm clone: Fix UAF in clone_dtr()
| * a506b5c927 dm integrity: Fix UAF in dm_integrity_dtr()
| * 34fe9c2251 dm thin: Fix UAF in run_timer_softirq()
| * c84d1ca228 dm thin: resume even if in FAIL mode
| * 94f01ecc2a dm thin: Use last transaction's pmd->root when commit failed
| * 7e37578069 dm thin: Fix ABBA deadlock between shrink_slab and dm_pool_abort_metadata
| * b45e77b792 dm cache: Fix ABBA deadlock between shrink_slab and dm_cache_metadata_abort
| * d9fa243ab2 ALSA: hda/realtek: Apply dual codec fixup for Dell Latitude laptops
| * 2437b06223 ALSA: patch_realtek: Fix Dell Inspiron Plus 16
| * e379b88a8f cpufreq: Init completion before kobject_init_and_add()
| * cea018aaf7 PM/devfreq: governor: Add a private governor_data for governor
| * d1d73c3034 selftests: Use optional USERCFLAGS and USERLDFLAGS
| * 12576d2ebf arm64: dts: qcom: sdm850-lenovo-yoga-c630: correct I2C12 pins drive strength
| * 8546f11c42 ARM: ux500: do not directly dereference __iomem
| * 0061ab5153 btrfs: fix resolving backrefs for inline extent followed by prealloc
| * c0aa6e6ab0 mmc: sdhci-sprd: Disable CLK_AUTO when the clock is less than 400K
| * e918762f8a arm64: dts: qcom: sdm845-db845c: correct SPI2 pins drive strength
| * c023597bae jbd2: use the correct print format
| * 8c444b3061 ktest.pl minconfig: Unset configs instead of just removing them
| * 5148dfceab kest.pl: Fix grub2 menu handling for rebooting
| * 780297af3c soc: qcom: Select REMAP_MMIO for LLCC driver
| * d5db9aaf1b media: stv0288: use explicitly signed char
| * 25dbd87379 net/af_packet: make sure to pull mac header
| * c2137d565c net/af_packet: add VLAN support for AF_PACKET SOCK_RAW GSO
| * 7c15d7ecce rcu: Prevent lockdep-RCU splats on lock acquisition/release
| * 4c57f612f4 torture: Exclude "NOHZ tick-stop error" from fatal errors
| * 289f512d08 wifi: rtlwifi: 8192de: correct checking of IQK reload
| * 0f6d6974b0 wifi: rtlwifi: remove always-true condition pointed out by GCC 12
| * 40b844796b net/mlx5e: Fix nullptr in mlx5e_tc_add_fdb_flow()
| * 8b20aab8cf ASoC/SoundWire: dai: expand 'stream' concept beyond SoundWire
| * 185c141946 ASoC: Intel/SOF: use set_stream() instead of set_tdm_slots() for HDAudio
| * 7b3631a2e1 kcsan: Instrument memcpy/memset/memmove with newer Clang
| * 2cd6026e25 SUNRPC: Don't leak netobj memory when gss_read_proxy_verf() fails
| * 3b6c822238 tpm: tpm_tis: Add the missed acpi_put_table() to fix memory leak
| * 0bd9b4be72 tpm: tpm_crb: Add the missed acpi_put_table() to fix memory leak
| * 8ddc48068a tpm: acpi: Call acpi_put_table() to fix memory leak
| * b51d5fed9f mmc: vub300: fix warning - do not call blocking ops when !TASK_RUNNING
| * 252a720882 f2fs: should put a page when checking the summary info
| * 882734bbc5 mm, compaction: fix fast_isolate_around() to stay within boundaries
| * ae77930277 md: fix a crash in mempool_free
| * b591b2919d pnode: terminate at peers of source
| * 66f359ad66 ALSA: line6: fix stack overflow in line6_midi_transmit
| * 5e79f77ea4 ALSA: line6: correct midi status byte when receiving data from podxt
| * 56abf8046b ovl: Use ovl mounter's fsuid and fsgid in ovl_link()
| * c3e8bbcbaa binfmt: Fix error return code in load_elf_fdpic_binary()
| * 12407462d3 hfsplus: fix bug causing custom uid and gid being unable to be assigned with mount
| * 44cf50587e pstore/zone: Use GFP_ATOMIC to allocate zone buffer
| * 0d992c044c HID: plantronics: Additional PIDs for double volume key presses quirk
| * eaf0b78226 HID: multitouch: fix Asus ExpertBook P2 P2451FA trackpoint
| * 6f7e2fcab7 powerpc/rtas: avoid scheduling in rtas_os_term()
| * f2167f10fc powerpc/rtas: avoid device tree lookups in rtas_os_term()
| * 0af0e115ff objtool: Fix SEGFAULT
| * 57ae492f62 nvmet: don't defer passthrough commands with trivial effects to the workqueue
| * 4b3282a977 nvme: fix the NVME_CMD_EFFECTS_CSE_MASK definition
| * ab711f3eda ata: ahci: Fix PCS quirk application for suspend
| * cc512539c4 nvme-pci: fix page size checks
| * dfb6d54893 nvme-pci: fix mempool alloc size
| * f5d8738fbe nvme-pci: fix doorbell buffer value endianness
| * fe6ea044c4 cifs: fix oops during encryption
| * f9089b9554 usb: dwc3: qcom: Fix memory leak in dwc3_qcom_interconnect_init
| * ce2462bcf3 pwm: tegra: Fix 32 bit build
| * a8be7c2787 media: dvbdev: fix refcnt bug
| * 153319671a media: dvbdev: fix build warning due to comments
| * 740c537f52 ovl: fix use inode directly in rcu-walk mode
| * f24474d12e gcov: add support for checksum field
| * 36be7afca1 regulator: core: fix deadlock on regulator enable
| * e12f4c3212 iio: adc128s052: add proper .data members in adc128_of_match table
| * 9f604702b7 iio: adc: ad_sigma_delta: do not use internal iio_dev lock
| * 582f5fc2c5 reiserfs: Add missing calls to reiserfs_security_free()
| * 08371068ff HID: mcp2221: don't connect hidraw
| * 7a203471b9 HID: wacom: Ensure bootloader PID is usable in hidraw mode
| * 723ffde78a usb: dwc3: core: defer probe on ulpi_read_id timeout
| * d17c82aad6 usb: dwc3: Fix race between dwc3_set_mode and __dwc3_set_mode
| * 2b725b6fbb ALSA: hda/hdmi: Add HP Device 0x8711 to force connect list
| * c863b67350 ALSA: hda/realtek: Add quirk for Lenovo TianYi510Pro-14IOB
| * d3767082eb ALSA: usb-audio: add the quirk for KT0206 device
| * 7691fa4102 ima: Simplify ima_lsm_copy_rule
| * 1d8dcc3dad pstore: Make sure CONFIG_PSTORE_PMSG selects CONFIG_RT_MUTEXES
| * 07b0ce902e afs: Fix lost servers_outstanding count
| * 1080729b9a perf debug: Set debug_peo_args and redirect_to_stderr variable to correct values in perf_quiet_option()
| * 1c7b03d00c pstore: Switch pmsg_lock to an rt_mutex to avoid priority inversion
| * c3607ed7ed LoadPin: Ignore the "contents" argument of the LSM hooks
| * 4138e1b775 ASoC: rt5670: Remove unbalanced pm_runtime_put()
| * fd49dc17c3 ASoC: rockchip: spdif: Add missing clk_disable_unprepare() in rk_spdif_runtime_resume()
| * c0ae46693b ASoC: wm8994: Fix potential deadlock
| * e4a8573b04 ASoC: rockchip: pdm: Add missing clk_disable_unprepare() in rockchip_pdm_runtime_resume()
| * 06c9d468c0 ASoC: audio-graph-card: fix refcount leak of cpu_ep in __graph_for_each_link()
| * 812a18e48e ASoC: mediatek: mt8173-rt5650-rt5514: fix refcount leak in mt8173_rt5650_rt5514_dev_probe()
| * c2eb1a3877 ASoC: Intel: Skylake: Fix driver hang during shutdown
| * 72c0e552bc ALSA: hda: add snd_hdac_stop_streams() helper
| * d3a8925d6c ALSA/ASoC: hda: move/rename snd_hdac_ext_stop_streams to hdac_stream.c
| * 2727dbfe8d hwmon: (jc42) Fix missing unlock on error in jc42_write()
| * a076490b02 orangefs: Fix kmemleak in orangefs_{kernel,client}_debug_init()
| * b8affa0c64 orangefs: Fix kmemleak in orangefs_prepare_debugfs_help_string()
| * 6e3c4d3fa5 drm/sti: Fix return type of sti_{dvo,hda,hdmi}_connector_mode_valid()
| * f3d3f3564e drm/fsl-dcu: Fix return type of fsl_dcu_drm_connector_mode_valid()
| * dcd28191be hugetlbfs: fix null-ptr-deref in hugetlbfs_parse_param()
| * efd025f32f clk: st: Fix memory leak in st_of_quadfs_setup()
| * 1c6447d0fc media: si470x: Fix use-after-free in si470x_int_in_callback()
| * a63a1ae134 mmc: renesas_sdhi: better reset from HS400 mode
| * 58e21146c0 mmc: f-sdh30: Add quirks for broken timeout clock capability
| * 4b737246ff regulator: core: fix use_count leakage when handling boot-on
| * 17c2eb9ce8 libbpf: Avoid enum forward-declarations in public API in C++ mode
| * e8022da1fa blk-mq: fix possible memleak when register 'hctx' failed
| * 7d7ab25ead media: dvb-usb: fix memory leak in dvb_usb_adapter_init()
| * 2abd734338 media: dvbdev: adopts refcnt to avoid UAF
| * b42580c8d8 media: dvb-frontends: fix leak of memory fw
| * dd1e1bf916 ethtool: avoiding integer overflow in ethtool_phys_id()
| * 329a766355 bpf: Prevent decl_tag from being referenced in func_proto arg
| * 148dcbd3af ppp: associate skb with a device at tx
| * 755eb08792 mrp: introduce active flags to prevent UAF when applicant uninit
| * 037db10e3f net: add atomic_long_t to net_device_stats fields
| * e2d60023af drm/amd/display: fix array index out of bound error in bios parser
| * 10d713532f md/raid1: stop mdx_raid1 thread when raid1 array run failed
| * 100caacfa0 drivers/md/md-bitmap: check the return value of md_bitmap_get_counter()
| * 7d86851c30 drm/sti: Use drm_mode_copy()
| * dd31d73040 drm/rockchip: Use drm_mode_copy()
| * 4f238212c7 drm/msm: Use drm_mode_copy()
| * ebc3c77785 s390/lcs: Fix return type of lcs_start_xmit()
| * 3ac0217ca9 s390/netiucv: Fix return type of netiucv_tx()
| * eeb75f80bc s390/ctcm: Fix return type of ctc{mp,}m_tx()
| * 9606bbc271 drm/amdgpu: Fix type of second parameter in odn_edit_dpm_table() callback
| * a42a23bdae drm/amdgpu: Fix type of second parameter in trans_msg() callback
| * 3cb18dea11 igb: Do not free q_vector unless new one was allocated
| * 87792567d9 wifi: brcmfmac: Fix potential shift-out-of-bounds in brcmf_fw_alloc_request()
| * e7aa8a4709 hamradio: baycom_epp: Fix return type of baycom_send_packet()
| * 5b0b6553bf net: ethernet: ti: Fix return type of netcp_ndo_start_xmit()
| * 6d935a0265 bpf: make sure skb->len != 0 when redirecting to a tunneling device
| * ebc2fb6afc qed (gcc13): use u16 for fid to be big enough
| * 648cdb8bf3 drm/amd/display: prevent memory leak
| * c69bc8e34d ipmi: fix memleak when unload ipmi driver
| * be4cd23cd3 ASoC: codecs: rt298: Add quirk for KBL-R RVP platform
| * 8af5249271 wifi: ar5523: Fix use-after-free on ar5523_cmd() timed out
| * 1824ccabee wifi: ath9k: verify the expected usb_endpoints are present
| * 2e8bb402b0 brcmfmac: return error when getting invalid max_flowrings from dongle
| * 6cd4865bb4 drm/etnaviv: add missing quirks for GC300
| * 4fd3a11804 hfs: fix OOB Read in __hfs_brec_find
| * 6edd0cdee5 acct: fix potential integer overflow in encode_comp_t()
| * ec93b5430e nilfs2: fix shift-out-of-bounds due to too large exponent of block size
| * d464b035c0 nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
| * b0b83d3f3f ACPICA: Fix error code path in acpi_ds_call_control_method()
| * 911999b193 fs: jfs: fix shift-out-of-bounds in dbDiscardAG
| * 40dba68d41 udf: Avoid double brelse() in udf_rename()
| * 3e997e4ce8 fs: jfs: fix shift-out-of-bounds in dbAllocAG
| * dcbc51d31d binfmt_misc: fix shift-out-of-bounds in check_special_flags
| * 22c1d8f24c x86/hyperv: Remove unregister syscore call from Hyper-V cleanup
| * 9b267051c8 video: hyperv_fb: Avoid taking busy spinlock on panic path
| * 0461a8c278 arm64: make is_ttbrX_addr() noinstr-safe
| * 5a52380b81 rcu: Fix __this_cpu_read() lockdep warning in rcu_force_quiescent_state()
| * 9062493811 net: stream: purge sk_error_queue in sk_stream_kill_queues()
| * 7c3a20bfd2 myri10ge: Fix an error handling path in myri10ge_probe()
| * 3c97373690 rxrpc: Fix missing unlock in rxrpc_do_sendmsg()
| * 5c544c7c6a net_sched: reject TCF_EM_SIMPLE case for complex ematch module
| * a39b4de080 mailbox: zynq-ipi: fix error handling while device_register() fails
| * 821be5a5ab skbuff: Account for tail adjustment during pull operations
| * 6736b61ecf openvswitch: Fix flow lookup to use unmasked key
| * ea14220031 selftests: devlink: fix the fd redirect in dummy_reporter_test
| * 57ce1a36c0 rtc: mxc_v2: Add missing clk_disable_unprepare()
| * 1e2a27dab1 igc: Set Qbv start_time and end_time to end_time if not being configured in GCL
| * edb995b5ec igc: Lift TAPRIO schedule restriction
| * b48d3db891 igc: recalculate Qbv end_time by considering cycle time
| * 3f2a944c23 igc: Add checking for basetime less than zero
| * a0e2295c2a igc: Use strict cycles for Qbv scheduling
| * 413fe82420 igc: Enhance Qbv scheduling by using first flag bit
| * a8f9698a05 net: add a helper to avoid issues with HW TX timestamping and SO_TXTIME
| * ae5d96bae3 net: igc: use skb_csum_is_sctp instead of protocol check
| * 4794d07fe6 net: add inline function skb_csum_is_sctp
| * 67349025f0 net: switch to storing KCOV handle directly in sk_buff
| * 3d5f83a62e r6040: Fix kmemleak in probe and remove
| * aea9e64dec nfc: pn533: Clear nfc_target before being used
| * 6939f84e53 mISDN: hfcmulti: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
| * b58c871966 mISDN: hfcpci: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
| * 30e0a066b6 mISDN: hfcsusb: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
| * 2a930b75bf net: macsec: fix net device access prior to holding a lock
| * c1207219a4 nfsd: under NFSv4.1, fix double svc_xprt_put on rpc_create failure
| * 452e85cc3e NFSD: Remove spurious cb_setup_err tracepoint
| * 09c007e239 rtc: pcf85063: fix pcf85063_clkout_control
| * e9453c13ae rtc: pic32: Move devm_rtc_allocate_device earlier in pic32_rtc_probe()
| * 34836c5923 rtc: st-lpc: Add missing clk_disable_unprepare in st_rtc_probe()
| * 8e65e70764 netfilter: flowtable: really fix NAT IPv6 offload
| * 1f5571cb1d powerpc/pseries/eeh: use correct API for error log size
| * 9dc96fee26 powerpc/eeh: Drop redundant spinlock initialization
| * 12654b7d8d remoteproc: qcom_q6v5_pas: Fix missing of_node_put() in adsp_alloc_memory_region()
| * be5816b27b remoteproc: qcom_q6v5_pas: detach power domains on remove
| * 582dd58a18 remoteproc: qcom_q6v5_pas: disable wakeup on probe fail or remove
| * e4539eb5c0 remoteproc: sysmon: fix memory leak in qcom_add_sysmon_subdev()
| * 6a65f4644b pwm: sifive: Call pwm_sifive_update_clock() while mutex is held
| * 57f215a231 iommu/sun50i: Remove IOMMU_DOMAIN_IDENTITY
| * dc02d8e59d selftests/powerpc: Fix resource leaks
| * 464506de9b powerpc/hv-gpci: Fix hv_gpci event list
| * 0abfe735be powerpc/83xx/mpc832x_rdb: call platform_device_put() in error case in of_fsl_spi_probe()
| * da1a33795d powerpc/perf: callchain validate kernel stack pointer bounds
| * 8d2ff5b3e2 kbuild: refactor single builds of *.ko
| * e3bdda22b4 kbuild: unify modules(_install) for in-tree and external modules
| * e215512959 kbuild: remove unneeded mkdir for external modules_install
| * 195cb98861 powerpc/xive: add missing iounmap() in error path in xive_spapr_populate_irq_data()
| * f0bd6504e5 powerpc/xmon: Fix -Wswitch-unreachable warning in bpt_cmds
| * 76957b6aed powerpc/xmon: Enable breakpoints on 8xx
| * 81c8bbf5b2 cxl: Fix refcount leak in cxl_calc_capp_routing
| * 40b4be399e powerpc/52xx: Fix a resource leak in an error handling path
| * 7fded04fbb macintosh/macio-adb: check the return value of ioremap()
| * 2ac0a7059b macintosh: fix possible memory leak in macio_add_one_device()
| * 0d240ac0e4 iommu/fsl_pamu: Fix resource leak in fsl_pamu_probe()
| * 03f51c7299 iommu/amd: Fix pci device refcount leak in ppr_notifier()
| * 3929576f10 rtc: pcf85063: Fix reading alarm
| * aaed333e22 rtc: snvs: Allow a time difference on clock register read
| * f0c36ea424 rtc: cmos: Disable ACPI RTC event on removal
| * ca8cb20c22 rtc: cmos: Rename ACPI-related functions
| * 9f9923baa2 rtc: cmos: Eliminate forward declarations of some functions
| * 462db582e8 rtc: cmos: Call rtc_wake_setup() from cmos_do_probe()
| * 14ad1353c5 rtc: cmos: Call cmos_wake_setup() from cmos_do_probe()
| * 45b96601a6 rtc: cmos: fix build on non-ACPI platforms
| * f2ece2c722 rtc: cmos: Fix wake alarm breakage
| * 0bcfccb486 rtc: cmos: Fix event handler registration ordering issue
| * 5814d77e2f rtc: rtc-cmos: Do not check ACPI_FADT_LOW_POWER_S0
| * 490b233677 dmaengine: idxd: Fix crc_val field for completion record
| * a42e955475 pwm: tegra: Improve required rate calculation
| * ddd2bb08bd include/uapi/linux/swab: Fix potentially missing __always_inline
| * c2a9843342 phy: usb: s2 WoL wakeup_count not incremented for USB->Eth devices
| * ca31ad0932 iommu/sun50i: Fix flush size
| * 147af0c1e7 iommu/sun50i: Fix R/W permission check
| * 3a63c4ff57 iommu/sun50i: Consider all fault sources for reset
| * 160b92ab4a iommu/sun50i: Fix reset release
| * aeef93416c RDMA/siw: Fix pointer cast warning
| * 5beadb55f4 power: supply: fix null pointer dereferencing in power_supply_get_battery_info
| * 72283ecfdc HSI: omap_ssi_core: Fix error handling in ssi_init()
| * 73ca3b19d9 perf symbol: correction while adjusting symbol
| * c8e77bd749 perf trace: Handle failure when trace point folder is missed
| * bd29da5804 perf trace: Use macro RAW_SYSCALL_ARGS_NUM to replace number
| * 6364577ae2 perf trace: Return error if a system call doesn't exist
| * 1d6d90994a power: supply: fix residue sysfs file in error handle route of __power_supply_register()
| * ae2eb995ab HSI: omap_ssi_core: fix possible memory leak in ssi_probe()
| * 6ba4b00f88 HSI: omap_ssi_core: fix unbalanced pm_runtime_disable()
| * ee13e2aec3 fbdev: uvesafb: Fixes an error handling path in uvesafb_probe()
| * 164857bc02 fbdev: vermilion: decrease reference count in error path
| * 71bca42bc4 fbdev: via: Fix error in via_core_init()
| * 3922415e4c fbdev: pm2fb: fix missing pci_disable_device()
| * f279a7af79 fbdev: ssd1307fb: Drop optional dependency
| * c56c1449cc thermal/drivers/imx8mm_thermal: Validate temperature range
| * 86fa7bb4e2 samples: vfio-mdev: Fix missing pci_disable_device() in mdpy_fb_probe()
| * 962f869b36 tracing/hist: Fix issue of losting command info in error_log
| * b7bf15aa19 usb: storage: Add check for kcalloc
| * 9ac541a089 i2c: ismt: Fix an out-of-bounds bug in ismt_access()
| * 61df25c41b i2c: mux: reg: check return value after calling platform_get_resource()
| * 6d79546622 gpiolib: cdev: fix NULL-pointer dereferences
| * aeee7ad089 gpiolib: Get rid of redundant 'else'
| * 37d3de40c1 vme: Fix error not catched in fake_init()
| * b9fa01fb31 staging: rtl8192e: Fix potential use-after-free in rtllib_rx_Monitor()
| * daa8045a99 staging: rtl8192u: Fix use after free in ieee80211_rx()
| * 46b3885c8c i2c: pxa-pci: fix missing pci_disable_device() on error in ce4100_i2c_probe
| * c46db6088b chardev: fix error handling in cdev_device_add()
| * 7b289b791a mcb: mcb-parse: fix error handing in chameleon_parse_gdd()
| * 0d1c2c8db2 drivers: mcb: fix resource leak in mcb_probe()
| * e88b89a096 usb: gadget: f_hid: fix refcount leak on error path
| * 1b6a53e447 usb: gadget: f_hid: fix f_hidg lifetime vs cdev
| * 52302c30b2 usb: gadget: f_hid: optional SETUP/SET_REPORT mode
| * c3767f8105 usb: roles: fix of node refcount leak in usb_role_switch_is_parent()
| * 07905a9249 counter: stm32-lptimer-cnt: fix the check on arr and cmp registers update
| * bb5e9402b2 iio: adis: add '__adis_enable_irq()' implementation
| * 3feb8fd8bf iio:imu:adis: Move exports into IIO_ADISLIB namespace
| * 83e321a2ec iio: adis: stylistic changes
| * d1b73eebc7 iio: adis: handle devices that cannot unmask the drdy pin
| * 8eb2a679c6 iio:imu:adis: Use IRQF_NO_AUTOEN instead of irq request then disable
| * 50aaa6b174 genirq: Add IRQF_NO_AUTOEN for request_irq/nmi()
| * 6b22e715bb iio: temperature: ltc2983: make bulk write buffer DMA-safe
| * 0f63c0ddc2 cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()
| * 170e8c2d2b cxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter()
| * d34742245e firmware: raspberrypi: fix possible memory leak in rpi_firmware_probe()
| * 0f67ed565f misc: sgi-gru: fix use-after-free error in gru_set_context_option, gru_fault and gru_handle_user_call_os
| * 57c857353d misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()
| * a40e1b0a92 ocxl: fix pci device refcount leak when calling get_function_0()
| * 7525741cb3 misc: ocxl: fix possible name leak in ocxl_file_register_afu()
| * 0b5a89e8bc test_firmware: fix memory leak in test_firmware_init()
| * d7c4331c07 serial: sunsab: Fix error handling in sunsab_init()
| * a26b13d158 serial: altera_uart: fix locking in polling mode
| * 8ff88d007f tty: serial: altera_uart_{r,t}x_chars() need only uart_port
| * af320d1a3c tty: serial: clean up stop-tx part in altera_uart_tx_chars()
| * 07f4ca68b0 serial: pch: Fix PCI device refcount leak in pch_request_dma()
| * 46d08b0e0b serial: pl011: Do not clear RX FIFO & RX interrupt in unthrottle.
| * d5b16eb076 serial: amba-pl011: avoid SBSA UART accessing DMACR register
| * fab27438ab usb: typec: tipd: Fix spurious fwnode_handle_put in error path
| * d3b6c28a71 usb: typec: tcpci: fix of node refcount leak in tcpci_register_port()
| * 1ca02df871 usb: typec: Check for ops->exit instead of ops->enter in altmode_exit
| * 5d2b286eb0 staging: vme_user: Fix possible UAF in tsi148_dma_list_add
| * 775a6f8bed usb: fotg210-udc: Fix ages old endianness issues
| * 2fcb7c7d52 uio: uio_dmem_genirq: Fix deadlock between irq config and handling
| * 9bf7a0b2b1 uio: uio_dmem_genirq: Fix missing unlock in irq configuration
| * 27b612bd09 vfio: platform: Do not pass return buffer to ACPI _RST method
| * 18a7200646 class: fix possible memory leak in __class_register()
| * 7e74868a38 serial: tegra: Read DMA status before terminating
| * fce9890e1b drivers: dio: fix possible memory leak in dio_init()
| * d217141345 IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces
| * aa96aff394 hwrng: geode - Fix PCI device refcount leak
| * 5998e5c30e hwrng: amd - Fix PCI device refcount leak
| * 38da26c855 crypto: img-hash - Fix variable dereferenced before check 'hdev->req'
| * 15ca148940 RDMA/hns: Fix page size cap from firmware
| * 83b2c33b53 RDMA/hns: Fix PBL page MTR find
| * 73ab1c956a orangefs: Fix sysfs not cleanup when dev init failed
| * 0c53bb661f RDMA/srp: Fix error return code in srp_parse_options()
| * 7cbf2fc276 RDMA/hfi1: Fix error return code in parse_platform_config()
| * 61c5b47c5b riscv/mm: add arch hook arch_clear_hugepage_flags
| * 09814c669d crypto: omap-sham - Use pm_runtime_resume_and_get() in omap_sham_probe()
| * 75c7b5d6b5 crypto: amlogic - Remove kcalloc without check
| * 357f3e1756 RDMA/nldev: Fix failure to send large messages
| * 25a8dabaab f2fs: avoid victim selection from previous victim section
| * d1b85d2883 RDMA/nldev: Add checks for nla_nest_start() in fill_stat_counter_qps()
| * ad27f74e90 scsi: snic: Fix possible UAF in snic_tgt_create()
| * 22e8c7a56b scsi: fcoe: Fix transport not deattached when fcoe_if_init() fails
| * f4ba143b04 scsi: ipr: Fix WARNING in ipr_init()
| * b520a32796 scsi: scsi_debug: Fix possible name leak in sdebug_add_host_helper()
| * 9d0ad1e2ba scsi: fcoe: Fix possible name leak when device_register() fails
| * 2b142f6046 scsi: scsi_debug: Fix a warning in resp_report_zones()
| * eaa71cdae8 scsi: scsi_debug: Fix a warning in resp_verify()
| * ac5cfe8bbb scsi: hpsa: Fix possible memory leak in hpsa_add_sas_device()
| * f671a3f286 scsi: hpsa: Fix error handling in hpsa_add_sas_host()
| * ce1a69cc85 scsi: mpt3sas: Fix possible resource leaks in mpt3sas_transport_port_add()
| * 7ccfc2bb58 padata: Fix list iterator in padata_do_serial()
| * 8e0681dd4e padata: Always leave BHs disabled when running ->parallel()
| * 4a99e6a104 crypto: tcrypt - Fix multibuffer skcipher speed test mem leak
| * c808edbf58 scsi: hpsa: Fix possible memory leak in hpsa_init_one()
| * 6bb5a62bfd RDMA/rxe: Fix NULL-ptr-deref in rxe_qp_do_cleanup() when socket create failed
| * 164fa80330 RDMA/hns: fix memory leak in hns_roce_alloc_mr()
| * 3d47544ba0 crypto: ccree - Make cc_debugfs_global_fini() available for module init function
| * 34bab85c2e RDMA/hfi: Decrease PCI device reference count in error path
| * d8f2a0bc52 PCI: Check for alloc failure in pci_request_irq()
| * 8b5f1af335 RDMA/hns: Fix ext_sge num error when post send
| * cc5e915358 RDMA/hns: Repacing 'dseg_len' by macros in fill_ext_sge_inl_data()
| * ed97ade655 crypto: hisilicon/qm - add missing pci_dev_put() in q_num_set()
| * 2dfe1d221e crypto: cryptd - Use request context instead of stack for sub-request
| * 1ab9e15b14 crypto: ccree - Remove debugfs when platform_driver_register failed
| * 33260f4c3e scsi: scsi_debug: Fix a warning in resp_write_scat()
| * 917bf4c0a7 RDMA/siw: Set defined status for work completion with undefined status
| * 237a8936d6 RDMA/nldev: Return "-EAGAIN" if the cm_id isn't from expected port
| * 75af03fdf3 RDMA/siw: Fix immediate work request flush to completion queue
| * ef8e236832 f2fs: fix normal discard process
| * 9a32aa87a2 apparmor: Fix memleak in alloc_ns()
| * 417ef568a7 crypto: rockchip - rework by using crypto_engine
| * 6cd8bbb089 crypto: rockchip - delete unneeded variable initialization
| * de041a2e70 crypto: rockchip - remove non-aligned handling
| * 0971bc99d1 crypto: rockchip - better handle cipher key
| * b0b9635f09 crypto: rockchip - add fallback for ahash
| * fbd5f112dc crypto: rockchip - add fallback for cipher
| * 86f1e7f46b crypto: rockchip - do not store mode globally
| * a13c0ff862 crypto: rockchip - do not do custom power management
| * f1acf7e693 f2fs: Fix the race condition of resize flag between resizefs
| * c42d8120bf PCI: pci-epf-test: Register notifier if only core_init_notifier is enabled
| * 16db9aaa41 RDMA/core: Fix order of nldev_exit call
| * 9784b01eb4 PCI: dwc: Fix n_fts[] array overrun
| * 6962f682d0 apparmor: Use pointer to struct aa_label for lbs_cred
| * f4c917a4b0 scsi: core: Fix a race between scsi_done() and scsi_timeout()
| * 3bebfa5f93 crypto: nitrox - avoid double free on error path in nitrox_sriov_init()
| * ee3cffc38e crypto: sun8i-ss - use dma_addr instead u32
| * bf4d7c66a1 apparmor: Fix abi check to include v8 abi
| * 78629ca972 apparmor: fix lockdep warning when removing a namespace
| * 935d86b290 apparmor: fix a memleak in multi_transaction_new()
| * f694e627c6 stmmac: fix potential division by 0
| * 815b961c71 Bluetooth: RFCOMM: don't call kfree_skb() under spin_lock_irqsave()
| * 4002180e07 Bluetooth: hci_core: don't call kfree_skb() under spin_lock_irqsave()
| * 82256faaeb Bluetooth: hci_bcsp: don't call kfree_skb() under spin_lock_irqsave()
| * 33af776a8d Bluetooth: hci_h5: don't call kfree_skb() under spin_lock_irqsave()
| * 5991402fe0 Bluetooth: hci_ll: don't call kfree_skb() under spin_lock_irqsave()
| * 0169acb41b Bluetooth: hci_qca: don't call kfree_skb() under spin_lock_irqsave()
| * f7dc27702b Bluetooth: btusb: don't call kfree_skb() under spin_lock_irqsave()
| * 214346a517 sctp: sysctl: make extra pointers netns aware
| * 13286ad1c7 ntb_netdev: Use dev_kfree_skb_any() in interrupt context
| * 4df544f592 net: lan9303: Fix read error execution path
| * 39b48a92ed can: tcan4x5x: Remove invalid write in clear_interrupts
| * 334c9fb892 net: amd-xgbe: Check only the minimum speed for active/passive cables
| * 03ea9ba5fd net: amd-xgbe: Fix logic around active and passive cables
| * 8eb5f8ae51 net: amd: lance: don't call dev_kfree_skb() under spin_lock_irqsave()
| * ee3b1364af hamradio: don't call dev_kfree_skb() under spin_lock_irqsave()
| * b242358a27 net: ethernet: dnet: don't call dev_kfree_skb() under spin_lock_irqsave()
| * decede59ea net: emaclite: don't call dev_kfree_skb() under spin_lock_irqsave()
| * c43def060c net: apple: bmac: don't call dev_kfree_skb() under spin_lock_irqsave()
| * 0e23250149 net: apple: mace: don't call dev_kfree_skb() under spin_lock_irqsave()
| * 91f09a776a net/tunnel: wait until all sk_user_data reader finish before releasing the sock
| * 51e2d1b84a net: farsync: Fix kmemleak when rmmods farsync
| * 0b3f452d0c ethernet: s2io: don't call dev_kfree_skb() under spin_lock_irqsave()
| * 2b4af99b44 of: overlay: fix null pointer dereferencing in find_dup_cset_node_entry() and find_dup_cset_prop()
| * 14b349a15c drivers: net: qlcnic: Fix potential memory leak in qlcnic_sriov_init()
| * 787d1bae7f net: stmmac: selftests: fix potential memleak in stmmac_test_arpoffload()
| * 8ed9994457 net: defxx: Fix missing err handling in dfx_init()
| * e2227eee7a net: vmw_vsock: vmci: Check memcpy_from_msg()
| * 3e8fd1d0fa clk: socfpga: Fix memory leak in socfpga_gate_init()
| * 4b672ee71c clk: socfpga: use clk_hw_register for a5/c5
| * ae8190f19f clk: socfpga: clk-pll: Remove unused variable 'rc'
| * 782d0444ea blktrace: Fix output non-blktrace event when blk_classic option enabled
| * 2484f15964 wifi: brcmfmac: Fix error return code in brcmf_sdio_download_firmware()
| * f89c0fbb8b wifi: rtl8xxxu: Fix the channel width reporting
| * d430037248 wifi: rtl8xxxu: Add __packed to struct rtl8723bu_c2h
| * 7f3b4fa482 spi: spi-gpio: Don't set MOSI as an input if not 3WIRE mode
| * da13355bb9 clk: samsung: Fix memory leak in _samsung_clk_register_pll()
| * d9b37ea886 media: coda: Add check for kmalloc
| * 35ddd00b36 media: coda: Add check for dcoda_iram_alloc
| * 6fdb8661b9 media: c8sectpfe: Add of_node_put() when breaking out of loop
| * 0b1e96d3fd mmc: mmci: fix return value check of mmc_add_host()
| * 1922def5cb mmc: wbsd: fix return value check of mmc_add_host()
| * 63400da6cd mmc: via-sdmmc: fix return value check of mmc_add_host()
| * 64b2c44117 mmc: meson-gx: fix return value check of mmc_add_host()
| * fb3d596267 mmc: omap_hsmmc: fix return value check of mmc_add_host()
| * 00ac0f5f95 mmc: atmel-mci: fix return value check of mmc_add_host()
| * 9bedf64dda mmc: wmt-sdmmc: fix return value check of mmc_add_host()
| * 3049a3b927 mmc: vub300: fix return value check of mmc_add_host()
| * aabbedcb6c mmc: toshsd: fix return value check of mmc_add_host()
| * 7fa922c7a3 mmc: rtsx_usb_sdmmc: fix return value check of mmc_add_host()
| * b896a9b7a0 mmc: pxamci: fix return value check of mmc_add_host()
| * 3904eb97bb mmc: mxcmmc: fix return value check of mmc_add_host()
| * 7c3b301ca8 mmc: moxart: fix return value check of mmc_add_host()
| * 4a6e5d0222 mmc: alcor: fix return value check of mmc_add_host()
| * 81ea3d964f NFSv4.x: Fail client initialisation if state manager thread can't run
| * 3fbc3c78fa SUNRPC: Fix missing release socket in rpc_sockname()
| * be7d90fc3a xprtrdma: Fix regbuf data not freed in rpcrdma_req_create()
| * 0649129359 ALSA: mts64: fix possible null-ptr-defer in snd_mts64_interrupt
| * 7df1fbe49b media: saa7164: fix missing pci_disable_device()
| * 46a9b31369 ALSA: pcm: Set missing stop_operating flag at undoing trigger start
| * be719496ae bpf, sockmap: fix race in sock_map_free()
| * 8c3ef38a0d hwmon: (jc42) Restore the min/max/critical temperatures on resume
| * e7720ef53b hwmon: (jc42) Convert register access and caching to regmap/regcache
| * 6a03c31d08 regulator: core: fix resource leak in regulator_register()
| * 74ac7c9ee2 configfs: fix possible memory leak in configfs_create_dir()
| * 0cf92d2356 hsr: Synchronize sequence number updates.
| * c671f2d10d hsr: Synchronize sending frames to have always incremented outgoing seq nr.
| * 28921ec555 hsr: Disable netpoll.
| * 8cee8543f0 net: hsr: generate supervision frame without HSR/PRP tag
| * 38d13a2a9e hsr: Add a rcu-read lock to hsr_forward_skb().
| * ee4425e81d clk: qcom: clk-krait: fix wrong div2 functions
| * 6f25402d8a regulator: core: fix module refcount leak in set_supply()
| * f532db69ab wifi: mt76: fix coverity overrun-call in mt76_get_txpower()
| * 4ecb7a6e61 wifi: cfg80211: Fix not unregister reg_pdev when load_builtin_regdb_keys() fails
| * b2c0b94f48 wifi: mac80211: fix memory leak in ieee80211_if_add()
| * b0163248db spi: spidev: mask SPI_CS_HIGH in SPI_IOC_RD_MODE
| * ab19f402a1 bonding: uninitialized variable in bond_miimon_inspect()
| * c58df40e3e bpf, sockmap: Fix data loss caused by using apply_bytes on ingress redirect
| * 28e4a763cd bpf, sockmap: Fix repeated calls to sock_put() when msg has more_data
| * 429a2a4258 netfilter: conntrack: set icmpv6 redirects as RELATED
| * cd0e9ee50c ASoC: pcm512x: Fix PM disable depth imbalance in pcm512x_probe
| * 7c1ddf7c66 drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()
| * 3991d98a8a drm/radeon: Fix PCI device refcount leak in radeon_atrm_get_bios()
| * a012cdd4fd drm/amd/pm/smu11: BACO is supported when it's in BACO state
| * 57491967ad ASoC: mediatek: mt8173: Enable IRQ when pdata is ready
| * 52c9ad56c1 ASoC: mediatek: mt8173: Fix debugfs registration for components
| * ae966649f6 wifi: iwlwifi: mvm: fix double free on tx path.
| * ae66695aa1 ALSA: asihpi: fix missing pci_disable_device()
| * 5458bc0f9d NFS: Fix an Oops in nfs_d_automount()
| * bc60485b93 NFSv4: Fix a deadlock between nfs4_open_recover_helper() and delegreturn
| * d16d7870fd NFSv4.2: Fix initialisation of struct nfs4_label
| * 15feece7af NFSv4.2: Fix a memory stomp in decode_attr_security_label
| * 58a1023eb5 NFSv4.2: Clear FATTR4_WORD2_SECURITY_LABEL when done decoding
| * 193691ff5b ASoC: mediatek: mtk-btcvsd: Add checks for write and read of mtk_btcvsd_snd
| * 6013c3de95 ASoC: dt-bindings: wcd9335: fix reset line polarity in example
| * cf2cbca714 drm/tegra: Add missing clk_disable_unprepare() in tegra_dc_probe()
| * 54ab127600 media: s5p-mfc: Add variant data for MFC v7 hardware for Exynos 3250 SoC
| * 559891d430 media: dvb-usb: az6027: fix null-ptr-deref in az6027_i2c_xfer()
| * e34cf6cacc media: dvb-core: Fix ignored return value in dvb_register_frontend()
| * 05be5d56f7 pinctrl: pinconf-generic: add missing of_node_put()
| * 9916497a12 clk: imx: replace osc_hdmi with dummy
| * dabf7b675c media: imon: fix a race condition in send_packet()
| * 14d85b600b media: vimc: Fix wrong function called when vimc_init() fails
| * 4518d7cc38 ASoC: qcom: Add checks for devm_kcalloc
| * b73fac67f3 drbd: fix an invalid memory access caused by incorrect use of list iterator
| * 1d0c2b762d mtd: maps: pxa2xx-flash: fix memory leak in probe
| * 7d1e0d237c bonding: fix link recovery in mode 2 when updelay is nonzero
| * 3725a8f26b drm/amdgpu: fix pci device refcount leak
| * f4d70c139d clk: rockchip: Fix memory leak in rockchip_clk_register_pll()
| * a065be0243 regulator: core: use kfree_const() to free space conditionally
| * d7198b63cb ALSA: seq: fix undefined behavior in bit shift for SNDRV_SEQ_FILTER_USE_EVENT
| * 88550b4446 ALSA: pcm: fix undefined behavior in bit shift for SNDRV_PCM_RATE_KNOT
| * ad2d0a3dc2 HID: hid-sensor-custom: set fixed size for custom attributes
| * 0d6ae25da5 bpf: Move skb->len == 0 checks into __bpf_redirect
| * 9920e87a84 inet: add READ_ONCE(sk->sk_bound_dev_if) in inet_csk_bind_conflict()
| * 49aa080951 media: videobuf-dma-contig: use dma_mmap_coherent
| * 8470060019 media: platform: exynos4-is: Fix error handling in fimc_md_init()
| * 49060c0da5 media: solo6x10: fix possible memory leak in solo_sysfs_init()
| * 0369af6fe3 media: vidtv: Fix use-after-free in vidtv_bridge_dvb_init()
| * 3afd738e77 Input: elants_i2c - properly handle the reset GPIO when power is off
| * 0919982a17 mtd: lpddr2_nvm: Fix possible null-ptr-deref
| * effbf63616 wifi: ath10k: Fix return value in ath10k_pci_init()
| * adf03c3099 ima: Fix misuse of dereference of pointer in template_desc_init_fields()
| * 3bd737289c integrity: Fix memory leakage in keyring allocation error path
| * 102df01caf drm/fourcc: Fix vsub/hsub for Q410 and Q401
| * 6f6a99fb62 drm/fourcc: Add packed 10bit YUV 4:2:0 format
| * 85273b4a70 amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table()
| * f48c474efe regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
| * 21a1409e8c ASoC: pxa: fix null-pointer dereference in filter()
| * 698bbaf0b4 drm/mediatek: Modify dpi power on/off sequence.
| * b4b30f56ec drm/radeon: Add the missed acpi_put_table() to fix memory leak
| * cea79ae89b rxrpc: Fix ack.bufferSize to be 0 when generating an ack
| * 00fce49d14 net, proc: Provide PROC_FS=n fallback for proc_create_net_single_write()
| * 3d5cab726e media: camss: Clean up received buffers on failed start of streaming
| * 61c96d99d4 wifi: rsi: Fix handling of 802.3 EAPOL frames sent via control port
| * 624438195c Input: joystick - fix Kconfig warning for JOYSTICK_ADC
| * 330bc5533e mtd: Fix device name leak when register device failed in add_mtd_device()
| * 1a79539f4e clk: qcom: gcc-sm8250: Use retention mode for USB GDSCs
| * e1989d808b bpf: propagate precision across all frames, not just the last one
| * cdd73a5ed0 bpf: Check the other end of slot_type for STACK_SPILL
| * 42b2b7382a bpf: propagate precision in ALU/ALU64 operations
| * 7fc38327fd media: platform: exynos4-is: fix return value check in fimc_md_probe()
| * f9d19f3a04 media: vivid: fix compose size exceed boundary
| * 72e8d9c731 bpf: Fix slot type check in check_stack_write_var_off
| * d959ff7fa9 drm/msm/hdmi: drop unused GPIO support
| * b12f354fe6 drm/msm/hdmi: switch to drm_bridge_connector
| * c4b035b1f0 ima: Handle -ESTALE returned by ima_filter_rule_match()
| * d5b227f0d2 ima: Fix fall-through warnings for Clang
| * 576828e59a drm/panel/panel-sitronix-st7701: Remove panel on DSI attach failure
| * f1aa976857 spi: Update reference to struct spi_controller
| * dd958c7f3e clk: renesas: r9a06g032: Repair grave increment error
| * 110bf15825 drm/rockchip: lvds: fix PM usage counter unbalance in poweron
| * 1874f9143f can: kvaser_usb: Compare requested bittiming parameters with actual parameters in do_set_{,data}_bittiming
| * 669bdf121f can: kvaser_usb: Add struct kvaser_usb_busparams
| * a50ad6772f can: kvaser_usb_leaf: Fix bogus restart events
| * cd56718e7c can: kvaser_usb_leaf: Fix wrong CAN state after stopping
| * f83742285f can: kvaser_usb_leaf: Fix improved state not being reported
| * fbd155fe14 can: kvaser_usb_leaf: Set Warning state even without bus errors
| * 96af45b1b4 can: kvaser_usb: kvaser_usb_leaf: Handle CMD_ERROR_EVENT
| * caea629409 can: kvaser_usb: kvaser_usb_leaf: Rename {leaf,usbcan}_cmd_error_event to {leaf,usbcan}_cmd_can_error_event
| * eafcf1b599 can: kvaser_usb: kvaser_usb_leaf: Get capabilities from device
| * cd50258e9c can: kvaser_usb: do not increase tx statistics when sending error message frames
| * 580c79fd57 media: exynos4-is: don't rely on the v4l2_async_subdev internals
| * c93cac58a7 media: exynos4-is: Use v4l2_async_notifier_add_fwnode_remote_subdev
| * 4882492ad3 venus: pm_helpers: Fix error check in vcodec_domains_get()
| * 86d531c1d7 media: i2c: ad5820: Fix error path
| * 83f7e3c988 media: coda: jpeg: Add check for kmalloc
| * 7e0ba56c7e pata_ipx4xx_cf: Fix unsigned comparison with less than zero
| * 85b297d798 libbpf: Fix null-pointer dereference in find_prog_by_sec_insn()
| * c61650b869 libbpf: Fix use-after-free in btf_dump_name_dups
| * 26ce3f0c8f drm/bridge: adv7533: remove dynamic lane switching from adv7533 bridge
| * 9b6851c182 wifi: rtl8xxxu: Fix reading the vendor of combo chips
| * 98d9172822 wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()
| * c3fb3e9a2c wifi: ath9k: hif_usb: fix memory leak of urbs in ath9k_hif_usb_dealloc_tx_urbs()
| * 53915ecc43 rapidio: devices: fix missing put_device in mport_cdev_open
| * cff9fefdfb hfs: Fix OOB Write in hfs_asc2mac
| * 93cdd12636 relay: fix type mismatch when allocating memory in relay_create_buf()
| * bbaa9ca063 eventfd: change int to __u64 in eventfd_signal() ifndef CONFIG_EVENTFD
| * 5ee850645e rapidio: fix possible UAF when kfifo_alloc() fails
| * ad4842634d fs: sysv: Fix sysv_nblocks() returns wrong value
| * 6f8ef1de8c MIPS: OCTEON: warn only once if deprecated link status is being used
| * 7b88747d6d MIPS: BCM63xx: Add check for NULL for clk in clk_enable
| * d4c38ee665 platform/x86: intel_scu_ipc: fix possible name leak in __intel_scu_ipc_register()
| * 17cd8c46cb platform/x86: mxm-wmi: fix memleak in mxm_wmi_call_mx[ds|mx]()
| * f983afc432 PM: runtime: Do not call __rpm_callback() from rpm_idle()
| * 2cbbd78e08 PM: runtime: Improve path in rpm_idle() when no callback
| * 46026bb057 xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()
| * 70e7f308d7 x86/xen: Fix memory leak in xen_init_lock_cpu()
| * fc134c355b x86/xen: Fix memory leak in xen_smp_intr_init{_pv}()
| * 95dbcb7e1c uprobes/x86: Allow to probe a NOP instruction with 0x66 prefix
| * 02617006b5 ACPICA: Fix use-after-free in acpi_ut_copy_ipackage_to_ipackage()
| * 7bc9c5ad52 clocksource/drivers/timer-ti-dm: Fix missing clk_disable_unprepare in dmtimer_systimer_init_clock()
| * 270700e7df cpu/hotplug: Make target_store() a nop when target == state
| * fc89b8853a futex: Resend potentially swallowed owner death notification
| * 4750cac4df futex: Move to kernel/futex/
| * d8e7a44f48 clocksource/drivers/sh_cmt: Access registers according to spec
| * 0853787db2 clocksource/drivers/sh_cmt: Make sure channel clock supply is enabled
| * 97d9eb45ff rapidio: rio: fix possible name leak in rio_register_mport()
| * 88fa351b20 rapidio: fix possible name leaks when rio_add_device() fails
| * 2b7e59ed2e ocfs2: fix memory leak in ocfs2_mount_volume()
| * 45dabd8fe8 ocfs2: rewrite error handling of ocfs2_fill_super
| * e403024c83 ocfs2: ocfs2_mount_volume does cleanup job before return error
| * 81d26aa903 debugfs: fix error when writing negative value to atomic_t debugfs file
| * f649e18c9c docs: fault-injection: fix non-working usage of negative values
| * 869a37ad6f lib/notifier-error-inject: fix error when writing -errno to debugfs file
| * c39aa503f4 libfs: add DEFINE_SIMPLE_ATTRIBUTE_SIGNED for signed value
| * 0080461624 cpufreq: amd_freq_sensitivity: Add missing pci_dev_put()
| * 9346517ed2 genirq/irqdesc: Don't try to remove non-existing sysfs files
| * d97e58f728 nfsd: don't call nfsd_file_put from client states seqfile display
| * 2db53c7059 EDAC/i10nm: fix refcount leak in pci_get_dev_wrapper()
| * f870d5863e irqchip: gic-pm: Use pm_runtime_resume_and_get() in gic_probe()
| * 5c0cacdd35 platform/chrome: cros_usbpd_notify: Fix error handling in cros_usbpd_notify_init()
| * 0afcb759f6 perf/x86/intel/uncore: Fix reference count leak in __uncore_imc_init_box()
| * d2afced511 perf/x86/intel/uncore: Fix reference count leak in snr_uncore_mmio_map()
| * c0539d5d47 perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox()
| * dac87e295c PNP: fix name memory leak in pnp_alloc_dev()
| * e1049bf0ca selftests/efivarfs: Add checking of the test return value
| * 911773f08c MIPS: vpe-cmp: fix possible memory leak while module exiting
| * 48d42f4464 MIPS: vpe-mt: fix possible memory leak while module exiting
| * f5f2682d3a ocfs2: fix memory leak in ocfs2_stack_glue_init()
| * c9a9aa02f0 lib/fonts: fix undefined behavior in bit shift for get_default_font
| * 9f6ea28f29 proc: fixup uptime selftest
| * d5bf025c5b timerqueue: Use rb_entry_safe() in timerqueue_getnext()
| * 2f2ae35c00 platform/x86: huawei-wmi: fix return value calculation
| * a1014fbc83 lib/debugobjects: fix stat count and optimize debug_objects_mem_init
| * 60a7a0aa9d perf: Fix possible memleak in pmu_dev_alloc()
| * 294ed8bfc9 selftests/ftrace: event_triggers: wait longer for test_event_enable
| * 3ef12a4a8e cpufreq: qcom-hw: Fix memory leak in qcom_cpufreq_hw_read_lut()
| * aa5f2912bb fs: don't audit the capability check in simple_xattr_list()
| * 9e760e0cf2 PM: hibernate: Fix mistake in kerneldoc comment
| * ef875e1c07 alpha: fix syscall entry in !AUDUT_SYSCALL case
| * 1498d2723e cpuidle: dt: Return the correct numbers of parsed idle states
| * 2ff4014417 sched/uclamp: Fix relationship between uclamp and migration margin
| * ca9ef12bf7 sched/fair: Cleanup task_util and capacity type
| * 6389c163c9 tpm/tpm_crb: Fix error message in __crb_relinquish_locality()
| * 5b217f4e79 tpm/tpm_ftpm_tee: Fix error handling in ftpm_mod_init()
| * 295f59cd2c pstore: Avoid kcore oops by vmap()ing with VM_IOREMAP
| * 480bc6a165 ARM: mmp: fix timer_read delay
| * d1b3164d0e pstore/ram: Fix error return code in ramoops_probe()
| * 4dad729f7c arm64: dts: armada-3720-turris-mox: Add missing interrupt for RTC
| * 872865db3b ARM: dts: turris-omnia: Add switch port 6 node
| * c1322d5f69 ARM: dts: turris-omnia: Add ethernet aliases
| * d050513e6f ARM: dts: armada-39x: Fix assigned-addresses for every PCIe Root Port
| * bac1a77b85 ARM: dts: armada-38x: Fix assigned-addresses for every PCIe Root Port
| * ea907f3032 ARM: dts: armada-375: Fix assigned-addresses for every PCIe Root Port
| * ea8e313bb9 ARM: dts: armada-xp: Fix assigned-addresses for every PCIe Root Port
| * 697b92a648 ARM: dts: armada-370: Fix assigned-addresses for every PCIe Root Port
| * 73ab831afd ARM: dts: dove: Fix assigned-addresses for every PCIe Root Port
| * c2cb1683d1 arm64: dts: mediatek: mt6797: Fix 26M oscillator unit name
| * 1261352836 arm64: dts: mediatek: pumpkin-common: Fix devicetree warnings
| * 853d57e961 arm64: dts: mt2712-evb: Fix usb vbus regulators unit names
| * 436ac713a4 arm64: dts: mt2712-evb: Fix vproc fixed regulators unit names
| * 148e773557 arm64: dts: mt2712e: Fix unit address for pinctrl node
| * a938c2a774 arm64: dts: mt2712e: Fix unit_address_vs_reg warning for oscillators
| * a455b0c509 arm64: dts: ti: k3-j721e-main: Drop dma-coherent in crypto node
| * 42d97a024e arm64: dts: ti: k3-am65-main: Drop dma-coherent in crypto node
| * 359286f886 perf/smmuv3: Fix hotplug callback leak in arm_smmu_pmu_init()
| * 9afac95b87 perf: arm_dsu: Fix hotplug callback leak in dsu_pmu_init()
| * 5e88aec62e soc: ti: smartreflex: Fix PM disable depth imbalance in omap_sr_probe
| * 6a9a31c578 soc: ti: knav_qmss_queue: Fix PM disable depth imbalance in knav_queue_probe
| * e325b4ee41 soc: ti: knav_qmss_queue: Use pm_runtime_resume_and_get instead of pm_runtime_get_sync
| * 0542d56e63 arm: dts: spear600: Fix clcd interrupt
| * a8d4fb0bf1 soc: qcom: apr: Add check for idr_alloc and of_property_read_string_index
| * 6213df4f5f soc: qcom: apr: make code more reuseable
| * 45d180a9f6 soc: qcom: llcc: make irq truly optional
| * 8fb204a4b5 drivers: soc: ti: knav_qmss_queue: Mark knav_acc_firmwares as static
| * 6a2faf6fce ARM: dts: stm32: Fix AV96 WLAN regulator gpio property
| * 6d1b6dc38f ARM: dts: stm32: Drop stm32mp15xc.dtsi from Avenger96
| * 933499bed7 objtool, kcsan: Add volatile read/write instrumentation to whitelist
| * 275a67e909 arm64: dts: qcom: msm8916: Drop MSS fallback compatible
| * 82baee2263 arm64: dts: qcom: sdm845-cheza: fix AP suspend pin bias
| * 82569f7e40 arm64: dts: qcom: sdm630: fix UART1 pin bias
| * 4cef81dec2 ARM: dts: qcom: apq8064: fix coresight compatible
| * 5465b9a813 arm64: dts: qcom: msm8996: fix GPU OPP table
| * 6cad948c9f arm64: dts: qcom: ipq6018-cp01-c1: use BLSPI1 pins
| * 60184b1437 usb: musb: remove extra check in musb_gadget_vbus_draw
* | 9e60339cb4 ANDROID: Update .xml due to ABI preservation fix
* | 1cd4863ea8 ANDROID: struct io_uring ABI preservation hack for 5.10.162 changes
* | 4c961b9302 ANDROID: fix up struct task_struct ABI change in 5.10.162
* | 332c489d8b ANDROID: add flags variable back to struct proto_ops
* | 8596b99884 Merge 5.10.162 into android12-5.10-lts
|\|
| * 0fe4548663 Linux 5.10.162
| * 189556b05e io_uring: pass in EPOLL_URING_WAKE for eventfd signaling and wakeups
| * 4ef66581d7 eventfd: provide a eventfd_signal_mask() helper
| * 2f09377502 eventpoll: add EPOLL_URING_WAKE poll wakeup flag
| * b76c5373f0 Revert "proc: don't allow async path resolution of /proc/self components"
| * 87cb08dc6b Revert "proc: don't allow async path resolution of /proc/thread-self components"
| * a3025359ff net: remove cmsg restriction from io_uring based send/recvmsg calls
| * 6ef2b4728a task_work: unconditionally run task_work from get_signal()
| * c91ab04781 signal: kill JOBCTL_TASK_WORK
| * 788d082426 io_uring: import 5.15-stable io_uring
| * ed30050329 task_work: add helper for more targeted task_work canceling
| * 831cb78a2a kernel: don't call do_exit() for PF_IO_WORKER threads
| * 9ded44b69c kernel: stop masking signals in create_io_thread()
| * f0a5f0dc01 x86/process: setup io_threads more like normal user space threads
| * dd26e2cec7 arch: ensure parisc/powerpc handle PF_IO_WORKER in copy_thread()
| * 320c8057ec arch: setup PF_IO_WORKER threads like PF_KTHREAD
| * 000de389ad entry/kvm: Exit to user mode when TIF_NOTIFY_SIGNAL is set
| * 0f735cf52b kernel: allow fork with TIF_NOTIFY_SIGNAL pending
| * 4b4d2c7992 coredump: Limit what can interrupt coredumps
| * 90a2c3821b kernel: remove checking for TIF_NOTIFY_SIGNAL
| * 61bdeb142e task_work: remove legacy TWA_SIGNAL path
| * 6e2bce21ac alpha: fix TIF_NOTIFY_SIGNAL handling
| * db911277a2 ARC: unbork 5.11 bootup: fix snafu in _TIF_NOTIFY_SIGNAL handling
| * a1240cc413 ia64: don't call handle_signal() unless there's actually a signal queued
| * e1402ba4df sparc: add support for TIF_NOTIFY_SIGNAL
| * 78a53ff026 riscv: add support for TIF_NOTIFY_SIGNAL
| * 57e833a0a0 nds32: add support for TIF_NOTIFY_SIGNAL
| * 751fedb9ba ia64: add support for TIF_NOTIFY_SIGNAL
| * 48e9e35d33 h8300: add support for TIF_NOTIFY_SIGNAL
| * c82617d9de c6x: add support for TIF_NOTIFY_SIGNAL
| * 30b78a17ac alpha: add support for TIF_NOTIFY_SIGNAL
| * bf0b619593 xtensa: add support for TIF_NOTIFY_SIGNAL
| * 1bee9dbbca arm: add support for TIF_NOTIFY_SIGNAL
| * 02d383a59c microblaze: add support for TIF_NOTIFY_SIGNAL
| * 19f3e328b4 hexagon: add support for TIF_NOTIFY_SIGNAL
| * c2037d61de csky: add support for TIF_NOTIFY_SIGNAL
| * 12284aec88 openrisc: add support for TIF_NOTIFY_SIGNAL
| * 3fde31e962 sh: add support for TIF_NOTIFY_SIGNAL
| * dc808ffd97 um: add support for TIF_NOTIFY_SIGNAL
| * 0aef2ec063 s390: add support for TIF_NOTIFY_SIGNAL
| * 8ca2e57099 mips: add support for TIF_NOTIFY_SIGNAL
| * abab3d4444 powerpc: add support for TIF_NOTIFY_SIGNAL
| * 45b365bc6c parisc: add support for TIF_NOTIFY_SIGNAL
| * cf3c648673 nios32: add support for TIF_NOTIFY_SIGNAL
| * fe137f46d4 m68k: add support for TIF_NOTIFY_SIGNAL
| * 79a9991e87 arm64: add support for TIF_NOTIFY_SIGNAL
| * 2dbb035451 arc: add support for TIF_NOTIFY_SIGNAL
| * 4b1dcf8ec9 x86: Wire up TIF_NOTIFY_SIGNAL
| * eb42e7b304 task_work: Use TIF_NOTIFY_SIGNAL if available
| * 3c295bd2dd entry: Add support for TIF_NOTIFY_SIGNAL
| * d2136fc145 fs: provide locked helper variant of close_fd_get_file()
| * 57b2053036 file: Rename __close_fd_get_file close_fd_get_file
| * 214f80e251 fs: make do_renameat2() take struct filename
| * 52cfde6bbf signal: Add task_sigpending() helper
| * ad0b013795 net: add accept helper not installing fd
| * 069ac28d92 net: provide __sys_shutdown_sock() that takes a socket
| * 0b8cd5d814 tools headers UAPI: Sync openat2.h with the kernel sources
| * 5683caa735 fs: expose LOOKUP_CACHED through openat2() RESOLVE_CACHED
| * 0cf0ce8fb5 Make sure nd->path.mnt and nd->path.dentry are always valid pointers
| * 146fe79fff fix handling of nd->depth on LOOKUP_CACHED failures in try_to_unlazy*
| * c1fe7bd3e1 fs: add support for LOOKUP_CACHED
| * 36ec31201a saner calling conventions for unlazy_child()
| * e86db87191 iov_iter: add helper to save iov_iter state
| * 1500fed008 kernel: provide create_io_thread() helper
* | bf760358ea Merge branch 'android12-5.10' into android12-5.10-lts
* | 416c4356f3 Merge 5.10.161 into android12-5.10-lts
|/
* 1a9148dfd8 Linux 5.10.161
* eec1c3ade4 net: loopback: use NET_NAME_PREDICTABLE for name_assign_type
* f3fe681715 Bluetooth: L2CAP: Fix u8 overflow
* 7c3a523c9b HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirk
* 1d5db0c322 HID: ite: Enable QUIRK_TOUCHPAD_ON_OFF_REPORT on Acer Aspire Switch V 10
* 263a1782a6 HID: ite: Enable QUIRK_TOUCHPAD_ON_OFF_REPORT on Acer Aspire Switch 10E
* a20b5eec07 HID: ite: Add support for Acer S1002 keyboard-dock
* f2479c3daa igb: Initialize mailbox message for VF reset
* 9ff7aff40e xhci: Apply XHCI_RESET_TO_DEFAULT quirk to ADL-N
* c8bf31a00f USB: serial: f81534: fix division by zero on line-speed change
* 5b75a00416 USB: serial: f81232: fix division by zero on line-speed change
* 9895ce5ea2 USB: serial: cp210x: add Kamstrup RF sniffer PIDs
* 398215f783 USB: serial: option: add Quectel EM05-G modem
* c79538f32d usb: gadget: uvc: Prevent buffer overflow in setup handler
* 8b2f86f82c udf: Fix extending file within last block
* db873b770d udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size
* 1a075f4a54 udf: Fix preallocation discarding at indirect extent boundary
* 1f7f7365ae udf: Discard preallocation before extending file with a hole

Change-Id: I1463ff16fd85e32614dc83f585aa6b3957024a74
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-03-23 11:09:43 +00:00
Darrick J. Wong
989d4c69a9 UPSTREAM: ext4: fix another off-by-one fsmap error on 1k block filesystems
commit c993799baf9c5861f8df91beb80e1611b12efcbd upstream.

Apparently syzbot figured out that issuing this FSMAP call:

struct fsmap_head cmd = {
	.fmh_count	= ...;
	.fmh_keys	= {
		{ .fmr_device = /* ext4 dev */, .fmr_physical = 0, },
		{ .fmr_device = /* ext4 dev */, .fmr_physical = 0, },
	},
...
};
ret = ioctl(fd, FS_IOC_GETFSMAP, &cmd);

Produces this crash if the underlying filesystem is a 1k-block ext4
filesystem:

kernel BUG at fs/ext4/ext4.h:3331!
invalid opcode: 0000 [#1] PREEMPT SMP
CPU: 3 PID: 3227965 Comm: xfs_io Tainted: G        W  O       6.2.0-rc8-achx
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1 04/01/2014
RIP: 0010:ext4_mb_load_buddy_gfp+0x47c/0x570 [ext4]
RSP: 0018:ffffc90007c03998 EFLAGS: 00010246
RAX: ffff888004978000 RBX: ffffc90007c03a20 RCX: ffff888041618000
RDX: 0000000000000000 RSI: 00000000000005a4 RDI: ffffffffa0c99b11
RBP: ffff888012330000 R08: ffffffffa0c2b7d0 R09: 0000000000000400
R10: ffffc90007c03950 R11: 0000000000000000 R12: 0000000000000001
R13: 00000000ffffffff R14: 0000000000000c40 R15: ffff88802678c398
FS:  00007fdf2020c880(0000) GS:ffff88807e100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd318a5fe8 CR3: 000000007f80f001 CR4: 00000000001706e0
Call Trace:
 <TASK>
 ext4_mballoc_query_range+0x4b/0x210 [ext4 dfa189daddffe8fecd3cdfd00564e0f265a8ab80]
 ext4_getfsmap_datadev+0x713/0x890 [ext4 dfa189daddffe8fecd3cdfd00564e0f265a8ab80]
 ext4_getfsmap+0x2b7/0x330 [ext4 dfa189daddffe8fecd3cdfd00564e0f265a8ab80]
 ext4_ioc_getfsmap+0x153/0x2b0 [ext4 dfa189daddffe8fecd3cdfd00564e0f265a8ab80]
 __ext4_ioctl+0x2a7/0x17e0 [ext4 dfa189daddffe8fecd3cdfd00564e0f265a8ab80]
 __x64_sys_ioctl+0x82/0xa0
 do_syscall_64+0x2b/0x80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7fdf20558aff
RSP: 002b:00007ffd318a9e30 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000000200c0 RCX: 00007fdf20558aff
RDX: 00007fdf1feb2010 RSI: 00000000c0c0583b RDI: 0000000000000003
RBP: 00005625c0634be0 R08: 00005625c0634c40 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fdf1feb2010
R13: 00005625be70d994 R14: 0000000000000800 R15: 0000000000000000

For GETFSMAP calls, the caller selects a physical block device by
writing its block number into fsmap_head.fmh_keys[01].fmr_device.
To query mappings for a subrange of the device, the starting byte of the
range is written to fsmap_head.fmh_keys[0].fmr_physical and the last
byte of the range goes in fsmap_head.fmh_keys[1].fmr_physical.

IOWs, to query what mappings overlap with bytes 3-14 of /dev/sda, you'd
set the inputs as follows:

	fmh_keys[0] = { .fmr_device = major(8, 0), .fmr_physical = 3},
	fmh_keys[1] = { .fmr_device = major(8, 0), .fmr_physical = 14},

Which would return you whatever is mapped in the 12 bytes starting at
physical offset 3.

The crash is due to insufficient range validation of keys[1] in
ext4_getfsmap_datadev.  On 1k-block filesystems, block 0 is not part of
the filesystem, which means that s_first_data_block is nonzero.
ext4_get_group_no_and_offset subtracts this quantity from the blocknr
argument before cracking it into a group number and a block number
within a group.  IOWs, block group 0 spans blocks 1-8192 (1-based)
instead of 0-8191 (0-based) like what happens with larger blocksizes.

The net result of this encoding is that blocknr < s_first_data_block is
not a valid input to this function.  The end_fsb variable is set from
the keys that are copied from userspace, which means that in the above
example, its value is zero.  That leads to an underflow here:

	blocknr = blocknr - le32_to_cpu(es->s_first_data_block);

The division then operates on -1:

	offset = do_div(blocknr, EXT4_BLOCKS_PER_GROUP(sb)) >>
		EXT4_SB(sb)->s_cluster_bits;

Leaving an impossibly large group number (2^32-1) in blocknr.
ext4_getfsmap_check_keys checked that keys[0].fmr_physical and
keys[1].fmr_physical are in increasing order, but
ext4_getfsmap_datadev adjusts keys[0].fmr_physical to be at least
s_first_data_block.  This implies that we have to check it again after
the adjustment, which is the piece that I forgot.

Reported-by: syzbot+6be2b977c89f79b6b153@syzkaller.appspotmail.com
Fixes: 4a4956249d ("ext4: fix off-by-one fsmap error on 1k block filesystems")
Link: https://syzkaller.appspot.com/bug?id=79d5768e9bfe362911ac1a5057a36fc6b5c30002
Cc: stable@vger.kernel.org
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/Y+58NPTH7VNGgzdd@magnolia
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 260486287
Change-Id: I07ac9fcb91671016f4b6a10ef5c8711eea74fb26
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
2023-03-20 22:51:52 +00:00
Lukas Czerner
b0d829f27f UPSTREAM: ext4: block range must be validated before use in ext4_mb_clear_bb()
commit 1e1c2b86ef86a8477fd9b9a4f48a6bfe235606f6 upstream.

Block range to free is validated in ext4_free_blocks() using
ext4_inode_block_valid() and then it's passed to ext4_mb_clear_bb().
However in some situations on bigalloc file system the range might be
adjusted after the validation in ext4_free_blocks() which can lead to
troubles on corrupted file systems such as one found by syzkaller that
resulted in the following BUG

kernel BUG at fs/ext4/ext4.h:3319!
PREEMPT SMP NOPTI
CPU: 28 PID: 4243 Comm: repro Kdump: loaded Not tainted 5.19.0-rc6+ #1
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1.fc35 04/01/2014
RIP: 0010:ext4_free_blocks+0x95e/0xa90
Call Trace:
 <TASK>
 ? lock_timer_base+0x61/0x80
 ? __es_remove_extent+0x5a/0x760
 ? __mod_timer+0x256/0x380
 ? ext4_ind_truncate_ensure_credits+0x90/0x220
 ext4_clear_blocks+0x107/0x1b0
 ext4_free_data+0x15b/0x170
 ext4_ind_truncate+0x214/0x2c0
 ? _raw_spin_unlock+0x15/0x30
 ? ext4_discard_preallocations+0x15a/0x410
 ? ext4_journal_check_start+0xe/0x90
 ? __ext4_journal_start_sb+0x2f/0x110
 ext4_truncate+0x1b5/0x460
 ? __ext4_journal_start_sb+0x2f/0x110
 ext4_evict_inode+0x2b4/0x6f0
 evict+0xd0/0x1d0
 ext4_enable_quotas+0x11f/0x1f0
 ext4_orphan_cleanup+0x3de/0x430
 ? proc_create_seq_private+0x43/0x50
 ext4_fill_super+0x295f/0x3ae0
 ? snprintf+0x39/0x40
 ? sget_fc+0x19c/0x330
 ? ext4_reconfigure+0x850/0x850
 get_tree_bdev+0x16d/0x260
 vfs_get_tree+0x25/0xb0
 path_mount+0x431/0xa70
 __x64_sys_mount+0xe2/0x120
 do_syscall_64+0x5b/0x80
 ? do_user_addr_fault+0x1e2/0x670
 ? exc_page_fault+0x70/0x170
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7fdf4e512ace

Fix it by making sure that the block range is properly validated before
used every time it changes in ext4_free_blocks() or ext4_mb_clear_bb().

Link: https://syzkaller.appspot.com/bug?id=5266d464285a03cee9dbfda7d2452a72c3c2ae7c
Reported-by: syzbot+15cd994e273307bf5cfa@syzkaller.appspotmail.com
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Cc: Tadeusz Struk <tadeusz.struk@linaro.org>
Tested-by: Tadeusz Struk <tadeusz.struk@linaro.org>
Link: https://lore.kernel.org/r/20220714165903.58260-1-lczerner@redhat.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 237951970
Change-Id: I2a45df5fe3f47c9408bed79f83a61b68c00efa22
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
2023-03-20 22:46:13 +00:00
Ritesh Harjani
0301fe419a UPSTREAM: ext4: add strict range checks while freeing blocks
commit a00b482b82fb098956a5bed22bd7873e56f152f1 upstream.

Currently ext4_mb_clear_bb() & ext4_group_add_blocks() only checks
whether the given block ranges (which is to be freed) belongs to any FS
metadata blocks or not, of the block's respective block group.
But to detect any FS error early, it is better to add more strict
checkings in those functions which checks whether the given blocks
belongs to any critical FS metadata or not within system-zone.

Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/ddd9143d064774e32d6364a99667817c6e8bfdc0.1644992610.git.riteshh@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 237951970
Change-Id: Ibab39a43f13af206af8c384e7c5590925a089f00
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
2023-03-20 22:46:13 +00:00
Ritesh Harjani
1d4b2a4ad7 UPSTREAM: ext4: add ext4_sb_block_valid() refactored out of ext4_inode_block_valid()
commit 6bc6c2bdf1baca6522b8d9ba976257d722423085 upstream.

This API will be needed at places where we don't have an inode
for e.g. while freeing blocks in ext4_group_add_blocks()

Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Link: https://lore.kernel.org/r/dd34a236543ad5ae7123eeebe0cb69e6bdd44f34.1644992610.git.riteshh@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 237951970
Change-Id: I4a63d1f1c720bce9612600c9c6034ddeda389d01
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
2023-03-20 22:46:13 +00:00
Ritesh Harjani
8ddbd3df93 UPSTREAM: ext4: refactor ext4_free_blocks() to pull out ext4_mb_clear_bb()
commit 8ac3939db99f99667b8eb670cf4baf292896e72d upstream.

ext4_free_blocks() function became too long and confusing, this patch
just pulls out the ext4_mb_clear_bb() function logic from it
which clears the block bitmap and frees it.

No functionality change in this patch

Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/22c30fbb26ba409cf8aa5f0c7912970272c459e8.1644992610.git.riteshh@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 237951970
Change-Id: Ib8c113a85e620eff6d4561a38c97f875a476ab7b
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
2023-03-20 22:46:13 +00:00
Jun Nie
62f5fae173 UPSTREAM: ext4: refuse to create ea block when umounted
commit f31173c19901a96bb2ebf6bcfec8a08df7095c91 upstream.

The ea block expansion need to access s_root while it is
already set as NULL when umount is triggered. Refuse this
request to avoid panic.

Reported-by: syzbot+2dacb8f015bf1420155f@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?id=3613786cb88c93aa1c6a279b1df6a7b201347d08
Link: https://lore.kernel.org/r/20230103014517.495275-3-jun.nie@linaro.org
Cc: stable@kernel.org
Signed-off-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 262267471
Change-Id: I0a5c974e696cf7a132f3cbb8acbe066edba4660f
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
2023-03-14 06:23:51 +00:00
Jun Nie
33245a0eac UPSTREAM: ext4: optimize ea_inode block expansion
commit 1e9d62d252812575ded7c620d8fc67c32ff06c16 upstream.

Copy ea data from inode entry when expanding ea block if possible.
Then remove the ea entry if expansion success. Thus memcpy to a
temporary buffer may be avoided.

If the expansion fails, we do not need to recovery the removed ea
entry neither in this way.

Reported-by: syzbot+2dacb8f015bf1420155f@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?id=3613786cb88c93aa1c6a279b1df6a7b201347d08
Link: https://lore.kernel.org/r/20230103014517.495275-2-jun.nie@linaro.org
Cc: stable@kernel.org
Signed-off-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 262267471
Change-Id: I26e7d45ab21bcf9e38eeb66601067f42b01c11f5
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
2023-03-14 06:23:51 +00:00
Ye Bin
09e5cc649d UPSTREAM: ext4: allocate extended attribute value in vmalloc area
commit cc12a6f25e07ed05d5825a1664b67a970842b2ca upstream.

Now, extended attribute value maximum length is 64K. The memory
requested here does not need continuous physical addresses, so it is
appropriate to use kvmalloc to request memory. At the same time, it
can also cope with the situation that the extended attribute will
become longer in the future.

Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20221208023233.1231330-3-yebin@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 262267471
Change-Id: I92a4a66d8220f46f26a89100ba41c659559443a7
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
2023-03-14 06:23:51 +00:00
Paul Lawrence
7fd4fbe615 ANDROID: incremental fs: Move throttling to outside page lock
Bug: 241479010
Test: incfs_test passes, play confirm behavior in bug is fixed
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: Ie51f2b76d0873057f54fecf7fcc793c66df20969
2023-02-22 17:37:54 +00:00
Paul Lawrence
5d9b0e83e3 ANDROID: incremental fs: Fix race between truncate and write last block
Also fix race whereby multiple providers writinig the same block would
actually write out the same block.

Note that multiple_providers_test started failing when incfs was ported
to 5.15, and these fixes are needed to make the test reliable

Bug: 264703896
Test: incfs-test passes, specifically multiple_providers_test. Ran 100
      times
Change-Id: I05ad5b2b2f62cf218256222cecb79bbe9953bd97
Signed-off-by: Paul Lawrence <paullawrence@google.com>
2023-02-22 17:36:34 +00:00
Baokun Li
80b27def69 UPSTREAM: ext4: add inode table check in __ext4_get_inode_loc to aovid possible infinite loop
commit eee22187b53611e173161e38f61de1c7ecbeb876 upstream.

In do_writepages, if the value returned by ext4_writepages is "-ENOMEM"
and "wbc->sync_mode == WB_SYNC_ALL", retry until the condition is not met.

In __ext4_get_inode_loc, if the bh returned by sb_getblk is NULL,
the function returns -ENOMEM.

In __getblk_slow, if the return value of grow_buffers is less than 0,
the function returns NULL.

When the three processes are connected in series like the following stack,
an infinite loop may occur:

do_writepages					<--- keep retrying
 ext4_writepages
  mpage_map_and_submit_extent
   mpage_map_one_extent
    ext4_map_blocks
     ext4_ext_map_blocks
      ext4_ext_handle_unwritten_extents
       ext4_ext_convert_to_initialized
        ext4_split_extent
         ext4_split_extent_at
          __ext4_ext_dirty
           __ext4_mark_inode_dirty
            ext4_reserve_inode_write
             ext4_get_inode_loc
              __ext4_get_inode_loc		<--- return -ENOMEM
               sb_getblk
                __getblk_gfp
                 __getblk_slow			<--- return NULL
                  grow_buffers
                   grow_dev_page		<--- return -ENXIO
                    ret = (block < end_block) ? 1 : -ENXIO;

In this issue, bg_inode_table_hi is overwritten as an incorrect value.
As a result, `block < end_block` cannot be met in grow_dev_page.
Therefore, __ext4_get_inode_loc always returns '-ENOMEM' and do_writepages
keeps retrying. As a result, the writeback process is in the D state due
to an infinite loop.

Add a check on inode table block in the __ext4_get_inode_loc function by
referring to ext4_read_inode_bitmap to avoid this infinite loop.

Cc: stable@kernel.org
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/20220817132701.3015912-3-libaokun1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 264629802
Bug: 264632463
Change-Id: Id3bb71336059cac33f16fca383e783add3a01295
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
2023-02-20 17:28:48 +00:00
Greg Kroah-Hartman
570621d64f Merge 5.10.168 into android12-5.10-lts
Changes in 5.10.168
	firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region
	bus: sunxi-rsb: Fix error handling in sunxi_rsb_init()
	bpf: Fix incorrect state pruning for <8B spill/fill
	powerpc/imc-pmu: Revert nest_init_lock to being a mutex
	bpf: Fix a possible task gone issue with bpf_send_signal[_thread]() helpers
	ALSA: hda/via: Avoid potential array out-of-bound in add_secret_dac_path()
	bpf: Support <8-byte scalar spill and refill
	bpf: Fix to preserve reg parent/live fields when copying range info
	bpf, sockmap: Check for any of tcp_bpf_prots when cloning a listener
	arm64: dts: imx8mm: Fix pad control for UART1_DTE_RX
	drm/vc4: hdmi: make CEC adapter name unique
	scsi: Revert "scsi: core: map PQ=1, PDT=other values to SCSI_SCAN_TARGET_PRESENT"
	vhost/net: Clear the pending messages when the backend is removed
	WRITE is "data source", not destination...
	READ is "data destination", not source...
	fix iov_iter_bvec() "direction" argument
	fix "direction" argument of iov_iter_kvec()
	virtio-net: execute xdp_do_flush() before napi_complete_done()
	sfc: correctly advertise tunneled IPv6 segmentation
	net: phy: dp83822: Fix null pointer access on DP83825/DP83826 devices
	netrom: Fix use-after-free caused by accept on already connected socket
	netfilter: br_netfilter: disable sabotage_in hook after first suppression
	squashfs: harden sanity check in squashfs_read_xattr_id_table
	net: phy: meson-gxl: Add generic dummy stubs for MMD register access
	igc: return an error if the mac type is unknown in igc_ptp_systim_to_hwtstamp()
	can: j1939: fix errant WARN_ON_ONCE in j1939_session_deactivate
	ata: libata: Fix sata_down_spd_limit() when no link speed is reported
	selftests: net: udpgso_bench_rx: Fix 'used uninitialized' compiler warning
	selftests: net: udpgso_bench_rx/tx: Stop when wrong CLI args are provided
	selftests: net: udpgso_bench: Fix racing bug between the rx/tx programs
	selftests: net: udpgso_bench_tx: Cater for pending datagrams zerocopy benchmarking
	virtio-net: Keep stop() to follow mirror sequence of open()
	net: openvswitch: fix flow memory leak in ovs_flow_cmd_new
	efi: fix potential NULL deref in efi_mem_reserve_persistent
	qede: add netpoll support for qede driver
	qede: execute xdp_do_flush() before napi_complete_done()
	i2c: mxs: suppress probe-deferral error message
	scsi: target: core: Fix warning on RT kernels
	scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress
	i2c: rk3x: fix a bunch of kernel-doc warnings
	platform/x86: dell-wmi: Add a keymap for KEY_MUTE in type 0x0010 table
	net/x25: Fix to not accept on connected socket
	iio: adc: stm32-dfsdm: fill module aliases
	usb: dwc3: dwc3-qcom: Fix typo in the dwc3 vbus override API
	usb: dwc3: qcom: enable vbus override when in OTG dr-mode
	usb: gadget: f_fs: Fix unbalanced spinlock in __ffs_ep0_queue_wait
	vc_screen: move load of struct vc_data pointer in vcs_read() to avoid UAF
	Input: i8042 - move __initconst to fix code styling warning
	Input: i8042 - merge quirk tables
	Input: i8042 - add TUXEDO devices to i8042 quirk tables
	Input: i8042 - add Clevo PCX0DX to i8042 quirk table
	fbcon: Check font dimension limits
	net: qrtr: free memory on error path in radix_tree_insert()
	watchdog: diag288_wdt: do not use stack buffers for hardware data
	watchdog: diag288_wdt: fix __diag288() inline assembly
	ALSA: hda/realtek: Add Acer Predator PH315-54
	efi: Accept version 2 of memory attributes table
	iio: hid: fix the retval in accel_3d_capture_sample
	iio: adc: berlin2-adc: Add missing of_node_put() in error path
	iio:adc:twl6030: Enable measurements of VUSB, VBAT and others
	iio: imu: fxos8700: fix ACCEL measurement range selection
	iio: imu: fxos8700: fix incomplete ACCEL and MAGN channels readback
	iio: imu: fxos8700: fix IMU data bits returned to user space
	iio: imu: fxos8700: fix map label of channel type to MAGN sensor
	iio: imu: fxos8700: fix swapped ACCEL and MAGN channels readback
	iio: imu: fxos8700: fix incorrect ODR mode readback
	iio: imu: fxos8700: fix failed initialization ODR mode assignment
	iio: imu: fxos8700: remove definition FXOS8700_CTRL_ODR_MIN
	iio: imu: fxos8700: fix MAGN sensor scale and unit
	nvmem: qcom-spmi-sdam: fix module autoloading
	parisc: Fix return code of pdc_iodc_print()
	parisc: Wire up PTRACE_GETREGS/PTRACE_SETREGS for compat case
	riscv: disable generation of unwind tables
	mm: hugetlb: proc: check for hugetlb shared PMD in /proc/PID/smaps
	x86/debug: Fix stack recursion caused by wrongly ordered DR7 accesses
	fpga: stratix10-soc: Fix return value check in s10_ops_write_init()
	mm/swapfile: add cond_resched() in get_swap_pages()
	Squashfs: fix handling and sanity checking of xattr_ids count
	drm/i915: Fix potential bit_17 double-free
	nvmem: core: initialise nvmem->id early
	nvmem: core: fix cell removal on error
	serial: 8250_dma: Fix DMA Rx completion race
	serial: 8250_dma: Fix DMA Rx rearm race
	fbdev: smscufx: fix error handling code in ufx_usb_probe
	f2fs: fix to do sanity check on i_extra_isize in is_alive()
	wifi: brcmfmac: Check the count value of channel spec to prevent out-of-bounds reads
	nvmem: core: Fix a conflict between MTD and NVMEM on wp-gpios property
	bpf: Do not reject when the stack read size is different from the tracked scalar size
	iio:adc:twl6030: Enable measurement of VAC
	mm/migration: return errno when isolate_huge_page failed
	migrate: hugetlb: check for hugetlb shared PMD in node migration
	btrfs: limit device extents to the device size
	btrfs: zlib: zero-initialize zlib workspace
	ALSA: hda/realtek: Add Positivo N14KP6-TG
	ALSA: emux: Avoid potential array out-of-bound in snd_emux_xg_control()
	ALSA: hda/realtek: Fix the speaker output on Samsung Galaxy Book2 Pro 360
	tracing: Fix poll() and select() do not work on per_cpu trace_pipe and trace_pipe_raw
	of/address: Return an error when no valid dma-ranges are found
	can: j1939: do not wait 250 ms if the same addr was already claimed
	xfrm: compat: change expression for switch in xfrm_xlate64
	IB/hfi1: Restore allocated resources on failed copyout
	xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()
	IB/IPoIB: Fix legacy IPoIB due to wrong number of queues
	RDMA/usnic: use iommu_map_atomic() under spin_lock()
	xfrm: fix bug with DSCP copy to v6 from v4 tunnel
	bonding: fix error checking in bond_debug_reregister()
	net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY
	ionic: clean interrupt before enabling queue to avoid credit race
	uapi: add missing ip/ipv6 header dependencies for linux/stddef.h
	ice: Do not use WQ_MEM_RECLAIM flag for workqueue
	net: mscc: ocelot: fix VCAP filters not matching on MAC with "protocol 802.1Q"
	net/mlx5e: IPoIB, Show unknown speed instead of error
	net/mlx5: fw_tracer, Clear load bit when freeing string DBs buffers
	net/mlx5: fw_tracer, Zero consumer index when reloading the tracer
	rds: rds_rm_zerocopy_callback() use list_first_entry()
	selftests: forwarding: lib: quote the sysctl values
	ALSA: pci: lx6464es: fix a debug loop
	pinctrl: aspeed: Fix confusing types in return value
	pinctrl: single: fix potential NULL dereference
	spi: dw: Fix wrong FIFO level setting for long xfers
	pinctrl: intel: Restore the pins that used to be in Direct IRQ mode
	cifs: Fix use-after-free in rdata->read_into_pages()
	net: USB: Fix wrong-direction WARNING in plusb.c
	btrfs: free device in btrfs_close_devices for a single device filesystem
	usb: core: add quirk for Alcor Link AK9563 smartcard reader
	usb: typec: altmodes/displayport: Fix probe pin assign check
	ceph: flush cap releases when the session is flushed
	riscv: Fixup race condition on PG_dcache_clean in flush_icache_pte
	arm64: dts: meson-gx: Make mmc host controller interrupts level-sensitive
	arm64: dts: meson-g12-common: Make mmc host controller interrupts level-sensitive
	arm64: dts: meson-axg: Make mmc host controller interrupts level-sensitive
	Fix page corruption caused by racy check in __free_pages
	Linux 5.10.168

Change-Id: I98d1e73edfaab3ce45c15283ae0964527d5e547e
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-17 15:23:41 +00:00
Greg Kroah-Hartman
0ddb73d446 Merge 5.10.166 into android12-5.10-lts
Changes in 5.10.166
	clk: generalize devm_clk_get() a bit
	clk: Provide new devm_clk helpers for prepared and enabled clocks
	memory: atmel-sdramc: Fix missing clk_disable_unprepare in atmel_ramc_probe()
	memory: mvebu-devbus: Fix missing clk_disable_unprepare in mvebu_devbus_probe()
	ARM: dts: imx6ul-pico-dwarf: Use 'clock-frequency'
	ARM: dts: imx7d-pico: Use 'clock-frequency'
	ARM: dts: imx6qdl-gw560x: Remove incorrect 'uart-has-rtscts'
	arm64: dts: imx8mm-beacon: Fix ecspi2 pinmux
	ARM: imx: add missing of_node_put()
	HID: intel_ish-hid: Add check for ishtp_dma_tx_map
	EDAC/highbank: Fix memory leak in highbank_mc_probe()
	firmware: arm_scmi: Harden shared memory access in fetch_response
	firmware: arm_scmi: Harden shared memory access in fetch_notification
	tomoyo: fix broken dependency on *.conf.default
	RDMA/core: Fix ib block iterator counter overflow
	IB/hfi1: Reject a zero-length user expected buffer
	IB/hfi1: Reserve user expected TIDs
	IB/hfi1: Fix expected receive setup error exit issues
	IB/hfi1: Immediately remove invalid memory from hardware
	IB/hfi1: Remove user expected buffer invalidate race
	affs: initialize fsdata in affs_truncate()
	PM: AVS: qcom-cpr: Fix an error handling path in cpr_probe()
	phy: ti: fix Kconfig warning and operator precedence
	ARM: dts: at91: sam9x60: fix the ddr clock for sam9x60
	amd-xgbe: TX Flow Ctrl Registers are h/w ver dependent
	amd-xgbe: Delay AN timeout during KR training
	bpf: Fix pointer-leak due to insufficient speculative store bypass mitigation
	phy: rockchip-inno-usb2: Fix missing clk_disable_unprepare() in rockchip_usb2phy_power_on()
	net: nfc: Fix use-after-free in local_cleanup()
	net: wan: Add checks for NULL for utdm in undo_uhdlc_init and unmap_si_regs
	gpio: mxc: Always set GPIOs used as interrupt source to INPUT mode
	wifi: rndis_wlan: Prevent buffer overflow in rndis_query_oid
	net/sched: sch_taprio: fix possible use-after-free
	l2tp: Serialize access to sk_user_data with sk_callback_lock
	l2tp: Don't sleep and disable BH under writer-side sk_callback_lock
	l2tp: convert l2tp_tunnel_list to idr
	l2tp: close all race conditions in l2tp_tunnel_register()
	net: usb: sr9700: Handle negative len
	net: mdio: validate parameter addr in mdiobus_get_phy()
	HID: check empty report_list in hid_validate_values()
	HID: check empty report_list in bigben_probe()
	net: stmmac: fix invalid call to mdiobus_get_phy()
	HID: revert CHERRY_MOUSE_000C quirk
	usb: gadget: f_fs: Prevent race during ffs_ep0_queue_wait
	usb: gadget: f_fs: Ensure ep0req is dequeued before free_request
	net: mlx5: eliminate anonymous module_init & module_exit
	drm/panfrost: fix GENERIC_ATOMIC64 dependency
	dmaengine: Fix double increment of client_count in dma_chan_get()
	net: macb: fix PTP TX timestamp failure due to packet padding
	l2tp: prevent lockdep issue in l2tp_tunnel_register()
	HID: betop: check shape of output reports
	dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()
	nvme-pci: fix timeout request state check
	tcp: avoid the lookup process failing to get sk in ehash table
	w1: fix deadloop in __w1_remove_master_device()
	w1: fix WARNING after calling w1_process()
	driver core: Fix test_async_probe_init saves device in wrong array
	net: dsa: microchip: ksz9477: port map correction in ALU table entry register
	tcp: fix rate_app_limited to default to 1
	scsi: iscsi: Fix multiple iSCSI session unbind events sent to userspace
	cpufreq: Add Tegra234 to cpufreq-dt-platdev blocklist
	kcsan: test: don't put the expect array on the stack
	ASoC: fsl_micfil: Correct the number of steps on SX controls
	drm: Add orientation quirk for Lenovo ideapad D330-10IGL
	s390/debug: add _ASM_S390_ prefix to header guard
	cpufreq: armada-37xx: stop using 0 as NULL pointer
	ASoC: fsl_ssi: Rename AC'97 streams to avoid collisions with AC'97 CODEC
	ASoC: fsl-asoc-card: Fix naming of AC'97 CODEC widgets
	spi: spidev: remove debug messages that access spidev->spi without locking
	KVM: s390: interrupt: use READ_ONCE() before cmpxchg()
	scsi: hisi_sas: Set a port invalid only if there are no devices attached when refreshing port id
	platform/x86: touchscreen_dmi: Add info for the CSL Panther Tab HD
	platform/x86: asus-nb-wmi: Add alternate mapping for KEY_SCREENLOCK
	lockref: stop doing cpu_relax in the cmpxchg loop
	Revert "selftests/bpf: check null propagation only neither reg is PTR_TO_BTF_ID"
	netfilter: conntrack: do not renew entry stuck in tcp SYN_SENT state
	x86: ACPI: cstate: Optimize C3 entry on AMD CPUs
	fs: reiserfs: remove useless new_opts in reiserfs_remount
	sysctl: add a new register_sysctl_init() interface
	kernel/panic: move panic sysctls to its own file
	panic: unset panic_on_warn inside panic()
	ubsan: no need to unset panic_on_warn in ubsan_epilogue()
	kasan: no need to unset panic_on_warn in end_report()
	exit: Add and use make_task_dead.
	objtool: Add a missing comma to avoid string concatenation
	hexagon: Fix function name in die()
	h8300: Fix build errors from do_exit() to make_task_dead() transition
	csky: Fix function name in csky_alignment() and die()
	ia64: make IA64_MCA_RECOVERY bool instead of tristate
	panic: Separate sysctl logic from CONFIG_SMP
	exit: Put an upper limit on how often we can oops
	exit: Expose "oops_count" to sysfs
	exit: Allow oops_limit to be disabled
	panic: Consolidate open-coded panic_on_warn checks
	panic: Introduce warn_limit
	panic: Expose "warn_count" to sysfs
	docs: Fix path paste-o for /sys/kernel/warn_count
	exit: Use READ_ONCE() for all oops/warn limit reads
	Bluetooth: hci_sync: cancel cmd_timer if hci_open failed
	xhci: Set HCD flag to defer primary roothub registration
	scsi: hpsa: Fix allocation size for scsi_host_alloc()
	module: Don't wait for GOING modules
	tracing: Make sure trace_printk() can output as soon as it can be used
	trace_events_hist: add check for return value of 'create_hist_field'
	ftrace/scripts: Update the instructions for ftrace-bisect.sh
	cifs: Fix oops due to uncleared server->smbd_conn in reconnect
	KVM: x86/vmx: Do not skip segment attributes if unusable bit is set
	thermal: intel: int340x: Protect trip temperature from concurrent updates
	ARM: 9280/1: mm: fix warning on phys_addr_t to void pointer assignment
	EDAC/device: Respect any driver-supplied workqueue polling value
	EDAC/qcom: Do not pass llcc_driv_data as edac_device_ctl_info's pvt_info
	units: Add Watt units
	units: Add SI metric prefix definitions
	i2c: designware: Use DIV_ROUND_CLOSEST() macro
	i2c: designware: use casting of u64 in clock multiplication to avoid overflow
	netlink: prevent potential spectre v1 gadgets
	net: fix UaF in netns ops registration error path
	netfilter: nft_set_rbtree: Switch to node list walk for overlap detection
	netfilter: nft_set_rbtree: skip elements in transaction from garbage collection
	netlink: annotate data races around nlk->portid
	netlink: annotate data races around dst_portid and dst_group
	netlink: annotate data races around sk_state
	ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()
	ipv4: prevent potential spectre v1 gadget in fib_metrics_match()
	netfilter: conntrack: fix vtag checks for ABORT/SHUTDOWN_COMPLETE
	netrom: Fix use-after-free of a listening socket.
	net/sched: sch_taprio: do not schedule in taprio_reset()
	sctp: fail if no bound addresses can be used for a given scope
	net: ravb: Fix possible hang if RIS2_QFF1 happen
	thermal: intel: int340x: Add locking to int340x_thermal_get_trip_type()
	net/tg3: resolve deadlock in tg3_reset_task() during EEH
	net: mdio-mux-meson-g12a: force internal PHY off on mux switch
	tools: gpio: fix -c option of gpio-event-mon
	Revert "Input: synaptics - switch touchpad on HP Laptop 15-da3001TU to RMI mode"
	nouveau: explicitly wait on the fence in nouveau_bo_move_m2mf
	nfsd: Ensure knfsd shuts down when the "nfsd" pseudofs is unmounted
	Revert "selftests/ftrace: Update synthetic event syntax errors"
	block: fix and cleanup bio_check_ro
	x86/i8259: Mark legacy PIC interrupts with IRQ_LEVEL
	netfilter: conntrack: unify established states for SCTP paths
	perf/x86/amd: fix potential integer overflow on shift of a int
	clk: Fix pointer casting to prevent oops in devm_clk_release()
	Linux 5.10.166

Change-Id: Ibf582f7504221c6ee1648da95c49b45e3678708c
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-17 12:18:56 +00:00
Greg Kroah-Hartman
78da590924 Merge 5.10.165 into android12-5.10-lts
Changes in 5.10.165
	btrfs: fix trace event name typo for FLUSH_DELAYED_REFS
	pNFS/filelayout: Fix coalescing test for single DS
	selftests/bpf: check null propagation only neither reg is PTR_TO_BTF_ID
	tools/virtio: initialize spinlocks in vring_test.c
	net/ethtool/ioctl: return -EOPNOTSUPP if we have no phy stats
	RDMA/srp: Move large values to a new enum for gcc13
	btrfs: always report error in run_one_delayed_ref()
	x86/asm: Fix an assembler warning with current binutils
	f2fs: let's avoid panic if extent_tree is not created
	wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices
	wifi: mac80211: sdata can be NULL during AMPDU start
	Add exception protection processing for vd in axi_chan_handle_err function
	zonefs: Detect append writes at invalid locations
	nilfs2: fix general protection fault in nilfs_btree_insert()
	efi: fix userspace infinite retry read efivars after EFI runtime services page fault
	ALSA: hda/realtek - Turn on power early
	drm/i915/gt: Reset twice
	Bluetooth: hci_qca: Wait for timeout during suspend
	Bluetooth: hci_qca: Fix driver shutdown on closed serdev
	io_uring: don't gate task_work run on TIF_NOTIFY_SIGNAL
	io_uring: improve send/recv error handling
	io_uring: ensure recv and recvmsg handle MSG_WAITALL correctly
	io_uring: add flag for disabling provided buffer recycling
	io_uring: support MSG_WAITALL for IORING_OP_SEND(MSG)
	io_uring: allow re-poll if we made progress
	io_uring: fix async accept on O_NONBLOCK sockets
	io_uring: check for valid register opcode earlier
	io_uring: lock overflowing for IOPOLL
	io_uring: fix CQ waiting timeout handling
	io_uring: ensure that cached task references are always put on exit
	io_uring: remove duplicated calls to io_kiocb_ppos
	io_uring: update kiocb->ki_pos at execution time
	io_uring: do not recalculate ppos unnecessarily
	io_uring/rw: defer fsnotify calls to task context
	xhci-pci: set the dma max_seg_size
	usb: xhci: Check endpoint is valid before dereferencing it
	xhci: Fix null pointer dereference when host dies
	xhci: Add update_hub_device override for PCI xHCI hosts
	xhci: Add a flag to disable USB3 lpm on a xhci root port level.
	usb: acpi: add helper to check port lpm capability using acpi _DSM
	xhci: Detect lpm incapable xHC USB3 roothub ports from ACPI tables
	prlimit: do_prlimit needs to have a speculation check
	USB: serial: option: add Quectel EM05-G (GR) modem
	USB: serial: option: add Quectel EM05-G (CS) modem
	USB: serial: option: add Quectel EM05-G (RS) modem
	USB: serial: option: add Quectel EC200U modem
	USB: serial: option: add Quectel EM05CN (SG) modem
	USB: serial: option: add Quectel EM05CN modem
	staging: vchiq_arm: fix enum vchiq_status return types
	USB: misc: iowarrior: fix up header size for USB_DEVICE_ID_CODEMERCS_IOW100
	misc: fastrpc: Don't remove map on creater_process and device_release
	misc: fastrpc: Fix use-after-free race condition for maps
	usb: core: hub: disable autosuspend for TI TUSB8041
	comedi: adv_pci1760: Fix PWM instruction handling
	mmc: sunxi-mmc: Fix clock refcount imbalance during unbind
	mmc: sdhci-esdhc-imx: correct the tuning start tap and step setting
	btrfs: fix race between quota rescan and disable leading to NULL pointer deref
	cifs: do not include page data when checking signature
	thunderbolt: Use correct function to calculate maximum USB3 link rate
	tty: serial: qcom-geni-serial: fix slab-out-of-bounds on RX FIFO buffer
	USB: gadgetfs: Fix race between mounting and unmounting
	USB: serial: cp210x: add SCALANCE LPE-9000 device id
	usb: host: ehci-fsl: Fix module alias
	usb: typec: altmodes/displayport: Add pin assignment helper
	usb: typec: altmodes/displayport: Fix pin assignment calculation
	usb: gadget: g_webcam: Send color matching descriptor per frame
	usb: gadget: f_ncm: fix potential NULL ptr deref in ncm_bitrate()
	usb-storage: apply IGNORE_UAS only for HIKSEMI MD202 on RTL9210
	dt-bindings: phy: g12a-usb2-phy: fix compatible string documentation
	dt-bindings: phy: g12a-usb3-pcie-phy: fix compatible string documentation
	serial: pch_uart: Pass correct sg to dma_unmap_sg()
	dmaengine: tegra210-adma: fix global intr clear
	serial: atmel: fix incorrect baudrate setup
	gsmi: fix null-deref in gsmi_get_variable
	mei: me: add meteor lake point M DID
	drm/i915: re-disable RC6p on Sandy Bridge
	drm/amd/display: Fix set scaling doesn's work
	drm/amd/display: Calculate output_color_space after pixel encoding adjustment
	drm/amd/display: Fix COLOR_SPACE_YCBCR2020_TYPE matrix
	arm64: efi: Execute runtime services from a dedicated stack
	efi: rt-wrapper: Add missing include
	Revert "drm/amdgpu: make display pinning more flexible (v2)"
	x86/fpu: Use _Alignof to avoid undefined behavior in TYPE_ALIGN
	tracing: Use alignof__(struct {type b;}) instead of offsetof()
	io_uring: io_kiocb_update_pos() should not touch file for non -1 offset
	io_uring/net: fix fast_iov assignment in io_setup_async_msg()
	net/ulp: use consistent error code when blocking ULP
	net/mlx5: fix missing mutex_unlock in mlx5_fw_fatal_reporter_err_work()
	Revert "wifi: mac80211: fix memory leak in ieee80211_if_add()"
	soc: qcom: apr: Make qcom,protection-domain optional again
	Bluetooth: hci_qca: Wait for SSR completion during suspend
	Bluetooth: hci_qca: check for SSR triggered flag while suspend
	Bluetooth: hci_qca: Fixed issue during suspend
	mm/khugepaged: fix collapse_pte_mapped_thp() to allow anon_vma
	io_uring: Clean up a false-positive warning from GCC 9.3.0
	io_uring: fix double poll leak on repolling
	io_uring/rw: ensure kiocb_end_write() is always called
	io_uring/rw: remove leftover debug statement
	Linux 5.10.165

Change-Id: Icb91157d9fa1b56cd79eedb8a9cc6118d0705244
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-16 16:43:59 +00:00
Greg Kroah-Hartman
b0d4a37a43 This is the 5.10.164 stable release
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEZH8oZUiU471FcZm+ONu9yGCSaT4FAmPHzb8ACgkQONu9yGCS
 aT5DUxAAvqTdbbizm4D4EV4ZtdE/N0IJ63VhREMdR1Y21hCuvv5V4Zeh0gpGFKKy
 RljvUXxDXaZjVzJsTPgsmPaEJOrftzZNU1Mq3ucviCXYFl3tWFiJy/FuTaCNCY+r
 YhvjnZWFjwh+mvHyV3wzFdn41XG2GKxq2vgqUFI9BGCM9tw5T4Z6moLPTvcibt2X
 yldJ9U76NgxNDVV0IYilQrMjPe3Pm819Z3ZP9S0O6LJEPjmssB6omlFHyLxUcpC+
 8DiRb49Iild6HJsrbqqv0oHMNSiykx+VDMid/vQtTk4HrAL+eD2Ym17yRnlLzots
 dmuUSdZEpZriH2bCIbNeBDV300x8atLhELtA885wEYj0BKe1QBJMyA0q1PFdKip3
 73wPyi/MCVtCxv752O//PaxynUwZaWlQFH1G8Ry2VpSeiK5A7ZiWWkBDTqLhkRJL
 b0e3crODlZM0ng4nRRMrXZZAw+FKzghVSO8ae/4+q5Y9vyj6iadd7UcwXG4cmZXN
 ZYXT3+3O7P08dyHW4EL8tD7AmxprP7ccePyKsMu6T7wQPuEgFltaJUDHsGnJ68Jx
 I+5QzrVED3OTjt9jpYVbYjJ1HjL0jQHxfuBNKCgC34wMzwdlZhHUQVbi0DECk2Qf
 40MCrjEsAXJWlX/Rr2bsVeYFSyi4aCI1kckXKxRQznOnFZirA5M=
 =WjXh
 -----END PGP SIGNATURE-----

Merge 5.10.164 into android12-5.10-lts

Changes in 5.10.164
	netfilter: nft_payload: incorrect arithmetics when fetching VLAN header bits
	ALSA: hda/realtek: Enable mute/micmute LEDs on HP Spectre x360 13-aw0xxx
	KVM: arm64: Fix S1PTW handling on RO memslots
	efi: tpm: Avoid READ_ONCE() for accessing the event log
	docs: Fix the docs build with Sphinx 6.0
	perf auxtrace: Fix address filter duplicate symbol selection
	s390/kexec: fix ipl report address for kdump
	ASoC: qcom: lpass-cpu: Fix fallback SD line index handling
	s390/cpum_sf: add READ_ONCE() semantics to compare and swap loops
	s390/percpu: add READ_ONCE() to arch_this_cpu_to_op_simple()
	cifs: Fix uninitialized memory read for smb311 posix symlink create
	drm/msm/adreno: Make adreno quirks not overwrite each other
	drm/msm/dp: do not complete dp_aux_cmd_fifo_tx() if irq is not for aux transfer
	platform/x86: sony-laptop: Don't turn off 0x153 keyboard backlight during probe
	ixgbe: fix pci device refcount leak
	ipv6: raw: Deduct extension header length in rawv6_push_pending_frames
	bus: mhi: host: Fix race between channel preparation and M0 event
	iommu/amd: Add PCI segment support for ivrs_[ioapic/hpet/acpihid] commands
	iommu/amd: Fix ill-formed ivrs_ioapic, ivrs_hpet and ivrs_acpihid options
	clk: imx8mp: Add DISP2 pixel clock
	clk: imx8mp: add clkout1/2 support
	dt-bindings: clocks: imx8mp: Add ID for usb suspend clock
	clk: imx: imx8mp: add shared clk gate for usb suspend clk
	xhci: Avoid parsing transfer events several times
	xhci: get isochronous ring directly from endpoint structure
	xhci: adjust parameters passed to cleanup_halted_endpoint()
	xhci: Add xhci_reset_halted_ep() helper function
	xhci: move xhci_td_cleanup so it can be called by more functions
	xhci: store TD status in the td struct instead of passing it along
	xhci: move and rename xhci_cleanup_halted_endpoint()
	xhci: Prevent infinite loop in transaction errors recovery for streams
	usb: ulpi: defer ulpi_register on ulpi_read_id timeout
	ext4: fix uninititialized value in 'ext4_evict_inode'
	xfrm: fix rcu lock in xfrm_notify_userpolicy()
	netfilter: ipset: Fix overflow before widen in the bitmap_ip_create() function.
	powerpc/imc-pmu: Fix use of mutex in IRQs disabled section
	x86/boot: Avoid using Intel mnemonics in AT&T syntax asm
	EDAC/device: Fix period calculation in edac_device_reset_delay_period()
	regulator: da9211: Use irq handler when ready
	ASoC: wm8904: fix wrong outputs volume after power reactivation
	tipc: fix unexpected link reset due to discovery messages
	octeontx2-af: Update get/set resource count functions
	octeontx2-af: Map NIX block from CGX connection
	octeontx2-af: Fix LMAC config in cgx_lmac_rx_tx_enable
	hvc/xen: lock console list traversal
	nfc: pn533: Wait for out_urb's completion in pn533_usb_send_frame()
	net/sched: act_mpls: Fix warning during failed attribute validation
	net/mlx5: Fix ptp max frequency adjustment range
	net/mlx5e: Don't support encap rules with gbp option
	mm: Always release pages to the buddy allocator in memblock_free_late().
	iommu/mediatek-v1: Add error handle for mtk_iommu_probe
	iommu/mediatek-v1: Fix an error handling path in mtk_iommu_v1_probe()
	Documentation: KVM: add API issues section
	KVM: x86: Do not return host topology information from KVM_GET_SUPPORTED_CPUID
	x86/resctrl: Use task_curr() instead of task_struct->on_cpu to prevent unnecessary IPI
	x86/resctrl: Fix task CLOSID/RMID update race
	arm64: atomics: format whitespace consistently
	arm64: atomics: remove LL/SC trampolines
	arm64: cmpxchg_double*: hazard against entire exchange variable
	efi: fix NULL-deref in init error path
	drm/virtio: Fix GEM handle creation UAF
	io_uring/io-wq: free worker if task_work creation is canceled
	io_uring/io-wq: only free worker if it was allocated for creation
	Revert "usb: ulpi: defer ulpi_register on ulpi_read_id timeout"
	Linux 5.10.164

Change-Id: I049d9a56837b18c20b2245687f03eb75d3413e0f
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-16 13:59:20 +00:00
Xiubo Li
6ff8b48253 ceph: flush cap releases when the session is flushed
commit e7d84c6a1296d059389f7342d9b4b7defb518d3a upstream.

MDS expects the completed cap release prior to responding to the
session flush for cache drop.

Cc: stable@vger.kernel.org
Link: http://tracker.ceph.com/issues/38009
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-15 17:22:26 +01:00
Anand Jain
dd965ad39d btrfs: free device in btrfs_close_devices for a single device filesystem
commit 5f58d783fd7823b2c2d5954d1126e702f94bfc4c upstream.

We have this check to make sure we don't accidentally add older devices
that may have disappeared and re-appeared with an older generation from
being added to an fs_devices (such as a replace source device). This
makes sense, we don't want stale disks in our file system. However for
single disks this doesn't really make sense.

I've seen this in testing, but I was provided a reproducer from a
project that builds btrfs images on loopback devices. The loopback
device gets cached with the new generation, and then if it is re-used to
generate a new file system we'll fail to mount it because the new fs is
"older" than what we have in cache.

Fix this by freeing the cache when closing the device for a single device
filesystem. This will ensure that the mount command passed device path is
scanned successfully during the next mount.

CC: stable@vger.kernel.org # 5.10+
Reported-by: Daan De Meyer <daandemeyer@fb.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-15 17:22:26 +01:00
ZhaoLong Wang
2b693fe3f7 cifs: Fix use-after-free in rdata->read_into_pages()
commit aa5465aeca3c66fecdf7efcf554aed79b4c4b211 upstream.

When the network status is unstable, use-after-free may occur when
read data from the server.

  BUG: KASAN: use-after-free in readpages_fill_pages+0x14c/0x7e0

  Call Trace:
   <TASK>
   dump_stack_lvl+0x38/0x4c
   print_report+0x16f/0x4a6
   kasan_report+0xb7/0x130
   readpages_fill_pages+0x14c/0x7e0
   cifs_readv_receive+0x46d/0xa40
   cifs_demultiplex_thread+0x121c/0x1490
   kthread+0x16b/0x1a0
   ret_from_fork+0x2c/0x50
   </TASK>

  Allocated by task 2535:
   kasan_save_stack+0x22/0x50
   kasan_set_track+0x25/0x30
   __kasan_kmalloc+0x82/0x90
   cifs_readdata_direct_alloc+0x2c/0x110
   cifs_readdata_alloc+0x2d/0x60
   cifs_readahead+0x393/0xfe0
   read_pages+0x12f/0x470
   page_cache_ra_unbounded+0x1b1/0x240
   filemap_get_pages+0x1c8/0x9a0
   filemap_read+0x1c0/0x540
   cifs_strict_readv+0x21b/0x240
   vfs_read+0x395/0x4b0
   ksys_read+0xb8/0x150
   do_syscall_64+0x3f/0x90
   entry_SYSCALL_64_after_hwframe+0x72/0xdc

  Freed by task 79:
   kasan_save_stack+0x22/0x50
   kasan_set_track+0x25/0x30
   kasan_save_free_info+0x2e/0x50
   __kasan_slab_free+0x10e/0x1a0
   __kmem_cache_free+0x7a/0x1a0
   cifs_readdata_release+0x49/0x60
   process_one_work+0x46c/0x760
   worker_thread+0x2a4/0x6f0
   kthread+0x16b/0x1a0
   ret_from_fork+0x2c/0x50

  Last potentially related work creation:
   kasan_save_stack+0x22/0x50
   __kasan_record_aux_stack+0x95/0xb0
   insert_work+0x2b/0x130
   __queue_work+0x1fe/0x660
   queue_work_on+0x4b/0x60
   smb2_readv_callback+0x396/0x800
   cifs_abort_connection+0x474/0x6a0
   cifs_reconnect+0x5cb/0xa50
   cifs_readv_from_socket.cold+0x22/0x6c
   cifs_read_page_from_socket+0xc1/0x100
   readpages_fill_pages.cold+0x2f/0x46
   cifs_readv_receive+0x46d/0xa40
   cifs_demultiplex_thread+0x121c/0x1490
   kthread+0x16b/0x1a0
   ret_from_fork+0x2c/0x50

The following function calls will cause UAF of the rdata pointer.

readpages_fill_pages
 cifs_read_page_from_socket
  cifs_readv_from_socket
   cifs_reconnect
    __cifs_reconnect
     cifs_abort_connection
      mid->callback() --> smb2_readv_callback
       queue_work(&rdata->work)  # if the worker completes first,
                                 # the rdata is freed
          cifs_readv_complete
            kref_put
              cifs_readdata_release
                kfree(rdata)
 return rdata->...               # UAF in readpages_fill_pages()

Similarly, this problem also occurs in the uncache_fill_pages().

Fix this by adjusts the order of condition judgment in the return
statement.

Signed-off-by: ZhaoLong Wang <wangzhaolong1@huawei.com>
Cc: stable@vger.kernel.org
Acked-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-15 17:22:26 +01:00
Alexander Potapenko
f1fd16cd97 btrfs: zlib: zero-initialize zlib workspace
commit eadd7deca0ad8a83edb2b894d8326c78e78635d6 upstream.

KMSAN reports uses of uninitialized memory in zlib's longest_match()
called on memory originating from zlib_alloc_workspace().
This issue is known by zlib maintainers and is claimed to be harmless,
but to be on the safe side we'd better initialize the memory.

Link: https://zlib.net/zlib_faq.html#faq36
Reported-by: syzbot+14d9e7602ebdf7ec0a60@syzkaller.appspotmail.com
CC: stable@vger.kernel.org # 5.4+
Signed-off-by: Alexander Potapenko <glider@google.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-15 17:22:22 +01:00
Josef Bacik
a1406d5aa3 btrfs: limit device extents to the device size
commit 3c538de0f2a74d50aff7278c092f88ae59cee688 upstream.

There was a recent regression in btrfs/177 that started happening with
the size class patches ("btrfs: introduce size class to block group
allocator").  This however isn't a regression introduced by those
patches, but rather the bug was uncovered by a change in behavior in
these patches.  The patches triggered more chunk allocations in the
^free-space-tree case, which uncovered a race with device shrink.

The problem is we will set the device total size to the new size, and
use this to find a hole for a device extent.  However during shrink we
may have device extents allocated past this range, so we could
potentially find a hole in a range past our new shrink size.  We don't
actually limit our found extent to the device size anywhere, we assume
that we will not find a hole past our device size.  This isn't true with
shrink as we're relocating block groups and thus creating holes past the
device size.

Fix this by making sure we do not search past the new device size, and
if we wander into any device extents that start after our device size
simply break from the loop and use whatever hole we've already found.

CC: stable@vger.kernel.org # 4.14+
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-15 17:22:22 +01:00
Chao Yu
914e38f02a f2fs: fix to do sanity check on i_extra_isize in is_alive()
commit d3b7b4afd6b2c344eabf9cc26b8bfa903c164c7c upstream.

syzbot found a f2fs bug:

BUG: KASAN: slab-out-of-bounds in data_blkaddr fs/f2fs/f2fs.h:2891 [inline]
BUG: KASAN: slab-out-of-bounds in is_alive fs/f2fs/gc.c:1117 [inline]
BUG: KASAN: slab-out-of-bounds in gc_data_segment fs/f2fs/gc.c:1520 [inline]
BUG: KASAN: slab-out-of-bounds in do_garbage_collect+0x386a/0x3df0 fs/f2fs/gc.c:1734
Read of size 4 at addr ffff888076557568 by task kworker/u4:3/52

CPU: 1 PID: 52 Comm: kworker/u4:3 Not tainted 6.1.0-rc4-syzkaller-00362-gfef7fd48922d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: writeback wb_workfn (flush-7:0)
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:284 [inline]
print_report+0x15e/0x45d mm/kasan/report.c:395
kasan_report+0xbb/0x1f0 mm/kasan/report.c:495
data_blkaddr fs/f2fs/f2fs.h:2891 [inline]
is_alive fs/f2fs/gc.c:1117 [inline]
gc_data_segment fs/f2fs/gc.c:1520 [inline]
do_garbage_collect+0x386a/0x3df0 fs/f2fs/gc.c:1734
f2fs_gc+0x88c/0x20a0 fs/f2fs/gc.c:1831
f2fs_balance_fs+0x544/0x6b0 fs/f2fs/segment.c:410
f2fs_write_inode+0x57e/0xe20 fs/f2fs/inode.c:753
write_inode fs/fs-writeback.c:1440 [inline]
__writeback_single_inode+0xcfc/0x1440 fs/fs-writeback.c:1652
writeback_sb_inodes+0x54d/0xf90 fs/fs-writeback.c:1870
wb_writeback+0x2c5/0xd70 fs/fs-writeback.c:2044
wb_do_writeback fs/fs-writeback.c:2187 [inline]
wb_workfn+0x2dc/0x12f0 fs/fs-writeback.c:2227
process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289
worker_thread+0x665/0x1080 kernel/workqueue.c:2436
kthread+0x2e4/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306

The root cause is that we forgot to do sanity check on .i_extra_isize
in below path, result in accessing invalid address later, fix it.
- gc_data_segment
 - is_alive
  - data_blkaddr
   - offset_in_addr

Reported-by: syzbot+f8f3dfa4abc489e768a1@syzkaller.appspotmail.com
Link: https://lore.kernel.org/linux-f2fs-devel/0000000000003cb3c405ed5c17f9@google.com/T/#u
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-15 17:22:21 +01:00
Phillip Lougher
5c4d4a83bf Squashfs: fix handling and sanity checking of xattr_ids count
commit f65c4bbbd682b0877b669828b4e033b8d5d0a2dc upstream.

A Sysbot [1] corrupted filesystem exposes two flaws in the handling and
sanity checking of the xattr_ids count in the filesystem.  Both of these
flaws cause computation overflow due to incorrect typing.

In the corrupted filesystem the xattr_ids value is 4294967071, which
stored in a signed variable becomes the negative number -225.

Flaw 1 (64-bit systems only):

The signed integer xattr_ids variable causes sign extension.

This causes variable overflow in the SQUASHFS_XATTR_*(A) macros.  The
variable is first multiplied by sizeof(struct squashfs_xattr_id) where the
type of the sizeof operator is "unsigned long".

On a 64-bit system this is 64-bits in size, and causes the negative number
to be sign extended and widened to 64-bits and then become unsigned.  This
produces the very large number 18446744073709548016 or 2^64 - 3600.  This
number when rounded up by SQUASHFS_METADATA_SIZE - 1 (8191 bytes) and
divided by SQUASHFS_METADATA_SIZE overflows and produces a length of 0
(stored in len).

Flaw 2 (32-bit systems only):

On a 32-bit system the integer variable is not widened by the unsigned
long type of the sizeof operator (32-bits), and the signedness of the
variable has no effect due it always being treated as unsigned.

The above corrupted xattr_ids value of 4294967071, when multiplied
overflows and produces the number 4294963696 or 2^32 - 3400.  This number
when rounded up by SQUASHFS_METADATA_SIZE - 1 (8191 bytes) and divided by
SQUASHFS_METADATA_SIZE overflows again and produces a length of 0.

The effect of the 0 length computation:

In conjunction with the corrupted xattr_ids field, the filesystem also has
a corrupted xattr_table_start value, where it matches the end of
filesystem value of 850.

This causes the following sanity check code to fail because the
incorrectly computed len of 0 matches the incorrect size of the table
reported by the superblock (0 bytes).

    len = SQUASHFS_XATTR_BLOCK_BYTES(*xattr_ids);
    indexes = SQUASHFS_XATTR_BLOCKS(*xattr_ids);

    /*
     * The computed size of the index table (len bytes) should exactly
     * match the table start and end points
    */
    start = table_start + sizeof(*id_table);
    end = msblk->bytes_used;

    if (len != (end - start))
            return ERR_PTR(-EINVAL);

Changing the xattr_ids variable to be "usigned int" fixes the flaw on a
64-bit system.  This relies on the fact the computation is widened by the
unsigned long type of the sizeof operator.

Casting the variable to u64 in the above macro fixes this flaw on a 32-bit
system.

It also means 64-bit systems do not implicitly rely on the type of the
sizeof operator to widen the computation.

[1] https://lore.kernel.org/lkml/000000000000cd44f005f1a0f17f@google.com/

Link: https://lkml.kernel.org/r/20230127061842.10965-1-phillip@squashfs.org.uk
Fixes: 506220d2ba21 ("squashfs: add more sanity checks in xattr id lookup")
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Reported-by: <syzbot+082fa4af80a5bb1a9843@syzkaller.appspotmail.com>
Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>
Cc: Fedor Pchelkin <pchelkin@ispras.ru>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-15 17:22:20 +01:00
Mike Kravetz
556959327b mm: hugetlb: proc: check for hugetlb shared PMD in /proc/PID/smaps
commit 3489dbb696d25602aea8c3e669a6d43b76bd5358 upstream.

Patch series "Fixes for hugetlb mapcount at most 1 for shared PMDs".

This issue of mapcount in hugetlb pages referenced by shared PMDs was
discussed in [1].  The following two patches address user visible behavior
caused by this issue.

[1] https://lore.kernel.org/linux-mm/Y9BF+OCdWnCSilEu@monkey/


This patch (of 2):

A hugetlb page will have a mapcount of 1 if mapped by multiple processes
via a shared PMD.  This is because only the first process increases the
map count, and subsequent processes just add the shared PMD page to their
page table.

page_mapcount is being used to decide if a hugetlb page is shared or
private in /proc/PID/smaps.  Pages referenced via a shared PMD were
incorrectly being counted as private.

To fix, check for a shared PMD if mapcount is 1.  If a shared PMD is found
count the hugetlb page as shared.  A new helper to check for a shared PMD
is added.

[akpm@linux-foundation.org: simplification, per David]
[akpm@linux-foundation.org: hugetlb.h: include page_ref.h for page_count()]
Link: https://lkml.kernel.org/r/20230126222721.222195-2-mike.kravetz@oracle.com
Fixes: 25ee01a2fc ("mm: hugetlb: proc: add hugetlb-related fields to /proc/PID/smaps")
Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Acked-by: Peter Xu <peterx@redhat.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: James Houghton <jthoughton@google.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Naoya Horiguchi <naoya.horiguchi@linux.dev>
Cc: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Cc: Yang Shi <shy828301@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-15 17:22:19 +01:00
Fedor Pchelkin
de2785aa34 squashfs: harden sanity check in squashfs_read_xattr_id_table
[ Upstream commit 72e544b1b28325fe78a4687b980871a7e4101f76 ]

While mounting a corrupted filesystem, a signed integer '*xattr_ids' can
become less than zero.  This leads to the incorrect computation of 'len'
and 'indexes' values which can cause null-ptr-deref in copy_bio_to_actor()
or out-of-bounds accesses in the next sanity checks inside
squashfs_read_xattr_id_table().

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

Link: https://lkml.kernel.org/r/20230117105226.329303-2-pchelkin@ispras.ru
Fixes: 506220d2ba21 ("squashfs: add more sanity checks in xattr id lookup")
Reported-by: <syzbot+082fa4af80a5bb1a9843@syzkaller.appspotmail.com>
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Cc: Phillip Lougher <phillip@squashfs.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-15 17:22:12 +01:00
qixiaoyu1
3fcc69ca4d FROMGIT: f2fs: add sysfs nodes to set last_age_weight
Bug: 267580491
(cherry picked from commit d23be468eada21c828058e0e8d60409eaec373ab
 https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev)
Signed-off-by: qixiaoyu1 <qixiaoyu1@xiaomi.com>
Signed-off-by: xiongping1 <xiongping1@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Change-Id: I88b795ec90f4589676daed4919db31b26574c84b
2023-02-09 01:00:54 +00:00
qixiaoyu1
899476c3af FROMGIT: f2fs: fix wrong calculation of block age
Currently we wrongly calculate the new block age to
old * LAST_AGE_WEIGHT / 100.

Fix it to new * (100 - LAST_AGE_WEIGHT) / 100
                + old * LAST_AGE_WEIGHT / 100.

Bug: 267580491
(cherry picked from commit b03a41a495df35f8e8d25220878bd6b8472d9396
 https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev)
Signed-off-by: qixiaoyu1 <qixiaoyu1@xiaomi.com>
Signed-off-by: xiongping1 <xiongping1@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Change-Id: If06f04c63f9ed0de4e1d734936d9ea9a6c613d64
2023-02-09 01:00:54 +00:00
Jens Axboe
72d1c48675 UPSTREAM: eventfd: provide a eventfd_signal_mask() helper
[ Upstream commit 03e02acda8e267a8183e1e0ed289ff1ef9cd7ed8 ]

This is identical to eventfd_signal(), but it allows the caller to pass
in a mask to be used for the poll wakeup key. The use case is avoiding
repeated multishot triggers if we have a dependency between eventfd and
io_uring.

If we setup an eventfd context and register that as the io_uring eventfd,
and at the same time queue a multishot poll request for the eventfd
context, then any CQE posted will repeatedly trigger the multishot request
until it terminates when the CQ ring overflows.

In preparation for io_uring detecting this circular dependency, add the
mentioned helper so that io_uring can pass in EPOLL_URING as part of the
poll wakeup key.

Cc: stable@vger.kernel.org # 6.0
[axboe: fold in !CONFIG_EVENTFD fix from Zhang Qilong]
Change-Id: I0c38a56887777f85cb10673b7ca3b5ca4d70c61b
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 4ef66581d7)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:16 +00:00
Jens Axboe
d7a47b29d5 UPSTREAM: eventpoll: add EPOLL_URING_WAKE poll wakeup flag
[ Upstream commit caf1aeaffc3b09649a56769e559333ae2c4f1802 ]

We can have dependencies between epoll and io_uring. Consider an epoll
context, identified by the epfd file descriptor, and an io_uring file
descriptor identified by iofd. If we add iofd to the epfd context, and
arm a multishot poll request for epfd with iofd, then the multishot
poll request will repeatedly trigger and generate events until terminated
by CQ ring overflow. This isn't a desired behavior.

Add EPOLL_URING so that io_uring can pass it in as part of the poll wakeup
key, and io_uring can check for that to detect a potential recursive
invocation.

Cc: stable@vger.kernel.org # 6.0
Change-Id: Ifafcb236b2cfe3ca3e7254a0155625fce00fd038
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2f09377502)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:16 +00:00
Jens Axboe
7c9f38c09b UPSTREAM: Revert "proc: don't allow async path resolution of /proc/self components"
[ Upstream commit 9e8d9e829c2142cf1d7756e9ed2e0b4c7569d84c ]

This reverts commit 8d4c3e76e3.

No longer needed, as the io-wq worker threads have the right identity.

Change-Id: I6c12f6f957e1c789f4fd5b21379d167f17feb3ea
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit b76c5373f0)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:15 +00:00
Jens Axboe
498b35b3c4 UPSTREAM: Revert "proc: don't allow async path resolution of /proc/thread-self components"
[ Upstream commit 2587890b5e2892dfecaa5e5126bdac8076a4e6f7 ]

This reverts commit 0d4370cfe36b7f1719123b621a4ec4d9c7a25f89.

No longer needed, as the io-wq worker threads have the right identity.

Change-Id: I7a28e02a0a1911555853cf4046e3a09c7e36d4a2
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 87cb08dc6b)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:15 +00:00
Jens Axboe
5e6347b586 UPSTREAM: io_uring: import 5.15-stable io_uring
No upstream commit exists.

This imports the io_uring codebase from 5.15.85, wholesale. Changes
from that code base:

- Drop IOCB_ALLOC_CACHE, we don't have that in 5.10.
- Drop MKDIRAT/SYMLINKAT/LINKAT. Would require further VFS backports,
  and we don't support these in 5.10 to begin with.
- sock_from_file() old style calling convention.
- Use compat_get_bitmap() only for CONFIG_COMPAT=y

Change-Id: I7ce5226d6b39763ffc246fd6357cece9aafd4b59
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 788d082426)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:15 +00:00
Eric W. Biederman
b25b8c55ba UPSTREAM: coredump: Limit what can interrupt coredumps
[ Upstream commit 06af8679449d4ed282df13191fc52d5ba28ec536 ]

Olivier Langlois has been struggling with coredumps being incompletely written in
processes using io_uring.

Olivier Langlois <olivier@trillion01.com> writes:
> io_uring is a big user of task_work and any event that io_uring made a
> task waiting for that occurs during the core dump generation will
> generate a TIF_NOTIFY_SIGNAL.
>
> Here are the detailed steps of the problem:
> 1. io_uring calls vfs_poll() to install a task to a file wait queue
>    with io_async_wake() as the wakeup function cb from io_arm_poll_handler()
> 2. wakeup function ends up calling task_work_add() with TWA_SIGNAL
> 3. task_work_add() sets the TIF_NOTIFY_SIGNAL bit by calling
>    set_notify_signal()

The coredump code deliberately supports being interrupted by SIGKILL,
and depends upon prepare_signal to filter out all other signals.   Now
that signal_pending includes wake ups for TIF_NOTIFY_SIGNAL this hack
in dump_emitted by the coredump code no longer works.

Make the coredump code more robust by explicitly testing for all of
the wakeup conditions the coredump code supports.  This prevents
new wakeup conditions from breaking the coredump code, as well
as fixing the current issue.

The filesystem code that the coredump code uses already limits
itself to only aborting on fatal_signal_pending.  So it should
not develop surprising wake-up reasons either.

v2: Don't remove the now unnecessary code in prepare_signal.

Cc: stable@vger.kernel.org
Fixes: 12db8b690010 ("entry: Add support for TIF_NOTIFY_SIGNAL")
Reported-by: Olivier Langlois <olivier@trillion01.com>
Change-Id: I84870bf0a620a97af50d9b495dd225f9ee2b66b8
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 4b4d2c7992)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:13 +00:00
Jens Axboe
00af4b88ad UPSTREAM: fs: provide locked helper variant of close_fd_get_file()
[ Upstream commit 53dec2ea74f2ef360e8455439be96a780baa6097 ]

Assumes current->files->file_lock is already held on invocation. Helps
the caller check the file before removing the fd, if it needs to.

Change-Id: Idd87700a119403ce3867aa52294a14213b505faa
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit d2136fc145)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:09 +00:00
Eric W. Biederman
82c3becbef UPSTREAM: file: Rename __close_fd_get_file close_fd_get_file
[ Upstream commit 9fe83c43e71cdb8e5b9520bcb98706a2b3c680c8 ]

The function close_fd_get_file is explicitly a variant of
__close_fd[1].  Now that __close_fd has been renamed close_fd, rename
close_fd_get_file to be consistent with close_fd.

When __alloc_fd, __close_fd and __fd_install were introduced the
double underscore indicated that the function took a struct
files_struct parameter.  The function __close_fd_get_file never has so
the naming has always been inconsistent.  This just cleans things up
so there are not any lingering mentions or references __close_fd left
in the code.

[1] 80cd795630 ("binder: fix use-after-free due to ksys_close() during fdget()")
Link: https://lkml.kernel.org/r/20201120231441.29911-23-ebiederm@xmission.com
Change-Id: I1c759a36dfa09259eff5b09127fde4e041777a3e
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 57b2053036)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:09 +00:00
Jens Axboe
98006a0a15 UPSTREAM: fs: make do_renameat2() take struct filename
[ Upstream commit e886663cfd029b64a1d8da7efae7014526d884e9 ]

Pass in the struct filename pointers instead of the user string, and
update the three callers to do the same.

This behaves like do_unlinkat(), which also takes a filename struct and
puts it when it is done. Converting callers is then trivial.

Change-Id: Ie23f87f8c6bb18a61254a0848d861ad6fad14232
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 214f80e251)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:09 +00:00
Jens Axboe
2507b99d9a UPSTREAM: fs: expose LOOKUP_CACHED through openat2() RESOLVE_CACHED
[ Upstream commit 99668f618062816ca7ba639b007eb145b9d3d41e ]

Now that we support non-blocking path resolution internally, expose it
via openat2() in the struct open_how ->resolve flags. This allows
applications using openat2() to limit path resolution to the extent that
it is already cached.

If the lookup cannot be satisfied in a non-blocking manner, openat2(2)
will return -1/-EAGAIN.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Change-Id: Iddb58268e0a2b8adfc54e56192da43dda1868d8c
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 5683caa735)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:08 +00:00
Al Viro
6b92128557 UPSTREAM: Make sure nd->path.mnt and nd->path.dentry are always valid pointers
[ Upstream commit 7d01ef7585c07afaf487759a48486228cd065726 ]

Initialize them in set_nameidata() and make sure that terminate_walk() clears them
once the pointers become potentially invalid (i.e. we leave RCU mode or drop them
in non-RCU one).  Currently we have "path_init() always initializes them and nobody
accesses them outside of path_init()/terminate_walk() segments", which is asking
for trouble.

With that change we would have nd->path.{mnt,dentry}
	1) always valid - NULL or pointing to currently allocated objects.
	2) non-NULL while we are successfully walking
	3) NULL when we are not walking at all
	4) contributing to refcounts whenever non-NULL outside of RCU mode.

Fixes: 6c6ec2b0a3e0 ("fs: add support for LOOKUP_CACHED")
Reported-by: syzbot+c88a7030da47945a3cc3@syzkaller.appspotmail.com
Tested-by: Christian Brauner <christian.brauner@ubuntu.com>
Change-Id: I0532db6ea79fb760d50a88f75e2bb0691c24e93c
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 0cf0ce8fb5)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:08 +00:00
Al Viro
eaf736aa71 UPSTREAM: fix handling of nd->depth on LOOKUP_CACHED failures in try_to_unlazy*
[ Upstream commit eacd9aa8cedeb412842c7b339adbaa0477fdd5ad ]

After switching to non-RCU mode, we want nd->depth to match the number
of entries in nd->stack[] that need eventual path_put().
legitimize_links() takes care of that on failures; unfortunately,
failure exits added for LOOKUP_CACHED do not.

We could add the logics for that into those failure exits, both in
try_to_unlazy() and in try_to_unlazy_next(), but since both checks
are immediately followed by legitimize_links() and there's no calls
of legitimize_links() other than those two...  It's easier to
move the check (and required handling of nd->depth on failure) into
legitimize_links() itself.

[caught by Jens: ... and since we are zeroing ->depth here, we need
to do drop_links() first]

Fixes: 6c6ec2b0a3e0 "fs: add support for LOOKUP_CACHED"
Tested-by: Jens Axboe <axboe@kernel.dk>
Change-Id: I6cf685bfce81acb4d68c3991b2a936968a39c739
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 146fe79fff)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:08 +00:00
Jens Axboe
7928a1689b UPSTREAM: fs: add support for LOOKUP_CACHED
[ Upstream commit 6c6ec2b0a3e0381d886d531bd1471dfdb1509237 ]

io_uring always punts opens to async context, since there's no control
over whether the lookup blocks or not. Add LOOKUP_CACHED to support
just doing the fast RCU based lookups, which we know will not block. If
we can do a cached path resolution of the filename, then we don't have
to always punt lookups for a worker.

During path resolution, we always do LOOKUP_RCU first. If that fails and
we terminate LOOKUP_RCU, then fail a LOOKUP_CACHED attempt as well.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Change-Id: If3c62e8681cd47bfafaa5a4de05a7e0418c1c718
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit c1fe7bd3e1)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:08 +00:00
Al Viro
72d2f4c1cd UPSTREAM: saner calling conventions for unlazy_child()
[ Upstream commit ae66db45fd309fd1c6d4e846dfc8414dfec7d6ad ]

same as for the previous commit - instead of 0/-ECHILD make
it return true/false, rename to try_to_unlazy_child().

Change-Id: Ie949437504bd8db7f22f78bfbe5d5141e9959cf8
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 36ec31201a)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:08 +00:00
Greg Kroah-Hartman
4922049993 This is the 5.10.163 stable release
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEZH8oZUiU471FcZm+ONu9yGCSaT4FAmPCczkACgkQONu9yGCS
 aT4tnRAAsW8h/ohmhP+O2lQ9Ekw6s9VB6KB4aJzLhQXqIZlrzk2DP3CiLxQ7DkFc
 AcHwFYq+sERo8O7dK6pbCW0zNvLUpbK2wJhwMHujJfSUFboXX85NR6u90U67pBKS
 p+yVkDSx8LNc7c676xQ7ey5rO1K2fQQ266gexjI9WOkjIFOfplVkZ7tkvt51VwAD
 mNvOQsZdCE6xs+T3t9YMOtAx3wW8vl1wW3QDWCHznQwOJiMEjfNEOUY/+xELnnWz
 DVONWPHTFNKQHZwIuVUFZdNuORq5WXoIaMZdaEFkhuOtRMnQ9l+wi8iMxX8zkgBn
 Ji/dPu3GdAZsJU4/rXHkY2AeZV1oJc3NLYmevoRZirTqMQCqyM+blif7Rf34kBi7
 6jlGPWOjyMNe58shfHmjWTl/u4pMDoYOnm5XO+1oL+2Xg8QWCucqAlfPFB3uMh6n
 aL4ymzo5QRy1+tx8v7o1NOjnGWydvYn3O4fwJVkYTFaJZZr9EI7gpTmEBw/gwfuf
 4TH6BC++Ai/8vgKUhpdnWuTrjomWalPTcPBgQYG4gD7ak2TM1rmgMaCl/THUe36R
 zPC8m2sIXKeI4zGi8TeqTgaRvFSKJnuEmVo5OPkG98fZkjekCzWHp0q1+PG2Ecy8
 Mu2/AOnwb1aSfOJh2Qajoke/Wed0U6qszop8C/jPRh8D1uTmRbI=
 =sOTj
 -----END PGP SIGNATURE-----

Merge 5.10.163 into android12-5.10-lts

Changes in 5.10.163
	usb: musb: remove extra check in musb_gadget_vbus_draw
	arm64: dts: qcom: ipq6018-cp01-c1: use BLSPI1 pins
	arm64: dts: qcom: msm8996: fix GPU OPP table
	ARM: dts: qcom: apq8064: fix coresight compatible
	arm64: dts: qcom: sdm630: fix UART1 pin bias
	arm64: dts: qcom: sdm845-cheza: fix AP suspend pin bias
	arm64: dts: qcom: msm8916: Drop MSS fallback compatible
	objtool, kcsan: Add volatile read/write instrumentation to whitelist
	ARM: dts: stm32: Drop stm32mp15xc.dtsi from Avenger96
	ARM: dts: stm32: Fix AV96 WLAN regulator gpio property
	drivers: soc: ti: knav_qmss_queue: Mark knav_acc_firmwares as static
	soc: qcom: llcc: make irq truly optional
	soc: qcom: apr: make code more reuseable
	soc: qcom: apr: Add check for idr_alloc and of_property_read_string_index
	arm: dts: spear600: Fix clcd interrupt
	soc: ti: knav_qmss_queue: Use pm_runtime_resume_and_get instead of pm_runtime_get_sync
	soc: ti: knav_qmss_queue: Fix PM disable depth imbalance in knav_queue_probe
	soc: ti: smartreflex: Fix PM disable depth imbalance in omap_sr_probe
	perf: arm_dsu: Fix hotplug callback leak in dsu_pmu_init()
	perf/smmuv3: Fix hotplug callback leak in arm_smmu_pmu_init()
	arm64: dts: ti: k3-am65-main: Drop dma-coherent in crypto node
	arm64: dts: ti: k3-j721e-main: Drop dma-coherent in crypto node
	arm64: dts: mt2712e: Fix unit_address_vs_reg warning for oscillators
	arm64: dts: mt2712e: Fix unit address for pinctrl node
	arm64: dts: mt2712-evb: Fix vproc fixed regulators unit names
	arm64: dts: mt2712-evb: Fix usb vbus regulators unit names
	arm64: dts: mediatek: pumpkin-common: Fix devicetree warnings
	arm64: dts: mediatek: mt6797: Fix 26M oscillator unit name
	ARM: dts: dove: Fix assigned-addresses for every PCIe Root Port
	ARM: dts: armada-370: Fix assigned-addresses for every PCIe Root Port
	ARM: dts: armada-xp: Fix assigned-addresses for every PCIe Root Port
	ARM: dts: armada-375: Fix assigned-addresses for every PCIe Root Port
	ARM: dts: armada-38x: Fix assigned-addresses for every PCIe Root Port
	ARM: dts: armada-39x: Fix assigned-addresses for every PCIe Root Port
	ARM: dts: turris-omnia: Add ethernet aliases
	ARM: dts: turris-omnia: Add switch port 6 node
	arm64: dts: armada-3720-turris-mox: Add missing interrupt for RTC
	pstore/ram: Fix error return code in ramoops_probe()
	ARM: mmp: fix timer_read delay
	pstore: Avoid kcore oops by vmap()ing with VM_IOREMAP
	tpm/tpm_ftpm_tee: Fix error handling in ftpm_mod_init()
	tpm/tpm_crb: Fix error message in __crb_relinquish_locality()
	sched/fair: Cleanup task_util and capacity type
	sched/uclamp: Fix relationship between uclamp and migration margin
	cpuidle: dt: Return the correct numbers of parsed idle states
	alpha: fix syscall entry in !AUDUT_SYSCALL case
	PM: hibernate: Fix mistake in kerneldoc comment
	fs: don't audit the capability check in simple_xattr_list()
	cpufreq: qcom-hw: Fix memory leak in qcom_cpufreq_hw_read_lut()
	selftests/ftrace: event_triggers: wait longer for test_event_enable
	perf: Fix possible memleak in pmu_dev_alloc()
	lib/debugobjects: fix stat count and optimize debug_objects_mem_init
	platform/x86: huawei-wmi: fix return value calculation
	timerqueue: Use rb_entry_safe() in timerqueue_getnext()
	proc: fixup uptime selftest
	lib/fonts: fix undefined behavior in bit shift for get_default_font
	ocfs2: fix memory leak in ocfs2_stack_glue_init()
	MIPS: vpe-mt: fix possible memory leak while module exiting
	MIPS: vpe-cmp: fix possible memory leak while module exiting
	selftests/efivarfs: Add checking of the test return value
	PNP: fix name memory leak in pnp_alloc_dev()
	perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox()
	perf/x86/intel/uncore: Fix reference count leak in snr_uncore_mmio_map()
	perf/x86/intel/uncore: Fix reference count leak in __uncore_imc_init_box()
	platform/chrome: cros_usbpd_notify: Fix error handling in cros_usbpd_notify_init()
	irqchip: gic-pm: Use pm_runtime_resume_and_get() in gic_probe()
	EDAC/i10nm: fix refcount leak in pci_get_dev_wrapper()
	nfsd: don't call nfsd_file_put from client states seqfile display
	genirq/irqdesc: Don't try to remove non-existing sysfs files
	cpufreq: amd_freq_sensitivity: Add missing pci_dev_put()
	libfs: add DEFINE_SIMPLE_ATTRIBUTE_SIGNED for signed value
	lib/notifier-error-inject: fix error when writing -errno to debugfs file
	docs: fault-injection: fix non-working usage of negative values
	debugfs: fix error when writing negative value to atomic_t debugfs file
	ocfs2: ocfs2_mount_volume does cleanup job before return error
	ocfs2: rewrite error handling of ocfs2_fill_super
	ocfs2: fix memory leak in ocfs2_mount_volume()
	rapidio: fix possible name leaks when rio_add_device() fails
	rapidio: rio: fix possible name leak in rio_register_mport()
	clocksource/drivers/sh_cmt: Make sure channel clock supply is enabled
	clocksource/drivers/sh_cmt: Access registers according to spec
	futex: Move to kernel/futex/
	futex: Resend potentially swallowed owner death notification
	cpu/hotplug: Make target_store() a nop when target == state
	clocksource/drivers/timer-ti-dm: Fix missing clk_disable_unprepare in dmtimer_systimer_init_clock()
	ACPICA: Fix use-after-free in acpi_ut_copy_ipackage_to_ipackage()
	uprobes/x86: Allow to probe a NOP instruction with 0x66 prefix
	x86/xen: Fix memory leak in xen_smp_intr_init{_pv}()
	x86/xen: Fix memory leak in xen_init_lock_cpu()
	xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()
	PM: runtime: Improve path in rpm_idle() when no callback
	PM: runtime: Do not call __rpm_callback() from rpm_idle()
	platform/x86: mxm-wmi: fix memleak in mxm_wmi_call_mx[ds|mx]()
	platform/x86: intel_scu_ipc: fix possible name leak in __intel_scu_ipc_register()
	MIPS: BCM63xx: Add check for NULL for clk in clk_enable
	MIPS: OCTEON: warn only once if deprecated link status is being used
	fs: sysv: Fix sysv_nblocks() returns wrong value
	rapidio: fix possible UAF when kfifo_alloc() fails
	eventfd: change int to __u64 in eventfd_signal() ifndef CONFIG_EVENTFD
	relay: fix type mismatch when allocating memory in relay_create_buf()
	hfs: Fix OOB Write in hfs_asc2mac
	rapidio: devices: fix missing put_device in mport_cdev_open
	wifi: ath9k: hif_usb: fix memory leak of urbs in ath9k_hif_usb_dealloc_tx_urbs()
	wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()
	wifi: rtl8xxxu: Fix reading the vendor of combo chips
	drm/bridge: adv7533: remove dynamic lane switching from adv7533 bridge
	libbpf: Fix use-after-free in btf_dump_name_dups
	libbpf: Fix null-pointer dereference in find_prog_by_sec_insn()
	pata_ipx4xx_cf: Fix unsigned comparison with less than zero
	media: coda: jpeg: Add check for kmalloc
	media: i2c: ad5820: Fix error path
	venus: pm_helpers: Fix error check in vcodec_domains_get()
	media: exynos4-is: Use v4l2_async_notifier_add_fwnode_remote_subdev
	media: exynos4-is: don't rely on the v4l2_async_subdev internals
	can: kvaser_usb: do not increase tx statistics when sending error message frames
	can: kvaser_usb: kvaser_usb_leaf: Get capabilities from device
	can: kvaser_usb: kvaser_usb_leaf: Rename {leaf,usbcan}_cmd_error_event to {leaf,usbcan}_cmd_can_error_event
	can: kvaser_usb: kvaser_usb_leaf: Handle CMD_ERROR_EVENT
	can: kvaser_usb_leaf: Set Warning state even without bus errors
	can: kvaser_usb_leaf: Fix improved state not being reported
	can: kvaser_usb_leaf: Fix wrong CAN state after stopping
	can: kvaser_usb_leaf: Fix bogus restart events
	can: kvaser_usb: Add struct kvaser_usb_busparams
	can: kvaser_usb: Compare requested bittiming parameters with actual parameters in do_set_{,data}_bittiming
	drm/rockchip: lvds: fix PM usage counter unbalance in poweron
	clk: renesas: r9a06g032: Repair grave increment error
	spi: Update reference to struct spi_controller
	drm/panel/panel-sitronix-st7701: Remove panel on DSI attach failure
	ima: Fix fall-through warnings for Clang
	ima: Handle -ESTALE returned by ima_filter_rule_match()
	drm/msm/hdmi: switch to drm_bridge_connector
	drm/msm/hdmi: drop unused GPIO support
	bpf: Fix slot type check in check_stack_write_var_off
	media: vivid: fix compose size exceed boundary
	media: platform: exynos4-is: fix return value check in fimc_md_probe()
	bpf: propagate precision in ALU/ALU64 operations
	bpf: Check the other end of slot_type for STACK_SPILL
	bpf: propagate precision across all frames, not just the last one
	clk: qcom: gcc-sm8250: Use retention mode for USB GDSCs
	mtd: Fix device name leak when register device failed in add_mtd_device()
	Input: joystick - fix Kconfig warning for JOYSTICK_ADC
	wifi: rsi: Fix handling of 802.3 EAPOL frames sent via control port
	media: camss: Clean up received buffers on failed start of streaming
	net, proc: Provide PROC_FS=n fallback for proc_create_net_single_write()
	rxrpc: Fix ack.bufferSize to be 0 when generating an ack
	drm/radeon: Add the missed acpi_put_table() to fix memory leak
	drm/mediatek: Modify dpi power on/off sequence.
	ASoC: pxa: fix null-pointer dereference in filter()
	regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
	amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table()
	drm/fourcc: Add packed 10bit YUV 4:2:0 format
	drm/fourcc: Fix vsub/hsub for Q410 and Q401
	integrity: Fix memory leakage in keyring allocation error path
	ima: Fix misuse of dereference of pointer in template_desc_init_fields()
	wifi: ath10k: Fix return value in ath10k_pci_init()
	mtd: lpddr2_nvm: Fix possible null-ptr-deref
	Input: elants_i2c - properly handle the reset GPIO when power is off
	media: vidtv: Fix use-after-free in vidtv_bridge_dvb_init()
	media: solo6x10: fix possible memory leak in solo_sysfs_init()
	media: platform: exynos4-is: Fix error handling in fimc_md_init()
	media: videobuf-dma-contig: use dma_mmap_coherent
	inet: add READ_ONCE(sk->sk_bound_dev_if) in inet_csk_bind_conflict()
	bpf: Move skb->len == 0 checks into __bpf_redirect
	HID: hid-sensor-custom: set fixed size for custom attributes
	ALSA: pcm: fix undefined behavior in bit shift for SNDRV_PCM_RATE_KNOT
	ALSA: seq: fix undefined behavior in bit shift for SNDRV_SEQ_FILTER_USE_EVENT
	regulator: core: use kfree_const() to free space conditionally
	clk: rockchip: Fix memory leak in rockchip_clk_register_pll()
	drm/amdgpu: fix pci device refcount leak
	bonding: fix link recovery in mode 2 when updelay is nonzero
	mtd: maps: pxa2xx-flash: fix memory leak in probe
	drbd: fix an invalid memory access caused by incorrect use of list iterator
	ASoC: qcom: Add checks for devm_kcalloc
	media: vimc: Fix wrong function called when vimc_init() fails
	media: imon: fix a race condition in send_packet()
	clk: imx: replace osc_hdmi with dummy
	pinctrl: pinconf-generic: add missing of_node_put()
	media: dvb-core: Fix ignored return value in dvb_register_frontend()
	media: dvb-usb: az6027: fix null-ptr-deref in az6027_i2c_xfer()
	media: s5p-mfc: Add variant data for MFC v7 hardware for Exynos 3250 SoC
	drm/tegra: Add missing clk_disable_unprepare() in tegra_dc_probe()
	ASoC: dt-bindings: wcd9335: fix reset line polarity in example
	ASoC: mediatek: mtk-btcvsd: Add checks for write and read of mtk_btcvsd_snd
	NFSv4.2: Clear FATTR4_WORD2_SECURITY_LABEL when done decoding
	NFSv4.2: Fix a memory stomp in decode_attr_security_label
	NFSv4.2: Fix initialisation of struct nfs4_label
	NFSv4: Fix a deadlock between nfs4_open_recover_helper() and delegreturn
	NFS: Fix an Oops in nfs_d_automount()
	ALSA: asihpi: fix missing pci_disable_device()
	wifi: iwlwifi: mvm: fix double free on tx path.
	ASoC: mediatek: mt8173: Fix debugfs registration for components
	ASoC: mediatek: mt8173: Enable IRQ when pdata is ready
	drm/amd/pm/smu11: BACO is supported when it's in BACO state
	drm/radeon: Fix PCI device refcount leak in radeon_atrm_get_bios()
	drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()
	ASoC: pcm512x: Fix PM disable depth imbalance in pcm512x_probe
	netfilter: conntrack: set icmpv6 redirects as RELATED
	bpf, sockmap: Fix repeated calls to sock_put() when msg has more_data
	bpf, sockmap: Fix data loss caused by using apply_bytes on ingress redirect
	bonding: uninitialized variable in bond_miimon_inspect()
	spi: spidev: mask SPI_CS_HIGH in SPI_IOC_RD_MODE
	wifi: mac80211: fix memory leak in ieee80211_if_add()
	wifi: cfg80211: Fix not unregister reg_pdev when load_builtin_regdb_keys() fails
	wifi: mt76: fix coverity overrun-call in mt76_get_txpower()
	regulator: core: fix module refcount leak in set_supply()
	clk: qcom: clk-krait: fix wrong div2 functions
	hsr: Add a rcu-read lock to hsr_forward_skb().
	net: hsr: generate supervision frame without HSR/PRP tag
	hsr: Disable netpoll.
	hsr: Synchronize sending frames to have always incremented outgoing seq nr.
	hsr: Synchronize sequence number updates.
	configfs: fix possible memory leak in configfs_create_dir()
	regulator: core: fix resource leak in regulator_register()
	hwmon: (jc42) Convert register access and caching to regmap/regcache
	hwmon: (jc42) Restore the min/max/critical temperatures on resume
	bpf, sockmap: fix race in sock_map_free()
	ALSA: pcm: Set missing stop_operating flag at undoing trigger start
	media: saa7164: fix missing pci_disable_device()
	ALSA: mts64: fix possible null-ptr-defer in snd_mts64_interrupt
	xprtrdma: Fix regbuf data not freed in rpcrdma_req_create()
	SUNRPC: Fix missing release socket in rpc_sockname()
	NFSv4.x: Fail client initialisation if state manager thread can't run
	mmc: alcor: fix return value check of mmc_add_host()
	mmc: moxart: fix return value check of mmc_add_host()
	mmc: mxcmmc: fix return value check of mmc_add_host()
	mmc: pxamci: fix return value check of mmc_add_host()
	mmc: rtsx_usb_sdmmc: fix return value check of mmc_add_host()
	mmc: toshsd: fix return value check of mmc_add_host()
	mmc: vub300: fix return value check of mmc_add_host()
	mmc: wmt-sdmmc: fix return value check of mmc_add_host()
	mmc: atmel-mci: fix return value check of mmc_add_host()
	mmc: omap_hsmmc: fix return value check of mmc_add_host()
	mmc: meson-gx: fix return value check of mmc_add_host()
	mmc: via-sdmmc: fix return value check of mmc_add_host()
	mmc: wbsd: fix return value check of mmc_add_host()
	mmc: mmci: fix return value check of mmc_add_host()
	media: c8sectpfe: Add of_node_put() when breaking out of loop
	media: coda: Add check for dcoda_iram_alloc
	media: coda: Add check for kmalloc
	clk: samsung: Fix memory leak in _samsung_clk_register_pll()
	spi: spi-gpio: Don't set MOSI as an input if not 3WIRE mode
	wifi: rtl8xxxu: Add __packed to struct rtl8723bu_c2h
	wifi: rtl8xxxu: Fix the channel width reporting
	wifi: brcmfmac: Fix error return code in brcmf_sdio_download_firmware()
	blktrace: Fix output non-blktrace event when blk_classic option enabled
	clk: socfpga: clk-pll: Remove unused variable 'rc'
	clk: socfpga: use clk_hw_register for a5/c5
	clk: socfpga: Fix memory leak in socfpga_gate_init()
	net: vmw_vsock: vmci: Check memcpy_from_msg()
	net: defxx: Fix missing err handling in dfx_init()
	net: stmmac: selftests: fix potential memleak in stmmac_test_arpoffload()
	drivers: net: qlcnic: Fix potential memory leak in qlcnic_sriov_init()
	of: overlay: fix null pointer dereferencing in find_dup_cset_node_entry() and find_dup_cset_prop()
	ethernet: s2io: don't call dev_kfree_skb() under spin_lock_irqsave()
	net: farsync: Fix kmemleak when rmmods farsync
	net/tunnel: wait until all sk_user_data reader finish before releasing the sock
	net: apple: mace: don't call dev_kfree_skb() under spin_lock_irqsave()
	net: apple: bmac: don't call dev_kfree_skb() under spin_lock_irqsave()
	net: emaclite: don't call dev_kfree_skb() under spin_lock_irqsave()
	net: ethernet: dnet: don't call dev_kfree_skb() under spin_lock_irqsave()
	hamradio: don't call dev_kfree_skb() under spin_lock_irqsave()
	net: amd: lance: don't call dev_kfree_skb() under spin_lock_irqsave()
	net: amd-xgbe: Fix logic around active and passive cables
	net: amd-xgbe: Check only the minimum speed for active/passive cables
	can: tcan4x5x: Remove invalid write in clear_interrupts
	net: lan9303: Fix read error execution path
	ntb_netdev: Use dev_kfree_skb_any() in interrupt context
	sctp: sysctl: make extra pointers netns aware
	Bluetooth: btusb: don't call kfree_skb() under spin_lock_irqsave()
	Bluetooth: hci_qca: don't call kfree_skb() under spin_lock_irqsave()
	Bluetooth: hci_ll: don't call kfree_skb() under spin_lock_irqsave()
	Bluetooth: hci_h5: don't call kfree_skb() under spin_lock_irqsave()
	Bluetooth: hci_bcsp: don't call kfree_skb() under spin_lock_irqsave()
	Bluetooth: hci_core: don't call kfree_skb() under spin_lock_irqsave()
	Bluetooth: RFCOMM: don't call kfree_skb() under spin_lock_irqsave()
	stmmac: fix potential division by 0
	apparmor: fix a memleak in multi_transaction_new()
	apparmor: fix lockdep warning when removing a namespace
	apparmor: Fix abi check to include v8 abi
	crypto: sun8i-ss - use dma_addr instead u32
	crypto: nitrox - avoid double free on error path in nitrox_sriov_init()
	scsi: core: Fix a race between scsi_done() and scsi_timeout()
	apparmor: Use pointer to struct aa_label for lbs_cred
	PCI: dwc: Fix n_fts[] array overrun
	RDMA/core: Fix order of nldev_exit call
	PCI: pci-epf-test: Register notifier if only core_init_notifier is enabled
	f2fs: Fix the race condition of resize flag between resizefs
	crypto: rockchip - do not do custom power management
	crypto: rockchip - do not store mode globally
	crypto: rockchip - add fallback for cipher
	crypto: rockchip - add fallback for ahash
	crypto: rockchip - better handle cipher key
	crypto: rockchip - remove non-aligned handling
	crypto: rockchip - delete unneeded variable initialization
	crypto: rockchip - rework by using crypto_engine
	apparmor: Fix memleak in alloc_ns()
	f2fs: fix normal discard process
	RDMA/siw: Fix immediate work request flush to completion queue
	RDMA/nldev: Return "-EAGAIN" if the cm_id isn't from expected port
	RDMA/siw: Set defined status for work completion with undefined status
	scsi: scsi_debug: Fix a warning in resp_write_scat()
	crypto: ccree - Remove debugfs when platform_driver_register failed
	crypto: cryptd - Use request context instead of stack for sub-request
	crypto: hisilicon/qm - add missing pci_dev_put() in q_num_set()
	RDMA/hns: Repacing 'dseg_len' by macros in fill_ext_sge_inl_data()
	RDMA/hns: Fix ext_sge num error when post send
	PCI: Check for alloc failure in pci_request_irq()
	RDMA/hfi: Decrease PCI device reference count in error path
	crypto: ccree - Make cc_debugfs_global_fini() available for module init function
	RDMA/hns: fix memory leak in hns_roce_alloc_mr()
	RDMA/rxe: Fix NULL-ptr-deref in rxe_qp_do_cleanup() when socket create failed
	scsi: hpsa: Fix possible memory leak in hpsa_init_one()
	crypto: tcrypt - Fix multibuffer skcipher speed test mem leak
	padata: Always leave BHs disabled when running ->parallel()
	padata: Fix list iterator in padata_do_serial()
	scsi: mpt3sas: Fix possible resource leaks in mpt3sas_transport_port_add()
	scsi: hpsa: Fix error handling in hpsa_add_sas_host()
	scsi: hpsa: Fix possible memory leak in hpsa_add_sas_device()
	scsi: scsi_debug: Fix a warning in resp_verify()
	scsi: scsi_debug: Fix a warning in resp_report_zones()
	scsi: fcoe: Fix possible name leak when device_register() fails
	scsi: scsi_debug: Fix possible name leak in sdebug_add_host_helper()
	scsi: ipr: Fix WARNING in ipr_init()
	scsi: fcoe: Fix transport not deattached when fcoe_if_init() fails
	scsi: snic: Fix possible UAF in snic_tgt_create()
	RDMA/nldev: Add checks for nla_nest_start() in fill_stat_counter_qps()
	f2fs: avoid victim selection from previous victim section
	RDMA/nldev: Fix failure to send large messages
	crypto: amlogic - Remove kcalloc without check
	crypto: omap-sham - Use pm_runtime_resume_and_get() in omap_sham_probe()
	riscv/mm: add arch hook arch_clear_hugepage_flags
	RDMA/hfi1: Fix error return code in parse_platform_config()
	RDMA/srp: Fix error return code in srp_parse_options()
	orangefs: Fix sysfs not cleanup when dev init failed
	RDMA/hns: Fix PBL page MTR find
	RDMA/hns: Fix page size cap from firmware
	crypto: img-hash - Fix variable dereferenced before check 'hdev->req'
	hwrng: amd - Fix PCI device refcount leak
	hwrng: geode - Fix PCI device refcount leak
	IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces
	drivers: dio: fix possible memory leak in dio_init()
	serial: tegra: Read DMA status before terminating
	class: fix possible memory leak in __class_register()
	vfio: platform: Do not pass return buffer to ACPI _RST method
	uio: uio_dmem_genirq: Fix missing unlock in irq configuration
	uio: uio_dmem_genirq: Fix deadlock between irq config and handling
	usb: fotg210-udc: Fix ages old endianness issues
	staging: vme_user: Fix possible UAF in tsi148_dma_list_add
	usb: typec: Check for ops->exit instead of ops->enter in altmode_exit
	usb: typec: tcpci: fix of node refcount leak in tcpci_register_port()
	usb: typec: tipd: Fix spurious fwnode_handle_put in error path
	serial: amba-pl011: avoid SBSA UART accessing DMACR register
	serial: pl011: Do not clear RX FIFO & RX interrupt in unthrottle.
	serial: pch: Fix PCI device refcount leak in pch_request_dma()
	tty: serial: clean up stop-tx part in altera_uart_tx_chars()
	tty: serial: altera_uart_{r,t}x_chars() need only uart_port
	serial: altera_uart: fix locking in polling mode
	serial: sunsab: Fix error handling in sunsab_init()
	test_firmware: fix memory leak in test_firmware_init()
	misc: ocxl: fix possible name leak in ocxl_file_register_afu()
	ocxl: fix pci device refcount leak when calling get_function_0()
	misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()
	misc: sgi-gru: fix use-after-free error in gru_set_context_option, gru_fault and gru_handle_user_call_os
	firmware: raspberrypi: fix possible memory leak in rpi_firmware_probe()
	cxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter()
	cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()
	iio: temperature: ltc2983: make bulk write buffer DMA-safe
	genirq: Add IRQF_NO_AUTOEN for request_irq/nmi()
	iio:imu:adis: Use IRQF_NO_AUTOEN instead of irq request then disable
	iio: adis: handle devices that cannot unmask the drdy pin
	iio: adis: stylistic changes
	iio:imu:adis: Move exports into IIO_ADISLIB namespace
	iio: adis: add '__adis_enable_irq()' implementation
	counter: stm32-lptimer-cnt: fix the check on arr and cmp registers update
	usb: roles: fix of node refcount leak in usb_role_switch_is_parent()
	usb: gadget: f_hid: optional SETUP/SET_REPORT mode
	usb: gadget: f_hid: fix f_hidg lifetime vs cdev
	usb: gadget: f_hid: fix refcount leak on error path
	drivers: mcb: fix resource leak in mcb_probe()
	mcb: mcb-parse: fix error handing in chameleon_parse_gdd()
	chardev: fix error handling in cdev_device_add()
	i2c: pxa-pci: fix missing pci_disable_device() on error in ce4100_i2c_probe
	staging: rtl8192u: Fix use after free in ieee80211_rx()
	staging: rtl8192e: Fix potential use-after-free in rtllib_rx_Monitor()
	vme: Fix error not catched in fake_init()
	gpiolib: Get rid of redundant 'else'
	gpiolib: cdev: fix NULL-pointer dereferences
	i2c: mux: reg: check return value after calling platform_get_resource()
	i2c: ismt: Fix an out-of-bounds bug in ismt_access()
	usb: storage: Add check for kcalloc
	tracing/hist: Fix issue of losting command info in error_log
	samples: vfio-mdev: Fix missing pci_disable_device() in mdpy_fb_probe()
	thermal/drivers/imx8mm_thermal: Validate temperature range
	fbdev: ssd1307fb: Drop optional dependency
	fbdev: pm2fb: fix missing pci_disable_device()
	fbdev: via: Fix error in via_core_init()
	fbdev: vermilion: decrease reference count in error path
	fbdev: uvesafb: Fixes an error handling path in uvesafb_probe()
	HSI: omap_ssi_core: fix unbalanced pm_runtime_disable()
	HSI: omap_ssi_core: fix possible memory leak in ssi_probe()
	power: supply: fix residue sysfs file in error handle route of __power_supply_register()
	perf trace: Return error if a system call doesn't exist
	perf trace: Use macro RAW_SYSCALL_ARGS_NUM to replace number
	perf trace: Handle failure when trace point folder is missed
	perf symbol: correction while adjusting symbol
	HSI: omap_ssi_core: Fix error handling in ssi_init()
	power: supply: fix null pointer dereferencing in power_supply_get_battery_info
	RDMA/siw: Fix pointer cast warning
	iommu/sun50i: Fix reset release
	iommu/sun50i: Consider all fault sources for reset
	iommu/sun50i: Fix R/W permission check
	iommu/sun50i: Fix flush size
	phy: usb: s2 WoL wakeup_count not incremented for USB->Eth devices
	include/uapi/linux/swab: Fix potentially missing __always_inline
	pwm: tegra: Improve required rate calculation
	dmaengine: idxd: Fix crc_val field for completion record
	rtc: rtc-cmos: Do not check ACPI_FADT_LOW_POWER_S0
	rtc: cmos: Fix event handler registration ordering issue
	rtc: cmos: Fix wake alarm breakage
	rtc: cmos: fix build on non-ACPI platforms
	rtc: cmos: Call cmos_wake_setup() from cmos_do_probe()
	rtc: cmos: Call rtc_wake_setup() from cmos_do_probe()
	rtc: cmos: Eliminate forward declarations of some functions
	rtc: cmos: Rename ACPI-related functions
	rtc: cmos: Disable ACPI RTC event on removal
	rtc: snvs: Allow a time difference on clock register read
	rtc: pcf85063: Fix reading alarm
	iommu/amd: Fix pci device refcount leak in ppr_notifier()
	iommu/fsl_pamu: Fix resource leak in fsl_pamu_probe()
	macintosh: fix possible memory leak in macio_add_one_device()
	macintosh/macio-adb: check the return value of ioremap()
	powerpc/52xx: Fix a resource leak in an error handling path
	cxl: Fix refcount leak in cxl_calc_capp_routing
	powerpc/xmon: Enable breakpoints on 8xx
	powerpc/xmon: Fix -Wswitch-unreachable warning in bpt_cmds
	powerpc/xive: add missing iounmap() in error path in xive_spapr_populate_irq_data()
	kbuild: remove unneeded mkdir for external modules_install
	kbuild: unify modules(_install) for in-tree and external modules
	kbuild: refactor single builds of *.ko
	powerpc/perf: callchain validate kernel stack pointer bounds
	powerpc/83xx/mpc832x_rdb: call platform_device_put() in error case in of_fsl_spi_probe()
	powerpc/hv-gpci: Fix hv_gpci event list
	selftests/powerpc: Fix resource leaks
	iommu/sun50i: Remove IOMMU_DOMAIN_IDENTITY
	pwm: sifive: Call pwm_sifive_update_clock() while mutex is held
	remoteproc: sysmon: fix memory leak in qcom_add_sysmon_subdev()
	remoteproc: qcom_q6v5_pas: disable wakeup on probe fail or remove
	remoteproc: qcom_q6v5_pas: detach power domains on remove
	remoteproc: qcom_q6v5_pas: Fix missing of_node_put() in adsp_alloc_memory_region()
	powerpc/eeh: Drop redundant spinlock initialization
	powerpc/pseries/eeh: use correct API for error log size
	netfilter: flowtable: really fix NAT IPv6 offload
	rtc: st-lpc: Add missing clk_disable_unprepare in st_rtc_probe()
	rtc: pic32: Move devm_rtc_allocate_device earlier in pic32_rtc_probe()
	rtc: pcf85063: fix pcf85063_clkout_control
	NFSD: Remove spurious cb_setup_err tracepoint
	nfsd: under NFSv4.1, fix double svc_xprt_put on rpc_create failure
	net: macsec: fix net device access prior to holding a lock
	mISDN: hfcsusb: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
	mISDN: hfcpci: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
	mISDN: hfcmulti: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
	nfc: pn533: Clear nfc_target before being used
	r6040: Fix kmemleak in probe and remove
	net: switch to storing KCOV handle directly in sk_buff
	net: add inline function skb_csum_is_sctp
	net: igc: use skb_csum_is_sctp instead of protocol check
	net: add a helper to avoid issues with HW TX timestamping and SO_TXTIME
	igc: Enhance Qbv scheduling by using first flag bit
	igc: Use strict cycles for Qbv scheduling
	igc: Add checking for basetime less than zero
	igc: recalculate Qbv end_time by considering cycle time
	igc: Lift TAPRIO schedule restriction
	igc: Set Qbv start_time and end_time to end_time if not being configured in GCL
	rtc: mxc_v2: Add missing clk_disable_unprepare()
	selftests: devlink: fix the fd redirect in dummy_reporter_test
	openvswitch: Fix flow lookup to use unmasked key
	skbuff: Account for tail adjustment during pull operations
	mailbox: zynq-ipi: fix error handling while device_register() fails
	net_sched: reject TCF_EM_SIMPLE case for complex ematch module
	rxrpc: Fix missing unlock in rxrpc_do_sendmsg()
	myri10ge: Fix an error handling path in myri10ge_probe()
	net: stream: purge sk_error_queue in sk_stream_kill_queues()
	rcu: Fix __this_cpu_read() lockdep warning in rcu_force_quiescent_state()
	arm64: make is_ttbrX_addr() noinstr-safe
	video: hyperv_fb: Avoid taking busy spinlock on panic path
	x86/hyperv: Remove unregister syscore call from Hyper-V cleanup
	binfmt_misc: fix shift-out-of-bounds in check_special_flags
	fs: jfs: fix shift-out-of-bounds in dbAllocAG
	udf: Avoid double brelse() in udf_rename()
	fs: jfs: fix shift-out-of-bounds in dbDiscardAG
	ACPICA: Fix error code path in acpi_ds_call_control_method()
	nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
	nilfs2: fix shift-out-of-bounds due to too large exponent of block size
	acct: fix potential integer overflow in encode_comp_t()
	hfs: fix OOB Read in __hfs_brec_find
	drm/etnaviv: add missing quirks for GC300
	brcmfmac: return error when getting invalid max_flowrings from dongle
	wifi: ath9k: verify the expected usb_endpoints are present
	wifi: ar5523: Fix use-after-free on ar5523_cmd() timed out
	ASoC: codecs: rt298: Add quirk for KBL-R RVP platform
	ipmi: fix memleak when unload ipmi driver
	drm/amd/display: prevent memory leak
	qed (gcc13): use u16 for fid to be big enough
	bpf: make sure skb->len != 0 when redirecting to a tunneling device
	net: ethernet: ti: Fix return type of netcp_ndo_start_xmit()
	hamradio: baycom_epp: Fix return type of baycom_send_packet()
	wifi: brcmfmac: Fix potential shift-out-of-bounds in brcmf_fw_alloc_request()
	igb: Do not free q_vector unless new one was allocated
	drm/amdgpu: Fix type of second parameter in trans_msg() callback
	drm/amdgpu: Fix type of second parameter in odn_edit_dpm_table() callback
	s390/ctcm: Fix return type of ctc{mp,}m_tx()
	s390/netiucv: Fix return type of netiucv_tx()
	s390/lcs: Fix return type of lcs_start_xmit()
	drm/msm: Use drm_mode_copy()
	drm/rockchip: Use drm_mode_copy()
	drm/sti: Use drm_mode_copy()
	drivers/md/md-bitmap: check the return value of md_bitmap_get_counter()
	md/raid1: stop mdx_raid1 thread when raid1 array run failed
	drm/amd/display: fix array index out of bound error in bios parser
	net: add atomic_long_t to net_device_stats fields
	mrp: introduce active flags to prevent UAF when applicant uninit
	ppp: associate skb with a device at tx
	bpf: Prevent decl_tag from being referenced in func_proto arg
	ethtool: avoiding integer overflow in ethtool_phys_id()
	media: dvb-frontends: fix leak of memory fw
	media: dvbdev: adopts refcnt to avoid UAF
	media: dvb-usb: fix memory leak in dvb_usb_adapter_init()
	blk-mq: fix possible memleak when register 'hctx' failed
	libbpf: Avoid enum forward-declarations in public API in C++ mode
	regulator: core: fix use_count leakage when handling boot-on
	mmc: f-sdh30: Add quirks for broken timeout clock capability
	mmc: renesas_sdhi: better reset from HS400 mode
	media: si470x: Fix use-after-free in si470x_int_in_callback()
	clk: st: Fix memory leak in st_of_quadfs_setup()
	hugetlbfs: fix null-ptr-deref in hugetlbfs_parse_param()
	drm/fsl-dcu: Fix return type of fsl_dcu_drm_connector_mode_valid()
	drm/sti: Fix return type of sti_{dvo,hda,hdmi}_connector_mode_valid()
	orangefs: Fix kmemleak in orangefs_prepare_debugfs_help_string()
	orangefs: Fix kmemleak in orangefs_{kernel,client}_debug_init()
	hwmon: (jc42) Fix missing unlock on error in jc42_write()
	ALSA/ASoC: hda: move/rename snd_hdac_ext_stop_streams to hdac_stream.c
	ALSA: hda: add snd_hdac_stop_streams() helper
	ASoC: Intel: Skylake: Fix driver hang during shutdown
	ASoC: mediatek: mt8173-rt5650-rt5514: fix refcount leak in mt8173_rt5650_rt5514_dev_probe()
	ASoC: audio-graph-card: fix refcount leak of cpu_ep in __graph_for_each_link()
	ASoC: rockchip: pdm: Add missing clk_disable_unprepare() in rockchip_pdm_runtime_resume()
	ASoC: wm8994: Fix potential deadlock
	ASoC: rockchip: spdif: Add missing clk_disable_unprepare() in rk_spdif_runtime_resume()
	ASoC: rt5670: Remove unbalanced pm_runtime_put()
	LoadPin: Ignore the "contents" argument of the LSM hooks
	pstore: Switch pmsg_lock to an rt_mutex to avoid priority inversion
	perf debug: Set debug_peo_args and redirect_to_stderr variable to correct values in perf_quiet_option()
	afs: Fix lost servers_outstanding count
	pstore: Make sure CONFIG_PSTORE_PMSG selects CONFIG_RT_MUTEXES
	ima: Simplify ima_lsm_copy_rule
	ALSA: usb-audio: add the quirk for KT0206 device
	ALSA: hda/realtek: Add quirk for Lenovo TianYi510Pro-14IOB
	ALSA: hda/hdmi: Add HP Device 0x8711 to force connect list
	usb: dwc3: Fix race between dwc3_set_mode and __dwc3_set_mode
	usb: dwc3: core: defer probe on ulpi_read_id timeout
	HID: wacom: Ensure bootloader PID is usable in hidraw mode
	HID: mcp2221: don't connect hidraw
	reiserfs: Add missing calls to reiserfs_security_free()
	iio: adc: ad_sigma_delta: do not use internal iio_dev lock
	iio: adc128s052: add proper .data members in adc128_of_match table
	regulator: core: fix deadlock on regulator enable
	gcov: add support for checksum field
	ovl: fix use inode directly in rcu-walk mode
	media: dvbdev: fix build warning due to comments
	media: dvbdev: fix refcnt bug
	pwm: tegra: Fix 32 bit build
	usb: dwc3: qcom: Fix memory leak in dwc3_qcom_interconnect_init
	cifs: fix oops during encryption
	nvme-pci: fix doorbell buffer value endianness
	nvme-pci: fix mempool alloc size
	nvme-pci: fix page size checks
	ata: ahci: Fix PCS quirk application for suspend
	nvme: fix the NVME_CMD_EFFECTS_CSE_MASK definition
	nvmet: don't defer passthrough commands with trivial effects to the workqueue
	objtool: Fix SEGFAULT
	powerpc/rtas: avoid device tree lookups in rtas_os_term()
	powerpc/rtas: avoid scheduling in rtas_os_term()
	HID: multitouch: fix Asus ExpertBook P2 P2451FA trackpoint
	HID: plantronics: Additional PIDs for double volume key presses quirk
	pstore/zone: Use GFP_ATOMIC to allocate zone buffer
	hfsplus: fix bug causing custom uid and gid being unable to be assigned with mount
	binfmt: Fix error return code in load_elf_fdpic_binary()
	ovl: Use ovl mounter's fsuid and fsgid in ovl_link()
	ALSA: line6: correct midi status byte when receiving data from podxt
	ALSA: line6: fix stack overflow in line6_midi_transmit
	pnode: terminate at peers of source
	md: fix a crash in mempool_free
	mm, compaction: fix fast_isolate_around() to stay within boundaries
	f2fs: should put a page when checking the summary info
	mmc: vub300: fix warning - do not call blocking ops when !TASK_RUNNING
	tpm: acpi: Call acpi_put_table() to fix memory leak
	tpm: tpm_crb: Add the missed acpi_put_table() to fix memory leak
	tpm: tpm_tis: Add the missed acpi_put_table() to fix memory leak
	SUNRPC: Don't leak netobj memory when gss_read_proxy_verf() fails
	kcsan: Instrument memcpy/memset/memmove with newer Clang
	ASoC: Intel/SOF: use set_stream() instead of set_tdm_slots() for HDAudio
	ASoC/SoundWire: dai: expand 'stream' concept beyond SoundWire
	net/mlx5e: Fix nullptr in mlx5e_tc_add_fdb_flow()
	wifi: rtlwifi: remove always-true condition pointed out by GCC 12
	wifi: rtlwifi: 8192de: correct checking of IQK reload
	torture: Exclude "NOHZ tick-stop error" from fatal errors
	rcu: Prevent lockdep-RCU splats on lock acquisition/release
	net/af_packet: add VLAN support for AF_PACKET SOCK_RAW GSO
	net/af_packet: make sure to pull mac header
	media: stv0288: use explicitly signed char
	soc: qcom: Select REMAP_MMIO for LLCC driver
	kest.pl: Fix grub2 menu handling for rebooting
	ktest.pl minconfig: Unset configs instead of just removing them
	jbd2: use the correct print format
	arm64: dts: qcom: sdm845-db845c: correct SPI2 pins drive strength
	mmc: sdhci-sprd: Disable CLK_AUTO when the clock is less than 400K
	btrfs: fix resolving backrefs for inline extent followed by prealloc
	ARM: ux500: do not directly dereference __iomem
	arm64: dts: qcom: sdm850-lenovo-yoga-c630: correct I2C12 pins drive strength
	selftests: Use optional USERCFLAGS and USERLDFLAGS
	PM/devfreq: governor: Add a private governor_data for governor
	cpufreq: Init completion before kobject_init_and_add()
	ALSA: patch_realtek: Fix Dell Inspiron Plus 16
	ALSA: hda/realtek: Apply dual codec fixup for Dell Latitude laptops
	dm cache: Fix ABBA deadlock between shrink_slab and dm_cache_metadata_abort
	dm thin: Fix ABBA deadlock between shrink_slab and dm_pool_abort_metadata
	dm thin: Use last transaction's pmd->root when commit failed
	dm thin: resume even if in FAIL mode
	dm thin: Fix UAF in run_timer_softirq()
	dm integrity: Fix UAF in dm_integrity_dtr()
	dm clone: Fix UAF in clone_dtr()
	dm cache: Fix UAF in destroy()
	dm cache: set needs_check flag after aborting metadata
	tracing/hist: Fix out-of-bound write on 'action_data.var_ref_idx'
	perf/core: Call LSM hook after copying perf_event_attr
	KVM: nVMX: Inject #GP, not #UD, if "generic" VMXON CR0/CR4 check fails
	x86/microcode/intel: Do not retry microcode reloading on the APs
	ftrace/x86: Add back ftrace_expected for ftrace bug reports
	x86/kprobes: Fix kprobes instruction boudary check with CONFIG_RETHUNK
	tracing/hist: Fix wrong return value in parse_action_params()
	tracing: Fix infinite loop in tracing_read_pipe on overflowed print_trace_line
	staging: media: tegra-video: fix chan->mipi value on error
	ARM: 9256/1: NWFPE: avoid compiler-generated __aeabi_uldivmod
	media: dvb-core: Fix double free in dvb_register_device()
	media: dvb-core: Fix UAF due to refcount races at releasing
	cifs: fix confusing debug message
	cifs: fix missing display of three mount options
	rtc: ds1347: fix value written to century register
	md/bitmap: Fix bitmap chunk size overflow issues
	efi: Add iMac Pro 2017 to uefi skip cert quirk
	wifi: wilc1000: sdio: fix module autoloading
	ASoC: jz4740-i2s: Handle independent FIFO flush bits
	ipmi: fix long wait in unload when IPMI disconnect
	mtd: spi-nor: Check for zero erase size in spi_nor_find_best_erase_type()
	ima: Fix a potential NULL pointer access in ima_restore_measurement_list
	ipmi: fix use after free in _ipmi_destroy_user()
	PCI: Fix pci_device_is_present() for VFs by checking PF
	PCI/sysfs: Fix double free in error path
	crypto: n2 - add missing hash statesize
	driver core: Fix bus_type.match() error handling in __driver_attach()
	iommu/amd: Fix ivrs_acpihid cmdline parsing code
	remoteproc: core: Do pm_relax when in RPROC_OFFLINE state
	parisc: led: Fix potential null-ptr-deref in start_task()
	device_cgroup: Roll back to original exceptions after copy failure
	drm/connector: send hotplug uevent on connector cleanup
	drm/vmwgfx: Validate the box size for the snooped cursor
	drm/i915/dsi: fix VBT send packet port selection for dual link DSI
	drm/ingenic: Fix missing platform_driver_unregister() call in ingenic_drm_init()
	ext4: silence the warning when evicting inode with dioread_nolock
	ext4: add inode table check in __ext4_get_inode_loc to aovid possible infinite loop
	ext4: fix use-after-free in ext4_orphan_cleanup
	ext4: fix undefined behavior in bit shift for ext4_check_flag_values
	ext4: add EXT4_IGET_BAD flag to prevent unexpected bad inode
	ext4: add helper to check quota inums
	ext4: fix bug_on in __es_tree_search caused by bad quota inode
	ext4: fix reserved cluster accounting in __es_remove_extent()
	ext4: check and assert if marking an no_delete evicting inode dirty
	ext4: fix bug_on in __es_tree_search caused by bad boot loader inode
	ext4: init quota for 'old.inode' in 'ext4_rename'
	ext4: fix delayed allocation bug in ext4_clu_mapped for bigalloc + inline
	ext4: fix corruption when online resizing a 1K bigalloc fs
	ext4: fix error code return to user-space in ext4_get_branch()
	ext4: avoid BUG_ON when creating xattrs
	ext4: fix inode leak in ext4_xattr_inode_create() on an error path
	ext4: initialize quota before expanding inode in setproject ioctl
	ext4: avoid unaccounted block allocation when expanding inode
	ext4: allocate extended attribute value in vmalloc area
	drm/amdgpu: handle polaris10/11 overlap asics (v2)
	drm/amdgpu: make display pinning more flexible (v2)
	ARM: renumber bits related to _TIF_WORK_MASK
	perf/x86/intel/uncore: Generalize I/O stacks to PMON mapping procedure
	perf/x86/intel/uncore: Clear attr_update properly
	btrfs: replace strncpy() with strscpy()
	x86/mce: Get rid of msr_ops
	x86/MCE/AMD: Clear DFR errors found in THR handler
	media: s5p-mfc: Fix to handle reference queue during finishing
	media: s5p-mfc: Clear workbit to handle error condition
	media: s5p-mfc: Fix in register read and write for H264
	perf probe: Use dwarf_attr_integrate as generic DWARF attr accessor
	perf probe: Fix to get the DW_AT_decl_file and DW_AT_call_file as unsinged data
	x86/kprobes: Convert to insn_decode()
	x86/kprobes: Fix optprobe optimization check with CONFIG_RETHUNK
	staging: media: tegra-video: fix device_node use after free
	ravb: Fix "failed to switch device to config mode" message during unbind
	riscv/stacktrace: Fix stack output without ra on the stack top
	riscv: stacktrace: Fixup ftrace_graph_ret_addr retp argument
	ext4: goto right label 'failed_mount3a'
	ext4: correct inconsistent error msg in nojournal mode
	mm/highmem: Lift memcpy_[to|from]_page to core
	ext4: use memcpy_to_page() in pagecache_write()
	fs: ext4: initialize fsdata in pagecache_write()
	ext4: move functions in super.c
	ext4: simplify ext4 error translation
	ext4: fix various seppling typos
	ext4: fix leaking uninitialized memory in fast-commit journal
	ext4: use kmemdup() to replace kmalloc + memcpy
	mbcache: don't reclaim used entries
	mbcache: add functions to delete entry if unused
	ext4: remove EA inode entry from mbcache on inode eviction
	ext4: unindent codeblock in ext4_xattr_block_set()
	ext4: fix race when reusing xattr blocks
	mbcache: automatically delete entries from cache on freeing
	ext4: fix deadlock due to mbcache entry corruption
	SUNRPC: ensure the matching upcall is in-flight upon downcall
	bpf: pull before calling skb_postpull_rcsum()
	drm/panfrost: Fix GEM handle creation ref-counting
	vmxnet3: correctly report csum_level for encapsulated packet
	veth: Fix race with AF_XDP exposing old or uninitialized descriptors
	nfsd: shut down the NFSv4 state objects before the filecache
	net: hns3: add interrupts re-initialization while doing VF FLR
	net: sched: fix memory leak in tcindex_set_parms
	qlcnic: prevent ->dcb use-after-free on qlcnic_dcb_enable() failure
	nfc: Fix potential resource leaks
	vhost/vsock: Fix error handling in vhost_vsock_init()
	vringh: fix range used in iotlb_translate()
	vhost: fix range used in translate_desc()
	net/mlx5: Add forgotten cleanup calls into mlx5_init_once() error path
	net/mlx5: Avoid recovery in probe flows
	net/mlx5e: IPoIB, Don't allow CQE compression to be turned on by default
	net/mlx5e: Fix hw mtu initializing at XDP SQ allocation
	net: amd-xgbe: add missed tasklet_kill
	net: phy: xgmiitorgmii: Fix refcount leak in xgmiitorgmii_probe
	RDMA/mlx5: Fix validation of max_rd_atomic caps for DC
	drm/meson: Reduce the FIFO lines held when AFBC is not used
	filelock: new helper: vfs_inode_has_locks
	ceph: switch to vfs_inode_has_locks() to fix file lock bug
	gpio: sifive: Fix refcount leak in sifive_gpio_probe
	net: sched: atm: dont intepret cls results when asked to drop
	net: sched: cbq: dont intepret cls results when asked to drop
	netfilter: ipset: fix hash:net,port,net hang with /0 subnet
	netfilter: ipset: Rework long task execution when adding/deleting entries
	perf tools: Fix resources leak in perf_data__open_dir()
	drivers/net/bonding/bond_3ad: return when there's no aggregator
	usb: rndis_host: Secure rndis_query check against int overflow
	drm/i915: unpin on error in intel_vgpu_shadow_mm_pin()
	caif: fix memory leak in cfctrl_linkup_request()
	udf: Fix extension of the last extent in the file
	ASoC: Intel: bytcr_rt5640: Add quirk for the Advantech MICA-071 tablet
	nvme: fix multipath crash caused by flush request when blktrace is enabled
	x86/bugs: Flush IBP in ib_prctl_set()
	nfsd: fix handling of readdir in v4root vs. mount upcall timeout
	fbdev: matroxfb: G200eW: Increase max memory from 1 MB to 16 MB
	riscv: uaccess: fix type of 0 variable on error in get_user()
	drm/i915/gvt: fix gvt debugfs destroy
	drm/i915/gvt: fix vgpu debugfs clean in remove
	ext4: don't allow journal inode to have encrypt flag
	selftests: set the BUILD variable to absolute path
	hfs/hfsplus: use WARN_ON for sanity check
	hfs/hfsplus: avoid WARN_ON() for sanity check, use proper error handling
	mbcache: Avoid nesting of cache->c_list_lock under bit locks
	efi: random: combine bootloader provided RNG seed with RNG protocol output
	io_uring: Fix unsigned 'res' comparison with zero in io_fixup_rw_res()
	parisc: Align parisc MADV_XXX constants with all other architectures
	ext4: disable fast-commit of encrypted dir operations
	ext4: don't set up encryption key during jbd2 transaction
	fsl_lpuart: Don't enable interrupts too early
	serial: fixup backport of "serial: Deassert Transmit Enable on probe in driver-specific way"
	mptcp: mark ops structures as ro_after_init
	mptcp: remove MPTCP 'ifdef' in TCP SYN cookies
	mptcp: dedicated request sock for subflow in v6
	mptcp: use proper req destructor for IPv6
	net: sched: disallow noqueue for qdisc classes
	net/ulp: prevent ULP without clone op from entering the LISTEN status
	ALSA: pcm: Move rwsem lock inside snd_ctl_elem_read to prevent UAF
	ALSA: hda/hdmi: Add a HP device 0x8715 to force connect list
	ALSA: hda - Enable headset mic on another Dell laptop with ALC3254
	Linux 5.10.163

Change-Id: I9026971760be8484f1e1fa607f9f91243cc87785
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-06 12:30:05 +00:00
Jaewook Kim
a20fd832a4 BACKPORT: f2fs: do not allow to decompress files have FI_COMPRESS_RELEASED
If a file has FI_COMPRESS_RELEASED, all writes for it should not be
allowed. However, as of now, in case of compress_mode=user, writes
triggered by IOCTLs like F2FS_IOC_DE/COMPRESS_FILE are allowed unexpectly,
which could crash that file.
To fix it, let's do not allow F2FS_IOC_DE/COMPRESS_IOCTL if a file already
has FI_COMPRESS_RELEASED flag.

This is the reproduction process:
1.  $ touch ./file
2.  $ chattr +c ./file
3.  $ dd if=/dev/random of=./file bs=4096 count=30 conv=notrunc
4.  $ dd if=/dev/zero of=./file bs=4096 count=34 seek=30 conv=notrunc
5.  $ sync
6.  $ do_compress ./file      ; call F2FS_IOC_COMPRESS_FILE
7.  $ get_compr_blocks ./file ; call F2FS_IOC_GET_COMPRESS_BLOCKS
8.  $ release ./file          ; call F2FS_IOC_RELEASE_COMPRESS_BLOCKS
9.  $ do_compress ./file      ; call F2FS_IOC_COMPRESS_FILE again
10. $ get_compr_blocks ./file ; call F2FS_IOC_GET_COMPRESS_BLOCKS again

This reproduction process is tested in 128kb cluster size.
You can find compr_blocks has a negative value.

Fixes: 5fdb322ff2c2b ("f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE")

Bug: 228919347
Bug: 267580491
Signed-off-by: Junbeom Yeom <junbeom.yeom@samsung.com>
Signed-off-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Youngjin Gil <youngjin.gil@samsung.com>
Signed-off-by: Jaewook Kim <jw5454.kim@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 854f8871ed48229d217edd7cb023f749e4a0817b)
Change-Id: I086e4d88da68574ef793740d19ecbb2d4ad6ef1d
2023-02-03 18:44:20 +00:00
Daeho Jeong
16996773d6 BACKPORT: f2fs: handle decompress only post processing in softirq
Now decompression is being handled in workqueue and it makes read I/O
latency non-deterministic, because of the non-deterministic scheduling
nature of workqueues. So, I made it handled in softirq context only if
possible, not in low memory devices, since this modification will
maintain decompresion related memory a little longer.

Bug: 232003054
Bug: 267580491
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Change-Id: I1a7c642e05c2f8544d475039b733403181de641e
(cherry picked from commit 9ef8cd45d7a9)
2023-02-03 18:44:20 +00:00
Daeho Jeong
ce72626280 BACKPORT: f2fs: introduce memory mode
Introduce memory mode to supports "normal" and "low" memory modes.
"low" mode is to support low memory devices. Because of the nature of
low memory devices, in this mode, f2fs will try to save memory sometimes
by sacrificing performance. "normal" mode is the default mode and same
as before.

Bug: 232003054
Bug: 267580491
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 60f60d1fd86a)
Change-Id: I7cb719b18f0002d7af47f7a18e8ec2f4c534bdd9
2023-02-03 18:44:20 +00:00
Sungjong Seo
246a996565 BACKPORT: f2fs: allow compression for mmap files in compress_mode=user
Since commit e3c548323d32 ("f2fs: let's allow compression for mmap files"),
it has been allowed to compress mmap files. However, in compress_mode=user,
it is not allowed yet. To keep the same concept in both compress_modes,
f2fs_ioc_(de)compress_file() should also allow it.

Let's remove checking mmap files in f2fs_ioc_(de)compress_file() so that
the compression for mmap files is also allowed in compress_mode=user.

Bug: 228919347
Bug: 267580491
Signed-off-by: Sungjong Seo <sj1557.seo@samsung.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 77142c3cf71f09dcf3fb2ef43926a29e2cfd2ae3)
Change-Id: I31798dfb851be6ee7e5156be8c46fe007583ee55
(cherry picked from commit d85467fdca7c61be37cfd65434dffba3fb4d978d)
2023-02-03 18:44:20 +00:00
Greg Kroah-Hartman
8596b99884 Merge 5.10.162 into android12-5.10-lts
Changes in 5.10.162
	kernel: provide create_io_thread() helper
	iov_iter: add helper to save iov_iter state
	saner calling conventions for unlazy_child()
	fs: add support for LOOKUP_CACHED
	fix handling of nd->depth on LOOKUP_CACHED failures in try_to_unlazy*
	Make sure nd->path.mnt and nd->path.dentry are always valid pointers
	fs: expose LOOKUP_CACHED through openat2() RESOLVE_CACHED
	tools headers UAPI: Sync openat2.h with the kernel sources
	net: provide __sys_shutdown_sock() that takes a socket
	net: add accept helper not installing fd
	signal: Add task_sigpending() helper
	fs: make do_renameat2() take struct filename
	file: Rename __close_fd_get_file close_fd_get_file
	fs: provide locked helper variant of close_fd_get_file()
	entry: Add support for TIF_NOTIFY_SIGNAL
	task_work: Use TIF_NOTIFY_SIGNAL if available
	x86: Wire up TIF_NOTIFY_SIGNAL
	arc: add support for TIF_NOTIFY_SIGNAL
	arm64: add support for TIF_NOTIFY_SIGNAL
	m68k: add support for TIF_NOTIFY_SIGNAL
	nios32: add support for TIF_NOTIFY_SIGNAL
	parisc: add support for TIF_NOTIFY_SIGNAL
	powerpc: add support for TIF_NOTIFY_SIGNAL
	mips: add support for TIF_NOTIFY_SIGNAL
	s390: add support for TIF_NOTIFY_SIGNAL
	um: add support for TIF_NOTIFY_SIGNAL
	sh: add support for TIF_NOTIFY_SIGNAL
	openrisc: add support for TIF_NOTIFY_SIGNAL
	csky: add support for TIF_NOTIFY_SIGNAL
	hexagon: add support for TIF_NOTIFY_SIGNAL
	microblaze: add support for TIF_NOTIFY_SIGNAL
	arm: add support for TIF_NOTIFY_SIGNAL
	xtensa: add support for TIF_NOTIFY_SIGNAL
	alpha: add support for TIF_NOTIFY_SIGNAL
	c6x: add support for TIF_NOTIFY_SIGNAL
	h8300: add support for TIF_NOTIFY_SIGNAL
	ia64: add support for TIF_NOTIFY_SIGNAL
	nds32: add support for TIF_NOTIFY_SIGNAL
	riscv: add support for TIF_NOTIFY_SIGNAL
	sparc: add support for TIF_NOTIFY_SIGNAL
	ia64: don't call handle_signal() unless there's actually a signal queued
	ARC: unbork 5.11 bootup: fix snafu in _TIF_NOTIFY_SIGNAL handling
	alpha: fix TIF_NOTIFY_SIGNAL handling
	task_work: remove legacy TWA_SIGNAL path
	kernel: remove checking for TIF_NOTIFY_SIGNAL
	coredump: Limit what can interrupt coredumps
	kernel: allow fork with TIF_NOTIFY_SIGNAL pending
	entry/kvm: Exit to user mode when TIF_NOTIFY_SIGNAL is set
	arch: setup PF_IO_WORKER threads like PF_KTHREAD
	arch: ensure parisc/powerpc handle PF_IO_WORKER in copy_thread()
	x86/process: setup io_threads more like normal user space threads
	kernel: stop masking signals in create_io_thread()
	kernel: don't call do_exit() for PF_IO_WORKER threads
	task_work: add helper for more targeted task_work canceling
	io_uring: import 5.15-stable io_uring
	signal: kill JOBCTL_TASK_WORK
	task_work: unconditionally run task_work from get_signal()
	net: remove cmsg restriction from io_uring based send/recvmsg calls
	Revert "proc: don't allow async path resolution of /proc/thread-self components"
	Revert "proc: don't allow async path resolution of /proc/self components"
	eventpoll: add EPOLL_URING_WAKE poll wakeup flag
	eventfd: provide a eventfd_signal_mask() helper
	io_uring: pass in EPOLL_URING_WAKE for eventfd signaling and wakeups
	Linux 5.10.162

Change-Id: I50a7b8bc8d38fac612113281b218cf5323b0af5e
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-01 16:13:18 +00:00
Trond Myklebust
032a7d5ff5 nfsd: Ensure knfsd shuts down when the "nfsd" pseudofs is unmounted
commit c6c7f2a84da459bcc3714044e74a9cb66de31039 upstream.

In order to ensure that knfsd threads don't linger once the nfsd
pseudofs is unmounted (e.g. when the container is killed) we let
nfsd_umount() shut down those threads and wait for them to exit.

This also should ensure that we don't need to do a kernel mount of
the pseudofs, since the thread lifetime is now limited by the
lifetime of the filesystem.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Nikos Tsironis <ntsironis@arrikto.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-01 08:23:26 +01:00