]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't attempt to rename ERR_PTR() debugfs dirs
authorJohannes Berg <johannes.berg@intel.com>
Mon, 15 Apr 2019 09:39:33 +0000 (11:39 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 23 Apr 2019 11:47:05 +0000 (13:47 +0200)
commit5a4264bd009178d5b39c04e07d6ee00722c50df7
treecfab240254cb1dc2b7954abc73e48ce290e07718
parent818ae47a3062d1fe586e47689dcc0f05c55131fe
mac80211: don't attempt to rename ERR_PTR() debugfs dirs

We need to dereference the directory to get its parent to
be able to rename it, so it's clearly not safe to try to
do this with ERR_PTR() pointers. Skip in this case.

It seems that this is most likely what was causing the
report by syzbot, but I'm not entirely sure as it didn't
come with a reproducer this time.

Cc: stable@vger.kernel.org
Reported-by: syzbot+4ece1a28b8f4730547c9@syzkaller.appspotmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/debugfs_netdev.c