Re: O_DIRECTORY

2010-09-11 Thread Joerg Sonnenberger
On Sat, Sep 11, 2010 at 02:01:43PM -0700, Chuck Silvers wrote: the remaining missing bit that prevents acroread from working with the new linux emulation code (PR 43695) is support for the O_DIRECTORY flag to open(). I was going to add this just in the linux emulation code but I noticed that

Re: 16 year old bug

2010-08-24 Thread Joerg Sonnenberger
On Mon, Aug 23, 2010 at 09:46:16PM -0400, der Mouse wrote: I have. For a significant time (years) I was running my house LAN with a netmask ending in (binary) 11011000, I think it was - a /29 expanded by adding a second /29 from higher up. (The memory is very fuzzy, but 255.255.255.216 looks

Re: 16 year old bug [with non-contiguous netmasks]

2010-08-23 Thread Joerg Sonnenberger
On Mon, Aug 23, 2010 at 03:43:06PM +0200, Alan Barrett wrote: On Mon, 23 Aug 2010, Christoph Egger wrote: [OpenBSD] commit message: Fix a 16 year old bug in the sorting routine for non-contiguous netmasks. I suggest removing support for

ptrace(2) PT_STEP changes and gdb

2010-08-17 Thread Joerg Sonnenberger
Hi all, the recent changes for ptrace(2) to allow thread debugging had the unintentional side effect of breaking single stepping in the existing GDB in some cases. I have one binary here where setting a conditional break point consistently results in ptrace(2) returning ESRCH. Problem is that

Re: ptrace(2) PT_STEP changes and gdb

2010-08-17 Thread Joerg Sonnenberger
On Tue, Aug 17, 2010 at 12:12:31PM -0400, Paul Koning wrote: If the goal is to allow older GDB binaries to continue to run, that's a different matter. But in fact such binaries don't function in a useful way except with single-threaded applications, so keeping them running doesn't seem like a

Re: ptrace(2) PT_STEP changes and gdb

2010-08-17 Thread Joerg Sonnenberger
On Tue, Aug 17, 2010 at 01:14:50PM -0400, Paul Koning wrote: I don't understand the reference to chroot. How does that relate to PT_STEP? Get the sets from NetBSD 5.0, extract them in a directory, chroot to that. Try gdb -- broken. Joerg

Re: ptrace(2) PT_STEP changes and gdb

2010-08-17 Thread Joerg Sonnenberger
On Tue, Aug 17, 2010 at 05:04:14PM -0400, Paul Koning wrote: Yes, one could implement a completely new set of ptrace-like functions along the lines you describe. It would have to be a new syscall because what you describe isn't ptrace, though it looks a bit like it. I don't see why it is not

Re: netbsd-5.1_RC3 crash at Dell M710

2010-08-13 Thread Joerg Sonnenberger
On Fri, Aug 13, 2010 at 09:32:25PM +0200, 6b...@6bone.informatik.uni-leipzig.de wrote: it is not so easy. my M710 is a server inside a blade chassis. console access exists only via dell drac server management. it seems, that the ddb does not support the keyboard simulated by dell drac

Re: _lwp_setprivate and _lwp_makecontext

2010-07-30 Thread Joerg Sonnenberger
On Fri, Jul 30, 2010 at 02:28:47AM +, YAMAMOTO Takashi wrote: Hi all, I'm working on Thread Locale Storage support for NetBSD and I am facing an interesting issue with the libpthread integration. On i386 and AMD64, TLS support uses the segment register %gs or %fs to load the thread

_lwp_setprivate and _lwp_makecontext

2010-07-29 Thread Joerg Sonnenberger
Hi all, I'm working on Thread Locale Storage support for NetBSD and I am facing an interesting issue with the libpthread integration. On i386 and AMD64, TLS support uses the segment register %gs or %fs to load the thread pointer. The location used as segment base is thread specific and stored in

Re: Fast v.s classic forwarding in NetBSD 4.0

2010-07-12 Thread Joerg Sonnenberger
On Fri, Jul 09, 2010 at 01:15:58PM +0200, Putrycy wrote: Im having problems understanding relation between classic (ip_input.c) and fast (ip_flow.c) forwarding. Could anyone please explain what exactly is the difference, which mechanism is used when, and what is corelation between those two ?

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Joerg Sonnenberger
On Fri, Jun 25, 2010 at 09:32:40AM -0400, Thor Lancelot Simon wrote: On Fri, Jun 25, 2010 at 02:51:45PM +0200, Joerg Sonnenberger 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

Re: why not remove AF_LOCAL sockets on last close?

2010-06-25 Thread Joerg Sonnenberger
On Fri, Jun 25, 2010 at 09:02:34AM -0400, Matthew Mondor wrote: 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

Re: remote kernel debugging over a network

2010-06-05 Thread Joerg Sonnenberger
On Sat, Jun 05, 2010 at 05:57:55PM -0400, Thor Lancelot Simon wrote: IPKDB used a custom MD5-based packet hash for security. I actually think it would probably be very easy to support a single IPsec ESP security association instead. The hair with IPsec is all with key negotiation. Don't

Re: allocating memory during kernel startup

2010-05-07 Thread Joerg Sonnenberger
On Fri, May 07, 2010 at 03:11:32PM -0400, Michael wrote: It's rasops_reconfig(). It may want to autogenerate box drawing characters, which needs to allocate memory, but it can happily live without them and some ports ( macppc for example ) setup a rasops- based console very early in the boot

Re: kauth and socket calls (esp. bind())

2010-04-09 Thread Joerg Sonnenberger
On Fri, Apr 09, 2010 at 10:24:38AM +, Andrew Doran wrote: I'm not sure I grasp how things like the filesystem or device scopes could even really work if you can't make kauth calls with locks held. It cannot work without locks held in various places. What it should say is that kauth

Re: Extend struct malloc_type for extended KMEMSTATS?

2010-03-31 Thread Joerg Sonnenberger
On Wed, Mar 31, 2010 at 06:01:17PM +0200, Alistair Crooks wrote: let's learn from the POSIX getline(3) fun we had, and use less generic names than MINBUCKET and MAXBUCKET, please, especially if they're going in sys/param.h? They are already, but why do they have to be exported in headers at

Re: kern/42772 -- pthread issue with fork()

2010-03-24 Thread Joerg Sonnenberger
On Wed, Mar 24, 2010 at 03:09:19PM -0700, Michael Graff wrote: The comment that pthread_* functions cannot safely be used in the forked child is not QUITE what I understand to be what POSIX has in mind. To quote the SUSv3: ***cut** A process shall be created with a single thread. If a

Re: kern/42772 -- pthread issue with fork()

2010-03-23 Thread Joerg Sonnenberger
On Tue, Mar 23, 2010 at 07:03:11PM -0700, Michael Graff wrote: I'd like to commit it (and request a pull-up to netbsd-5). Any reason I shouldn't? What is the real problem here? fork(2) of a multithreaded program is essentially Here be dragon's terrain. So I don't think why it matters at all

Re: Writing to multiple descriptors with one system call

2010-03-17 Thread Joerg Sonnenberger
On Wed, Mar 17, 2010 at 12:50:51PM +, Sad Clouds wrote: Hi is there some undocumented system call that allows a user process to write to multiple descriptors in one go? No. It's usefulness is questionable and the interface would be messy (e.g. what should it return? how do you know which

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

2010-03-10 Thread Joerg Sonnenberger
On Wed, Mar 10, 2010 at 01:57:23PM +0100, Johnny Billquist wrote: 2) As I mentioned before - I know I have seen a program which will spit out the config neccesary to actually get a static setup in place, based on the current configuration. That program was recently retired from pkgsrc because

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

2010-03-09 Thread Joerg Sonnenberger
On Tue, Mar 09, 2010 at 08:09:57AM +, Iain Hibbert wrote: I have never used wedges but, for the disk case, would it not be better to make a method of configuring a dk in advance, so that whenever a disk appears with the correct parameters it will already be mapped to the dk you expect?

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

2010-03-09 Thread Joerg Sonnenberger
On Tue, Mar 09, 2010 at 09:43:03AM -0600, David Young wrote: On Tue, Mar 09, 2010 at 04:25:06PM +0100, Joerg Sonnenberger wrote: On Tue, Mar 09, 2010 at 08:09:57AM +, Iain Hibbert wrote: I have never used wedges but, for the disk case, would it not be better to make a method

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

2010-03-09 Thread Joerg Sonnenberger
On Tue, Mar 09, 2010 at 04:06:59PM +, Iain Hibbert wrote: I don't think it has to be or should be in the kernel. Basically, /dev/dk3 gets created or is used by the kernel. A daemon is notified (*cough* udevd) and that scans the device properties, finds the UUID and creates

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

2010-03-07 Thread Joerg Sonnenberger
On Sun, Mar 07, 2010 at 06:43:49PM +0900, Masao Uebayashi wrote: dk(4) is a pseudo device, and its instances are numbered in the order it's created. This is fine when you manually / explicitly add wedges(4) by using dkctl addwedge. This is not fine, if I have a gpt(4) disk label which has

Re: enumeration of bicycle sheds

2010-02-18 Thread Joerg Sonnenberger
On Thu, Feb 18, 2010 at 05:43:15PM +0100, Alistair Crooks wrote: 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 -

Re: kthread with kpause or callout

2010-02-08 Thread Joerg Sonnenberger
On Mon, Feb 08, 2010 at 03:36:07PM +0100, Martin Husemann wrote: On Mon, Feb 08, 2010 at 03:35:35PM +0100, Frank Wille wrote: IMHO that would allow my callout to sleep on acquiring the mutex? A softint can sleep, a callout can not. s/can/should/ Joerg

Re: Catweasel driver

2010-02-06 Thread Joerg Sonnenberger
On Sat, Feb 06, 2010 at 01:33:33PM +0100, Frank Wille wrote: 1. The firmware is large, with about 60k. Does anybody have experience with using a compressed firmware image in the driver, which is uncompressed on the fly, while uploading it to the chip? How would I do that? (This would probably

Re: Dropping mb_map

2010-02-06 Thread Joerg Sonnenberger
On Sat, Feb 06, 2010 at 09:55:03PM +0900, Masao Uebayashi wrote: A word from a UVM learner... This case shouldn't be hit too often as the clusters are already allocated from a pool, so the locking difference shouldn't make a big difference. Comments? My understanding is that the main

Re: Zero page

2010-02-02 Thread Joerg Sonnenberger
On Wed, Feb 03, 2010 at 03:06:00AM +0900, Masao Uebayashi wrote: I need to add zero-page to support XIP. Unallocated blocks are redirected to this. Basically it's a static simgle page filled with zero. Please adjust /dev/zero to share this page. Joerg

Dropping mb_map

2010-01-26 Thread Joerg Sonnenberger
Hi all, most architectures currently create a submap of the kernel map for use by the mbuf cluster allocator. I would like to effectively kill that and use the kmem_map instead. This would allow a dynamic upper limit only affected by the VA limit of kmem_map. This case shouldn't be hit too often

Re: The imperfect beauty of NetBSD [Was: NetBSD vs. FreeBSD]

2010-01-07 Thread Joerg Sonnenberger
On Tue, Jan 05, 2010 at 01:24:42AM -0500, Alex Goncharov wrote: Booted NetBSD 5.0/amd64 with no problem -- but with ACPI errors noise on the console. Rebooted w/o ACPI -- the console is clean. Installed 5.0.1, via FTP. (Again, what a beautiful installer NetBSD has!...) ACPI -- errors on

Re: The imperfect beauty of NetBSD [Was: NetBSD vs. FreeBSD]

2010-01-05 Thread Joerg Sonnenberger
On Tue, Jan 05, 2010 at 09:47:19AM +0100, Martin Husemann wrote: On Tue, Jan 05, 2010 at 01:24:42AM -0500, Alex Goncharov wrote: Can something be done about the ACPI errors popping up every (roughly) minute? Will filing a PR help? Please file one and let's hope it helps (at first glance

Re: The imperfect beauty of NetBSD [Was: NetBSD vs. FreeBSD]

2010-01-05 Thread Joerg Sonnenberger
On Tue, Jan 05, 2010 at 02:31:10PM +0100, Martin Husemann wrote: On Tue, Jan 05, 2010 at 01:11:23PM +0100, Joerg Sonnenberger wrote: Unless the polling for battery and TZ is disabled, it won't. Do they deliver reliable data with these errors? If not, disabling sounds like a valid option. I

<    1   2   3   4   5