From owner-freebsd-bugs@freebsd.org Fri Aug 31 07:43:50 2018 Return-Path: Delivered-To: freebsd-bugs@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 D395FF76BF0 for ; Fri, 31 Aug 2018 07:43:49 +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 75DBC86AA7 for ; Fri, 31 Aug 2018 07:43:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 35646F76BEF; Fri, 31 Aug 2018 07:43:49 +0000 (UTC) Delivered-To: bugs@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 1355AF76BED for ; Fri, 31 Aug 2018 07:43:49 +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.2 with cipher ECDHE-RSA-AES256-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 AB75286AA6 for ; Fri, 31 Aug 2018 07:43:48 +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 C21291EDBE for ; Fri, 31 Aug 2018 07:43:47 +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 w7V7hl0J071805 for ; Fri, 31 Aug 2018 07:43:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7V7hl2p071803 for bugs@FreeBSD.org; Fri, 31 Aug 2018 07:43:47 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 231051] [IXL] driver assert when locks checks are enabled Date: Fri, 31 Aug 2018 07:43:47 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: alexandre.martins@stormshield.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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2018 07:43:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231051 Bug ID: 231051 Summary: [IXL] driver assert when locks checks are enabled Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: alexandre.martins@stormshield.eu The IXL driver fails to load due to an assertion on an unlocked mutex. The attach routine doesn't take the mutex before calling some initialisatio= ns functions. There is the backtrace: KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2e/frame 0xfffffe0f7af33= 9f0 kdb_backtrace() at kdb_backtrace+0x52/frame 0xfffffe0f7af33a10 vpanic() at vpanic+0x1df/frame 0xfffffe0f7af33a80 kproc_shutdown() at kproc_shutdown/frame 0xfffffe0f7af33ae0 __mtx_assert() at __mtx_assert+0x102/frame 0xfffffe0f7af33b50 ixl_add_hw_filters() at ixl_add_hw_filters+0x63/frame 0xfffffe0f7af33bb0 ixl_add_filter() at ixl_add_filter+0x1a2/frame 0xfffffe0f7af33c00 ixl_init_filters() at ixl_init_filters+0x44/frame 0xfffffe0f7af33c20 ixl_attach() at ixl_attach+0xb48/frame 0xfffffe0f7af33d60 DEVICE_ATTACH() at DEVICE_ATTACH+0x87/frame 0xfffffe0f7af33da0 device_attach() at device_attach+0xbc/frame 0xfffffe0f7af33df0 device_probe_and_attach() at device_probe_and_attach+0x74/frame 0xfffffe0f7af33e20 pci_driver_added() at pci_driver_added+0x105/frame 0xfffffe0f7af33e70 BUS_DRIVER_ADDED() at BUS_DRIVER_ADDED+0x8f/frame 0xfffffe0f7af33eb0 devclass_driver_added() at devclass_driver_added+0x7a/frame 0xfffffe0f7af33= ee0 devclass_add_driver() at devclass_add_driver+0x172/frame 0xfffffe0f7af33f30 driver_module_handler() at driver_module_handler+0xc9/frame 0xfffffe0f7af33= f90 module_register_init() at module_register_init+0xc0/frame 0xfffffe0f7af33ff0 linker_file_sysinit() at linker_file_sysinit+0x1b4/frame 0xfffffe0f7af34050 linker_load_file() at linker_load_file+0x14d/frame 0xfffffe0f7af340c0 linker_load_module() at linker_load_module+0x191/frame 0xfffffe0f7af34130 kern_kldload() at kern_kldload+0xf9/frame 0xfffffe0f7af34190 sys_kldload() at sys_kldload+0x7b/frame 0xfffffe0f7af341c0 syscallenter() at syscallenter+0x4af/frame 0xfffffe0f7af34230 amd64_syscall() at amd64_syscall+0x1f/frame 0xfffffe0f7af34330 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0f7af34330 --- syscall (304, FreeBSD ELF64, sys_kldload), rip =3D 0x80086673a, rsp =3D 0x7fffffffe798, rbp =3D 0x7fffffffecb0=20 --- KDB: enter: panic --=20 You are receiving this mail because: You are the assignee for the bug.=