Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2577383imn; Tue, 2 Aug 2022 08:11:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR646b13wUDqZsCaRL5VCtUCBoHrJARvinEwei/9CSv9AjWEWKf+pE6eAcjITFbnzXw7DfAw X-Received: by 2002:a63:58e:0:b0:41c:5503:b44 with SMTP id 136-20020a63058e000000b0041c55030b44mr4461550pgf.589.1659453091949; Tue, 02 Aug 2022 08:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659453091; cv=none; d=google.com; s=arc-20160816; b=tC0X16JzxWgRjRtq26MqmzxVhe09W/kvsDQC818nKdXg1pxS1oS8wdx4giCIVk+LUb cLCexjJhJZI5GMhswEpZIC0BzomhLbyDdRko/f27EO7Jj5e24nGBjyhGyoECkZ3ODqAg UzTQg/sXB7ZchPTDnTMCgQfEeO8ypsIknPKv7Of8T7y3a1XTvd4YFzVZpTT2aVhnr7wR 3LaZmIhPonE/mqy80dR0KEPE7Rhblg/8+V3VqRBvrNLlYcbPTxLn/hsgUj3ZhuheSrkl 0hhw3k1GIJX9C5CLouPp6BkAClugJxgzoP6hAAtDVS82ls0+1EB8qFUYJT1D5O7dRwL3 Bjjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Yo+32lncjTRasijf94m2xb+HN0zceiDEsGlssXIa90E=; b=ms0a/wePp90AiNRHHsev3BlrRueIthYizVf2sqYP4WPBsuCzDPxZG7Npj4hmcw3X1j 6o/WCHyiVPr5qHKiqixAPSlFbGbkqgJQYlyplD3dQf/6SgktHzTb4KuSg85wlPy6z6bF fRoYedW9yxYf+Kv6Zg77C3pPIhi8qwmY8JTekiLim1x5KQsdduwN4/5LFHmxYmP7G9vw 3KKABzSa9I3ryCFnrzqrbdAsIViYIo8ItSKCnfe7fi5Ipys0/OI0dlIEoFhB5eC4zQPv FpRhfUFI/e4y0wHnoU1foKTOqX8K+LqFXkc1kXiqE0XQvZx7pITdf8q8gpWne2f3z0Dy JlZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a22-20020a170902b59600b0016d9e341fb3si14726983pls.285.2022.08.02.08.11.17; Tue, 02 Aug 2022 08:11:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237252AbiHBOwi convert rfc822-to-8bit (ORCPT + 99 others); Tue, 2 Aug 2022 10:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231368AbiHBOwg (ORCPT ); Tue, 2 Aug 2022 10:52:36 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DBF31EED3; Tue, 2 Aug 2022 07:52:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 26C3CB81F28; Tue, 2 Aug 2022 14:52:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A7B7C433D6; Tue, 2 Aug 2022 14:52:31 +0000 (UTC) Date: Tue, 2 Aug 2022 10:52:30 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Peter Zijlstra , Ingo Molnar , bpf , Kernel Team , linux-kernel@vger.kernel.org, Andy Lutomirski , Daniel =?UTF-8?B?TcO8bGxlcg==?= Subject: Re: [PATCH] x86/kprobes: Fix to update kcb status flag after singlestepping Message-ID: <20220802105230.43bb6079@gandalf.local.home> In-Reply-To: <165942025658.342061.12452378391879093249.stgit@devnote2> References: <165942025658.342061.12452378391879093249.stgit@devnote2> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Aug 2022 15:04:16 +0900 "Masami Hiramatsu (Google)" wrote: > From: Masami Hiramatsu (Google) > > Fix kprobes to update kcb (kprobes control block) status flag to > KPROBE_HIT_SSDONE even if the kp->post_handler is not set. > This may cause a kernel panic if another int3 user runs right > after kprobes because kprobe_int3_handler() misunderstands the > int3 is kprobe's single stepping int3. > > Fixes: 6256e668b7af ("x86/kprobes: Use int3 instead of debug trap for single-step") > Reported-by: Daniel Müller > Tested-by: Daniel Müller > Signed-off-by: Masami Hiramatsu (Google) > Cc: stable@vger.kernel.org > Link: https://lore.kernel.org/all/20220727210136.jjgc3lpqeq42yr3m@muellerd-fedora-PC2BDTX9 > --- Acked-by: Steven Rostedt (Google) I guess this will go through the tip tree? -- Steve