smbd: Fix channel sequence number checks for long-running requests
authorVolker Lendecke <vl@samba.org>
Thu, 11 Jan 2018 14:34:45 +0000 (15:34 +0100)
committerStefan Metzmacher <metze@samba.org>
Sun, 14 Jan 2018 09:26:05 +0000 (10:26 +0100)
commit0b57434151a8334a6e9b9b7542824ce4915421a2
tree8a148e7184186689efcfa1dbc359d5e779ab7231
parent03f65a7cdc91091a171269cfebc9916f2f678388
smbd: Fix channel sequence number checks for long-running requests

When the client's supplied csn overflows and hits a pending, long-running
request's csn, we panic. Fix this by counting the overflows in
smbXsrv_open_global0->channel_generation

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13215

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/librpc/idl/smbXsrv.idl
source3/smbd/globals.h
source3/smbd/smb2_server.c