Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp948513rbd; Fri, 23 Feb 2024 08:21:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVx38Y0zXcvWiXD38Jd/AdBirL+PdMYlJ1GFNyHnIDgNKPIMZvJgOB5S8ri6021VsozBO42pDJQprhUNUrmWmSmiVuQR+aCDd/6f5gaZA== X-Google-Smtp-Source: AGHT+IE6nYTZUGGU06/pwIUWWUytEcYUx6Hzzy4PxwN6N38p+PwcYoKzJXCxO3ptHyc/h2iAdsXq X-Received: by 2002:a05:6402:5215:b0:565:9517:b9e6 with SMTP id s21-20020a056402521500b005659517b9e6mr6499edd.28.1708705312664; Fri, 23 Feb 2024 08:21:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708705312; cv=pass; d=google.com; s=arc-20160816; b=VVM342n3ucO5Yo8Wr00EcMu4m4bFcuIJThI3Hos3mYbmYofPEXstzpVqAgCSNUIf88 yDJjyXQig6eroUJ1i7L9HbCCX8t6XDUqT4D0MYDEu8UKNSTo0qn35cKqqrVsQVQ+xUMW LsD0qUElW4DNJboMMNfioL0C/NgqvALbok60NCkCGSB4OipiDc+Z5DevEE2WIdkFnFuj e+zxwxef0ROpVfEhzXfFFImCcXVfsIvHoIs50Ro/giyNWHZmq24MnAkL6OJjsCAVFohi DEiyK1m/MRFr5zeAHdYCYY/X43ON3AEysIGIW1WFsnPpRJs7rsigSTERcgEeBP+pGl9f nVew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=C+z4evuI/NntdwkpluV6CvSYqNLCNZZI/SQfSnZFAR0=; fh=dAl6OjuwCPCjc7P+Crn1WyF0VNef0ahk7gUKdg+aB+o=; b=Fy5uLhb6EPEZP7NUxwkKHxjZnAZ0QetZ/0D7IbHxwkMPljucLjoqP70fy17+G7/H3p W/Hc6zwWctdr3TOr3x0/MGsseueL1sVvhYZrxttkNdvM2EzpgKc3Bfg5NNNRNdS98l4R cztKIfctbsRMTzY+eVqEMNmE+iX3tBsDyos4vOqAfSQ9/vgtlDLcqD4XC/yQDaz0GDL2 Pp8sbuu55NeFaEvyoB4c3HtuPjh1fmYD8HeESsEZyZ7m0RLM8mJahRrhk4zFFMY304w/ PcqzfWHPgQls9BGYEWL7PUu051ektVss8x5Tp9odgV/3Ws03McizoV/3jhvVU/6Mwd/e V4oQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iNa0LXl3; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-78708-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78708-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h22-20020a50cdd6000000b00564ac44a4a3si3784897edj.421.2024.02.23.08.21.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:21:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78708-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iNa0LXl3; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-78708-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78708-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 B5BA71F21B67 for ; Fri, 23 Feb 2024 16:21:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 574A412B156; Fri, 23 Feb 2024 16:19:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iNa0LXl3" Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 9FFD884FA7; Fri, 23 Feb 2024 16:19:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705193; cv=none; b=Ha6PFj4kfdJgrIKHT/oYevl6MroA2s3t6ay+FdOGcUyMBPSeCjFEeh8y1TJ9RcTN629duBwcKe6+q8ApPPi9Zvrdme4tCHtWqr9d6S5/afG5NFho3GkBHcFJYVFaIlC81qw1oNMyXoqIgCLhUqqLrn9shgxrKeZKKDcYXpcgKuE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705193; c=relaxed/simple; bh=met8njy71Mw/n/j1aUV456Ew99lMhLKOvTi11bATOoE=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=HTgbwxskU2++4+01WSyxalm/0+xS2Zx7B6hEtwaGr6cC1orNXuOFpZpV+JJq085nC74CNkGimLLrZ+JuymB5bqmh1S7qPf60sUeDDtBgErFUXrtxE2apZ0cqPz6HXqds4nhawxqTFBpWhB789fawlxidNPFp+7dI+KeAlsaXAcw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=iNa0LXl3; arc=none smtp.client-ip=209.85.208.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2d1094b5568so6402971fa.1; Fri, 23 Feb 2024 08:19:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708705190; x=1709309990; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to; bh=C+z4evuI/NntdwkpluV6CvSYqNLCNZZI/SQfSnZFAR0=; b=iNa0LXl3Z30SXzI+6bf95DRcyaxR4ymuAaKx5QFXtDc9vOsPGwImUM6KKVbzEftdRI EHNRtNCAPwdlYyXZm8JQv8ufjuzq15mEIaOb9GubNRgeZQJWgfdfnsQ5q781/GyXPwVk 0dTkAEW5tncz9wzMXjtM/+mI7J/Gld0t95iX43+5Zxw8Kv928XvBw/xpli5ZOBjZnKcM CW8WuyY6GhPIgT2qUHrxw4UOxjTIv4qI8BPRkA5uxVcDS/01dkIBVOsI7jmkiQcxkPHX jooI7bFAjCmtm0wKnlsjsZC11p+LFnS5aZpLGC4loB9WP4ZSAxuEv7N0/hY1hfbDSC+3 H2bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708705190; x=1709309990; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=C+z4evuI/NntdwkpluV6CvSYqNLCNZZI/SQfSnZFAR0=; b=fZrPy64YEWqID8MdBzCQwS7FjgNHO94Lpw8+cYMgRMWeRjCLmCyxkSQMaBKiI7//fj As99tH19leCAIRs3bKDga4r7NbxfJYADnwjYPPLHI4qFF6bPxMCV8kcGJUKZBvJlO0Tv mcS5iCvexjaJr2nEkWAZ4aEN0fttUA/DZ0TWVbKAazMVQce3h5xRYis2h32MGk7/9Os7 03p8usNirHFkaAtoTcqEEvY+LpvdBG2QbnoWguEhOtdez4jY4XFjZXL3TgjD8FfBIwGy OgJGI85cXWYj3CRUFiDJ5S+X0pSRdlmnRD9gjn31E43EzdDaKVADs5OguB5IcswAu0aN IOhQ== X-Forwarded-Encrypted: i=1; AJvYcCXqFnP1wGgRh/UewQDaIMjTaA+8shj3CFHjXZLs1yJ8SiZTuPz/zbV6r/h9AJiSjFNcejrgQ44r7ygMG/zKuReVhd1Ie5/cY7x8forlICz4UFE+IAB/sAGF6acU1wQiZ3NXx7xxUvOyWv/zk/RIry8BegH5SGRwu4Odo1+wGtSR0OvCp7vfHH3YZwRbVKZ5RiYTghD/L33RY2tZXtIdTWSGX0MHPMQ= X-Gm-Message-State: AOJu0Yw81XnZkddTjYC5x4geSzp+a8yTM/cJZdDxtQMEqYDWSRXmVwGj P5LcjSYnokj/QVyVKEU+y+OUTc2O0urLQlaLbyQ/IsumSZ02c5FS X-Received: by 2002:a05:6512:2246:b0:512:ab9e:3521 with SMTP id i6-20020a056512224600b00512ab9e3521mr188717lfu.11.1708705189424; Fri, 23 Feb 2024 08:19:49 -0800 (PST) Received: from [192.168.1.94] (host-176-36-0-241.b024.la.net.ua. [176.36.0.241]) by smtp.gmail.com with ESMTPSA id hu20-20020a170907a09400b00a3fa3411416sm1214756ejc.64.2024.02.23.08.19.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:19:49 -0800 (PST) Message-ID: Subject: Re: [PATCH RFC bpf-next v3 00/16] sleepable bpf_timer (was: allow HID-BPF to do device IOs) From: Eduard Zingerman To: Benjamin Tissoires , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Jiri Kosina , Benjamin Tissoires , Jonathan Corbet , Shuah Khan Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org Date: Fri, 23 Feb 2024 18:19:42 +0200 In-Reply-To: <20240221-hid-bpf-sleepable-v3-0-1fb378ca6301@kernel.org> References: <20240221-hid-bpf-sleepable-v3-0-1fb378ca6301@kernel.org> Autocrypt: addr=eddyz87@gmail.com; prefer-encrypt=mutual; keydata=mQGNBGKNNQEBDACwcUNXZOGTzn4rr7Sd18SA5Wv0Wna/ONE0ZwZEx+sIjyGrPOIhR14/DsOr3ZJer9UJ/WAJwbxOBj6E5Y2iF7grehljNbLr/jMjzPJ+hJpfOEAb5xjCB8xIqDoric1WRcCaRB+tDSk7jcsIIiMish0diTK3qTdu4MB6i/sh4aeFs2nifkNi3LdBuk8Xnk+RJHRoKFJ+C+EoSmQPuDQIRaF9N2m4yO0eG36N8jLwvUXnZzGvHkphoQ9ztbRJp58oh6xT7uH62m98OHbsVgzYKvHyBu/IU2ku5kVG9pLrFp25xfD4YdlMMkJH6l+jk+cpY0cvMTS1b6/g+1fyPM+uzD8Wy+9LtZ4PHwLZX+t4ONb/48i5AKq/jSsb5HWdciLuKEwlMyFAihZamZpEj+9n91NLPX4n7XeThXHaEvaeVVl4hfW/1Qsao7l1YjU/NCHuLaDeH4U1P59bagjwo9d1n5/PESeuD4QJFNqW+zkmE4tmyTZ6bPV6T5xdDRHeiITGc00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fi7X33V/SPvo0tY1THrO1c+bOjt5F+2/K3tvejmXMS/I6URwa8n1e767y5ErFKyXAYRweE9zarEgpNZTuSIGNNAqK+SiLLXt51G7P30TVavIeB6s2lCt1QKt62ccLqUAEQEAAYkBvAQYAQoAJhYhBMfui64wKUMqp1wmBC4MZXpJYEQJBQJijTUBAhsMBQkDwmcAAAoJEC4MZXpJYEQJkRAMAKNvWVwtXm/WxWoiLnXyF2WGXKoDe5+itTLvBmKcV/b1OKZF1s90V7WfSBz712eFAynEzyeezPbwU8QBiTpZcHXwQni3IYKvsh7s t1iq+gsfnXbPz5AnS598ScZI1oP7OrPSFJkt/z4acEbOQDQs8aUqrd46PV jsdqGvKnXZxzylux29UTNby4jTlz9pNJM+wPrDRmGfchLDUmf6CffaUYCbu4FiId+9+dcTCDvxbABRy1C3OJ8QY7cxfJ+pEZW18fRJ0XCl/fiV/ecAOfB3HsqgTzAn555h0rkFgay0hAvMU/mAW/CFNSIxV397zm749ZNLA0L2dMy1AKuOqH+/B+/ImBfJMDjmdyJQ8WU/OFRuGLdqOd2oZrA1iuPIa+yUYyZkaZfz/emQwpIL1+Q4p1R/OplA4yc301AqruXXUcVDbEB+joHW3hy5FwK5t5OwTKatrSJBkydSF9zdXy98fYzGniRyRA65P0Ix/8J3BYB4edY2/w0Ip/mdYsYQljBY0A== Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Wed, 2024-02-21 at 17:25 +0100, Benjamin Tissoires wrote: > [Partly a RFC/formal submission: there are still FIXMEs in the code] > [Also using bpf-next as the base tree for HID changes as there will > be conflicting changes otherwise, so I'm personaly fine for the HID > commits to go through bpf-next] [...] Could you please also add verifier selftests, e.g. extend tools/testing/selftests/bpf/progs/timer.c (bpf side) tools/testing/selftests/bpf/prog_tests/timer.c (userspace side triggering bpf side) Negative tests could be added in tools/testing/selftests/bpf/progs/timer_failure.c Please let me know if you need any help setting up local BPF test environment, I have a short writeup on how to set it up in chroot.