From nobody Mon Nov 27 17:14:39 2023 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 4SfBz413Nhz52s0l for ; Mon, 27 Nov 2023 17:14:40 +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 4SfBz36FwHz3X90 for ; Mon, 27 Nov 2023 17:14:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701105279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=k+75PqVPyXOmn2+MflnYHQFD3AoaF+vys0FC1ZhUG5I=; b=vAeDrpedFHNtdRcVRCxrLqSLbDgU2XKe5roz/sw07Fh7/xP7NtzmEVI/XKRends0Zu3a3q toHcF1ZM3xlxcORhdUECz2iA6ag05DWF8JQ06iIDCfgOvB5qXkgALKfGa6OZfssb4faNzc OZ+SAylTgDk2oy/nJrUUoduJ61hG9VBaAXooH37AZsVz4CtAB2L/YkGo4kxYLD+cBGh2Dg CkTdPANESd/bvMAo4PKm8mzsEA9TbZY3OCHrchDeWRL6q+SEhZ3OuNjw0rvOB5XoT2jabc 7THCBEQVu4Z56lw0MjDzVzq5uE9pGvSzwnbYeerkaPa8H8JN7388ZoPh2UHZ6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701105279; a=rsa-sha256; cv=none; b=FibLsPlvEXMlSA6HKgmACNaSF4dgq56AUpEO91+ITUWS2A8ClPakdYoFdgHEK9qegqxu9v +AF1+jbFdzyOQmz/14nhKFQiZWsQ8gYEzl0DD+4wwrjCKoDDY6ydsNpSOkTiEsCbYgzqo6 H4ZNWfiuWD6Hk2dUlQLF3pimkaAPugkH26aD+qQ0pMK47vXuED2DGJvMZ7UPRFyA3vX/lA CBygeEH3lLOYOHhXHR+R72ULxdlI2aTqwbQ6ofia8j9BSxNREoq9P7ml5ZXtRbTP1Eh95f wIr3qh7ZT6rEiHOl8114bcg9V2edlQvLKBp27xOwRu6pYwm2H1ADgs5JNAqooA== 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 4SfBz35JtDzn1H for ; Mon, 27 Nov 2023 17:14:39 +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 3ARHEdGb048372 for ; Mon, 27 Nov 2023 17:14:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3ARHEd0n048371 for bugs@FreeBSD.org; Mon, 27 Nov 2023 17:14:39 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 275381] page fault while re-enabling network nic via devctl Date: Mon, 27 Nov 2023 17:14:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zlei@FreeBSD.org 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 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275381 Bug ID: 275381 Summary: page fault while re-enabling network nic via devctl Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: zlei@FreeBSD.org This is originally reported by khng@ on Telegram bsd dev group. Post it her= e to make it public. Steps to repeat: Boot with Ethernet interface disabled, then try to enable it. ``` > set hint.hn.0.disabled=3D"1" > boot ... # devctl enable hn0 ``` Part of core text dump: freebsd dumped core - see /var/crash/vmcore.0 Mon Nov 20 04:17:24 UTC 2023 FreeBSD freebsd 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:57:23 UTC 2023=20=20=20=20 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 panic: page fault GNU gdb (GDB) 13.2 [GDB v13.2 for FreeBSD] Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd14.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /boot/kernel/kernel... Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug... Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid =3D 1; apic id =3D 01 fault virtual address =3D 0x28 fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff80c5e0c8 stack pointer =3D 0x28:0xfffffe0053f4b900 frame pointer =3D 0x28:0xfffffe0053f4b940 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 650 (devctl) rdi: fffff80006eb6800 rsi: fffff80001027500 rdx: 0000000000000001 rcx: 0000000000000001 r8: 0000000000000000 r9: 8080808080808080 rax: 0000000000000000 rbx: fffffe0054963c80 rbp: fffffe0053f4b940 r10: ffffffff811e1f39 r11: 8b9091ff93939e00 r12: fffff80007fca000 r13: fffff80007305c20 r14: ffffffff811e1f39 r15: 0000000000000000 trap number =3D 12 panic: page fault cpuid =3D 1 time =3D 1700453806 KDB: stack backtrace: #0 0xffffffff80b9002d at kdb_backtrace+0x5d #1 0xffffffff80b43132 at vpanic+0x132 #2 0xffffffff80b42ff3 at panic+0x43 #3 0xffffffff8100c85c at trap_fatal+0x40c #4 0xffffffff8100c8af at trap_pfault+0x4f #5 0xffffffff80fe3828 at calltrap+0x8 #6 0xffffffff80c5ceb5 at if_attach_internal+0x55 #7 0xffffffff80c6824c at ether_ifattach+0x2c #8 0xffffffff80f779c6 at hn_attach+0x21d6 #9 0xffffffff80b7fa1e at device_attach+0x3be #10 0xffffffff80b84dcf at devctl2_ioctl+0x56f #11 0xffffffff809d10dc at devfs_ioctl+0xcc #12 0xffffffff80c3b9b4 at vn_ioctl+0xd4 #13 0xffffffff809d177e at devfs_ioctl_f+0x1e #14 0xffffffff80bb1535 at kern_ioctl+0x255 #15 0xffffffff80bb1273 at sys_ioctl+0x123 #16 0xffffffff8100d119 at amd64_syscall+0x109 #17 0xffffffff80fe413b at fast_syscall_common+0xf8 Uptime: 15s Dumping 212 out of 470 MB:..8%..16%..23%..31%..46%..53%..61%..76%..83%..91% __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57 57 /usr/src/sys/amd64/include/pcpu_aux.h: No such file or directory. (kgdb) #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57 #1 doadump (textdump=3D) at /usr/src/sys/kern/kern_shutdown.c:405 #2 0xffffffff80b42cc7 in kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:526 #3 0xffffffff80b4319f in vpanic (fmt=3D0xffffffff81136b3b "%s",=20 ap=3Dap@entry=3D0xfffffe0053f4b750) at /usr/src/sys/kern/kern_shutdown.= c:970 #4 0xffffffff80b42ff3 in panic (fmt=3D) at /usr/src/sys/kern/kern_shutdown.c:894 #5 0xffffffff8100c85c in trap_fatal (frame=3D0xfffffe0053f4b840, eva=3D40) at /usr/src/sys/amd64/amd64/trap.c:952 #6 0xffffffff8100c8af in trap_pfault (frame=3D0xfffffe0053f4b840,=20 usermode=3Dfalse, signo=3D, ucode=3D) at /usr/src/sys/amd64/amd64/trap.c:760 #7 #8 0xffffffff80c5e0c8 in if_addgroup (ifp=3Difp@entry=3D0xfffff80007fca000= ,=20 groupname=3D0xffffffff811e1f39 "all") at /usr/src/sys/net/if.c:1477 #9 0xffffffff80c5ceb5 in if_attach_internal ( ifp=3Difp@entry=3D0xfffff80007fca000, vmove=3Dfalse) at /usr/src/sys/net/if.c:842 #10 0xffffffff80c5ce59 in if_attach (ifp=3D0xfffff80006eb6800,=20 ifp@entry=3D0xfffff80007fca000) at /usr/src/sys/net/if.c:772 #11 0xffffffff80c6824c in ether_ifattach (ifp=3D0xfffff80006eb6800,=20 ifp@entry=3D0xfffff80007fca000, lla=3D0xfffff80001027500 "",=20 lla@entry=3D0xfffffe0053f4ba80 "") at /usr/src/sys/net/if_ethersubr.c:1= 001 #12 0xffffffff80f779c6 in hn_attach (dev=3D0xfffff8000291ce00) at /usr/src/sys/dev/hyperv/netvsc/if_hn.c:2436 #13 0xffffffff80b7fa1e in DEVICE_ATTACH (dev=3D0xfffff8000291ce00) at ./device_if.h:195 #14 device_attach (dev=3Ddev@entry=3D0xfffff8000291ce00) at /usr/src/sys/kern/subr_bus.c:2535 #15 0xffffffff80b84dcf in devctl2_ioctl (cdev=3D,=20 cmd=3D2157462531, data=3D, fflag=3D,=20 td=3D0xfffffe0054963c80) at /usr/src/sys/kern/subr_bus.c:5433 #16 0xffffffff809d10dc in devfs_ioctl (ap=3D0xfffffe0053f4bc40) at /usr/src/sys/fs/devfs/devfs_vnops.c:933 #17 0xffffffff80c3b9b4 in vn_ioctl (fp=3D0xfffff8000704ce10,=20 com=3D18446735277633467648, data=3D0xfffff8000779ee00,=20 active_cred=3D0xfffff8000702cb00, td=3D0x0) at /usr/src/sys/kern/vfs_vnops.c:1701 #18 0xffffffff809d177e in devfs_ioctl_f (fp=3D0xfffff80006eb6800,=20 com=3D18446735277633467648, data=3D0x1, cred=3D0x1, td=3D0x0) at /usr/src/sys/fs/devfs/devfs_vnops.c:864 #19 0xffffffff80bb1535 in fo_ioctl (fp=3D0xfffff8000704ce10, com=3D21574625= 31,=20 data=3D0x1, active_cred=3D0x1, td=3D0xfffffe0054963c80) at /usr/src/sys/sys/file.h:366 #20 kern_ioctl (td=3Dtd@entry=3D0xfffffe0054963c80, fd=3D,=20 com=3Dcom@entry=3D2157462531,=20 data=3D0x1 ,=20 data@entry=3D0xfffff8000779ee00 "hn0") at /usr/src/sys/kern/sys_generic.c:805 #21 0xffffffff80bb1273 in sys_ioctl (td=3D0xfffffe0054963c80,=20 uap=3D0xfffffe0054964080) at /usr/src/sys/kern/sys_generic.c:713 #22 0xffffffff8100d119 in syscallenter (td=3D0xfffffe0054963c80) at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:187 #23 amd64_syscall (td=3D0xfffffe0054963c80, traced=3D0) at /usr/src/sys/amd64/amd64/trap.c:1197 #24 #25 0x000032e7074bce0a in ?? () Backtrace stopped: Cannot access memory at address 0x32e7069aff48 (kgdb) --=20 You are receiving this mail because: You are the assignee for the bug.=