From owner-freebsd-fs@freebsd.org Tue Feb 2 01:08:31 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4BCB1A97A5D for ; Tue, 2 Feb 2016 01:08:31 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id ECD87DCD for ; Tue, 2 Feb 2016 01:08:30 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) IronPort-PHdr: 9a23:c3yT5BE62O/GqrQ6BVzG9Z1GYnF86YWxBRYc798ds5kLTJ75r86wAkXT6L1XgUPTWs2DsrQf27WQ6vqrAjJIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/niKbrodaIPU1hv3mUX/BbFF2OtwLft80b08NJC50a7V/3mEZOYPlc3mhyJFiezF7W78a0+4N/oWwL46pyv+YJa6jxfrw5QLpEF3xmdjltvIy4/SXEGCiI4GAAW2MKkxwAKQXB6wzhWYm55ij9rfZ82yOXOeX5SLk1XXKp6KI9GzHyjyJSDT8y8ynyg8dziK9e6Ea7ohV0wIrZZamIM/Vjc6fFfZURTDwSDY5qSyVdD9bkPMM0BO0bMLMd9tGlqg== X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CqBAAGALBW/61jaINehH+IU7NMhg8CgXYQAQEBAQEBAQGBCYItghUBAQQjVhACAQgOCgICDRkCAlcCBIguryqOcQEBAQEBBQEBAQEBARp7hRSEN4QCEQGDHoE6BY4ZiFaPJoRCiFNEjXgCNyuCAhmBbx6IaTR8AQEB X-IronPort-AV: E=Sophos;i="5.22,382,1449550800"; d="scan'208";a="264164337" Received: from nipigon.cs.uoguelph.ca (HELO zcs1.mail.uoguelph.ca) ([131.104.99.173]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 01 Feb 2016 20:07:20 -0500 Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 7799A15F55D; Mon, 1 Feb 2016 20:07:20 -0500 (EST) Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id rxhM7V0BXwEC; Mon, 1 Feb 2016 20:07:20 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 15F7315F565; Mon, 1 Feb 2016 20:07:20 -0500 (EST) X-Virus-Scanned: amavisd-new at zcs1.mail.uoguelph.ca Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id uqTGqqTwGQf3; Mon, 1 Feb 2016 20:07:20 -0500 (EST) Received: from zcs1.mail.uoguelph.ca (zcs1.mail.uoguelph.ca [172.17.95.18]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id EF10915F55D; Mon, 1 Feb 2016 20:07:19 -0500 (EST) Date: Mon, 1 Feb 2016 20:07:19 -0500 (EST) From: Rick Macklem To: Konstantin Belousov Cc: FreeBSD Filesystems , Kirk McKusick Message-ID: <1375939202.186412561.1454375239581.JavaMail.zimbra@uoguelph.ca> In-Reply-To: <20160201221710.GR91220@kib.kiev.ua> References: <1696608910.154845456.1452438117036.JavaMail.zimbra@uoguelph.ca> <20160115095749.GC3942@kib.kiev.ua> <1817287612.162823118.1452909605928.JavaMail.zimbra@uoguelph.ca> <20160116191116.GI3942@kib.kiev.ua> <853868666.163292727.1452986431921.JavaMail.zimbra@uoguelph.ca> <20160117035858.GO3942@kib.kiev.ua> <855760730.165482737.1453177516248.JavaMail.zimbra@uoguelph.ca> <20160201221710.GR91220@kib.kiev.ua> Subject: Re: panic ffs_truncate3 (maybe fuse being evil) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.95.12] X-Mailer: Zimbra 8.0.9_GA_6191 (ZimbraWebClient - FF44 (Win)/8.0.9_GA_6191) Thread-Topic: panic ffs_truncate3 (maybe fuse being evil) Thread-Index: SEAY664I9MD6vHPsP86SX673OyeM9A== X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2016 01:08:31 -0000 Kostik wrote: > On Mon, Jan 18, 2016 at 11:25:16PM -0500, Rick Macklem wrote: > > Kostik wrote: > > > On Sat, Jan 16, 2016 at 06:20:31PM -0500, Rick Macklem wrote: > > > > Kostik wrote: > > > > > Was IO_EXT flag passed to the ffs_truncate() invocation where the > > > > > assert ffs_truncate3 fired ? > > > > > > > > > Yes. The only call to UFS_TRUNCATE() in ufs_inactive() specified both > > > > IO_EXT | IO_NORMAL. > > > > > > Please try this. > > > > > Still happens. I put the old panic test in, but with a printf() instead > > of panic() and the printf() happens with this patch. > > Btw, whenever I've looked, the entry is on the clean list. > > No other panics happen and the file system fsck's fine after the test run. > > I thought that you posted a stand-alone program which triggered the issue > on non-SU mounts, but I cannot find it. Does such program exist, or this > is just me misremembering ? > Nope. I do a test run using GlusterFS (a FreeBSD kernel build with the sources on GlusterFS) where the bricks are on UFS file systems with SU disabled. To be honest, I've been using ZFS for tests lately, so I'm not even sure I remember exactly what the test setup was, but I think the above is it. (It takes 2-3hrs for an occurrence to happen.) I did plan on taking a look at vinvalbuf(..V_ALT..), since that is what I think should be getting rid of the extended attribute block, but haven't done so. If you have another patch to try, email it and I'll try and reproduce the failure without/with the patch. rick