From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.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 D8FA4156248 for ; Tue, 9 Apr 2024 17:28:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712683690; cv=none; b=aRUn1yVbMqy1k7EjhiEVS5tG984M9cxK0XKmF70/PyGRlRWrWSJL3nj+HE3V81bno0282psrZ3YRq5LMLybs4Apr3CUQY4ZC1zrvBmGUik/xp+r1is0Pa00uWGUxiPGBE+FffN9T2S6fgM39uzLAh9cEd+FCZfVTEwSyohkd7/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712683690; c=relaxed/simple; bh=TPhpU6GJEU734JPKrGvqBheDD6F81x0OYRJ4s8MuK+E=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VkpyPD8req2FYK2ZSpm71nUitm5tg2CPxu9Lq5aM3eUlz7pwqRKSKuIXVT0+Oh0nC1fx64qhbvT+wR82ZorhD0gcWc25kIHg+GDqyeOIXQKd2ZZWEzsUd9mPJD3H4jEsKz9pSI+T2OJiiffDFTstJlbytGDrOImdkZpqbokqZkg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E+vy51t5; arc=none smtp.client-ip=209.85.166.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="E+vy51t5" Received: by mail-io1-f46.google.com with SMTP id ca18e2360f4ac-7cc5e664d52so95235739f.0 for ; Tue, 09 Apr 2024 10:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1712683688; x=1713288488; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=bzDpECgxcv/gVK2Eh47txfcjeUm+DcSXrEiDNVslfT0=; b=E+vy51t5hbFKtlPfWz63OAwISfam8JoJQJPF3AsULQlTZX/HvoniDiNyRzbxSMrbZ4 mk0VY5pVQ9SrzbabNxxJkimfIKhLT06ENVXFV0HjjURiYtwsvqJdGLxrKYQsqSYYXRWB TAbhQeAzpAwOREQqlwbspbUY82B4xrV390hiU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712683688; x=1713288488; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bzDpECgxcv/gVK2Eh47txfcjeUm+DcSXrEiDNVslfT0=; b=Hnb9zhlobn9517wXsi6GeAYl3alrfl6RIKiFSNZNl+W40KRz2uBH9x+wAu+KM5LZmY 18qXDXKXKpcRMVAJTvSQ26w4uSDp9tPqW4zK0HSpXEZRCejU+nmzRHzL1XY7keZr62ta xJw/bfPztGY92dQyk5XXK5f3jDbo1VRxaIoxnOpiGA76bm0fE+Lclb20k0qMQoISZAF1 FE6s+ERBR9HQZu3bzizW8LsVfkQD2UAAmdGoVZ31Cpa/1Ti1e22iGPF3RliTnP36dI7n VyEA752KWV12AqY/uPrqLVG9SRHPV99ABMhw/1EpHiaS5ngyBUgxVFcqTKQ9YYcl7/pH ogvw== X-Forwarded-Encrypted: i=1; AJvYcCXRpm8UovCoar3xRku33FeSWDq8ETqJ0PVRE9cSqugmwM4OZPVLLW+yR+Zx0Vu00Wv4C+6qTh2I2CWXg8OttthbV5eXy82r+NFVJkPWBs1E X-Gm-Message-State: AOJu0YwQvINhgItbBYBpzAWA06Ddleyi50sQgQaZLCxUZGXuhIP5qXmm bz9gsElLQS7DFhXa5wLkLCBb7FksS+zeiN/iqDODu8KJ7An5cvKLOCFm9nBKE08= X-Google-Smtp-Source: AGHT+IFk5z8PoAK3T9resPRUq+Mhgn4hfhcghzxIpzPidDvzpWozapI9Iaz2Vi75WE2H0KeSIVTCNQ== X-Received: by 2002:a05:6602:3b98:b0:7d5:de5b:1ac2 with SMTP id dm24-20020a0566023b9800b007d5de5b1ac2mr468468iob.2.1712683688027; Tue, 09 Apr 2024 10:28:08 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id cn23-20020a0566383a1700b00482b4a8f07esm35302jab.61.2024.04.09.10.28.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Apr 2024 10:28:07 -0700 (PDT) Message-ID: <5a04e40c-daba-4a1d-b5db-f70d2e51c403@linuxfoundation.org> Date: Tue, 9 Apr 2024 11:28:06 -0600 Precedence: bulk X-Mailing-List: linux-hardening@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 RESEND 0/7] Handle faults in KUnit tests To: =?UTF-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , Brendan Higgins , David Gow , Rae Moar Cc: Alan Maguire , Borislav Petkov , Dave Hansen , "Eric W . Biederman" , "H . Peter Anvin" , Ingo Molnar , James Morris , Kees Cook , Luis Chamberlain , "Madhavan T . Venkataraman" , Marco Pagani , Paolo Bonzini , Sean Christopherson , Stephen Boyd , Thara Gopinath , Thomas Gleixner , Vitaly Kuznetsov , Zahra Tarkhani , kunit-dev@googlegroups.com, kvm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-security-module@vger.kernel.org, linux-um@lists.infradead.org, x86@kernel.org, Shuah Khan References: <20240408074625.65017-1-mic@digikod.net> Content-Language: en-US From: Shuah Khan In-Reply-To: <20240408074625.65017-1-mic@digikod.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/8/24 01:46, Mickaël Salaün wrote: > Hi, > > This patch series teaches KUnit to handle kthread faults as errors, and > it brings a few related fixes and improvements. > > Shuah, everything should be OK now, could you please merge this series? > > All these tests pass (on top of v6.8): > ./tools/testing/kunit/kunit.py run --alltests > ./tools/testing/kunit/kunit.py run --alltests --arch x86_64 > ./tools/testing/kunit/kunit.py run --alltests --arch arm64 \ > --cross_compile=aarch64-linux-gnu- > > I also built and ran KUnit tests as a kernel module. > > A new test case check NULL pointer dereference, which wasn't possible > before. > > This is useful to test current kernel self-protection mechanisms or > future ones such as Heki: https://github.com/heki-linux > > Previous versions: > v3: https://lore.kernel.org/r/20240319104857.70783-1-mic@digikod.net > v2: https://lore.kernel.org/r/20240301194037.532117-1-mic@digikod.net > v1: https://lore.kernel.org/r/20240229170409.365386-1-mic@digikod.net > > Regards, > > Mickaël Salaün (7): > kunit: Handle thread creation error > kunit: Fix kthread reference > kunit: Fix timeout message > kunit: Handle test faults > kunit: Fix KUNIT_SUCCESS() calls in iov_iter tests > kunit: Print last test location on fault > kunit: Add tests for fault > Thank you for the resend. Applied to linux-kselftest kunit branch for Linux 6.10-rc1. thanks, -- Shuah