David Miller wrote:
From: BERTRAND_Joël <joel.bertrand@xxxxxxxxxxx>
Date: Thu, 12 Jul 2007 11:50:38 +0200
Process stops at line 17384 in clamav-strace:
futex(0x25944f0, FUTEX_WAIT
Line terminaison was written ("2, NULL) = ? ERESTARTSYS (To be
restarted)") when I have pressed ctrl+C, but process remains in sleep
state. I have tried kill -15 (without any success). Only kill -9 kills
clamd.
Can you give this patch a try?
diff --git a/include/asm-sparc64/futex.h b/include/asm-sparc64/futex.h
index 876312f..3b5797e 100644
--- a/include/asm-sparc64/futex.h
+++ b/include/asm-sparc64/futex.h
@@ -14,6 +14,7 @@
" cmp %2, %1\n" \
" bne,pn %%icc, 1b\n" \
" mov 0, %0\n" \
+ " sra %1, 0, %1\n" \
"3:\n" \
" .section .fixup,#alloc,#execinstr\n" \
" .align 4\n" \
@@ -88,6 +89,7 @@ futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval)
{
__asm__ __volatile__(
"\n1: casa [%3] %%asi, %2, %0\n"
+ " sra %0, 0, %0\n"
"2:\n"
" .section .fixup,#alloc,#execinstr\n"
" .align 4\n"
Applied. My U60 is rebuilding a 2.6.22.1 kernel with your patch. I test
and I'll come back with feedback.
Thanks,
JKB
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html