From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 5AE7F2765CF for ; Fri, 3 Oct 2025 08:47:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759481236; cv=none; b=SzzK15lS0Xjr8tEQxI6jtJFUOqnqDoFgic7RZilcl1Sydm00Z6Hrb1z4TlW2RBNz+R6/uYmy9T4ut84deteM5ba7MY3wCqUxQnnlb7oUQgeCcWhpUZMpUxUKmkNejk3Njael3UkAYiRZPB1RPNrAujChKkEObu80DJ42kv9xWLo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759481236; c=relaxed/simple; bh=tTJ99chusfJiteqfuym/kCa8qHxp0d9Wz8vIYGHukfU=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=PjsTGHIU1TpifDJmSsYcM7wFEAxF1q9OhG86aGz/h8eWfwi6RxInDAqm0P8+/JmVc4Zi8vG+0hRNO9USeooI1M/fYx9PDNW88jamVRIJl+lQ5G85BlW9ZzC2/R3Awz6h5DGlzDfj8kfCmEm9DJ4jU5qXMeWdBmK0cxZxUKDupHo= 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=Uey/iW69; arc=none smtp.client-ip=91.218.175.170 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="Uey/iW69" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1759481222; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=EhHu6K/dYNo4nWH+u4BIU6qkc0knEsqyxs6KkV95FdY=; b=Uey/iW69jB+au7kAb/O6iuxwf0wrwg0H/wDLnQnDnl+170tvqvJ0shoKwLGh68hxaQL9Fu qE8kGUN8sbuXDRHyyJvr773VVpvv79BfUQYNOHKZUK03lM++U12kUvocelCZM6u3UlbIIG Z0B6xc++gY7vqC09Ioe+q+w2biPtGEw= From: KaFai Wan To: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@fomichev.me, haoluo@google.com, jolsa@kernel.org, shuah@kernel.org, kafai.wan@linux.dev, toke@redhat.com, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH bpf 0/2] bpf: Avoid RCU context warning when unpinning htab with internal structs Date: Fri, 3 Oct 2025 16:45:26 +0800 Message-ID: <20251003084528.502518-1-kafai.wan@linux.dev> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT This small patchset is about avoid RCU context warning when unpinning htab with internal structs (timer, workqueue, or task_work). --- KaFai Wan (2): bpf: Avoid RCU context warning when unpinning htab with internal structs selftests/bpf: Add test for unpinning htab with internal timer struct kernel/bpf/inode.c | 2 +- .../selftests/bpf/prog_tests/pinning_htab.c | 37 +++++++++++++++++++ .../selftests/bpf/progs/test_pinning_htab.c | 25 +++++++++++++ 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 tools/testing/selftests/bpf/prog_tests/pinning_htab.c create mode 100644 tools/testing/selftests/bpf/progs/test_pinning_htab.c -- 2.43.0