Loading
crypto: hisilicon/debugfs - Fix the processing logic issue in the debugfs creation
maillist inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9GMIW CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev.git/commit/?id=3b7db97e60ac ---------------------------------------------------------------------- There is a scenario where the file directory is created but the file attribute is not set. In this case, if a user accesses the file, an error occurs. So adjust the processing logic in the debugfs creation to prevent the file from being accessed before the file attributes such as the index are set. Fixes: 4507a150 ("crypto: hisilicon/debugfs - Fix the processing logic issue in the debugfs creation") Signed-off-by:Chenghai Huang <huangchenghai2@huawei.com> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
JangShui Yang <yangjiangshui@h-partners.com> Signed-off-by:
XiaoFeng Ma <maxiaofeng14@h-partners.com>