Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp674030rdb; Thu, 22 Feb 2024 16:29:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWEKm7QbdAKco6kLxYGL/AzQ0u7Dn1C+FXXeHTYEoT8bex9XuI0m4Vs86qCmBb1cPzhW09UzVJ+wibi8xk8D+4rHcDHIjgjaDaV5Rev3A== X-Google-Smtp-Source: AGHT+IGe+7xvQ7CG1rSSI/Q5JDbAj+RXGWRA1YFz4+RNn2dBWr3Rr7PygtWR8Kqt1IkxmhgMIYSd X-Received: by 2002:a62:81c4:0:b0:6e4:c275:6450 with SMTP id t187-20020a6281c4000000b006e4c2756450mr455499pfd.23.1708648142914; Thu, 22 Feb 2024 16:29:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708648142; cv=pass; d=google.com; s=arc-20160816; b=LYpMA+LkmhHQgeiVoacuX1R5HUgAWswZt5rNiUNXeVAHj27/7Q/vLeQ2wcHqjoHEy8 pPVL7S4rVdQTngfeBZCeeyS977uCQIGHj9R1HTiUuBLC3iGhrvGB/yI7LNVzU9DSHByq opQELSTNoBiOu72mxNCFrCJzYwnWnBa/vDywOnClTS8iJ/AmII2Jt1KNpqU/1ba8HOZF F9k/HAfQdvQ9+TWtz5F2UQ4p4rGrWsjTXYwcqMAVRSoNLSdKYgZc+e+xxecq9s0kJDIJ 0vHaavlAL0zrh6HewP+WFLIvTX8puZBkPpNe5D+qqR6R7rtvyWWGQwU5HpTpS1MwP1mC MVSw== 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=7sl3LZwYhteyadIe+Jzk/EoTxoeULHQwlWArFHu3FeM=; fh=eNcjeJp+GMj9C/kbhfGBFDidzlfbZGWw4r/LOqais14=; b=IH6RG51tJIJ2xUlSKfUj6c+VzdDA1UY1TIZZ58WbwL4yg3K8Llo1dW3QxbMbZ5I8+/ aYMC90ekioTMpJHSj/40FS2ZaQiftXCaVzaEqZDIkrewlilL2OV2SvK1E0DjfvDbEmB0 VWqFj69ocPFoJclDYNUNRAhWtoa/3zjBb4ZP6mMSqfoslEUstCLtsVJZE1Tht2wwvpiT jwZv5NxvGdx63Qj/oFQsSUTrVEcIGs69FwysKvFnTf8d07gujk2lGSoKT3v5jLW88nOT q6rrM/SzQ0PpFUuYkyDZoouk5aw1/ZW2fhaIm9XVq1fc0TLIQcpo5kxUCUJ2/F/LteZL fdRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MmE73F4v; 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-77576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77576-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id cn9-20020a056a00340900b006e4892148d1si4891969pfb.355.2024.02.22.16.29.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 16:29:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MmE73F4v; 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-77576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77576-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 85C44B23E3E for ; Fri, 23 Feb 2024 00:28:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 847A7BA34; Fri, 23 Feb 2024 00:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MmE73F4v" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 DB6D5372; Fri, 23 Feb 2024 00:26:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708648003; cv=none; b=lEYFPJ5zuhKulFbtq0hTjHoolj+nBbZGQdEJ1zgO7R6bw6LLKdErh3R8swTrh4+lY5jua/1FttXY1McH6BZyK9faIEtvddvKsEJ6hgd9BVFGjcfGu779Mu55AH23UBamu7bW0++5m6Mx/Qoa0JrRY9AHLJq55BV0vswD9R/Y/rk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708648003; c=relaxed/simple; bh=QeLGwOTba/JGiatcd8fvw+dZvvzwqgngsTXchSiPfT4=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=dmTbyoEba6ZOiNfB3OlCEC2M8olm8GINHk61kj5axTGWVJTPWxu+PNQEeiFumvp05FBwhZOhRkk6QOkPg3P4+D80shCnI4lk6Tq++2zyx2ymbkPZazNpFdQeaKn9a0/1gI7f0+BDApgRzLFGN3TopTImWyzh69ym76HfYLJKab4= 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=MmE73F4v; arc=none smtp.client-ip=209.85.218.47 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-ej1-f47.google.com with SMTP id a640c23a62f3a-a3e552eff09so29113066b.3; Thu, 22 Feb 2024 16:26:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708648000; x=1709252800; 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=7sl3LZwYhteyadIe+Jzk/EoTxoeULHQwlWArFHu3FeM=; b=MmE73F4vqa0lNevu2AC9XKnRkPk8pRKimWz9wqWvtThnCoEDGoQXB8LoyOdNLxgxfL oukdXg+EwOqZxclICtmiR1bPmRjOiZ4vymMo9FdwqkIPUVkjt88robA+JOpX/A1GpClD iAqHGCXZsHmox+IqweX1s7jwXMrpMVsNfDvKWf3m0EQgcFo/Tj1SKmJgGC9tkPAwmH0P wvLZMSowkaF6mIP/VeW/WFbEjapCF7Jn7AtXhId5Ai3gzAgfedhmF2XPSOiEa4KO8aa8 7ysCKyQubRKLr+3M80D7w8DjC00ub7uY+YHN+73Wt9ki88dVBVo5fRBXSIfMLY+etzLC hgEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708648000; x=1709252800; 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=7sl3LZwYhteyadIe+Jzk/EoTxoeULHQwlWArFHu3FeM=; b=XS6tMm65C0sCyfeH28bD8Kg8znQ/X3O2L45bpegOgXcEUS0TdSrLubJtl0lvwprWl5 3ojny3mxEufKzq41XTfGfck933ssXliYKEm4olaBsFOFd2vBBUVfwDcwhLL3I2qeAFPH oprtR8SZEstYwz3MQ+ZsYlE2IYODcoAcL9dnD5n2s9z97Me3B2g4Z0cZRcsrx8lPsu9M KQ37K317jmJOuUb7tbmVOxcF8/cImPUgK/19yOb/mbixvFgb2KaTjrlplqMy+kyJ+S8e z/JSewuucAtIOY2dv747wAGkpFZkr8JdXSyW6PV15b4iHgfAoCibYjapmPCcT4/VfHuE PFQQ== X-Forwarded-Encrypted: i=1; AJvYcCXZItCbgVq7Ge+tE5hyabwNAcKp36ESuMjoMYQdsBZYTiSWeGBKBCQkXbTUONxu3pW+0UNl+ZW7a9KKrAmk1wLOuJ/FnJD4VsGbm9qvEdPEsRSUWV4JCBSx7SYInPVNRNBq2gfpvq1Nqk0KZLlpQnMLULZa9sQ1mlE+0qrhcGqjzxpjT3DlCM//Us1213hGI3ImC/gdtrAJiocLBDQh5C6xrpmNuEI= X-Gm-Message-State: AOJu0Yzq7ZsUcpu+9OWArasPvhW+nlxoIk5w1ej7c8DxRFrh6LG4+aJ4 Lduj/rCkYiPQAZo6rPeREAgZKKpTEQeKmTPSF6lLST/ZXyodGiOe X-Received: by 2002:a17:906:2419:b0:a3e:9c2e:40d5 with SMTP id z25-20020a170906241900b00a3e9c2e40d5mr182764eja.5.1708647999827; Thu, 22 Feb 2024 16:26:39 -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 cw4-20020a170907160400b00a3e45fa1c77sm5542901ejd.55.2024.02.22.16.26.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 16:26:39 -0800 (PST) Message-ID: Subject: Re: [PATCH RFC bpf-next v3 05/16] bpf/verifier: add bpf_timer as a kfunc capable type 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 02:26:33 +0200 In-Reply-To: References: <20240221-hid-bpf-sleepable-v3-0-1fb378ca6301@kernel.org> <20240221-hid-bpf-sleepable-v3-5-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+zkmE4tmyTZ6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yezl6TfX27w1CW5Xmvfi7X33V/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 Fri, 2024-02-23 at 02:22 +0200, Eduard Zingerman wrote: [...] > > + case BPF_TIMER: > > + /* FIXME: kptr does the above, should we use the same? */ [...] > I tried the following simple program and it verifies fine:=20 Sorry, I meant that I tried it with the above check removed.