From owner-cvs-all@FreeBSD.ORG Sat Dec 29 14:25:30 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF32716A41A; Sat, 29 Dec 2007 14:25:30 +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 8AA1413C442; Sat, 29 Dec 2007 14:25:30 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lBTEPUZN051296; Sat, 29 Dec 2007 14:25:30 GMT (envelope-from kib@repoman.freebsd.org) Received: (from kib@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBTEPUsf051295; Sat, 29 Dec 2007 14:25:30 GMT (envelope-from kib) Message-Id: <200712291425.lBTEPUsf051295@repoman.freebsd.org> From: Konstantin Belousov Date: Sat, 29 Dec 2007 14:25:30 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/compat/linux linux_stats.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Dec 2007 14:25:30 -0000 kib 2007-12-29 14:25:29 UTC FreeBSD src repository Modified files: sys/compat/linux linux_stats.c Log: Apply the LCONVPATH() to the (old) linux_stat() and linux_lstat() syscalls. Without it, code has two problems: - behaviour of the old and new [l]stat are different with regard of the /compat/linux - directly accessing the userspace data from the kernel asks for the panics. Reported and tested by: Peter Holm Reviewed by: rdivacky MFC after: 3 days Revision Changes Path 1.89 +12 -3 src/sys/compat/linux/linux_stats.c