diff options
author | Johannes Berg <johannes.berg@intel.com> | 2018-04-03 14:33:49 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-04-19 15:46:34 +0200 |
commit | a7cfebcb7594a24609268f91299ab85ba064bf82 (patch) | |
tree | 0d478a1526a6954b58dc0e9204eaa40591eaffdb /net/wireless/sysfs.c | |
parent | mac80211: Fix condition validating WMM IE (diff) | |
download | linux-a7cfebcb7594a24609268f91299ab85ba064bf82.tar.xz linux-a7cfebcb7594a24609268f91299ab85ba064bf82.zip |
cfg80211: limit wiphy names to 128 bytes
There's currently no limit on wiphy names, other than netlink
message size and memory limitations, but that causes issues when,
for example, the wiphy name is used in a uevent, e.g. in rfkill
where we use the same name for the rfkill instance, and then the
buffer there is "only" 2k for the environment variables.
This was reported by syzkaller, which used a 4k name.
Limit the name to something reasonable, I randomly picked 128.
Reported-by: syzbot+230d9e642a85d3fec29c@syzkaller.appspotmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/sysfs.c')
0 files changed, 0 insertions, 0 deletions