Commit Graph

902023 Commits

Author SHA1 Message Date
Lee Jones
eb1843e8af ANDROID: Use GKI Dr. No OWNERS file
The v5.4 branches seem to have been left behind in this regard.

Let's unify the way we implement OWNERS semantics on all branches.

Bug: 314749503
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I54562c23a38ebe2d0059b6134f758cd8d7ec6bc0
2023-12-04 13:28:17 +00:00
Lee Jones
bbbaa68181 ANDROID: Remove android/OWNERs file
An OWNERS file does now exist in the root directory and the fear that it
would be excessively permissive has not become a reality.  Simplify the
situation by inheriting directly from it instead of proving an override.

Bug: 314749503
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I795eee3d7b44aa0f91a2ac4d9a27d0c7cbdc1cc6
(cherry picked from commit a1bbeb516a5aa4ad86f0d260784ea9b9be454244)
Signed-off-by: Lee Jones <joneslee@google.com>
2023-12-04 13:25:14 +00:00
Biswarup Pal
b7ba0d931e FROMGIT: Input: uinput - allow injecting event times
Currently, uinput doesn't use the input_set_timestamp API, so any
event injected using uinput is not accurately timestamped in terms of
measuring when the actual event happened. Hence, call the
input_set_timestamp API from uinput in order to provide a more
accurate sense of time for the event. Propagate only the timestamps
which are a) positive, b) within a pre-defined offset (10 secs) from
the current time, and c) not in the future.

Bug: 271946580
Bug: 277040837
Change-Id: I928be61d0114b78e2098995ee49eeb0376bef2a3
(cherry picked from commit 3a2df60200a03f78173f1fd831aa54c08464dcde
https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git master)
Signed-off-by: Biswarup Pal <biswarupp@google.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Siarhei Vishniakou <svv@google.com>
Link: https://lore.kernel.org/r/20230427000152.1407471-1-biswarupp@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
(cherry picked from commit ee1f5fc55cc7bf1bca78edbb8a1f9d989d4ea03e)
2023-11-29 18:06:49 +00:00
Treehugger Robot
0acbae5b32 Merge "Merge tag 'android11-5.4.259_r00' into android11-5.4" into android11-5.4 2023-11-29 12:41:51 +00:00
Greg Kroah-Hartman
e8f8c3db8c ANDROID: fix up rpmsg_device ABI break
In commit e70898ae1a ("rpmsg: Fix kfree() of static memory on setting
driver_override") a pointer was changed to const, which messes with the
CRC and ABI checks.  As the code is fine if this is left as not-const,
just put it back to preserve the abi.

Bug: 161946584
Fixes: e70898ae1a ("rpmsg: Fix kfree() of static memory on setting driver_override")
Change-Id: I9a87b9cf412191d9872b48f1f876a81df6701de0
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
(cherry picked from commit 0443350950)
Signed-off-by: Lee Jones <joneslee@google.com>
2023-11-28 10:16:08 +00:00
Greg Kroah-Hartman
a1f6648aa3 ANDROID: fix up platform_device ABI break
In commit 063444d66f ("driver: platform: Add helper for safer setting
of driver_override"), a pointer was changed to const, which messes with
the CRC and ABI checks.  As the code is fine if this is left as
not-const, just put it back to preserve the abi.

Bug: 161946584
Fixes: 063444d66f ("driver: platform: Add helper for safer setting of driver_override")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ieb4a730a6a5767d31fbec2f1ba683617f5cda7a9
(cherry picked from commit 398b357f13)
Signed-off-by: Lee Jones <joneslee@google.com>
2023-11-28 10:15:58 +00:00
Hangyu Hua
b05d8acf42 UPSTREAM: rpmsg: Fix possible refcount leak in rpmsg_register_device_override()
commit d7bd416d35121c95fe47330e09a5c04adbc5f928 upstream.

rpmsg_register_device_override need to call put_device to free vch when
driver_set_override fails.

Fix this by adding a put_device() to the error path.

Bug: 295334746
Fixes: bb17d110cbf2 ("rpmsg: Fix calling device_lock() on non-initialized device")
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Link: https://lore.kernel.org/r/20220624024120.11576-1-hbh25y@gmail.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit d4c8bf5635c4bedaf2470761ced1f502b2d5434e)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I10440a18479d5d207bafb706311c0467b853cf6c
2023-11-21 14:16:55 +00:00
Bjorn Andersson
9e43c50d47 UPSTREAM: rpmsg: glink: Release driver_override
commit fb80ef67e8ff6a00d3faad4cb348dafdb8eccfd8 upstream.

Upon termination of the rpmsg_device, driver_override needs to be freed
to avoid leaking the potentially assigned string.

Bug: 295334746
Fixes: 42cd402b8fd4 ("rpmsg: Fix kfree() of static memory on setting driver_override")
Fixes: 39e47767ec ("rpmsg: Add driver_override device attribute for rpmsg_device")
Reviewed-by: Chris Lew <quic_clew@quicinc.com>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230109223931.1706429-1-quic_bjorande@quicinc.com
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit a82e0fda8a2f8561a6a6681e8b3557e60cad17da)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I08b147ad640a8e2d71699a09815bbf048425a1fd
2023-11-21 14:16:47 +00:00
Krzysztof Kozlowski
e172d704c7 BACKPORT: rpmsg: Fix calling device_lock() on non-initialized device
commit bb17d110cbf270d5247a6e261c5ad50e362d1675 upstream.

driver_set_override() helper uses device_lock() so it should not be
called before rpmsg_register_device() (which calls device_register()).
Effect can be seen with CONFIG_DEBUG_MUTEXES:

  DEBUG_LOCKS_WARN_ON(lock->magic != lock)
  WARNING: CPU: 3 PID: 57 at kernel/locking/mutex.c:582 __mutex_lock+0x1ec/0x430
  ...
  Call trace:
   __mutex_lock+0x1ec/0x430
   mutex_lock_nested+0x44/0x50
   driver_set_override+0x124/0x150
   qcom_glink_native_probe+0x30c/0x3b0
   glink_rpm_probe+0x274/0x350
   platform_probe+0x6c/0xe0
   really_probe+0x17c/0x3d0
   __driver_probe_device+0x114/0x190
   driver_probe_device+0x3c/0xf0
   ...

Refactor the rpmsg_register_device() function to use two-step device
registering (initialization + add) and call driver_set_override() in
proper moment.

This moves the code around, so while at it also NULL-ify the
rpdev->driver_override in error path to be sure it won't be kfree()
second time.

Bug: 295334746
Fixes: 42cd402b8fd4 ("rpmsg: Fix kfree() of static memory on setting driver_override")
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20220429195946.1061725-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit bfd4a664ddfbe12f008efb0b0ab6bf25a8ab2538)
[Lee: Git was confused that the hunk being removed had changed]
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: Ic07d9ff669e88a50354ad8e978ae8e93316a2a5e
2023-11-21 14:16:40 +00:00
Krzysztof Kozlowski
f497d3c5e8 BACKPORT: rpmsg: Fix kfree() of static memory on setting driver_override
commit 42cd402b8fd4672b692400fe5f9eecd55d2794ac upstream.

The driver_override field from platform driver should not be initialized
from static memory (string literal) because the core later kfree() it,
for example when driver_override is set via sysfs.

Use dedicated helper to set driver_override properly.

Bug: 295334746
Fixes: 950a7388f02b ("rpmsg: Turn name service into a stand alone driver")
Fixes: c0cdc19f84 ("rpmsg: Driver for user space endpoint interface")
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220419113435.246203-13-krzysztof.kozlowski@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2e76b4f6218c4db3ff00eb15d94d72f371736de4)
[Lee: Cater for name change s/rpmsg_chrdev/rpmsg_ctrl/ due to previous backport]
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: Ib900ad13efcfdf7e50fb92bb45dff2b8aa8ff443
2023-11-21 14:16:32 +00:00
Krzysztof Kozlowski
d0dadc2667 UPSTREAM: rpmsg: Constify local variable in field store macro
commit e5f89131a06142e91073b6959d91cea73861d40e upstream.

Memory pointed by variable 'old' in field store macro is not modified,
so it can be made a pointer to const.

Bug: 295334746
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220419113435.246203-12-krzysztof.kozlowski@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 5c0da71871d3ac3f96d37067bf1a0ba9c25c2c72)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: If5610892601368e855ec1be57e01dbbe06ae046a
2023-11-21 14:01:01 +00:00
Krzysztof Kozlowski
2069521c81 UPSTREAM: driver: platform: Add helper for safer setting of driver_override
commit 6c2f421174273de8f83cde4286d1c076d43a2d35 upstream.

Several core drivers and buses expect that driver_override is a
dynamically allocated memory thus later they can kfree() it.

However such assumption is not documented, there were in the past and
there are already users setting it to a string literal. This leads to
kfree() of static memory during device release (e.g. in error paths or
during unbind):

    kernel BUG at ../mm/slub.c:3960!
    Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
    ...
    (kfree) from [<c058da50>] (platform_device_release+0x88/0xb4)
    (platform_device_release) from [<c0585be0>] (device_release+0x2c/0x90)
    (device_release) from [<c0a69050>] (kobject_put+0xec/0x20c)
    (kobject_put) from [<c0f2f120>] (exynos5_clk_probe+0x154/0x18c)
    (exynos5_clk_probe) from [<c058de70>] (platform_drv_probe+0x6c/0xa4)
    (platform_drv_probe) from [<c058b7ac>] (really_probe+0x280/0x414)
    (really_probe) from [<c058baf4>] (driver_probe_device+0x78/0x1c4)
    (driver_probe_device) from [<c0589854>] (bus_for_each_drv+0x74/0xb8)
    (bus_for_each_drv) from [<c058b48c>] (__device_attach+0xd4/0x16c)
    (__device_attach) from [<c058a638>] (bus_probe_device+0x88/0x90)
    (bus_probe_device) from [<c05871fc>] (device_add+0x3dc/0x62c)
    (device_add) from [<c075ff10>] (of_platform_device_create_pdata+0x94/0xbc)
    (of_platform_device_create_pdata) from [<c07600ec>] (of_platform_bus_create+0x1a8/0x4fc)
    (of_platform_bus_create) from [<c0760150>] (of_platform_bus_create+0x20c/0x4fc)
    (of_platform_bus_create) from [<c07605f0>] (of_platform_populate+0x84/0x118)
    (of_platform_populate) from [<c0f3c964>] (of_platform_default_populate_init+0xa0/0xb8)
    (of_platform_default_populate_init) from [<c01031f8>] (do_one_initcall+0x8c/0x404)

Provide a helper which clearly documents the usage of driver_override.
This will allow later to reuse the helper and reduce the amount of
duplicated code.

Convert the platform driver to use a new helper and make the
driver_override field const char (it is not modified by the core).

Bug: 295334746
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220419113435.246203-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 063444d66f)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I221cb27e2dda0382f0a2f8466a95d046940ffe9c
2023-11-21 14:00:46 +00:00
Mukesh Ojha
d43ac48de2 BACKPORT: firmware_loader: Abort all upcoming firmware load request once reboot triggered
There could be following scenario where there is a ongoing reboot
is going from processA which tries to call all the reboot notifier
callback and one of them is firmware reboot call which tries to
abort all the ongoing firmware userspace request under fw_lock but
there could be another processB which tries to do request firmware,
which came just after abort done from ProcessA and ask for userspace
to load the firmware and this can stop the ongoing reboot ProcessA
to stall for next 60s(default timeout) which may not be expected
behaviour everyone like to see, instead we should abort any firmware
load request which came once firmware knows about the reboot through
notification.

      ProcessA                             ProcessB

kernel_restart_prepare
  blocking_notifier_call_chain
   fw_shutdown_notify
     kill_pending_fw_fallback_reqs
      __fw_load_abort
       fw_state_aborted                request_firmware
         __fw_state_set                 firmware_fallback_sysfs
...                                       fw_load_from_user_helper
..                                         ...
.                                          ..
                                            usermodehelper_read_trylock
                                             fw_load_sysfs_fallback
                                              fw_sysfs_wait_timeout
usermodehelper_disable
 __usermodehelper_disable
  down_write()

Bug: 309378049
Change-Id: I61eb91f21a01460f340f890b25c60de7597a87ff
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/1698330459-31776-2-git-send-email-quic_mojha@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit effd7c70eaa0440688b60b9d419243695ede3c45)
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
2023-11-07 10:13:14 +05:30
Mukesh Ojha
93e172c43e UPSTREAM: firmware_loader: Refactor kill_pending_fw_fallback_reqs()
Rename 'only_kill_custom' and refactor logic related to it
to be more meaningful.

Bug: 309378049
Change-Id: I119d2f8c29b9b624e6c1d8546c1533d76a2cc51d
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/1698330459-31776-1-git-send-email-quic_mojha@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 87ffa98eeee8d62a56afdad80ea697e7a6e5c354)
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
2023-11-07 10:12:56 +05:30
Kyle Zeng
49de253fb4 UPSTREAM: netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
commit 050d91c03b28ca479df13dfb02bcd2c60dd6a878 upstream.

The missing IP_SET_HASH_WITH_NET0 macro in ip_set_hash_netportnet can
lead to the use of wrong `CIDR_POS(c)` for calculating array offsets,
which can lead to integer underflow. As a result, it leads to slab
out-of-bound access.
This patch adds back the IP_SET_HASH_WITH_NET0 macro to
ip_set_hash_netportnet to address the issue.

Bug: 302199939
Fixes: 886503f34d ("netfilter: ipset: actually allow allowable CIDR 0 in hash:net,port,net")
Suggested-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: Kyle Zeng <zengyhkyle@gmail.com>
Acked-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit a9e6142e5f8f6ac7d1bca45c1b2b13b084ea9e14)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I11cc1650e7df9d54041164b6bdb01f3a0de46de4
2023-10-31 15:57:14 +00:00
Greg Kroah-Hartman
b40f1a5d2f Merge tag 'android11-5.4.259_r00' into android11-5.4
This merges the upstream 5.4.259 LTS release into the android11-5.4
branch.  It contains the following commits:

* 4934e8f7a8 Revert "perf: Disallow mis-matched inherited group reads"
* 231c81bbc8 Revert "xfrm: fix a data-race in xfrm_gen_index()"
* 0ca22be029 Revert "Bluetooth: hci_core: Fix build warnings"
* cf5d98b23e Revert "xfrm: interface: use DEV_STATS_INC()"
*   6b5f21afc2 Merge 5.4.259 into android11-5.4-lts
|\
| * 86ea40e6ad Linux 5.4.259
| * c01ac092d9 xfrm6: fix inet6_dev refcount underflow problem
| * b849a38e18 Bluetooth: hci_sock: Correctly bounds check and pad HCI_MON_NEW_INDEX name
| * 4d161e18b1 Bluetooth: hci_sock: fix slab oob read in create_monitor_event
| * a0f0e43128 phy: mapphone-mdm6600: Fix pinctrl_pm handling for sleep pins
| * d1618b9223 phy: mapphone-mdm6600: Fix runtime PM for remove
| * 4db06513a0 phy: mapphone-mdm6600: Fix runtime disable on probe
| * 083ff5b50c ASoC: pxa: fix a memory leak in probe()
| * 27a17a2590 gpio: vf610: set value before the direction to avoid a glitch
| * 664aad86e5 s390/pci: fix iommu bitmap allocation
| * 7252c8b981 perf: Disallow mis-matched inherited group reads
| * 32279bbbd8 USB: serial: option: add Fibocom to DELL custom modem FM101R-GL
| * 1ff2a7fa0c USB: serial: option: add entry for Sierra EM9191 with new firmware
| * eb8f5e40cb USB: serial: option: add Telit LE910C4-WWX 0x1035 composition
| * b43a412aa1 ACPI: irq: Fix incorrect return value in acpi_register_gsi()
| * 3189d2d587 Revert "pinctrl: avoid unsafe code pattern in find_pinctrl()"
| * 690eb3772f mmc: core: Capture correct oemid-bits for eMMC cards
| * 894b678d86 mmc: core: sdio: hold retuning if sdio in 1-bit mode
| * 37ae7c493a mtd: physmap-core: Restore map_rom fallback
| * de28fa5331 mtd: spinand: micron: correct bitmask for ecc status
| * bd68f50684 mtd: rawnand: qcom: Unmap the right resource upon probe failure
| * a787e07755 Bluetooth: hci_event: Fix using memcmp when comparing keys
| * 897d6aee8f HID: multitouch: Add required quirk for Synaptics 0xcd7e device
| * 9cae05233b btrfs: fix some -Wmaybe-uninitialized warnings in ioctl.c
| * 693ecef543 drm: panel-orientation-quirks: Add quirk for One Mix 2S
| * 4030effab8 sky2: Make sure there is at least one frag_addr available
| * 340bb4b716 regulator/core: Revert "fix kobject release warning and memory leak in regulator_register()"
| * d7604e819a wifi: cfg80211: avoid leaking stack data into trace
| * 139234011f wifi: mac80211: allow transmitting EAPOL frames with tainted key
| * b48595f5b1 Bluetooth: hci_core: Fix build warnings
| * 16e36cde27 Bluetooth: Avoid redundant authentication
| * fa83d852e9 HID: holtek: fix slab-out-of-bounds Write in holtek_kbd_input_event
| * 981dfec995 tracing: relax trace_event_eval_update() execution with cond_resched()
| * b5d9f34f38 ata: libata-eh: Fix compilation warning in ata_eh_link_report()
| * 392f597ead gpio: timberdale: Fix potential deadlock on &tgpio->lock
| * 91ae08dc30 overlayfs: set ctime when setting mtime and atime
| * 01a4e9bc63 i2c: mux: Avoid potential false error message in i2c_mux_add_adapter
| * 97cb55f41e btrfs: initialize start_slot in btrfs_log_prealloc_extents
| * a055d9d4dd btrfs: return -EUCLEAN for delayed tree ref with a ref count not equals to 1
| * d65dbb2aa4 ARM: dts: ti: omap: Fix noisy serial with overrun-throttle-ms for mapphone
| * 611c991b9e ACPI: resource: Skip IRQ override on ASUS ExpertBook B1402CBA
| * b2d0649c8e ACPI: resource: Skip IRQ override on ASUS ExpertBook B1502CBA
| * 8c0982fc4b ACPI: resource: Skip IRQ override on Asus Expertbook B2402CBA
| * 0818716a90 ACPI: resource: Add Asus ExpertBook B2502 to Asus quirks
| * c6f7b33586 ACPI: resource: Skip IRQ override on Asus Vivobook S5602ZA
| * b1f5f4720f ACPI: resource: Add ASUS model S5402ZA to quirks
| * fdcd669371 ACPI: resource: Skip IRQ override on Asus Vivobook K3402ZA/K3502ZA
| * cd202a9f88 ACPI: resources: Add DMI-based legacy IRQ override quirk
| * 26b2bc9bdc ACPI: Drop acpi_dev_irqresource_disabled()
| * 583913b1a6 resource: Add irqresource_disabled()
| * d6878d39b6 net: pktgen: Fix interface flags printing
| * cee9ea14c8 netfilter: nft_set_rbtree: .deactivate fails if element has expired
| * 863acae0b8 neighbor: tracing: Move pin6 inside CONFIG_IPV6=y section
| * f34916502d net/sched: sch_hfsc: upgrade 'rt' to 'sc' when it becomes a inner curve
| * b1ad377bba i40e: prevent crash on probe if hw registers have invalid values
| * c813d17660 net: usb: smsc95xx: Fix an error code in smsc95xx_reset()
| * 47419f2aef ipv4: fib: annotate races around nh->nh_saddr_genid and nh->nh_saddr
| * 00a251ea45 tun: prevent negative ifindex
| * 8710dbe09e tcp: tsq: relax tcp_small_queue_check() when rtx queue contains a single skb
| * 1ae2c7d44e tcp: fix excessive TLP and RACK timeouts from HZ rounding
| * eb1a33195a net: rfkill: gpio: prevent value glitch during probe
| * cd44e14573 net: ipv6: fix return value check in esp_remove_trailer
| * 03b88b7d2a net: ipv4: fix return value check in esp_remove_trailer
| * 0cb7b894e4 xfrm: interface: use DEV_STATS_INC()
| * bcacdf4deb xfrm: fix a data-race in xfrm_gen_index()
| * 639e979a7d qed: fix LL2 RX buffer allocation
| * 1cb76fec3e netfilter: nft_payload: fix wrong mac header matching
| * 6b2875b527 KVM: x86: Mask LVTPC when handling a PMI
| * 1d434d8313 regmap: fix NULL deref on lookup
| * 76050b0cc5 nfc: nci: fix possible NULL pointer dereference in send_acknowledge()
| * 80ce32ab9b ice: fix over-shifted variable
| * ec8f0d0fe6 Bluetooth: avoid memcmp() out of bounds warning
| * 1a00e3544b Bluetooth: hci_event: Fix coding style
| * 84598a339b Bluetooth: vhci: Fix race when opening vhci device
| * 1769ac55db Bluetooth: Fix a refcnt underflow problem for hci_conn
| * 97ce8eca07 Bluetooth: Reject connection with the device which has same BD_ADDR
| * 6ce3478336 Bluetooth: hci_event: Ignore NULL link key
| * 6ad3e9fd36 usb: hub: Guard against accesses to uninitialized BOS descriptors
| * 57e83c2445 Documentation: sysctl: align cells in second content column
| * 947cd2fba1 dev_forward_skb: do not scrub skb mark within the same name space
| * 65d34cfd4e ravb: Fix use-after-free issue in ravb_tx_timeout_work()
| * de6e271338 powerpc/64e: Fix wrong test in __ptep_test_and_clear_young()
| * 85ae11da85 powerpc/8xx: Fix pte_access_permitted() for PAGE_NONE
| * 077fdae908 dmaengine: mediatek: Fix deadlock caused by synchronize_irq()
| * 6ea15d9f7a x86/cpu: Fix AMD erratum #1485 on Zen4-based CPUs
| * e7ca00f35d usb: gadget: ncm: Handle decoding of multiple NTB's in unwrap call
| * 1e4414c387 usb: gadget: udc-xilinx: replace memcpy with memcpy_toio
| * 2a433d3255 pinctrl: avoid unsafe code pattern in find_pinctrl()
| * d5b11bd893 cgroup: Remove duplicates in cgroup v1 tasks file
| * 1e59ebed9c Input: xpad - add PXN V900 support
| * 8664fa7fbb Input: psmouse - fix fast_reconnect function for PS/2 mode
| * 5aa514100a Input: powermate - fix use-after-free in powermate_config_complete
| * 3cdce751b0 ceph: fix incorrect revoked caps assert in ceph_fill_file_size()
| * 92cd1635c6 libceph: use kernel_connect()
| * 5704225cdd mcb: remove is_added flag from mcb_device struct
| * 2bf6c93e17 iio: pressure: ms5611: ms5611_prom_is_valid false negative bug
| * 84af249e48 iio: pressure: dps310: Adjust Timeout Settings
| * 00cd9d9c12 iio: pressure: bmp280: Fix NULL pointer exception
| * f4c11b2ea0 usb: musb: Modify the "HWVers" register address
| * fc1ecea726 usb: musb: Get the musb_qh poniter after musb_giveback
| * c0fb0419c1 usb: dwc3: Soft reset phy on probe for host
| * 7efac5b4c2 net: usb: dm9601: fix uninitialized variable use in dm9601_mdio_read
| * 57942b0763 usb: xhci: xhci-ring: Use sysdev for mapping bounce buffer
| * e397100846 dmaengine: stm32-mdma: abort resume if no ongoing transfer
| * 3345799c4f workqueue: Override implicit ordered attribute in workqueue_apply_unbound_cpumask()
| * 95733ea130 nfc: nci: assert requested protocol is valid
| * 7adcf014bd net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()
| * 22ca282ea0 ixgbe: fix crash with empty VF macvlan list
| * 0cc6c070d9 drm/vmwgfx: fix typo of sizeof argument
| * 80a3c00684 xen-netback: use default TX queue size for vifs
| * 332587dc7f mlxsw: fix mlxsw_sp2_nve_vxlan_learning_set() return type
| * 85c2857ef9 ieee802154: ca8210: Fix a potential UAF in ca8210_probe
| * daff72af3f ravb: Fix up dma_free_coherent() call in ravb_remove()
| * d3d2aecc1f drm/msm/dsi: skip the wait for video mode done if not applicable
| * a0c24f802d drm: etvnaviv: fix bad backport leading to warning
| * 907a380eb3 net: prevent address rewrite in kernel_bind()
| * 061a18239c quota: Fix slow quotaoff
| * cd0e2bf7fb HID: logitech-hidpp: Fix kernel crash on receiver USB disconnect
| * 8e39b5fb83 pwm: hibvt: Explicitly set .polarity in .get_state()
| * c4eff809d6 lib/test_meminit: fix off-by-one error in test_pages()
| * ffdd8f56a4 RDMA/cxgb4: Check skb value for failure to allocate
* |   bbe33b72cc Merge changes I407c2796,If3f36646,Ia03ea493,I5f0e742b,Ibe09c3b1, ... into android11-5.4-lts
|\ \
| * | 6eb76db1fc Revert "netfilter: conntrack: allow sctp hearbeat after connection re-use"
| * | 62bde05901 Revert "netfilter: conntrack: don't refresh sctp entries in closed state"
| * | e6f57200f5 Revert "netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp"
| * | e18c011afe Merge 5.4.258 into android11-5.4-lts
| |\|
| | * 02f78c59a0 Linux 5.4.258
| | * f70c285cf0 xen/events: replace evtchn_rwlock with RCU
| | * e2614ab16a ima: rework CONFIG_IMA dependency block
| | * b5c3bc4b81 NFS: Fix a race in __nfs_list_for_each_server()
| | * f0ea421fa2 parisc: Restore __ldcw_align for PA-RISC 2.0 processors
| | * 14e5d94d5c RDMA/mlx5: Fix NULL string error
| | * 6e26812e28 RDMA/siw: Fix connection failure handling
| | * 8ab1fb16dc RDMA/uverbs: Fix typo of sizeof argument
| | * 26d48f7090 RDMA/cma: Fix truncation compilation warning in make_cma_ports
| | * f102dd8a17 gpio: pxa: disable pinctrl calls for MMP_GPIO
| | * e38aceeadb gpio: aspeed: fix the GPIO number passed to pinctrl_gpio_set_config()
| | * 8584ee20a5 IB/mlx4: Fix the size of a buffer in add_port_entries()
| | * 35b689ee4b RDMA/core: Require admin capabilities to set system parameters
| | * 1047ca5bae cpupower: add Makefile dependencies for install targets
| | * 3c2f536c3d sctp: update hb timer immediately after users change hb_interval
| | * caf0c61f14 sctp: update transport state when processing a dupcook packet
| | * 14fc22c929 tcp: fix delayed ACKs for MSS boundary condition
| | * 2791d64e66 tcp: fix quick-ack counting to count actual ACKs of new data
| | * 7fbce1e46b net: stmmac: dwmac-stm32: fix resume on STM32 MCU
| | * f110aa377d netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp
| | * 191d87a19c net: nfc: llcp: Add lock when modifying device list
| | * 310f1c92f6 net: usb: smsc75xx: Fix uninit-value access in __smsc75xx_read_reg
| | * 8992055210 net: dsa: mv88e6xxx: Avoid EEPROM timeout when EEPROM is absent
| | * 1fc793d68d ipv4, ipv6: Fix handling of transhdrlen in __ip{,6}_append_data()
| | * 95eabb075a net: fix possible store tearing in neigh_periodic_work()
| | * 10a301c83a modpost: add missing else to the "of" check
| | * 5e1c1bf53e NFSv4: Fix a nfs4_state_manager() race
| | * f90821f667 NFS: Add a helper nfs_client_for_each_server()
| | * e2d4fc53e9 NFS4: Trace state recovery operation
| | * c87f66c43c scsi: target: core: Fix deadlock due to recursive locking
| | * 8a1fa738b4 ima: Finish deprecation of IMA_TRUSTED_KEYRING Kconfig
| | * 442e50393a regmap: rbtree: Fix wrong register marked as in-cache when creating new node
| * | 4542148a7e Reapply "netfilter: conntrack: don't refresh sctp entries in closed state"
| * | 7fe1de446b Reapply "netfilter: conntrack: allow sctp hearbeat after connection re-use"
* | |   1891143414 Merge 52008a5e22 ("wifi: mt76: mt76x02: fix MT76x0 external LNA gain handling") into android11-5.4-lts
|\ \ \
| | |/
| |/|
| * | 52008a5e22 wifi: mt76: mt76x02: fix MT76x0 external LNA gain handling
| * | 31b2777690 drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close()
| * | b8e260654a wifi: mwifiex: Fix oob check condition in mwifiex_process_rx_packet
| * | 1b67be400a wifi: iwlwifi: dbg_ini: fix structure packing
| * | c6d3583876 ubi: Refuse attaching if mtd's erasesize is 0
| * | b4ec10b962 net: prevent rewrite of msg_name in sock_sendmsg()
| * | 53b700b41a net: replace calls to sock->ops->connect() with kernel_connect()
* | | 993e3b2df8 Merge 3c4bfa7a56 ("wifi: mwifiex: Fix tlv_buf_left calculation") into android11-5.4-lts
|\| |
| * | 3c4bfa7a56 wifi: mwifiex: Fix tlv_buf_left calculation
| * | 2e608cede0 qed/red_ll2: Fix undefined behavior bug in struct qed_ll2_info
| * | 810248a129 scsi: zfcp: Fix a double put in zfcp_port_enqueue()
| * | e60272ab02 Revert "PCI: qcom: Disable write access to read only registers for IP v2.3.3"
| * | 6e37de4a14 rbd: take header_rwsem in rbd_dev_refresh() only when updating
| * | bc2a304401 rbd: decouple parent info read-in from updating rbd_dev
| * | 2e0114edeb rbd: decouple header read-in from updating rbd_dev->header
| * | 32a59639c5 rbd: move rbd_dev_refresh() definition
* | | 8fb5605ba2 Merge ff10b1fad5 ("fs: binfmt_elf_efpic: fix personality for ELF-FDPIC") into android11-5.4-lts
|\| |
| |/
|/|
| * ff10b1fad5 fs: binfmt_elf_efpic: fix personality for ELF-FDPIC
| * 43e5dc1ee2 ata: libata-sata: increase PMP SRST timeout to 10s
| * ac1aebd4e3 ata: libata-core: Do not register PM operations for SAS ports
| * 9313aab5f6 ata: libata-core: Fix port and device removal
| * 9207666f16 ata: libata-core: Fix ata_port_request_pm() locking
| * d9483f5aec net: thunderbolt: Fix TCPv6 GSO checksum calculation
| * 47062af859 btrfs: properly report 0 avail for very full file systems
* | 8a59cb3011 Reapply "ANDROID: Revert "tracing/ring-buffer: Have polling block on watermark""
* | 574430d8ef Revert "ring-buffer: Update "shortest_full" in polling"
* | 5ca567aeaa Merge cf221a7880 ("ring-buffer: Update "shortest_full" in polling") into android11-5.4-lts
|\|
| * cf221a7880 ring-buffer: Update "shortest_full" in polling
* | fc8b7e30fd Revert "ANDROID: Revert "tracing/ring-buffer: Have polling block on watermark""
* | 74e7ad6a22 Merge ec7b2e7b36 ("i2c: i801: unregister tco_pdev in i801_probe() error path") into android11-5.4-lts
|\|
| * ec7b2e7b36 i2c: i801: unregister tco_pdev in i801_probe() error path
| * a4ecd8562c ata: libata-scsi: ignore reserved bits for REPORT SUPPORTED OPERATION CODES
| * ec1df5d37d ALSA: hda: Disable power save for solving pop issue on Lenovo ThinkCentre M70q
| * 193b5a1c6c nilfs2: fix potential use after free in nilfs_gccache_submit_read_data()
| * bf3c728e36 serial: 8250_port: Check IRQ data before use
| * 76ffbd900b Smack:- Use overlay inode label in smack_inode_copy_up()
| * 957a9916db smack: Retrieve transmuting information in smack_inode_getsecurity()
| * c9ce9bab23 smack: Record transmuting in smk_transmuted
| * d037d8964f i40e: fix return of uninitialized aq_ret in i40e_set_vsi_promisc
| * 2d78e2d3e3 i40e: always propagate error value in i40e_set_vsi_promisc()
| * 8ed4b5d710 i40e: improve locking of mac_filter_hash
| * 30055e020a watchdog: iTCO_wdt: Set NO_REBOOT if the watchdog is not already running
| * c54a392fc7 watchdog: iTCO_wdt: No need to stop the timer in probe
| * d68c61092c nvme-pci: do not set the NUMA node of device if it has none
| * 283f24df83 fbdev/sh7760fb: Depend on FB=y
| * ee1f5c63e9 ncsi: Propagate carrier gain/loss events to the NCSI controller
| * b42eac1462 powerpc/watchpoints: Annotate atomic context in more places
| * 723904ce85 bpf: Clarify error expectations from bpf_clone_redirect
| * db4afbc6c1 spi: nxp-fspi: reset the FLSHxCR1 registers
| * 3502dd8031 ata: libata-eh: do not clear ATA_PFLAG_EH_PENDING in ata_eh_reset()
* | 09125ac12e Merge 05264d6551 ("ring-buffer: Avoid softlockup in ring_buffer_resize()") into android11-5.4-lts
|\|
| * 05264d6551 ring-buffer: Avoid softlockup in ring_buffer_resize()
* | 82d0266c8c Merge 1d28224d49 ("selftests/ftrace: Correctly enable event in instance-event.tc") into android11-5.4-lts
|\|
| * 1d28224d49 selftests/ftrace: Correctly enable event in instance-event.tc
| * ded3551163 parisc: irq: Make irq_stack_union static to avoid sparse warning
| * a721e5788a parisc: drivers: Fix sparse warning
| * 2569e0ceff parisc: iosapic.c: Fix sparse warnings
| * f1a0dd9243 parisc: sba: Fix compile warning wrt list of SBA devices
| * 6db9cdfdc3 gpio: pmic-eic-sprd: Add can_sleep flag for PMIC EIC chip
| * 4a62d23eba xtensa: boot/lib: fix function prototypes
| * e11fa78a37 xtensa: boot: don't add include-dirs
| * 5ed83a0a39 xtensa: iss/network: make functions static
| * b821e6a8b2 xtensa: add default definition for XCHAL_HAVE_DIV32
| * 49dc6fcd4b bus: ti-sysc: Fix SYSC_QUIRK_SWSUP_SIDLE_ACT handling for uart wake-up
| * 841733189b ARM: dts: ti: omap: motorola-mapphone: Fix abe_clkctrl warning on boot
| * 3468fa39d8 clk: tegra: fix error return case for recalc_rate
| * 6938a6cbe6 MIPS: Alchemy: only build mmc support helpers if au1xmmc is enabled
| * 5b0d13e2d9 ata: libata: disallow dev-initiated LPM transitions to unsupported states
| * 617a89ff55 drm/amd/display: prevent potential division by zero errors
| * 07b63a3dcf drm/amd/display: Fix LFC multiplier changing erratically
| * 11e3f781f6 drm/amd/display: Reinstate LFC optimization
* | c5c964fd2f Revert "net: bridge: use DEV_STATS_INC()"
* | f69adcec03 Merge a4628a5b98 ("scsi: qla2xxx: Fix deletion race condition") into android11-5.4-lts
|\|
| * a4628a5b98 scsi: qla2xxx: Fix deletion race condition
| * 0a51c838c5 scsi: qla2xxx: Fix update_fcport for current_topology
| * ecdf4c658b Input: i8042 - add quirk for TUXEDO Gemini 17 Gen1/Clevo PD70PN
| * 0926a2b7cb i2c: mux: demux-pinctrl: check the return value of devm_kstrdup()
| * e09db461f2 gpio: tb10x: Fix an error handling path in tb10x_gpio_probe()
| * 02a233986c netfilter: ipset: Fix race between IPSET_CMD_CREATE and IPSET_CMD_SWAP
| * 812da2a08d net: rds: Fix possible NULL-pointer dereference
| * c5f6478686 team: fix null-ptr-deref when team device type is changed
| * ad8d39c7b4 net: bridge: use DEV_STATS_INC()
| * 121a7c474c net: hns3: add 5ms delay before clear firmware reset irq source
| * a6f4d582e2 dccp: fix dccp_v4_err()/dccp_v6_err() again
| * 16b88d7a14 powerpc/perf/hv-24x7: Update domain value check
| * 810fd23d97 ipv4: fix null-deref in ipv4_link_failure
| * 8f228c326d i40e: Fix VF VLAN offloading when port VLAN is configured
| * 8b835db279 i40e: Fix warning message and call stack during rmmod i40e driver
| * 9cbec71a57 i40e: Remove scheduling while atomic possibility
| * 0988fc499f i40e: Fix for persistent lldp support
| * 09475d6476 ASoC: imx-audmix: Fix return error with devm_clk_get()
| * ca1d4e3c4d selftests: tls: swap the TX and RX sockets in some tests
| * b9eb384fd4 selftests/tls: Add {} to avoid static checker warning
| * 40e34ea017 bpf: Avoid deadlock when using queue and stack maps from NMI
| * eec981349b netfilter: nf_tables: disallow element removal on anonymous sets
* | d8ca210978 Merge d2a6844be5 ("ASoC: meson: spdifin: start hw on dai probe") into android11-5.4-lts
|\|
| * d2a6844be5 ASoC: meson: spdifin: start hw on dai probe
| * 0c908e1595 ext4: do not let fstrim block system suspend
| * 4db34feaf2 ext4: move setting of trimmed bit into ext4_try_to_trim_range()
| * 767a50bef2 ext4: replace the traditional ternary conditional operator with with max()/min()
| * 2fd502f53b ext4: mark group as trimmed only if it was fully scanned
| * 635901bdbd ext4: change s_last_trim_minblks type to unsigned long
| * 2d87415158 ext4: scope ret locally in ext4_try_to_trim_range()
| * c71cb46aff ext4: add new helper interface ext4_try_to_trim_range()
| * b0dcbd4bb9 ext4: remove the 'group' parameter of ext4_trim_extent
| * bf06607565 ata: libahci: clear pending interrupt status
| * e6807c873d tracing: Increase trace array ref count on enable and filter files
| * 7d3f6612e9 SUNRPC: Mark the cred for revalidation if the server rejects it
| * 321c75b01c NFS/pNFS: Report EINVAL errors from connect() to the server
* | 432ea675f2 Merge android11-5.4 branch into android11-5.4-lts branch
* | 8a932792da FROMLIST: lib/test_meminit: fix off-by-one error in test_pages()
* | 5000f4d84d Revert "drm/panel: simple: Add missing connector type and pixel format for AUO T215HVN01"
* | 50de6be756 Revert "usb: typec: bus: verify partner exists in typec_altmode_attention"
* | 13c2fe5c0a Revert "fs/nls: make load_nls() take a const parameter"
* | 4d59a2c9b9 Revert "ip_tunnels: use DEV_STATS_INC()"
* | 2b44f56202 Merge 5.4.257 into android11-5.4-lts
|\|
| * a140610d8a Linux 5.4.257
| * 42900fd140 net/sched: Retire rsvp classifier
| * b3637835ac drm/amdgpu: fix amdgpu_cs_p1_user_fence
| * 650ebbba5c mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller
| * b1ef1f2f37 ext4: fix rec_len verify error
| * e4efb0aaf2 scsi: megaraid_sas: Fix deadlock on firmware crashdump
| * 44654114fb i2c: aspeed: Reset the i2c controller when timeout occurs
| * ce47fe53f7 tracefs: Add missing lockdown check to tracefs_create_dir()
| * b6c042d4ac nfsd: fix change_info in NFSv4 RENAME replies
| * 952e477f90 tracing: Have option files inc the trace array ref count
| * ff8cf370d3 tracing: Have current_trace inc the trace array ref count
| * a70c6e5731 btrfs: fix lockdep splat and potential deadlock after failure running delayed items
| * 8e8dcc0f15 attr: block mode changes of symlinks
| * a8403f9fd4 md/raid1: fix error: ISO C90 forbids mixed declarations
| * 349640248b selftests: tracing: Fix to unmount tracefs for recovering environment
| * 5b50c95cf8 btrfs: compare the correct fsid/metadata_uuid in btrfs_validate_super
| * b61aad18b3 btrfs: add a helper to read the superblock metadata_uuid
| * bd0fe54891 btrfs: move btrfs_pinned_by_swapfile prototype into volumes.h
| * a04cce3e79 perf tools: Add an option to build without libbfd
| * f3701ef61f perf jevents: Make build dependency on test JSONs
| * a12e9ba7f3 tools features: Add feature test to check if libbfd has buildid support
| * 964e025cee kobject: Add sanity check for kset->kobj.ktype in kset_register()
| * 545d1070ed media: pci: ipu3-cio2: Initialise timing struct to avoid a compiler warning
| * 44d72e9edd serial: cpm_uart: Avoid suspicious locking
| * 2cbe6a88fb scsi: target: iscsi: Fix buffer overflow in lio_target_nacl_info_show()
| * 9cd6b3802d usb: gadget: fsl_qe_udc: validate endpoint index for ch9 udc
| * abe0cd279a media: pci: cx23885: replace BUG with error return
| * 641e602239 media: tuners: qt1010: replace BUG_ON with a regular error
| * 991c77fe18 media: az6007: Fix null-ptr-deref in az6007_i2c_xfer()
| * 8dc5b37025 media: anysee: fix null-ptr-deref in anysee_master_xfer
| * 0c02eb70b1 media: af9005: Fix null-ptr-deref in af9005_i2c_xfer
| * beb9550494 media: dw2102: Fix null-ptr-deref in dw2102_i2c_transfer()
| * b49c6e5dd2 media: dvb-usb-v2: af9035: Fix null-ptr-deref in af9035_i2c_master_xfer
| * 7ffe14fce7 powerpc/pseries: fix possible memory leak in ibmebus_bus_init()
| * 5873df0195 jfs: fix invalid free of JFS_IP(ipimap)->i_imap in diUnmount
| * b12ccbfdf6 fs/jfs: prevent double-free in dbUnmount() after failed jfs_remount()
| * a7fde3d46a ext2: fix datatype of block number in ext2_xattr_set2()
| * 25a68f2286 md: raid1: fix potential OOB in raid1_remove_disk()
| * 77918680ab bus: ti-sysc: Configure uart quirks for k3 SoC
| * 279e32b79d drm/exynos: fix a possible null-pointer dereference due to data race in exynos_drm_crtc_atomic_disable()
| * 3beb97bed8 wifi: mac80211_hwsim: drop short frames
| * 6773ea9982 alx: fix OOB-read compiler warning
| * fd1a177d2c mmc: sdhci-esdhc-imx: improve ESDHC_FLAG_ERR010450
| * ff75c853b7 tpm_tis: Resend command to recover from data transfer errors
| * 61f5453e97 crypto: lib/mpi - avoid null pointer deref in mpi_cmp_ui()
| * d1473fc030 wifi: mwifiex: fix fortify warning
| * 38eb4ef67f wifi: ath9k: fix printk specifier
| * 93f4a0b744 devlink: remove reload failed checks in params get/set callbacks
| * aadb178c51 hw_breakpoint: fix single-stepping when using bpf_overflow_handler
| * cb37e7fa23 perf/smmuv3: Enable HiSilicon Erratum 162001900 quirk for HIP08/09
| * 4de282f491 ACPI: video: Add backlight=native DMI quirk for Lenovo Ideapad Z470
| * d0a13c395e kernel/fork: beware of __put_task_struct() calling context
| * 3bf4463e40 ACPICA: Add AML_NO_OPERAND_RESOLVE flag to Timer
| * 117fb80cd1 locks: fix KASAN: use-after-free in trace_event_raw_event_filelock_lock
| * 7afbfde45d btrfs: output extra debug info if we failed to find an inline backref
| * 6079dc77c6 autofs: fix memory leak of waitqueues in autofs_catatonic_mode
| * 8c027a5798 parisc: Drop loops_per_jiffy from per_cpu struct
| * 4316b82945 drm/amd/display: Fix a bug when searching for insert_above_mpcc
| * 1ce8362b4a kcm: Fix error handling for SOCK_DGRAM in kcm_sendmsg().
| * b5fc6fd660 ixgbe: fix timestamp configuration code
| * f9f3ce7719 net/tls: do not free tls_rec on async operation in bpf_exec_tx_verdict()
| * 08d36f317c platform/mellanox: mlxbf-tmfifo: Drop jumbo frames
| * 0507815ae9 mlxbf-tmfifo: sparse tags for config access
| * 7efc9e97f6 platform/mellanox: mlxbf-tmfifo: Drop the Rx packet if no more descriptors
| * 479c71cda1 kcm: Fix memory leak in error path of kcm_sendmsg()
| * c565533407 r8152: check budget for r8152_poll()
| * 653fbddbdf net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()
| * ba6673824e net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()
| * 5624f26a35 net: ipv4: fix one memleak in __inet_del_ifa()
| * e757ca9c1c clk: imx8mm: Move 1443X/1416X PLL clock structure to common place
| * 75e0bd9761 ARM: dts: BCM5301X: Extend RAM to full 256MB for Linksys EA6500 V2
| * 5f71716772 usb: typec: bus: verify partner exists in typec_altmode_attention
| * 14fe0f8627 usb: typec: tcpm: Refactor tcpm_handle_vdm_request
| * 979f8743f3 usb: typec: tcpm: Refactor tcpm_handle_vdm_request payload handling
| * 6ca8e31480 perf tools: Handle old data in PERF_RECORD_ATTR
| * dffa46d0ca perf hists browser: Fix hierarchy mode header
| * 6095dd2821 mtd: rawnand: brcmnand: Fix potential false time out warning
| * aae45746f4 mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write
| * 09417fbf12 mtd: rawnand: brcmnand: Fix crash during the panic_write
| * aa64f6f0ce btrfs: use the correct superblock to compare fsid in btrfs_validate_super
| * 6eb1fc314c btrfs: don't start transaction when joining with TRANS_JOIN_NOSTART
| * b0d236e3af fuse: nlookup missing decrement in fuse_direntplus_link
| * 0e918d7c00 ata: pata_ftide010: Add missing MODULE_DESCRIPTION
| * e03ac17734 ata: sata_gemini: Add missing MODULE_DESCRIPTION
| * 118db787ba sh: boards: Fix CEU buffer size passed to dma_declare_coherent_memory()
| * 89099d73b2 net: hns3: fix the port information display when sfp is absent
| * a44602888b netfilter: nfnetlink_osf: avoid OOB read
| * 62c363e604 ip_tunnels: use DEV_STATS_INC()
| * a5dffc1203 idr: fix param name in idr_alloc_cyclic() doc
| * 6b0cb9c055 s390/zcrypt: don't leak memory if dev_set_name() fails
| * c149b61301 igb: Change IGB_MIN to allow set rx/tx value between 64 and 80
| * 4a5defbfe8 igbvf: Change IGBVF_MIN to allow set rx/tx value between 64 and 80
| * c805b87414 igc: Change IGC_MIN to allow set rx/tx value between 64 and 80
| * 8047a48984 kcm: Destroy mutex in kcm_exit_net()
| * a6d11571b9 net: sched: sch_qfq: Fix UAF in qfq_dequeue()
| * f1ba9a03b1 af_unix: Fix data race around sk->sk_err.
| * 1ffed3ea87 af_unix: Fix data-races around sk->sk_shutdown.
| * 5d91b7891f af_unix: Fix data-race around unix_tot_inflight.
| * adcf4e0693 af_unix: Fix data-races around user->unix_inflight.
| * e13db62db9 net: ipv6/addrconf: avoid integer underflow in ipv6_create_tempaddr
| * 23b4b1a069 veth: Fixing transmit return status for dropped packets
| * 0133bc2897 igb: disable virtualization features on 82580
| * 41f10a4d78 net: read sk->sk_family once in sk_mc_loop()
| * cd12efc54f ipv4: annotate data-races around fi->fib_dead
| * 01585fa326 sctp: annotate data-races around sk->sk_wmem_queued
| * 04301da4d8 pwm: lpc32xx: Remove handling of PWM channels
| * 565f7bb0b3 watchdog: intel-mid_wdt: add MODULE_ALIAS() to allow auto-load
| * 7a0e41223e perf top: Don't pass an ERR_PTR() directly to perf_session__delete()
| * c5be10f1bf x86/virt: Drop unnecessary check on extended CPUID level in cpu_has_svm()
| * 1d0cc1a9c4 perf annotate bpf: Don't enclose non-debug code with an assert()
| * c7cc4dc247 kconfig: fix possible buffer overflow
| * 0158dab8e8 NFSv4/pnfs: minor fix for cleanup path in nfs4_get_device_info
| * 64c5e916fa soc: qcom: qmi_encdec: Restrict string length in decode
| * 5c7608d976 clk: qcom: gcc-mdm9615: use proper parent for pll0_vote clock
| * b88626c472 parisc: led: Reduce CPU overhead for disk & lan LED computation
| * 536f309225 parisc: led: Fix LAN receive and transmit LEDs
| * cbfffe5122 lib/test_meminit: allocate pages up to order MAX_ORDER
| * 9b7f6e5009 drm/ast: Fix DRAM init on AST2200
| * 8ffa40ff64 fbdev/ep93xx-fb: Do not assign to struct fb_info.dev
| * 6d5eb57a02 scsi: qla2xxx: Remove unsupported ql2xenabledif option
| * e24bc58113 scsi: qla2xxx: Turn off noisy message log
| * 05935f9106 scsi: qla2xxx: Fix erroneous link up failure
| * 61641000ad scsi: qla2xxx: fix inconsistent TMF timeout
| * f966dc8c2d net/ipv6: SKB symmetric hash should incorporate transport ports
| * d31331e2df drm: fix double free for gbo in drm_gem_vram_init and drm_gem_vram_create
| * 34eb4bd915 udf: initialize newblock to 0
| * 206d2b7baf usb: typec: tcpci: clear the fault status bit
| * 8244218681 serial: sc16is7xx: fix broken port 0 uart init
| * 159bc8c6b5 sc16is7xx: Set iobase to device index
| * 355ac79584 cpufreq: brcmstb-avs-cpufreq: Fix -Warray-bounds bug
| * 5e7d0acc69 crypto: stm32 - fix loop iterating through scatterlist for DMA
| * 306e356d58 s390/ipl: add missing secure/has_secure file to ipl type 'unknown'
| * e972231db2 pstore/ram: Check start of empty przs during init
| * b6c9d04019 fsverity: skip PKCS#7 parser when keyring is empty
| * 712491c9ab net: handle ARPHRD_PPP in dev_is_mac_header_xmit()
| * 15b3727108 X.509: if signature is unsupported skip validation
| * 7a7dd70cb9 dccp: Fix out of bounds access in DCCP error handler
| * 1c675c937c dlm: fix plock lookup when using multiple lockspaces
| * 8cd1c5cec6 parisc: Fix /proc/cpuinfo output for lscpu
| * 0337bb53cb procfs: block chmod on /proc/thread-self/comm
| * 2e1f12ce0d Revert "PCI: Mark NVIDIA T4 GPUs to avoid bus reset"
| * eb1fa4819d ntb: Fix calculation ntb_transport_tx_free_entry()
| * b2a6a169c2 ntb: Clean up tx tail index on link down
| * 94491412a2 ntb: Drop packets when qp link is down
| * ff3bb51e21 media: dvb: symbol fixup for dvb_attach()
| * b047ac1528 xtensa: PMU: fix base address for the newer hardware
| * 2791a2a69a backlight/lv5207lp: Compare against struct fb_info.device
| * bc86f29e12 backlight/bd6107: Compare against struct fb_info.device
| * 3dd8ff5695 backlight/gpio_backlight: Compare against struct fb_info.device
| * c2e1ce4fa4 ARM: OMAP2+: Fix -Warray-bounds warning in _pwrdm_state_switch()
| * f53ab5a2bf ipmi_si: fix a memleak in try_smi_init()
| * e7f97980f7 ALSA: pcm: Fix missing fixup call in compat hw_refine ioctl
| * 29811f4b82 PM / devfreq: Fix leak in devfreq_dev_release()
| * c2ad60ed38 igb: set max size RX buffer when store bad packet is enabled
| * d44403ec06 skbuff: skb_segment, Call zero copy functions before using skbuff frags
| * 64831fb6a2 netfilter: xt_sctp: validate the flag_info count
| * 28ce8495b5 netfilter: xt_u32: validate user space input
| * 109e830585 netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
| * 3d54e99499 igmp: limit igmpv3_newpack() packet size to IP_MAX_MTU
| * ec6ad9d99e virtio_ring: fix avail_wrap_counter in virtqueue_add_packed
| * 12fcca2ee4 cpufreq: Fix the race condition while updating the transition_task of policy
| * fe5dd39501 dmaengine: ste_dma40: Add missing IRQ check in d40_probe
| * e0f2d85ea3 um: Fix hostaudio build errors
| * 88d508faf3 mtd: rawnand: fsmc: handle clk prepare error in fsmc_nand_resume()
| * efa7f31669 rpmsg: glink: Add check for kstrdup
| * d2473df751 phy/rockchip: inno-hdmi: do not power on rk3328 post pll on reg write
| * f36a06988c phy/rockchip: inno-hdmi: round fractal pixclock in rk3328 recalc_rate
| * b0d5d77b14 phy/rockchip: inno-hdmi: use correct vco_div_5 macro on rk3328
| * 90e037cabc tracing: Fix race issue between cpu buffer write and swap
| * ac78921ec2 x86/speculation: Mark all Skylake CPUs as vulnerable to GDS
| * df7ca43fe0 HID: multitouch: Correct devm device reference for hidinput input_dev name
| * cf48a7ba5c HID: logitech-dj: Fix error handling in logi_dj_recv_switch_to_dj_mode()
| * 011daffb53 RDMA/siw: Correct wrong debug message
| * 35a78898cd RDMA/siw: Balance the reference of cep->kref in the error path
| * 9b6296861a Revert "IB/isert: Fix incorrect release of isert connection"
| * 03db4fe791 amba: bus: fix refcount leak
| * 93a4aefa57 serial: tegra: handle clk prepare error in tegra_uart_hw_init()
| * d2bf25674c scsi: fcoe: Fix potential deadlock on &fip->ctlr_lock
| * b1e3199bad scsi: core: Use 32-bit hostnum in scsi_host_lookup()
| * 103b41e972 media: ov2680: Fix regulators being left enabled on ov2680_power_on() errors
| * 009b1202a0 media: ov2680: Fix vflip / hflip set functions
| * 560624cf1d media: ov2680: Fix ov2680_bayer_order()
| * 218b60bc06 media: ov2680: Remove auto-gain and auto-exposure controls
| * 768d4d230c media: i2c: ov2680: Set V4L2_CTRL_FLAG_MODIFY_LAYOUT on flips
| * c04ae531ee media: ov5640: Enable MIPI interface in ov5640_set_power_mipi()
| * 916219c523 media: i2c: ov5640: Configure HVP lines in s_power callback
| * 93c518d286 USB: gadget: f_mass_storage: Fix unused variable warning
| * 0d8c677098 media: go7007: Remove redundant if statement
| * 38269b9ec8 iommu/vt-d: Fix to flush cache of PASID directory table
| * a94aaffe92 IB/uverbs: Fix an potential error pointer dereference
| * c3a6798538 driver core: test_async: fix an error code
| * 27a218419c dma-buf/sync_file: Fix docs syntax
| * c9e6c1fefc coresight: tmc: Explicit type conversions to prevent integer overflow
| * 463934ca5d scsi: qedf: Do not touch __user pointer in qedf_dbg_fp_int_cmd_read() directly
| * 668ce8d508 scsi: qedf: Do not touch __user pointer in qedf_dbg_debug_cmd_read() directly
| * 06a2dde58f scsi: qedf: Do not touch __user pointer in qedf_dbg_stop_io_on_error_cmd_read() directly
| * e26d521286 x86/APM: drop the duplicate APM_MINOR_DEV macro
| * c65be6ad55 serial: sprd: Fix DMA buffer leak issue
| * 730d1b7ec9 serial: sprd: Assign sprd_port after initialized to avoid wrong access
| * dff8066579 serial: sprd: remove redundant sprd_port cleanup
| * a7d80271a1 serial: sprd: getting port index via serial aliases only
| * 47f3be62ea scsi: qla4xxx: Add length check when parsing nlattrs
| * bc66e701ca scsi: be2iscsi: Add length check when parsing nlattrs
| * 161d4509dd scsi: iscsi: Add strlen() check in iscsi_if_set{_host}_param()
| * bc4fbf2dab usb: phy: mxs: fix getting wrong state with mxs_phy_is_otg_host()
| * de4345fe43 media: mediatek: vcodec: Return NULL if no vdec_fb is found
| * 02c0ea731f media: cx24120: Add retval check for cx24120_message_send()
| * 75d6ef197c media: dvb-usb: m920x: Fix a potential memory leak in m920x_i2c_xfer()
| * 74697b4176 media: dib7000p: Fix potential division by zero
| * afd90d353f drivers: usb: smsusb: fix error handling code in smsusb_init_device
| * 4bc5ffaf8a media: v4l2-core: Fix a potential resource leak in v4l2_fwnode_parse_link()
| * 008b334af8 media: v4l2-fwnode: simplify v4l2_fwnode_parse_link
| * 064e156e9f media: v4l2-fwnode: fix v4l2_fwnode_parse_link handling
| * 7a9619e38c NFS: Guard against READDIR loop when entry names exceed MAXNAMELEN
| * 16282aeca4 NFSD: da_addr_body field missing in some GETDEVICEINFO replies
| * 93a14ab675 fs: lockd: avoid possible wrong NULL parameter
| * d3351799be jfs: validate max amount of blocks before allocation.
| * 65bf8a196b powerpc/iommu: Fix notifiers being shared by PCI and VIO buses
| * 650803f93d nfs/blocklayout: Use the passed in gfp flags
| * 68ba08ab40 wifi: ath10k: Use RMW accessors for changing LNKCTL
| * ab28c56192 drm/radeon: Use RMW accessors for changing LNKCTL
| * d835a13232 drm/radeon: Prefer pcie_capability_read_word()
| * 06c0c15ab0 drm/radeon: Replace numbers with PCI_EXP_LNKCTL2 definitions
| * 30e633dbcd drm/radeon: Correct Transmit Margin masks
| * 108ce391d6 drm/amdgpu: Use RMW accessors for changing LNKCTL
| * 7085f1aab1 drm/amdgpu: Prefer pcie_capability_read_word()
| * 62a1c1bd45 drm/amdgpu: Replace numbers with PCI_EXP_LNKCTL2 definitions
| * adf810206c drm/amdgpu: Correct Transmit Margin masks
| * 7f9129b66c PCI: Add #defines for Enter Compliance, Transmit Margin
| * 81d1de3b97 powerpc/fadump: reset dump area size if fadump memory reserve fails
| * 7159a27b1a clk: imx: composite-8m: fix clock pauses when set_rate would be a no-op
| * 044ff5356a PCI/ASPM: Use RMW accessors for changing LNKCTL
| * 73d73556ed PCI: pciehp: Use RMW accessors for changing LNKCTL
| * e7e3268ae9 PCI: Mark NVIDIA T4 GPUs to avoid bus reset
| * a611e38d5b clk: sunxi-ng: Modify mismatched function name
| * 9ad9cca12b drivers: clk: keystone: Fix parameter judgment in _of_pll_clk_init()
| * de677f4379 ipmi:ssif: Fix a memory leak when scanning for an adapter
| * ef0d286989 ipmi:ssif: Add check for kstrdup
| * 90fddb8789 ALSA: ac97: Fix possible error value of *rac97
| * 0b1e48e4dc of: unittest: Fix overlay type in apply/revert check
| * 0a6f39488c drm/mediatek: Fix potential memory leak if vmap() fail
| * f6364fa751 audit: fix possible soft lockup in __audit_inode_child()
| * 43f0c2bb16 smackfs: Prevent underflow in smk_set_cipso()
| * b8a61df6f4 drm/msm/mdp5: Don't leak some plane state
| * 1f3d0e65d1 ima: Remove deprecated IMA_TRUSTED_KEYRING Kconfig
| * dbdc828991 drm/panel: simple: Add missing connector type and pixel format for AUO T215HVN01
| * 4db0a85cf8 drm/armada: Fix off-by-one error in armada_overlay_get_property()
| * dadf0d0dfc of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name()
| * def1fd88ae drm/tegra: dpaux: Fix incorrect return value of platform_get_irq
| * c1ff601e1a drm/tegra: Remove superfluous error messages around platform_get_irq()
| * 1603f08620 md/md-bitmap: hold 'reconfig_mutex' in backlog_store()
| * 630be0110e md/bitmap: don't set max_write_behind if there is no write mostly device
| * a8f8c4e728 drm/amdgpu: Update min() to min_t() in 'amdgpu_info_ioctl'
| * c6b423ab65 arm64: dts: qcom: sdm845: Add missing RPMh power domain to GCC
| * 69d9fb3948 ARM: dts: BCM53573: Fix Ethernet info for Luxul devices
| * e6fc20a542 drm: adv7511: Fix low refresh rate register for ADV7533/5
| * 88d32b9ad2 ARM: dts: samsung: s5pv210-smdkv210: correct ethernet reg addresses (split)
| * dfe36c23ab ARM: dts: s5pv210: add dummy 5V regulator for backlight on SMDKv210
| * febead0030 ARM: dts: s5pv210: correct ethernet unit address in SMDKV210
| * 00b3f8004b ARM: dts: s5pv210: use defines for IRQ flags in SMDKV210
| * 9dff1deb25 ARM: dts: s5pv210: add RTC 32 KHz clock in SMDKV210
| * df9929c61c ARM: dts: samsung: s3c6410-mini6410: correct ethernet reg addresses (split)
| * c20456c2cd ARM: dts: s3c64xx: align pinctrl with dtschema
| * a355d140eb ARM: dts: s3c6410: align node SROM bus node name with dtschema in Mini6410
| * e5deee40fa ARM: dts: s3c6410: move fixed clocks under root node in Mini6410
| * d38b67da15 drm/etnaviv: fix dumping of active MMU context
| * 5b8c8527a2 ARM: dts: BCM53573: Use updated "spi-gpio" binding properties
| * 5680c01363 ARM: dts: BCM53573: Add cells sizes to PCIe node
| * 17a5848bdc ARM: dts: BCM53573: Drop nonexistent "default-off" LED trigger
| * c01cbe6c03 drm/amdgpu: avoid integer overflow warning in amdgpu_device_resize_fb_bar()
| * d40c192e11 quota: fix dqput() to follow the guarantees dquot_srcu should provide
| * dd918952b1 quota: add new helper dquot_active()
| * 88c0cdfe10 quota: rename dquot_active() to inode_quota_active()
| * 29d7249bb6 quota: factor out dquot_write_dquot()
| * f2f64c2951 quota: avoid increasing DQST_LOOKUPS when iterating over dirty/inuse list
| * 1e4f7ce32a drm/bridge: tc358764: Fix debug print parameter order
| * 835f0a848a netrom: Deny concurrent connect().
| * da13749d5f net/sched: sch_hfsc: Ensure inner classes have fsc curve
| * 83382eafc7 mlxsw: i2c: Limit single transaction buffer size
| * b2d7f0f313 mlxsw: i2c: Fix chunk size setting in output mailbox buffer
| * 400ef5f79c net: arcnet: Do not call kfree_skb() under local_irq_disable()
| * f306bbdce6 wifi: ath9k: use IS_ERR() with debugfs_create_dir()
| * 231086e6a3 wifi: mwifiex: avoid possible NULL skb pointer dereference
| * 5f6f00bcf9 wifi: ath9k: protect WMI command response buffer replacement with a lock
| * ff703b5f3f wifi: ath9k: fix races between ath9k_wmi_cmd and ath9k_wmi_ctrl_rx
| * df1753eae7 wifi: mwifiex: Fix missed return in oob checks failed path
| * 8f717752f9 wifi: mwifiex: fix memory leak in mwifiex_histogram_read()
| * ab4810042c fs: ocfs2: namei: check return value of ocfs2_add_entry()
| * dbe64279ae lwt: Check LWTUNNEL_XMIT_CONTINUE strictly
| * 67f8f2bae8 lwt: Fix return values of BPF xmit ops
| * 12bf7d9cc6 hwrng: iproc-rng200 - Implement suspend and resume calls
| * 4f1ca8e397 hwrng: iproc-rng200 - use semicolons rather than commas to separate statements
| * 6c015ebce1 crypto: caam - fix unchecked return value error
| * ec348676c7 Bluetooth: nokia: fix value check in nokia_bluetooth_serdev_probe()
| * 0ce06035ea crypto: stm32 - Properly handle pm_runtime_get failing
| * 34de9f1d63 wifi: mwifiex: fix error recovery in PCIE buffer descriptor management
| * 87f8c54423 mwifiex: switch from 'pci_' to 'dma_' API
| * 29eca8b786 wifi: mwifiex: Fix OOB and integer underflow when rx packets
| * 042aeb45e4 can: gs_usb: gs_usb_receive_bulk_callback(): count RX overflow errors also in case of OOM
| * 516f21f210 spi: tegra20-sflash: fix to check return value of platform_get_irq() in tegra_sflash_probe()
| * 4fb6fcc04a regmap: rbtree: Use alloc_flags for memory allocations
| * 57935355dc tcp: tcp_enter_quickack_mode() should be static
| * 75b8b5b529 bpf: Clear the probe_addr for uprobe
| * a0fa690894 cpufreq: powernow-k8: Use related_cpus instead of cpus in driver.exit()
| * 991b7c2604 perf/imx_ddr: don't enable counter0 if none of 4 counters are used
| * 07415be140 x86/decompressor: Don't rely on upper 32 bits of GPRs being preserved
| * 6dbac48ea3 x86/boot: Annotate local functions
| * c418814fae x86/asm: Make more symbols local
| * 3eb241e47d OPP: Fix passing 0 to PTR_ERR in _opp_attach_genpd()
| * 5d3975e36c tmpfs: verify {g,u}id mount options correctly
| * 48c54877ce fs: Fix error checking for d_hash_and_lookup()
| * 0c8c205381 new helper: lookup_positive_unlocked()
| * 0a2b1eb8a9 eventfd: prevent underflow for eventfd semaphores
| * 3e9617d63e eventfd: Export eventfd_ctx_do_read()
| * f59ff66698 reiserfs: Check the return value from __getblk()
| * e74903b5fb Revert "net: macsec: preserve ingress frame ordering"
| * b36c4a731a udf: Handle error when adding extent to a file
| * 7648ea9896 udf: Check consistency of Space Bitmap Descriptor
| * 3e2265cda1 powerpc/32s: Fix assembler warning about r0
| * aea73dde71 net: Avoid address overwrite in kernel_connect
| * d7d42f1142 platform/mellanox: Fix mlxbf-tmfifo not handling all virtio CONSOLE notifications
| * 6614af25e1 ALSA: seq: oss: Fix racy open/close of MIDI devices
| * 601dc776a0 scsi: storvsc: Always set no_report_opcodes
| * 107f5cad23 cifs: add a warning when the in-flight count goes negative
| * f31618e4fc sctp: handle invalid error codes without calling BUG()
| * 8d7395d0ea bnx2x: fix page fault following EEH recovery
| * c1ce2f0957 netlabel: fix shift wrapping bug in netlbl_catmap_setlong()
| * 499eb477f7 scsi: qedi: Fix potential deadlock on &qedi_percpu->p_work_lock
| * d0189e40c2 idmaengine: make FSL_EDMA and INTEL_IDMA64 depends on HAS_IOMEM
| * 617d1d0e17 net: usb: qmi_wwan: add Quectel EM05GV2
| * 5d2481bc92 clk: fixed-mmio: make COMMON_CLK_FIXED_MMIO depend on HAS_IOMEM
| * 3899c1d158 security: keys: perform capable check only on privileged operations
| * 97ed1be29b platform/x86: huawei-wmi: Silence ambient light sensor
| * 762c352dfc platform/x86: intel: hid: Always call BTNL ACPI method
| * 0e3f0e5597 ASoC: atmel: Fix the 8K sample parameter in I2SC master
| * 0b718d1d57 ASoc: codecs: ES8316: Fix DMIC config
| * b796adfc98 fs/nls: make load_nls() take a const parameter
| * 35a9b057bf s390/dasd: fix hanging device after request requeue
| * d7768b33d0 s390/dasd: use correct number of retries for ERP requests
| * a21ff228f0 m68k: Fix invalid .section syntax
| * 4dfc0d1eda vxlan: generalize vxlan_parse_gpe_hdr and remove unused args
| * d65c5ef975 ethernet: atheros: fix return value check in atl1c_tso_csum()
| * ea95a01114 ASoC: da7219: Check for failure reading AAD IRQ events
| * 216953c3de ASoC: da7219: Flush pending AAD IRQ when suspending
| * b6f827c3f8 9p: virtio: make sure 'offs' is initialized in zc_request
| * b6fefef07d pinctrl: amd: Don't show `Invalid config param` errors
| * 99a73016a5 nilfs2: fix WARNING in mark_buffer_dirty due to discarded buffer reuse
| * 724474dfaa nilfs2: fix general protection fault in nilfs_lookup_dirty_data_buffers()
| * efe8244ba9 fsi: master-ast-cf: Add MODULE_FIRMWARE macro
| * 6b701dab19 firmware: stratix10-svc: Fix an NULL vs IS_ERR() bug in probe
| * bee7f3a494 serial: sc16is7xx: fix bug when first setting GPIO direction
| * a6650d27ab Bluetooth: btsdio: fix use after free bug in btsdio_remove due to race condition
| * 5876cae6d6 staging: rtl8712: fix race condition
| * a17c6efa14 HID: wacom: remove the battery when the EKR is off
| * e4f5ad7b53 USB: serial: option: add FOXCONN T99W368/T99W373 product
| * 837f6647b2 USB: serial: option: add Quectel EM05G variant (0x030e)
| * 1d24328048 modules: only allow symbol_get of EXPORT_SYMBOL_GPL modules
| * 6938ef59e3 rtc: ds1685: use EXPORT_SYMBOL_GPL for ds1685_rtc_poweroff
| * 0e0914f9a8 net: enetc: use EXPORT_SYMBOL_GPL for enetc_phc_index
| * 6b39bd898b mmc: au1xmmc: force non-modular build and remove symbol_get usage
| * 7a67c5d932 ARM: pxa: remove use of symbol_get()
| * e83f5d13cb erofs: ensure that the post-EOF tails are all zeroed
* | ab08e05dca Merge 5.4.256 into android11-5.4-lts
|\|
| * 0c2544add9 Linux 5.4.256
| * 1ba96e65ef Revert "MIPS: Alchemy: fix dbdma2"
| * 94aef0fe5a powerpc/pmac/smp: Drop unnecessary volatile qualifier
| * b29a10fd07 powerpc/pmac/smp: Avoid unused-variable warnings
* | 1becc9d04d Revert "drm/display/dp: Fix the DP DSC Receiver cap size"
* | 201ea79b6f Revert "macsec: Fix traffic counters/statistics"
* | bcdfbf8d8d Revert "macsec: use DEV_STATS_INC()"
* | 8e2d221d14 ANDROID: GKI: add back pm_runtime_get_if_in_use()
* | 933d3af2e3 Revert "interconnect: Add helpers for enabling/disabling a path"
* | 9caf727a6d Revert "interconnect: Do not skip aggregation for disabled paths"
* | 1abd0630e0 Revert "ALSA: pcm: Set per-card upper limit of PCM buffer allocations"
* | c648a16974 Revert "ALSA: pcm: Use SG-buffer only when direct DMA is available"
* | bd7fae9e3e Revert "ALSA: pcm: Fix potential data race at PCM memory allocation helpers"
* | cebc239dda Revert "ALSA: pcm: Fix build error on m68k and others"
* | 639cd43433 Revert "Revert "ALSA: pcm: Use SG-buffer only when direct DMA is available""
* | 3a3afa870a Revert "ALSA: pcm: Check for null pointer of pointer substream before dereferencing it"
* | ef75d6901c Merge 5.4.255 into android11-5.4-stable
|/
* 5eb967dd50 Linux 5.4.255
* e171795856 dma-buf/sw_sync: Avoid recursive lock during fence signal
* f49cac7634 pinctrl: renesas: rza2: Add lock around pinctrl_generic{{add,remove}_group,{add,remove}_function}
* 197c546a59 clk: Fix undefined reference to `clk_rate_exclusive_{get,put}'
* 7fd9cded56 scsi: core: raid_class: Remove raid_component_add()
* 56428d89a0 scsi: snic: Fix double free in snic_tgt_create()
* b6db4ef5ea irqchip/mips-gic: Don't touch vl_map if a local interrupt is not routable
* 61b5d77169 Documentation/sysctl: document page_lock_unfairness
* b2421a196c ALSA: pcm: Check for null pointer of pointer substream before dereferencing it
* e8bf830efa interconnect: Do not skip aggregation for disabled paths
* 456a7a7340 Revert "ALSA: pcm: Use SG-buffer only when direct DMA is available"
* 52a7c86e63 ALSA: pcm: Fix build error on m68k and others
* a1ef12540e rtnetlink: Reject negative ifindexes in RTM_NEWLINK
* c404e1e197 mm: allow a controlled amount of unfairness in the page lock
* 97640d8e2c x86/fpu: Set X86_FEATURE_OSXSAVE feature after enabling OSXSAVE in CR4
* b156ce3b3b drm/display/dp: Fix the DP DSC Receiver cap size
* 9e5fe282f9 PCI: acpiphp: Use pci_assign_unassigned_bridge_resources() only for non-root bus
* ac0e0df518 media: vcodec: Fix potential array out-of-bounds in encoder queue_setup
* 79a05ca736 radix tree: remove unused variable
* 32639f1344 lib/clz_ctz.c: Fix __clzdi2() and __ctzdi2() for 32-bit kernels
* c5f261825f batman-adv: Hold rtnl lock during MTU update via netlink
* 61b71562be batman-adv: Fix batadv_v_ogm_aggr_send memory leak
* 5fb1a21337 batman-adv: Fix TT global entry leak when client roamed back
* e6e9d78081 batman-adv: Do not get eth header before batadv_check_management_packet
* c97442e098 batman-adv: Don't increase MTU when set by user
* 22288ea6be batman-adv: Trigger events for auto adjusted MTU
* 3b83759fd4 nfsd: Fix race to FREE_STATEID and cl_revoked
* c0284760f4 clk: Fix slab-out-of-bounds error in devm_clk_release()
* a0bc5cf2e7 NFSv4: Fix dropped lock for racing OPEN and delegation return
* 815fb2531a ibmveth: Use dcbf rather than dcbfl
* 35e31aff61 bonding: fix macvlan over alb bond support
* faf3f988cc net: remove bond_slave_has_mac_rcu()
* eebd074af2 net/sched: fix a qdisc modification with ambiguous command request
* 62383d9fa1 igb: Avoid starting unnecessary workqueues
* adef04cc48 net: validate veth and vxcan peer ifindexes
* 52ddda8d21 net: bcmgenet: Fix return value check for fixed_phy_register()
* 189ad377d1 net: bgmac: Fix return value check for fixed_phy_register()
* dcbfcb54a2 ipvlan: Fix a reference count leak warning in ipvlan_ns_exit()
* 8e6433fecb dccp: annotate data-races in dccp_poll()
* 7d6cc69199 sock: annotate data-races around prot->memory_pressure
* d28ea7acfa octeontx2-af: SDP: fix receive link config
* 05319d7077 tracing: Fix memleak due to race between current_tracer and trace
* c8920972d0 drm/amd/display: check TG is non-null before checking if enabled
* 7d4174a99b drm/amd/display: do not wait for mpc idle if tg is disabled
* 94239d1830 ASoC: fsl_sai: Disable bit clock with transmitter
* ef9cae4a6c ASoC: fsl_sai: Add new added registers and new bit definition
* 1b3d751045 ASoC: fsl_sai: Refine enable/disable TE/RE sequence in trigger()
* f9afb326b7 regmap: Account for register length in SMBus I/O limits
* 7e1d1456c8 ALSA: pcm: Fix potential data race at PCM memory allocation helpers
* 140797d0a4 ALSA: pcm: Use SG-buffer only when direct DMA is available
* 95b30a4312 ALSA: pcm: Set per-card upper limit of PCM buffer allocations
* d0ef103e19 dm integrity: reduce vmalloc space footprint on 32-bit architectures
* 072d247d7a dm integrity: increase RECALC_SECTORS to improve recalculate speed
* 4e96ee1175 fbdev: fix potential OOB read in fast_imageblit()
* ebf84320a5 fbdev: Fix sys_imageblit() for arbitrary image widths
* 96f8e80656 fbdev: Improve performance of sys_imageblit()
* 7e5b7360df MIPS: cpu-features: Use boot_cpu_type for CPU type based features
* 302a8fbf8c MIPS: cpu-features: Enable octeon_cache by cpu_type
* 7b57fc3f4c fs: dlm: fix mismatch of plock results from userspace
* 721d5b514d fs: dlm: use dlm_plock_info for do_unlock_close
* da794f6dd5 fs: dlm: change plock interrupted message to debug again
* f03726ef19 fs: dlm: add pid to debug log
* 8b73497e50 dlm: replace usage of found with dedicated list iterator variable
* 526cc04d71 dlm: improve plock logging if interrupted
* 7abd6dce29 PCI: acpiphp: Reassign resources on bridge if necessary
* fce0815552 net: phy: broadcom: stub c45 read/write for 54810
* e91d5ace70 mmc: f-sdh30: fix order of function calls in sdhci_f_sdh30_remove
* a0e20e267a net: xfrm: Amend XFRMA_SEC_CTX nla_policy structure
* f0c10a4497 net: fix the RTO timer retransmitting skb every 1ms if linear option is enabled
* b1be2cfcf6 virtio-net: set queues after driver_ok
* 4821df2ffe af_unix: Fix null-ptr-deref in unix_stream_sendpage().
* 0afc186aba netfilter: set default timeout to 3 secs for sctp shutdown send and recv state
* 6875690b0e mmc: block: Fix in_flight[issue_type] value error
* 54deee3fab mmc: wbsd: fix double mmc_free_host() in wbsd_init()
* 4259dd5342 cifs: Release folio lock on fscache read hit.
* 0337341024 ALSA: usb-audio: Add support for Mythware XA001AU capture and playback interfaces.
* b653289ca6 serial: 8250: Fix oops for port->pm on uart_change_pm()
* 7b4e6bff03 ASoC: meson: axg-tdm-formatter: fix channel slot allocation
* 29d862ee5f ASoC: rt5665: add missed regulator_bulk_disable
* f21fa1892d ARM: dts: imx: Set default tuning step for imx6sx usdhc
* aadee0ae0a ARM: dts: imx: Set default tuning step for imx7d usdhc
* a23e10dafd ARM: dts: imx: Adjust dma-apbh node name
* 536c1bbedd ARM: dts: imx7s: Drop dma-apb interrupt-names
* 37cfbf847c bus: ti-sysc: Flush posted write on enable before reset
* 4637b2fa65 bus: ti-sysc: Improve reset to work with modules with no sysconfig
* 210ff31342 net: do not allow gso_size to be set to GSO_BY_FRAGS
* 1c7db7abd4 sock: Fix misuse of sk_under_memory_pressure()
* aa670bdefc net: dsa: mv88e6xxx: Wait for EEPROM done before HW reset
* 702c58a05e i40e: fix misleading debug logs
* ac16de2d02 team: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves
* 81da9e2c42 netfilter: nft_dynset: disallow object maps
* bdd7c2ff41 ipvs: fix racy memcpy in proc_do_sync_threshold
* 38e5c37bfa selftests: mirror_gre_changes: Tighten up the TTL test match
* 8046beb890 xfrm: add NULL check in xfrm_update_ae_params
* d34c30442d ip_vti: fix potential slab-use-after-free in decode_session6
* eb47e612e5 ip6_vti: fix slab-use-after-free in decode_session6
* db0e50741f xfrm: fix slab-use-after-free in decode_session6
* 64c6df80d3 xfrm: interface: rename xfrm_interface.c to xfrm_interface_core.c
* 32cc777c0a net: af_key: fix sadb_x_filter validation
* 373848d51f net: xfrm: Fix xfrm_address_filter OOB read
* a0a462a0f2 btrfs: fix BUG_ON condition in btrfs_cancel_balance
* cc423a972c tty: serial: fsl_lpuart: Clear the error flags by writing 1 for lpuart32 platforms
* 1d29e21ed0 powerpc/rtas_flash: allow user copy to flash block cache objects
* 97ddf1c210 fbdev: mmp: fix value check in mmphw_probe()
* 3259e2d878 i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue
* b788ad3b24 virtio-mmio: don't break lifecycle of vm_dev
* e22a4b77b6 virtio-mmio: Use to_virtio_mmio_device() to simply code
* 432429d1b2 virtio-mmio: convert to devm_platform_ioremap_resource
* 12c4c22789 nfsd: Remove incorrect check in nfsd4_validate_stateid
* a4e3c4cd02 nfsd4: kill warnings on testing stateids with mismatched clientids
* ff652b0150 net/ncsi: Fix gma flag setting after response
* b66a1defb2 tracing/probes: Fix to update dynamic data counter if fetcharg uses it
* bdc309d89b tracing/probes: Have process_fetch_insn() take a void * instead of pt_regs
* cc93a372e0 leds: trigger: netdev: Recheck NETDEV_LED_MODE_LINKUP on dev rename
* 939b8b312a mmc: sunxi: fix deferred probing
* c6d1a281ae mmc: bcm2835: fix deferred probing
* b48b4b1885 USB: dwc3: qcom: fix NULL-deref on suspend
* 6da1f9fd9c usb: dwc3: qcom: Add helper functions to enable,disable wake irqs
* 5335bb0cef interconnect: Add helpers for enabling/disabling a path
* e062fb9794 interconnect: Move internal structs into a separate file
* abc25a18a6 irqchip/mips-gic: Use raw spinlock for gic_lock
* 05de6069b5 irqchip/mips-gic: Get rid of the reliance on irq_cpu_online()
* 1224e5a978 ALSA: hda: Fix unhandled register update during auto-suspend period
* a55d55a307 PM: runtime: Add pm_runtime_get_if_active()
* e5d98d42bc PM-runtime: add tracepoints for usage_count changes
* 59aba9d5cd iommu/amd: Fix "Guest Virtual APIC Table Root Pointer" configuration in IRTE
* 8f302378c7 iio: addac: stx104: Fix race condition when converting analog-to-digital
* 7251b2915d iio: addac: stx104: Fix race condition for stx104_write_raw()
* 70d135e7de iio: stx104: Move to addac subdirectory
* 8ba99f7fc7 iio: adc: stx104: Implement and utilize register structures
* 4edf338ade iio: adc: stx104: Utilize iomap interface
* e13b26d0dd iio: add addac subdirectory
* e6f66a0ad7 IMA: allow/fix UML builds
* 635278e97a powerpc/kasan: Disable KCOV in KASAN code
* 109f0aaa0b ALSA: hda: fix a possible null-pointer dereference due to data race in snd_hdac_regmap_sync()
* 97ed584377 ALSA: hda/realtek: Add quirks for Unis H3C Desktop B760 & Q760
* c6059af6bf drm/amdgpu: Fix potential fence use-after-free v2
* fe49aa73cc Bluetooth: L2CAP: Fix use-after-free
* 22100df1d5 pcmcia: rsrc_nonstatic: Fix memory leak in nonstatic_release_resource_db()
* b4a7ab57ef gfs2: Fix possible data races in gfs2_show_options()
* c4d5c945b6 usb: chipidea: imx: don't request QoS for imx8ulp
* c1c5826223 media: platform: mediatek: vpu: fix NULL ptr dereference
* ef009fe201 media: v4l2-mem2mem: add lock to protect parameter num_rdy
* 2a8807f9f5 FS: JFS: Check for read-only mounted filesystem in txBegin
* a7d17d6bd7 FS: JFS: Fix null-ptr-deref Read in txBegin
* 2225000d62 MIPS: dec: prom: Address -Warray-bounds warning
* 6e7d9d76e5 fs: jfs: Fix UBSAN: array-index-out-of-bounds in dbAllocDmapLev
* 3f1368af47 udf: Fix uninitialized array access for some pathnames
* 8f203dd401 ovl: check type and offset of struct vfsmount in ovl_entry
* 8abed186aa HID: add quirk for 03f0:464a HP Elite Presenter Mouse
* 3f378783c4 quota: fix warning in dqgrab()
* c3a1f5ba11 quota: Properly disable quotas when add_dquot_ref() fails
* dd445ebbee ALSA: emu10k1: roll up loops in DSP setup code for Audigy
* b8fab6aebd drm/radeon: Fix integer overflow in radeon_cs_parser_init
* 3a3bb438da macsec: use DEV_STATS_INC()
* b5e20a3dde macsec: Fix traffic counters/statistics
* 4b854879f8 selftests: forwarding: tc_flower: Relax success criterion
* e5883ffdd0 mmc: sdhci-f-sdh30: Replace with sdhci_pltfm
* e7bd70c3bc mmc: sdhci_f_sdh30: convert to devm_platform_ioremap_resource

Change-Id: I43c3bfbea90dd70354856472a720f46b1a43c148
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-30 16:33:57 +00:00
Yoshihiro Shimoda
756378d5aa BACKPORT: ravb: Fix use-after-free issue in ravb_tx_timeout_work()
[ Upstream commit 3971442870713de527684398416970cf025b4f89 ]

The ravb_stop() should call cancel_work_sync(). Otherwise,
ravb_tx_timeout_work() is possible to use the freed priv after
ravb_remove() was called like below:

CPU0			CPU1
			ravb_tx_timeout()
ravb_remove()
unregister_netdev()
free_netdev(ndev)
// free priv
			ravb_tx_timeout_work()
			// use priv

unregister_netdev() will call .ndo_stop() so that ravb_stop() is
called. And, after phy_stop() is called, netif_carrier_off()
is also called. So that .ndo_tx_timeout() will not be called
after phy_stop().

Bug: 289003868
Fixes: c156633f13 ("Renesas Ethernet AVB driver proper")
Reported-by: Zheng Wang <zyytlz.wz@163.com>
Closes: https://lore.kernel.org/netdev/20230725030026.1664873-1-zyytlz.wz@163.com/
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Link: https://lore.kernel.org/r/20231005011201.14368-3-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 6f6fa8061f756aedb93af12a8a5d3cf659127965)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I36fcd769d93817adaa04162cae0b54b1addbb9bf
2023-10-30 16:27:33 +00:00
Yoshihiro Shimoda
0d7affc8ca UPSTREAM: ravb: Fix up dma_free_coherent() call in ravb_remove()
[ Upstream commit e6864af61493113558c502b5cd0d754c19b93277 ]

In ravb_remove(), dma_free_coherent() should be call after
unregister_netdev(). Otherwise, this controller is possible to use
the freed buffer.

Bug: 289003868
Fixes: c156633f13 ("Renesas Ethernet AVB driver proper")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Link: https://lore.kernel.org/r/20231005011201.14368-2-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 3f9295ad7f9478e65debcef496da4e4eb83db5ea)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I8e7da5816f715307c7d8bcd881a2a5ecb52439bb
2023-10-30 16:25:01 +00:00
Greg Kroah-Hartman
4934e8f7a8 Revert "perf: Disallow mis-matched inherited group reads"
This reverts commit 7252c8b981 which is
commit 32671e3799ca2e4590773fd0e63aaa4229e50c06 upstream.

It breaks the android ABI and if this is needed in the future, can be
brought back in an abi-safe way.

Bug: 161946584
Change-Id: Ia00890aeeef6153c7f3462a2a2189149734ac28a
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 10:18:51 +00:00
Greg Kroah-Hartman
231c81bbc8 Revert "xfrm: fix a data-race in xfrm_gen_index()"
This reverts commit bcacdf4deb which is
commit 3e4bc23926b83c3c67e5f61ae8571602754131a6 upstream.

It breaks the android ABI and if this is needed in the future, can be
brought back in an abi-safe way.

Bug: 161946584
Change-Id: I6af8ce540570c756ea9f16526c36f8815971e216
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 10:18:46 +00:00
Greg Kroah-Hartman
0ca22be029 Revert "Bluetooth: hci_core: Fix build warnings"
This reverts commit b48595f5b1 which is
commit dcda165706b9fbfd685898d46a6749d7d397e0c0 upstream.

It breaks the android ABI and if this is needed in the future, can be
brought back in an abi-safe way.

Bug: 161946584
Change-Id: I4a64dca20bcdfe9cbe33fc23c7d3d1b252f4b873
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 10:17:09 +00:00
Greg Kroah-Hartman
cf5d98b23e Revert "xfrm: interface: use DEV_STATS_INC()"
This reverts commit 0cb7b894e4 which is
commit 0cb7b894e4 upstream.

It breaks the build as it depends on an abi-breaking commit that was
previously reverted.  If this is needed in the future, it can come back
in an abi-safe way.

Bug: 161946584
Change-Id: Ib8c4c34c281fdbe75397a9508155b04ab1e63c8d
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 09:23:20 +00:00
Greg Kroah-Hartman
6b5f21afc2 Merge 5.4.259 into android11-5.4-lts
Changes in 5.4.259
	RDMA/cxgb4: Check skb value for failure to allocate
	lib/test_meminit: fix off-by-one error in test_pages()
	pwm: hibvt: Explicitly set .polarity in .get_state()
	HID: logitech-hidpp: Fix kernel crash on receiver USB disconnect
	quota: Fix slow quotaoff
	net: prevent address rewrite in kernel_bind()
	drm: etvnaviv: fix bad backport leading to warning
	drm/msm/dsi: skip the wait for video mode done if not applicable
	ravb: Fix up dma_free_coherent() call in ravb_remove()
	ieee802154: ca8210: Fix a potential UAF in ca8210_probe
	mlxsw: fix mlxsw_sp2_nve_vxlan_learning_set() return type
	xen-netback: use default TX queue size for vifs
	drm/vmwgfx: fix typo of sizeof argument
	ixgbe: fix crash with empty VF macvlan list
	net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()
	nfc: nci: assert requested protocol is valid
	workqueue: Override implicit ordered attribute in workqueue_apply_unbound_cpumask()
	dmaengine: stm32-mdma: abort resume if no ongoing transfer
	usb: xhci: xhci-ring: Use sysdev for mapping bounce buffer
	net: usb: dm9601: fix uninitialized variable use in dm9601_mdio_read
	usb: dwc3: Soft reset phy on probe for host
	usb: musb: Get the musb_qh poniter after musb_giveback
	usb: musb: Modify the "HWVers" register address
	iio: pressure: bmp280: Fix NULL pointer exception
	iio: pressure: dps310: Adjust Timeout Settings
	iio: pressure: ms5611: ms5611_prom_is_valid false negative bug
	mcb: remove is_added flag from mcb_device struct
	libceph: use kernel_connect()
	ceph: fix incorrect revoked caps assert in ceph_fill_file_size()
	Input: powermate - fix use-after-free in powermate_config_complete
	Input: psmouse - fix fast_reconnect function for PS/2 mode
	Input: xpad - add PXN V900 support
	cgroup: Remove duplicates in cgroup v1 tasks file
	pinctrl: avoid unsafe code pattern in find_pinctrl()
	usb: gadget: udc-xilinx: replace memcpy with memcpy_toio
	usb: gadget: ncm: Handle decoding of multiple NTB's in unwrap call
	x86/cpu: Fix AMD erratum #1485 on Zen4-based CPUs
	dmaengine: mediatek: Fix deadlock caused by synchronize_irq()
	powerpc/8xx: Fix pte_access_permitted() for PAGE_NONE
	powerpc/64e: Fix wrong test in __ptep_test_and_clear_young()
	ravb: Fix use-after-free issue in ravb_tx_timeout_work()
	dev_forward_skb: do not scrub skb mark within the same name space
	Documentation: sysctl: align cells in second content column
	usb: hub: Guard against accesses to uninitialized BOS descriptors
	Bluetooth: hci_event: Ignore NULL link key
	Bluetooth: Reject connection with the device which has same BD_ADDR
	Bluetooth: Fix a refcnt underflow problem for hci_conn
	Bluetooth: vhci: Fix race when opening vhci device
	Bluetooth: hci_event: Fix coding style
	Bluetooth: avoid memcmp() out of bounds warning
	ice: fix over-shifted variable
	nfc: nci: fix possible NULL pointer dereference in send_acknowledge()
	regmap: fix NULL deref on lookup
	KVM: x86: Mask LVTPC when handling a PMI
	netfilter: nft_payload: fix wrong mac header matching
	qed: fix LL2 RX buffer allocation
	xfrm: fix a data-race in xfrm_gen_index()
	xfrm: interface: use DEV_STATS_INC()
	net: ipv4: fix return value check in esp_remove_trailer
	net: ipv6: fix return value check in esp_remove_trailer
	net: rfkill: gpio: prevent value glitch during probe
	tcp: fix excessive TLP and RACK timeouts from HZ rounding
	tcp: tsq: relax tcp_small_queue_check() when rtx queue contains a single skb
	tun: prevent negative ifindex
	ipv4: fib: annotate races around nh->nh_saddr_genid and nh->nh_saddr
	net: usb: smsc95xx: Fix an error code in smsc95xx_reset()
	i40e: prevent crash on probe if hw registers have invalid values
	net/sched: sch_hfsc: upgrade 'rt' to 'sc' when it becomes a inner curve
	neighbor: tracing: Move pin6 inside CONFIG_IPV6=y section
	netfilter: nft_set_rbtree: .deactivate fails if element has expired
	net: pktgen: Fix interface flags printing
	resource: Add irqresource_disabled()
	ACPI: Drop acpi_dev_irqresource_disabled()
	ACPI: resources: Add DMI-based legacy IRQ override quirk
	ACPI: resource: Skip IRQ override on Asus Vivobook K3402ZA/K3502ZA
	ACPI: resource: Add ASUS model S5402ZA to quirks
	ACPI: resource: Skip IRQ override on Asus Vivobook S5602ZA
	ACPI: resource: Add Asus ExpertBook B2502 to Asus quirks
	ACPI: resource: Skip IRQ override on Asus Expertbook B2402CBA
	ACPI: resource: Skip IRQ override on ASUS ExpertBook B1502CBA
	ACPI: resource: Skip IRQ override on ASUS ExpertBook B1402CBA
	ARM: dts: ti: omap: Fix noisy serial with overrun-throttle-ms for mapphone
	btrfs: return -EUCLEAN for delayed tree ref with a ref count not equals to 1
	btrfs: initialize start_slot in btrfs_log_prealloc_extents
	i2c: mux: Avoid potential false error message in i2c_mux_add_adapter
	overlayfs: set ctime when setting mtime and atime
	gpio: timberdale: Fix potential deadlock on &tgpio->lock
	ata: libata-eh: Fix compilation warning in ata_eh_link_report()
	tracing: relax trace_event_eval_update() execution with cond_resched()
	HID: holtek: fix slab-out-of-bounds Write in holtek_kbd_input_event
	Bluetooth: Avoid redundant authentication
	Bluetooth: hci_core: Fix build warnings
	wifi: mac80211: allow transmitting EAPOL frames with tainted key
	wifi: cfg80211: avoid leaking stack data into trace
	regulator/core: Revert "fix kobject release warning and memory leak in regulator_register()"
	sky2: Make sure there is at least one frag_addr available
	drm: panel-orientation-quirks: Add quirk for One Mix 2S
	btrfs: fix some -Wmaybe-uninitialized warnings in ioctl.c
	HID: multitouch: Add required quirk for Synaptics 0xcd7e device
	Bluetooth: hci_event: Fix using memcmp when comparing keys
	mtd: rawnand: qcom: Unmap the right resource upon probe failure
	mtd: spinand: micron: correct bitmask for ecc status
	mtd: physmap-core: Restore map_rom fallback
	mmc: core: sdio: hold retuning if sdio in 1-bit mode
	mmc: core: Capture correct oemid-bits for eMMC cards
	Revert "pinctrl: avoid unsafe code pattern in find_pinctrl()"
	ACPI: irq: Fix incorrect return value in acpi_register_gsi()
	USB: serial: option: add Telit LE910C4-WWX 0x1035 composition
	USB: serial: option: add entry for Sierra EM9191 with new firmware
	USB: serial: option: add Fibocom to DELL custom modem FM101R-GL
	perf: Disallow mis-matched inherited group reads
	s390/pci: fix iommu bitmap allocation
	gpio: vf610: set value before the direction to avoid a glitch
	ASoC: pxa: fix a memory leak in probe()
	phy: mapphone-mdm6600: Fix runtime disable on probe
	phy: mapphone-mdm6600: Fix runtime PM for remove
	phy: mapphone-mdm6600: Fix pinctrl_pm handling for sleep pins
	Bluetooth: hci_sock: fix slab oob read in create_monitor_event
	Bluetooth: hci_sock: Correctly bounds check and pad HCI_MON_NEW_INDEX name
	xfrm6: fix inet6_dev refcount underflow problem
	Linux 5.4.259

Change-Id: I413388a8527327650b234e3f14fce5ca6137c6c8
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 09:18:00 +00:00
Treehugger Robot
bbe33b72cc Merge changes I407c2796,If3f36646,Ia03ea493,I5f0e742b,Ibe09c3b1, ... into android11-5.4-lts
* changes:
  Revert "netfilter: conntrack: allow sctp hearbeat after connection re-use"
  Revert "netfilter: conntrack: don't refresh sctp entries in closed state"
  Revert "netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp"
  Merge 5.4.258 into android11-5.4-lts
  Reapply "netfilter: conntrack: don't refresh sctp entries in closed state"
  Reapply "netfilter: conntrack: allow sctp hearbeat after connection re-use"
2023-10-26 09:11:56 +00:00
Greg Kroah-Hartman
1891143414 Merge 52008a5e22 ("wifi: mt76: mt76x02: fix MT76x0 external LNA gain handling") into android11-5.4-lts
Steps on the way to 5.4.258

Change-Id: Id8b5da55e16af1c43be77a5e94c9f09bef7b391e
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 06:42:54 +00:00
Greg Kroah-Hartman
993e3b2df8 Merge 3c4bfa7a56 ("wifi: mwifiex: Fix tlv_buf_left calculation") into android11-5.4-lts
Steps on the way to 5.4.258

Change-Id: Ic0bbc6402957cc8165dd274e2977e92c8e61dfb7
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 06:22:43 +00:00
Greg Kroah-Hartman
8fb5605ba2 Merge ff10b1fad5 ("fs: binfmt_elf_efpic: fix personality for ELF-FDPIC") into android11-5.4-lts
Steps on the way to 5.4.258

Change-Id: I29607216855bdafd1e8d15a753b68dcd81456a76
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 06:21:31 +00:00
Greg Kroah-Hartman
6eb76db1fc Revert "netfilter: conntrack: allow sctp hearbeat after connection re-use"
This reverts commit 59d2b1e5cb which is
commit cc5453a5b7e90c39f713091a7ebc53c1f87d1700 upstream.

It breaks the Android ABI so revert it for now, if it is needed in the
future, it can be brought back in an ABI-safe way.

Bug: 161946584
Change-Id: I407c279668ad07b0356d4c7540eae0fb7f523b71
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 06:14:51 +00:00
Greg Kroah-Hartman
62bde05901 Revert "netfilter: conntrack: don't refresh sctp entries in closed state"
This reverts commit ba4b40356a which is
commit 77b337196a9d87f3d6bb9b07c0436ecafbffda1e upstream.

It breaks the Android ABI so revert it for now, if it is needed in the
future, it can be brought back in an ABI-safe way.

Bug: 161946584
Change-Id: If3f36646d15e1f27e51b5bdb57952bf59361462d
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 06:14:51 +00:00
Greg Kroah-Hartman
e6f57200f5 Revert "netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp"
This reverts commit f110aa377d which is
commit 8e56b063c86569e51eed1c5681ce6361fa97fc7a upstream.

It breaks the Android ABI so revert it for now, if it is needed in the
future, it can be brought back in an ABI-safe way.

Bug: 161946584
Change-Id: Ia03ea49365e6ce063194738b22f77d2a403ea3a4
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 06:14:50 +00:00
Greg Kroah-Hartman
e18c011afe Merge 5.4.258 into android11-5.4-lts
Changes in 5.4.258
	NFS/pNFS: Report EINVAL errors from connect() to the server
	SUNRPC: Mark the cred for revalidation if the server rejects it
	tracing: Increase trace array ref count on enable and filter files
	ata: libahci: clear pending interrupt status
	ext4: remove the 'group' parameter of ext4_trim_extent
	ext4: add new helper interface ext4_try_to_trim_range()
	ext4: scope ret locally in ext4_try_to_trim_range()
	ext4: change s_last_trim_minblks type to unsigned long
	ext4: mark group as trimmed only if it was fully scanned
	ext4: replace the traditional ternary conditional operator with with max()/min()
	ext4: move setting of trimmed bit into ext4_try_to_trim_range()
	ext4: do not let fstrim block system suspend
	ASoC: meson: spdifin: start hw on dai probe
	netfilter: nf_tables: disallow element removal on anonymous sets
	bpf: Avoid deadlock when using queue and stack maps from NMI
	selftests/tls: Add {} to avoid static checker warning
	selftests: tls: swap the TX and RX sockets in some tests
	ASoC: imx-audmix: Fix return error with devm_clk_get()
	i40e: Fix for persistent lldp support
	i40e: Remove scheduling while atomic possibility
	i40e: Fix warning message and call stack during rmmod i40e driver
	i40e: Fix VF VLAN offloading when port VLAN is configured
	ipv4: fix null-deref in ipv4_link_failure
	powerpc/perf/hv-24x7: Update domain value check
	dccp: fix dccp_v4_err()/dccp_v6_err() again
	net: hns3: add 5ms delay before clear firmware reset irq source
	net: bridge: use DEV_STATS_INC()
	team: fix null-ptr-deref when team device type is changed
	net: rds: Fix possible NULL-pointer dereference
	netfilter: ipset: Fix race between IPSET_CMD_CREATE and IPSET_CMD_SWAP
	gpio: tb10x: Fix an error handling path in tb10x_gpio_probe()
	i2c: mux: demux-pinctrl: check the return value of devm_kstrdup()
	Input: i8042 - add quirk for TUXEDO Gemini 17 Gen1/Clevo PD70PN
	scsi: qla2xxx: Fix update_fcport for current_topology
	scsi: qla2xxx: Fix deletion race condition
	drm/amd/display: Reinstate LFC optimization
	drm/amd/display: Fix LFC multiplier changing erratically
	drm/amd/display: prevent potential division by zero errors
	ata: libata: disallow dev-initiated LPM transitions to unsupported states
	MIPS: Alchemy: only build mmc support helpers if au1xmmc is enabled
	clk: tegra: fix error return case for recalc_rate
	ARM: dts: ti: omap: motorola-mapphone: Fix abe_clkctrl warning on boot
	bus: ti-sysc: Fix SYSC_QUIRK_SWSUP_SIDLE_ACT handling for uart wake-up
	xtensa: add default definition for XCHAL_HAVE_DIV32
	xtensa: iss/network: make functions static
	xtensa: boot: don't add include-dirs
	xtensa: boot/lib: fix function prototypes
	gpio: pmic-eic-sprd: Add can_sleep flag for PMIC EIC chip
	parisc: sba: Fix compile warning wrt list of SBA devices
	parisc: iosapic.c: Fix sparse warnings
	parisc: drivers: Fix sparse warning
	parisc: irq: Make irq_stack_union static to avoid sparse warning
	selftests/ftrace: Correctly enable event in instance-event.tc
	ring-buffer: Avoid softlockup in ring_buffer_resize()
	ata: libata-eh: do not clear ATA_PFLAG_EH_PENDING in ata_eh_reset()
	spi: nxp-fspi: reset the FLSHxCR1 registers
	bpf: Clarify error expectations from bpf_clone_redirect
	powerpc/watchpoints: Annotate atomic context in more places
	ncsi: Propagate carrier gain/loss events to the NCSI controller
	fbdev/sh7760fb: Depend on FB=y
	nvme-pci: do not set the NUMA node of device if it has none
	watchdog: iTCO_wdt: No need to stop the timer in probe
	watchdog: iTCO_wdt: Set NO_REBOOT if the watchdog is not already running
	i40e: improve locking of mac_filter_hash
	i40e: always propagate error value in i40e_set_vsi_promisc()
	i40e: fix return of uninitialized aq_ret in i40e_set_vsi_promisc
	smack: Record transmuting in smk_transmuted
	smack: Retrieve transmuting information in smack_inode_getsecurity()
	Smack:- Use overlay inode label in smack_inode_copy_up()
	serial: 8250_port: Check IRQ data before use
	nilfs2: fix potential use after free in nilfs_gccache_submit_read_data()
	ALSA: hda: Disable power save for solving pop issue on Lenovo ThinkCentre M70q
	ata: libata-scsi: ignore reserved bits for REPORT SUPPORTED OPERATION CODES
	i2c: i801: unregister tco_pdev in i801_probe() error path
	ring-buffer: Update "shortest_full" in polling
	btrfs: properly report 0 avail for very full file systems
	net: thunderbolt: Fix TCPv6 GSO checksum calculation
	ata: libata-core: Fix ata_port_request_pm() locking
	ata: libata-core: Fix port and device removal
	ata: libata-core: Do not register PM operations for SAS ports
	ata: libata-sata: increase PMP SRST timeout to 10s
	fs: binfmt_elf_efpic: fix personality for ELF-FDPIC
	rbd: move rbd_dev_refresh() definition
	rbd: decouple header read-in from updating rbd_dev->header
	rbd: decouple parent info read-in from updating rbd_dev
	rbd: take header_rwsem in rbd_dev_refresh() only when updating
	Revert "PCI: qcom: Disable write access to read only registers for IP v2.3.3"
	scsi: zfcp: Fix a double put in zfcp_port_enqueue()
	qed/red_ll2: Fix undefined behavior bug in struct qed_ll2_info
	wifi: mwifiex: Fix tlv_buf_left calculation
	net: replace calls to sock->ops->connect() with kernel_connect()
	net: prevent rewrite of msg_name in sock_sendmsg()
	ubi: Refuse attaching if mtd's erasesize is 0
	wifi: iwlwifi: dbg_ini: fix structure packing
	wifi: mwifiex: Fix oob check condition in mwifiex_process_rx_packet
	drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close()
	wifi: mt76: mt76x02: fix MT76x0 external LNA gain handling
	regmap: rbtree: Fix wrong register marked as in-cache when creating new node
	ima: Finish deprecation of IMA_TRUSTED_KEYRING Kconfig
	scsi: target: core: Fix deadlock due to recursive locking
	NFS4: Trace state recovery operation
	NFS: Add a helper nfs_client_for_each_server()
	NFSv4: Fix a nfs4_state_manager() race
	modpost: add missing else to the "of" check
	net: fix possible store tearing in neigh_periodic_work()
	ipv4, ipv6: Fix handling of transhdrlen in __ip{,6}_append_data()
	net: dsa: mv88e6xxx: Avoid EEPROM timeout when EEPROM is absent
	net: usb: smsc75xx: Fix uninit-value access in __smsc75xx_read_reg
	net: nfc: llcp: Add lock when modifying device list
	netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp
	net: stmmac: dwmac-stm32: fix resume on STM32 MCU
	tcp: fix quick-ack counting to count actual ACKs of new data
	tcp: fix delayed ACKs for MSS boundary condition
	sctp: update transport state when processing a dupcook packet
	sctp: update hb timer immediately after users change hb_interval
	cpupower: add Makefile dependencies for install targets
	RDMA/core: Require admin capabilities to set system parameters
	IB/mlx4: Fix the size of a buffer in add_port_entries()
	gpio: aspeed: fix the GPIO number passed to pinctrl_gpio_set_config()
	gpio: pxa: disable pinctrl calls for MMP_GPIO
	RDMA/cma: Fix truncation compilation warning in make_cma_ports
	RDMA/uverbs: Fix typo of sizeof argument
	RDMA/siw: Fix connection failure handling
	RDMA/mlx5: Fix NULL string error
	parisc: Restore __ldcw_align for PA-RISC 2.0 processors
	NFS: Fix a race in __nfs_list_for_each_server()
	ima: rework CONFIG_IMA dependency block
	xen/events: replace evtchn_rwlock with RCU
	Linux 5.4.258

Change-Id: I5f0e742bb16c2e7edae606510d1fd037032cdec7
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 06:14:23 +00:00
Greg Kroah-Hartman
4542148a7e Reapply "netfilter: conntrack: don't refresh sctp entries in closed state"
This reverts commit 2867afd647 as it
causes merge conflicts with 5.4.258.  It will be added back after the
merge.

Change-Id: Ibe09c3b147ba00fb3978f0b7372c5fbdbf1bc93d
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 06:13:51 +00:00
Greg Kroah-Hartman
7fe1de446b Reapply "netfilter: conntrack: allow sctp hearbeat after connection re-use"
This reverts commit 35452319ba as it
causes merge conflicts with 5.4.258.  It will be added back after the
merge.

Change-Id: I8ea66985ba95de649890adacc26670d01cee6d52
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-10-26 06:13:51 +00:00
Greg Kroah-Hartman
86ea40e6ad Linux 5.4.259
Link: https://lore.kernel.org/r/20231023104817.691299567@linuxfoundation.org
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Tested-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Link: https://lore.kernel.org/r/20231024083306.700855687@linuxfoundation.org
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Tested-by: Slade Watkins <srw@sladewatkins.net>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Tested-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 11:53:25 +02:00
Zhang Changzhong
c01ac092d9 xfrm6: fix inet6_dev refcount underflow problem
[ Upstream commit cc9b364bb1d58d3dae270c7a931a8cc717dc2b3b ]

There are race conditions that may lead to inet6_dev refcount underflow
in xfrm6_dst_destroy() and rt6_uncached_list_flush_dev().

One of the refcount underflow bugs is shown below:
	(cpu 1)                	|	(cpu 2)
xfrm6_dst_destroy()             |
  ...                           |
  in6_dev_put()                 |
				|  rt6_uncached_list_flush_dev()
  ...				|    ...
				|    in6_dev_put()
  rt6_uncached_list_del()       |    ...
  ...                           |

xfrm6_dst_destroy() calls rt6_uncached_list_del() after in6_dev_put(),
so rt6_uncached_list_flush_dev() has a chance to call in6_dev_put()
again for the same inet6_dev.

Fix it by moving in6_dev_put() after rt6_uncached_list_del() in
xfrm6_dst_destroy().

Fixes: 510c321b55 ("xfrm: reuse uncached_list to track xdsts")
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 11:53:25 +02:00
Kees Cook
b849a38e18 Bluetooth: hci_sock: Correctly bounds check and pad HCI_MON_NEW_INDEX name
commit cb3871b1cd135a6662b732fbc6b3db4afcdb4a64 upstream.

The code pattern of memcpy(dst, src, strlen(src)) is almost always
wrong. In this case it is wrong because it leaves memory uninitialized
if it is less than sizeof(ni->name), and overflows ni->name when longer.

Normally strtomem_pad() could be used here, but since ni->name is a
trailing array in struct hci_mon_new_index, compilers that don't support
-fstrict-flex-arrays=3 can't tell how large this array is via
__builtin_object_size(). Instead, open-code the helper and use sizeof()
since it will work correctly.

Additionally mark ni->name as __nonstring since it appears to not be a
%NUL terminated C string.

Cc: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Cc: Edward AD <twuufnxlz@gmail.com>
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Johan Hedberg <johan.hedberg@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: linux-bluetooth@vger.kernel.org
Cc: netdev@vger.kernel.org
Fixes: 18f547f3fc07 ("Bluetooth: hci_sock: fix slab oob read in create_monitor_event")
Link: https://lore.kernel.org/lkml/202310110908.F2639D3276@keescook/
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 11:53:25 +02:00
Edward AD
4d161e18b1 Bluetooth: hci_sock: fix slab oob read in create_monitor_event
commit 18f547f3fc074500ab5d419cf482240324e73a7e upstream.

When accessing hdev->name, the actual string length should prevail

Reported-by: syzbot+c90849c50ed209d77689@syzkaller.appspotmail.com
Fixes: dcda165706b9 ("Bluetooth: hci_core: Fix build warnings")
Signed-off-by: Edward AD <twuufnxlz@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 11:53:25 +02:00
Tony Lindgren
a0f0e43128 phy: mapphone-mdm6600: Fix pinctrl_pm handling for sleep pins
[ Upstream commit 3b384cc74b00b5ac21d18e4c1efc3c1da5300971 ]

Looks like the driver sleep pins configuration is unusable. Adding the
sleep pins causes the usb phy to not respond. We need to use the default
pins in probe, and only set sleep pins at phy_mdm6600_device_power_off().

As the modem can also be booted to a serial port mode for firmware
flashing, let's make the pin changes limited to probe and remove. For
probe, we get the default pins automatically. We only need to set the
sleep pins in phy_mdm6600_device_power_off() to prevent the modem from
waking up because the gpio line glitches.

If it turns out that we need a separate state for phy_mdm6600_power_on()
and phy_mdm6600_power_off(), we can use the pinctrl idle state.

Cc: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Sebastian Reichel <sre@kernel.org>
Fixes: 2ad2af0816 ("phy: mapphone-mdm6600: Improve phy related runtime PM calls")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20230913060433.48373-3-tony@atomide.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-25 11:53:25 +02:00
Tony Lindgren
d1618b9223 phy: mapphone-mdm6600: Fix runtime PM for remove
[ Upstream commit b99e0ba9633af51638e5ee1668da2e33620c134f ]

Otherwise we will get an underflow on remove.

Cc: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Sebastian Reichel <sre@kernel.org>
Fixes: f7f50b2a7b ("phy: mapphone-mdm6600: Add runtime PM support for n_gsm on USB suspend")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20230913060433.48373-2-tony@atomide.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-25 11:53:24 +02:00
Tony Lindgren
4db06513a0 phy: mapphone-mdm6600: Fix runtime disable on probe
[ Upstream commit 719606154c7033c068a5d4c1dc5f9163b814b3c8 ]

Commit d644e0d79829 ("phy: mapphone-mdm6600: Fix PM error handling in
phy_mdm6600_probe") caused a regression where we now unconditionally
disable runtime PM at the end of the probe while it is only needed on
errors.

Cc: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Miaoqian Lin <linmq006@gmail.com>
Cc: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Fixes: d644e0d79829 ("phy: mapphone-mdm6600: Fix PM error handling in phy_mdm6600_probe")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20230913060433.48373-1-tony@atomide.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-25 11:53:24 +02:00
Dan Carpenter
083ff5b50c ASoC: pxa: fix a memory leak in probe()
[ Upstream commit aa6464edbd51af4a2f8db43df866a7642b244b5f ]

Free the "priv" pointer before returning the error code.

Fixes: 90eb6b59d3 ("ASoC: pxa-ssp: add support for an external clock in devicetree")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/84ac2313-1420-471a-b2cb-3269a2e12a7c@moroto.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-25 11:53:24 +02:00
Haibo Chen
27a17a2590 gpio: vf610: set value before the direction to avoid a glitch
commit fc363413ef8ea842ae7a99e3caf5465dafdd3a49 upstream.

We found a glitch when configuring the pad as output high. To avoid this
glitch, move the data value setting before direction config in the
function vf610_gpio_direction_output().

Fixes: 659d8a6231 ("gpio: vf610: add imx7ulp support")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
[Bartosz: tweak the commit message]
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 11:53:24 +02:00
Niklas Schnelle
664aad86e5 s390/pci: fix iommu bitmap allocation
commit c1ae1c59c8c6e0b66a718308c623e0cb394dab6b upstream.

Since the fixed commits both zdev->iommu_bitmap and zdev->lazy_bitmap
are allocated as vzalloc(zdev->iommu_pages / 8). The problem is that
zdev->iommu_bitmap is a pointer to unsigned long but the above only
yields an allocation that is a multiple of sizeof(unsigned long) which
is 8 on s390x if the number of IOMMU pages is a multiple of 64.
This in turn is the case only if the effective IOMMU aperture is
a multiple of 64 * 4K = 256K. This is usually the case and so didn't
cause visible issues since both the virt_to_phys(high_memory) reduced
limit and hardware limits use nice numbers.

Under KVM, and in particular with QEMU limiting the IOMMU aperture to
the vfio DMA limit (default 65535), it is possible for the reported
aperture not to be a multiple of 256K however. In this case we end up
with an iommu_bitmap whose allocation is not a multiple of
8 causing bitmap operations to access it out of bounds.

Sadly we can't just fix this in the obvious way and use bitmap_zalloc()
because for large RAM systems (tested on 8 TiB) the zdev->iommu_bitmap
grows too large for kmalloc(). So add our own bitmap_vzalloc() wrapper.
This might be a candidate for common code, but this area of code will
be replaced by the upcoming conversion to use the common code DMA API on
s390 so just add a local routine.

Fixes: 2245932155 ("s390/pci: use virtual memory for iommu bitmap")
Fixes: 13954fd691 ("s390/pci_dma: improve lazy flush for unmap")
Cc: stable@vger.kernel.org
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 11:53:24 +02:00
Peter Zijlstra
7252c8b981 perf: Disallow mis-matched inherited group reads
commit 32671e3799ca2e4590773fd0e63aaa4229e50c06 upstream.

Because group consistency is non-atomic between parent (filedesc) and children
(inherited) events, it is possible for PERF_FORMAT_GROUP read() to try and sum
non-matching counter groups -- with non-sensical results.

Add group_generation to distinguish the case where a parent group removes and
adds an event and thus has the same number, but a different configuration of
events as inherited groups.

This became a problem when commit fa8c269353 ("perf/core: Invert
perf_read_group() loops") flipped the order of child_list and sibling_list.
Previously it would iterate the group (sibling_list) first, and for each
sibling traverse the child_list. In this order, only the group composition of
the parent is relevant. By flipping the order the group composition of the
child (inherited) events becomes an issue and the mis-match in group
composition becomes evident.

That said; even prior to this commit, while reading of a group that is not
equally inherited was not broken, it still made no sense.

(Ab)use ECHILD as error return to indicate issues with child process group
composition.

Fixes: fa8c269353 ("perf/core: Invert perf_read_group() loops")
Reported-by: Budimir Markovic <markovicbudimir@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20231018115654.GK33217@noisy.programming.kicks-ass.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 11:53:24 +02:00
Puliang Lu
32279bbbd8 USB: serial: option: add Fibocom to DELL custom modem FM101R-GL
commit 52480e1f1a259c93d749ba3961af0bffedfe7a7a upstream.

Update the USB serial option driver support for the Fibocom
FM101R-GL LTE modules as there are actually several different variants.

- VID:PID 413C:8213, FM101R-GL are laptop M.2 cards (with
  MBIM interfaces for Linux)

- VID:PID 413C:8215, FM101R-GL ESIM are laptop M.2 cards (with
  MBIM interface for Linux)

0x8213: mbim, tty
0x8215: mbim, tty

T:  Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=5000 MxCh= 0
D:  Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
P:  Vendor=413c ProdID=8213 Rev= 5.04
S:  Manufacturer=Fibocom Wireless Inc.
S:  Product=Fibocom FM101-GL Module
S:  SerialNumber=a3b7cbf0
C:* #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=896mA
A:  FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=32ms
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
E:  Ad=8e(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=0f(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=40 Driver=(none)
E:  Ad=83(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

T:  Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  3 Spd=5000 MxCh= 0
D:  Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
P:  Vendor=413c ProdID=8215 Rev= 5.04
S:  Manufacturer=Fibocom Wireless Inc.
S:  Product=Fibocom FM101-GL Module
S:  SerialNumber=a3b7cbf0
C:* #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=896mA
A:  FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=32ms
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
E:  Ad=8e(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=0f(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=40 Driver=(none)
E:  Ad=83(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

Signed-off-by: Puliang Lu <puliang.lu@fibocom.com>
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 11:53:24 +02:00
Benoît Monin
1ff2a7fa0c USB: serial: option: add entry for Sierra EM9191 with new firmware
commit 064f6e2ba9eb59b2c87b866e1e968e79ccedf9dd upstream.

Following a firmware update of the modem, the interface for the AT
command port changed, so add it back.

T:  Bus=08 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  2 Spd=5000 MxCh= 0
D:  Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
P:  Vendor=1199 ProdID=90d3 Rev=00.06
S:  Manufacturer=Sierra Wireless, Incorporated
S:  Product=Sierra Wireless EM9191
S:  SerialNumber=xxxxxxxxxxxxxxxx
C:  #Ifs= 4 Cfg#= 1 Atr=a0 MxPwr=896mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim
I:  If#=0x1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
I:  If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=40 Driver=(none)
I:  If#=0x4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option

Signed-off-by: Benoît Monin <benoit.monin@gmx.fr>
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 11:53:24 +02:00
Fabio Porcedda
eb8f5e40cb USB: serial: option: add Telit LE910C4-WWX 0x1035 composition
commit 6a7be48e9bd18d309ba25c223a27790ad1bf0fa3 upstream.

Add support for the following Telit LE910C4-WWX composition:

0x1035: TTY, TTY, ECM

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1bc7 ProdID=1035 Rev=00.00
S:  Manufacturer=Telit
S:  Product=LE910C4-WWX
S:  SerialNumber=e1b117c7
C:  #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:  If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=fe Prot=ff Driver=option
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:  If#= 2 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether
E:  Ad=85(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
I:  If#= 3 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: stable@vger.kernel.org
Reviewed-by: Daniele Palmas <dnlplm@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 11:53:24 +02:00
Sunil V L
b43a412aa1 ACPI: irq: Fix incorrect return value in acpi_register_gsi()
commit 0c21a18d5d6c6a73d098fb9b4701572370942df9 upstream.

acpi_register_gsi() should return a negative value in case of failure.

Currently, it returns the return value from irq_create_fwspec_mapping().
However, irq_create_fwspec_mapping() returns 0 for failure. Fix the
issue by returning -EINVAL if irq_create_fwspec_mapping() returns zero.

Fixes: d44fa3d460 ("ACPI: Add support for ResourceSource/IRQ domain mapping")
Cc: 4.11+ <stable@vger.kernel.org> # 4.11+
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
[ rjw: Rename a new local variable ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 11:53:24 +02:00
Andy Shevchenko
3189d2d587 Revert "pinctrl: avoid unsafe code pattern in find_pinctrl()"
commit 62140a1e4dec4594d5d1e1d353747bf2ef434e8b upstream.

The commit breaks MMC enumeration on the Intel Merrifield
plaform.

Before:
[   36.439057] mmc0: SDHCI controller on PCI [0000:00:01.0] using ADMA
[   36.450924] mmc2: SDHCI controller on PCI [0000:00:01.3] using ADMA
[   36.459355] mmc1: SDHCI controller on PCI [0000:00:01.2] using ADMA
[   36.706399] mmc0: new DDR MMC card at address 0001
[   37.058972] mmc2: new ultra high speed DDR50 SDIO card at address 0001
[   37.278977] mmcblk0: mmc0:0001 H4G1d 3.64 GiB
[   37.297300]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10

After:
[   36.436704] mmc2: SDHCI controller on PCI [0000:00:01.3] using ADMA
[   36.436720] mmc1: SDHCI controller on PCI [0000:00:01.0] using ADMA
[   36.463685] mmc0: SDHCI controller on PCI [0000:00:01.2] using ADMA
[   36.720627] mmc1: new DDR MMC card at address 0001
[   37.068181] mmc2: new ultra high speed DDR50 SDIO card at address 0001
[   37.279998] mmcblk1: mmc1:0001 H4G1d 3.64 GiB
[   37.302670]  mmcblk1: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10

This reverts commit c153a4edff6ab01370fcac8e46f9c89cca1060c2.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231017141806.535191-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 11:53:24 +02:00
Avri Altman
690eb3772f mmc: core: Capture correct oemid-bits for eMMC cards
commit 84ee19bffc9306128cd0f1c650e89767079efeff upstream.

The OEMID is an 8-bit binary number rather than 16-bit as the current code
parses for. The OEMID occupies bits [111:104] in the CID register, see the
eMMC spec JESD84-B51 paragraph 7.2.3. It seems that the 16-bit comes from
the legacy MMC specs (v3.31 and before).

Let's fix the parsing by simply move to use 8-bit instead of 16-bit. This
means we ignore the impact on some of those old MMC cards that may be out
there, but on the other hand this shouldn't be a problem as the OEMID seems
not be an important feature for these cards.

Signed-off-by: Avri Altman <avri.altman@wdc.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230927071500.1791882-1-avri.altman@wdc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 11:53:24 +02:00