From owner-cvs-src-old@FreeBSD.ORG Thu Jan 27 21:45:54 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76C67106566C for ; Thu, 27 Jan 2011 21:45:54 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4B2788FC1D for ; Thu, 27 Jan 2011 21:45:54 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p0RLjssQ065838 for ; Thu, 27 Jan 2011 21:45:54 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p0RLjsYi065837 for cvs-src-old@freebsd.org; Thu, 27 Jan 2011 21:45:54 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <201101272145.p0RLjsYi065837@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Thu, 27 Jan 2011 21:45:38 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/linux32 linux.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2011 21:45:54 -0000 kib 2011-01-27 21:45:38 UTC FreeBSD src repository Modified files: sys/amd64/linux32 linux.h Log: SVN rev 217991 on 2011-01-27 21:45:38Z by kib linux_sigreturn() loads the struct trapframe from l_sigcontext members, thus making a signed extension of 32 bit register context. If the register is not touched in usermode between return from signal and next syscall entry, the sign-extension part of 64bit register is not cleared, causing linux32_fetch_syscall_args() to read wrong values. Use unsigned type for the registers in the linux sigcontext. Reported by: Jacob Frelinger , arundel In collaboration with: dchagin MFC after: 1 week Revision Changes Path 1.31 +22 -22 src/sys/amd64/linux32/linux.h