From: Jurij Smakov Date: Tue, 08 Feb 2005 14:52:47 +0000 Subject: Re: Hang in SIOCGIFCONF ioctl handler Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org On Mon, 7 Feb 2005, David S. Miller wrote: > Yep, and notice that the "extra bit" is (1 << 32), or the first bit > in the upper 32-bits of the 64-bit kernel pointer. In short, we get > garbage from the upper 32-bits of the stack pointer, and need to > mask it out for 32-bit tasks. The fix is obvious, try this: > > === include/asm-sparc64/compat.h 1.17 vs edited ==> --- 1.17/include/asm-sparc64/compat.h 2005-02-02 04:05:45 -08:00 > +++ edited/include/asm-sparc64/compat.h 2005-02-07 19:51:15 -08:00 > @@ -133,6 +133,8 @@ > > if (!(test_thread_flag(TIF_32BIT))) > usp += STACK_BIAS; > + else > + usp &= 0xffffffffUL; > > return (void __user *) (usp - len); > } Hi Dave, This patch takes care of the problem nicely (ypbind/ypwhich no longer hangs and ifconfig works fine). Thanks a lot for quick fixes. Best regards Jurij Smakov jurij@wooyd.org Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC