Commit 221fcbf
module: release codetag section when module load fails
When module load fails after memory for codetag section is ready, codetag
section memory will not be properly released. This causes memory leak,
and if next module load happens to get the same module address, codetag
may pick the uninitialized section when manipulating tags during module
unload, and leads to "unable to handle page fault" BUG.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 0db6f8d ("alloc_tag: load module tags into separate contiguous memory")
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: David Wang <[email protected]>
Acked-by: Suren Baghdasaryan <[email protected]>
Cc: Petr Pavlu <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>1 parent 07c9214 commit 221fcbf
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2829 | 2829 | | |
2830 | 2830 | | |
2831 | 2831 | | |
| 2832 | + | |
2832 | 2833 | | |
2833 | 2834 | | |
2834 | 2835 | | |
| |||
0 commit comments