From owner-freebsd-current@FreeBSD.ORG Fri Aug 12 13:15:17 2011 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 317661065673; Fri, 12 Aug 2011 13:15:17 +0000 (UTC) (envelope-from ttsestt@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 865448FC15; Fri, 12 Aug 2011 13:15:16 +0000 (UTC) Received: by fxe4 with SMTP id 4so3041191fxe.13 for ; Fri, 12 Aug 2011 06:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=MyFlXTXvygAvN508cl+1AhlTlohOtNbLtKkXL9SPVno=; b=fKPWCOP/qMX01TkunzZKNyo+FiIfdtUu1eKRk9JxKyz4nbv9HjKLXE0FeDjzdQa5GQ Ad+Ok+CqLzGump+ryoGYy1nhYKRSL30ADd/OD40Sh3K54iNuLE9K0Y9adWZxmpYAsHW7 0gmGUPeRIVsMj8TonU+gyB8wOjxSjtscjcwqc= Received: by 10.223.62.6 with SMTP id v6mr1219207fah.132.1313154915445; Fri, 12 Aug 2011 06:15:15 -0700 (PDT) Received: from localhost (vps18345.ovh.net [46.105.27.26]) by mx.google.com with ESMTPS id p3sm2420265faa.9.2011.08.12.06.15.12 (version=SSLv3 cipher=OTHER); Fri, 12 Aug 2011 06:15:13 -0700 (PDT) From: Test Rat To: Alexander Best References: <20110812101627.GA1848@freebsd.org> Date: Fri, 12 Aug 2011 17:15:02 +0400 In-Reply-To: <20110812101627.GA1848@freebsd.org> (Alexander Best's message of "Fri, 12 Aug 2011 10:16:27 +0000") Message-ID: <86obzuydnt.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-current@freebsd.org Subject: Re: recent commit causes lock up 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: Fri, 12 Aug 2011 13:15:17 -0000 Alexander Best writes: > hi there, > > running r224715 i'm having no problems what so ever. after upgrading my kernel > to r224784, i'm experiencing fatal lock ups, where only a hard reset will > resolve the problem. > > the lock up happend two times while running chromium with only a decent number > of tabs (~ 5). also the lock up occured only after ~ 5 minutes uptime and an > uptime of chromium of only ~ 2 minutes. > > i've now reverted my kernel back to r224715 and everything's working again. Do you use x11/nvidia-driver? In r224778 fget(9) KPI changed which broke the port in src/nvidia_linux.c:linux_ioctl_nvidia(). It's probably only called when using linuxolator, e.g. flash plugin. Try below workaround. %% --- src/nvidia_linux.c~ +++ src/nvidia_linux.c @@ -26,6 +26,8 @@ #include "machine/../linux32/linux32_proto.h" #endif +#include + int linux_ioctl_nvidia(d_thread_t *, struct linux_ioctl_args *); int linux_ioctl_nvidia( @@ -37,7 +39,7 @@ int linux_ioctl_nvidia( int error; u_long cmd; - if ((error = fget(td, args->fd, &fp)) != 0) + if ((error = fget(td, args->fd, CAP_IOCTL, &fp)) != 0) return error; cmd = args->cmd; %%