]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix vif name tracing
authorEliad Peller <eliad@wizery.com>
Wed, 26 Feb 2014 12:46:35 +0000 (14:46 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 May 2014 12:35:40 +0000 (14:35 +0200)
commit7c512d1ee4f1ee7140fe21ae3e243f5d6fa16c47
tree9425cce15d627f31fe20a1729e05c44a5432d649
parente0bdc934fef94c697bf1d646e468ff70197c6ff9
mac80211: fix vif name tracing

If sdata doesn't have a valid dev (e.g. in case of monitor
vif), the vif_name field was initialized with (a length of)
some short string, but later was set to a different,
potentially larger one.

This resulted in out-of-bounds write, which usually
appeared as garbage in the trace log.

Simply trace sdata->name, as it should always have the
correct name for both cases.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/trace.h