From patchwork Wed Feb 7 21:19:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 10206097 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 2BBAC60327 for ; Wed, 7 Feb 2018 21:19:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1974929147 for ; Wed, 7 Feb 2018 21:19:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CB1A29149; Wed, 7 Feb 2018 21:19:54 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY 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 AB43C29140 for ; Wed, 7 Feb 2018 21:19:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754907AbeBGVTw (ORCPT ); Wed, 7 Feb 2018 16:19:52 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:39662 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754281AbeBGVTt (ORCPT ); Wed, 7 Feb 2018 16:19:49 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w17LHGKm095956; Wed, 7 Feb 2018 21:19:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=NMKWKIRj25IsPmo6kWRhzRO8qhGjCcAKKn7IF6yDfB4=; b=vFRVORgjoSNresusLyt8BhsZh97xpo+iYVLDlLilPdndOvLq7WkfhJCWxCN/nR4Zmdgc kxtS/1WsU+bXjqqN/ZT90aocMxhqNweWPWW24z9gPhRJPvtQFw3JoAw8INnBXb+f5cT2 HyQKPx9bfU2yGdx/NjVho0LpX3mJ3Fg506swL3eOwEy3j+lj5bmoTHkgpuxcckqF5un1 zPOByLzeOD84c0HurnbINByFb7P+8tYp49oaKlq/Te78QFz/k6NIr/Gby1rAekcVkWuD 0JBF9fuvFycyOLZKCp7xmx8OajWmzPRT70U0CR0KNMYIUwvUGJfnFSkFzvQ9Sb1aFLxf pA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2g092m84ee-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 07 Feb 2018 21:19:47 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w17LJkSC020439 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 7 Feb 2018 21:19:46 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w17LJkrq016515; Wed, 7 Feb 2018 21:19:46 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 07 Feb 2018 13:19:46 -0800 Subject: [PATCH 4/4] xfs/348: dir->symlink corruption must not be allowed From: "Darrick J. Wong" To: eguan@redhat.com, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org Date: Wed, 07 Feb 2018 13:19:45 -0800 Message-ID: <151803838538.19313.18126711641830374635.stgit@magnolia> In-Reply-To: <151803835881.19313.17455678207236452557.stgit@magnolia> References: <151803835881.19313.17455678207236452557.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8798 signatures=668663 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=751 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802070269 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Darrick J. Wong A directory corrupted into a symlink will be caught by the upcoming local format ifork verifiers. Signed-off-by: Darrick J. Wong --- tests/xfs/348.out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/tests/xfs/348.out b/tests/xfs/348.out index f4a7a71..17d9be2 100644 --- a/tests/xfs/348.out +++ b/tests/xfs/348.out @@ -239,7 +239,7 @@ would have junked entry "DATA" in directory PARENT_INO would have junked entry "DIR" in directory PARENT_INO would have junked entry "EMPTY" in directory PARENT_INO would have junked entry "FIFO" in directory PARENT_INO -stat: 'SCRATCH_MNT/test/DIR' is a symbolic link +stat: cannot stat 'SCRATCH_MNT/test/DIR': Structure needs cleaning stat: 'SCRATCH_MNT/test/DATA' is a symbolic link stat: cannot stat 'SCRATCH_MNT/test/EMPTY': Structure needs cleaning stat: 'SCRATCH_MNT/test/SYMLINK' is a symbolic link