From owner-freebsd-ppc@freebsd.org Mon Dec 3 17:00:01 2018 Return-Path: Delivered-To: freebsd-ppc@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 6821E132CE11 for ; Mon, 3 Dec 2018 17:00:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id F0F8A8A7ED for ; Mon, 3 Dec 2018 17:00:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B4F4E132CE0D; Mon, 3 Dec 2018 17:00:00 +0000 (UTC) Delivered-To: ppc@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 92BC6132CE0C for ; Mon, 3 Dec 2018 17:00:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2A75D8A7E3 for ; Mon, 3 Dec 2018 17:00:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id E02861668F for ; Mon, 3 Dec 2018 16:59:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wB3Gxt0e069636 for ; Mon, 3 Dec 2018 16:59:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wB3Gxttk069634 for ppc@FreeBSD.org; Mon, 3 Dec 2018 16:59:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ppc@FreeBSD.org Subject: [Bug 233414] [PowerPC64] OPTIONS DEBUG_MEMGUARD results in unbootable kernel Date: Mon, 03 Dec 2018 16:59:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: leandro.lupori@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ppc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: F0F8A8A7ED X-Spamd-Result: default: False [0.51 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.04)[-0.035,0]; NEURAL_SPAM_SHORT(0.54)[0.536,0]; NEURAL_SPAM_LONG(0.01)[0.010,0]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Dec 2018 17:00:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233414 --- Comment #6 from Leandro Lupori --- (In reply to Leandro Lupori from comment #5) Unfortunately I hit the recursive call to kmem_back_domain() issue again. root@ppcdevref:~ # panic: __rw_wlock_hard: recursing but non-recursive rw kernel vm object @ /usr/src/sys/vm/vm_kern.c:472 cpuid =3D 70 time =3D 1543855595 KDB: stack backtrace: 0xe000000173207c10: at .kdb_backtrace+0x5c 0xe000000173207d40: at .vpanic+0x1b4 0xe000000173207e00: at .panic+0x38 0xe000000173207e90: at .__rw_wlock_hard+0x174 0xe000000173207fa0: at ._rw_wlock_cookie+0x110 0xe000000173208040: at .kmem_back_domain+0x134 0xe000000173208130: at .kmem_back_domain+0x438 0xe0000001732081f0: at .kmem_back+0x18 0xe000000173208270: at .memguard_alloc+0x188 0xe000000173208360: at .uma_zalloc_arg+0xe0 0xe000000173208420: at .uma_zalloc_pcpu_arg+0x174 0xe0000001732084c0: at .uma_zfree_arg+0x4c4 0xe000000173208570: at .uma_zfree_pcpu_arg+0xc4 0xe000000173208600: at .uma_zalloc_arg+0x3c0 0xe0000001732086c0: at .moea64_get_unique_vsid+0x2e4 0xe000000173208740: at .moea64_enter+0xac 0xe000000173208840: at .pmap_enter+0xb4 0xe0000001732088f0: at .kmem_back_domain+0x27c 0xe0000001732089e0: at .kmem_malloc_domainset+0xc8 0xe000000173208ad0: at .uma_large_malloc_domain+0xa4 0xe000000173208b60: at .uma_large_malloc+0x1c 0xe000000173208be0: at .malloc+0x134 0xe000000173208c90: at .zfs_kmem_alloc+0x34 0xe000000173208d10: at .zio_buf_alloc+0xec 0xe000000173208db0: at .abd_alloc_linear+0xec 0xe000000173208e50: at .abd_alloc_for_io+0x34 0xe000000173208ed0: at .vdev_queue_io_to_issue+0x8c4 0xe000000173209420: at .vdev_queue_io_done+0x20c 0xe0000001732094f0: at .zio_vdev_io_done+0x12c 0xe000000173209590: at .zio_execute+0x1c4 0xe000000173209670: at .taskq_run_ent+0x30 0xe0000001732096f0: at .taskqueue_poll_is_busy+0x250 0xe0000001732097c0: at .taskqueue_thread_loop+0xac 0xe000000173209850: at .fork_exit+0xd0 0xe0000001732098f0: at .fork_trampoline+0x10 0xe000000173209920: at -0x4 KDB: enter: panic [ thread pid 0 tid 101000 ] Stopped at .kdb_enter+0x60: ld r2, r1, 0x28 db>=20=20 It is interesting that this time memguard_alloc() was not called twice, but= it was called before the first call to kmem_back_domain() returned. Any idea on how to work around this? Maybe force memguard to also guard mal= loc? --=20 You are receiving this mail because: You are the assignee for the bug.=