]> git.baikalelectronics.ru Git - kernel.git/commit
net/tls: Fix wrong record sn in async mode of device resync
authorTariq Toukan <tariqt@nvidia.com>
Sun, 15 Nov 2020 13:14:48 +0000 (15:14 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 22:41:20 +0000 (14:41 -0800)
commita60acec5ae1aa3cf42f792dc73562e41d2d847b6
tree53999ef38799ce1c226ba835fdcbc83c8a56f2fe
parente5bcd3fbb5f6aae0db28fcb8a48bde17ed2f762f
net/tls: Fix wrong record sn in async mode of device resync

In async_resync mode, we log the TCP seq of records until the async request
is completed.  Later, in case one of the logged seqs matches the resync
request, we return it, together with its record serial number.  Before this
fix, we mistakenly returned the serial number of the current record
instead.

Fixes: 1f27832e3e41 ("net/tls: Add asynchronous resync")
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Boris Pismenny <borisp@nvidia.com>
Link: https://lore.kernel.org/r/20201115131448.2702-1-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tls.h
net/tls/tls_device.c