Re: Protecting global lookup array

2010-02-07 Thread Alistair Crooks
On Mon, Feb 08, 2010 at 11:40:50AM +0900, Masao Uebayashi wrote: > I'm adding another list of vm_physseg for device pages. It's a list or array > of physical address segments. They're frequently accessed by VM to lookup > a physical address from a page metadata (vm_page) or vice versa. > > Those

Re: enumeration of bicycle sheds

2010-02-18 Thread Alistair Crooks
On Thu, Feb 18, 2010 at 01:18:54PM +, Iain Hibbert wrote: > actually caused warnings then I would be more inclined to use it. In the > meantime, I generally prefer #define but am not greatly attached. whilst bicycles are a - particularly - sore point for me right now, the reason that used to b

Re: Extend "struct malloc_type" for extended KMEMSTATS?

2010-03-31 Thread Alistair Crooks
On Wed, Mar 31, 2010 at 03:16:59PM +, Christos Zoulas wrote: > In article <20100331.151226.59481996...@uninett.no>, > Havard Eidnes wrote: > >Comments? > > >From my reading of the code ku_indx ranges from MINBUCKET (5 or 4 > depending) on _LP64 to MINBUCKET + 15. I would #define MAXBUCKET >

Re: rump is complete

2011-03-22 Thread Alistair Crooks
On Tue, Mar 22, 2011 at 10:34:28AM +, Stephen Borrill wrote: > On Tue, 22 Mar 2011, Christoph Egger wrote: > [snip] > >I'm also interested in how to use qcow images > >to run qemu / xen guests. > > That's probably more jmcneill's libvdisk stuff which uses pud(4) so that > a userland process c

Re: Seventh Edition(V7) filesystem support.

2011-05-25 Thread Alistair Crooks
On Tue, May 24, 2011 at 10:48:40PM +0900, UCHIYAMA Yasushi wrote: > This filesystem purpose I intended is that file exchanging with small computer > (such as H8/300, ARM7TDMI...)system. as alternative of FAT. and also, > Tri-endian support. It can mount PDP-11 V7 disk image. > > http://www.vnop.ne

Re: KAUTH_PROCESS_SCHEDULER_*AFFINITY restricted to root in default secmodel?

2011-08-28 Thread Alistair Crooks
On Mon, Aug 29, 2011 at 08:44:39AM +1000, matthew green wrote: > > > I've just had my first occasion to play with the processor affinity > > code, via porting some code from linux. It was very straightforward, > > but there's one glaring difference: linux doesn't (by default, anyway) > > requ

Re: Addition to kauth(9) framework

2011-08-29 Thread Alistair Crooks
On Mon, Aug 29, 2011 at 09:19:11AM -0400, Christos Zoulas wrote: > On Aug 29, 7:54pm, m...@eterna.com.au (matthew green) wrote: > -- Subject: re: Addition to kauth(9) framework > > | > | > > In article <20110829003259.913f014a...@mail.netbsd.org>, > | > > YAMAMOTO Takashi wrote: > | > >>hi, > |

Re: Implementing mount_union(8) into vfs (for -o union)?

2012-01-28 Thread Alistair Crooks
On Sat, Jan 28, 2012 at 09:47:16PM +0200, Alan Barrett wrote: > On Sat, 28 Jan 2012, Julian Fagir wrote: > >I've just been trying to mount a tmpfs over a read-only root > >file system. Unfortunately, this won't work just by mounting a > >tmpfs with option union over the root file system. You'd h

Re: Implementing mount_union(8) into vfs (for -o union)?

2012-01-28 Thread Alistair Crooks
On Sat, Jan 28, 2012 at 10:33:06PM +0100, Julian Fagir wrote: > There is no src/distrib/embedded? sorry, src/distrib/utils/embedded

Re: Lightweight support for instruction RNGs

2015-12-19 Thread Alistair Crooks
Have you tried running this with pkgsrc/math/dieharder? I'd be interested to see the results (the current version in pkgsrc -- 3.31.1 -- is much better than the previous one, and displays its results in a much more useful way than previously). Not the be-all and end-all, but still worthwhile runnin

Re: Lightweight support for instruction RNGs

