Skip to contentSkip to conversation

linux-2.6 jejb

parisc-linux Carlos O'Donell 3 participants 3 messages Apr 6, 2004 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 11 lines · James Bottomley

CVSROOT: /var/cvs
Module name: linux-2.6
Changes by: jejb 04/04/05 11:41:31

Modified files:
. : Makefile
include/asm-parisc: cacheflush.h

Log message:
Fix our gdb breakpoint problem

Quoted 6 lines

Removing the full cache flush on non-current process access showed up a but in copy_to_user_page(), which is now fixed.

I also revoked the uselessly named

flush_icache_user_range()

What was the fix? Can you explain the change please? :)

The glibc test-suite almost completed without issue on the newest kernel, though I saw a transient failure in one of the resolv tests, it wasn't a failure in the test, but rather the test ran longer than 2 seconds and was killed. The test uses mtrace() and I've not been able to duplicate the failure, the test should *not* have run over the milisecond mark. I wasn't running anything on the box at that point so it worries me quite a bit. With the box up and running I'm no longer able to trigger the slow behaviour that caused the timeout. Previous to this I had run the entire compile + testsuite from a clean boot, I'll see if doing that again triggers the failure. It might not be related to anything you've done, I don't think I've ever run a glibc build and testsuite from a cold boot... who knows what VM issues lurk?

c.

#2 lore raw
Quoted 1 line · Carlos O'Donell

What was the fix? Can you explain the change please? :)

copy_to_user_page() does the copy via a non-equivalently aliased kernel page. Unless that page is flushed at the kernel address, the writeback cache may not make the data visible (which is why gdb wasn't able to set breakpoints anymore).

For some reason every arch implements copy_to_user_page as a memcpy followed by flush_icache_user_range(). The usually map flush_icache_user_range() to a kernel dcache page flush, which is contradictory.

Quoted 4 lines

The glibc test-suite almost completed without issue on the newest kernel, though I saw a transient failure in one of the resolv tests, it wasn't a failure in the test, but rather the test ran longer than 2 seconds and was killed. The test uses mtrace() and I've not been able to

Quoted 8 lines

duplicate the failure, the test should *not* have run over the milisecond mark. I wasn't running anything on the box at that point so it worries me quite a bit. With the box up and running I'm no longer able to trigger the slow behaviour that caused the timeout. Previous to this I had run the entire compile + testsuite from a clean boot, I'll see if doing that again triggers the failure. It might not be related to anything you've done, I don't think I've ever run a glibc build and testsuite from a cold boot... who knows what VM issues lurk?

It's possible. As global flushes get removed any lurking holes in the rest of the API will emerge when they stop being covered by the global flush.

James

#3 lore raw
Quoted 3 lines

It's possible. As global flushes get removed any lurking holes in the rest of the API will emerge when they stop being covered by the global flush.

i also saw a weird problem last night where i suddenly ran out of memory (1.5G physical + 500MB swap) and the OOM killer killed lots of apache processes. Earlier I was running a gdb testsuite and had to kill a bunch of stuck processes (there's some problems in gdb that i'm debugging...). There are a lot of "protection id trap" messages in my kernel log. not sure which bit was real and which bit was coincidence though :(

i'll try this again with an older kernel and see what happens.

randolph

Signature · 3 lines
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/