O_CLOFORK use case

2019-06-03 Thread Joshua Hudson
I ran headlong into the use case for O_CLOFORK and got into a locking debate over it. The actual use case involves squashing a thread race between two threads. If a file is opened for write in one thread with O_CLOEXEC while another thread calls fork(), a race condition can happen where the thread

USB Floppy Disk Driver

2018-05-14 Thread Joshua Hudson
Has anybody tried the USB floppy disk driver in awhile? I just did to read an old disk, and I couldn't read a single byte. I started thinking maybe the hardware's bad, but dd didn't raise en error even after I pulled it out and got "USB Disconnect" on the screen from kernel log. I still don't kno

Re: [PATCH] add support for larger files in minix filesystem

2015-11-02 Thread Joshua Hudson
No response. I suppose I must be doing something wrong ... On 11/1/15, Joshua Hudson wrote: > From: Joshua Hudson > > The Minix v3 filesystem and kernel driver have no actual dependency on > files > being less than 2GB in size; however the kernel does not allow creating a &

[PATCH] add support for larger files in minix filesystem

2015-11-01 Thread Joshua Hudson
From: Joshua Hudson The Minix v3 filesystem and kernel driver have no actual dependency on files being less than 2GB in size; however the kernel does not allow creating a file of 2GB or larger on a Minix v3 filesystem. I was able to remove the pseudo- dependency easily by changing one line of

Executable file format, locating stack?

2007-12-01 Thread Joshua Hudson
Is there an executable file format that can specify things like where the stack ends up? Yes, I really do care. I want to put the stack at the top of virtual address space rather than randomized. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: BSD jail

2005-08-15 Thread Joshua Hudson
> > To build a virtual network device requires code for the device, code > for routing the device > in the kernel, some way to tell the router that this machine is hosted > through the host > machine's ethernet card, and control of which processes use which > network devices. > I've bombed out. I

Re: BSD jail

2005-08-14 Thread Joshua Hudson
Quoting Serge E. Hallyn ([EMAIL PROTECTED]) >Quoting Joshua Hudson ([EMAIL PROTECTED]): > Why would you want a virtual network device implementation? The whole > >So that a jailed process can use the net but can't use your network >address (intercept ssh, imap/stunnel, etc).

Re: BSD jail

2005-08-14 Thread Joshua Hudson
All right, I'll see what I can come up with. This is quite a tall order. 1. A mechanism for creating virtual network interfaces 2. A mechanism for restricting binding to certain network interfaces 3. A mechanism for binding certain network interfaces. 4. The jail code itself Much of the work is al

Re: [PATCH] Fix mmap_kmem (was: [question] What's the difference between /dev/kmem and /dev/mem)

2005-08-13 Thread Joshua Hudson
On 8/13/05, Arjan van de Ven <[EMAIL PROTECTED]> wrote: > On Fri, 2005-08-12 at 09:35 -0700, Linus Torvalds wrote: > > > > On Thu, 11 Aug 2005, Steven Rostedt wrote: > > > > > > Found the problem. It is a bug with mmap_kmem. The order of checks is > > > wrong, so here's the patch. Attached is a

Re: BSD jail

2005-08-13 Thread Joshua Hudson
On 8/13/05, Serge E. Hallyn <[EMAIL PROTECTED]> wrote: > The latest version (which is still quite old) is at > http://www.sf.net/projects/linuxjail and does have ipv6 support. The last > time I submitted it, Christoph had objected to the way the networking was > done in general. I've tried twice

BSD jail

2005-08-12 Thread Joshua Hudson
I had been wanting this functionality myself, but for some reason it never found its way into the stock kernel. I looked around, started coding, looked some more, coded some more, looked some more until I found this: http://kerneltrap.org/node/3823 I suppose the reason it wasn't applied is lack

Re: Bug report -- keyboard not working Linux 2.6.11 on Inspiron 1150

2005-03-02 Thread Joshua Hudson
PCI: Using ACPI for IRQ routing ACPI: AC Adapter [AC] (on-line) ACPI: Battery Slot [BAT0] (battery present) ACPI: Lid Switch [LID] ACPI: Power Button (CM) [PBTN] ACPI: Sleep Button (CM) [SBTN] ACPI: Video Device [VID] (multi-head: yes rom: no post: no) ACPI: Video Device [VID2] (multi-head: yes

Re: Bug report -- keyboard not working Linux 2.6.11 on Inspiron 1150

2005-03-02 Thread Joshua Hudson
On Wed, 2 Mar 2005, Dmitry Torokhov wrote: > On Wed, 2 Mar 2005 13:26:18 -0800 (PST), Joshua Hudson > <[EMAIL PROTECTED]> wrote: > > No obvous reason. Works fine with kernel 2.6.10 > > Does it work with i8042.noacpi kernel boot parameter? > Yes, it does. I never hear

Re: Bug report -- keyboard not working Linux 2.6.11 on Inspiron 1150

2005-03-02 Thread Joshua Hudson
Relevent messages (erring on the heavy side) ACPI: RSDP (v000 DELL ) @ 0x000fdf00 ACPI: RSDT (v001 DELLCPi R 0x27d4061d ASL 0x0061) @ 0x1fef ACPI: FADT (v001 DELLCPi R 0x27d4061d ASL 0x0061) @ 0x1fef0400 ACPI: DSDT (v001 INT430 SYSFexxx 0

Re: Bug report -- keyboard not working Linux 2.6.11 on Inspiron 1150

2005-03-02 Thread Joshua Hudson
> > > Does it work with i8042.noacpi kernel boot parameter? > > > > > Yes, it does. > Btw, when it boots _without_ this option is there any messages from > i8042 or ACPI? > A few. I'll go back and catch them for you. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

Bug report -- keyboard not working Linux 2.6.11 on Inspiron 1150

2005-03-02 Thread Joshua Hudson
No obvous reason. Works fine with kernel 2.6.10 Result of lspci: 00:00.0 Host bridge: Intel Corp. 82852/855GM Host Bridge (rev 02) 00:00.1 System peripheral: Intel Corp. 855GM/GME GMCH Memory I/O Control Registers (rev 02) 00:00.3 System peripheral: Intel Corp. 855GM/GME GMCH Configuration Process

Re: Help - really messed up kernel

2005-02-20 Thread Joshua Hudson
Thinks for trying. I finally found the problem myself. There is some incompatability between syslinux 2.10 and kernel 2.6.10 Using lilo on the first floppy fixed the problem Oh, and no I am *not* using an initrd. I am using the old paramiters that cause the kernel to load the ramdisk after it boot

Re: Help - really messed up kernel

2005-02-20 Thread Joshua Hudson
On Sun, 20 Feb 2005, Brian Beattie wrote: > On Sun, 2005-02-20 at 15:22 -0800, Joshua Hudson wrote: > > I am trying to install linux on a laptop that cannot boot from cdrom. > I handled this by putting smart-boot http://btmgr.webframe.org/ in the > hard drive MBR from a dos flop

Help - really messed up kernel

2005-02-20 Thread Joshua Hudson
I am trying to install linux on a laptop that cannot boot from cdrom. I got a stripped-down kernel to boot from floppy, ran lspci to get the hardware information. I then reconfigured and rebuilt the kernel for the image. I built this kernel from stock 2.6.10 from www.kernel.org. This is the confi