From owner-freebsd-fs@freebsd.org Fri Sep 29 18:22:47 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D0656E327C8 for ; Fri, 29 Sep 2017 18:22:47 +0000 (UTC) (envelope-from citrin@citrin.ru) Received: from hz.citrin.ru (hz.citrin.ru [IPv6:2a01:4f8:d16:10c3::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9D0D370BDB for ; Fri, 29 Sep 2017 18:22:47 +0000 (UTC) (envelope-from citrin@citrin.ru) Received: from x220.lan (unknown [IPv6:2601:18a:c680:9888:9477:d48c:3bae:c7eb]) by hz.citrin.ru (Postfix) with ESMTPSA id 1FB212C1653 for ; Fri, 29 Sep 2017 18:22:45 +0000 (UTC) To: freebsd-fs@freebsd.org From: Anton Yuzhaninov Subject: Panic: vm_fault: fault on nofault entry Message-ID: <35aef1ac-a1dd-4526-46f8-599b4fb3b0f4@citrin.ru> Date: Fri, 29 Sep 2017 14:22:43 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrin.ru; s=s0; t=1506709365; bh=6BtTk5+IwFGJepWBaJGLWNaQBbpnTPf456tWAoL3SNQ=; h=To:From:Subject:Message-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; b=sUajXfrx+41cKecauDPMglD4OKY//96Mc7F+k9SzQDq9Rg5/w2EwhYoBw5+YVPTdw0wd64y1snTZVYvHkHirgyXnxWk/ip6FamQp3h/TsWKurVYq9m8DihbIKFGr67K/nXHQ1+xc1GMx24+yU5ULlkJtK73LglIykLCYuiSrEuY= X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2017 18:22:47 -0000 Hi All, I have panics when I try to use nginx on my notebook. When sendfile is enabled it is easy to trigger panic, after disabling sendfile I've got no panics so far and I think that panic is triggered by using sendfile. Root filesystem - UFS on GELI whith 8k sectorsize. GELI with sectorsize large than page size is non-standard configuration, and I've got problem because of this in the past: https://lists.freebsd.org/pipermail/freebsd-fs/2016-October/023957.html but it was fixed in: https://svnweb.freebsd.org/changeset/base/307626 Probably I've not used sendfile on this filesystem since then. Panic string is: "vm_fault: fault on nofault entry, addr: fffffe0220ab6000" 0xfffffe0220ab6000 is the address for bzero in vnode_pager_generic_getpages_done (kgdb) f 17 #17 0xffffffff807ee290 in vnode_pager_generic_getpages_done (bp=0xfffffe01ea816490) at /spool/src/sys/vm/vnode_pager.c:1049 1049 bzero(bp->b_data + bp->b_bcount, (kgdb) l 1044 if (!buf_mapped(bp)) { 1045 bp->b_data = bp->b_kvabase; 1046 pmap_qenter((vm_offset_t)bp->b_data, bp->b_pages, 1047 bp->b_npages); 1048 } 1049 bzero(bp->b_data + bp->b_bcount, 1050 PAGE_SIZE * bp->b_npages - bp->b_bcount); 1051 } 1052 if (buf_mapped(bp)) { 1053 pmap_qremove((vm_offset_t)bp->b_data, bp->b_npages); (kgdb) p bp->b_data + bp->b_bcount $4 = 0xfffffe0220ab6000
bp->b_data is a pointer to data from a file served using sendfile. and bp->b_bcount is 8192 (GELI sector size is also 8192) Full backtrace: http://termbin.com/dqpl OS version: 11.1-STABLE #0 r322995 -- Best Regards, Anton Yuzhaninov