Shuhao Fu
fbb9ccd574
smb: client: fix refcount leak in smb2_set_path_attr
...
[ Upstream commit b540de9e3b ]
Fix refcount leak in `smb2_set_path_attr` when path conversion fails.
Function `cifs_get_writable_path` returns `cfile` with its reference
counter `cfile->count` increased on success. Function `smb2_compound_op`
would decrease the reference counter for `cfile`, as stated in its
comment. By calling `smb2_rename_path`, the reference counter of `cfile`
would leak if `cifs_convert_path_to_utf16` fails in `smb2_set_path_attr`.
Fixes: 8de9e86c67 ("cifs: create a helper to find a writeable handle by path name")
Acked-by: Henrique Carvalho <henrique.carvalho@suse.com >
Signed-off-by: Shuhao Fu <sfual@cse.ust.hk >
Signed-off-by: Steve French <stfrench@microsoft.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2025-11-24 10:35:45 +01:00
..
2025-11-13 15:34:34 -05:00
2024-10-02 17:23:23 -04:00
2025-04-10 14:39:29 +02:00
2025-10-02 13:44:14 +02:00
2024-10-28 13:16:56 +01:00
2025-07-10 16:05:08 +02:00
2024-08-07 11:33:21 +02:00
2025-11-13 15:34:36 -05:00
2025-07-24 08:56:30 +02:00
2025-11-13 15:34:35 -05:00
2024-08-19 13:45:03 +02:00
2025-06-27 11:11:12 +01:00
2025-10-19 16:34:06 +02:00
2025-08-20 18:30:15 +02:00
2025-08-28 16:31:08 +02:00
2025-10-29 14:08:52 +01:00
2024-10-02 17:23:23 -04:00
2025-09-04 15:31:52 +02:00
2024-12-05 14:01:10 +01:00
2025-09-04 15:31:44 +02:00
2025-11-13 15:34:31 -05:00
2025-08-20 18:30:21 +02:00
2025-11-13 15:34:30 -05:00
2025-11-13 15:34:26 -05:00
2024-10-17 00:28:06 -07:00
2025-11-13 15:34:15 -05:00
2025-10-29 14:08:52 +01:00
2025-10-29 14:08:52 +01:00
2025-10-29 14:08:52 +01:00
2025-04-10 14:39:25 +02:00
2025-11-13 15:34:33 -05:00
2025-10-02 13:44:14 +02:00
2025-05-02 07:59:27 +02:00
2025-07-24 08:56:25 +02:00
2025-10-23 16:20:19 +02:00
2025-06-27 11:11:37 +01:00
2025-11-13 15:34:27 -05:00
2025-09-19 16:35:47 +02:00
2024-10-02 17:23:23 -04:00
2025-10-19 16:34:05 +02:00
2025-10-12 12:57:17 +02:00
2025-11-13 15:34:29 -05:00
2025-02-08 09:57:59 +01:00
2025-11-13 15:33:54 -05:00
2025-09-25 11:13:45 +02:00
2024-10-02 17:23:23 -04:00
2025-10-29 14:08:55 +01:00
2025-11-13 15:34:22 -05:00
2025-10-29 14:08:57 +01:00
2024-08-07 11:33:21 +02:00
2025-11-13 15:34:31 -05:00
2025-08-28 16:31:10 +02:00
2025-10-02 13:44:14 +02:00
2025-05-29 11:02:58 +02:00
2025-01-23 17:22:55 +01:00
2025-10-19 16:33:49 +02:00
2024-10-02 17:23:23 -04:00
2024-08-21 22:32:58 +02:00
2025-11-24 10:35:45 +01:00
2025-10-19 16:34:00 +02:00
2024-08-07 11:33:36 +02:00
2024-07-22 18:25:47 -07:00
2025-08-20 18:30:21 +02:00
2025-02-08 09:58:01 +01:00
2025-10-15 12:00:21 +02:00
2024-10-02 00:05:09 -04:00
2024-12-14 20:04:13 +01:00
2025-03-22 12:54:15 -07:00
2024-08-20 14:03:18 -04:00
2025-10-29 14:09:02 +01:00
2024-10-02 12:02:15 -07:00
2024-08-19 13:45:03 +02:00
2025-07-10 16:05:09 +02:00
2024-08-29 06:20:44 +12:00
2024-10-16 13:17:45 +02:00
2024-12-05 14:02:50 +01:00
2025-05-22 14:29:35 +02:00
2025-02-17 10:05:04 +01:00
2024-12-05 14:02:50 +01:00
2024-08-07 11:26:54 -07:00
2025-08-28 16:31:08 +02:00
2025-06-04 14:43:52 +02:00
2025-10-23 16:20:27 +02:00
2025-10-23 16:20:43 +02:00
2024-08-19 13:45:02 +02:00
2024-07-24 20:59:29 +02:00
2024-08-12 22:00:43 -04:00
2025-10-19 16:33:49 +02:00
2025-10-29 14:08:51 +01:00
2024-12-05 14:02:47 +01:00
2025-09-19 16:35:41 +02:00
2025-07-10 16:05:08 +02:00
2025-10-19 16:33:33 +02:00
2025-06-19 15:32:32 +02:00
2025-10-19 16:34:06 +02:00
2025-10-19 16:33:33 +02:00
2024-10-09 12:47:18 -07:00
2024-08-28 13:05:39 +02:00
2024-08-12 22:00:43 -04:00
2025-04-25 10:47:50 +02:00
2024-08-12 22:00:43 -04:00
2025-08-20 18:30:20 +02:00
2024-09-23 09:35:36 -07:00
2024-08-06 09:01:41 -07:00
2024-09-24 15:29:42 -07:00
2025-01-17 13:40:50 +01:00
2025-01-17 13:40:33 +01:00
2025-10-19 16:33:51 +02:00
2025-10-19 16:34:07 +02:00
2024-09-27 08:18:43 -07:00
2025-11-13 15:34:26 -05:00
2025-08-20 18:30:21 +02:00
2024-09-27 08:18:43 -07:00
2024-08-30 08:22:37 +02:00
2025-10-19 16:34:05 +02:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2025-02-08 09:56:53 +01:00
2024-09-23 09:35:36 -07:00
2025-08-28 16:31:04 +02:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2024-10-21 14:30:26 +02:00
2024-08-12 22:00:43 -04:00
2024-08-12 22:00:43 -04:00
2025-05-18 08:24:52 +02:00
2024-08-12 22:00:43 -04:00
2025-06-27 11:11:36 +01:00