net: ieee802154: forbid monitor for del llsec seclevel
authorAlexander Aring <aahringo@redhat.com>
Mon, 5 Apr 2021 00:30:53 +0000 (20:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 06:42:14 +0000 (08:42 +0200)
commitf872fb3feadd2212b4272b840decbf6c55df1c6a
tree6b1a18d4a0c8a2fa47774871fd8c50742da288c5
parenta933bcbb1f7f0535beb61a0ea71c6574322c39e6
net: ieee802154: forbid monitor for del llsec seclevel

commit 9dde130937e95b72adfae64ab21d6e7e707e2dac upstream.

This patch forbids to del llsec seclevel for monitor interfaces which we
don't support yet. Otherwise we will access llsec mib which isn't
initialized for monitors.

Reported-by: syzbot+fbf4fc11a819824e027b@syzkaller.appspotmail.com
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20210405003054.256017-15-aahringo@redhat.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ieee802154/nl802154.c