From patchwork Tue Jan 23 16:40:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Tissoires X-Patchwork-Id: 19338 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp462243dyi; Tue, 23 Jan 2024 08:46:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8qy/0x+zscQnSdaaJplAnC1iyAl8gQfdoJ0oadL3IfmwBk0QMw1tSrmwgIn2lAyBe1r6J X-Received: by 2002:a0c:db8a:0:b0:681:87dc:c810 with SMTP id m10-20020a0cdb8a000000b0068187dcc810mr1190416qvk.43.1706028401759; Tue, 23 Jan 2024 08:46:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706028401; cv=pass; d=google.com; s=arc-20160816; b=c0C/hAOlzLacOl0ibazh+IGpXSfFcJ5P5j74VzCGS4yqykklalZaF47LmgU61o7HpL 3ACk5ypRetTfCN4E92mcU4iWYndOY+EnQDF5MmOOtTjUf9C3pSTEABB6radAIs/3D2i3 XrYYwgsxhr2ZrxBfqRiq/0hXUYRF+Hr556ar0+KieVUOz7ToIgS/DILitQkwtxeWzqMn 96fcxK0aBPKUCV9NburN04XVPJEveoqO/tSw4hSmzEkSOLofdUZPnFrgL61rFAEtoFq/ NEuSTo8no1vTXRq14WW3euBKHYxdMY8ghbK9Lahopu/vTF3haE6XLR4Nd4A2RCqYft3V NHEQ== 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=WDTOJF/ouPJqdmVztP8sTpWI3eaIkic8+ydCf8ihImE=; fh=X3E0985Tl39WwlfcJ6B6yAXTRA1gm7OdSLYP2FJoOZI=; b=QnLeybDbhef1CWhWSqNvT/PBdFv2GacWdrQxssuOL+DMyRMeFEwgrrS9To20czACbb MVzZmlz+GvBjFwoJMOpWucvQU2BKLdqI3KdkRCcy5UUpl0OlpX2Jn6bcruXG/hBQFwqi J70BcR19cM7oDK5JnIhpUj3CkrIuQVeHChH/SZNDnXcy8nO57Nx5akg11HQVMnmt5ovR XsIa36Fcxjjij4TG6PqDRBjCeul9rRo4p2/oDEss3pf57ZQzmF0ijXGQBm6FQuEZMsGP zCra+7NsoLzn7De6Z81MDhMmCR+sG+BTKN85IkJXvaJW/d38ogNlXpYbZpw0fQRcQO8d Ci9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UMLOuYLq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35686-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35686-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h13-20020a05620a13ed00b00783070846e9si8138667qkl.385.2024.01.23.08.46.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 08:46:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35686-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UMLOuYLq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35686-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35686-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8B1D11C23FE9 for ; Tue, 23 Jan 2024 16:46:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B6E082D6E; Tue, 23 Jan 2024 16:41:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UMLOuYLq" 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 5AD297F7E3; Tue, 23 Jan 2024 16:40:58 +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=1706028059; cv=none; b=Uqb3XLWr1KXF2kUawVx5Y7XuBsfA02dCNtGIlYkZd1d3XTpHyesTupildWJJ8iDa9dbYOnb50cE3kg2XE39+i0opytFityKvQCbIWfntXuKRLQmBha0Xc7zvmlo07sI31dhuDDuNEEixfeSZIuSB8W2znbAOCYG/65efsHYCosI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706028059; c=relaxed/simple; bh=488cibflGFigOOYtTvKeYwGvzyZCoAx+xMcXNO8a8g8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=sXVcBKAq+PDrPFwyd9fjJeg3nuKMJJQ23Ka4lw4nUYp5YGi9F2jMDmEjiuBSsJvJEc9qpNsF3rwgkZBXX+37O1beBwtSYwxwYbtop2IL9+rUOroCF7HgW0wMeK+S+usoWJY+oP2JBwm7rMHd0fBSXIsXg68EPr4M0gTQyKh6x2Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UMLOuYLq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0AD86C433F1; Tue, 23 Jan 2024 16:40:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706028058; bh=488cibflGFigOOYtTvKeYwGvzyZCoAx+xMcXNO8a8g8=; h=From:Subject:Date:To:Cc:From; b=UMLOuYLqEKm3qz8Ftgr0SnlJ27+vPL8FQDIAGdoUwek3Qg4CpmiHXOtXudzqpGA3n pglHIppROtY2NLSh1y7+GR/gTnYgOnKJ+/8xCwj+WP4NHTE8LwnIOZ2slg83hNqvAQ xYF+Aeb+18L8fb0Qu6ZJLngALlExwZId/CyNFDIS/ELr153IUaaFDAHa7sR9LJfZCk 2bQJjBLioGIaBx1VAsOatIWTlAxcksBdzlOWgqUpzc46Lag5tc6kTBeLVnhWRUoejD azVMYFXf+FJSsEuHI8mcWx5Gz0PzAHyZVry0Os2w7UftVOeBzFawy8zxHpg6aFKKsC +1/QlI7oRKGgQ== From: Benjamin Tissoires Subject: [PATCH 0/2] HID: bpf: couple of upstream fixes Date: Tue, 23 Jan 2024 17:40:42 +0100 Message-Id: <20240123-b4-hid-bpf-fixes-v1-0-aa1fac734377@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAArsr2UC/x3LQQqAIBBA0avErBvQUaS6SrSoHHM2JQoRSHdPW j4+v0LhLFxg6ipkvqXIdTbovoM9rufBKL4ZSJFVmgxuFqN43FLAIA8XdI5GNQQmMhbaljL/oV3 z8r4fKWwhuWIAAAA= To: Jiri Kosina , Benjamin Tissoires , Dan Carpenter , Daniel Borkmann Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Benjamin Tissoires , stable@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706028056; l=889; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=488cibflGFigOOYtTvKeYwGvzyZCoAx+xMcXNO8a8g8=; b=kRlE3NzuqFykYj5Oe0Nlt8Zyip+pPHfoIoEqdTFFlHmEmbPnUlA1aoFgb3MYteYdJFbXHIA4N iNW2TSjTEIeB1tq+Ikk30BvAZFCg//PSHVvs7XuNpDTNxQ23u6iRTdo X-Developer-Key: i=bentiss@kernel.org; a=ed25519; pk=7D1DyAVh6ajCkuUTudt/chMuXWIJHlv2qCsRkIizvFw= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788900437722563740 X-GMAIL-MSGID: 1788900437722563740 Hi, these are a couple of fixes for hid-bpf. The first one should probably go in ASAP, after the reviews, and the second one is nice to have and doesn't hurt much. Thanks Dan for finding out the issue with bpf_prog_get() Cheers, Benjamin Signed-off-by: Benjamin Tissoires --- Benjamin Tissoires (2): HID: bpf: remove double fdget() HID: bpf: use __bpf_kfunc instead of noinline drivers/hid/bpf/hid_bpf_dispatch.c | 88 +++++++++++++++++++++++++------------ drivers/hid/bpf/hid_bpf_dispatch.h | 4 +- drivers/hid/bpf/hid_bpf_jmp_table.c | 20 ++------- include/linux/hid_bpf.h | 11 ----- 4 files changed, 66 insertions(+), 57 deletions(-) --- base-commit: fef018d8199661962b5fc0f0d1501caa54b2b533 change-id: 20240123-b4-hid-bpf-fixes-662908fe2234 Best regards,