From patchwork Wed Jul 11 16:49:19 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: 10520223 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 71EFC601D4 for ; Wed, 11 Jul 2018 16:49:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FEFB2945A for ; Wed, 11 Jul 2018 16:49:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5440E2945E; Wed, 11 Jul 2018 16:49:25 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, 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 E899529446 for ; Wed, 11 Jul 2018 16:49:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388108AbeGKQyf (ORCPT ); Wed, 11 Jul 2018 12:54:35 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:53480 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387759AbeGKQyf (ORCPT ); Wed, 11 Jul 2018 12:54:35 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6BGn3aB078259; Wed, 11 Jul 2018 16:49:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : mime-version : content-type; s=corp-2018-07-02; bh=8vkp8Lec7FwUR0DRr7ejv4FN4kLm+tvlM59llZorru8=; b=jP+uXqGxP1WQknlcnDT/z/iV/7aXfe4xQ0wAex6sEibDFDZFp1g77uvRB9fJHVVMv5e9 ZFeziiOrIBjam6iPx1GCpfHs7KqTRi5kfo7XziB8h/X8q2Xm1kUHIqvfRtu66hMj6KUi yKEZ0pU4wejJcPq53avXBSChU9LXuYTTZk8vIz6acrlpzsyDnbTurhzG6+hn6mO+VyLl Om6yJasfLYVoosewY8YyhVhb+pZ9cERFxi2/gB35PiF0Ve5s6pXc8hAUb9aBXhv3d6iE bpyOdf0uo0HEor+aguQfSD6qHvdWvCF/e1RaJ75Bc8HUAJZ3w6sKnwZ3V1rIzAklVmQ3 eg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2k2p7dy3eg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 Jul 2018 16:49:22 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6BGnM6x000640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 Jul 2018 16:49:22 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w6BGnMmp023874; Wed, 11 Jul 2018 16:49:22 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 11 Jul 2018 09:49:21 -0700 Date: Wed, 11 Jul 2018 09:49:19 -0700 From: "Darrick J. Wong" To: Eryu Guan Cc: xfs , fstests Subject: [PATCH] generic/499: add bfoster's alternate reproducer Message-ID: <20180711164919.GD5703@magnolia> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8951 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=563 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807110180 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 Add Brian Foster's alternate reproducer code for this problem so that we increase the chances that one of them will reproduce the race problem. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- tests/generic/499 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) -- 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/generic/499 b/tests/generic/499 index 99d6d308..e0b95871 100755 --- a/tests/generic/499 +++ b/tests/generic/499 @@ -33,6 +33,7 @@ _require_xfs_io_command "fzero" rm -f $seqres.full +# djwong's reproducer _scratch_mkfs >>$seqres.full 2>&1 _scratch_mount @@ -52,6 +53,24 @@ victim=$SCRATCH_MNT/a touch $victim $here/ltp/fsx --replay-ops $tmp.fsxops $victim > $tmp.output || cat $tmp.output +# bfoster/hch reproducer +_scratch_unmount +_scratch_mkfs_sized $((1024 * 1024 * 100)) >>$seqres.full 2>&1 +_scratch_mount + +$XFS_IO_PROG -fc "pwrite 0 100m" -c fsync $SCRATCH_MNT/file >>$seqres.full 2>&1 +rm -f $SCRATCH_MNT/file + +cat >> $tmp.fsxops << ENDL +truncate 0x0 0x1f0d6 0x380e1 +write 0x1ad87 0x6c99 0x180d6 +zero_range 0x14426 0xd3aa 0x21a20 keep_size +mapread 0x1f69a 0x2386 0x21a20 +ENDL + +touch $victim +$here/ltp/fsx --replay-ops $tmp.fsxops $victim > $tmp.output || cat $tmp.output + echo "Silence is golden" status=0 exit