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>
Thu, 8 Mar 2018 20:55:23 +0000 (21:55 +0100)
commit082c08efb4dc9aad0f3a5223c7fbbc853105104f
tree0fb53fe491fb9a800d322071d45e10dd642cb5cd
parentc3bce29f1e465c86cc37229f74202428d8178986
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>
(cherry picked from commit 0b57434151a8334a6e9b9b7542824ce4915421a2)
source3/librpc/idl/smbXsrv.idl
source3/smbd/globals.h
source3/smbd/smb2_server.c