From owner-freebsd-bugs@freebsd.org Thu Feb 18 10:18:54 2021 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 12212532906 for ; Thu, 18 Feb 2021 10:18:54 +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 4Dh9fP6ygrz3n81 for ; Thu, 18 Feb 2021 10:18:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id ED451532779; Thu, 18 Feb 2021 10:18:53 +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 ED0C15322FF for ; Thu, 18 Feb 2021 10:18:53 +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 4Dh9fP6JyKz3mvW for ; Thu, 18 Feb 2021 10:18:53 +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 C7B9416B8A for ; Thu, 18 Feb 2021 10:18:53 +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 11IAIrDv096590 for ; Thu, 18 Feb 2021 10:18:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 11IAIrd5096589 for bugs@FreeBSD.org; Thu, 18 Feb 2021 10:18:53 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 253616] Panic when concurrently trying to start/stop auditing Date: Thu, 18 Feb 2021 10:18:54 +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: arichardson@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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2021 10:18:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253616 Bug ID: 253616 Summary: Panic when concurrently trying to start/stop auditing Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: arichardson@FreeBSD.org This can be reproduced by removing the is_exclusive tag from the audit tests after https://reviews.freebsd.org/D28451 and running them in parallel.=20 root@freebsd-amd64:/usr/tests/sys/audit # kyua -v parallelism=3D16 test administrative:adjtime_failure -> passed [0.153s] administrative:adjtime_success -> passed [0.149s] administrative:auditctl_failure -> failed: /local/scratch/alr48/cheri/freebsd/tests/sys/audit/utils.c:300: 0 !=3D audit_quick_start(): Failed to start fake auditd: File exists [0.148s] administrative:auditctl_success -> passed [0.145s] administrative:auditon_default_failure -> passed [0.057s] administrative:auditon_default_success -> failed: /local/scratch/alr48/cheri/freebsd/tests/sys/audit/utils.c:300: 0 !=3D audit_quick_start(): Failed to start fake auditd: File exists [0.143s] panic: audit_syscall_enter: td->td_ar !=3D NULL cpuid =3D 0 time =3D 1612265481 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0093bb5= 9d0 vpanic() at vpanic+0x188/frame 0xfffffe0093bb5a20 panic() at panic+0x43/frame 0xfffffe0093bb5a80 audit_syscall_enter() at audit_syscall_enter+0x1b7/frame 0xfffffe0093bb5ac0 amd64_syscall() at amd64_syscall+0x702/frame 0xfffffe0093bb5bf0 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0093bb5bf0 --- syscall (3, FreeBSD ELF64, sys_read), rip =3D 0x8003e556a, rsp =3D 0x7fffffffca48, rbp =3D 0x7fffffffca60 --- KDB: enter: panic [ thread pid 809 tid 100093 ] Stopped at kdb_enter+0x37: movq $0,0x10a084e(%rip) --=20 You are receiving this mail because: You are the assignee for the bug.=