2015-12-19 Thread Alistair Crooks
/random |501 /dev/urandom|| #=# #=# Best, Alistair On 19 December 2015 at 16:46, Thor Lancelot Simon wrote: > On Sat, Dec 19, 2015 at 04:42:54PM -0800, Alistair Crooks wrote: >> Have you tried running this with pkgsrc/math/dieharder? I'd be >> interested to see

Re: Lightweight support for instruction RNGs

2015-12-19 Thread Alistair Crooks
On 19 December 2015 at 17:10, Thor Lancelot Simon wrote: > On Sat, Dec 19, 2015 at 04:54:20PM -0800, Alistair Crooks wrote: >> The point is to see if RDRAND plus other inputs does not regress to >> produce an output that is, in some way, "predictable". And while >

Re: Lightweight support for instruction RNGs

2015-12-21 Thread Alistair Crooks
he output from the random device. The best way I've found so far is by running dieharder; if there are other ways, or similar packages, I'd love to hear about them. On 19 December 2015 at 18:33, Thor Lancelot Simon wrote: > On Sat, Dec 19, 2015 at 05:23:58PM -0800, Alistair Crooks wrot

Re: Lightweight support for instruction RNGs

2015-12-22 Thread Alistair Crooks
-partially-the-nsas-fault On 21 December 2015 at 16:38, Thor Lancelot Simon wrote: > On Mon, Dec 21, 2015 at 09:28:40AM -0800, Alistair Crooks wrote: >> I think there's some disconnect here, since we're obviously talking >> past each other. >> >> My concern is t

Re: FWIW: sysrestrict

2016-07-23 Thread Alistair Crooks
ISTM that your sysretsrict suffers from one of the same drawbacks as pledge/tame/name-du-jour - the restrictions are being burned into the binary at compile/link time. That might be fine for system binaries (but some people download distributions from the project servers) that are built locally - w

Re: Generic crc32c support in kernel?

2016-08-12 Thread Alistair Crooks
Yeah, a lib would be the best place for this - as well as ext\dfs, iscsi and sctp use crc32c, and there will probably be more users. Would also be good to get this shared with userland via src/common On 12 August 2016 at 12:24, Jaromír Doleček wrote: > Hi, > > I'm working on ext2fs code now, ext

Re: Generic crc32c support in kernel?

2016-08-13 Thread Alistair Crooks
I think we're talking at cross-purposes. The zlib function calculates crc32 and was the cause of fun in the bootblocks; Jaromir was talking about adding the crc32c hashes, used in ext2fs, iscsi and sctp. On 12 August 2016 at 23:38, Martin Husemann wrote: > On Fri, Aug 12, 2016 at 11:30:15PM +02

Re: GSOC 2012 project clarification

2012-04-02 Thread Alistair Crooks
On Mon, Apr 02, 2012 at 08:48:35PM -0400, Matthew Mondor wrote: > > > So by > > > generating some pseudo random numbers we can erase the previous secure > > > data. > > > > I'm not sure that pseudo-random numbers help security in the general > > case, compared to just zeros. For a plain harddisk,

Adding a new file system

2012-06-09 Thread Alistair Crooks
I recently started writing a file system for some specific use-cases, and had to make a number of changes. There was a request that I write up the steps that needed to be taken, and so this tries to outline them. For the purposes of this write-up, we'll call the new file system NEWfs 1. the file

Re: Adding a new file system

2012-06-09 Thread Alistair Crooks
On Sat, Jun 09, 2012 at 05:29:02PM +0900, Izumi Tsutsui wrote: > agc@ wrote: > > > I recently started writing a file system for some specific use-cases, > > and had to make a number of changes. There was a request that I write > > up the steps that needed to be taken, and so this tries to outline

Re: SAS scsibus target numbering

2012-07-26 Thread Alistair Crooks
On Fri, Jul 27, 2012 at 07:35:19AM +1000, matthew green wrote: > > > I have a (mpt) SAS with seven discs connected. > > The discs attach as sd0..sd6, but the SCSI target numbers are 0..5 and 7. > > It appears to me that someone is skippig ID 6 for the controller. > > It doesn't hurt too much, but

Re: iscsi?

2013-02-27 Thread Alistair Crooks
On Thu, Feb 28, 2013 at 01:27:57AM -0500, Mouse wrote: > >> [iSCSI initiator support?] > > > I'm pretty sure iscsi-initiator support is only provided for NetBSD > > through the netbsd-iscsi-initiator package in the net category of the > > pkgsrc tree. Because it relies on the fuse interface to ge

