]> git.baikalelectronics.ru Git - kernel.git/commit
tls: rx: react to strparser initialization errors
authorJakub Kicinski <kuba@kernel.org>
Tue, 16 Aug 2022 00:23:58 +0000 (17:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Aug 2022 09:24:00 +0000 (10:24 +0100)
commiteb5119e1089cfea8f799078708ef77ece66355d9
tree98212abda746a9872c28fea516c0c8c3b85bccb9
parent0b11137edc2b976f6a5766b8760e228805fe5a6a
tls: rx: react to strparser initialization errors

Even though the normal strparser's init function has a return
value we got away with ignoring errors until now, as it only
validates the parameters and we were passing correct parameters.

tls_strp can fail to init on memory allocation errors, which
syzbot duly induced and reported.

Reported-by: syzbot+abd45eb849b05194b1b6@syzkaller.appspotmail.com
Fixes: ae04dc969181 ("tls: rx: do not use the standard strparser")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c