]> git.baikalelectronics.ru Git - kernel.git/commit
tls: rx: fix the false positive warning
authorJakub Kicinski <kuba@kernel.org>
Wed, 27 Jul 2022 03:15:24 +0000 (20:15 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jul 2022 04:50:00 +0000 (21:50 -0700)
commit04b7de8a519afca7a9d6db057ab804808e6aa2c2
treea1bfe1d82845b51a78ff8c12ef85df6965f13986
parent6df1ad37cf669223afcbaa35a1fb45b4897a8521
tls: rx: fix the false positive warning

I went too far in the accessor conversion, we can't use tls_strp_msg()
after decryption because the message may not be ready. What we care
about on this path is that the output skb is detached, i.e. we didn't
somehow just turn around and used the input skb with its TCP data
still attached. So look at the anchor directly.

Fixes: 37c2526e223d ("tls: rx: do not use the standard strparser")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls_sw.c