From owner-freebsd-geom@FreeBSD.ORG Tue Feb 25 22:01:10 2014 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 08DEB9B7; Tue, 25 Feb 2014 22:01:10 +0000 (UTC) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id C2C5210BD; Tue, 25 Feb 2014 22:01:09 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:2572:353:cc5e:8eee]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 65E5B4AC2D; Wed, 26 Feb 2014 02:01:08 +0400 (MSK) Date: Wed, 26 Feb 2014 02:01:05 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <585146922.20140226020105@serebryakov.spb.ru> To: freebsd-geom@freebsd.org Subject: 3rd party geom module on 10-STABLE cause panics in biodone() MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: mav@FreeBSD.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: lev@FreeBSD.org List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Feb 2014 22:01:10 -0000 Hello, Freebsd-geom. My geom_raid5, which works rock-stable on 9-STABLE, causes panics in biodone() on 10-STABLE. It causes panic at line 3567, 3561 if ((bp->bio_flags & BIO_TRANSIENT_MAPPING) != 0) { 3562 bp->bio_flags &= ~BIO_TRANSIENT_MAPPING; 3563 bp->bio_flags |= BIO_UNMAPPED; 3564 start = trunc_page((vm_offset_t)bp->bio_data); 3565 end = round_page((vm_offset_t)bp->bio_data + bp->bio_length); 3566 pmap_qremove(start, OFF_TO_IDX(end - start)); 3567 vmem_free(transient_arena, start, end - start); 3568 atomic_add_int(&inflight_transient_maps, -1); 3569 } And these crashes are very bad: 9 of 10 times system could not make crashdump or reboot and 8 out of 10 times it shuts down video output (!). I was lucky to get one crashdump to find this line... What could I do wrong in my module? -- // Black Lion AKA Lev Serebryakov