aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilov@microsoft.com>2016-11-04 11:50:31 -0700
committerMister Oyster <oysterized@gmail.com>2017-07-04 11:50:59 +0200
commit0990b910b24d86af1aac3183f882f70574642f62 (patch)
treea36e8504ec6afc3866922d2483f9a83e710dac8a /include/uapi/linux
parent6994aeb682095bd0e8593541d8351bdf7ae987d3 (diff)
CIFS: Fix a possible memory corruption during reconnect
commit 53e0e11efe9289535b060a51d4cf37c25e0d0f2b upstream. We can not unlock/lock cifs_tcp_ses_lock while walking through ses and tcon lists because it can corrupt list iterator pointers and a tcon structure can be released if we don't hold an extra reference. Fix it by moving a reconnect process to a separate delayed work and acquiring a reference to every tcon that needs to be reconnected. Also do not send an echo request on newly established connections. Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions