cifs large stack allocations
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): git-mailbomb-linux-master-a3a53b7603798fd875e2afbba7e2b9ba6b19c7c7@kernel.org
Hi Paulo,
Quoted 25 lines · Linux Kernel Mailing List
Commit: a3a53b7603798fd875e2afbba7e2b9ba6b19c7c7 Parent: 23324407143dd923660378fd9b40b9a711972269 Refname: refs/heads/master Web: https://git.kernel.org/torvalds/c/a3a53b7603798fd875e2afbba7e2b9ba6b19c7c7 Author: Paulo Alcantara <[email protected]> AuthorDate: Wed Nov 14 17:20:31 2018 -0200 Committer: Steve French <[email protected]> CommitDate: Fri Dec 28 10:13:11 2018 -0600cifs: Add support for failover in
smb2_reconnect()After a successful failover in
cifs_reconnect(), thesmb2_reconnect()function will make sure to reconnect every tcon to new target server.For SMB2+.
Signed-off-by Paulo Alcantara <[email protected]>Signed-off-by Aurelien Aptel <[email protected]>Signed-off-by Steve French <[email protected]>fs/cifs/smb2pdu.c +0
-0@@ -152,6 +155,77 @@ out:return ;
fs/cifs/smb2pdu.c out: · line 165
Quoted 10 lines
fs/cifs/smb2pdu.c +8
-0} +#ifdef CONFIG_CIFS_DFS_UPCALL +static int __smb2_reconnect (const struct nls_table *nlsc, +struct cifs_tcon *tcon) +{ +int rc; +struct dfs_cache_tgt_list tl; +struct dfs_cache_tgt_iterator *it =NULL ; +char tree[MAX_TREE_SIZE +1 ];
warning: the frame size of 1316 bytes is larger than 1024 bytes [-Wframe-larger-than=]
MAX_TREE_SIZE = 1284
Quoted 26 lines · Linux Kernel Mailing List
Commit: 08744015492fec5a30ab8e2779601ae2b1a5e431 Parent: a3a53b7603798fd875e2afbba7e2b9ba6b19c7c7 Refname: refs/heads/master Web: https://git.kernel.org/torvalds/c/08744015492fec5a30ab8e2779601ae2b1a5e431 Author: Paulo Alcantara <[email protected]> AuthorDate: Wed Nov 14 17:24:29 2018 -0200 Committer: Steve French <[email protected]> CommitDate: Fri Dec 28 10:13:11 2018 -0600cifs: Add support for failover in
cifs_reconnect_tcon()After a successful failover, the
cifs_reconnect_tcon()function will make sure to reconnect every tcon to new target server.Same as previous commit but for SMB1 codepath.
Signed-off-by Paulo Alcantara <[email protected]>Reviewed-by Aurelien Aptel <[email protected]>Signed-off-by Steve French <[email protected]>fs/cifs/cifssmb.c +0
-0@@ -118,6 +121,77 @@ cifs_mark_open_files_invalid(struct cifs_tcon *tcon)*/
fs/cifs/cifssmb.c cifs_mark_open_files_invalid(struct cifs_tcon *tcon) · line 131
Quoted 10 lines
fs/cifs/cifssmb.c +8
-0} +#ifdef CONFIG_CIFS_DFS_UPCALL +static int __cifs_reconnect_tcon (const struct nls_table *nlsc, +struct cifs_tcon *tcon) +{ +int rc; +struct dfs_cache_tgt_list tl; +struct dfs_cache_tgt_iterator *it =NULL ; +char tree[MAX_TREE_SIZE +1 ];
warning: the frame size of 1316 bytes is larger than 1024 bytes [-Wframe-larger-than=]
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds