From owner-freebsd-bugs@freebsd.org Sun Sep 6 14:31:55 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BA3663D28E5 for ; Sun, 6 Sep 2020 14:31:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Bkv4W4dQGz3xwH for ; Sun, 6 Sep 2020 14:31:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9EDB53D2856; Sun, 6 Sep 2020 14:31:55 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9E8E03D2855 for ; Sun, 6 Sep 2020 14:31:55 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bkv4W3nsFz3gsY for ; Sun, 6 Sep 2020 14:31:55 +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 655CBFC4B for ; Sun, 6 Sep 2020 14:31:55 +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 086EVted071515 for ; Sun, 6 Sep 2020 14:31:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 086EVtwc071514 for bugs@FreeBSD.org; Sun, 6 Sep 2020 14:31: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: bugs@FreeBSD.org Subject: [Bug 249149] panic: -CURRENT with KCSAN option -> panic: mtx_lock_spin: recursed on non-recursive mutex et_hw_mtx @ src/sys/kern/kern_clocksource.c:850 Date: Sun, 06 Sep 2020 14:31:55 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: gbe@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 attachments.created 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.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2020 14:31:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249149 Bug ID: 249149 Summary: panic: -CURRENT with KCSAN option -> panic: mtx_lock_spin: recursed on non-recursive mutex et_hw_mtx @ src/sys/kern/kern_clocksource.c:850 Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: gbe@FreeBSD.org Created attachment 217791 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D217791&action= =3Dedit -CURRENT dmesg with KCSAN messages and the kernel panic On a virtualized amd64 VM (Hyper-V) of -CURRENT r365373 the system panics reproducible with a KCSAN enabled kernel. The KERNCONF is the following: include GENERIC ident GENERIC-SANTI options KCSAN options RATELIMIT options TCPHPTS options KERN_TLS The full panic message with the stacktrace is the following panic: mtx_lock_spin: recursed on non-recursive mutex et_hw_mtx @ /boiler/nfs/src/sys/kern/kern_clocksource.c:850 cpuid =3D 0 time =3D 1599396342 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x34/frame 0xfffffe0006e74= 030 kdb_backtrace() at kdb_backtrace+0x6a/frame 0xfffffe0006e740e0 vpanic() at vpanic+0x229/frame 0xfffffe0006e74130 panic() at panic+0x53/frame 0xfffffe0006e74190 _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie/frame 0xfffffe0006e741f0 cpu_new_callout() at cpu_new_callout+0xc5/frame 0xfffffe0006e74240 callout_cc_add() at callout_cc_add+0x2aa/frame 0xfffffe0006e742a0 callout_reset_sbt_on() at callout_reset_sbt_on+0x5ce/frame 0xfffffe0006e743= 40 callout_schedule() at callout_schedule+0x76/frame 0xfffffe0006e74380 vtterm_post_input() at vtterm_post_input+0xa6/frame 0xfffffe0006e743a0 termteken_post_input() at termteken_post_input+0x2e/frame 0xfffffe0006e743c0 teken_input() at teken_input+0x1f8/frame 0xfffffe0006e74420 termcn_cnputc() at termcn_cnputc+0xa7/frame 0xfffffe0006e74460 cnputc() at cnputc+0x80/frame 0xfffffe0006e744a0 cnputs() at cnputs+0x90/frame 0xfffffe0006e744d0 putchar() at putchar+0x236/frame 0xfffffe0006e74580 kvprintf() at kvprintf+0xfa7/frame 0xfffffe0006e746d0 vprintf() at vprintf+0x9b/frame 0xfffffe0006e747b0 printf() at printf+0x53/frame 0xfffffe0006e74810 kcsan_access() at kcsan_access+0x19b/frame 0xfffffe0006e748f0 lapic_et_start() at lapic_et_start+0x628/frame 0xfffffe0006e74940 et_start() at et_start+0xdd/frame 0xfffffe0006e74980 loadtimer() at loadtimer+0x1ef/frame 0xfffffe0006e749d0 handleevents() at handleevents+0x401/frame 0xfffffe0006e74a30 cpu_activeclock() at cpu_activeclock+0xd0/frame 0xfffffe0006e74a70 cpu_idle() at cpu_idle+0xea/frame 0xfffffe0006e74aa0 sched_idletd() at sched_idletd+0x5de/frame 0xfffffe0006e74bb0 fork_exit() at fork_exit+0xaa/frame 0xfffffe0006e74bf0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0006e74bf0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- KDB: enter: panic --=20 You are receiving this mail because: You are the assignee for the bug.=