Files
twx-linux/kernel
David Disseldorp a232df8edc watch_queue: fix IOC_WATCH_QUEUE_SET_SIZE alloc error paths
[ Upstream commit 03e1d60e17 ]

The watch_queue_set_size() allocation error paths return the ret value
set via the prior pipe_resize_ring() call, which will always be zero.

As a result, IOC_WATCH_QUEUE_SET_SIZE callers such as "keyctl watch"
fail to detect kernel wqueue->notes allocation failures and proceed to
KEYCTL_WATCH_KEY, with any notifications subsequently lost.

Fixes: c73be61ced ("pipe: Add general notification queue support")
Signed-off-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-17 08:58:00 +01:00
..
2022-12-02 11:25:00 +01:00
2022-12-21 14:31:52 -08:00
2022-08-29 19:47:03 -04:00
2022-09-26 10:13:13 -07:00
2021-09-08 15:32:35 -07:00
2022-11-15 00:42:02 -08:00
2019-05-24 20:16:01 +02:00
2021-05-07 00:26:33 -07:00
2022-06-29 13:07:16 +02:00
2020-07-27 14:31:12 -04:00
2022-02-25 09:36:06 +01:00
2023-03-10 09:28:46 +01:00
2020-08-19 14:13:20 +02:00