Re: epoll and shared fd's

2008-02-26 Thread Bodo Eggert
Michael Kerrisk [EMAIL PROTECTED] wrote: a) I did a s/internal kernel handle/open file description/ since that is the POSIX term for the internal handle. b) It seems to me that you text doesn't quite make the point explicit enough. I've tried to rewrite it; could you please check:

Re: Plans for mISDN? Was: [PATCH 00/14] [ISDN] ...

2008-02-25 Thread Bodo Eggert
Andi Kleen [EMAIL PROTECTED] wrote: we were talking about the load order. This will solve the load order, but if we have races like the kind you described, then the whole mISDN design is broken. It's more a generic problem of the module code. It's a problem of not enough synchronisation

Re: Handshaking on USB serial devices

2008-02-15 Thread Bodo Eggert
Gene Heskett [EMAIL PROTECTED] wrote: ['cat /dev/hideaw0 | hexdump -v'] Or some way to ship the $00's to /dev/null so hexdump ignores them? .. | perl -pe 's/\00//g/' | ... -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED]

Re: Is there a blackhole /dev/null directory?

2008-02-14 Thread Bodo Eggert
rzryyvzy [EMAIL PROTECTED] wrote: /dev/null is often very useful, specially if programs force to save data in some file. But some programs like to creates different temporary file names, so /dev/null could no more work. What is with a /dev/null-directory? I mean a blackhole pseudo

Re: Is there a blackhole /dev/null directory?

2008-02-14 Thread Bodo Eggert
Hans-Jürgen Koch [EMAIL PROTECTED] wrote: schrieb Jan Engelhardt [EMAIL PROTECTED]: There is a much more interesting 'problem' with a /dev/null directory. Q: Why would you need such a directory? A: To temporarily fool a program into believing it wrote something. Q: Should all files

Re: [PATCH] Avoid buffer overflows in get_user_pages()

2008-02-12 Thread Bodo Eggert
Andrew Morton [EMAIL PROTECTED] wrote: On Mon, 11 Feb 2008 16:17:33 -0700 Jonathan Corbet [EMAIL PROTECTED] wrote: Avoid buffer overflows in get_user_pages() So I spent a while pounding my head against my monitor trying to figure out the vmsplice() vulnerability - how could a failure to

Re: [PATCH] ide-core: remove conditional compiling with MODULE in ide-core.c

2008-02-02 Thread Bodo Eggert
Denis Cheng [EMAIL PROTECTED] wrote: use module_init/module_exit to replace the original cond-compiling, these macros were well designed to deal module/built-in compiling. the original __setup with null string was invalid and not executed, __setup(, ide_setup); however, with the current

[PATCH] Introduce softpanic V.2

2008-01-28 Thread Bodo Eggert
Enabling this option changes a hard panic on boot errors to a soft panic, which does not stop the system completely. You can still scroll the screen and read the messages. Signed-Off-By: Bodo Eggert [EMAIL PROTECTED] --- Fixed: s/SOFTPANIC/CONFIG_SOFTPANIC/ I did not implement shutting down

Re: [PATCH] [8/18] BKL-removal: Remove BKL from remote_llseek

2008-01-28 Thread Bodo Eggert
Trond Myklebust [EMAIL PROTECTED] wrote: On Mon, 2008-01-28 at 05:38 +0100, Andi Kleen wrote: On Monday 28 January 2008 05:13:09 Trond Myklebust wrote: On Mon, 2008-01-28 at 03:58 +0100, Andi Kleen wrote: The problem is that it's not a race in who gets to do its thing first, but a

Re: [PATCH] [14/18] BKL-removal: Add unlocked_fasync

2008-01-27 Thread Bodo Eggert
+++ linux/fs/fcntl.c @@ -240,11 +240,15 @@ static int setfl(int fd, struct file * f lock_kernel(); if ((arg ^ filp-f_flags) FASYNC) { - if (filp-f_op filp-f_op-fasync) { + if (filp-f_op filp-f_op-unlocked_fasync) +

Re: [PATCH] Introduce softpanic

2008-01-25 Thread Bodo Eggert
On Fri, 25 Jan 2008, Jan Engelhardt wrote: On Jan 25 2008 15:54, Bodo Eggert wrote: +#ifdef SOFTPANIC #ifdef CONFIG_SOFTPANIC? Thanks. I remember having fixed it ... -- Professionals are predictable, it's the amateurs that are dangerous. -- To unsubscribe from this list: send the line

[PATCH] Introduce softpanic

2008-01-25 Thread Bodo Eggert
Enabling this option changes a hard panic on boot errors to a soft panic, which does not stop the system completely. You can still scroll the screen and read the messages. Signed-Off-By: Bodo Eggert [EMAIL PROTECTED] diff -pruN -X dontdiff linux-2.6.24.pure/include/linux/kernel.h linux-2.6.24

Re: [PATCH] Introduce softpanic

2008-01-25 Thread Bodo Eggert
On Fri, 25 Jan 2008, Andi Kleen wrote: Bodo Eggert [EMAIL PROTECTED] writes: Enabling this option changes a hard panic on boot errors to a soft panic, which does not stop the system completely. You can still scroll the screen and read the messages. I don't think it's a good idea to keep

Re: [RFC] Parallelize IO for e2fsck

2008-01-24 Thread Bodo Eggert
Alan Cox [EMAIL PROTECTED] wrote: I'd tried to advocate SIGDANGER some years ago as well, but none of the kernel maintainers were interested. It definitely makes sense to have some sort of mechanism like this. At the time I first brought it up it was in conjunction with Netscape using too

Re: [patch 2/2] 8250_pnp: register x86 COM ports at the conventional ttyS names

2008-01-16 Thread Bodo Eggert
Bjorn Helgaas [EMAIL PROTECTED] wrote: On Wednesday 16 January 2008 11:44:37 am H. Peter Anvin wrote: Bjorn Helgaas wrote: +#ifdef CONFIG_X86 + switch (port-iobase) { + case 0x3f8: return 0; /* COM1 - ttyS0 */ + case 0x2f8: return 1; /* COM2 - ttyS1 */ + case

Re: [RFD] Incremental fsck

2008-01-11 Thread Bodo Eggert
Al Boldi [EMAIL PROTECTED] wrote: Even after a black-out shutdown, the corruption is pretty minimal, using ext3fs at least. So let's take advantage of this fact and do an optimistic fsck, to assure integrity per-dir, and assume no external corruption. Then we release this checked dir to the

Re: [PATCH] Clustering indirect blocks in Ext3

2008-01-11 Thread Bodo Eggert
Abhishek Rai [EMAIL PROTECTED] wrote: Putting metacluster at the end of the block group gives slightly inferior sequential read throughput compared to putting it in the beginning or the middle, but the difference is very tiny and exists only for large files that span multiple block groups.

Re: The ext3 way of journalling

2008-01-11 Thread Bodo Eggert
Matthias Schniedermeyer [EMAIL PROTECTED] wrote: Don't use udev then. Good old static dev works fine if you have a fixed set of devices. It doesn't, with the unpredictable SCSI mapping insanity. That what LABEL und UUID-Support in mount is for. You label the filesystems (e2label for

Re: The ext3 way of journalling

2008-01-11 Thread Bodo Eggert
On Fri, 11 Jan 2008, Lennart Sorensen wrote: On Fri, Jan 11, 2008 at 05:22:45PM +0100, Bodo Eggert wrote: What can happen if someone does tune2fs -Lroot /dev/usbstick and puts that stick into this system? Don't know. I use UUIDs rather than LABELs. Having duplicated labels just means

Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override.

2008-01-08 Thread Bodo Eggert
On Tue, 8 Jan 2008, Rene Herman wrote: On 08-01-08 00:24, H. Peter Anvin wrote: Rene Herman wrote: Is this only about the ones then left for things like legacy PIC and PIT? Does anyone care about just sticking in a udelay(2) (or 1) there as a replacement and call it a day?

Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override.

2008-01-08 Thread Bodo Eggert
On Mon, 7 Jan 2008, Alan Cox wrote: But overclocking is not the problem for udelay, it would err to the safe side. The problem would be a BUS having 8 MHz, and since the days of 80286, they are hard to find. IMO having an option to set the bus speed for those systems should be enough.

Re: sleep before boot panic

2008-01-08 Thread Bodo Eggert
On Mon, 7 Jan 2008, Pavel Machek wrote: Introduce config CONFIG_SOFTPANIC Enabling this option changes a hard panic on boot errors to a soft panic, which does not stop the system completely. You can still scroll the screen and read the messages. Signed-Off-By: Bodo Eggert [EMAIL

Re: [linux-kernel] Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override.

2008-01-08 Thread Bodo Eggert
On Tue, 8 Jan 2008, Ondrej Zary wrote: On Tuesday 08 January 2008 18:24:02 David P. Reed wrote: Windows these days does delays with timing loops or the scheduler. It doesn't use a port. Also, Windows XP only supports machines that tend not to have timing problems that use delays.

Re: The ext3 way of journalling

2008-01-08 Thread Bodo Eggert
Tuomo Valkonen [EMAIL PROTECTED] wrote: On 2008-01-08, Jan Engelhardt [EMAIL PROTECTED] wrote: Power users may still use the index= option of sound card modules and wire it up in /etc/modprobe.d if they prefer. Another very cryptic directory whose contents say nothing to me. Configuration

Re: sleep before boot panic

2008-01-07 Thread Bodo Eggert
into a dash). ACK, but that's your part. snip Introduce config CONFIG_SOFTPANIC Enabling this option changes a hard panic on boot errors to a soft panic, which does not stop the system completely. You can still scroll the screen and read the messages. Signed-Off-By: Bodo Eggert [EMAIL PROTECTED

Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override.

2008-01-07 Thread Bodo Eggert
Christer Weinigel [EMAIL PROTECTED] wrote: How do you find out the speed of the ISA bus? AFAIK there is no standardized way to do that. On the Geode SC2200 the ISA bus speed is usually the PCI clock divided by 4 giving 33MHz/4=8.3MHz or 30/4=7.5MHz, but with no external ISA devices it's

Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override.

2008-01-07 Thread Bodo Eggert
On Mon, 7 Jan 2008, H. Peter Anvin wrote: Bodo Eggert wrote: Christer Weinigel [EMAIL PROTECTED] wrote: How do you find out the speed of the ISA bus? AFAIK there is no standardized way to do that. On the Geode SC2200 the ISA bus speed is usually the PCI clock divided by 4 giving

Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override.

2008-01-07 Thread Bodo Eggert
On Mon, 7 Jan 2008, H. Peter Anvin wrote: Bodo Eggert wrote: But overclocking is not the problem for udelay, it would err to the safe side. The problem would be a BUS having 8 MHz, and since the days of 80286, they are hard to find. IMO having an option to set the bus speed for those

Re: macro _set_base - do - while(0) question

2008-01-02 Thread Bodo Eggert
Abdel [EMAIL PROTECTED] wrote: In file include/asm-i386/system.h, _set_base and _set_limit use an useless do ... while(0) Why is this needed ? http://kernelnewbies.org/FAQ/DoWhile0 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

Re: [PATCH] Force UNIX domain sockets to be built in

2008-01-02 Thread Bodo Eggert
On Wed, 2 Jan 2008, Herbert Xu wrote: Theodore Tso [EMAIL PROTECTED] wrote: The question is whether the size of the Unix domain sockets support is worth the complexity of yet another config option that we expose to the user. For the embedded world, OK, maybe they want to save 14k of

Re: RAID timeout parameter accessibility request

2008-01-02 Thread Bodo Eggert
Thanasis [EMAIL PROTECTED] wrote: on 12/31/2007 11:54 AM Jose de la Mancha wrote the following: -- All RAID edition drives are more expensive that their equivalent desktop edition drives (same model on desktop edition). Just take a look at newegg for instance.

Re: Get physical MAC address

2007-12-31 Thread Bodo Eggert
Theewara Vorakosit [EMAIL PROTECTED] wrote: I get MAC address from ioctl. However, ifconfig can change this MAC address. Can I get a real physical MAC address of the NIC? First, get a network card having a physical MAC. Most cards have only a (currently configured) default MAC address, maybe

[PATCH] Force UNIX domain sockets to be built in

2007-12-31 Thread Bodo Eggert
As suggested by Adrian Bunk, UNIX domain sockets should always be built in on normal systems. This is especially true since udev needs these sockets and fails to run if UNIX=m. Signed-Off-By: Bodo Eggert [EMAIL PROTECTED] --- Last minute change: I decided against making it a bool because

Bad escriptions in Kconfig

2007-12-31 Thread Bodo Eggert
In some of the Kconfig files, the options are not adequately decribed. I collected a few of the bad descriptions I found: --- Lowlevel video output switch controls (VIDEO_OUTPUT_CONTROL) [M/n/y/?] (NEW) ? This framework adds support for low-level control of the video output switch. --- - What

Re: [PATCH] Force UNIX domain sockets to be built in

2007-12-31 Thread Bodo Eggert
On Mon, 31 Dec 2007, Adrian Bunk wrote: On Mon, Dec 31, 2007 at 01:09:43PM +0100, Bodo Eggert wrote: As suggested by Adrian Bunk, UNIX domain sockets should always be built in on normal systems. This is especially true since udev needs these sockets and fails to run if UNIX=m. Signed

Re: [PATCH] Force UNIX domain sockets to be built in

2007-12-31 Thread Bodo Eggert
On Mon, 31 Dec 2007, David Miller wrote: From: Bodo Eggert [EMAIL PROTECTED] As suggested by Adrian Bunk, UNIX domain sockets should always be built in on normal systems. This is especially true since udev needs these sockets and fails to run if UNIX=m. Signed-Off-By: Bodo Eggert

Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override

2007-12-31 Thread Bodo Eggert
On Sun, 30 Dec 2007, Alan Cox wrote: On Sun, 30 Dec 2007 12:53:02 -0800 H. Peter Anvin [EMAIL PROTECTED] wrote: Bodo Eggert wrote: I've never seen code which would do that, and it was not suggested by any tutorial I ever saw. I'd expect any machine to break on all kinds of software

Re: [PATCH] Force UNIX domain sockets to be built in

2007-12-31 Thread Bodo Eggert
On Mon, 31 Dec 2007, Adrian Bunk wrote: On Mon, Dec 31, 2007 at 02:26:42PM +0100, Bodo Eggert wrote: On Mon, 31 Dec 2007, Adrian Bunk wrote: On Mon, Dec 31, 2007 at 01:09:43PM +0100, Bodo Eggert wrote: As suggested by Adrian Bunk, UNIX domain sockets should always be built

Re: Bad escriptions in Kconfig

2007-12-31 Thread Bodo Eggert
On Mon, 31 Dec 2007, Douglas Gilbert wrote: Matthew Wilcox wrote: On Mon, Dec 31, 2007 at 10:16:43AM -0500, Douglas Gilbert wrote: Bodo Eggert wrote: (Kicking netdev from CC) --- SCSI target support (SCSI_TGT) [N/m/y/?] (NEW) ? If you want to use SCSI target mode drivers enable

Re: [PATCH] Force UNIX domain sockets to be built in

2007-12-31 Thread Bodo Eggert
On Mon, 31 Dec 2007, Al Viro wrote: On Mon, Dec 31, 2007 at 03:03:20PM +0100, Bodo Eggert wrote: On Mon, 31 Dec 2007, David Miller wrote: From: Bodo Eggert [EMAIL PROTECTED] As suggested by Adrian Bunk, UNIX domain sockets should always be built in on normal systems

Re: [PATCH] Force UNIX domain sockets to be built in

2007-12-31 Thread Bodo Eggert
On Mon, 31 Dec 2007, David Miller wrote: From: Bodo Eggert [EMAIL PROTECTED] The big question is: Is there any non-embedded system where you have to aim for a small kernel image? One some platforms, due to bootloader restrictions or whatever, there are hard limits on how large the main

[PATCH] Get NUMLOCK from PC BIOS

2007-12-30 Thread Bodo Eggert
, the NUMLOCK status on Linus' famous laptop should be usable. --- I'd like some information about how this patch works non non-IBM-compatible x86 PCs. For now, I've documented the wordt possible outcome I can imagine. Signed-Off-By: Bodo Eggert [EMAIL PROTECTED] diff -pruN -X dontdiff linux

Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override

2007-12-30 Thread Bodo Eggert
Ingo Molnar [EMAIL PROTECTED] wrote: do you have any memories about the outb_p() use of misc_32.c: pos = (x + cols * y) * 2; /* Update cursor position */ outb_p(14, vidport); outb_p(0xff (pos 9), vidport+1); outb_p(15, vidport); outb_p(0xff

Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override

2007-12-30 Thread Bodo Eggert
On Sun, 30 Dec 2007, Ingo Molnar wrote: * H. Peter Anvin [EMAIL PROTECTED] wrote: Ingo Molnar wrote: * Bodo Eggert [EMAIL PROTECTED] wrote: BTW: The error function in linux-2.6.23/arch/i386/boot/compressed/misc.c uses while(1) without cpu_relax() in order to halt the machine

Re: RFC: permit link(2) to work across --bind mounts ?

2007-12-20 Thread Bodo Eggert
On Wed, 19 Dec 2007, Al Viro wrote: On Wed, Dec 19, 2007 at 02:43:26PM +0100, Bodo Eggert wrote: Since nobody knows about this security boundary and everybody knows about the annoying can't link across bind-mountpoints bug, ... how about teaching people to RTFM? Starting, perhaps

Re: Trying to convert old modules to newer kernels

2007-12-20 Thread Bodo Eggert
linux-os (Dick Johnson) [EMAIL PROTECTED] wrote: On Thu, 20 Dec 2007, Sam Ravnborg wrote: It never gets to the printk(). You were right about the compilation. Somebody changed the kernel to compile with parameter passing in REGISTERS! This means that EVERYTHING needs to be compiled the same

Re: RFC: permit link(2) to work across --bind mounts ?

2007-12-19 Thread Bodo Eggert
Al Viro [EMAIL PROTECTED] wrote: On Tue, Dec 18, 2007 at 11:00:16PM +, Al Viro wrote: On Tue, Dec 18, 2007 at 05:46:21PM -0500, Mark Lord wrote: Why does link(2) not support hard-linking across bind mount points of the same underlying filesystem ? Because it gives you a security

Re: 1st version of azfs

2007-12-17 Thread Bodo Eggert
Maxim Shchetynin [EMAIL PROTECTED] wrote: +config AZ_FS +tristate AZFS filesystem support +default m ^ STRONG NACK, I hate digging in the menu tree and hunting for things I don't need. +help + Non-buffered filesystem

Re: [PATCH] xen: relax signature check

2007-12-11 Thread Bodo Eggert
Jeremy Fitzhardinge [EMAIL PROTECTED] wrote: Some versions of Xen 3.x set their magic number to xen-3.[12], so relax the test to match them. - BUG_ON(memcmp(xen_start_info-magic, xen-3.0, 7) != 0); + BUG_ON(memcmp(xen_start_info-magic, xen-3, 5) != 0); Not

Re: Out of tree module using LSM

2007-12-03 Thread Bodo Eggert
Jon Masters [EMAIL PROTECTED] wrote: On Thu, 2007-11-29 at 11:11 -0800, Ray Lee wrote: On Nov 29, 2007 10:56 AM, Jon Masters [EMAIL PROTECTED] wrote: On Thu, 2007-11-29 at 10:40 -0800, Ray Lee wrote: On Nov 29, 2007 9:36 AM, Alan Cox [EMAIL PROTECTED] wrote: closed. But more

Re: [PATCH][retry-2] init: Introduce rootdir bootparm to select which dir to sys_chroot

2007-11-18 Thread Bodo Eggert
Al Boldi [EMAIL PROTECTED] wrote: Second try; this time with a doc-update, and the ability to remount normally. Tested against 2.6.23. --- This patch introduces a rootdir kernel boot parameter, which specifies the path to the kernel sys_chroot boot dir. This is useful for systems

Re: [PATCH][retry-2] init: Introduce rootdir bootparm to select which dir to sys_chroot

2007-11-18 Thread Bodo Eggert
On Sun, 18 Nov 2007, H. Peter Anvin wrote: Bodo Eggert wrote: 1) This is useful for booting a rescue or test system, too. In those cases, you might want to have the old root moved somewhere. (Always $rootdir/oldroot? Additional parameter? I'm not sure ...) Again, this is a good

Re: AppArmor Security Goal

2007-11-12 Thread Bodo Eggert
Rogelio M. Serrano Jr. [EMAIL PROTECTED] wrote: Dr. David Alan Gilbert wrote: Allowing a user to tweak (under constraints) their settings might allow them to do something like create two mozilla profiles which are isolated from each other, so that the profile they use for general web surfing

Re: [PATCH 0/11 v3] enable make ARCH=x86

2007-11-11 Thread Bodo Eggert
Theodore Tso [EMAIL PROTECTED] wrote: On Sat, Nov 10, 2007 at 12:35:01PM -0800, H. Peter Anvin wrote: In fact, we should be able to get rid of ARCH entirely; CONFIG_ options have the huge advantage that they're saved in a file, and you don't have to type them on every make run. The only

Re: [AppArmor 19/45] Add struct vfsmount parameters to vfs_rename()

2007-11-02 Thread Bodo Eggert
Al Viro [EMAIL PROTECTED] wrote: On Fri, Oct 26, 2007 at 11:23:53AM -0700, John Johansen wrote: In the current code, both vfsmounts are always identical, and so one of the two should go, agreed. The thought behind passing both vfsmounts was that they could differ but point to the same

Re: [PATCH 0/6] kill i386 and x86_64 directories

2007-10-25 Thread Bodo Eggert
Thomas Gleixner [EMAIL PROTECTED] wrote: I think the last remaining bit to cleanup is the symlink from arch/x86/boot/bzImage. BTW: Is it useful to have (b)zimage under $ARCH while vmlinux is in the root dir? (Besides being compatible to external scripts) -- I always tell customers/clients the

Re: Linux machines dieing in swap storms

2007-10-25 Thread Bodo Eggert
Rik van Riel [EMAIL PROTECTED] wrote: On Thu, 25 Oct 2007 16:20:41 +0100 Richard Purdie [EMAIL PROTECTED] wrote: Advice on solving this welcome preferably in mainline but I'll happily hack my kernels with a workaround if need be. I can't see any easy hacks or workarounds to fix the issue

Re: [PATCH] fix passing argument # of '__memcpy' discards qualifiers from pointer target type warnings

2007-10-24 Thread Bodo Eggert
Miguel Botón [EMAIL PROTECTED] wrote: This patch fixes the warnings passing argument 1 of '__memcpy' discards qualifiers from pointer target type and passing argument 2 of '__memcpy' discards qualifiers from pointer target type when compiling some files. I don't really know if this is the

Re: Power button policy and mechanism

2007-10-16 Thread Bodo Eggert
Dmitry Torokhov [EMAIL PROTECTED] wrote: On 10/16/07, Kristoffer Ericson [EMAIL PROTECTED] wrote: Is the suggested approach on handling powerbutton (in keyboard driver) to simply push out the event and let userland handle it? Yes. The reason Im asking this is because as you might know Im

Re: Killing a network connection

2007-10-15 Thread Bodo Eggert
Andi Kleen [EMAIL PROTECTED] wrote: Stefan Monnier [EMAIL PROTECTED] writes: The main use for me is to deal with dangling connections due to taking network interfaces updown with different IP addresses (typically the wlan0 interface where the IP is different because I've modes from an AP to

Re: [PATCH] FAT: Fix printk format strings.

2007-10-11 Thread Bodo Eggert
Vegard Nossum [EMAIL PROTECTED] wrote: This makes sure printk format strings contain no more than a single line. printk(KERN_WARNING -FAT: Did not find valid FSINFO signature.\n +FAT: Did not find valid FSINFO signature.\n); +

Re: gigabit ethernet power consumption

2007-10-11 Thread Bodo Eggert
Kok, Auke [EMAIL PROTECTED] wrote: K.Prasad wrote: Without the side-effect of experiencing a link-flap when switching to a lower-speed (with its toll in terms of down-time for auto-negotiation, STP, etc), the Interrupt Moderation Algorithm dynamically adjusts the number of interrupts based

Re: [patch 2/2] getattr - fill the size of FIFOs

2007-10-03 Thread Bodo Eggert
Jan Engelhardt [EMAIL PROTECTED] wrote: [PATCH]: Fill the size of FIFOs Instead of reporting 0 in size when stating() a FIFO -- Whenever you have plenty of ammo, you never miss. Whenever you are low on ammo, you can't hit the broad side of a barn. Friß, Spammer: [EMAIL PROTECTED] [EMAIL

Re: Out of memory management in embedded systems

2007-09-29 Thread Bodo Eggert
linux-os (Dick Johnson) [EMAIL PROTECTED] wrote: On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: On 9/28/07, linux-os (Dick Johnson) [EMAIL PROTECTED] wrote: On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: On 9/28/07, linux-os (Dick Johnson) [EMAIL PROTECTED] wrote: But an

Re: Chroot bug (was: sys_chroot+sys_fchdir Fix)

2007-09-26 Thread Bodo Eggert
On Wed, 26 Sep 2007, David Newall wrote: Miloslav Semler pointed out that a root process can chdir(..) out of its chroot. Although this is documented in the man page, it conflicts with the essential function, which is to change the root directory of the process. The root directory, '/'

Re: Unfortunate infinite make recursion

2007-09-22 Thread Bodo Eggert
Jan Engelhardt [EMAIL PROTECTED] wrote: You can cause a recursion in kbuild/make with the following: make O=$PWD kernel/time.o make mrproper Of course no one would use O=$PWD (that's just the testcase), but this happened too often: /ws/linux/linux-2.6.23$ make O=/ws/linux/linux-2.6.23

Re: [PATCH] kernel/printk.c: Concerns about the console handover

2007-09-21 Thread Bodo Eggert
Maciej W. Rozycki [EMAIL PROTECTED] wrote: Move the hadover message to after the boot console has been released to avoid bad interactions between it and the real console. This message is usefull if the handover fails, therefore it should be printed on the boot console, while successfull

Re: [BUG] Possible cache memory leak.

2007-09-21 Thread Bodo Eggert
Micha? Kazior [EMAIL PROTECTED] wrote: I've discovered a strange thing lately. My memory is being sucked out when doing (I suppose) _a lot_ of stat() on the file system. I got left once with ~30MB of ram (of 512 in total) which made my system trash like hell. You might try doing the following

Re: sys_chroot+sys_fchdir Fix

2007-09-20 Thread Bodo Eggert
David Newall [EMAIL PROTECTED] wrote: Normal users cannot use chroot() themselves so they can't use chroot to get back out I think Bill is right, that this is to fix a method that non-root processes can use to escape their chroot. The exploit, which is documented in chroot(2)*, is to

Re: patch/option to wipe memory at boot?

2007-09-20 Thread Bodo Eggert
Chris Snook [EMAIL PROTECTED] wrote: David Madore wrote: On Mon, Sep 17, 2007 at 11:11:52AM -0700, Jeremy Fitzhardinge wrote: Boot memtest86 for a little while before booting the kernel? And if you haven't already run it for a while, then that would be your first step anyway. Indeed,

Re: Wasting our Freedom

2007-09-18 Thread Bodo Eggert
Paul de Weerd [EMAIL PROTECTED] wrote: On Mon, Sep 17, 2007 at 03:38:45PM +0200, Adrian Bunk wrote: | It's not about lazyness of BSD developers, many people who consider the | BSD licence more free than the GPL argue that the advantage of the BSD | licence is that it does not require you to

Re: O_NOLINK for open()

2007-09-14 Thread Bodo Eggert
On Thu, 13 Sep 2007, Jan Kara wrote: However, it occurs to me that this problem goes away if there were a method create a file in an unlinked state to begin with. However there does not appear to be any such mechanism in Linux's open() interface. Having no window for creating

Re: O_NOLINK for open()

2007-09-14 Thread Bodo Eggert
Brent Casavant [EMAIL PROTECTED] wrote: [...] Hmm. This will work as long as the peer process is running setuid to it's own unique user. Excellent idea! Since I need to make the program setuid to avoid non-priveleged ptrace attacks, this is a terrific solution. Tried that: ~ cd tmp

Re: O_NOLINK for open()

2007-09-14 Thread Bodo Eggert
On Fri, 14 Sep 2007, Andreas Schwab wrote: Bodo Eggert [EMAIL PROTECTED] writes: ~/tmp cp /bin/sleep . ~/tmp chmod u+s sleep ~/tmp ./sleep 2147483647 [1] 2823 ~/tmp strace -p 2823 Process 2823 attached - interrupt to quit setup( You didn't change the owner, so

Re: O_NOLINK for open()

2007-09-12 Thread Bodo Eggert
Brent Casavant [EMAIL PROTECTED] wrote: [...] I could mmap a temporary tmpfs file (tmpfs so that if there is a machine crash no sensitive data persists) which is created with permissions of 0, immediately unlink it, and pass the file descriptor through an AF_UNIX socket. This does open up a

Re: sata scsi suggestion for make menuconfig

2007-09-08 Thread Bodo Eggert
Al Boldi [EMAIL PROTECTED] wrote: Alan Cox wrote: I once sent a patch to make libata a submenu of scsi. Which is wrong Nakked-by: Alan Cox [EMAIL PROTECTED] The general comments about moving this stuff around and making it clearer what sd/sr etc are nowdays are good but hiding libata

Re: modinfo modulename question

2007-09-05 Thread Bodo Eggert
Justin Piszcz [EMAIL PROTECTED] wrote: Is there anyway to get/see what parameters were passed to a kernel module? Running modinfo -p module will show the defaults, but for example, st, the scsi tape driver, is there a way to see what it is currently using? /sys/modules/$NAME/parameters (if

Re: Fwd: That whole Linux stealing our code thing

2007-09-02 Thread Bodo Eggert
Igor Sobrado [EMAIL PROTECTED] wrote: When code is multi-licensed it must be distributed under *all* these licensing terms concurrently. No. E.g.: If I don't agree to the GPL (or if I had violated it and therefore have lost it's privileges), I MUST NOT redistribute it under the GPL because I

Re: [linux-usb-devel] [RFC] USB: driver for iphone charging

2007-08-25 Thread Bodo Eggert
On Fri, 24 Aug 2007, Greg KH wrote: On Fri, Aug 24, 2007 at 12:51:19PM +0200, Bodo Eggert wrote: Greg KH [EMAIL PROTECTED] wrote: my berry_charge code that adds support for charging the iphone when it is plugged into a Linux machine. This should be a runtime option, because you may

Re: [RFC] USB: driver for iphone charging

2007-08-24 Thread Bodo Eggert
Greg KH [EMAIL PROTECTED] wrote: my berry_charge code that adds support for charging the iphone when it is plugged into a Linux machine. This should be a runtime option, because you may want to build a non-module kernel and not charge the phone while running your laptop on battery. -- Top 100

Re: RFC: issues concerning the next NAPI interface

2007-08-24 Thread Bodo Eggert
Linas Vepstas [EMAIL PROTECTED] wrote: On Fri, Aug 24, 2007 at 03:59:16PM +0200, Jan-Bernd Themann wrote: 3) On modern systems the incoming packets are processed very fast. Especially on SMP systems when we use multiple queues we process only a few packets per napi poll cycle. So NAPI does

Re: [PATCH] Make checkpatch rant about trailing ; at the end of if expr

2007-08-22 Thread Bodo Eggert
On Mon, 20 Aug 2007, Jan Engelhardt wrote: On Aug 20 2007 13:52, Bodo Eggert wrote: But. The above regex does not seem to handle if ((a = b)); oops; I have tried to come up with a superduper regex that handles multiple (), but my regex fu seems to stop above two pairs

Re: Software based ECC ?

2007-08-21 Thread Bodo Eggert
Folkert van Heusden [EMAIL PROTECTED] wrote: http://pdos.csail.mit.edu/papers/softecc:ddopson-meng softecc_ddopson-meng.pdf SoftECC : A System for Software Memory Integrity Checking Personally, I'd recommend just shelling out the bucks for hardware ECC if the reliability matters. a

Re: group ownership of tun devices -- nonfunctional?

2007-08-20 Thread Bodo Eggert
On Mon, 20 Aug 2007, Rene Herman wrote: On 08/19/2007 11:42 PM, Bodo Eggert wrote: The intended [my me] semantics is If the user is not * the allowed user or * member of the allowed group or * cabable of CAP_NET_ADMIN then error out. I'm asuming There is a short description

Re: [PATCH] Make checkpatch rant about trailing ; at the end of if expr

2007-08-20 Thread Bodo Eggert
Jan Engelhardt [EMAIL PROTECTED] wrote: On Aug 16 2007 10:21, Andy Whitcroft wrote: + if ($line =~ /\bif\s*\([^\)]*\)\s*\;/) { Heh, you are the second person to suggest this check today, do I detect some ripped out hair due to one of these! I've taken this idea and expanded it to

Re: group ownership of tun devices -- nonfunctional?

2007-08-19 Thread Bodo Eggert
Mike Mohr [EMAIL PROTECTED] wrote: (intentionally not snipping much) Per the post here: http://lkml.org/lkml/2007/6/18/228 it appears that the group ownership patch has made it into .23. I am using these patches, amongst which the kernel component appears to be identical:

Re: group ownership of tun devices -- nonfunctional?

2007-08-19 Thread Bodo Eggert
On Sun, 19 Aug 2007, Rene Herman wrote: On 08/19/2007 06:05 PM, Bodo Eggert wrote: IMHO the check is broken: + if (((tun-owner != -1 + current-euid != tun-owner) || +(tun-group != -1 + current-egid != tun

Re: Bad CD disk disables IDE DMA

2007-08-16 Thread Bodo Eggert
Michal Piotrowski [EMAIL PROTECTED] wrote: On 15/08/07, Zoltan Boszormenyi [EMAIL PROTECTED] wrote: I noticed that a bad CD of mine makes DMA disabled: [...] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 } ide: failed opcode was: unknown hda: DMA disabled hda: ide_intr: huh?

Re: [PATCH V3] limit minixfs printks on corrupted dir i_size, CVE-2006-6058

2007-08-15 Thread Bodo Eggert
On Mon, 13 Aug 2007, Eric Sandeen wrote: Bodo Eggert wrote: Warning: I'm only looking at the patch. You are supposed to print an error message for a user, not to write in a chat window to a 1337 script kiddie. OK, you just matched the current style, and your patch is IMHO OK

Re: Noatime vs relatime

2007-08-11 Thread Bodo Eggert
Rene Herman [EMAIL PROTECTED] wrote: I must say I've been wondering about relatime a bit as well. Are there actually users who do really want atime, but not badly enough to want real atime? Anyone using /var/spool/mail. -- Programming is an art form that fights back. Friß, Spammer: [EMAIL

Re: [PATCH] make atomic_t volatile on all architectures

2007-08-09 Thread Bodo Eggert
Jerry Jiang [EMAIL PROTECTED] wrote: On Wed, 8 Aug 2007 21:18:25 -0700 (PDT) On Wed, 8 Aug 2007, Chris Snook wrote: Some architectures currently do not declare the contents of an atomic_t to be volatile. This causes confusion since atomic_read() might not actually read anything if an

Re: Documentation files in html format?

2007-08-09 Thread Bodo Eggert
Jan Engelhardt [EMAIL PROTECTED] wrote: On Aug 9 2007 11:31, Stephen Hemminger wrote: Since the network device documentation needs a rewrite, I was thinking of using basic html format instead of just plain text. But since this would be starting an new precedent for kernel documentation, some it

Re: Documentation files in html format?

2007-08-09 Thread Bodo Eggert
On Thu, 9 Aug 2007, Jan Engelhardt wrote: On Aug 9 2007 14:34, Bodo Eggert wrote: I don't think b and i should be used, instead you should use styles (span class=code etc). b does the same as span style=font-weight: bold;, and the latter is much more verbose for the same thing. You shoud

Re: [PATCH V2] limit minixfs printks on corrupted dir i_size, CVE-2006-6058

2007-08-09 Thread Bodo Eggert
Eric Sandeen [EMAIL PROTECTED] wrote: This attempts to address CVE-2006-6058 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-6058 first reported at http://projects.info-pull.com/mokb/MOKB-17-11-2006.html Essentially a corrupted minix dir inode reporting a very large i_size will

Re: [RFC PATCH 1/4] pass open file to -setattr()

2007-08-09 Thread Bodo Eggert
Miklos Szeredi [EMAIL PROTECTED] wrote: This is needed to be able to correctly implement open-unlink-fsetattr semantics in some filesystem such as sshfs, without having to resort to silly-renaming. How do you plan to do that? Easy: the SFTP protocol has stateful opens and defines an

Re: allow non root users to set io priority idle ?

2007-08-07 Thread Bodo Eggert
Andi Kleen [EMAIL PROTECTED] wrote: couldn't this be fixed by bumping idle tasks to middle while they hold a Usually to high. Then use the lowest non-idle priority. The result will not be more b0rken than nice -n 19. But it's all complicated and hasn't been done consistently (there are

Re: Documentation for sysfs, hotplug, and firmware loading.

2007-08-05 Thread Bodo Eggert
On Mon, 23 Jul 2007, Rob Landley wrote: On Saturday 21 July 2007 8:14:41 am Bodo Eggert wrote: Greg KH [EMAIL PROTECTED] wrote: On Fri, Jul 20, 2007 at 08:21:39PM -0400, Rob Landley wrote: I'm not trying to document /sys/devices. I'm trying to document hotplug, populating /dev

Re: Documentation for sysfs, hotplug, and firmware loading.

2007-07-21 Thread Bodo Eggert
Greg KH [EMAIL PROTECTED] wrote: On Fri, Jul 20, 2007 at 08:21:39PM -0400, Rob Landley wrote: I'm not trying to document /sys/devices. I'm trying to document hotplug, populating /dev, and things like firmware loading that fall out of that. This requires use of sysfs, and I'm only trying to

Re: [PATCH][RFC] 4K stacks default, not a debug thing any more...?

2007-07-19 Thread Bodo Eggert
Alan Cox [EMAIL PROTECTED] wrote: On Thu, 19 Jul 2007 03:33:58 +0200 Andrea Arcangeli [EMAIL PROTECTED] wrote: 8K stacks without IRQ stacks are not safer so I don't understand your comment ? Ouch, see the reports about 4k stack crashes. I agree they're not safe w/o irq stacks (like on

Re: [PATCH 0/3][try 1] init: enable system-on-initramfs

2007-07-19 Thread Bodo Eggert
On Wed, 18 Jul 2007, Rob Landley wrote: On Friday 13 July 2007 2:56:00 pm Bodo Eggert wrote: I toyed with setting up a diskless system in initramfs. In the process, I came across some things: 1) There is no way to have the kernel not mount a filesystem, unless you use /init

  1   2   3   4   >