From patchwork Wed Oct 19 08:52:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amir Goldstein X-Patchwork-Id: 9384593 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8437860762 for ; Wed, 19 Oct 2016 15:45:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7685628C7B for ; Wed, 19 Oct 2016 15:45:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6988828C96; Wed, 19 Oct 2016 15:45:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F05D28C7B for ; Wed, 19 Oct 2016 15:45:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942374AbcJSOfi (ORCPT ); Wed, 19 Oct 2016 10:35:38 -0400 Received: from mail-qk0-f169.google.com ([209.85.220.169]:36066 "EHLO mail-qk0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S942637AbcJSOfg (ORCPT ); Wed, 19 Oct 2016 10:35:36 -0400 Received: by mail-qk0-f169.google.com with SMTP id o68so38705255qkf.3; Wed, 19 Oct 2016 07:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sdmy++iYeW7B1Wa1NqVPm27Nrgt8vlwPHhaWkW7SGTo=; b=kZH9NtCwjO/9dgpg7QntfQA5hZkL9L4zkghtIYLBW+skysYRZ7BBWRzMB6TFqTOLK9 0fWzZB/fpbnvItBMGuH5srBPNg1NXiVUhokUGzi7nq0Pze13a9BBYIAVLBZfMEM1rQzM TjHkc8MJmXyVYa9lNl46eHgmzbfh7ZhnyR9nSIN//OjkdJZ66jAUK+yJOlut0uWsCgJ/ QHAmxgqbNTJvYcYUIy5UmqLeYUC/xfnWAZyO1K3t6o7k94Ta4UE/0BjICErEQzFD2MgE GZyuIOZ9K6g+Xm1g68UQq8+iJwMNPXhC5NFXmzMkGhaCLvh30/RDtxdC4OgttJfF4pp6 pZuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sdmy++iYeW7B1Wa1NqVPm27Nrgt8vlwPHhaWkW7SGTo=; b=FqKF8/JPKXG3wLbIq6C/V4p2FWWjXYc4pttR8QGVS024jE499YBCHu1W9NbyIaQf3X WHLpzzLpjVjyIJA9v39l2ixPC+RJZIGkn9w9zEkw6ZpMzsBDcDee/PQMUTmlNP7J4zy/ Glaf4Row91vDeuHiypINHMDLBK79BmdQEWRCtbRag0cG2pYuu1v9JcdKa/LZCDphzWNa V+425Oz6eiJXI/0wZ0m+Vzl8LeNrw5k+yPidPGLizewLZj3A+lw/t0xG2K5A8RGl7RP5 fJow5TFbwQf1MtDP7NaQ9a3re7mPcMIMBUHQ5ryXU0hITKlBEiBQsID4sH6d7aVEqPaW 4dMg== X-Gm-Message-State: AA6/9Rm4qoaQ9IMY4kFdHGaQlP+7gOEgLzpWPverd6bL46hHckgqZcVpZR5+5GMJnU7SRg== X-Received: by 10.194.75.194 with SMTP id e2mr3522437wjw.7.1476867208381; Wed, 19 Oct 2016 01:53:28 -0700 (PDT) Received: from localhost.localdomain (bzq-82-81-193-202.cablep.bezeqint.net. [82.81.193.202]) by smtp.gmail.com with ESMTPSA id d18sm3855795wma.14.2016.10.19.01.53.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Oct 2016 01:53:27 -0700 (PDT) From: Amir Goldstein To: Miklos Szeredi , Eryu Guan , Xiong Zhou Cc: linux-unionfs@vger.kernel.org, fstests@vger.kernel.org Subject: [PATCH 3/3] overlay/013: adjust test expectation to kernel v4.8 Date: Wed, 19 Oct 2016 11:52:33 +0300 Message-Id: <1476867153-17368-3-git-send-email-amir73il@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476867153-17368-1-git-send-email-amir73il@gmail.com> References: <1476867153-17368-1-git-send-email-amir73il@gmail.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 4d0c5ba (vfs: do get_write_access() on upper layer of overlayfs) that was merged for kernel v4.8 changes the behavior of execve+truncate in a subtle way. When file is executed from lower and then truncated, the truncation is allowed, becasue it only affects the size of the copied up file and does not affect the VM mapping of the executed lower file. Signed-off-by: Amir Goldstein --- tests/overlay/013 | 1 - tests/overlay/013.out | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/overlay/013 b/tests/overlay/013 index e92eeec..e99e10a 100755 --- a/tests/overlay/013 +++ b/tests/overlay/013 @@ -69,6 +69,5 @@ $SCRATCH_MNT/test_lower $SCRATCH_MNT/test_upper # success, all done -echo "Silence is golden" status=0 exit diff --git a/tests/overlay/013.out b/tests/overlay/013.out index 3e66423..b2c7cc7 100644 --- a/tests/overlay/013.out +++ b/tests/overlay/013.out @@ -1,2 +1,2 @@ QA output created by 013 -Silence is golden +truncate(test_lower) should have failed