Date: Thu, 23 Nov 2006 16:42:20 -0500 From: Kris Kennaway <kris@obsecurity.org> To: Bakul Shah <bakul@bitblocks.com> Cc: Anders Troback <freebsd@troback.com>, FreeBSD Ports <freebsd-ports@freebsd.org>, Kris Kennaway <kris@obsecurity.org> Subject: Re: Qemu crash... Message-ID: <20061123214220.GA84447@xor.obsecurity.org> In-Reply-To: <20061123212301.C7C445B3E@mail.bitblocks.com> References: <20061123211532.GB83751@xor.obsecurity.org> <20061123212301.C7C445B3E@mail.bitblocks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 23, 2006 at 01:23:01PM -0800, Bakul Shah wrote: > > The problem is that kldloading a module if it's already in the kernel > > can cause a panic. Also if the module becomes stale with respect to > > the running kernel, this approach can cause a lot of confusion. >=20 > I thought the following would do the trick: >=20 > kldstat -m aio >/devnull 2>&1 || kldload aio >=20 > > Something I'd like to see is > >=20 > > a) Fixing the kldload "double load" problems >=20 > See above. Works in -current at least. It "should" work, but people sometimes report that it doesn't (i.e. when they get the resulting panic). It at least needs to be investigated. There's still the "stale module" problem. > > b) That optional kernel subsystems register themselves with a sysctl, > > so that userland can easily determine whether a feature is present in > > the running kernel and take appropriate action (warn user, demand > > load, etc) if not. compat[45]x support is another such case; there's > > no way for a port to tell whether the kernel supports running such > > binaries, and if not then the user will just get an error when they > > try to run it. >=20 > Isn't kldstat -v & kldstat -m good enough? No, it only works for things that are modules: > grep -i compat /usr/src/sys/i386/conf/XOR options COMPAT_43 # Compatible with BSD 4.3 [KEEP THI= S!] options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_LINUX > kldstat -v | grep -i compat COMPAT_FREEBSD4 doesn't exist as a module so it's not registered there. Kris --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFZhW7Wry0BWjoQKURAmUsAKCwB7qtbU9wbskrrVmCNwvmiU69mQCgouFD 9VamnTp2LsYzvLEw0VbRUTU= =P+hD -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061123214220.GA84447>