Commit e703b7e
committed
futex: Move futex cleanup to __mmdrop()
Futex hash allocations are done in mm_init() and the cleanup happens in
__mmput(). That works most of the time, but there are mm instances which
are instantiated via mm_alloc() and freed via mmdrop(), which causes the
futex hash to be leaked.
Move the cleanup to __mmdrop().
Fixes: 56180dd ("futex: Use RCU-based per-CPU reference counting instead of rcuref_t")
Reported-by: André Draszik <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: André Draszik <[email protected]>
Link: https://lore.kernel.org/all/87ldo5ihu0.ffs@tglx
Closes: https://lore.kernel.org/all/[email protected]1 parent 98e8f2c commit e703b7e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
| 689 | + | |
689 | 690 | | |
690 | 691 | | |
691 | 692 | | |
| |||
1133 | 1134 | | |
1134 | 1135 | | |
1135 | 1136 | | |
1136 | | - | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | 1139 | | |
| |||
0 commit comments