NetBSD Problem Report #52510
From www@NetBSD.org Mon Aug 28 11:20:40 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id A2BB87A1F5
for <gnats-bugs@gnats.NetBSD.org>; Mon, 28 Aug 2017 11:20:40 +0000 (UTC)
Message-Id: <20170828112039.BE4437A28C@mollari.NetBSD.org>
Date: Mon, 28 Aug 2017 11:20:39 +0000 (UTC)
From: coypu@sdf.org
Reply-To: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Subject: lfs_update_single does lfs_dino_setblocks without holding vn_lock
X-Send-Pr-Version: www-1.0
>Number: 52510
>Category: kern
>Synopsis: lfs_update_single does lfs_dino_setblocks without holding vn_lock
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 28 11:25:00 +0000 2017
>Originator: coypu
>Release: NetBSD 8.99.1
>Organization:
>Environment:
NetBSD localhost 8.99.1 NetBSD 8.99.1 (GENERIC) #0: Fri Aug 25 00:07:03 UTC 2017 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
This is the actual cause of the asserts mentioned in kern/52127:
System panicked: kernel diagnostic assertion "(oip->i_size != 0 || lfs_dino_getblocks(fs, oip->i_din) == 0)" failed: file "/usr/src/sys/ufs/lfs/lfs_inode.c", line 595 truncate to 0 but 31 blks/31 effblks
Reverting the hack produces these problems more often, especially while running firefox on LFS.
>How-To-Repeat:
>Fix:
WIP...
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.