RFC: [PATCH-2.6] Add helper function to lock multiple page cache pages.

2005-02-02 Thread Anton Altaparmakov
Hi, On Thu, 27 Jan 2005, Andrew Morton wrote: Anton Altaparmakov [EMAIL PROTECTED] wrote: What would you propose can I do to perform the required zeroing in a deadlock safe manner whilst also ensuring that it cannot happen that a concurrent -readpage() will cause me to miss a page and thus

Re: RFC: [PATCH-2.6] Add helper function to lock multiple page cache pages.

2005-02-02 Thread Matthew Wilcox
On Wed, Feb 02, 2005 at 03:12:50PM +, Anton Altaparmakov wrote: I think the below loop would be clearer as a for loop ... err = 0; for (nr = 0; nr nr_pages; nr++, start++) { if (start == lp_idx) { pages[nr] = locked_page;

Re: RFC: [PATCH-2.6] Add helper function to lock multiple page cache pages.

2005-02-02 Thread Anton Altaparmakov
Hi Matthew, On Wed, 2005-02-02 at 15:43 +, Matthew Wilcox wrote: On Wed, Feb 02, 2005 at 03:12:50PM +, Anton Altaparmakov wrote: I think the below loop would be clearer as a for loop ... err = 0; for (nr = 0; nr nr_pages; nr++, start++) { if (start ==

Re: [PATCH] OpenBSD Networking-related randomization port

2005-02-02 Thread linux
*Sigh*. This thread is heading into the weeds. I have things I should be doing instead, but since nobody seems to actually be looking at what the patch *does*, I guess I'll have to dig into it a bit more... Yes, licensing issues need to be resolved before a patch can go in. Yes, code style

Re: [PATCH] OpenBSD Networking-related randomization port

2005-02-02 Thread Lorenzo Hernández García-Hierro
El mié, 02-02-2005 a las 17:17 +, [EMAIL PROTECTED] escribió: There *are* things in OpenBSD, like randomized port assignment (as opposed to the linear scan in tcp_v4_get_port()) that would be worth emulating. Maybe worry about that first? Completely agreed with you, I was just trying to

RE: [Announce] megaraid_mbox 2.20.4.4 patch

2005-02-02 Thread Ju, Seokmann
On Tuesday, February 01, 2005 1:15 PM, Matt Domsch wrote: This patch is mangled. Long lines are wrapped, and appears to be in ISO-8859-1, such that spaces (ascii 0x20) appear as hex 0xa0. This makes it difficult to review, and impossible to apply. +// definitions for the device attributes

Re: [PATCH 2.6.11-rc2 0/29] ide: driver updates

2005-02-02 Thread Jeff Garzik
Tejun Heo wrote: Hello, B. Zolnierkiewicz. These patches are various fixes/improvements to the ide driver. They are against the 2.6 bk tree as of today (20050202). 01_ide_remove_adma100.patch Removes drivers/ide/pci/adma100.[hc]. The driver isn't compilable (missing functions

[RFT 2.6.11-rc2-bk10] libata (SATA) driver update

2005-02-02 Thread Jeff Garzik
Mainly for testing by Promise and nVIDIA users, but also includes a fix for a few lesser-used SCSI commands (that affect all SATA users). See attached... BK users: bk pull bk://gkernel.bkbits.net/libata-2.6 This will update the following files: drivers/scsi/libata-core.c | 91

when and where shall I encrypt dentry?

2005-02-02 Thread Vineet Joglekar
Hi all, I am trying to add some cryptographic functionality to ext2 file system for my masters project. I am working with kernel 2.4.21 Along with regular files, I intend to encrypt directory contents too. For reading I guess the function ext2_get_page in fs/ext2/dir.c is used. Hence I

Re: when and where shall I encrypt dentry?

2005-02-02 Thread linux-os
The correct place to encrypt or decrypt ANYTHING is just before access to the outside world, i.e., in the case of a file-system, the reads and writes to the storage device (disk drive). You are in a world of hurt if you intend to encrypt 'data' and directories separately. If you need to use an

Re: [RFC] shared subtrees

2005-02-02 Thread Ram
On Tue, 2005-02-01 at 15:21, J. Bruce Fields wrote: On Tue, Jan 25, 2005 at 01:07:12PM -0800, Ram wrote: If there exists a private subtree in a larger shared subtree, what happens when the larger shared subtree is rbound to some other place? Is a new private subtree created in the new

[2.6 patch] prism54: misc cleanups

2005-02-02 Thread Adrian Bunk
This patch makes some functions in prism54 that are only required locally static. As a side effect it turned out that the mgt_unlatch_all function was completely unused, and it's therefore #if 0'ed. I also considered moving display_buffer as static inline into islpci_mgt.h, but I wasn't 100%

[patch libata-dev-2.6 1/1] libata: sync SMART ioctls with ATA pass thru spec (T10/04-262r7)

2005-02-02 Thread John W. Linville
Update libata's SMART-related ioctl handlers to match the current ATA command pass-through specification (T10/04-262r7). Also change related SCSI op-code definition to match current spec. Signed-off-by: John W. Linville [EMAIL PROTECTED] --- Contact w/ spec author (Curtis Stevens @ Western

Re: [patch libata-dev-2.6 1/1] libata: sync SMART ioctls with ATA pass thru spec (T10/04-262r7)

2005-02-02 Thread Jens Axboe
On Wed, Feb 02 2005, John W. Linville wrote: Update libata's SMART-related ioctl handlers to match the current ATA command pass-through specification (T10/04-262r7). Also change related SCSI op-code definition to match current spec. Signed-off-by: John W. Linville [EMAIL PROTECTED] ---

Re: [patch libata-dev-2.6 1/1] libata: sync SMART ioctls with ATA pass thru spec (T10/04-262r7)

2005-02-02 Thread John W. Linville
On Wed, Feb 02, 2005 at 07:51:22PM +0100, Jens Axboe wrote: On Wed, Feb 02 2005, John W. Linville wrote: -/* Temporary values for T10/04-262 until official values are allocated */ -#defineATA_160x85 /* 16-byte pass-thru [0x85 == unused]*/ -#defineATA_12

[2.6 patch] SCSI qlogicfc.c: some cleanups

2005-02-02 Thread Adrian Bunk
This patch does the following cleanups: - make some needlessly global functions static - remove qlogicfc.h since it doesn't contain much - remove the unused function isp2x00_reset Please review especially the latter two points. --- This patch was already sent on: - 15 Nov 2004

[2.6 patch] SCSI sim710.c: make some code static

2005-02-02 Thread Adrian Bunk
This patch makes some needlessly global code static. Signed-off-by: Adrian Bunk [EMAIL PROTECTED] --- This patch was already sent on: - 15 Nov 2004 --- linux-2.6.10-rc1-mm5-full/drivers/scsi/sim710.c.old 2004-11-14 01:27:51.0 +0100 +++ linux-2.6.10-rc1-mm5-full/drivers/scsi/sim710.c

Re: [RFC] shared subtrees

2005-02-02 Thread Ram
On Wed, 2005-02-02 at 11:45, Mike Waychison wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ram wrote: On Tue, 2005-02-01 at 15:21, J. Bruce Fields wrote: On Tue, Jan 25, 2005 at 01:07:12PM -0800, Ram wrote: If there exists a private subtree in a larger shared subtree, what

Re: [RFC] shared subtrees

2005-02-02 Thread Mike Waychison
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ram wrote: On Tue, 2005-02-01 at 15:21, J. Bruce Fields wrote: On Tue, Jan 25, 2005 at 01:07:12PM -0800, Ram wrote: If there exists a private subtree in a larger shared subtree, what happens when the larger shared subtree is rbound to some other

[2.6 patch] SCSI qlogicisp.c: some cleanups

2005-02-02 Thread Adrian Bunk
This patch does the following cleanups: - make some needlessly global functions static - remove qlogicisp.h since it doesn't contain much - remove the unused functions isp1020_abort and isp1020_reset Please review especially the latter two points. Signed-off-by: Adrian Bunk [EMAIL PROTECTED]

Re: [RFC] shared subtrees

2005-02-02 Thread Mike Waychison
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ram wrote: On Wed, 2005-02-02 at 11:45, Mike Waychison wrote: Ram wrote: On Tue, 2005-02-01 at 15:21, J. Bruce Fields wrote: On Tue, Jan 25, 2005 at 01:07:12PM -0800, Ram wrote: If there exists a private subtree in a larger shared

Re: [RFC] shared subtrees

2005-02-02 Thread J. Bruce Fields
On Wed, Feb 02, 2005 at 04:08:32PM -0500, Mike Waychison wrote: Well, fwiw, I have the same kind of race in autofsng. I counter it by building up the vfsmount tree elsewhere and mount --move'ing it. Unfortunately, the RFC states that moving a shared vfsmount is prohibited (for which the

Re: [RFC] shared subtrees

2005-02-02 Thread Mike Waychison
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 J. Bruce Fields wrote: On Wed, Feb 02, 2005 at 04:08:32PM -0500, Mike Waychison wrote: Well, fwiw, I have the same kind of race in autofsng. I counter it by building up the vfsmount tree elsewhere and mount --move'ing it. Unfortunately, the RFC

Re: [RFC] shared subtrees

2005-02-02 Thread J. Bruce Fields
On Wed, Feb 02, 2005 at 04:33:08PM -0500, Mike Waychison wrote: That still keeps you from using the 'build tree elsewhere' and 'mount - --move' approach though, as the parent mountpoint would likely be shared. I believe it's also just the source mountpoint that's the problem, not the

Re: RFC: [PATCH-2.6] Add helper function to lock multiple page cache pages.

2005-02-02 Thread Andrew Morton
Anton Altaparmakov [EMAIL PROTECTED] wrote: Below is a patch which adds a function mm/filemap.c::find_or_create_pages(), locks a range of pages. Please see the function description in the patch for details. This isn't very nice, is it, really? Kind of a square peg in a round hole. If

Re: [2.6 patch] IDE: remove WAIT_READY dependency on APM

2005-02-02 Thread Bartlomiej Zolnierkiewicz
applied, sorry for the delay - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: [Announce] megaraid_mbox 2.20.4.4 patch

2005-02-02 Thread James Bottomley
On Wed, 2005-02-02 at 10:56 -0500, Ju, Seokmann wrote: + .sdev_attrs = megaraid_device_attrs, + .shost_attrs= megaraid_class_device_attrs, These are, perhaps, slightly confusing names. The terms device and class_device have well defined meanings

Re: [patch libata-dev-2.6 1/1] libata: sync SMART ioctls with ATA pass thru spec (T10/04-262r7)

2005-02-02 Thread Douglas Gilbert
Jens Axboe wrote: snip -/* Temporary values for T10/04-262 until official values are allocated */ -#define ATA_160x85 /* 16-byte pass-thru [0x85 == unused]*/ -#define ATA_120xb3 /* 12-byte pass-thru [0xb3 == obsolete set limits command] */

Re: [2.6 patch] IDE: possible cleanups

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Mon, 31 Jan 2005 20:01:54 +0100, Adrian Bunk [EMAIL PROTECTED] wrote: This patch contains the following possible cleanups: - make some needlessly global code static - ide-dma.c: remove the unneeded EXPORT_SYMBOL(__ide_dma_test_irq) Signed-off-by: Adrian Bunk [EMAIL PROTECTED] applied -

Re: [patch libata-dev-2.6 1/1] libata: sync SMART ioctls with ATA pass thru spec (T10/04-262r7)

2005-02-02 Thread Jeff Garzik
Douglas Gilbert wrote: Hopefully these matters will be sorted out at the next t10 meeting in March. So that means I have to hold off releasing SMART support for SATA for yet another couple months? Oh well... Jeff - To unsubscribe from this list: send the line unsubscribe linux-kernel in

Re: [PATCH 2.6.11-rc2 01/29] ide: remove adma100

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Wed, 2 Feb 2005 11:43:53 +0900, Tejun Heo [EMAIL PROTECTED] wrote: 01_ide_remove_adma100.patch Removes drivers/ide/pci/adma100.[hc]. The driver isn't compilable (missing functions) and no Kconfig actually enables CONFIG_BLK_DEV_ADMA100. Signed-off-by: Tejun Heo

Re: [PATCH 2.6.11-rc2 02/29] ide: cleanup it8172

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Wed, 2 Feb 2005 11:44:54 +0900, Tejun Heo [EMAIL PROTECTED] wrote: 02_ide_cleanup_it8172.patch In drivers/ide/pci/it8172.h, it8172_ratefilter() and init_setup_it8172() are declared and the latter is referenced in it8172_chipsets. Both functions are not defined or

Re: [PATCH 2.6.11-rc2 03/29] ide: cleanup opti621

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Wed, 2 Feb 2005 11:45:38 +0900, Tejun Heo [EMAIL PROTECTED] wrote: 03_ide_cleanup_opti621.patch In drivers/ide/pci/opti612.[hc], init_setup_opt621() is declared, defined and referenced but never actullay used. Thie patch removes the function. Signed-off-by: Tejun

Re: [PATCH 2.6.11-rc2 06/29] ide: IDE_CONTROL_REG cleanup

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Wed, 2 Feb 2005 11:48:30 +0900, Tejun Heo [EMAIL PROTECTED] wrote: 06_ide_start_request_IDE_CONTROL_REG.patch Replaced HWIF(drive)-io_ports[IDE_CONTROL_OFFSET] with equivalent IDE_CONTROL_REG in ide-io.c. Signed-off-by: Tejun Heo [EMAIL PROTECTED] Index:

Re: [PATCH 2.6.11-rc2 10/29] ide: __ide_do_rw_disk() return value fix

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Wed, 2 Feb 2005 11:52:48 +0900, Tejun Heo [EMAIL PROTECTED] wrote: 10_ide_do_rw_disk_pre_task_out_intr_return_fix.patch In __ide_do_rw_disk(), ide_started used to be returned blindly after issusing PIO write. This can cause hang if pre_task_out_intr() returns

Re: [PATCH 2.6.11-rc2 12/29] ide: add ide_hwgroup_t.polling

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Wed, 2 Feb 2005 11:55:38 +0900, Tejun Heo [EMAIL PROTECTED] wrote: 12_ide_hwgroup_t_polling.patch ide_hwgroup_t.polling field added. 0 in poll_timeout field used to indicate inactive polling but because 0 is a valid jiffy value, though slim, there's a chance that

Re: [PATCH 2.6.11-rc2 11/29] ide: add ide_drive_t.sleeping

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Wed, 2 Feb 2005 11:54:48 +0900, Tejun Heo [EMAIL PROTECTED] wrote: 11_ide_drive_sleeping_fix.patch ide_drive_t.sleeping field added. 0 in sleep field used to indicate inactive sleeping but because 0 is a valid jiffy value, though slim, there's a chance that

Re: [PATCH 2.6.11-rc2 09/29] ide: __ide_do_rw_disk() lba48 dma check fix

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Wed, 2 Feb 2005 11:51:42 +0900, Tejun Heo [EMAIL PROTECTED] wrote: 09_ide_do_rw_disk_lba48_dma_check_fix.patch In __ide_do_rw_disk(), the shifted block, instead of the original rq-sector, should be used when checking range for lba48 dma. Signed-off-by: Tejun Heo

Re: [PATCH 2.6.11-rc2 13/29] ide: use time_after() macro

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Wed, 2 Feb 2005 11:56:49 +0900, Tejun Heo [EMAIL PROTECTED] wrote: 13_ide_tape_time_after.patch Explicit jiffy comparision converted to time_after() macro. Signed-off-by: Tejun Heo [EMAIL PROTECTED] applied - To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: [PATCH] arp_queue: serializing unlink + kfree_skb

2005-02-02 Thread David S. Miller
On Mon, 31 Jan 2005 22:33:26 +1100 Herbert Xu [EMAIL PROTECTED] wrote: We're using atomic integers to signal that we're done with an object. The object is usually represented by a piece of memory. The problem is that in most of the places where we do this (and that's not just in the

Re: [PATCH 1/2] ipv4 routing: splitting of ip_route_[in|out]put_slow, 2.6.10-rc3

2005-02-02 Thread David S. Miller
On Mon, 20 Dec 2004 12:13:24 +0100 Einar Lück [EMAIL PROTECTED] wrote: This patch splits up ip_route_[in|out]put_slow in inlined functions. Basic idea: * improve overall comprehensibility * allow for an easier application of patch for improved multipath support Patch applied to my 2.6.12

Re: [PATCH 2.6.11-rc2 14/29] ide: remove NULL checking in ide_error()

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Wed, 2 Feb 2005 11:57:28 +0900, Tejun Heo [EMAIL PROTECTED] wrote: 14_ide_error_remove_NULL_test.patch In ide_error(), drive cannot be NULL. ide_dump_status() can't handle NULL drive. applied, you missed Signed-off-by line - To unsubscribe from this list: send the line

Re: [PATCH 2.6.11-rc2 18/29] ide: comment fixes

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Wed, 2 Feb 2005 12:02:54 +0900, Tejun Heo [EMAIL PROTECTED] wrote: 18_ide_comment_fixes.patch Comment fixes. Signed-off-by: Tejun Heo [EMAIL PROTECTED] applied - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED]

Re: [PATCH 2.6.11-rc2 0/29] ide: driver updates

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Wed, 2 Feb 2005 11:40:17 +0900, Tejun Heo [EMAIL PROTECTED] wrote: Hello, B. Zolnierkiewicz. Hi, These patches are various fixes/improvements to the ide driver. They are against the 2.6 bk tree as of today (20050202). Nice series. As you probably already know I merged most

Re: [PATCH 2/2] ipv4 routing: multipath with cache support, 2.6.10-rc3

2005-02-02 Thread David S. Miller
On Mon, 20 Dec 2004 12:19:43 +0100 Einar Lück [EMAIL PROTECTED] wrote: This patch is an approach towards solving some problems with the current multipath implementation: * routing cache allows only one route to be cached for a certain search key * a mulitpath/load balancing decision is

Re: [PATCH 2.6.11-rc2 04/29] ide: cleanup piix

2005-02-02 Thread Bartlomiej Zolnierkiewicz
On Wed, 2 Feb 2005 11:46:11 +0900, Tejun Heo [EMAIL PROTECTED] wrote: 04_ide_cleanup_piix.patch In drivers/ide/pci/piix.[hc], init_setup_piix() is defined and used but only one init_setup function is defined and no demultiplexing is done using init_setup callback. As

Re: [PATCH 2.6] 4/7 replace uml_strdup by kstrdup

2005-02-02 Thread Paulo Marques
Pekka Enberg wrote: On Tue, 1 Feb 2005 03:28:31 +, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: diff -buprN -X dontdiff vanilla-2.6.11-rc2-bk9/arch/um/os-Linux/drivers/tuntap_user.c linux-2.6.11-rc2-bk9/arch/um/os-Linux/drivers/tuntap_user.c ---

driver model: fix types in usb

2005-02-02 Thread Pavel Machek
Hi! From: Bernard Blackham [EMAIL PROTECTED] This fixes types in USB w.r.t. driver model. It should not actually change any code. Please apply, Pavel Signed-off-by: Pavel Machek [EMAIL PROTECTED] diff -ru

Re: pci: Arch hook to determine config space size

2005-02-02 Thread Arnd Bergmann
On Dinsdag 01 Februar 2005 05:57, Benjamin Herrenschmidt wrote: BTW. I'm thinking about moving all those PCI/VIO related fields out of struct device_node to their own structure and keep only a pointer to that structure in device_node. That way, we avoid the bloat for every single non-pci node

Re: pci: Arch hook to determine config space size

2005-02-02 Thread Benjamin Herrenschmidt
On Wed, 2005-02-02 at 11:05 +0100, Arnd Bergmann wrote: How about something along the lines of this patch? Instead of adding a pointer to the pci data from the device node, it embeds the node inside a new struct pci_device_node. The patch is not complete and therefore not expected to work as

[PATCH] InfiniBand: add missing break between cases

2005-02-02 Thread Roland Dreier
From: Libor Michalek [EMAIL PROTECTED] Add a missing break statement between RC and UD cases in mthca_post_send(). This fixes a possible oops for protocols that use the RC transport. Signed-off-by: Libor Michalek [EMAIL PROTECTED] Signed-off-by: Roland Dreier [EMAIL PROTECTED] ---

Re: Sabotaged PaXtest (was: Re: Patch 4/6 randomize the stack pointer)

2005-02-02 Thread Theodore Ts'o
On Tue, Feb 01, 2005 at 07:15:49PM -0500, Theodore Ts'o wrote: Umm, so exactly how many applications use multithreading (or otherwise trigger the GLIBC mprotect call), For the record, I've been informed that the glibc mprotect() call doesn't happen in any modern glibc's; there may have been

Re: driver model u32 - pm_message_t conversion: help needed

2005-02-02 Thread Jes Sorensen
Pavel == Pavel Machek [EMAIL PROTECTED] writes: Pavel Hi! Two Long time ago, BenH said that making patches is easy, Pavel so I hope to get his help now... And will probably need more. Pavel Suspend routines change, slowly. Pavel - int (*suspend)(struct device * dev, u32 state); + int Pavel

Is there any list like this for Linux system administration?

2005-02-02 Thread selvakumar nagendran
Hello everyone, Is there any mailing list like this for Linux system administration? Plz help me regarding this? Thanks and Regards, selva __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com - To unsubscribe

Re: [Fastboot] [PATCH] Reserving backup region for kexec based crashdumps.

2005-02-02 Thread Vivek Goyal
On Tue, 2005-02-01 at 20:56, Eric W. Biederman wrote: Vivek Goyal [EMAIL PROTECTED] writes: Well, trying to put the already discussed ideas together. I was planning to work on following design. Please comment. Crashed Kernel --Capture Kernel(or User Space) Interface:

Re: Memory leak in 2.6.11-rc1?

2005-02-02 Thread Lennert Van Alboom
I applied the patch and it works like a charm. As a kinky side effect: before this patch, using a compiled-in vesa or vga16 framebuffer worked with the proprietary nvidia driver, whereas now tty1-6 are corrupt when not using 80x25. Strangeness :) Lennert On Monday 24 January 2005 23:35, Linus

Re: Sabotaged PaXtest (was: Re: Patch 4/6 randomize the stack pointer)

2005-02-02 Thread Peter Busser
Hi! Umm, so exactly how many applications use multithreading (or otherwise trigger the GLIBC mprotect call), and how many applications use nested functions (which is not ANSI C compliant, and as a result, very rare)? Do the tests both ways, and document when the dummy() re-entrant function

Re: driver model u32 - pm_message_t conversion: help needed

2005-02-02 Thread Pavel Machek
Hi! Pavel Hi! Two Long time ago, BenH said that making patches is easy, Pavel so I hope to get his help now... And will probably need more. Pavel Suspend routines change, slowly. Pavel - int (*suspend)(struct device * dev, u32 state); + int Pavel (*suspend)(struct device * dev,

Re: Sabotaged PaXtest (was: Re: Patch 4/6 randomize the stack pointer)

2005-02-02 Thread Arjan van de Ven
On Wed, 2005-02-02 at 10:35 +0100, Peter Busser wrote: Hi! Umm, so exactly how many applications use multithreading (or otherwise trigger the GLIBC mprotect call), and how many applications use nested functions (which is not ANSI C compliant, and as a result, very rare)? Do the tests

Re: Sabotaged PaXtest (was: Re: Patch 4/6 randomize the stack pointer)

2005-02-02 Thread Peter Busser
On Wednesday 02 February 2005 09:26, Theodore Ts'o wrote: On Tue, Feb 01, 2005 at 07:15:49PM -0500, Theodore Ts'o wrote: Umm, so exactly how many applications use multithreading (or otherwise trigger the GLIBC mprotect call), For the record, I've been informed that the glibc mprotect() call

Re: [linux-pm] Re: driver model u32 - pm_message_t conversion: help needed

2005-02-02 Thread Pavel Machek
Hi! Pavel Hi! Two Long time ago, BenH said that making patches is easy, Pavel so I hope to get his help now... And will probably need more. Pavel Suspend routines change, slowly. Pavel - int (*suspend)(struct device * dev, u32 state); + int Pavel (*suspend)(struct device * dev,

Re: Touchpad problems with 2.6.11-rc2

2005-02-02 Thread Vojtech Pavlik
On Tue, Feb 01, 2005 at 11:41:48PM -0800, Pete Zaitcev wrote: On 30 Jan 2005 12:10:34 +0100, Peter Osterlund [EMAIL PROTECTED] wrote: - Slow motion of finger produces no motion, then a jump. So, it's very hard to target smaller UI elements and some web links. I see this too

Re: Really annoying bug in the mouse driver

2005-02-02 Thread Victor Hahn
Dmitry Torokhov wrote: It still complains in dmesg about throwing away bytes, right? Please try loading the box some more to make sure mouse survives some abuse. No, it doesn't. The only message I still get is the one below. I've tried it with aprox. 90% CPU usage already and I didn't have any

Re: ALSA HELP: Crackling and popping noises with via82xx

2005-02-02 Thread Takashi Iwai
At Tue, 1 Feb 2005 21:34:59 -0500, Timothy Miller wrote: I've mentioned this problem before. It seemed to go away around the 2.6.8 timeframe, but when I started using 2.6.9, it came back. I'm using 2.6.10, and it's still happening. Basically, I get random poppling and crackling noises

Re: [PATCH 2/8] lib/sort: Replace qsort in XFS

2005-02-02 Thread Herbert Xu
Zan Lynx [EMAIL PROTECTED] wrote: And you get in the habit of using 0 instead of NULL and before you know it you've used it in a variable argument list for a GTK library call on an AMD64 system and corrupted the stack. :-) Using NULL without a cast is equally broken in a variadic context.

Re: [PATCH 1/8] lib/sort: Heapsort implementation of sort()

2005-02-02 Thread Herbert Xu
Andreas Gruenbacher [EMAIL PROTECTED] wrote: static inline void swap(void *a, void *b, int size) { if (size % sizeof(long)) { char t; do { t = *(char *)a; *(char *)a++ = *(char *)b;

Re: [patch, 2.6.11-rc2] sched: RLIMIT_RT_CPU_RATIO feature

2005-02-02 Thread hui
On Tue, Feb 01, 2005 at 11:10:48PM -0600, Jack O'Quin wrote: Ingo Molnar [EMAIL PROTECTED] writes: (also, believe me, this is not arrogance or some kind of game on our part. If there was a nice clean solution that solved your and others' problems equally well then it would already be in

Re: [PATCH 1/8] lib/sort: Heapsort implementation of sort()

2005-02-02 Thread Andreas Gruenbacher
On Wed, 2005-02-02 at 11:50, Herbert Xu wrote: Andreas Gruenbacher [EMAIL PROTECTED] wrote: static inline void swap(void *a, void *b, int size) { if (size % sizeof(long)) { char t; do { t = *(char *)a;

Re: [PATCH 2.6] 7/7 replace snd_kmalloc_strdup by kstrdup

2005-02-02 Thread Takashi Iwai
At Tue, 01 Feb 2005 17:15:56 +, Paulo Marques wrote: [1 text/plain; us-ascii (7bit)] Takashi Iwai wrote: [...] Thanks, that looks almost fine except: diff -uprN -X dontdiff vanilla-2.6.11-rc2-bk9/sound/core/sound.c linux-2.6.11-rc2-bk9/sound/core/sound.c ---

Re: [patch, 2.6.11-rc2] sched: RLIMIT_RT_CPU_RATIO feature

2005-02-02 Thread Ingo Molnar
* Jack O'Quin [EMAIL PROTECTED] wrote: Remember when I asked how you handle changes to sizeof(struct rusage)? That was a serious question. I hope there's a solution. [...] what does any of what we've talking about have to do with struct rusage? One of the patches i wrote adds a new rlimit.

[PATCH] FUSE - fix race in interrupted request

2005-02-02 Thread Miklos Szeredi
Hi Andrew, This patch fixes a potential race between request_wait_answer() calling background_request() and fuse_dev_writev() calling request_end() if a request is interrupted. The race could cause inodes and files to acquire an extra reference, making them unfreeable. Please apply. Thanks,

I RESEND THE MESSAGE

2005-02-02 Thread [EMAIL PROTECTED]
Dear friend, Assalamu Alaikum Salaam,I want to drop you a quick note because I did not hear back from you concerning the information I sent you the otherday.Incase you did not recieve the letter introducing my intent. I am mohammed Hassan an Iraqi.I got your contacts through my personal

Re: [PATCH 2.6] 1/7 create kstrdup library function

2005-02-02 Thread Paulo Marques
Pekka Enberg wrote: At some point in time, I wrote: kstrdup() is a special-case _memory allocator_ (not so much a string operation) so I think it should go into mm/slab.c where we currently have kcalloc(). On Tue, 01 Feb 2005 17:00:17 +, Paulo Marques [EMAIL PROTECTED] wrote: I was following

[TRIVIAL 2.6] Update panic() comment.

2005-02-02 Thread Heiko Carstens
[TRIVIAL 2.6] Update panic() comment. panic() doesn't flush the filesystem cache anymore. The comment above the function still claims it does. Thanks, Heiko = panic.c 1.22 vs edited = --- 1.22/kernel/panic.c 2004-11-08 03:16:06 +01:00 +++ edited/panic.c 2005-02-02 12:25:21 +01:00

Re: Sabotaged PaXtest (was: Re: Patch 4/6 randomize the stack pointer)

2005-02-02 Thread pageexec
Umm, so exactly how many applications use multithreading (or otherwise trigger the GLIBC mprotect call), and how many applications use nested functions (which is not ANSI C compliant, and as a result, very rare)? i think you're missing the whole point of paxtest. it's not about what glibc et

Re: Hugepages demand paging V2 [3/8]: simple numa compatible allocator

2005-02-02 Thread Hirokazu Takahashi
Hi Christoph, Changelog * Simple NUMA compatible allocation of hugepages in the nearest node Index: linux-2.6.9/mm/hugetlb.c === --- linux-2.6.9.orig/mm/hugetlb.c 2004-10-22 13:28:27.0 -0700 +++

Re: 1/7 create kstrdup library function

2005-02-02 Thread Pekka J Enberg
Paulo Marques writes: I agree with the is like kcalloc argument in the sense that it does an allocation + something else. But in this case the something else is in fact a string operation, so this just seem to be in the middle. Sure, but now you're forcing all users of string.h to depend on the

Re: Linux hangs during IDE initialization at boot for 30 sec

2005-02-02 Thread Richard Hughes
Benjamin Herrenschmidt benh at kernel.crashing.org writes: This looks like bogus HW, or bogus list of IDE interfaces ... How can I test to see if this is the case? The IDE layer waits up to 30 seconds for a device to drop it's busy bit, which is necessary for some drives that aren't fully

Re: Linux hangs during IDE initialization at boot for 30 sec

2005-02-02 Thread Con Kolivas
Richard Hughes wrote: Benjamin Herrenschmidt benh at kernel.crashing.org writes: This looks like bogus HW, or bogus list of IDE interfaces ... How can I test to see if this is the case? The IDE layer waits up to 30 seconds for a device to drop it's busy bit, which is necessary for some drives

[PATCH] Minor Kexec bug fix (2.6.11-rc2-mm2)

2005-02-02 Thread Vivek Goyal
Hi Andrew, This patch has been generated against 2.6.11-rc2-mm2. This fixes a very minor bug in kexec. Thanks Vivek This patch fixes a minor bug in kexec. Changing the data type of flags makes sure proper control flow of code during crash event. Signed-off-by: Vivek Goyal [EMAIL PROTECTED]

Re: Sabotaged PaXtest (was: Re: Patch 4/6 randomize the stack pointer)

2005-02-02 Thread Peter Busser
Hi! one thing that paxtest didn't get right in the 'kiddie' mode is that it still ran with an executable stack, that was not the intention but rather an oversight, it'll be fixed in the next release. still, this shouldn't leave you with a warm and fuzzy feeling about the security of

cpufreq problem wrt suspend/resume on Athlon64

2005-02-02 Thread Rafael J. Wysocki
Hi, I have noticed that the condition (cur_freq != cpu_policy-cur), which is unlikely() according to cpufreq.c:cpufreq_resume(), occurs on every resume on my box (Athlon64-based Asus). Every time the box resumes, I get a message like that: Warning: CPU frequency out of sync: cpufreq and timing

Re: cpufreq problem wrt suspend/resume on Athlon64

2005-02-02 Thread Pavel Machek
Hi! I have noticed that the condition (cur_freq != cpu_policy-cur), which is unlikely() according to cpufreq.c:cpufreq_resume(), occurs on every resume on my box (Athlon64-based Asus). Every time the box resumes, I get a message like that: Warning: CPU frequency out of sync: cpufreq and

Accelerated frame buffer functions

2005-02-02 Thread Haakon Riiser
How can I use a frame buffer driver's optimized copyarea, fillrect, blit, etc. from userspace? The only way I've ever seen anyone use the frame buffer device is by mmap()ing it and doing everything manually in the mapped memory. I assume there must be ioctls for accessing the accelerated

cdrtools 2.01 not working in 2.6.10

2005-02-02 Thread Rodrigo Ventura
I can't use cdrtools 2.01 with kernel 2.6.10 (i386, P4). Once the 0 of xxx MB written message appears, the CD-writer spins down, the HD led lits, and the system nearly hangs (many processes in D(isk) state). After a minute or two, timeout messages on hda (main HD) appear in dmesg, followed by hdc

Re: [PATCH] Dynamic tick, version 050127-1

2005-02-02 Thread Pavel Machek
Hi! I don't think it's HPET timer, or CONFIG_SMP. It also looks like your local APIC timer is working. If you have a serial console, you can put one letter printks in the code. Can you check if you ever get to smp_apic_timer_interrupt()? That's where you should get to after the sleep, and

Re: [PATCH] Dynamic tick, version 050127-1

2005-02-02 Thread Pavel Machek
Hi! Hmmm, that sounds like the local APIC does not wake up the PIT interrupt properly after sleep. Hitting the keys causes the timer interrupt to get called, and that explains why it keeps running. But the timer ticks are not happening as they should for some reason. This should

Re: [PATCH] Dynamic tick, version 050127-1

2005-02-02 Thread Pavel Machek
Hi! Hmmm, that sounds like the local APIC does not wake up the PIT interrupt properly after sleep. Hitting the keys causes the timer interrupt to get called, and that explains why it keeps running. But the timer ticks are not happening as they should for some reason. This should

Re: Accelerated frame buffer functions

2005-02-02 Thread linux-os
On Wed, 2 Feb 2005, Haakon Riiser wrote: How can I use a frame buffer driver's optimized copyarea, fillrect, blit, etc. from userspace? The only way I've ever seen anyone use the frame buffer device is by mmap()ing it and doing everything manually in the mapped memory. I assume there must be

Re: Sabotaged PaXtest (was: Re: Patch 4/6 randomize the stack pointer)

2005-02-02 Thread Ingo Molnar
* [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] Dynamic tick, version 050127-1

2005-02-02 Thread Pavel Machek
Hi! I used your config advices from second mail, still it does not work as expected: system gets too sleepy. Like it takes a nap during boot after dyn-tick: Maximum ticks to skip limited to 1339, and key is needed to make it continue boot. Then cursor stops blinking and

Re: Linux hangs during IDE initialization at boot for 30 sec

2005-02-02 Thread Richard Hughes
Con Kolivas kernel at kolivas.org writes: I'm not sure how the list of intefaces is probed on this machine, that's probably where the problem is. I've read that people have had this problem go away if they disable this option: generic/default IDE chipset support Okay I'll try

Re: Accelerated frame buffer functions

2005-02-02 Thread Haakon Riiser
[Dick Johnson] On Wed, 2 Feb 2005, Haakon Riiser wrote: How can I use a frame buffer driver's optimized copyarea, fillrect, blit, etc. from userspace? The only way I've ever seen anyone use the frame buffer device is by mmap()ing it and doing everything manually in the mapped memory. I

Re: [Fastboot] [PATCH] Reserving backup region for kexec based crashdumps.

2005-02-02 Thread Eric W. Biederman
Itsuro Oda [EMAIL PROTECTED] writes: Hi, I can't understand why ELF format is necessary. ELF format is not. However essentially the information an ELF provides is. So using an ELF header to convey that information is a sane choice of data structure. I think the only necessary

Re: [Fastboot] [PATCH] Reserving backup region for kexec based crashdumps.

2005-02-02 Thread Eric W. Biederman
Koichi Suzuki [EMAIL PROTECTED] writes: I meant with kexec and dump hook, there could be many more things can be done in addition to full core dump. Initiating failover to other node will be one example. Starting with this hook, there must be many good ideas. So my idea is to make

Re: [PATCH] s390: getdents patch for 32 - 64 converter

2005-02-02 Thread Martin Schwidefsky
Hi Sripathi, This patch solves a problem with working of getdents while using 32 bit binaries on 64 bit Linux/390. glibc expects d_type to be passed if we have a kernel version after 2.6.4, so we have to also handle it in the 32bit syscall converter. Similar patch was given for PPC by

Re: [Fastboot] [PATCH] Reserving backup region for kexec based crashdumps.

2005-02-02 Thread Eric W. Biederman
And the feedback begins :) Itsuro Oda [EMAIL PROTECTED] writes: Hi, I don't like calling crash_kexec() directly in (ex.) panic(). It should be call_dump_hook() (or something like this). I think the necessary modifications of the kernel is only: - insert the hooks that calls a dump

Copyright / licensing question

2005-02-02 Thread Frank klein
Hi, I have got an offer to write a book on Linux filesystems. In this I would like to cover existing filesystems like ext3, xfs etc. I would also cover embedded file systems such as jffs,ROMfs,cramsf etc. I am having some licensing questions. It would be really great if you can clarify on them

Re: Copyright / licensing question

2005-02-02 Thread Arjan van de Ven
On Wed, 2005-02-02 at 06:49 -0800, Frank klein wrote: Hi, I have got an offer to write a book on Linux filesystems. In this I would like to cover existing filesystems like ext3, xfs etc. I would also cover embedded file systems such as jffs,ROMfs,cramsf etc. I am having some licensing

Re: PROBLEM: 2.6.11-rc2 hangs on bridge shutdown (br0)

2005-02-02 Thread Matthias-Christian Ott
Mirko Parthey wrote: On Mon, Jan 31, 2005 at 05:22:02PM +0100, wrote: My Debian machine hangs during shutdown, with messages like this: unregister_netdevice: waiting for br0 to become free. Usage count = 1 I narrowed it down to the command # brctl delbr br0 which does not return in the

  1   2   3   4   5   6   7   >