From owner-freebsd-current@freebsd.org Thu Feb 14 20:47:29 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03AD514E11A3 for ; Thu, 14 Feb 2019 20:47:29 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9C3018B278; Thu, 14 Feb 2019 20:47:28 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-3.local (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 47F5D87BE; Thu, 14 Feb 2019 20:47:28 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Subject: Re: Panic in sys_fstatat() To: sgk@troutmask.apl.washington.edu Cc: freebsd-current@freebsd.org References: <20190214024703.GA51003@troutmask.apl.washington.edu> <786f8034-b3ef-54cb-043b-e189e752b18b@FreeBSD.org> <20190214203813.GA75902@troutmask.apl.washington.edu> From: John Baldwin Openpgp: preference=signencrypt Autocrypt: addr=jhb@FreeBSD.org; keydata= mQGiBETQ+XcRBADMFybiq69u+fJRy/0wzqTNS8jFfWaBTs5/OfcV7wWezVmf9sgwn8TW0Dk0 c9MBl0pz+H01dA2ZSGZ5fXlmFIsee1WEzqeJzpiwd/pejPgSzXB9ijbLHZ2/E0jhGBcVy5Yo /Tw5+U/+laeYKu2xb0XPvM0zM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SJW1lIr9/bDp4U9tw0V1g3l2dFtD3p3ZrQ3hpoDtoK70ioIAjjH aIXIAcm3FGZFXy503DOA0KaTWwvOVdYCFLm3zWuSOmrX/GsEc7ovasOWwjPn878qVjbUKWwx Q4QkF4OhUV9zPtf9tDSAZ3x7QSwoKbCoRCZ/xbyTUPyQ1VvNy/mYrBcYlzHodsaqUDjHuW+I SQQYEQIACQUCRND5ggIbDAAKCRBy3lIGd+N/BCO8AJ9j1dWVQWxw/YdTbEyrRKOY8YZNwwCf afMAg8QvmOWnHx3wl8WslCaXaE8= Message-ID: Date: Thu, 14 Feb 2019 12:47:26 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190214203813.GA75902@troutmask.apl.washington.edu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 9C3018B278 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-0.99)[-0.993,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.959,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Thu, 14 Feb 2019 20:47:29 -0000 On 2/14/19 12:38 PM, Steve Kargl wrote: > On Thu, Feb 14, 2019 at 12:26:01PM -0800, John Baldwin wrote: >> On 2/13/19 6:47 PM, Steve Kargl wrote: >>> #16 0x00ff58bb in trap (frame=0x2e7b6880) at /usr/src/sys/i386/i386/trap.c:519 >>> #17 0xffc0315d in ?? () >>> #18 0x2e7b6880 in ?? () >>> #19 0x00d1de64 in lookup (ndp=0x2e7b6a50) >>> at /usr/src/sys/kern/vfs_lookup.c:710 >>> #20 0x00d1d763 in namei (ndp=0x2e7b6a50) at /usr/src/sys/kern/vfs_lookup.c:487 >>> #21 0x00d372c5 in kern_statat (td=0x3c5dc700, flag=0, fd=-100, >>> path=0x2cced08e , >>> pathseg=UIO_USERSPACE, sbp=0x2e7b6b18, hook=0x0) >>> at /usr/src/sys/kern/vfs_syscalls.c:2307 >>> #22 0x00d37c99 in sys_fstatat (td=0x3c5dc700, uap=0x3c5dc988) >>> at /usr/src/sys/kern/vfs_syscalls.c:2284 >>> #23 0x00ff69fa in syscallenter (td=) >>> at /usr/src/sys/i386/i386/../../kern/subr_syscall.c:135 >>> #24 syscall (frame=0x2e7b6ce8) at /usr/src/sys/i386/i386/trap.c:1144 >>> #25 0xffc033a7 in ?? () >>> #26 0x2e7b6ce8 in ?? () >>> Backtrace stopped: Cannot access memory at address 0xfbafbbbc >>> (kgdb) >> >> Frame 18 is probably the root problem, though it doesn't look like kgdb is >> able to unwind it correctly. Looking at frame 19 might help though. It >> seems like a NULL pointer dereference when invoking VOP_LOCK. >> > > I can't look at this until tonight (about 6-7 hours). > Anything in frame 19 that you would be particularly > interested in? Just what source line it is and what the value of the arguments passed to the function it is calling are. Probably it's vn_lock() or VOP_LOCK() and it's most likely the 'vp' that is NULL, but it would be good to see all the args passed to the function if possible. -- John Baldwin