Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1692700ybt; Mon, 15 Jun 2020 07:06:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDz3lYU/lFCHiFrNZjyQma+NXfQ8LiBdWdgs99qEeJlo1wATfotHFSYDppS0YdOXzzh4lr X-Received: by 2002:a50:ec1a:: with SMTP id g26mr23223653edr.289.1592230003703; Mon, 15 Jun 2020 07:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592230003; cv=none; d=google.com; s=arc-20160816; b=l2poWbKY8d7dDZW6gCq03gzpvVtC/pSfyc1FDyLOk6eOJCI5WfSXkQdJLKO19O/66f 5w7vTn82GKGX/d83u+mzaNxDjM56z7WVjGqc0fsQOh9DT5r3O7vOV4NaQXaSNvYv7VCl tGYizLeJJp9KZTQDdDeuxuVhczO8PbuJjJykjpBykIzSOeAXvZqDU3DdyZFLox5ukmdF vOsA+lkkh5z7ZsWX+1YqZq3/JN/cah0+ZnXFmL5jaLYRD1YuoIXEAwrMOpN4MJy6tL2G mQAkUGZ6Yw65tgnUMpf7iIiF5VZv7DCeR+ComwDWxG0M/4sIVk7CGgcYqIebwx9zUDI9 7WXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature; bh=GxvGAQAw035ra8R4hqvENivZC/Q6I9cGWmRWkVLwaLw=; b=mIyoOfhZKz8HjD11Mmm8/cDTIE+BaTpeL0vwzjz+/YYAJDCpOBo4VSV6zIGM7G2LYk dmU5LwipAjXnfC9EqT8dpVBg+Q18bocjoktlxXSldx8HAV/7+bEND06ZripQqUzMCcgE Vp2uiLl8SrDu6k80+P+6CQkpPYL94hDwOyzZJvoHH7KpXmEEcUgRkb4G58AhKLW1J8aQ AmgbNc0GAL6mC7ZaKNtP0HXquK4SWaTWbZFiiqy1rgLozPDJF7OsB7Mvk4z+WavbxSip eJym8dEyUxvvUvPbGJV8EL6bA1pW9LAUzVuiRzt4bKRlELfaE2y6MIxZaz8raI3mcJ+U NZrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BIT3Mpa4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm19si11708028ejc.17.2020.06.15.07.06.20; Mon, 15 Jun 2020 07:06:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BIT3Mpa4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730269AbgFOODw (ORCPT + 99 others); Mon, 15 Jun 2020 10:03:52 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:34796 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729962AbgFOODu (ORCPT ); Mon, 15 Jun 2020 10:03:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592229829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GxvGAQAw035ra8R4hqvENivZC/Q6I9cGWmRWkVLwaLw=; b=BIT3Mpa4h56/lPhqANt2hbjKFBzxcD62yjZPomEDi3v/7nrCUwPJY0X8BLK+58Nk3rMaUD K2ebq364+PN3TpkOkwu6i9NOrgyWaNVoT6EJD/OeHU2a7MU/j4BmroTjKneYFT3fafBaXp AvNdaXLNplShCGIUNoozhkrJXXKqhgg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-185-2T5I5DRNMmKTnabEBFEX3w-1; Mon, 15 Jun 2020 10:03:44 -0400 X-MC-Unique: 2T5I5DRNMmKTnabEBFEX3w-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EF273109326A; Mon, 15 Jun 2020 14:03:02 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 592F67B603; Mon, 15 Jun 2020 14:03:02 +0000 (UTC) Received: from zmail17.collab.prod.int.phx2.redhat.com (zmail17.collab.prod.int.phx2.redhat.com [10.5.83.19]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9B928833BD; Mon, 15 Jun 2020 14:03:01 +0000 (UTC) Date: Mon, 15 Jun 2020 10:03:01 -0400 (EDT) From: Jan Stancek To: Cyril Hrubis Cc: kernel test robot , "Eric W. Biederman" , Jann Horn , LKML , lkp@lists.01.org, Aleksa Sarai , Michael Kerrisk , Christian Brauner , ltp@lists.linux.it, Serge Hallyn Message-ID: <1101600340.15989438.1592229781375.JavaMail.zimbra@redhat.com> In-Reply-To: <20200615091850.GA3373@yuki.lan> References: <20200615085836.GR12456@shao2-debian> <20200615091850.GA3373@yuki.lan> Subject: Re: [LTP] 303cc571d1: ltp.setns01.fail MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.43.17.25, 10.4.195.29] Thread-Topic: 303cc571d1: ltp.setns01.fail Thread-Index: cwh21FyAYYmtDPp3+d47RhirG3sYUg== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- Original Message ----- > Hi! > > setns01 6 TFAIL : setns01.c:176: regular file fd exp_errno=22: > > errno=EBADF(9): Bad file descriptor > > setns01 0 TINFO : setns(12, 0x20000) > > setns01 7 TFAIL : setns01.c:176: regular file fd exp_errno=22: > > errno=EBADF(9): Bad file descriptor > > setns01 0 TINFO : setns(12, 0x40000000) > > setns01 8 TFAIL : setns01.c:176: regular file fd exp_errno=22: > > errno=EBADF(9): Bad file descriptor > > setns01 0 TINFO : setns(12, 0x20000000) > > setns01 9 TFAIL : setns01.c:176: regular file fd exp_errno=22: > > errno=EBADF(9): Bad file descriptor > > setns01 0 TINFO : setns(12, 0x4000000) > > setns01 10 TFAIL : setns01.c:176: regular file fd exp_errno=22: > > errno=EBADF(9): Bad file descriptor > > The messages here are a bit cryptic, I will fix that later on, but what > it means here is that the errno has changed from EINVAL to EBADF in a > case we pass file descriptor to a regular file to setns(). I posted a series that accepts both errnos about week ago: https://lists.linux.it/pipermail/ltp/2020-June/017467.html