From owner-freebsd-current@FreeBSD.ORG Sun Jun 14 15:44:29 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 244621065672 for ; Sun, 14 Jun 2009 15:44:29 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-ew0-f212.google.com (mail-ew0-f212.google.com [209.85.219.212]) by mx1.freebsd.org (Postfix) with ESMTP id A01C08FC20 for ; Sun, 14 Jun 2009 15:44:28 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by ewy8 with SMTP id 8so3623899ewy.43 for ; Sun, 14 Jun 2009 08:44:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=pc79JvGBe/ai1nzwBTc0FA08usZx6bS+sA4xyQAgr1I=; b=XVozopWn6+zm1uOEl8OkW9I+loQuD9uqyzStFHHPkQIyJOZHf5Nsm98cyvFzChIRBi pPcLO/DyI9B6aui/jgZNC/LrtwhIMwE43Dtv5izWvET2hCxvZxdWpxtwY5q5TFR34N2c yM+A+5xyHE3ykRcHAH8ESzkVSHx6V6WsWfXVY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=GKdOm/hb+NrJjIkpVctbo1e7u8gmWIT0Yxgf5c2CHq/HmkGj1Gu6Y4Y4bTf2TaDVXn GA2/OP7j+wLrgbCwxP1qZaXwvXVtF8hL17zRC6kyTvtJRl9BMCDl3JylOOp+IgmJvn54 y7qauGdiUMvI755IPzSH+j0KrJ1+ul7QIvEts= Received: by 10.211.195.15 with SMTP id x15mr3396034ebp.18.1244992438633; Sun, 14 Jun 2009 08:13:58 -0700 (PDT) Received: from gmail.com (sdferwer192.net.autocom.pl [77.236.1.49]) by mx.google.com with ESMTPS id 24sm416918eyx.33.2009.06.14.08.13.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 14 Jun 2009 08:13:57 -0700 (PDT) Date: Sun, 14 Jun 2009 17:13:46 +0200 From: Mateusz Guzik To: Alexander Best Message-ID: <20090614151343.GA89156@skucha.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-current@freebsd.org Subject: Re: linux syscall get_robust_list causes panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2009 15:44:29 -0000 On Sun, Jun 14, 2009 at 04:27:45PM +0200, Alexander Best wrote: > hi there, > > i tried to run the latest release (20090531) of the linux test project (ltp) > with emulators/linux_dist-gentoo-stage3. however the kernel panics after ltp's > get_robust_list(2) test. set_robust_list(2) passes without any problems. > > i've attached a screenshot of the panic and the source which is causing the > panic. you won't be able to compile it without ltp however. after installing > and compiling ltp the source and the executable can be found in > "/usr/local/gentoo-stage3/ltp-full-20090531/testcases/kernel/syscalls/get_robust_list". > simply running the > "/usr/local/gentoo-stage3/ltp-full-20090531/testcases/kernel/syscalls/get_robust_list/get_robust_list01" > executable results in a panic. > > unfortunately i cannot supply a complete bt, because i only own a usb keyboard > which doesn't respond after the panic. actually i'm a bit surprised the > debugger was started, because i have "KDB_UNATTENDED" in my kernel conf. any > reason the machine doesn't reboot and save the dump to /var/crash/vmcore.*? > > i'm running r193846 (CURRENT). > > cheers. Just a guess: it looks like linux_get_robust_list can return EPERM without unlocking process found by pfind. Can you add PROC_UNLOCK(p) before that return and check it? Unfortunately I can't do that right now. -- Mateusz Guzik