Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp178116lqt; Wed, 5 Jun 2024 23:24:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWn5ga2lE85MAYSripNsiTHDbTkh63IYDMvqBIr1atR5dEfjF+kizVxFarPiuurETo5ne1L8Td+MH/JaTIMIz/LdSth2b/QNtLrwQsYfw== X-Google-Smtp-Source: AGHT+IFzI3h78arbYWCDVq3HbNQNz+Jqv+uIHPZE6d3nIAOgQQtgJjcBuve9jvHsfzDA34+f9yH1 X-Received: by 2002:a17:907:77c5:b0:a67:7649:3c43 with SMTP id a640c23a62f3a-a699fcfda85mr305268066b.49.1717655053195; Wed, 05 Jun 2024 23:24:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717655053; cv=pass; d=google.com; s=arc-20160816; b=AKJTmMQOWMGXcbkntezaa90GI4otLnKR24uzCq8OmlZD4PIjCYkI+2J2PyvEbHO8sY 5VGXDbOlokmpLG8L3JaI1Nu/Jh9+hqjc2MMNiDq3EHATHWFPED/GdNS/Y1Ol4o7fhVDm B4RWS4MNIrwkUhehI2GSrZ4iDQCx8wkxeEBbx6E+o7JjSCknt27IsC5a7IjMkmm7mWhb WMf6phTfwhXg82qw2dnRxPVOu/J7gYuuHoyhZ1j5gGrFJKVjXehx+I8XXItP18flXVN9 f5i61rohkzTH7tGmGxLt/4W8IjYz6/oZyI8k9WJEts+xYQPpY+BSaVMyDGJJmEd/hwIT V/aQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=Xmf+9W3CuWTJtgo6IQWETLoxYV8aWEsYyhvAl4to5BI=; fh=r6BahYBEb/N0PU95n8TU63CoydxT6s2bKCfV6MIrB6c=; b=DAkAOEW3jvGGDuprF+EMCOf4+G2J2y7OPP7cJoCtSmQrvauUa8hEoxzqPIEHXerEhB r+vQZ1K9LEDG8s1/wSPGJZ5MPW33icOFTpmHr23lPkVmmVMrWnbHWhR289HnFISFPL0r paI0j0sSYME5dKhEfxOhvrzNyP4abU8lRUQajWW3lM1aFJaZOMCA2PMH1L3yJn+nbBqI zqFqt7DR78js4E46PoY87BxXHjuw2o80+XXvDLLDuymUW+xD0gaJjMM1sEtamxO8dEjs a7bB+DZWB+X/RFEb6AINCgKTfz/gAIY2rkLVEdkCDXKfb+JxbxjSL/r5JJbmSyk7qlRu T2qQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V6a3uCBz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203651-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c806daa04si32878966b.295.2024.06.05.23.24.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 23:24:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V6a3uCBz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203651-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E3AC31F2148A for ; Thu, 6 Jun 2024 06:24:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B96D73472; Thu, 6 Jun 2024 06:24:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="V6a3uCBz" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60F9417BD5; Thu, 6 Jun 2024 06:24:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717655045; cv=none; b=eNoXex+ofo4giKjHAQzcg983iB8nhZIZ6GHn7Cw1HXuCfC0YiXwD8dCU/geO4TrzTlJBYuZdi2u0XXcj8DDp647idhl39RVsxgiRXpB5b9zr7rV9quXk0TS542jyKSDhLVnRJH/T48qz+hxXCU6njb/37jUWreAjwPgn87ZbQGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717655045; c=relaxed/simple; bh=Xmf+9W3CuWTJtgo6IQWETLoxYV8aWEsYyhvAl4to5BI=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=MtDX6pIoFAJhT8ZcwVuL/+RlgFJJ1PxkGb1Bv+Xfdi7sScXIxqOOzp9OkWbqOSxl+atUI3PzEF/eOOSUpBUBAPBG/DoGxswhEzU0KHtN4g7UUxA51nkVNIfdNiIW9fjk4r3kJivqzpS2rRrnRD5GkhqrFb2T/9mCsx3FcmeJ10U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=V6a3uCBz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52FB0C2BD10; Thu, 6 Jun 2024 06:24:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717655044; bh=Xmf+9W3CuWTJtgo6IQWETLoxYV8aWEsYyhvAl4to5BI=; h=Date:To:Cc:Subject:From:References:In-Reply-To:From; b=V6a3uCBzKKrXFU0sf5Wio7VKNFk/R+sFFVccK40BceTOBRmpggbf/7GL5usUiHpVT F7gHqNe/M8rpWA6oAIaJvtxatNMjowRWXNTAgji3i4ivJnpFRqxJ34nTgLHKAdCxu3 oXoqKyrYtbYjL6Mz5PgVF0d+GLfmYaAnTnYIo8YrFYgVgFDLanMbID3cJFdErVQuJg PVZjN9x+qc0s0EC4LTOD7i4NuU0tLLbiy7ZRSSGrIqqIG2ahSOiusGWnXr1dUkv4Td nowd9hYqGEMTNBddwSYaxqD8Diyp6Z94nRNJeScCS22oXvoVchPylY/4eGAh/Fk5bl 3uEpd+nCPa4QQ== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 06 Jun 2024 09:23:58 +0300 Message-Id: To: "Jarkko Sakkinen" , "Huang, Kai" , "Haitao Huang" , , , , , , , , , , , , , Cc: , , , , , , , Subject: Re: [PATCH v14 14/14] selftests/sgx: Add scripts for EPC cgroup testing From: "Jarkko Sakkinen" X-Mailer: aerc 0.17.0 References: <20240531222630.4634-1-haitao.huang@linux.intel.com> <20240531222630.4634-15-haitao.huang@linux.intel.com> <7cbf3583-a23e-4437-afc2-1faeb4a1f436@intel.com> In-Reply-To: On Thu Jun 6, 2024 at 9:20 AM EEST, Jarkko Sakkinen wrote: > > There are existing code where BUG_ON() is used during the kernel early= =20 > > boot code when memory allocation fails (e.g., see cgroup_init_subsys())= ,=20 > > so it might be acceptable to use BUG_ON() here, but it's up to=20 > > maintainers to decide whether it is OK. > > When it is not possible continue to run the system at all, and only > then. > > Here it is possible. Without SGX. With this logic sgx_init() should call BUG() in the error paths. BR, Jarkko