Re: MACHINE_ARCH on NetBSD/evbearmv6hf-el current

2013-10-26 Thread Alistair Crooks
On Sat, Oct 26, 2013 at 11:10:52AM -0700, Matt Thomas wrote: > > On Oct 26, 2013, at 10:54 AM, Izumi Tsutsui wrote: > > >>> By static MACHINE_ARCH, or dynamic sysctl(3)? > >>> If dynamic sysctl(3) is prefered, which node? > >> > >> hw.machine_arch > >> > >> which has been defined for a long lo

hf/sf [Was Re: CVS commit: pkgsrc/misc/raspberrypi-userland]

2013-11-10 Thread Alistair Crooks
On Sun, Nov 10, 2013 at 04:56:04AM +, Jun Ebihara wrote: > Module Name: pkgsrc > Committed By: jun > Date: Sun Nov 10 04:56:04 UTC 2013 > > Modified Files: > pkgsrc/misc/raspberrypi-userland: Makefile > > Log Message: > support earmhf. > ONLY_FOR_PLATFORM= NetBSD-*-*arm* >

Re: hf/sf [Was Re: CVS commit: pkgsrc/misc/raspberrypi-userland]

2013-11-10 Thread Alistair Crooks
On Sun, Nov 10, 2013 at 01:20:41PM -0800, Matt Thomas wrote: > Exactly. with hf, floating point values are passed in floating point > registers. That can not be hidden via a library (this works on x86 > since the stack has all the arguments). Thanks, I understand. But... there has to be a di

Re: hf/sf [Was Re: CVS commit: pkgsrc/misc/raspberrypi-userland]

2013-11-11 Thread Alistair Crooks
On Mon, Nov 11, 2013 at 10:18:29AM -0500, Thor Lancelot Simon wrote: > On Sun, Nov 10, 2013 at 08:38:27PM +0100, Alistair Crooks wrote: > > > > But in the big picture, having hf and sf versions of a platform's > > userland, in the year 2013, is, well, sub-optimal. I

Re: hf/sf [Was Re: CVS commit: pkgsrc/misc/raspberrypi-userland]

2013-11-11 Thread Alistair Crooks
On Sun, Nov 10, 2013 at 01:48:12PM -0800, Matt Thomas wrote: > > On Nov 10, 2013, at 1:39 PM, Alistair Crooks wrote: > > > On Sun, Nov 10, 2013 at 01:20:41PM -0800, Matt Thomas wrote: > >> Exactly. with hf, floating point values are passed in floating point > >

Re: hf/sf [Was Re: CVS commit: pkgsrc/misc/raspberrypi-userland]

2013-11-12 Thread Alistair Crooks
On Mon, Nov 11, 2013 at 02:23:11PM -0500, Thor Lancelot Simon wrote: > It seems to me this is largely a tempest in a teapot that could be > dealt with by a simple table, somewhere obvious on the web site, > showing the mapping necessary to download a working kernel and > binaries for each common CP

Re: To test presence of CVE-2018-6922 ( TCP vulnerability) in NetBSD5.1

2018-08-11 Thread Alistair Crooks
On Fri, 10 Aug 2018 at 08:01, Ripunjay Tripathi wrote: > Thanks for the link. > > On Fri, Aug 10, 2018 at 3:19 PM Maxime Villard wrote: > >> Le 10/08/2018 à 11:18, Ripunjay Tripathi a écrit : >> > I am trying to test presence of CVE-2018-6922 [...] >> >> NetBSD 5 is not supported anymore, and Ne

Re: style change: explicitly permit braces for single statements

2020-07-17 Thread Alistair Crooks
Just to get back to the original subject - fully support {} around single statements - have been doing that in my own code for ages. Would be great to have that codified (ha!) On Thu, 16 Jul 2020 at 12:01, Rhialto wrote: > On Thu 16 Jul 2020 at 13:08:49 -0400, Ted Lemon wrote: > > It sounds lik

Re: Proposal: Deprecate (or rename) extsrc/

2022-01-08 Thread Alistair Crooks
On Sat, 8 Jan 2022 at 00:29, matthew green wrote: > > I propose that we deprecate or remove the "extsrc/" tree, > > as the name name-complete conflicts with "external/". > > yes, please. > > Count me in as well - the name completion collision has always annoyed me. Thanks, Al