From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B4B0C433EF for ; Wed, 23 Feb 2022 14:34:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241616AbiBWOe2 (ORCPT ); Wed, 23 Feb 2022 09:34:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229964AbiBWOeZ (ORCPT ); Wed, 23 Feb 2022 09:34:25 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F6FEB23A7 for ; Wed, 23 Feb 2022 06:33:57 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id CE74E616AB for ; Wed, 23 Feb 2022 14:33:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CFCDC340E7; Wed, 23 Feb 2022 14:33:54 +0000 (UTC) Date: Wed, 23 Feb 2022 09:33:52 -0500 From: Steven Rostedt To: Peter Zijlstra Cc: Josh Poimboeuf , x86@kernel.org, joao@overdrivepizza.com, hjl.tools@gmail.com, andrew.cooper3@citrix.com, linux-kernel@vger.kernel.org, ndesaulniers@google.com, keescook@chromium.org, samitolvanen@google.com, mark.rutland@arm.com, alyssa.milburn@intel.com, Miroslav Benes , Masami Hiramatsu , Alexei Starovoitov Subject: Re: [PATCH 04/29] x86/livepatch: Validate __fentry__ location Message-ID: <20220223093352.0f32e9d1@gandalf.local.home> In-Reply-To: <20220223092327.0c73872d@gandalf.local.home> References: <20220218164902.008644515@infradead.org> <20220218171408.808810436@infradead.org> <20220218210831.u2ugtfr7gxllk4cs@treble> <20220223074139.161acfd0@rorschach.local.home> <20220223092327.0c73872d@gandalf.local.home> 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=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Feb 2022 09:23:27 -0500 Steven Rostedt wrote: > return ip <= (rec->ip + MCOUNT_INSN_SIZE) ? rec->ip : 0; That should be < and not <=, as I added the + MCOUNT_INSN_SIZE as an after thought, and that addition changes the compare. -- Steve