Namjae Jeon
9812857208
cifs: fix a memleak with modefromsid
...
kmemleak reported a memory leak allocated in query_info() when cifs is
working with modefromsid.
backtrace:
[<00000000aeef6a1e>] slab_post_alloc_hook+0x58/0x510
[<00000000b2f7a440>] __kmalloc+0x1a0/0x390
[<000000006d470ebc>] query_info+0x5b5/0x700 [cifs]
[<00000000bad76ce0>] SMB2_query_acl+0x2b/0x30 [cifs]
[<000000001fa09606>] get_smb2_acl_by_path+0x2f3/0x720 [cifs]
[<000000001b6ebab7>] get_smb2_acl+0x75/0x90 [cifs]
[<00000000abf43904>] cifs_acl_to_fattr+0x13b/0x1d0 [cifs]
[<00000000a5372ec3>] cifs_get_inode_info+0x4cd/0x9a0 [cifs]
[<00000000388e0a04>] cifs_revalidate_dentry_attr+0x1cd/0x510 [cifs]
[<0000000046b6b352>] cifs_getattr+0x8a/0x260 [cifs]
[<000000007692c95e>] vfs_getattr_nosec+0xa1/0xc0
[<00000000cbc7d742>] vfs_getattr+0x36/0x40
[<00000000de8acf67>] vfs_statx_fd+0x4a/0x80
[<00000000a58c6adb>] __do_sys_newfstat+0x31/0x70
[<00000000300b3b4e>] __x64_sys_newfstat+0x16/0x20
[<000000006d8e9c48>] do_syscall_64+0x37/0x80
This patch add missing kfree for pntsd when mounting modefromsid option.
Cc: Stable <stable@vger.kernel.org> # v5.4+
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
2020-11-15 23:05:33 -06:00
..
2020-10-22 12:17:52 -05:00
2020-06-06 11:16:25 -05:00
2020-07-01 19:38:19 -05:00
2020-06-01 00:10:18 -05:00
2020-02-24 14:20:38 -06:00
2019-09-16 11:43:38 -05:00
2020-02-06 09:14:28 -06:00
2019-11-25 01:16:30 -06:00
2020-10-11 23:57:18 -05:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2020-11-15 23:05:33 -06:00
2020-08-02 18:00:26 -05:00
2020-08-07 11:33:22 -07:00
2020-10-15 23:58:15 -05:00
2020-10-23 23:41:49 -05:00
2020-10-23 15:38:10 -05:00
2020-03-22 22:49:10 -05:00
2020-10-20 11:51:24 -05:00
2020-06-01 00:10:18 -05:00
2020-08-23 17:36:59 -05:00
2020-10-22 12:17:31 -05:00
2020-08-07 11:39:33 -07:00
2020-08-02 18:00:26 -05:00
2020-06-12 08:54:12 -05:00
2019-06-27 23:02:12 +01:00
2019-07-31 13:31:05 -06:00
2020-07-07 23:51:16 -05:00
2020-10-22 12:17:31 -05:00
2020-10-22 12:17:31 -05:00
2020-06-06 11:16:25 -05:00
2020-06-06 11:16:25 -05:00
2020-10-23 15:38:10 -05:00
2020-07-09 10:06:52 -05:00
2020-04-07 13:39:00 -05:00
2020-06-12 08:54:12 -05:00
2020-10-22 12:16:24 -05:00
2020-08-07 11:39:33 -07:00
2020-08-02 18:00:25 -05:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2016-06-23 23:45:07 -05:00
2020-10-22 12:17:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-02 18:00:25 -05:00
2020-03-22 22:49:09 -05:00
2020-10-19 15:11:11 -05:00
2020-10-23 15:38:10 -05:00
2020-10-15 23:58:14 -05:00
2020-08-02 18:00:25 -05:00
2020-10-23 15:38:10 -05:00
2020-10-20 11:52:44 -05:00
2020-10-23 15:38:10 -05:00
2020-10-23 15:38:10 -05:00
2019-05-07 23:24:54 -05:00
2020-10-19 15:11:11 -05:00
2020-06-01 00:10:18 -05:00
2020-04-07 12:41:16 -05:00
2019-08-22 14:57:34 +10:00
2020-10-23 15:38:10 -05:00
2019-01-24 09:37:33 -06:00
2020-10-20 11:50:42 -05:00
2020-10-20 11:50:42 -05:00
2020-07-05 14:23:38 -06:00
2020-01-26 19:24:17 -06:00