From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (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 ABF362D63F9 for ; Fri, 22 Aug 2025 19:57:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755892659; cv=none; b=Kd3k+5BSJRtxqGQNgt1PmOl7Zypg6lUXybV2wghzcn9jPDN5QHBc9Z+bvByVn9YDEK3ChXfeW3YN9ecXV/fskFIGOb5cMeH4zXCpXzcOFj5fbXhLX0iItQDpA5NpK2OK07nig2bptgJqPezpeHKhfvrQ4FwHkVnPXvordFcmXQo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755892659; c=relaxed/simple; bh=bYfEkI/HXvYSciaE3inVn2cClJS+fuZzLwI2uIIFsEI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WJW40ETEqPb5PPQRTXw60kVcL5zDa4oVz7KgQGqPuU/FR163fTiuMwKOMPXn7iO6/H01kHm6ToF4/TFv2kR20NqG3huav9twLBAOsYwH/w5PCKScOBsxMAqB3nKnbOsb8n6bu74fxTAMnNzOwR85COS+dXGEDTl4RDiFqnI07sI= 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=ODGNrnMN; arc=none smtp.client-ip=91.218.175.184 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="ODGNrnMN" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1755892646; 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=OgGQNbQpaeQ098wkm4u8zP/FPMO3eRXDhj7ceqGRxdw=; b=ODGNrnMNHi2fujrx4+KsmthVVSn9u3cTP6nkLxG0DlNYp+LN3E/HrXxHfWYO2BT+CZD9Nc jaZvG8zngg+a56REPHlpd6ksHZV60H2jnm6PZ/7//7JEIiNMSwAZUrbNUKJI6VYu0IyGlR MDJSRYPVSI5eZbQnVtoTEGn4UhgGcjE= Date: Fri, 22 Aug 2025 12:57:20 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v1 13/14] sched: psi: implement bpf_psi_create_trigger() kfunc To: Roman Gushchin 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 References: <20250818170136.209169-1-roman.gushchin@linux.dev> <20250818170136.209169-14-roman.gushchin@linux.dev> <87ect5lde2.fsf@linux.dev> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: <87ect5lde2.fsf@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT 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.