From nobody Tue Dec 13 19:05:32 2022 X-Original-To: jail@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 4NWny73NCxz4kX0R for ; Tue, 13 Dec 2022 19:05:35 +0000 (UTC) (envelope-from bz@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NWny72vFNz4MTC; Tue, 13 Dec 2022 19:05:35 +0000 (UTC) (envelope-from bz@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670958335; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/vBgwDf4Hzhq5IiRGfOrvugYCUWzVQP7fSn8ijOlcOk=; b=qjulhhZSN43evRFqRRyF6/mn2+QWzAWV/qwfBMliJUL+P0o3gz/BFQH6f1X7B8qGc+IrVM 131r7v0IbgqjxCKHTJrRkIotQElioSIsnXzNOlSElOCJsrQfr0gytbMPwFm0eWQhraa1rZ 6uXFa/UEsskEtmCt/EKZm0dD0yQ2149wrbjT0k44yzqSscaGCX1btsGYcCNXUeGhGdTfQx Y0IXPTatIbOGT1ucAxX0MCHml+2OftzgsXtUodE8pGTducLRbrepZ+3rxoWKH5SBp8nbqK Hiovbew9YyLM1IWMY1zxJEqR5PG6c9gzjm2M5fCCBl/rPGS9eZ5Ilp1l/EDgdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670958335; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/vBgwDf4Hzhq5IiRGfOrvugYCUWzVQP7fSn8ijOlcOk=; b=OYo9h8QSBpklUEvdQfgW0WIB2xCVbfVYtYaI2FBKnwqoB1JlVFroqY0GoCpb/ARtxEXOKE 2yB7t1g+QlCPbtnA/1pOZ+K58kEE0Bn9I67qVfd6DlxgjNkQi1nK1t6mSIkNqthx9ioUe6 HCz/LVWwjLnTpTG7ONAIq4I3l6aEEQPPaYOPTAhT51rxYj8WoTjD6+HMmhG3bmMVLdWwlt Wc+fzfvxKTjaueJTabOlfimaCxwvJmqskd4SLlR7RgKUeKuemG4jRG5lGnAIEs6PYVVRc6 EwLUM47A/kDFCOJa5woLyjMMSxG2Wy2RHpZVLFSvsSSFTZzCZBjhKhhwJr0g3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670958335; a=rsa-sha256; cv=none; b=MPDsTcIkGg3jS2jAkR59hx6Adr7Pkd9iye21qJLL1kaBTb8a7h3fk4vHske52wYzLNtmbf MaRJbGlkNSJGd6hZhYZNY5faHs9Su9ePVRwKnj++oKeeGahD6f4+bHpCmA0wmCwNKaxDep Y0EGdqYeS2aGBrbbPaz/SrnWX3mf6gumJUI99X/US+x23ZFH9jPX4O2r/bzC/70u27qXn4 m3glaEwzdVARQE/5R+l2K7AFzL+wJhCbCUojxZTbV9x1zcob+Z5PDDG8/q56rQlQ1gk05R b04djGJuuF7vbkGnu/yC1NKoVtMwwDyeGgf9gPB9RIKT5iYYDvA+Q3RtFKLpIA== Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4NWny71L1XzMHx; Tue, 13 Dec 2022 19:05:35 +0000 (UTC) (envelope-from bz@freebsd.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id E9BE68D4A129; Tue, 13 Dec 2022 19:05:33 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 72EDB5C3A833; Tue, 13 Dec 2022 19:05:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id 7sL3MnGxJFSm; Tue, 13 Dec 2022 19:05:32 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 78F365C3A830; Tue, 13 Dec 2022 19:05:32 +0000 (UTC) Date: Tue, 13 Dec 2022 19:05:32 +0000 (UTC) From: "Bjoern A. Zeeb" To: Andrew Gallatin cc: James Gritton , jail@freebsd.org, "glebius@FreeBSD.org" Subject: Re: prison_flag() check in hot path of in_pcblookup() In-Reply-To: Message-ID: <6on81os3-501-s5n2-8nos-p85n8op23232@serrofq.bet> References: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-ThisMailContainsUnwantedMimeParts: N On Tue, 13 Dec 2022, Andrew Gallatin wrote: > Are there regression tests for jails where this patch could be run to > ensure it is safe? Not that I now of but it would certainly good to have one for that case. But it's likely not going to be deterministic so the question will be more of the case "theoretically possible or not"? -- Bjoern A. Zeeb r15:7