From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-14.mta0.migadu.com [91.218.175.14]) (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 A118949BD8A for ; Tue, 6 Oct 2026 17:09:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791306582; cv=none; b=aEUNAx5kgPUZZ4MRzaSAnr3bL14O9cvPICB3mRi7/q0u3Wb21Qm2AKxpspLSTbUybfevxbsGVJgCUuIbMAMFSwfL2aO1+wP7Xr+qpmRbPIJdksxwZnkfFP4rG+qibOXPUt6scqCzo78DBUBGYdwD+x7O9y+ZTja2wJrfHJ6er1I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791306582; c=relaxed/simple; bh=ip3lsF1/RW6hopKSPjIofrNyzgxwJm4Yts77+HupLAQ=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=u15y+9uWq0Qvv5S9pyv/Dr74w3QakIM9sbNSJhCG97C1pktM9Tr2PfJ8RkFCJYaJUAD/5M/T1J9JBHVO+wDOdeH33V6WU+hcdYKqC+8wqTBFKCP1NxeEfOIr/Ig6MIiUmg8y5hMqk6/w+ripupqSiZidN89Eu1neMCwWKWUtkU4= 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=WSwn+b/v; arc=none smtp.client-ip=91.218.175.14 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="WSwn+b/v" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=ip3lsF1/RW6hopKSPjIofrNyzgxwJm4Yts77+HupLAQ=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1791306578; v=1; x=1791911378; b=WSwn+b/ve3DQFsJeY6fX95XEV2BPixpBsT0uwVCPwkfTkm2TBcZLyDrj4KjdGnxKCSuk2tR8 B+W9kHY20jUF9+iTBffqpJpzbNTXVUag1vT/hY3lbPMbkHYk8DbRLqhJgV8R6UnezcQwXggAdo8 1CuETHch+HUj4uJyj3WxlcXQ= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id ff89a30a3c80fbc7; Tue, 06 Oct 2026 17:09:38 +0000 X-Mizu-Trace-ID: ff89a30a3c80fbc7 X-Migadu-Flow: FLOW_OUT Message-ID: <501b9da8-bc0c-4c02-866d-f50b20b60289@linux.dev> Date: Tue, 6 Oct 2026 10:09:32 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH bpf-next 3/5] selftests/bpf: Use /tmp for temporary file in d_path From: Ihor Solodrai To: Pu Lehui , Alexei Starovoitov , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , bpf@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Puranjay Mohan , Paul Walmsley , Palmer Dabbelt , Alexandre Ghiti , Pu Lehui References: <20260929083924.1851840-1-pulehui@huaweicloud.com> <20260929083924.1851840-4-pulehui@huaweicloud.com> <52daee54-9127-445c-b924-64623ca2e125@huaweicloud.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/5/26 3:54 PM, Ihor Solodrai wrote: > On 9/29/26 11:24 PM, Pu Lehui wrote: >> >> On 2026/9/30 0:29, Alexei Starovoitov wrote: >>> On Tue, Sep 29, 2026 at 08:39 AM Pu Lehui wrote: >>>> The failure occurs because the rootfs created by libbpf/ci [0] does not >>>> mount /dev/shm, causing temporary file creation under /dev/shm to fail. >>>> >>>> Let's switch to using /tmp instead to fix this issue. >>> >>> This will break BPF CI. >>> The test was using /tmp up to v4 and was moved to /dev/shm in v5, >>> since /tmp is on 9p in BPF CI and 9p doesn't support fallocate. See >>> https://lore.kernel.org/all/20251206141210.3148-1-electronlsr@gmail.com/ >>> vmtest's init mounts tmpfs at /dev/shm, /run and /mnt, but not at /tmp. >>> So fallocate() will return EOPNOTSUPP and d_path/check_mem_access >>> will fail on x86, arm64 and s390. >>> >>> Mount tmpfs at /dev/shm in mkrootfs_tweak.sh like you did for /tmp in [1] >>> and drop this patch. >>> >>> pw-bot: cr >> >> Hi Alexei and Ihor, >> >> I have been make a pr for mount tmpfs at /dev/shm, pls take a look. >> >> https://github.com/libbpf/ci/pull/239 > > > Merged, thanks. Pu Lehui, I just realized that this change may not be enough. If you want to make sure the selftests will run properly in BPF CI, please try the vmtest tool (a qemu wrapper): https://github.com/danobi/vmtest You should be able to run riscv64 in emulation through it.