Aurelien Aptel d339adc12a CIFS: fix use-after-free of the lease keys
The request buffers are freed right before copying the pointers.
Use the func args instead which are identical and still valid.

Simple reproducer (requires KASAN enabled) on a cifs mount:

echo foo > foo ; tail -f foo & rm foo

Cc: <stable@vger.kernel.org> # 4.20
Fixes: 179e44d49c2f ("smb3: add tracepoint for sending lease break responses to server")
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Paulo Alcantara <palcantara@suse.de>
2019-01-31 07:03:20 -06:00
..
2018-06-12 16:19:22 -07:00
2018-12-28 10:05:58 -06:00
2018-12-28 10:13:11 -06:00
2018-12-28 10:05:58 -06:00
2018-08-07 14:15:41 -05:00
2012-07-24 10:25:13 -05:00
2018-12-12 07:40:16 -07:00
2018-07-05 13:48:24 -05:00
2019-01-24 09:37:33 -06:00
2019-01-24 09:37:33 -06:00
2013-09-08 14:54:24 -05:00