Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp520798lqh; Tue, 7 May 2024 06:33:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUk375DnR1PMhwyMKPfprmfbtErItM9SwPkBUNYAQhXQzccX6xTCv/yYM+VnqKVvktjjm5K8RrKDYsFzzPUvweJSZT91tgvcYIwV8YSZg== X-Google-Smtp-Source: AGHT+IEn6DxEEin6TUNtWXS85aGVOeWuqSf7YWNgJ4xcvIfuL/iNoesifwT3CMkcxhxLoMb7lPMb X-Received: by 2002:a05:6512:234c:b0:520:ed4e:2200 with SMTP id p12-20020a056512234c00b00520ed4e2200mr3727522lfu.54.1715088780015; Tue, 07 May 2024 06:33:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715088779; cv=pass; d=google.com; s=arc-20160816; b=zLLVMEDS9TVG/z7hNRemgC2V7aIXLcmKdppL+svAjJvjwOvZHiyoCQNNxCJP8orvas 5fBtgZwUz8RT2QRd3ePy/t5W16JeQ/rA+cxdUAw+YlS2634q/PwZQUE/2bwyMD+1u0cQ N5akHUuPadRKJctKCcTirhbLp9w++g/rt56rlCKKONM9hWNAxA6Jd6kn6GaQAnQvLxaP hk0Rdh4bJCg5jkIZzVJgdsE720Os2PrVNZtIGV2sb73y3KEe2fRMIB1qjmcCtlmHO3af 3MyFG1PH2/CHMoPV3uL4n93VgDEUI1lJXEjsN+EtllpADcr8Dn8u0fnpDtRAAeCgCkbQ K/XQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=oGeDod+DGWl1J300pTDpWLWkOTnzvTlSqxkEDd2S13s=; fh=+xF1049tVypekkjShp17fvMlvSr2JIl/AO2WK77YLJ4=; b=ow78HrQ/y9j44O7WmjhQVtRcknV+RTa6VXHC5n07tG7xD3lFJwxy5WP8L8A3fUv8Jw xAVhmatcJ0EaNI6fvxpcNUx2rnoZDXgOAO018WhTJDQin70z+u/jicaEjXhAd9xw+sqk LBh9YcWn5iMyFl4cPbaw2VITd4xGW8F0BjXXfLTbkpyKg7k5BhwsbKu2ZLJkGEkEyEsh HbgaATUe2DpRRaXd+k5iQrN5EbrCPxI8C8CfFcHE8D0Lp7Q+d2VpQOZ2dht3c9d892Po 7XAiJbDa3eT/f830NoegKiOcv3+QAjjne8odugVHVn6M/AW4MzpHEQq01Y95aXddbL0i G2dQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xt91sz+M; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171419-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y9-20020a056402270900b0057316e2343esi618233edd.620.2024.05.07.06.32.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:32:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xt91sz+M; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171419-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9C14A1F20984 for ; Tue, 7 May 2024 13:32:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D63015EFB4; Tue, 7 May 2024 13:19:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Xt91sz+M" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 938B6156F20; Tue, 7 May 2024 13:19:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087984; cv=none; b=EfFZ5ey0fJQfJdJdC/Mlf23g5IKXEKi7/GVcvhFwye4DwulGC+cDEcM6gBI/KYrvxD2smR+zBtaH585ktpx2iI1+vlir5K0ZIyVBAIF8OA2ePNfhXwwV4vwWLKsn2zlfVgHIlHc3tE5rwtrFQ3YJXcHoA5/oxCEsIibOc2WB7RQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087984; c=relaxed/simple; bh=DK4iCjKnlJIlBF//vWCP9Yz0CmFsZevISnqiSy4zwTM=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=hyfLWy1ZxC3rjflEdbCiQmdeIy0EI1+XFzS3cvM/IpYnHIuwlr7y9z8Cj0qTSWQq2yKHRcpvj+bqok+ANu2Ui3lqz5Snzn5/VycQzNSyscZOUOc9tJM3Vz4Zr5wKkqH+4u+h9W0WUcIVBlZUupgKfhYUN8Zz8qjfSwPleL+umKM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Xt91sz+M; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E77F2C3277B; Tue, 7 May 2024 13:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715087984; bh=DK4iCjKnlJIlBF//vWCP9Yz0CmFsZevISnqiSy4zwTM=; h=From:Subject:Date:To:Cc:From; b=Xt91sz+MEtOWUpUcXzZoAVJjbvP5A1ACBhupLQBom6K+RH/hYzre/xF+iV1T//tpe kRHMTP+iysCWO8L61/jMXTA9kGMQYzeh/RVMOp2AbxjE6tJfradlRildSjqJqfTdbh 7zRu5xrwjvkVktMNi2V6xv9jBpN5lVOyZTVmmMIbamRt+UNu/FYG6k2tz29QZKmS22 3WNemPgJJg244IUvI2PEDzp4jMvdltEmlyWBOy/YMpdzsQX7TQFPqguRn64m4UNkFh GpP3XMmuIVETMGoYGMOTjCqau4+wOeHGrdnECRVbi+nigQdnOStQHQDJ3sy/nw9GhC 9N8MBFPYGExCw== From: Benjamin Tissoires Subject: [PATCH RFC bpf-next 0/8] Implement generic bpf_async cb Date: Tue, 07 May 2024 15:19:28 +0200 Message-Id: <20240507-bpf_async-v1-0-b4df966096d8@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAGAqOmYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDUwNz3aSCtPjE4sq8ZN2kFKNUM1MLE3NTI1MloPqCotS0zAqwWdFKQW7 OCkClunmpFSVKsbW1ADi2WUppAAAA To: Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Benjamin Tissoires X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1715087980; l=1307; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=DK4iCjKnlJIlBF//vWCP9Yz0CmFsZevISnqiSy4zwTM=; b=CvZpiEBMRmreHKZJ6rv4jg12NxQ7OFhyxAiR8Zarf1Z2dN1DwAEqsVeq1ZCBo37HDZucGsKoS v9/YQsP+1l+B3MM8eHQE7vGqKb2pnRoG3h9+Cs2nAkmUa8sM+14dcoZ X-Developer-Key: i=bentiss@kernel.org; a=ed25519; pk=7D1DyAVh6ajCkuUTudt/chMuXWIJHlv2qCsRkIizvFw= This is a RFC, following[0]. It works, still needs some care but this is mainly to see if this will have a chance to get upsrteamed or if I should rely on struct_ops instead. Cheers, Benjamin Signed-off-by: Benjamin Tissoires --- Benjamin Tissoires (8): bpf: ignore sleepable prog parameter for kfuncs bpf: add kfunc_meta parameter to push_callback_call() bpf: implement __async and __s_async kfunc suffixes bpf: typedef a type for the bpf_wq callbacks selftests/bpf: rely on wq_callback_fn_t bpf: remove one special case of is_bpf_wq_set_callback_impl_kfunc bpf: implement __aux kfunc argument suffix to fetch prog_aux bpf: rely on __aux suffix for bpf_wq_set_callback_impl kernel/bpf/helpers.c | 10 +- kernel/bpf/verifier.c | 333 +++++++++++++++++++----- tools/testing/selftests/bpf/bpf_experimental.h | 3 +- tools/testing/selftests/bpf/progs/wq.c | 10 +- tools/testing/selftests/bpf/progs/wq_failures.c | 4 +- 5 files changed, 280 insertions(+), 80 deletions(-) --- base-commit: 05cbc217aafbc631a6c2fab4accf95850cb48358 change-id: 20240507-bpf_async-bd2e65847525 Best regards, -- Benjamin Tissoires