Jiri Kosina
47a69493d1
HID: core: zero-initialize the report buffer
...
[ Upstream commit 177f25d1292c7e16e1199b39c85480f7f8815552 ]
Since the report buffer is used by all kinds of drivers in various ways, let's
zero-initialize it during allocation to make sure that it can't be ever used
to leak kernel memory via specially-crafted report.
Fixes: 27ce405039bf ("HID: fix data access in implement()")
Reported-by: Benoît Sevens <bsevens@google.com>
Acked-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-30 02:33:21 +01:00
Karan
f11cfb0398
driver: pwm: Implement .apply() callback
...
To eventually get rid of all legacy drivers convert this driver to the
modern world implementing .apply(). The commit which brings these
changes is `5ec803edcb703fe379836f13560b79dfac79b01d` on the uplink
kernel.
Bug: 332793240
Change-Id: I385f487c474ca2d52a9f3bb4e8afc3843eb4d9f8
Signed-off-by: Karan Bhagoji <karan.rb@samsung.com>
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
2024-11-30 02:19:17 +01:00
Woody Lin
f887b383c2
watchdog: s3c2410_wdt: Assign s3c_wdt[] until probe complete
...
Assigns device data to `s3c_wdt[cluster_index]` only when probe function
completes. Several functions of s3c2410_wdt use the existence of
`s3c_wdt[*]` to decide whether the device data is ready to be accessed.
This causes an invalid access issue as long as the probe function puts
device data to `s3c_wdt[cluster_index]` before completely preparing the
content. Fixes the issue by rearranging the assignment order.
Bug: 342585125
Change-Id: Idb4c3b71fb2e0518725c697db01e708aa0c7c86b
Signed-off-by: Woody Lin <woodylin@google.com>
(cherry picked from commit d7bd15571d51e658a081d98dfbcc17e3aa104585)
2024-11-30 02:18:58 +01:00
Secondarian
9c6c01a0bd
zram: Set default compressor to zstd
2024-11-30 02:02:54 +01:00
Ksawlii
f9e1f3fa3a
Revert "exynos_gpu: Don't allow userspace to control freqs"
...
This reverts commit fdef7b54c3
.
2024-11-24 19:22:36 +01:00
Ksawlii
0f4d6c3c29
Revert "gpu/exynos: Make 'gpu_mm_min_clock' readonly too"
...
This reverts commit 9e6b7e114f
.
2024-11-24 19:16:08 +01:00
Ksawlii
895709a281
drivers: samsung: scsc: Adapt scsc_wlbtd.c for Linux 5.10.229
2024-11-24 00:42:20 +01:00
Ksawlii
a5b7b870fc
Revert "net: fec: Refactor: #define magic constants"
...
This reverts commit 64636f4e88
.
2024-11-24 00:23:56 +01:00
Ksawlii
e7b1ec68bc
Revert "net: fec: Fix FEC_ECR_EN1588 being cleared on link-down"
...
This reverts commit 132969266d
.
2024-11-24 00:23:56 +01:00
Ksawlii
bfbdef95a1
Revert "wifi: virt_wifi: avoid reporting connection success with wrong SSID"
...
This reverts commit 1c786f1067
.
2024-11-24 00:23:56 +01:00
Ksawlii
4f9bfbe9f1
Revert "wifi: virt_wifi: don't use strlen() in const context"
...
This reverts commit 8df54fa66a
.
2024-11-24 00:23:56 +01:00
Ksawlii
683ecba589
Revert "net: dsa: mv88e6xxx: Limit chip-wide frame size config to CPU ports"
...
This reverts commit 4324f66a7a
.
2024-11-24 00:23:56 +01:00
Ksawlii
2e56e9f4fd
Revert "net: dsa: b53: Limit chip-wide jumbo frame config to CPU ports"
...
This reverts commit 23d58869be
.
2024-11-24 00:23:56 +01:00
Ksawlii
d3f5815f54
Revert "wifi: mwifiex: Fix interface type change"
...
This reverts commit 64663028ab
.
2024-11-24 00:23:56 +01:00
Ksawlii
fa72cb31d6
Revert "net: bonding: correctly annotate RCU in bond_should_notify_peers()"
...
This reverts commit 7dc1b04912
.
2024-11-24 00:23:56 +01:00
Ksawlii
32d9b82df9
Revert "net: stmmac: Correct byte order of perfect_match"
...
This reverts commit 4e35d4a08d
.
2024-11-24 00:23:55 +01:00
Ksawlii
eb36756b64
Revert "net/mlx5e: Add a check for the return value from mlx5_port_set_eth_ptys"
...
This reverts commit babb23917f
.
2024-11-24 00:23:55 +01:00
Ksawlii
9b5b6a7525
Revert "net: usb: qmi_wwan: fix memory leak for not ip packets"
...
This reverts commit 3789fee8a8
.
2024-11-24 00:23:55 +01:00
Ksawlii
97133e2e2e
Revert "net: dsa: bcm_sf2: Fix a possible memory leak in bcm_sf2_mdio_register()"
...
This reverts commit be9d7e8db2
.
2024-11-24 00:23:55 +01:00
Ksawlii
5c2a1132c9
Revert "net: fec: Stop PPS on driver remove"
...
This reverts commit e328279c90
.
2024-11-24 00:23:55 +01:00
Ksawlii
4ec03bf3d0
Revert "media: uvcvideo: Use entity get_cur in uvc_ctrl_set"
...
This reverts commit db35ac122f
.
2024-11-24 00:23:54 +01:00
Ksawlii
d8a23d1e51
Revert "nvme/pci: Add APST quirk for Lenovo N60z laptop"
...
This reverts commit c748a1f324
.
2024-11-24 00:23:54 +01:00
Ksawlii
e89ee38649
Revert "media: Revert "media: dvb-usb: Fix unexpected infinite loop in dvb_usb_read_remote_control()""
...
This reverts commit bc158d0b3a
.
2024-11-24 00:23:54 +01:00
Ksawlii
0b80835234
Revert "net/mlx5e: Correctly report errors for ethtool rx flows"
...
This reverts commit a1624526b7
.
2024-11-24 00:23:54 +01:00
Ksawlii
11596bfd09
Revert "net: axienet: Fix register defines comment description"
...
This reverts commit fd86cc6597
.
2024-11-24 00:23:54 +01:00
Ksawlii
7dd6e87cff
Revert "net: dsa: vsc73xx: pass value in phy_write operation"
...
This reverts commit 3c0fd5c577
.
2024-11-24 00:23:53 +01:00
Ksawlii
f4d0eedded
Revert "net: dsa: vsc73xx: use read_poll_timeout instead delay loop"
...
This reverts commit 98c55bf660
.
2024-11-24 00:23:53 +01:00
Ksawlii
36bbae2b95
Revert "net: dsa: vsc73xx: check busy flag in MDIO operations"
...
This reverts commit 509fc0dcd1
.
2024-11-24 00:23:53 +01:00
Ksawlii
29c857027d
Revert "net: hns3: fix wrong use of semaphore up"
...
This reverts commit deb6d455f4
.
2024-11-24 00:23:53 +01:00
Ksawlii
39f88f5bf8
Revert "net: hns3: fix a deadlock problem when config TC during resetting"
...
This reverts commit 26a0b43c4b
.
2024-11-24 00:23:53 +01:00
Ksawlii
038863cd84
Revert "wifi: cw1200: Avoid processing an invalid TIM IE"
...
This reverts commit 045e1a3f2e
.
2024-11-24 00:23:53 +01:00
Ksawlii
911ea2912e
Revert "wifi: iwlwifi: abort scan when rfkill on but device enabled"
...
This reverts commit a2e13a5078
.
2024-11-24 00:23:53 +01:00
Ksawlii
52f4f64489
Revert "net/sun3_82586: Avoid reading past buffer in debug output"
...
This reverts commit 70d98df8ea
.
2024-11-24 00:23:52 +01:00
Ksawlii
0eeaf7577a
Revert "net: hns3: add checking for vf id of mailbox"
...
This reverts commit 7e18329b75
.
2024-11-24 00:23:52 +01:00
Ksawlii
c3c4efe7b0
Revert "media: solo6x10: replace max(a, min(b, c)) by clamp(b, a, c)"
...
This reverts commit 0e0829bf72
.
2024-11-24 00:23:52 +01:00
Ksawlii
68834d1c47
Revert "bonding: fix bond_ipsec_offload_ok return type"
...
This reverts commit 38a3a70b3e
.
2024-11-24 00:23:51 +01:00
Ksawlii
6de0889cec
Revert "bonding: fix null pointer deref in bond_ipsec_offload_ok"
...
This reverts commit 4552f9f0ae
.
2024-11-24 00:23:51 +01:00
Ksawlii
0f85dd45e4
Revert "bonding: fix xfrm real_dev null pointer dereference"
...
This reverts commit 9fa8811d1a
.
2024-11-24 00:23:51 +01:00
Ksawlii
b4e9e5b37a
Revert "bonding: fix xfrm state handling when clearing active slave"
...
This reverts commit 08a3b787ac
.
2024-11-24 00:23:51 +01:00
Ksawlii
5036a90d21
Revert "ice: fix ICE_LAST_OFFSET formula"
...
This reverts commit 9a98cb967c
.
2024-11-24 00:23:51 +01:00
Ksawlii
091e8249c6
Revert "net: dsa: mv88e6xxx: read FID when handling ATU violations"
...
This reverts commit 6fad67a4c7
.
2024-11-24 00:23:51 +01:00
Ksawlii
c346f9c457
Revert "net: dsa: mv88e6xxx: replace ATU violation prints with trace points"
...
This reverts commit f634cf4b40
.
2024-11-24 00:23:51 +01:00
Ksawlii
6c2054cc66
Revert "net: dsa: mv88e6xxx: Fix out-of-bound access"
...
This reverts commit 2230f96d6c
.
2024-11-24 00:23:51 +01:00
Ksawlii
6fe606a02b
Revert "net: xilinx: axienet: Always disable promiscuous mode"
...
This reverts commit a7875446c0
.
2024-11-24 00:23:51 +01:00
Ksawlii
09bc706e3c
Revert "net: xilinx: axienet: Fix dangling multicast addresses"
...
This reverts commit ae9628b4fa
.
2024-11-24 00:23:50 +01:00
Ksawlii
4791d94bc3
Revert "mmc: mmc_test: Fix NULL dereference on allocation failure"
...
This reverts commit b70b468ec3
.
2024-11-24 00:23:50 +01:00
Ksawlii
10dedc6446
Revert "Bluetooth: hci_ldisc: check HCI_UART_PROTO_READY flag in HCIUARTGETPROTO"
...
This reverts commit fcac1fea69
.
2024-11-24 00:23:50 +01:00
Ksawlii
8091d268fa
Revert "pinctrl: rockchip: correct RK3328 iomux width flag for GPIO2-B pins"
...
This reverts commit 14eab2181c
.
2024-11-24 00:23:50 +01:00
Ksawlii
cc2f1bd0df
Revert "pinctrl: single: fix potential NULL dereference in pcs_get_function()"
...
This reverts commit d6e934ecd6
.
2024-11-24 00:23:50 +01:00
Ksawlii
8b24cf4850
Revert "wifi: mwifiex: duplicate static structs used in driver instances"
...
This reverts commit b610ebf3a2
.
2024-11-24 00:23:50 +01:00