From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (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 884A030277A for ; Mon, 25 Aug 2025 16:57:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756141033; cv=none; b=IDbTqbtSftyi95P+/kRWCgNjXjf4HA2vutMGv+hfxxMhzhharako64b0pSam0dc3EHmzpG4bews349o6HR+b+OI+MDNh/ObJ2gKawLTuoUxEMCCzMlc81a12BHVBKbcuH1LER/uZ2UXqCWT4aNgwPqDloKxFqtD9p7L27gajuRY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756141033; c=relaxed/simple; bh=NAPZqISVKAEwgxkMeXQwIHHj6CxIXWWQHoJY30zQfUw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=oZ3SbyZAqIaXWqg5UWFSD+gsMSWWof7s85C9UNdhWMnprMHgJdf/RfRyQVXGExrKbwBcetfa5SDBI4R3uPpz4WohNLPgqtGbaVPluTFYm46AeoaZw1+4S/4DkNy5iGLEN/s/+4qho62An6t/vOR16NH65DK3XfH5CwoE/Or7vaI= 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=aaxX9KoA; arc=none smtp.client-ip=91.218.175.188 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="aaxX9KoA" 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=1756141019; 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: in-reply-to:in-reply-to:references:references; bh=NAPZqISVKAEwgxkMeXQwIHHj6CxIXWWQHoJY30zQfUw=; b=aaxX9KoAIRU7hcngB3MtEt3ChqHOEscLudD75M3s/FotORLWw0z+bT8E63I3g9xcvYi1hC kgZyTAHgJvVA9hIGN3LpAa/tnkfmm1xMAfH4tjAX3wkJx7ZBrzt2gHYLfwy941zbce25af HTyYBnyzuYVGc/CCcOGEwiEhB5kVriY= From: Roman Gushchin To: Martin KaFai Lau Cc: Andrii Nakryiko , linux-mm@kvack.org, bpf@vger.kernel.org, Suren Baghdasaryan , Johannes Weiner , Michal Hocko , David Rientjes , Matt Bobrowski , Song Liu , Kumar Kartikeya Dwivedi , Alexei Starovoitov , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 13/14] sched: psi: implement bpf_psi_create_trigger() kfunc In-Reply-To: (Martin KaFai Lau's message of "Fri, 22 Aug 2025 12:57:20 -0700") References: <20250818170136.209169-1-roman.gushchin@linux.dev> <20250818170136.209169-14-roman.gushchin@linux.dev> <87ect5lde2.fsf@linux.dev> Date: Mon, 25 Aug 2025 09:56:52 -0700 Message-ID: <87h5xvxru3.fsf@linux.dev> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT Martin KaFai Lau writes: > On 8/20/25 5:36 PM, Roman Gushchin wrote: >> It will. Idk how big of a problem it is, given that the caller needs >> a trusted reference to bpf_psi. Also, is there a simple way to constrain >> it? Wdyt? > > The bpf qdisc has the kfunc filtering. Take a look at the > bpf_qdisc_kfunc_filter in bpf_qdisc.c. Thanks! I'll take a look.