From nobody Thu Jul 14 07:12:11 2022 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 4Lk5K74fTXz4TG3Z for ; Thu, 14 Jul 2022 07:12:11 +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 4Lk5K72dxTz3PVG for ; Thu, 14 Jul 2022 07:12:11 +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 4Lk5K71k70zv1H for ; Thu, 14 Jul 2022 07:12:11 +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 26E7CBDU071551 for ; Thu, 14 Jul 2022 07:12:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26E7CBNR071550 for bugs@FreeBSD.org; Thu, 14 Jul 2022 07:12:11 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 265207] SR-IOV: ifconfig segfault with VF interface Date: Thu, 14 Jul 2022 07:12:11 +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: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: benoitc@enki-multimedia.eu 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657782731; 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=d/BKfgvnuxN3oOa5fbnv9OUAALeOk4vpmavoLjz8z8g=; b=iisgH3I7yoJDL9+ZjJY0NTjBmKAWdQ/epBEI7HJtio3zXw00jDdXTPoB6Zqfx/ATGNLf0q HYrlnq5DXzNDPAHL2dDpf4CnaXXaYZwemyso2x1wyo1TPjupj9mygk+9bESN575Dixrhwj hv7u0bqM0F+LxXyEJnUx21ZpfxCIR2/Iw8SxoLFLT97EidC6DRI1MQPAGfPozDGaUQfDLI rsD+hMTvFhNB2TuMB4EIgEH+COzcFeoC2axJNQpIaaaRi3MDYrmosnCqQ+IWGKXP0EP2tr DsveDIzDKCac2Ky7TF7AJCWYth6vaHnmcEWyOUXsNct9Filhf7xTs0WQJkHOYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657782731; a=rsa-sha256; cv=none; b=vXg1kAzTqU9xWo3bOe/y348KzkDkFMsS6VMDpIBpL7Ql2nUXAzlDTQ4fwvWPtVnufQ9z4Z mU0Q4izv54B/aV/QBgTyWeu7tBU5AssVEhQ6doGdt7iYNHw+jglew74Zy2HGDqISOB6qeH 1jysrCbtaS7lrGWnI2M9NHAx7jDUySYv3yZOYDn9cmq0MIKYbhP8K6XDHxPVitgPikXzvP qbZLRiYHVYTld/dggUUTwhyCdBnopWRzlw9ZOxpzUkKHaFVdNOF16SD2cOSc3ANK2viL1B bEvXo7WzPbtdQVplgkTD5Rwbt+8xyCNipehG5cWVKSDpLdWpqelxd1/pW8KWSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265207 Bug ID: 265207 Summary: SR-IOV: ifconfig segfault with VF interface Product: Base System Version: 13.1-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: benoitc@enki-multimedia.eu kerlel is crashing when running the command `ifconfig-vm' over a VF interfa= ce with `passtrough =3D false`. I have an HPE branded 2x25G qlogic card (HPE Eth 1G 2p 368i/10G 2p 568FLR-MMSFP+ Adptr 866467-B21) which support SR-IOV. I have enabled it usi= ng the following configuration below. I confirmed SR-IOV is enabled. and the interface ql2 is set up. Crash: ``` # ifconfig -vm ql2 ql2: flags=3D8843< Fatal trap 12: page fault while in kernel mode cpuid =3D 2; apic id =3D 02 fault virtual address =3D 0x30 fault code =3D supervisor write data, page not present instruction pointer =3D 0x20:0xffffffff82376bb9 stack pointer =3D 0x28:0xfffffe02152d4b70 frame pointer =3D 0x28:0xfffffe02152d4b70 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 proUP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3D507bb cacess =3D 47292 (ifconfig) trap number =3D 12 panic: page fault cpuid =3D 2 time =3D 1657782022 KDB: stack backtrace: #0 0xffffffff80c69465 at kdb_backtrace+0x65 #1 0xffffffff80c1bb1f at vpanic+0x17f #2 0xffffffff80c1b993 at panic+0x43 #3 0xffffffff810afdf5 at trap_fatal+0x385 #4 0xffffffff810afe4f at trap_pfault+0x4f #5 0xffffffff81087528 at calltrap+0x8 #6 0xffffffff82376a13 at ecore_ptt_acquire+0x83 #7 0xffffffff823b02f3 at qlnx_ioctl+0x583 #8 0xffffffff80d325e7 at ifioctl+0x407 #9 0xffffffff80c897cb at kern_ioctl+0x25b #10 0xffffffff80c894d1 at sys_ioctl+0xf1 #11 0xffffffff810b06ec at amd64_syscall+0x10c #12 0xffffffff81087e3b at fast_syscall_common+0xf8 Uptime: 7m33s ``` /etc/iov/ql0.conf ``` PF { device: "ql0"; num_vfs: 8; } DEFAULT { passthrough: true; allow-set-mac: true; allow-promisc: true; } VF-0 { passthrough: false; mac-addr: "1e:4f:d8:c5:92:ab"; } ``` --=20 You are receiving this mail because: You are the assignee for the bug.=