From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-94.mta0.migadu.com [91.218.175.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 893CB28030E for ; Sat, 12 Sep 2026 10:00:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.94 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789207229; cv=none; b=AAzUQh4H4Q2nEnjQrpB4xazogKHBxGk6qJ2U+0f9B6QzWi6YOFl8sEybqcVRfdjuoAN/dRahyFvmEfi70K1qsvrNNvjWfGaY9vCKgkIxQU5XDiFdPXW2L/VryN+HVf5wRm1dVux4nio4mM7oL3YLb1X7px9E9VRycyaL+m6xfUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789207229; c=relaxed/simple; bh=vgEvJhBtuUvghyoh6FAnvY5qyJ8xRJ/hrt1GgwkKcJY=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:From:To:Cc: References:In-Reply-To; b=hj8e2cS/+ff1drv1iSHGuqdGhHgRgeBzL6ZJvWSFtBDbjKEzToQ9xReOTzUMYeP8ivdOPN5IAk+cVESHtR1VYzxngCmBSeKs0XVGpwiXlifAQfoT/jPTmWyJDBJa2gL8BOEyry8KUjM3EPUA0gcEzpn/8sYKsz+InovfaEb/16s= 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=W99OyGg+; arc=none smtp.client-ip=91.218.175.94 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="W99OyGg+" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=vgEvJhBtuUvghyoh6FAnvY5qyJ8xRJ/hrt1GgwkKcJY=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1789207225; v=1; x=1789812025; b=W99OyGg+w9qfd3AH2MdbkVUgLnUuncuSl7sW655e0BXe9vzo6xiUSMNMXqlJutsdNV1KFZuA iq9Ap8ix0IWcjhNbPSi7FgcfdUIhXUTeGRNxw312sxlYxoUriAunU530b5OPyEFX5MJ/N/BUgfb z9s220ER5VO2Q2bTJGh+UMiI= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 6f6fd6898eb8f9e3; Sat, 12 Sep 2026 10:00:25 +0000 X-Mizu-Trace-ID: 6f6fd6898eb8f9e3 X-Migadu-Flow: FLOW_OUT 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 Date: Sat, 12 Sep 2026 10:00:24 +0000 Message-Id: Subject: Re: [PATCH bpf] bpf: Keep progs alive until the trampoline image calling them is freed From: "Florent Revest" To: "Alexei Starovoitov" Cc: "Kumar Kartikeya Dwivedi" , "bpf" , "Alexei Starovoitov" , "Daniel Borkmann" , "Andrii Nakryiko" , "Martin KaFai Lau" , "Eduard Zingerman" , "Song Liu" , "Yonghong Song" , "Jiri Olsa" , "KP Singh" , "Emil Tsalapatis" , "John Fastabend" , "Paul E. McKenney" , "Jose Fernandez" , "LKML" X-Mailer: aerc 0.17.0 References: <20260819122252.1782790-1-florent.revest@linux.dev> In-Reply-To: On Sat Sep 12, 2026 at 12:20 AM UTC, Alexei Starovoitov wrote: > On Wed, Sep 2, 2026 at 5:48=E2=80=AFPM Alexei Starovoitov > wrote: > > > > Let's extend ip_after_call concept. > > Instead of using a single NOP after the call to skip fexit progs > > let's add NOPs in front of every invoke_bpf() including fentry and fmod= _ret. > > > > Then on tramp destroy patch all nop-s to jmp epilogue. > > > > llm-s helped me realize that fentry has the same issue. > > fentry prog A can sleep > > while non-sleepable fentry prog B can detach and things will crash. > > Florent, > > are you planning to respin with the above fix or should I ask my clanker = ? Sorry for the wait, this week was busier than I expected! I just sent v2! := )=20