From nobody Fri Mar 18 18:45:49 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 69FC41A1848F for ; Fri, 18 Mar 2022 18:45:50 +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 4KKtHx68qBz3CRr for ; Fri, 18 Mar 2022 18:45:49 +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 B383B240D7 for ; Fri, 18 Mar 2022 18:45:49 +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 22IIjnt6074661 for ; Fri, 18 Mar 2022 18:45:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22IIjnqs074660 for bugs@FreeBSD.org; Fri, 18 Mar 2022 18:45:49 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 262633] Missing mtx protecting variable prison->pr_prison_racct Date: Fri, 18 Mar 2022 18:45:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: firk@cantconnect.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.mimetype attachments.created Message-ID: In-Reply-To: References: 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=1647629149; 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: in-reply-to:in-reply-to:references:references; bh=S9d2WGCsIsl/vS9J7AL0n961FuwqUtVQQQ85Xi1eIxk=; b=gDnw2X2up2szYUDcnV+mK5bzEiA1NN9R96uGCnysNaEDWIYrx56mZ+N2W/q0sWIuzifS/q P8K6dT20GZp3sFu0jBy4frINqTeFN/fGjkG/FtaV/cNgP1QatX4y+bR7pSMyoEkM16kCvM jjaN3rgzs0UUzG4m/eWFRFtKZYj2R/wHY4HONNHbuO95PMHtOL/oga/1/T+9ecEaqJX4IV I5sj9drZtHoYxi6PF+meZvGmPOQU2hnLBBkF3Q3XEqIVQH1uoKJRyvWBJcwjfwOG5TgZdJ cphURWyIxxuQPWp2fRIJbVtO7Lo7UYnN2Pjd/tJgQ1WcRwCm7Snf8aliaJO7BQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647629149; a=rsa-sha256; cv=none; b=s5ORuGpGq3DW4+mWKrTgBqrQ+ouESbVlC5fh9maye69Pw+5Pgmg3Usgvwd689M8Vu1bpjH 1OnnQCHWVHbP7Sa0FoWucf0CfOac18IBcc8msyL1C3YYy1wE6tLmdNXiiKUBF72YFvudq3 3dE0/hoQa4hsCvYzCS6cbu/CHUMq13Hv3eDIFiX2abYiNWR5Ia4hMv6Z91g70jBUTIbjXt L/fFXkR4oKtUbJftI4foYhZpDXeOmMPGj9yfjHRTn9uFPOjyYt/ylmb54RgccBmMvmh6Xw WcgN1XrlQbY+kWByG4KUcjMG/DV6tmh8EkeFueCa3ZsYy8h2n7ktYYxJkQHvkA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262633 firk@cantconnect.ru changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #232558|text/x-csrc |text/plain mime type| | --- Comment #3 from firk@cantconnect.ru --- Created attachment 232558 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232558&action= =3Dedit test program Added a test program. How to use: ./bug-262633-test 100000 3 Second value: 0 =3D fake run; 1 =3D only spam racct increment/decrement; 2 =3D only spam jail renaming (may be used to verify time consumed in LIST_FOREACH()); 3 =3D do both - will lead to panic First value: number of prison_racct structs to populate (note that they don't get depopulated until system reboot) I made a panic with this value =3D 10000 once; value =3D 30000 leads to = a panic very fast (but need to wait initializing of rctls). Panic reasons vary, but I think the source of all them is this bug. --=20 You are receiving this mail because: You are the assignee for the bug.=