From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7E277A121 for ; Thu, 29 Feb 2024 18:22:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709230972; cv=none; b=KtbmO64/pkTsSE2BDCEMUrmwOjtrDpwivjmvTccW8rekwMpCvsJmKnsEi6JsCP0TSKWVF6C2rLg34djgOC59UKSuQc11rgQ+dL3zORxZPv00dO2gYP45T98apLeWGJp592YQl9InPMT1tBUWy93yVZYdxrH3htxW05hVaJFYtxA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709230972; c=relaxed/simple; bh=g80ZHMfkap5e1XvdbqJdFJDCZAoVlfr93qwV4iryYMg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hvd9l6uQrshPm0SKZl5mKyKqhKclerhKbVVyg2cm48SwPDLHLMYx2KT77VHOqGBhnsbeQyZeZGDU5GlbefOROy+Zv4PgZFIEeW08qbbyF9yEVfPMmc9vtkftLutzkRyJk+OKDvM1kDYEM4TJeoysD6oJHTR5CynhE99xJbup6Bo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=NHD3BP2H; arc=none smtp.client-ip=209.85.216.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="NHD3BP2H" Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2997a92e23bso895944a91.3 for ; Thu, 29 Feb 2024 10:22:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709230969; x=1709835769; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=SME3hkkQyGOJtg72h1VtA8SKZ4fgYrx6Seh5LXcBQ8Y=; b=NHD3BP2HmpZYqK4Q5E35+nXruIJPzrSQyLpUi4XNguSxfkVoOmJsSl1BEQf0TBLCX+ TbH3MdWSFEWkq8D4u25f0Ljh7+ycO3DD5CTc93Sl6RUuc75jXzLNdXE7iaE+9Q+v8pJY 7CyO4t8HdmhowkEtiYNEp54rP4rGvMHgdcpS4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709230969; x=1709835769; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SME3hkkQyGOJtg72h1VtA8SKZ4fgYrx6Seh5LXcBQ8Y=; b=A/rULrqKVcQ3j2F5jH20KkSd/yNjxwSsBgSoyAtktU+D3WO1aaBo5jRHN3le4B55wU JBgbgZ8N3Gm0DOCpwhhqJ66g+EuhJagRU625Pzep6F67zPRBmpAO5t+K8/uEsCdFQXLp cMhK0cwjj+sh/WddXFNgTYjrdXT5yKGEbVMvjqurRTbQYxa3AogzLuJMD1FpHY/MmPju VlN7v1CNZAcl1yo0n+7xwMRYZfzDhxsiMk4yXu76p3m3auu8u/5xZtHH7Y/STgXIQzMW k/PhaX1pREkCo7mhf/ZJ5jiJmQBDxHSrzA6kNjKEw3GjDseWxcwjFEdGtokTHrdc8xtb Mp7w== X-Forwarded-Encrypted: i=1; AJvYcCXKHf05aQtX5517KMoAJndjJYXfmNxXVHHBF1cVi10wfmjQzrf4gOdf5nmov5nNAGY+NjpdcTPGR7CPtx6uXik8c/DdyUoYS/xjUpbYdi7nqT0q+lkj X-Gm-Message-State: AOJu0Yy8WIBx5p4ZLW9jxzXNj6X33i6R9Tep3HXK5zOYdUmKpk1gta0F SKNc/Aelw6I2dRpPt3+bMWOQ/4e0l8xhl8fYzLB4LfkCOTQIMZ0AP8d21OQogQ== X-Google-Smtp-Source: AGHT+IGYdlTHCZzP2Rg0F0nElhv750jePTpguZzrPB+4WF7VZs5zNJs7UO3cl1UWFqPeurqTqikR6A== X-Received: by 2002:a17:90a:4a02:b0:29a:f233:2882 with SMTP id e2-20020a17090a4a0200b0029af2332882mr2856150pjh.12.1709230969105; Thu, 29 Feb 2024 10:22:49 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id c88-20020a17090a496100b0029a7a2fbb25sm1930138pjh.57.2024.02.29.10.22.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 10:22:48 -0800 (PST) Date: Thu, 29 Feb 2024 10:22:48 -0800 From: Kees Cook To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Cc: Brendan Higgins , David Gow , Rae Moar , Shuah Khan , Alan Maguire , Borislav Petkov , Dave Hansen , "H . Peter Anvin" , Ingo Molnar , James Morris , Luis Chamberlain , "Madhavan T . Venkataraman" , Marco Pagani , Paolo Bonzini , Sean Christopherson , Stephen Boyd , Thara Gopinath , Thomas Gleixner , Vitaly Kuznetsov , Wanpeng Li , Zahra Tarkhani , kvm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-um@lists.infradead.org, x86@kernel.org Subject: Re: [PATCH v1 4/8] kunit: Fix timeout message Message-ID: <202402291022.E3529BD@keescook> References: <20240229170409.365386-1-mic@digikod.net> <20240229170409.365386-5-mic@digikod.net> Precedence: bulk X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240229170409.365386-5-mic@digikod.net> On Thu, Feb 29, 2024 at 06:04:05PM +0100, Mickaël Salaün wrote: > The exit code is always checked, so let's properly handle the -ETIMEDOUT > error code. > > Cc: Brendan Higgins > Cc: David Gow > Cc: Rae Moar > Cc: Shuah Khan > Signed-off-by: Mickaël Salaün Reviewed-by: Kees Cook -- Kees Cook