Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Oct 2016 18:02:14 -0400
From:      Anton Yuzhaninov <citrin@citrin.ru>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org>
Subject:   Re: UFS: unaligned read from GELI with 8k sectorsize
Message-ID:  <999638f9-3fee-82e3-d67f-cffef53b74e8@citrin.ru>
In-Reply-To: <20161001211025.GD38409@kib.kiev.ua>
References:  <f84b069b-aeee-ff3c-d4f9-e2fe3caaddb1@citrin.ru> <20161001114536.GX38409@kib.kiev.ua> <20161001115439.GY38409@kib.kiev.ua> <68a8ed6d-e302-799c-3d2c-1d85c48d07bf@citrin.ru> <20161001211025.GD38409@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2016-10-01 17:10, Konstantin Belousov wrote:
> What happens if you boot, mount your USB drive with 8k sectors, and try
> to execute some binary from it ?  E.g., try to execute the init.  I do
> not care about app errors (most likely it should complain about uid != 0
> or pid != 1), but rather want to know whether the image is activated or not.

I booted from a USB stick with patched kernel and attached geli with 8k 
sector.
It seems to be the image is not activated:

root@:~ # /mnt/ssdroot/sbin/ping
load: 0.16  cmd: csh 714 [pgrbwt] 11.46r 0.00u 0.00s 0% 3720k

root@:~ # procstat -k 714
   PID    TID COMM             TDNAME           KSTACK
procstat: sysctl: kern.proc.kstack: 714: Device busy

DDB backtrace for shell:
https://imgur.com/a/JDLry



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?999638f9-3fee-82e3-d67f-cffef53b74e8>