Well, it's not really a "use after free" - it's just that a stale pointer
still exists in a live data structure that is linked into the list. I
don't think there is a real bug there, simply because I don't think
anybody will be accessing that list (we should hopefully have all the
sufficient mutual exclusion in place).
So I just think it is bad form to potentially free something before we get
rid of all pointers to it. So to me it's a cleanliness issue: good code
shouldn't do things like that, and it would be much cleaner to remove the
AVC entry that has a pointer to the anon_vma _before_ we might be freeing
the anon_vma.
Maybe I'm just anal.
Linus
--