Zhang Xiaoxu
ca08d0eac0
cifs: Fix memory leak on the deferred close
xfstests on smb21 report kmemleak as below:
unreferenced object 0xffff8881767d6200 (size 64):
comm "xfs_io", pid 1284, jiffies 4294777434 (age 20.789s)
hex dump (first 32 bytes):
80 5a d0 11 81 88 ff ff 78 8a aa 63 81 88 ff ff .Z......x..c....
00 71 99 76 81 88 ff ff 00 00 00 00 00 00 00 00 .q.v............
backtrace:
[<00000000ad04e6ea>] cifs_close+0x92/0x2c0
[<0000000028b93c82>] __fput+0xff/0x3f0
[<00000000d8116851>] task_work_run+0x85/0xc0
[<0000000027e14f9e>] do_exit+0x5e5/0x1240
[<00000000fb492b95>] do_group_exit+0x58/0xe0
[<00000000129a32d9>] __x64_sys_exit_group+0x28/0x30
[<00000000e3f7d8e9>] do_syscall_64+0x35/0x80
[<00000000102e8a0b>] entry_SYSCALL_64_after_hwframe+0x46/0xb0
When cancel the deferred close work, we should also cleanup the struct
cifs_deferred_close.
Fixes: 9e992755be ("cifs: Call close synchronously during unlink/rename/lease break.")
Fixes: e3fc065682 ("cifs: Deferred close performance improvements")
Cc: stable@vger.kernel.org
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
2022-08-19 10:59:53 -05:00
..
2022-07-02 18:52:21 +09:00
2022-05-09 16:21:44 -04:00
2022-08-01 19:53:31 +02:00
2022-08-13 17:20:51 -07:00
2022-07-17 17:31:42 -07:00
2022-08-02 12:34:03 -04:00
2022-05-09 16:21:44 -04:00
2022-08-05 16:32:45 -07:00
2022-07-05 16:12:21 +01:00
2022-08-11 12:41:07 -07:00
2022-08-19 10:59:53 -05:00
2022-08-02 12:34:03 -04:00
2022-02-22 18:30:28 +01:00
2022-08-02 12:34:02 -04:00
2022-08-11 12:41:07 -07:00
2022-02-25 11:56:13 +01:00
2022-01-24 14:17:02 +01:00
2022-08-01 09:31:46 -05:00
2022-05-09 16:21:45 -04:00
2022-06-24 20:40:19 +02:00
2022-05-09 16:21:45 -04:00
2022-08-05 16:32:45 -07:00
2022-08-01 10:14:07 +09:00
2022-04-28 16:31:10 +02:00
2022-08-05 16:32:45 -07:00
2022-08-05 16:32:45 -07:00
2022-08-08 11:18:31 -07:00
2022-08-07 10:03:24 -07:00
2022-08-02 12:34:03 -04:00
2022-08-09 14:13:59 +01:00
2022-08-08 20:04:35 -07:00
2022-08-11 13:11:49 -07:00
2022-06-29 08:51:06 -04:00
2022-08-03 10:35:43 -07:00
2022-08-02 12:34:02 -04:00
2022-05-09 16:21:45 -04:00
2022-08-08 20:04:35 -07:00
2022-08-11 13:11:49 -07:00
2022-07-14 12:14:32 -06:00
2022-08-05 16:32:45 -07:00
2022-06-03 14:42:24 -07:00
2022-08-03 10:35:43 -07:00
2022-07-28 10:57:25 +02:00
2022-08-08 20:15:13 -07:00
2022-08-04 10:28:48 -04:00
2022-05-09 16:21:44 -04:00
2022-07-14 10:10:12 +02:00
2022-08-10 14:04:32 -07:00
2022-08-09 14:56:49 -07:00
2022-08-03 10:35:43 -07:00
2022-07-26 13:38:47 +02:00
2022-08-03 10:35:43 -07:00
2022-08-03 10:35:43 -07:00
2022-08-09 09:52:28 -07:00
2022-05-09 16:21:44 -04:00
2022-03-22 15:57:03 -07:00
2022-06-29 08:51:07 -04:00
2022-08-08 11:03:11 -07:00
2022-08-14 15:16:18 -04:00
2022-08-03 14:38:02 -07:00
2022-05-09 16:21:44 -04:00
2022-05-09 16:21:44 -04:00
2022-08-05 16:32:45 -07:00
2022-08-03 10:35:43 -07:00
2022-05-09 16:21:46 -04:00
2022-05-23 20:24:12 -05:00
2022-08-07 10:03:24 -07:00
2022-04-05 15:39:19 +02:00
2022-05-27 11:22:03 -07:00
2022-06-17 19:01:28 -04:00
2022-08-05 16:32:45 -07:00
2022-07-14 12:14:32 -06:00
2022-08-03 10:35:43 -07:00
2022-02-14 10:37:32 +09:00
2022-05-09 16:21:46 -04:00
2022-07-15 23:42:30 -07:00
2022-08-13 13:50:11 -07:00
2022-08-11 13:11:49 -07:00
2022-08-03 13:50:22 -07:00
2022-08-08 10:39:29 -07:00
2022-03-08 12:55:29 -06:00
2022-03-03 20:38:56 -08:00
2022-04-15 14:49:56 -07:00
2022-04-22 10:57:18 -07:00
2022-02-09 09:50:02 -08:00
2022-08-03 10:35:43 -07:00
2022-03-03 20:38:56 -08:00
2022-07-16 09:19:15 -04:00
2022-08-05 16:32:45 -07:00
2022-08-11 12:41:07 -07:00
2022-08-08 22:37:22 -04:00
2022-07-17 17:31:40 -07:00
2022-08-09 20:02:13 +02:00
2022-06-10 16:10:23 -04:00
2022-08-03 13:50:22 -07:00
2022-06-05 15:03:03 -04:00
2022-01-18 09:23:19 +02:00
2022-06-06 09:54:30 +02:00
2022-05-19 23:25:10 -04:00
2022-08-11 12:41:07 -07:00
2022-06-04 19:00:05 -07:00
2022-04-01 19:35:56 -07:00
2022-08-08 18:06:42 -07:00
2022-05-30 10:56:18 -07:00
2022-06-16 19:58:21 -07:00
2022-05-09 16:21:44 -04:00
2022-07-18 10:01:47 -04:00
2022-07-24 18:39:10 -06:00
2022-08-05 16:32:45 -07:00
2022-07-05 16:18:21 -04:00
2022-08-03 10:35:43 -07:00
2022-08-09 09:52:28 -07:00
2022-07-05 16:18:21 -04:00
2022-08-03 13:50:22 -07:00
2022-05-27 11:22:03 -07:00
2022-07-15 22:09:57 +02:00
2022-06-28 13:58:05 -04:00
2022-08-08 22:37:15 -04:00
2022-08-05 16:32:45 -07:00
2022-01-11 09:03:05 -08:00
2022-05-22 21:03:01 +01:00
2022-01-17 05:49:30 +02:00
2022-08-08 22:37:23 -04:00
2022-05-31 14:10:54 -07:00
2022-08-08 11:10:02 -07:00
2022-04-26 13:36:25 -07:00
2022-01-22 08:33:36 +02:00
2022-08-05 16:32:45 -07:00
2022-07-15 22:08:59 +02:00