diff options
| author | Florian Westphal <[email protected]> | 2017-08-10 16:53:00 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-08-10 09:50:22 -0700 |
| commit | d38a65125f93b2fbd17cd37ccc5ec0f0b799cc55 (patch) | |
| tree | a9279b0bb53877dbf1ec2527d79a54311b58ccf8 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 8515ae38435895ba2862840d3e82140fc0a77554 (diff) | |
rtnetlink: init handler refcounts to 1
If using CONFIG_REFCOUNT_FULL=y we get following splat:
refcount_t: increment on 0; use-after-free.
WARNING: CPU: 0 PID: 304 at lib/refcount.c:152 refcount_inc+0x47/0x50
Call Trace:
rtnetlink_rcv_msg+0x191/0x260
...
This warning is harmless (0 is "no callback running", not "memory
was freed").
Use '1' as the new 'no handler is running' base instead of 0 to avoid
this.
Fixes: 019a316992ee ("rtnetlink: add reference counting to prevent module unload while dump is in progress")
Reported-by: Sabrina Dubroca <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions