Re: [PATCH] net:mac802154: add init of .sec and .sec_mtx for sdata in ieee802154_setup_sdata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sun, 4 Apr 2021 at 00:57, Du Cheng <ducheng2@xxxxxxxxx> wrote:
>
> add mutex_init(&sdata->sec_mtx) and mac802154_llsec_init(&sdata->sec) for
> NL802154_IFTYPE_MONITOR inside ieee802154_setup_sdata. As the unintiated
> mutex and sec data structure were used in ieee802154_get_llsec_params
> which would cause a kernel crash. BUG reported by syzkaller.

this patch will fix it in a way that the user is allowed to set llsec
parameters for monitors but they will never use them because it's not
supported. I resend my patch series which should forbid monitors to
set any llsec parameters for now and the user will be aware that this
feature isn't supported right now.

Thanks.

- Alex



[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux