Re: Bug in fs/cd9660 raises questions about inode number computing

2014-05-10 Thread Matthew Mondor
On Sat, 10 May 2014 08:11:40 +0200 Thomas Schmitt scdbac...@gmx.net wrote: kern/48787 can be counted as a successful one. kern/48797 demonstrates that i need to free myself more from expectations which occupied my mind when studying isofs of a different kernel. Thanks to Martin Husemann for

Re: Bug in fs/cd9660 raises questions about inode number computing

2014-05-09 Thread Matthew Mondor
On Tue, 06 May 2014 12:20:53 +0200 Thomas Schmitt scdbac...@gmx.net wrote: How to properly submit them ? A PR (Problem Report) in the kern category with an attached unified diff would seem adequate if you cannot commit the changes yourself. Sorry if that is already obvious to you.

Re: Vnode API change: add global vnode cache

2014-05-09 Thread Matthew Mondor
On Wed, 30 Apr 2014 17:15:16 +0200 J. Hannken-Illjes hann...@eis.cs.tu-bs.de wrote: vcache_get(mp, key, key_len, vpp) to lookup and possibly load a vnode. vcache_lookup(mp, key, key_len, vpp) to lookup a vnode. vcache_remove(mp, key, key_len) to remove a vnode from the cache.

Re: Vnode API change: add global vnode cache

2014-05-09 Thread Matthew Mondor
On Sat, 10 May 2014 01:29:47 + Taylor R Campbell campbell+netbsd-tech-k...@mumble.net wrote: Is it expected in vcache_common() for the interlock to remain held even if returning an error? vget unconditionally drops the interlock, so it will never remain held, error or not. Oh,

Re: Panic when deleting large number of files inside DomU

2014-05-06 Thread Matthew Mondor
On Wed, 19 Sep 2012 12:00:45 +0200 Roger Pau Monne roger@citrix.com wrote: Yes, WAPBL enabled. I will fill a PR about this if there are no news. Was a PR already filed for this, or was the reason discovered and fixed since? A quick search showed one of your closed Xen related PRs but it

Re: NetBSD-5 appears to have forgotten how to execute 0.9A binaries

2014-05-06 Thread Matthew Mondor
On Tue, 11 Sep 2012 09:45:22 -0700 buh...@lothlorien.nfbcal.org (Brian Buhrow) wrote: provide further results. I assume a fix would want to be pulled up,assuming I find it, on the grounds that it's a security fix. I'll also see about trying -current and NetBSD-6, but I'm guessing those are

Re: Does options P1003_1B_SEMAPHORE still exist?

2014-05-06 Thread Matthew Mondor
On Mon, 17 Sep 2012 10:42:49 -0700 (PDT) Paul Goyette p...@whooppee.com wrote: Sorry for the long delay, I'm slowly recouping with tech-kern mail. I recently noticed that there is a built-in ksem module that includes sys/kern/uipc_sem.c The man page for sem(4) states that this code should

Re: NetBSD-5 appears to have forgotten how to execute 0.9A binaries

2014-05-06 Thread Matthew Mondor
On Tue, 6 May 2014 07:56:22 -0700 Brian Buhrow buh...@nfbcal.org wrote: hello. There was a fix implemented for the original problem by Chuck Silvers and tested by me. I'll look to see if I can find the commits. I'm not sure if it was documented in a pr or not or if it got pulled up to

Re: resource leak in linux emulation?

2014-05-05 Thread Matthew Mondor
On Mon, 5 May 2014 15:43:56 +1200 Mark Davies m...@ecs.vuw.ac.nz wrote: On Mon, 05 May 2014, Christos Zoulas wrote: I wrote: So can someone suggest where exactly the patch should go. And isn't proc_lock held at this point (entered at line 344, exit at line 569)? How about this?

Re: asymmetric smp

2014-05-05 Thread Matthew Mondor
On Mon, 5 May 2014 01:10:24 -0400 Matthew Mondor mm_li...@pulsar-zone.net wrote: which some CPUs might have trouble with (i.e. RAS)... I think that what I meant was CAS -- Matt

Re: asymmetric smp

2014-05-04 Thread Matthew Mondor
On Wed, 02 Apr 2014 17:21:02 +0200 Johnny Billquist b...@softjar.se wrote: On 2014-04-02 16:10, John Nemeth wrote: On Apr 2, 1:55pm, Johnny Billquist wrote: } The root fs in on nfs, as I'm running the machine diskless. Disk is } served from a -current NetBSD/alpha system sitting right

Re: 6.0_BETA-6.0_BETA2 rename

2012-07-30 Thread Matthew Mondor
On Mon, 30 Jul 2012 16:59:14 +0200 Edgar Fuß e...@math.uni-bonn.de wrote: Just out of curiosity: Why was 6.0_BETA renamed 6.0_BETA2 recently? The release of second beta binaries: http://blog.netbsd.org/tnf/entry/netbsd_6_0_beta2_binaries After the beta series, release candidates might be

Re: Core statement on directory naming for kernel modules

2012-07-28 Thread Matthew Mondor
On Fri, 27 Jul 2012 17:28:14 -0700 jnem...@victoria.tc.ca (John Nemeth) wrote: On Dec 17, 1:58pm, Matthew Mondor wrote: } This reminds me though: why/how does sysctl/kern.module.autoload } default to 1 for non-MODULAR kernels (at least on netbsd-6)? Or an } alternative question

Re: Core statement on directory naming for kernel modules

2012-07-27 Thread Matthew Mondor
On Fri, 27 Jul 2012 13:57:52 + (UTC) Geoff Wing ma...@primenet.com.au wrote: John Nemeth jnem...@victoria.tc.ca typed: : .. Being able to properly unload a built-in module would be a nice : feature. This sounds a bit like a possible security problem, though presumably/hopefully

Re: Quota on tmpfs

2012-07-17 Thread Matthew Mondor
On Tue, 17 Jul 2012 20:54:28 + (UTC) mlel...@serpens.de (Michael van Elst) wrote: I would also guess that sparse files are very rarely used. But for disk usage purposes you want to consider real disk usage including overhead because the quotas are mostly used to partition the available

Re: Quota on tmpfs

2012-07-17 Thread Matthew Mondor
On Tue, 17 Jul 2012 21:26:44 -0400 Matthew Mondor mm_li...@pulsar-zone.net wrote: A scenario in which they're frequently used is block-based file system s/file system/file/ :) -- Matt

Re: Quota on tmpfs

2012-07-13 Thread Matthew Mondor
On Fri, 13 Jul 2012 07:54:07 + David Holland dholland-t...@netbsd.org wrote: On Thu, Jul 12, 2012 at 09:33:42PM -0400, Matthew Mondor wrote: Yet another hack would be to create a sparse ffs image under a tmpfs, mounted with quotas via vnd, but evaluating its ideal size might

Re: Quota on tmpfs

2012-07-13 Thread Matthew Mondor
On Fri, 13 Jul 2012 08:03:42 + David Holland dholland-t...@netbsd.org wrote: I believe the situation with both mfs and lfs is that some pieces of the support are in place but not others. It was clear when hacking up the code that neither had actually been tried by anyone in a long, long

Re: Quota on tmpfs

2012-07-12 Thread Matthew Mondor
On Thu, 12 Jul 2012 16:17:42 +0200 Edgar Fuß e...@math.uni-bonn.de wrote: How do I enable new quota on a tmpfs? A possible solution might be a per-user tmpfs, each limited using -s... of course, it's more complex to manage though. If I remember there is some optional support for symbolic links

Re: Path to kernel modules (second attempt)

2012-07-08 Thread Matthew Mondor
On Sun, 8 Jul 2012 17:57:00 +0200 Edgar Fuß e...@math.uni-bonn.de wrote: Please not /kernel as it was already mentioned, it is too similar to /kern. What about /netbsd? E.g. /netbsd/6.0_BETA/{modules,kernel,firmware}. /netbsd/amd64/6.0/GENERIC/{modules,kernel,firmware} :) ? But can the

Re: Path to kernel modules (second attempt)

2012-07-07 Thread Matthew Mondor
On Sat, 07 Jul 2012 22:46:50 +0200 Jean-Yves Migeon jeanyves.mig...@free.fr wrote: On 07.07.2012 21:57, Mindaugas Rasiukevicius wrote: Hello, Regarding the PR/38724, I propose to change the path to /kernel/. Can we reach some consensus quickly for netbsd-6? /kernel is way to close to

Re: Path to kernel modules (second attempt)

2012-07-07 Thread Matthew Mondor
On Sat, 7 Jul 2012 20:54:12 -0600 Warner Losh i...@bsdimp.com wrote: But it kinda fails with multiple kernels. On FreeBSD, we went with /boot/$KERNNAME/kernel for the kernel, with all the modules associated with it in /boot/$KERNNAME. By default, we load /boot/kernel/kernel and the loader

Re: Problem with chown

2012-06-28 Thread Matthew Mondor
On Wed, 27 Jun 2012 23:20:36 - David Lord net...@lordynet.org wrote: I tried NetBSD-6-BETA2 but had too many problems. Attempted reinstalls of NetBSD-5 have all obviously failed. Indeed, downgrading is usually more problematic, postinstall not being of much use in this case -- Matt

Re: per-mount maxvnodes

2012-06-10 Thread Matthew Mondor
On Thu, 7 Jun 2012 17:50:58 +0200 Manuel Bouyer bou...@antioche.eu.org wrote: On Thu, Jun 07, 2012 at 11:09:26AM -0400, Mouse wrote: Therefore comes the idea to have a per-mount maxvnodes. I tried implementing it, the biggest problem is how to set the value. sysctl

Re: Rump FS throughput

2012-06-02 Thread Matthew Mondor
On Fri, 1 Jun 2012 22:30:10 +0200 Thomas Klausner w...@netbsd.org wrote: On Thu, May 31, 2012 at 01:45:53PM -0400, Matthew Mondor wrote: Although it's useful to mount random media more safely than it would be using kernel-space, I noticed that using 64KB reads, the kernel cd9660

Re: link-sets in modules

2012-05-31 Thread Matthew Mondor
On Mon, 28 May 2012 06:51:43 -0700 (PDT) Paul Goyette p...@whooppee.com wrote: I _do_ like part 2 of your proposal - linking the core kernel first, and then re-linking with selected modules. I also think that this would be very nice -- Matt

Re: Should kqueue descriptors work outsid of the creating process?

2012-05-31 Thread Matthew Mondor
On Thu, 31 May 2012 10:38:38 -0400 (EDT) Mouse mo...@rodents-montreal.org wrote: Recently we found out (PR kern/46463) that kqueue() file descriptors, which originaly were designed to be local process only objects, could be passed with SCM_RIGHTS messages to other processes. [...] I

Re: Should kqueue descriptors work outsid of the creating process?

2012-05-31 Thread Matthew Mondor
On Thu, 31 May 2012 14:40:44 -0400 Matthew Mondor mm_li...@pulsar-zone.net wrote: What I can see is that the implications of inheriting this special descriptor are quite more complex than for normal FDs... Which makes me think that it very well could be a design decision not to inherit

Re: CVS commit: src/tests/modules

2012-03-22 Thread Matthew Mondor
On Wed, 21 Mar 2012 21:47:31 + David Holland dholland-t...@netbsd.org wrote: But, how about kern.module.supported or kern.module.canload or something? I like the kern.module.supported, or perhaps kern.module.enabled, as I have systems built without module loading support yet still have a

Re: Rewriting kernfs and procfs - GSoC'12

2012-03-20 Thread Matthew Mondor
On Tue, 20 Mar 2012 10:35:13 +0900 Julio Merino j...@julipedia.org wrote: Personally, I'd also like to see this project done. It was at one point an idea I wanted to work on, but then lost the time to do so and forgotten about it completely. I was initially reticent to reply to this thread

netbsd-6/amd64 and TLS

2012-03-18 Thread Matthew Mondor
Hello, I stumbled upon something interesting tonight when testing a new unstable ECL (Embeddable Common Lisp). When built with TLS support (--with-__threads=yes), a noticeable slowdown can be experienced compared to with --with-_threads=no. For now, I'm not sure yet if it has to do with a bug

Re: Problem with install of NetBSD-6 from cd on i386 siside

2012-03-07 Thread Matthew Mondor
On Wed, 07 Mar 2012 15:14:52 - David Lord net...@lordynet.org wrote: I have since obtained netbsd-6 src via cvs on a different system, built a release, copied sets over network and updated target pc to NetBSD-6. I am able to mount the cdrom and tar -tzvf comp.tgz initially gave same error

Re: Respawn crashed PUFFS filesystems?

2012-02-11 Thread Matthew Mondor
On Sun, 12 Feb 2012 01:02:38 -0500 (EST) Mouse mo...@rodents-montreal.org wrote: Of course the feature would be broken in some cases, but we could make the thing optional using a vfs.puffs.respawn sysctl, which would contain a colon-separated mount points subjected to respawn. What

Re: extattr namespaces

2012-02-06 Thread Matthew Mondor
On Mon, 6 Feb 2012 09:51:19 + Emmanuel Dreyfus m...@netbsd.org wrote: We ahve two extended attributes API in tree: one from FreeBSD and one from Linux. We are about to toss the FreeBSD one in favor of the Linux one. That is easy now since we never had working extended attributes in a

Re: Adding an option to avoid SIGPIPE for all file descriptors

2012-01-25 Thread Matthew Mondor
On Wed, 25 Jan 2012 12:25:46 -0500 Steven Bellovin s...@cs.columbia.edu wrote: On Jan 23, 2012, at 11:05 58PM, Matt Thomas wrote: On Jan 23, 2012, at 7:58 PM, Steven Bellovin wrote: I also wonder whether we should also have a note that disabled SIGPIPE. similar to what paxctl

Re: Possible incorrect usage of STACKALIGN in kern_exec

2012-01-24 Thread Matthew Mondor
On Tue, 24 Jan 2012 21:01:49 +0100 Martin Husemann mar...@duskware.de wrote: On Tue, Jan 24, 2012 at 08:21:42PM +0100, Paul Fleischer wrote: Is the usage of STACKALIGN indeed incorrect in this situation, or am I missing the big picture? I stumbled across this when revamping execve1 for

Re: Reduce KAUTH_GENERIC_ISSUSER usage (batch 1)

2012-01-18 Thread Matthew Mondor
On Tue, 17 Jan 2012 20:36:35 -0500 Elad Efrat e...@netbsd.org wrote: Attached is a diff that reduces the use of KAUTH_GENERIC_ISSUSER. I plan to commit it a week or so after the branch. Thanks for working on this. While I understand most changes, after looking at the diff I wondered: anyone

Re: buffer cache ufs changes (preliminary ffsv2 extattr support)

2012-01-16 Thread Matthew Mondor
On Sun, 15 Jan 2012 15:21:40 -0500 (EST) Mouse mo...@rodents-montreal.org wrote: However, I think that constitutes a good implementation of a bad idea. This makes a file no longer a long list of octets; it becomes multiple long lists of octets. The Mac did this, with resource forks and data

Re: PUFFS and existing file that get ENOENT

2012-01-16 Thread Matthew Mondor
On Mon, 16 Jan 2012 10:56:33 + (UTC) y...@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote: when the kernel wants to cache other files. ie. whenever the kernel decides to reclaim it. :-) you can increase the chance by running while :;do sysctl -w kern.maxvnodes=0; done or something like

Re: NetBSD/usermode (Was: CVS commit: src)

2011-12-31 Thread Matthew Mondor
On Sat, 31 Dec 2011 17:20:16 + David Holland dholland-t...@netbsd.org wrote: The other obvious approach is to add one or more new ptrace operations to provide proper/adequate/better support for intercepting system calls. This is probably a more useful facility in the long run, and it

Re: close and ERESTART

2011-12-26 Thread Matthew Mondor
On Mon, 26 Dec 2011 05:19:22 + Taylor R Campbell campbell+net...@mumble.net wrote: + + error = fd_close(SCARG(uap, fd)); + if (error == ERESTART) + error = EINTR; + + return error; If it's also guaranteed that the file descriptor state is closed in the event of

Re: cloning device close race?

2011-12-19 Thread Matthew Mondor
On Sun, 18 Dec 2011 23:40:33 -0500 Matthew Mondor mm_li...@pulsar-zone.net wrote: On Sun, 18 Dec 2011 22:34:03 -0500 Thor Lancelot Simon t...@panix.com wrote: If you run 10 or so copies at once on a multiprocessor system with DIAGNOSTIC, you'll see a lot of this message emitted

Re: cloning device close race?

2011-12-18 Thread Matthew Mondor
On Sun, 18 Dec 2011 22:34:03 -0500 Thor Lancelot Simon t...@panix.com wrote: If you run 10 or so copies at once on a multiprocessor system with DIAGNOSTIC, you'll see a lot of this message emitted: vrelel: missing VOP_CLOSE(): vnode @ 0xfe801e73cb28, flags

Re: [RFC] getgroups2 system call

2011-12-13 Thread Matthew Mondor
On Wed, 14 Dec 2011 07:04:06 +0100 m...@netbsd.org (Emmanuel Dreyfus) wrote: - a fixed lentgh header is highly desirable for performance optimization. For instance glusterfs fetches the header and the data using readv(2) with an iovec that has two slots. That way it gets write date aligned on

Re: Lost file-system story

2011-12-11 Thread Matthew Mondor
On Fri, 9 Dec 2011 22:12:25 -0500 Donald Allen donaldcal...@gmail.com wrote: Linux systems do periodically write ext2 meta-data to the disk. And ext2 fsck has always been very good, and has gotten better over the years, due to the efforts of Ted T'so. I first installed Linux in 1993, almost

Re: Use consistent errno for read(2) failure on directories

2011-12-09 Thread Matthew Mondor
On Fri, 9 Dec 2011 09:33:54 +0100 Nicolas Joly nj...@pasteur.fr wrote: According to the online OpenGroup specification for read(2) available at [1], read(2) on directories is implementation dependant. If unsupported, it shall fail with EISDIR. In the case of sys/rump/librump/rumpvfs/rumpfs.c,

Re: Use consistent errno for read(2) failure on directories

2011-12-09 Thread Matthew Mondor
On Fri, 9 Dec 2011 11:56:32 +0100 Nicolas Joly nj...@pasteur.fr wrote: On Fri, Dec 09, 2011 at 04:36:55AM -0500, Matthew Mondor wrote: In the case of sys/rump/librump/rumpvfs/rumpfs.c, is it possible that the underlaying implementation could previously decide if it could support read(2

Re: Lost file-system story

2011-12-09 Thread Matthew Mondor
On Fri, 9 Dec 2011 15:50:35 -0500 Donald Allen donaldcal...@gmail.com wrote: were not designed to do this. The reason I'm beating on this is that I would have liked to use NetBSD for the application I have in mind, but I need the performance improvement that async provides (my tests show

Re: emap

2011-12-04 Thread Matthew Mondor
On Mon, 5 Dec 2011 04:19:13 + (UTC) y...@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote: Although I didn't think it'd be necessary to say so until this point, I admit that I myself didn't really understand what Takashi said about recommending amd64 over i386. If the hardware is 32-bit, or

Re: secmodel_register(9) API

2011-11-29 Thread Matthew Mondor
On Tue, 29 Nov 2011 02:51:38 +0100 Jean-Yves Migeon j...@netbsd.org wrote: Reviews before merge welcome. If nobody raises his voice, I'll proceed to commit it at the end of the week. Hello, I admit not having audited the kauth and secmodel code recently, the last time being shortly after

Re: emap

2011-11-25 Thread Matthew Mondor
On Fri, 25 Nov 2011 23:25:24 +0400 Aleksej Saushev a...@inbox.ru wrote: Thor Lancelot Simon t...@panix.com writes: On Fri, Nov 25, 2011 at 12:50:58PM +0400, Aleksej Saushev wrote: Mindaugas Rasiukevicius rm...@netbsd.org writes: y...@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote: hi,

Re: puffs netbsd-5 (was VOP_GETATTR: locking protocol change proposal)

2011-11-21 Thread Matthew Mondor
On Mon, 21 Nov 2011 08:04:46 + Emmanuel Dreyfus m...@netbsd.org wrote: FWIW I spent weeks tracking down a file corruption bug on growing giles in PUFFS because VOP_GETATTR operates on an unlocked vnode. If the VOP_GETATTR request follows a not yet completed VOP_FSYNC (as done by ioflush

Re: puffs netbsd-5 (was VOP_GETATTR: locking protocol change proposal)

2011-11-21 Thread Matthew Mondor
On Mon, 21 Nov 2011 08:45:52 + Emmanuel Dreyfus m...@netbsd.org wrote: On Mon, Nov 21, 2011 at 03:26:35AM -0500, Matthew Mondor wrote: I seem to remember you previously writing about using puffs/rump on netbsd-5, is that still on netbsd-5? I use PUFFS on netbsd-5, and fixed a few bugs

Re: fs-independent quotas (binary plists)

2011-11-17 Thread Matthew Mondor
On Thu, 17 Nov 2011 10:50:17 +0100 Manuel Bouyer bou...@antioche.eu.org wrote: In this context, text format means a key/value pair format, in which some keys are optionnal and values can be of arbitrary types. Maybe you can do this with a binary format too, but it doesn't exists yet. This

Re: MAXNAMLEN vs NAME_MAX

2011-11-14 Thread Matthew Mondor
On Sun, 13 Nov 2011 23:08:30 + David Holland dholland-t...@netbsd.org wrote: I was recently talking to some people who'd been working with some (physicists, I think) doing data-intensive simulation of some kind, and that reminded me: for various reasons, many people who are doing serious

Re: sysctl(7) knob to allow users to control CPU affinity

2011-11-03 Thread Matthew Mondor
On Thu, 03 Nov 2011 17:01:48 +1100 matthew green m...@eterna.com.au wrote: Since the default is to not allow affinity control, it's not of utmost importance, but it could allow a compromise between total restriction and total freedom... I have no objection to that sysctl personally. i

Re: sysctl(7) knob to allow users to control CPU affinity

2011-11-02 Thread Matthew Mondor
On Thu, 03 Nov 2011 01:50:49 +0100 Jean-Yves Migeon j...@netbsd.org wrote: Here's a proposal for a sysctl(7) knob to easily allow non-superusers to set the CPU affinity of processes and threads they own: security.secmodel.suser.usersetaffinity (ressembles the one already existing to

Re: fsync, rdiff-backup, wapbl, and WD Elements 1T drive

2011-10-31 Thread Matthew Mondor
On Mon, 31 Oct 2011 19:58:27 -0400 Greg Troxel g...@ir.bbn.com wrote: Obligatory actual netbsd tech-kern content: It seems like we really need a sync_synchronous(2) system call that guarantees that all file system operations that have completed (syscall returned) before the issuance of the

Re: fsync, rdiff-backup, wapbl, and WD Elements 1T drive

2011-10-28 Thread Matthew Mondor
On Fri, 28 Oct 2011 20:33:29 -0400 Greg Troxel g...@ir.bbn.com wrote: So, I'm inclined to patch rdiff-backup not to fsync, since it seems excessive, and the backup is toast if the machine crashes before it is finished -- in that case rdiff-backup just rolls back. Opinions? I also wonder why

Re: Extended attributes Linux interface

2011-10-21 Thread Matthew Mondor
On Fri, 21 Oct 2011 00:29:12 -0400 Matthew Mondor mm_li...@pulsar-zone.net wrote: If unicode strings are possible, I think that it'd be possible for a string to look like system but to actually be something else to an auditing administrator, unless all tools clearly showed those non-ASCII

Extended attributes Linux interface

2011-10-20 Thread Matthew Mondor
Hello, There were previously discussions, started by Emmanuel, concerning the extended attributes, including on the various available APIs and which to support etc. At the time I read them I was catching up with a lot of mail and had written down a small note about a potential security

Re: UNIX kernel notification system

2011-10-04 Thread Matthew Mondor
On Mon, 3 Oct 2011 00:40:46 -0700 Erik Fair f...@netbsd.org wrote: Why not a classification/taxonomy of kernel missives? This doesn't mean we can't continue to have relatively free form (and possibly amusing) text for those conditions we're not yet prepared to classify/codify yet ('cause

Re: UNIX kernel notification system

2011-10-04 Thread Matthew Mondor
On Mon, 3 Oct 2011 11:31:17 -0700 Erik Fair f...@netbsd.org wrote: less(1) (or more(1)) doesn't take care of you? The nice thing about such formatting is that the text can be wrapped at relatively arbitrary word boundaries, making it more readably displayable on a wider range of display

Re: (off topic) mail line wrapping

2011-10-04 Thread Matthew Mondor
On Tue, 4 Oct 2011 09:35:16 +0200 Alan Barrett a...@cequrux.com wrote: (flowed paragraph follows) Ignoring special cases, the rules are roughly this: The sender marks soft-wrapped paragraphs by ending every line except the last with a space. The sender marks hard-wrapped lines by not

Re: Multiboot a NetBSD kernel with Grub2: it works

2011-09-26 Thread Matthew Mondor
On Tue, 13 Sep 2011 19:36:03 +0200 Emmanuel Kasper emman...@libera.cc wrote: I have just posted a detailed install from GRUB howto on netbsd-users. Did the documentation you proposed get commited into the official docs somewhere since? If not, please consider filing a PR with the information,

Re: Changing the gpio(4) API/ABI

2011-09-26 Thread Matthew Mondor
On Fri, 23 Sep 2011 12:38:13 +0200 Marc Balmer m...@msys.ch wrote: With gpio(4) we still carry an old API with us, which I want to remove. While working on it, I will also introduce a third locator to device drivers that attach to gpio pins, flags. It will be needed for e.g. gpioiic(4) to

Re: pty(4) 1024 bytes buffer limit

2011-09-25 Thread Matthew Mondor
On Fri, 9 Sep 2011 09:38:31 -0400 Matthew Mondor mm_li...@pulsar-zone.net wrote: On Fri, 9 Sep 2011 00:26:43 + (UTC) chris...@astron.com (Christos Zoulas) wrote: Please file a PR about this. I've been meaning to fix it. Thanks, I will. For reference and to close this thread

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

2011-09-25 Thread Matthew Mondor
On Mon, 29 Aug 2011 01:07:52 +0200 Alistair Crooks a...@pkgsrc.org wrote: Sorry for replying to an old thread, I'm still catching up with mail :) i've found this some what annoying. IMO, we should have a a way to say let normal users do this. i'm not sure sysctl is the right place, but

Re: 5.1 USB panic on second removal of memory stick

2011-09-19 Thread Matthew Mondor
On Wed, 15 Jun 2011 20:04:23 -0700 Bob Lee g...@force10networks.com wrote: Hello Bob, I'm working on a PowerPC system, and have a problem when I remove the usb memory stick the second time. That is insert memory stick, remove memory stick, insert memory stick, and remove memory stick.

Re: hot swap storage devices

2011-09-19 Thread Matthew Mondor
Sorry to reply to such an old thread (I'm catching up with ml mail). On Mon, 27 Jun 2011 12:35:48 -0700 Erik Fair f...@netbsd.org wrote: With regard to hot swap storage devices, we really have two choices which are not mutually exclusive: 1. Treat as now, but with some additional code in

Re: pty(4) 1024 bytes buffer limit

2011-09-09 Thread Matthew Mondor
On Fri, 9 Sep 2011 00:26:43 + (UTC) chris...@astron.com (Christos Zoulas) wrote: Please file a PR about this. I've been meaning to fix it. Thanks, I will. -- Matt

Re: pty(4) 1024 bytes buffer limit

2011-09-09 Thread Matthew Mondor
On Fri, 09 Sep 2011 08:30:51 +1000 matthew green m...@eterna.com.au wrote: I looked at the various tty(4) termios(4) and pty(4) without finding an option to change the buffer size. Is there a way at all to change it? there's no option. infact, it's all hard coded as magic 1024 constants

pty(4) 1024 bytes buffer limit

2011-09-08 Thread Matthew Mondor
Hello, I've been wondering if it was possible to change the pty(4) internal buffer size, as I noticed that ppp tunnels cannot use a larger frame size. Because of this, it seems that the optimal MTU be 856, which is so small that context switches become the bottleneck. It would be nice to for

Re: sys/dev/isa/fd.c FDUNIT/FDTYPE

2011-05-07 Thread Matthew Mondor
On Wed, 4 May 2011 19:54:37 -0700 jnem...@victoria.tc.ca (John Nemeth) wrote: This doesn't mean we should be doing hack jobs. NetBSD is about doing things right. Can postinstall fix/recreate specific buggy devices? Or could it warn that /dev/fd* might need to be recreated? Otherwise,

Re: extent-patch and overview of what is supposed to follow

2011-04-02 Thread Matthew Mondor
On Sat, 2 Apr 2011 11:49:14 +0200 Martin Husemann mar...@duskware.de wrote: On Sat, Apr 02, 2011 at 11:30:16AM +0200, Manuel Bouyer wrote: AFAIK dtrace doesn't work on non-modular kernels ... Nor on most of our archs, and AFAICT there is not even a document describing the (maybe

Re: Status and future of 3rd party ABI compatibility layer

2011-04-01 Thread Matthew Mondor
On Wed, 23 Mar 2011 16:06:07 +0100 Joerg Sonnenberger jo...@britannica.bec.de wrote: As such, I want to propose moving the last two categories into the Attic for further dusting. It makes sense to me, -- Matt

Re: Status and future of 3rd party ABI compatibility layer

2011-03-03 Thread Matthew Mondor
On Wed, 2 Mar 2011 00:40:44 + Andrew Doran a...@netbsd.org wrote: With modules now basically working we should either retire or move some of these items to pkgsrc so that the interested parties maintain them. An awful lot of the compat stuff is now very compartmentalised, with not much

Re: mpt Serious performance issues

2011-02-04 Thread Matthew Mondor
On Fri, 4 Feb 2011 09:17:01 +0100 Stephan stephan...@googlemail.com wrote: Now this is REALLY strange. I was wondering about why the read speed is sometimes high (~70MB/s) and sometimes very slow (~2MB/s). So I repeated the test utilizing find / -exec cat {} \; /dev/null to read

Re: freebsd 5.99.41 as XEN3_DOMU

2010-12-24 Thread Matthew Mondor
On Sun, 19 Dec 2010 20:54:26 +0100 Manuel Bouyer bou...@antioche.eu.org wrote: Well, in the current state, modules are a not enabled in the Xen kernels (modules should be built specifically for Xen, but the build tools do not allow this right now). So you have to compile all what you need in a

Re: New apple keymap variant or keymap in /usr/share/wscons/keymaps?

2010-11-28 Thread Matthew Mondor
On Sun, 28 Nov 2010 21:04:54 +0100 Frank Wille fr...@phoenix.owl.de wrote: I came to the conclusion that it might be easier and less intrusive to create a new keymap file (e.g. called ukbd.apple.powerbook) for those function keys. So they can easily be added to any national keyboard layout.

Re: vmpage race and deadlock

2010-11-28 Thread Matthew Mondor
On Sun, 28 Nov 2010 09:30:44 +0100 Juergen Hannken-Illjes hann...@eis.cs.tu-bs.de wrote: Usually within hours I get a deadlock where a thread is waiting on genput but the page in question is neither BUSY nor WANTED. I suppose I tracked (*1) it down to three places, where we change page flags

Re: mlock() issues

2010-10-22 Thread Matthew Mondor
On Fri, 22 Oct 2010 10:18:52 +0100 Sad Clouds cryintotheblue...@googlemail.com wrote: A pipelined request, say for 10 small files can be served with a single writev() system call (provided those files are cached in RAM), if you rely on kernel file cache, you need to issue 10 write() system

Re: mlock() issues

2010-10-22 Thread Matthew Mondor
On Fri, 22 Oct 2010 12:06:37 +0100 Sad Clouds cryintotheblue...@googlemail.com wrote: Well if you're allocating memory yourself, then you've just created your own application cache. Say many files were mapped in the process's address space, the OS would still be responsible of keeping

Re: kernel module loading vs securelevel

2010-10-18 Thread Matthew Mondor
On Mon, 18 Oct 2010 14:51:03 +0200 Jean-Yves Migeon jeanyves.mig...@free.fr wrote: *lurker mode off* IIRC, part of agc work with netpgp is to integrate signature verification within kernel. *lurker mode on* Thanks, that's nice to know, I didn't look at netpgp yet but might eventually check

Re: kernel module loading vs securelevel

2010-10-18 Thread Matthew Mondor
On Mon, 18 Oct 2010 09:31:32 -0400 Steven Bellovin s...@cs.columbia.edu wrote: Signatures provide *authentication*; what is needed here is *authorization*. While I agree, there also are situations were both can be welcome... Another solution someone proposed which I like is hashing the modules

Re: kernel module loading vs securelevel

2010-10-17 Thread Matthew Mondor
On Sat, 16 Oct 2010 13:58:19 -0400 Thor Lancelot Simon t...@panix.com wrote: 2) Finish the asymmetric operation support in cryptodev and actually require modules to be signed. This is basically a superset of #1 above that could get about as complicated as one

Re: [ANN] Lunatik -- NetBSD kernel scripting with Lua (GSoC project results)

2010-10-11 Thread Matthew Mondor
On Sun, 10 Oct 2010 19:45:41 -0600 Samuel Greear l...@evilcode.net wrote: I didn't like the fact that the only option for loading a script into the kernel was to load the script source. I would make loading pre-compiled scripts the preferential method. In fact, I would probably tear eval out

audio/video capture timestamping

2010-08-12 Thread Matthew Mondor
Hello, Since I have an old Brooktree878 card which NetBSD supports, which I successfully used in the past with custom software using bktr(4) as part of a security suite, I thought I'd give it a new life and try to convert rare VHS which were rotting in a drawer to a digital format. I tried

Re: Length of wmesg for condvar?

2010-08-09 Thread Matthew Mondor
On Sun, 8 Aug 2010 17:23:23 -0700 (PDT) Paul Goyette p...@whooppee.com wrote: Should these be changed? Are there any adverse effects from having a wmesg longer than 8 characters? It seems to me that the exporter of those use strncpy() (i.e. kern/init_sysctl.c) and that the structures use

Re: Length of wmesg for condvar?

2010-08-09 Thread Matthew Mondor
On Mon, 9 Aug 2010 22:21:02 +0100 David Laight da...@l8s.co.uk wrote: On Mon, Aug 09, 2010 at 02:02:51PM -0700, Paul Goyette wrote: Does anyone object to my going through and coming up with shorter names (= 8 chars) for these condvars? It is worth chcking whether they are displayed

Re: Using coccinelle for (quick?) syntax fixing

2010-08-08 Thread Matthew Mondor
On Sun, 08 Aug 2010 18:05:11 +0200 Jean-Yves Migeon jeanyves.mig...@free.fr wrote: Opinions? Any interest in it? My intent is to put NetBSD specific scripts on wiki.n.o, and provide links for more generic ones. That seems like a handy tool to save time and avoid a number of typos, if it's used

Re: Preserving early console output (pre-Copyright stuff)

2010-07-01 Thread Matthew Mondor
On Thu, 1 Jul 2010 06:00:41 -0700 (PDT) Paul Goyette p...@whooppee.com wrote: That's what I thought I'd get for an answer! :) There is a serial port, but I haven't figured out yet how to make it work in the BIOS. And while I do have other machines with serial ports I've never used those

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Matthew Mondor
On Thu, 24 Jun 2010 22:55:51 -0400 Thor Simon t...@coyotepoint.com wrote: Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL sockets from the filesystem on last close? The following test program produces second socket bind failed on every system I've tested it on, and seems

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Matthew Mondor
On Fri, 25 Jun 2010 14:51:45 +0200 Joerg Sonnenberger jo...@britannica.bec.de wrote: On Thu, Jun 24, 2010 at 10:55:51PM -0400, Thor Simon wrote: Can anyone tell me why, exactly, we shouldn't remove bound AF_LOCAL sockets from the filesystem on last close? If you want to do that, wouldn't

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Matthew Mondor
On Fri, 25 Jun 2010 09:19:03 -0400 Thor Simon t...@coyotepoint.com wrote: I think this is (always has been) a considerable blind spot on the part of BSD partisans. Sure, we're happy to gripe about persistent SysV IPC objects every time we have to remember how to use ipcrm, but bound AF_UNIX

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Matthew Mondor
On Fri, 25 Jun 2010 08:59:18 -0400 Matthew Mondor mm_li...@pulsar-zone.net wrote: However, I wrote a small test program and realized that despite SO_REUSEADDR this doesn't work, and indeed after checking the kernel code SO_REUSEADDR is ignored in the AF_LOCAL unp_bind() code. Out of curiosity

Re: updating COMPAT_LINUX for linux 2.6.x support (take 2)

2010-06-17 Thread Matthew Mondor
On Thu, 17 Jun 2010 10:25:59 + Andrew Doran a...@netbsd.org wrote: This is mainly down the fact that we need kernel_lock to bracket legacy sections of code that aren't preemption safe. I think MULTIPROCESSOR should be sent off to the glue factory but that's another discussion :-). Is

Re: Writing to multiple descriptors with one system call

2010-03-18 Thread Matthew Mondor
On Thu, 18 Mar 2010 21:36:47 +0100 Jean-Yves Migeon jeanyves.mig...@free.fr wrote: Pretty much all servers use the accept loop thing and fork/pthread right after, but this was not my point. High performance non-single-threaded servers often maintain a pool of persistent processes or threads

Re: Writing to multiple descriptors with one system call

2010-03-17 Thread Matthew Mondor
On Wed, 17 Mar 2010 16:22:44 + Sad Clouds cryintotheblue...@googlemail.com wrote: On Wed, 17 Mar 2010 16:01:28 + Quentin Garnier c...@cubidou.net wrote: Do you have a real world use for that? For instance, I wouldn't call a web server that sends the same data to all its clients

Re: (Semi-random) thoughts on device tree structure and devfs

2010-03-09 Thread Matthew Mondor
On Tue, 9 Mar 2010 21:59:23 + (UTC) chris...@astron.com (Christos Zoulas) wrote: In article 70f62c5e1003091104l20b98c5ex66842f01e6f17...@mail.gmail.com, Masao Uebayashi uebay...@gmail.com wrote: Wow, that sucks.  Not being able to change permissions (and less importantly, mv or rm

  1   2   >