On 1/12/23 6:17 PM, Tonghao Zhang wrote:
I am not very sure about the lockdep_off/on. Other than the false warning when using the very same htab map by both NMI and non-NMI context, I think the lockdep will still be usefulAgree, but there is no good way to fix this warning.
I applied patch 1 to the bpf tree with the 'Fixes: 20b6cc34ea74 ("bpf: Avoid hashtab deadlock with map_locked")' tag. Thanks.
The commit message has a link to the test. Not ideal but keeping the lockdep is more important.