summaryrefslogtreecommitdiff
path: root/scripts/rustdoc_test_builder.rs
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2024-07-08 14:56:15 +0300
committerPaolo Abeni <pabeni@redhat.com>2024-07-11 12:00:08 +0300
commitf2aeb7306a898e1cbd03963d376f4b6656ca2b55 (patch)
tree8d4f52f32b4bb74e867816069672048e5d6b1f9c /scripts/rustdoc_test_builder.rs
parent8c6790b5c25dfac11b589cc37346bcf9e23ad468 (diff)
downloadlinux-f2aeb7306a898e1cbd03963d376f4b6656ca2b55.tar.xz
ppp: reject claimed-as-LCP but actually malformed packets
Since 'ppp_async_encode()' assumes valid LCP packets (with code from 1 to 7 inclusive), add 'ppp_check_packet()' to ensure that LCP packet has an actual body beyond PPP_LCP header bytes, and reject claimed-as-LCP but actually malformed data otherwise. Reported-by: syzbot+ec0723ba9605678b14bf@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=ec0723ba9605678b14bf Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions