Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp65372lqc; Thu, 29 Feb 2024 10:23:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUq61q18cWzp8pLK5ZIZYrHX3Nc0xw5d+6ZPtlVqi08dFnoXEWCPFiH+O/KXhIr8BtYQOha11g0JUlnZcyO4+pX3O8R/ISkWEaYOk08dg== X-Google-Smtp-Source: AGHT+IFbpgGEwk/jF/R0CqkfYaXz9y9V0Z1bmYIj/cheTbXyy/fdJR6EBWcEOZLJRU7bQSOU3dc1 X-Received: by 2002:a17:902:ea55:b0:1db:e089:7461 with SMTP id r21-20020a170902ea5500b001dbe0897461mr2510481plg.31.1709230994554; Thu, 29 Feb 2024 10:23:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709230994; cv=pass; d=google.com; s=arc-20160816; b=IIA8kBEYYwQbccK8SoAj6u906gLwJWPkBOQvHx4N7iE9SbIE0Or13f/1IaZ99obBMg CPbtrVI+WpNgRqiR65Yeec/IQR7+fODBehNMI5aN0DFqUCWYin1D5dXjVE7KrU5KUCvH tJkEeIIyxtqfwtc8qxqcuCQXQZeBpaosBvsGPX/+f5obzoOdoEuLfEvRFG9BYluA7d6x JcGtthGjVAUS6sTe+upMXJCQJBw/B82cow55QIDj4iklQsF2jOVzVVdXGEZaQvHxMMZu 8RgMmRS22mWekklcEKtC2P1nEPUG9VWx/TDgdjngBjGUJSPnF6g7mI6RMi6st8eaSwHO Mu2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SME3hkkQyGOJtg72h1VtA8SKZ4fgYrx6Seh5LXcBQ8Y=; fh=69H+HdcfXNfkDjGsSPv22MIXtInEFBcJIa8zpdFk2v0=; b=ofm06qX3dRrcyAVgLr5yacNkYgH1WaZtg206k0NXAOQVxPTKM153/wL4Doni1TJORI btwLwBmhWrdKLbON2uzwxiYswYpfFVsC8OUoUXvuuhmLVNENk53FVy95vIPfFqn+N713 1AAY6BiZ3fWV7xOKtr/+jOasDHPuuMxAGMAe2zjiO39F+H+8bJkmGSEkS5LfI9D3EoBK v04yJQqY4Z0YbgqsWhJweAxsKCsuxASgBejGkR3B0HRmrEaJp9jzIFT/LabpxVdJPMj6 meH8busQWWK8h97z5io6tjAE8e8AAcJ/S7yWzJnKWT/Oai3tBs+9kftmQtoexKFUxyrA bM6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NHD3BP2H; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-87275-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87275-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z18-20020a170903019200b001dbdfc34a20si1846073plg.211.2024.02.29.10.23.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 10:23:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87275-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NHD3BP2H; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-87275-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87275-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1EC692848DE for ; Thu, 29 Feb 2024 18:23:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AE6F7A15A; Thu, 29 Feb 2024 18:22:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="NHD3BP2H" Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (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 A7DE87829E for ; Thu, 29 Feb 2024 18:22:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709230972; cv=none; b=qg4cP2LkCHdiQmhw/AWqor9e1S2ELjQ1I3R96LdYPodY+D29raKyUxRWSmtxEGvgwZ5S2vy/7V9AUEirUniV7dosEF1njdIxltOsfB6PxvoFApypLglLv+Hi82ydUoDyYVG610HPbj+GfQiK2emzwxh0q2tagDL59bEYmlR4fAU= 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.54 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 Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-299566373d4so904386a91.1 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=EpRR5p7midabOOX3mUHFPWUlmRYmgdgDY5xzTHJKGOtpj+kmj65Hl6rII8jYMJWyQS GO/7fXp8P37SAG3/1n/HakQjJ35fSUElUaWjAOocW91NGgmRktMSyXRqqMgGYMw+ifWD DZT2idPJgpij6gMwIzkdm4GU7DzqqO0dhtHJ6jQabHKN+VlNbb8xyswfRVWhFtZ/f44a mdvOb7V6UeGrba9svpjv/5y8XfA33jXlTFLDeMBEILDHhGEDwVhmike0MsrArd+8IWp7 kZkSjxPszNFvW8om/E0WNJ7VAnCQe9YLYnRMsZ1e2VBHVM7hs56MzTG1JgwGEyQZJXsD YjBA== X-Forwarded-Encrypted: i=1; AJvYcCVb/yJZ4tZWw1msFN6Es0K2p22crGYebTv8hUOxirizy9kx/Qd2Nbj5dvthXP0j6o43ip+rFJCEgOk1NcgkiKIJa6QOukRi7wBwUI+w X-Gm-Message-State: AOJu0Yx4tBGtE8oziP5hRpxoaXk2ZiCJay1KeEFRfcHB4tdkwYaUVUbQ S0tSTqUHNtczUKCUFiejpcjNKTzy1eFa9PKXCIhlnZlYQM06uktsMVDW62q7Lg== 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-kernel@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