From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (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 3447D1DF73A for ; Tue, 29 Oct 2024 02:42:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730169744; cv=none; b=SpO0t4GSGZoISz/XCPHzS9kFyPyK1Mv8Cqor945ZnGgK1VheDR8IFCamzj6l4Gw4btDSgSo0GXuMGUAyy+05dHdIbWSGHFH8AFUOH91oIw9jvMD6PDTvAFNrY9at7vBzrKtOVrJNdL0WapZADkRg/tH7fFEJPekoEqzUT30jDhY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730169744; c=relaxed/simple; bh=PAjJ9Ou71Uqgdpy0Kz/QpxRFDbhbU7vB9xt2porGJQg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Jj6xdm6zpVKz1nw1UV4vAX2iDXJ3JCazPgXwGV+4zwuPagNIjECfODIeWJAqT4hi8LDKW0VhLBRuBf9ASeCp+8syHVjf2nBvZZIoc3sxsEjkZQc5emJ8xi5pT1vrboAltbVq/qXEJ/nOclr308qjdTnL1kAYsvuTI4fIS/g66NU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Z2edLyAb; arc=none smtp.client-ip=209.85.215.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Z2edLyAb" Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-7ea8c4ce232so4128246a12.0 for ; Mon, 28 Oct 2024 19:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1730169741; x=1730774541; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=NhwueTBuyyDS6MSGHD4L/PRA/gmfkEl47Swjzb9s/GI=; b=Z2edLyAbHhGFMd1vFhIcGOfI/bI+/x5zqS9VoPUi2+jG3tmA6NwW1FyDAsCpxGdkba rRQmkxScsqGx3E8JfBinZPLPG28Y4KPHMkb5a8wF33ZjkkjNdwb1uB1gvEcoXNEntIt2 98U2lIyWS5219bOs+yPL5bsxC2bhNQyx4sns4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730169741; x=1730774541; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NhwueTBuyyDS6MSGHD4L/PRA/gmfkEl47Swjzb9s/GI=; b=vBKu963KJXTjg0PqPhEEWVZOi5g1+IhIdBJI1CV3kiEgqxx4U3vSeFHdPGWrxXg8Jk lGNlyi5juzboDJRhutf+NAeNfw0n0rdff84N0sMlmm+10WVVOnNyjWD8t5y1VNY7pyZo iFt5q32cF32gPnU9LRusy38rp8U2dHJqPeNxjR99FP2xVxT0R4Zee05Qv4WcDCutKWk8 eQFqt+9800C2ft9VMkw99Os/xDE/PAS84dGfYHfXxxgYXY1nww/AS/XFkwrKPL4yrtkc GyHK4c1o/C9RfcGX9rH95PcZgrJ1eL8zylb9ucddkaeGPIM/+/z8axqtwU/uG6QwGgiq NdyQ== X-Forwarded-Encrypted: i=1; AJvYcCXleANBgPlM7p9466xAU5m2J3hFgEhQ0DAhgIJii9P33DQkF/GxXZVP1Ww8iDi2IaLOi/mq+quLoRpKngSHFQg=@vger.kernel.org X-Gm-Message-State: AOJu0YxbvMY8jXTi/eOVbj08buVv0rIR0hjkFECRDt00ILGUr6COJfFp Ynb6xrAmw54v1y85BgZ/6C5odUFJ3RZHIDqduZJQWDfTATfYgs5qQ6aYR1cmRqo= X-Google-Smtp-Source: AGHT+IEEBAFSTLUWRggpy/zSgYYAMfS9zMnB4WTf3rwU/wiDXRiRmmXCC9HC+DDgqHm/wOcSVYkVbg== X-Received: by 2002:a05:6a20:d8b:b0:1d9:1071:9175 with SMTP id adf61e73a8af0-1d9a84d70dfmr13069474637.32.1730169741393; Mon, 28 Oct 2024 19:42:21 -0700 (PDT) Received: from [10.200.3.216] (p99249-ipoefx.ipoe.ocn.ne.jp. [153.246.134.248]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7205780e3f5sm6504801b3a.0.2024.10.28.19.42.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Oct 2024 19:42:21 -0700 (PDT) Message-ID: Date: Mon, 28 Oct 2024 20:42:18 -0600 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] selftests/mount_setattr: fix idmap_mount_tree_invalid failed to run To: Christian Brauner , zhouyuhang Cc: sforshee@kernel.org, shuah@kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, zhouyuhang , Shuah Khan References: <20241028084132.3212598-1-zhouyuhang1010@163.com> <20241028-rodung-kotzen-577438c3b82c@brauner> Content-Language: en-US From: Shuah Khan In-Reply-To: <20241028-rodung-kotzen-577438c3b82c@brauner> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/28/24 06:11, Christian Brauner wrote: > On Mon, Oct 28, 2024 at 04:41:32PM +0800, zhouyuhang wrote: >> From: zhouyuhang >> >> Test case idmap_mount_tree_invalid failed to run on the newer kernel >> with the following output: >> >> # RUN mount_setattr_idmapped.idmap_mount_tree_invalid ... >> # mount_setattr_test.c:1428:idmap_mount_tree_invalid:Expected sys_mount_setattr(open_tree_fd, "", AT_EMPTY_PATH, &attr, sizeof(attr)) (0) ! = 0 (0) >> # idmap_mount_tree_invalid: Test terminated by assertion >> >> This is because tmpfs is mounted at "/mnt/A", and tmpfs already >> contains the flag FS_ALLOW_IDMAP after the commit 7a80e5b8c6fa ("shmem: >> support idmapped mounts for tmpfs"). So calling sys_mount_setattr here >> returns 0 instead of -EINVAL as expected. >> >> Ramfs does not support idmap mounts, so we can use it here to test invalid mounts, >> which allows the test case to pass with the following output: >> >> # Starting 1 tests from 1 test cases. >> # RUN mount_setattr_idmapped.idmap_mount_tree_invalid ... >> # OK mount_setattr_idmapped.idmap_mount_tree_invalid >> ok 1 mount_setattr_idmapped.idmap_mount_tree_invalid >> # PASSED: 1 / 1 tests passed. >> >> Signed-off-by: zhouyuhang >> --- > > Reviewed-by: Christian Brauner Thank you. Applied to kselftest fixes branch for next rc. thanks, -- Shuah