Text edit lock and atomic text_poke()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 20 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | Text Edit Lock - Architecture Independent Code (v2)include/ mm/ | +15 | 1 reply | |
| 2/4 | Text Edit Lock - kprobes architecture independent support (v3)kernel/ | +13 | 1 reply | |
| 3/4 | Text Edit Lock - Smp alternatives supportarch/ | +5 | 3 replies | |
| 4/4 | Atomic text_poke() with fixmaparch/ arch/ | +17 | 3 replies | |
| 4/4 | Atomic text_poke() with fixmap take2arch/ arch/ | +17 | 10 replies |
Reviews trailers per patch
3 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Ananth N Mavinakayanahalli | Masami Hiramatsu | Mathieu Desnoyers |
|---|---|---|---|
| 1/4 | |||
| 2/4 | A-b A-b | A-b A-b | |
| 3/4 | |||
| 4/4 | A-b A-b A-b A-b | ||
| 4/4 | A-b A-b A-b A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH -tip 0/4] Text edit lock and atomic text_poke()
Hi,
Here is a series of patches which introduce text_mutex for protecting editing kernel text from each other subsystems, and make text_poke() atomic by using fixmap.
BTW,
Quoted 2 lines
Paravirt and alternatives are always done when SMP is inactive, so there is no need to use locks.
Mathieu, I'm not sure that means. alternatives will be called from module init code and other place where the system has already been running multi- -threads(and they use smp_alt mutex). So, is it possible that those functions will sleep or yield to another process?
Anyway, I added a new patch which locks text_mutex in alternative_smp_*.
Thank you,
arch/x86/include/asm/fixmap.h | 2 ++ arch/x86/kernel/alternative.c | 29 ++++++++++++++++++++--------- include/linux/memory.h | 6 ++++++ kernel/kprobes.c | 15 +++++++++++++-- mm/memory.c | 9 +++++++++ 5 files changed, 50 insertions(+), 11 deletions(-)
Signature · 7 lines
Masami Hiramatsu Software Engineer Hitachi Computer Products (America) Inc. Software Solutions Division e-mail: [email protected]