From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C76C51C6FE1 for ; Tue, 11 Nov 2025 00:59:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.185 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762822767; cv=none; b=GOYIWAPUs1JWfOwdVFRtjsvXxi50GjCzoR1cLv6CTP3KImcubisuwY4Uv1kwyzHpbDSn9CZFOQ6LRbkxU1BrF1n28tEbBHvz2EftUr0uurFgfGrrL2uPn6ARvSI+q7ABjp9I9Gpu79gs+tpZOJhkJTs56eCJ24itlrAeZSar+xE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762822767; c=relaxed/simple; bh=lH4MtGKoPnrI1sXdA0bQ14rxZPD3TPNVJddPSUsj7jA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HqBGLlGo/4IX1++KmNgnIHR8nSfB/HY4Dcig8VsYRZoJgu7M/5scG+fmihV4M0jgd4Uu3hDFvfcCPdTO9iJCjEkMhke81gqIHjzGOYxI4H83nNfaLcjS7KtmGVfldzF5U+7h3lelZfxFYWE/C6i+4QbvVtZxE9M7pgpd6OUfq6o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=CcYNdGr/; arc=none smtp.client-ip=91.218.175.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="CcYNdGr/" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1762822763; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p0LiTT3vfQ1evUTRc258iJ2UQXRFMLtdgeURzgP5nP4=; b=CcYNdGr/ZQ2ALgZjdu15qzCjLR8NjvhzT96eXM6jCEx200Zavj3FCjETGxQd76L3wKXX8L tqqKp3sP1gp09ZzxqYmgQmNILXrgtuvcPnqgZEEfFDOXMpmJYzMSvKWfcf6w27r9h74GcG EdwsheoLi61WtK9JOsfXW+6Tvg9dXq0= From: Menglong Dong To: Menglong Dong , Song Liu Cc: ast@kernel.org, song@kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com, andrii@kernel.org, martin.lau@linux.dev, eddyz87@gmail.com, yonghong.song@linux.dev, kpsingh@kernel.org, sdf@fomichev.me, haoluo@google.com, jolsa@kernel.org, jiang.biao@linux.dev, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH bpf] bpf: handle the return of ftrace_set_filter_ip in register_fentry Date: Tue, 11 Nov 2025 08:59:10 +0800 Message-ID: <2806193.mvXUDI8C0e@7950hx> In-Reply-To: References: <20251110120705.1553694-1-dongml2@chinatelecom.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Migadu-Flow: FLOW_OUT On 2025/11/10 23:49, Song Liu wrote: > On Mon, Nov 10, 2025 at 4:07=E2=80=AFAM Menglong Dong wrote: > > > > The error that returned by ftrace_set_filter_ip() in register_fentry() = is > > not handled properly. Just fix it. > > > > Fixes: 00963a2e75a8 ("bpf: Support bpf_trampoline on functions with IPM= ODIFY (e.g. livepatch)") > > Signed-off-by: Menglong Dong > > --- > > kernel/bpf/trampoline.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > LGTM. Thanks for the fix! >=20 > Acked-by: Song Liu >=20 > Can we add a test for this code path? I think it can be done by attach a fentry to a notrace function and check the error number. Let me have a try. >=20 > Song >=20 >=20