linux-yocto/include
Eric Biggers fbe96bd254 crypto: af_alg - Fix incorrect boolean values in af_alg_ctx
commit d0ca0df179c4b21e2a6c4a4fb637aa8fa14575cb upstream.

Commit 1b34cbbf4f01 ("crypto: af_alg - Disallow concurrent writes in
af_alg_sendmsg") changed some fields from bool to 1-bit bitfields of
type u32.

However, some assignments to these fields, specifically 'more' and
'merge', assign values greater than 1.  These relied on C's implicit
conversion to bool, such that zero becomes false and nonzero becomes
true.

With a 1-bit bitfields of type u32 instead, mod 2 of the value is taken
instead, resulting in 0 being assigned in some cases when 1 was intended.

Fix this by restoring the bool type.

Fixes: 1b34cbbf4f01 ("crypto: af_alg - Disallow concurrent writes in af_alg_sendmsg")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-10-02 13:48:36 +02:00
..
acpi
asm-generic
clocksource
crypto crypto: af_alg - Fix incorrect boolean values in af_alg_ctx 2025-10-02 13:48:36 +02:00
cxl
drm drm/dp: Add an EDID quirk for the DPCD register access probe 2025-09-19 16:37:33 +02:00
dt-bindings clk: sunxi-ng: v3s: Fix CSI SCLK clock name 2025-07-03 23:31:04 +08:00
hyperv
keys
kunit
kvm
linux net/mlx5: fs, fix UAF in flow counter release 2025-10-02 13:48:32 +02:00
math-emu
media
memory
misc
net Bluetooth: hci_event: Fix UAF in hci_acl_create_conn_sync 2025-10-02 13:48:31 +02:00
pcmcia
ras
rdma RDMA/uverbs: Add empty rdma_uattrs_has_raw_cap() declaration 2025-08-15 16:39:06 +02:00
rv
scsi
soc
sound ASoC: SDCA: Add quirk for incorrect function types for 3 systems 2025-09-25 11:16:48 +02:00
target
trace btrfs: use refcount_t type for the extent buffer reference counter 2025-08-28 16:34:33 +02:00
uapi mptcp: pm: nl: announce deny-join-id0 flag 2025-09-25 11:16:53 +02:00
ufs
vdso
video
xen
Kbuild