Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755341AbZCFPf2 (ORCPT ); Fri, 6 Mar 2009 10:35:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754208AbZCFPfR (ORCPT ); Fri, 6 Mar 2009 10:35:17 -0500 Received: from mx2.redhat.com ([66.187.237.31]:60549 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753435AbZCFPfQ (ORCPT ); Fri, 6 Mar 2009 10:35:16 -0500 Message-ID: <49B1428A.9050500@redhat.com> Date: Fri, 06 Mar 2009 10:34:34 -0500 From: Masami Hiramatsu User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Mathieu Desnoyers , Ingo Molnar CC: Andrew Morton , Nick Piggin , Steven Rostedt , Andi Kleen , Linux Kernel Mailing List , Thomas Gleixner , Peter Zijlstra , Frederic Weisbecker , Linus Torvalds , Arjan van de Ven , Rusty Russell , "H. Peter Anvin" Subject: [PATCH -tip 0/4] Text edit lock and atomic text_poke() Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1325 Lines: 41 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, > 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(-) -- Masami Hiramatsu Software Engineer Hitachi Computer Products (America) Inc. Software Solutions Division e-mail: mhiramat@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/