From nobody Thu Jul 01 20:01:32 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A763C11D648F for ; Thu, 1 Jul 2021 20:01:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GG8HJ47jlz4sph for ; Thu, 1 Jul 2021 20:01:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6CB82268BE for ; Thu, 1 Jul 2021 20:01:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 161K1WXe056025 for ; Thu, 1 Jul 2021 20:01:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 161K1WPJ056024 for bugs@FreeBSD.org; Thu, 1 Jul 2021 20:01:32 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: bugs@FreeBSD.org Subject: [Bug 256928] dtrace: stack() cannot resolve kernel module symbols Date: Thu, 01 Jul 2021 20:01:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bmueller@panasas.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256928 Bug ID: 256928 Summary: dtrace: stack() cannot resolve kernel module symbols Product: Base System Version: 12.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: bmueller@panasas.com CC: rpokala@FreeBSD.org dtrace stack() is not resolving kernel module symbols for either FreeBSD 12= .1 or 12.2. The example below exercises autofs.ko. autofs_readdir is display= ed as linux.ko`0xffffffff82a3b314 dtrace -n 'fbt:autofs::entry { @[stack(), ustack()] =3D count(); }' -c 'ls = -l /net' ... linux.ko`0xffffffff82a3b314 kernel`VOP_READDIR_APV+0x7b kernel`kern_getdirentries+0x201 kernel`sys_getdirentries+0x29 kernel`amd64_syscall+0x387 kernel`0xffffffff8106785e libc.so.7`__sys_getdirentries+0xa libc.so.7`readdir+0x30 libc.so.7`0x800389677 libc.so.7`fts_children+0x14b ls`traverse+0x1a7 ls`main+0x945 ls`_start+0x100 `0x800235000 1 ... # kgdb /boot/kernel/kernel /dev/mem ... (kgdb) l* 0xffffffff82a3b314 Reading in symbols for /usr/src/sys/fs/autofs/autofs_vnops.c...done. 0xffffffff82a3b314 is in autofs_readdir (/usr/src/sys/fs/autofs/autofs_vnops.c:411). 406 uio =3D ap->a_uio; 407 initial_resid =3D ap->a_uio->uio_resid; 408 409 KASSERT(vp->v_type =3D=3D VDIR, ("!VDIR")); 410 411 if (autofs_cached(anp, NULL, 0) =3D=3D false && 412 autofs_ignore_thread(curthread) =3D=3D false) { 413 error =3D autofs_trigger_vn(vp, "", 0, &newvp); 414 if (error !=3D 0) 415 return (error); --=20 You are receiving this mail because: You are the assignee for the bug.=