Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751154AbVI2Anw (ORCPT ); Wed, 28 Sep 2005 20:43:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751278AbVI2Anw (ORCPT ); Wed, 28 Sep 2005 20:43:52 -0400 Received: from fmr20.intel.com ([134.134.136.19]:48798 "EHLO orsfmr005.jf.intel.com") by vger.kernel.org with ESMTP id S1751154AbVI2Anv (ORCPT ); Wed, 28 Sep 2005 20:43:51 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C5C48E.D8F74115" Subject: [PATCH] utilization of kprobe_mutex is incorrect on x86_64 Date: Thu, 29 Sep 2005 08:43:44 +0800 Message-ID: <8126E4F969BA254AB43EA03C59F44E84037185A6@pdsmsx404> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: [PATCH] utilization of kprobe_mutex is incorrect on x86_64 Thread-Index: AcXEjthj7P595BPcR56TMF+39Sx7ZA== From: "Zhang, Yanmin" To: , Cc: , "Keshavamurthy, Anil S" X-OriginalArrivalTime: 29 Sep 2005 00:43:45.0779 (UTC) FILETIME=[D92AD430:01C5C48E] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2396 Lines: 49 This is a multi-part message in MIME format. ------_=_NextPart_001_01C5C48E.D8F74115 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <> I found it when reading the source codes. Basically, the bug could break kprobe_insn_pages under multi-thread environment. PPC arch also has the problem. Here is the patch against x86_64. Signed-off-by: Zhang Yanmin ------_=_NextPart_001_01C5C48E.D8F74115 Content-Type: application/octet-stream; name="kprobe_incorrect_kprobe_mutex_2.6.14-rc2_x86_64.patch" Content-Transfer-Encoding: base64 Content-Description: kprobe_incorrect_kprobe_mutex_2.6.14-rc2_x86_64.patch Content-Disposition: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9iZV9tdXRleCk7Ci0JZnJlZV9pbnNuX3Nsb3Qo cC0+YWluc24uaW5zbik7CiAJZG93bigma3Byb2JlX211dGV4KTsKKwlmcmVlX2luc25fc2xvdChw LT5haW5zbi5pbnNuKTsKKwl1cCgma3Byb2JlX211dGV4KTsKIH0KIAogc3RhdGljIGlubGluZSB2 b2lkIHNhdmVfcHJldmlvdXNfa3Byb2JlKHZvaWQpCg== ------_=_NextPart_001_01C5C48E.D8F74115-- - 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/