Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp875020pxb; Wed, 1 Sep 2021 11:51:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvBpqgXIr79+jam6K4cDDCPBJIkjFwq0GCiHJfkMYZqCPr1de0IDEnwcwuZqKni/jLZqT8 X-Received: by 2002:aa7:c790:: with SMTP id n16mr1036459eds.223.1630522289393; Wed, 01 Sep 2021 11:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630522289; cv=none; d=google.com; s=arc-20160816; b=yQ+n0ZsbbyLH7KYW8w3CqDndfWlgXZIO9J+rqsTyp7VW2eRiaettOzWd/Qx/YK0+PM Jc3LxA/Fz0cZ8DDQAKhV97VwVtQHZD1J3LF6H/9rJYJCctrSHGz6jK6JhD9XHt32mdXF BKXaFcBPTj6BIX3wrOB1EGNl355FOO3FnZZODKfyh2vEESWJ7KKLxOfXdULEo2HHFZwJ 3/7O6ix+4ekI5/BKgte2FreJzaK95tt8u/x7wzo6RJI25E3jNKyu5H46zlDA53Qehxce /kkHN0dhEdZCJUlZehDPF/501eA0bT+8lAZZgemfSMT/Im050vnTZehVKy7BzIefodPt SU7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pC5DFZzc9UewsBvUzJjXQABLpwkycaRX2qmvMdvRQvg=; b=JY6+3uKZTHwOWA5foY938zIjG+B9P8eRsLbTJeDzD8pXrlJwXLfA9qGchmptNKQwv8 vUP46iHOhTVQVHm5vVLsvKncmGhsKhGsecvXyprfS1kih5A/3tGFKJiaZNIZ2+NAmXB5 is4rOuPZtHYxTp1g3LZRAuY0rJcyVeB04RNQMMGscYpd54BFhyTT8KMUiTZ7mOwodPCw duJPTlRWMOznAYXa9g1+ig2KzOJ0bCV4a/oOZO/7mjBakrYjqwXHqc9cXP67GAnNxy3E 6xfBkPeTnJUgeQMQhvvxkg/KbeX7egxwwZPTBfeu8SBOyQInLPBRZLPMRHCj36rPwS/C ARbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RI15EVFE; 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 k5si359344edq.72.2021.09.01.11.51.00; Wed, 01 Sep 2021 11:51:29 -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=RI15EVFE; 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 S243411AbhIAJIu (ORCPT + 99 others); Wed, 1 Sep 2021 05:08:50 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:56625 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243394AbhIAJIt (ORCPT ); Wed, 1 Sep 2021 05:08:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630487272; 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: in-reply-to:in-reply-to:references:references; bh=pC5DFZzc9UewsBvUzJjXQABLpwkycaRX2qmvMdvRQvg=; b=RI15EVFEjUgWbkqwtdyNbBu9F8gxydws/cFpnA7nK12tnoEckrz7c4BgWk8YVHM464dQ7o buF2cjsrKh/6I5eUD2NMLwQt7eOSYYCzgPtZA0SJBTQAIu2IIvs6KbawwFPkJ/ZYaRKrDa uBZDBn9/GN42s7urRmI69w37VPcTqG8= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-591-0-8-fRR-PSaTbA3J45QWzA-1; Wed, 01 Sep 2021 05:07:51 -0400 X-MC-Unique: 0-8-fRR-PSaTbA3J45QWzA-1 Received: by mail-lf1-f69.google.com with SMTP id bi21-20020a0565120e9500b003df0c58083fso787789lfb.16 for ; Wed, 01 Sep 2021 02:07:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pC5DFZzc9UewsBvUzJjXQABLpwkycaRX2qmvMdvRQvg=; b=ViOeora+BJunWAlKfvSAn0llF/T32RXTA35CW0Tc29oJ0+o7MF1l6vuMRfSVhFV9UG m/JltvJHBmalPZJ/47PqLbIBZrSxkz2hVJ/wGydMxMczZ7MUiOjLwWW5DsdNr2m63Ip6 WtxufTeK8dH9MLDpyJR4J6h4GqAtefcQdRPJmEeRPeNaLVbawHBHRnBf4faPF0CbWoEl 2srjHwFMqFqadrKwGz0/5z7kfcKogscw3p02+9TKjXxr6UlYe3YJi4CQn5ayr3GAezZx rOAS62X8pWKaTLcDuOiEYSMZ1n5TAYZoId12cheozmiHf4NJ9+6NLL+4VbTlTYO0WYyr 4LTg== X-Gm-Message-State: AOAM533Bp2SjcvW1/3ZcmkcOkxZ2Y+QhHI/G9s1oUJA309JF72hceGn3 FoBgY75d+Fjpiz9bfleogpeGaarw+bw/O7a7YG1e6gsKk1W26XkfuvO6lvvzrYsv0bep3Y85Crk k3cjYxgtvuUptF2CZCtn8y2npqEXBbGNlkKBjzUaV X-Received: by 2002:ac2:5f99:: with SMTP id r25mr24899368lfe.119.1630487269831; Wed, 01 Sep 2021 02:07:49 -0700 (PDT) X-Received: by 2002:ac2:5f99:: with SMTP id r25mr24899355lfe.119.1630487269593; Wed, 01 Sep 2021 02:07:49 -0700 (PDT) MIME-Version: 1.0 References: <20210825051710.GA5358@xsang-OptiPlex-9020> <20210901030357.GD14661@xsang-OptiPlex-9020> In-Reply-To: <20210901030357.GD14661@xsang-OptiPlex-9020> From: Murphy Zhou Date: Wed, 1 Sep 2021 17:07:38 +0800 Message-ID: Subject: Re: [LTP] [fs] f7e33bdbd6: ltp.ftruncate04_64.fail To: Oliver Sang Cc: Jeff Layton , lkp@lists.01.org, LKML , ltp@lists.linux.it, lkp@intel.com, linux-fsdevel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In my test, CONFIG_MANDATORY_FILE_LOCKING is not set. # mount(NULL, MNTPOINT, NULL, MS_REMOUNT|MS_MANDLOCK, NULL); But the mount call in setup() returns 0, with setting errno to EFAULT. This testcase needs some tweaking to have an accurate verdict about manlock. The kernel return value for mount looks buggy too. On Wed, Sep 1, 2021 at 10:46 AM Oliver Sang wrote: > > Hi Jeff, > > On Wed, Aug 25, 2021 at 06:32:38AM -0400, Jeff Layton wrote: > > On Wed, 2021-08-25 at 13:17 +0800, kernel test robot wrote: > > > > > > Greeting, > > > > > > FYI, we noticed the following commit (built with gcc-9): > > > > > > commit: f7e33bdbd6d1bdf9c3df8bba5abcf3399f957ac3 ("fs: remove mandatory file locking support") > > > https://git.kernel.org/cgit/linux/kernel/git/jlayton/linux.git locks-next > > > > > > > > > in testcase: ltp > > > version: ltp-x86_64-14c1f76-1_20210821 > > > with following parameters: > > > > > > disk: 1HDD > > > fs: ext4 > > > test: syscalls-07 > > > ucode: 0xe2 > > > > > > test-description: The LTP testsuite contains a collection of tools for testing the Linux kernel and related features. > > > test-url: http://linux-test-project.github.io/ > > > > > > > > > on test machine: 4 threads Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz with 32G memory > > > > > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > > > > > > > > > > > > > [...] > > > > > <<>> > > > tag=ftruncate04_64 stime=1629792639 > > > cmdline="ftruncate04_64" > > > contacts="" > > > analysis=exit > > > <<>> > > > tst_device.c:89: TINFO: Found free device 0 '/dev/loop0' > > > tst_test.c:916: TINFO: Formatting /dev/loop0 with ext2 opts='' extra opts='' > > > mke2fs 1.44.5 (15-Dec-2018) > > > tst_test.c:1348: TINFO: Timeout per run is 0h 25m 00s > > > ftruncate04.c:116: TINFO: Child locks file > > > ftruncate04.c:49: TFAIL: ftruncate() offset before lock succeeded unexpectedly > > > ftruncate04.c:49: TFAIL: ftruncate() offset in lock succeeded unexpectedly > > > ftruncate04.c:84: TPASS: ftruncate() offset after lock succeded > > > ftruncate04.c:127: TINFO: Child unlocks file > > > ftruncate04.c:84: TPASS: ftruncate() offset in lock succeded > > > ftruncate04.c:84: TPASS: ftruncate() offset before lock succeded > > > ftruncate04.c:84: TPASS: ftruncate() offset after lock succeded > > > > > > Summary: > > > passed 4 > > > failed 2 > > > broken 0 > > > skipped 0 > > > warnings 0 > > > > I think this failed because of the above, which is expected now that we > > ignore the "mand" mount option (and mandatory locking support is gone). > > > > Oliver, you may need to update the expected test output for this test. > > Thanks for the information! we will do the corresponding change ASAP > > > > > Thanks, > > -- > > Jeff Layton > > > > -- > Mailing list info: https://lists.linux.it/listinfo/ltp >