From owner-freebsd-fs@freebsd.org Mon Oct 3 17:14:36 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 D532CAF3A1A for ; Mon, 3 Oct 2016 17:14:36 +0000 (UTC) (envelope-from citrin@citrin.ru) Received: from hz.citrin.ru (hz.citrin.ru [88.198.212.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 476A5227 for ; Mon, 3 Oct 2016 17:14:35 +0000 (UTC) (envelope-from citrin@citrin.ru) Received: from [192.168.0.144] (c-24-60-168-172.hsd1.ct.comcast.net [24.60.168.172]) by hz.citrin.ru (Postfix) with ESMTPSA id 8FDB8286FFD; Mon, 3 Oct 2016 17:14:24 +0000 (UTC) Subject: Re: UFS: unaligned read from GELI with 8k sectorsize To: Konstantin Belousov References: <20161001114536.GX38409@kib.kiev.ua> <20161001115439.GY38409@kib.kiev.ua> <68a8ed6d-e302-799c-3d2c-1d85c48d07bf@citrin.ru> <20161001211025.GD38409@kib.kiev.ua> <999638f9-3fee-82e3-d67f-cffef53b74e8@citrin.ru> <20161002191349.GH38409@kib.kiev.ua> Cc: "freebsd-fs@freebsd.org" From: Anton Yuzhaninov Message-ID: Date: Mon, 3 Oct 2016 13:14:15 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20161002191349.GH38409@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrin.ru; s=s0; t=1475514865; bh=HhGeF1CHH/jMyvcNhJM+b1pKsxShowLp65+kgI+pZSo=; h=Subject:To:References:Cc:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=2J9Ty74jDMxrJzyT0GVUl0t+1D7Ewr0X5gByhr6vQq2r7tZ0RtpdZwb49D4GQaepImZ1EzHfSma+eoaPh7+MzWOPTtEE7g732vkJPXun645IfTpU6pYlfLtLNP3S2XApqHCDCdqpYkVLx3QKg5Pdr+OZJVdbmDIqEuH/B6k5Uxw= X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2016 17:14:36 -0000 On 2016-10-02 15:13, Konstantin Belousov wrote: > I see. I was able to reproduce it with gnop -S 8k over swap-backed md. > The following patch worked for me. > > diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c > index 2af5383..c9cd4dc 100644 > --- a/sys/ufs/ffs/ffs_vnops.c > +++ b/sys/ufs/ffs/ffs_vnops.c > @@ -118,14 +118,14 @@ static vop_listextattr_t ffs_listextattr; > static vop_openextattr_t ffs_openextattr; > static vop_setextattr_t ffs_setextattr; > static vop_vptofh_t ffs_vptofh; > - > +static vop_getpages_t ffs_getpages; > > /* Global vfs data structures for ufs. */ > struct vop_vector ffs_vnodeops1 = { > .vop_default = &ufs_vnodeops, > .vop_fsync = ffs_fsync, > .vop_fdatasync = ffs_fdatasync, > - .vop_getpages = vnode_pager_local_getpages, > + .vop_getpages = ffs_getpages, With this patch I can exec various binaries from 8k geli when I boot from a USB stick, but can't boot with root on this geli. Boot process stops after init exec. DDB bt for init: https://imgur.com/a/FXuzw ps in DDB shows init in running state (CPU2).