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
..
2023-03-17 08:57:57 +01:00
2023-02-06 10:18:36 -10:00
2022-12-01 00:09:20 +01:00
2022-12-02 11:25:00 +01:00
2023-03-11 13:50:30 +01:00
2022-10-03 14:03:25 -07:00
2023-01-31 20:37:18 +01:00
2023-01-01 11:15:05 -08:00
2022-12-21 14:31:52 -08:00
2023-03-11 13:50:35 +01:00
2023-01-02 08:59:33 -08:00
2022-12-13 14:05:39 -08:00
2023-03-10 09:29:27 +01:00
2023-01-24 12:52:52 -08:00
2023-03-10 09:29:12 +01:00
2023-03-11 13:50:37 +01:00
2023-03-10 09:29:08 +01:00
2023-03-10 09:27:56 +01:00
2023-03-10 09:29:12 +01:00
2023-03-11 13:50:37 +01:00
2021-05-02 00:43:35 +09:00
2022-11-30 16:13:18 -08:00
2022-02-03 11:20:34 -08:00
2022-08-22 18:50:06 -04:00
2022-04-25 14:37:28 +02:00
2022-09-01 17:39:30 -04:00
2022-08-29 19:47:03 -04:00
2022-10-17 14:24:42 -04:00
2020-07-30 11:15:58 -07:00
2022-09-26 19:46:09 -07:00
2022-10-26 10:02:39 +02:00
2022-09-26 10:13:13 -07:00
2021-09-08 15:32:35 -07:00
2023-03-10 09:29:05 +01:00
2022-07-05 13:32:59 -07:00
2022-12-02 12:43:02 +01:00
2022-11-30 16:13:17 -08:00
2020-04-15 11:21:54 +02:00
2022-11-01 10:04:52 -07:00
2022-09-26 19:46:07 -07:00
2018-05-16 07:23:35 +02:00
2018-05-16 07:23:35 +02:00
2023-03-10 09:29:09 +01:00
2022-07-05 13:32:59 -07:00
2023-03-11 13:50:45 +01:00
2023-03-17 08:57:46 +01:00
2022-09-07 21:53:50 +02:00
2023-01-18 16:34:04 +09:00
2022-07-15 18:21:49 +00:00
2022-09-30 16:50:39 +02:00
2019-07-12 11:05:40 -07:00
2022-12-01 15:53:05 -08:00
2023-01-13 15:09:08 -08:00
2022-11-15 00:42:02 -08:00
2020-12-15 19:36:48 -08:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2021-08-17 17:50:51 +02:00
2022-10-03 14:03:23 -07:00
2019-09-06 23:58:44 +02:00
2022-11-18 13:55:07 -08:00
2022-09-11 21:55:06 -07:00
2019-05-24 20:16:01 +02:00
2021-05-07 00:26:33 -07:00
2023-03-10 09:29:49 +01:00
2022-11-10 19:07:31 +01:00
2022-10-09 16:01:59 -07:00
2022-12-23 12:00:24 -08:00
2021-01-19 10:24:45 +01:00
2022-11-30 19:32:30 +01:00
2022-10-25 15:15:52 -07:00
2022-12-19 12:33:32 -06:00
2023-03-10 09:29:47 +01:00
2022-12-16 03:54:54 -08:00
2023-03-10 09:28:04 +01:00
2022-06-29 13:07:16 +02:00
2022-09-11 21:55:12 -07:00
2022-09-07 21:53:50 +02:00
2020-10-16 11:11:19 -07:00
2022-10-04 15:59:36 +02:00
2020-07-27 14:31:12 -04:00
2022-12-11 19:30:19 -08:00
2020-11-25 18:52:35 +01:00
2023-03-10 09:29:48 +01:00
2022-11-14 09:58:32 +01:00
2022-04-11 17:07:29 -07:00
2022-05-03 14:11:58 -07:00
2022-12-14 12:20:00 -08:00
2022-10-10 12:49:34 -07:00
2022-09-11 21:55:10 -07:00
2017-11-02 11:10:55 +01:00
2022-07-05 13:32:59 -07:00
2022-05-08 01:33:09 -07:00
2022-02-25 09:36:06 +01:00
2022-04-05 09:59:38 +02:00
2022-05-24 11:11:13 -07:00
2023-01-21 16:14:17 +01:00
2022-09-08 16:56:45 -07:00
2023-03-10 09:28:46 +01:00
2022-08-29 12:47:15 +01:00
2023-03-10 09:29:28 +01:00
2022-09-26 13:01:18 -04:00
2022-04-29 14:38:03 -07:00
2018-04-02 20:15:59 +02:00
2018-04-02 20:15:30 +02:00
2023-02-13 16:36:14 +01:00
2021-05-09 13:07:03 -07:00
2022-10-09 16:24:05 -07:00
2022-11-30 20:16:49 -04:00
2022-05-19 23:25:47 -04:00
2022-10-23 12:01:01 -07:00
2020-08-19 14:13:20 +02:00
2023-03-17 08:58:00 +01:00
2022-08-06 16:38:17 -07:00
2023-03-10 09:28:06 +01:00