diff options
author | Michael Ellerman <[email protected]> | 2019-11-27 18:41:26 +1100 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2019-11-27 18:41:26 +1100 |
commit | 6f07048c00fd100ed8cab66c225c157e0b6c0a50 (patch) | |
tree | 051d6c22eea45269d5f65e1c00fd14bd60b79f7c /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 8dcd71b45df34d9b903450fab147ee8c1e6c16b5 (diff) |
powerpc: Define arch_is_kernel_initmem_freed() for lockdep
Under certain circumstances, we hit a warning in lockdep_register_key:
if (WARN_ON_ONCE(static_obj(key)))
return;
This occurs when the key falls into initmem that has since been freed
and can now be reused. This has been observed on boot, and under
memory pressure.
Define arch_is_kernel_initmem_freed(), which allows lockdep to
correctly identify this memory as dynamic.
This fixes a bug picked up by the powerpc64 syzkaller instance where
we hit the WARN via alloc_netdev_mqs.
Reported-by: Qian Cai <[email protected]>
Reported-by: ppc syzbot c/o Andrew Donnellan <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Signed-off-by: Daniel Axtens <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions