Re: Loud pop coming from hard drive on reboot

2007-04-18 Thread Bodo Eggert
Tejun Heo [EMAIL PROTECTED] wrote: This really isn't a regression. It's been always like that with libata. libata doesn't make devices go into standby mode and shutdown(8) does it for libata. The problem here is that libata does issue SYNCHRONIZE_CACHE on shutdown. So, the sequence of

Re: how to tell linux (on x86) to ignore 1M or memory

2007-04-20 Thread Bodo Eggert
Rene Herman [EMAIL PROTECTED] wrote: On 04/19/2007 04:18 PM, Bart Trojanowski wrote: I need to preserve some state from the bios before entering protected mode. For now I want to copy it into some ram accessible by real-mode, say the last megabyte visible in real-mode. What's the easiest

Re: Wrong free clusters count on FAT32

2007-04-22 Thread Bodo Eggert
OGAWA Hirofumi [EMAIL PROTECTED] wrote: * Juergen Beisert [EMAIL PROTECTED] dixit: So the last free sector count is also stored. When mounting this filesystem you don't need to walk through the whole FAT to calculate the available space, you can use this cached value instead. And this

Re: Wrong free clusters count on FAT32

2007-04-22 Thread Bodo Eggert
OGAWA Hirofumi [EMAIL PROTECTED] wrote: DervishD [EMAIL PROTECTED] writes: Probably it's stupid to update the free clusters count at mount time (sorry if so...) but it looks like a good idea to me. And of course, I don't mean to update the value _on disk_, but the kernel's idea of free

Re: Wrong free clusters count on FAT32

2007-04-22 Thread Bodo Eggert
On Sun, 22 Apr 2007, OGAWA Hirofumi wrote: Bodo Eggert [EMAIL PROTECTED] writes: Windows _does_ care*, it will pretend the disk to be full. Did you test on 2000 or XP? (e.g. write 0 to free_clusters, then create new file.) That was back when I still used W98. - usefree is a bad name

Re: PROBLEM: Make nenuconfig does not save parameters.

2007-03-10 Thread Bodo Eggert
Sam Ravnborg [EMAIL PROTECTED] wrote: On Sat, Mar 10, 2007 at 10:34:41PM +0100, Jan Engelhardt wrote: On Mar 10 2007 22:27, Sam Ravnborg wrote: On Sat, Mar 10, 2007 at 07:23:41PM +0100, Jan Engelhardt wrote: Whether the 'working config file path' should change when you do 'Save as

Re: sys_write() racy for multi-threaded append?

2007-03-12 Thread Bodo Eggert
Michael K. Edwards [EMAIL PROTECTED] wrote: On 3/8/07, Eric Dumazet [EMAIL PROTECTED] wrote: Absolutely not. We dont want to slow down kernel 'just in case a fool might want to do crazy things' Actually, I think it would make the kernel (negligibly) faster to bump f_pos before the

Re: sys_write() racy for multi-threaded append?

2007-03-12 Thread Bodo Eggert
On Mon, 12 Mar 2007, Michael K. Edwards wrote: On 3/12/07, Bodo Eggert [EMAIL PROTECTED] wrote: Michael K. Edwards [EMAIL PROTECTED] wrote: Actually, I think it would make the kernel (negligibly) faster to bump f_pos before the vfs_write() call. This is a security risk. snip I

Re: Kconfig style question

2007-03-16 Thread Bodo Eggert
Kumar Gala [EMAIL PROTECTED] wrote: For source lines I've seen both: source arch/powerpc/platforms/52xx/Kconfig and source arch/powerpc/platforms/85xx/Kconfig Is there a preferred style? Quotes or not? $ find . -name Kconfig -exec grep ^source '{}' \;|grep \|wc -l 732 $ find .

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Bodo Eggert
v j [EMAIL PROTECTED] wrote: On 2/14/07, Arjan van de Ven [EMAIL PROTECTED] wrote: On Wed, 2007-02-14 at 21:16 -0800, v j wrote: This is in reference to the following thread: http://lkml.org/lkml/2006/12/14/63 I am not sure if this is ever addressed in LKML, but linux is _very_

Re: [RFC] [PATCH] more support for memory-less-node.

2007-02-15 Thread Bodo Eggert
Andi Kleen [EMAIL PROTECTED] wrote: Now if it's better to set up a empty node or use a nearby node for a memory less cpu can be further discussed. I still think I lean towards the later. Worst case: Only slot 0 is used. Plug your memoryless CPU card into the last slot before your plug the

Re: somebody dropped a (warning) bomb

2007-02-15 Thread Bodo Eggert
Sergei Organov [EMAIL PROTECTED] wrote: Linus Torvalds [EMAIL PROTECTED] writes: Exactly because char *by*definition* is indeterminate sign as far as something like strlen() is concerned. Thanks, I now understand that you either don't see the difference between indeterminate and

Re: GPL vs non-GPL device drivers

2007-02-15 Thread Bodo Eggert
v j [EMAIL PROTECTED] wrote: So far I have heard nothing but, if you don't contribute, screw you. That's exactly what you tell to the linux community: If they don't contribute to your project *FOR*NOTHING*IN*RETURN*, you'll punish them by - stamping your feet, crying out loud and *paying* for

Re: somebody dropped a (warning) bomb

2007-02-16 Thread Bodo Eggert
On Fri, 16 Feb 2007, Sergei Organov wrote: Bodo Eggert [EMAIL PROTECTED] writes: Sergei Organov [EMAIL PROTECTED] wrote: Linus Torvalds [EMAIL PROTECTED] writes: [...] Using signed chars for strings is wrong in most countries on earth. It was wrong when the first IBM PC came out in 1981

Re: somebody dropped a (warning) bomb

2007-02-16 Thread Bodo Eggert
On Fri, 16 Feb 2007, Sergei Organov wrote: Bodo Eggert [EMAIL PROTECTED] writes: Sergei Organov [EMAIL PROTECTED] wrote: Linus Torvalds [EMAIL PROTECTED] writes: If you don't code for a specific compiler with specific settings, there is no implementation defining the signedness of char

Re: [PATCH 0/6] MODSIGN: Kernel module signing

2007-02-16 Thread Bodo Eggert
Roman Zippel [EMAIL PROTECTED] wrote: On Thu, 15 Feb 2007, David Howells wrote: This is really the weak point - it offers no advantage over an equivalent implementation in user space (e.g. in the module tools). So why has to be done in the kernel? Because the init_module() system call

Re: need help

2007-04-06 Thread Bodo Eggert
vjn [EMAIL PROTECTED] wrote: in my project i want to code the kernel such that when i plugged my usb it should ask for password and check it in the kernel space . can anyone help me No, since the kernel has no way to ask for input. Imagine a two-seated machine with two keyboards, mice and

Re: [PATCH] free swap space when (re)activating page

2007-02-22 Thread Bodo Eggert
Rik van Riel [EMAIL PROTECTED] wrote: +++ linux-2.6.20.noarch/mm/swap.c2007-02-20 06:44:17.0 -0500 @@ -420,6 +420,26 @@ void pagevec_strip(struct pagevec *pvec) +if (printk_ratelimit()) +printk(kswapd freed a swap

Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?

2007-03-05 Thread Bodo Eggert
David Hubbard [EMAIL PROTECTED] wrote: For I/O and memory that ACPI accesses and has not reserved, the AML interpreter could allocate at run-time. I'm not sure how to implement exactly. For example, it would be bad to have a /proc/ioports that had a lot of single ports allocated, for

Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?

2007-03-06 Thread Bodo Eggert
On Tue, 6 Mar 2007, Jean Delvare wrote: On Mon, 05 Mar 2007 14:56:44 +0100, Bodo Eggert wrote: 2) make ACPI take this lock whenever it touches ports not allocated by itself and release it on function return. This is costly. TANSTAAFL. You'll need to take some lock, and if you want

Re: [lm-sensors] Could the k8temp driver be interfering with ACPI?

2007-03-07 Thread Bodo Eggert
On Wed, 7 Mar 2007, Jean Delvare wrote: On Tue, 6 Mar 2007 21:40:19 +0100 (CET), Bodo Eggert wrote: 1) I asume port allocations or ACPI foreign port acces to be rare, so there would be little impact on (un)registering hardware. Off cause there are some long ACPI calls (like reading

Re: Linux-VServer example results for sharing vs. separate mappings ...

2007-03-29 Thread Bodo Eggert
Ethan Solomita [EMAIL PROTECTED] wrote: I suggest a variant on what Andrew says: don't change reclaim. Instead, when referencing a page, don't mark the page as referenced if the current task is not permitted to allocate from the page's node. I'm thinking in terms of cpusets, with each

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: [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: [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: 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: 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: 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: 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: [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 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][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: 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: 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: 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: 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] 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

[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: 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

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: [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: [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: 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: 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: [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: 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: 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: 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: [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: 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: 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: 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: 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] 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: [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: [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: 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: 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: 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: 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: 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: [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

  1   2   3   4   5   6   7   8   >