Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp574504lqt; Thu, 6 Jun 2024 11:35:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSkS039HriUQUIjc6wN8jl3lTdegPK9E4dTDWlkAJ4WRskGA1PsGnqoBn2aKCqP1yHbCHBm9ghm+fj0HMtXqPdZd/coDoWlPdmxvzkTg== X-Google-Smtp-Source: AGHT+IGxcfKHw+qZGJA+zH5m2k9sFvR6iq5xBqgDY9gEcLqH7zsoLOpwqwmQvhC3HQ9mejtnH30k X-Received: by 2002:a92:cd81:0:b0:374:a6de:19b7 with SMTP id e9e14a558f8ab-3758035f175mr6596625ab.26.1717698919310; Thu, 06 Jun 2024 11:35:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717698919; cv=pass; d=google.com; s=arc-20160816; b=xTRYnkfJ7si/nthsmE9TEyPpcY6hGNgKktJkTWqgwPdU631msoLWFcc2J99iiCdd+Z uncfdlWCtUpgELJcCe9aX1KODHHGDPY1dEHGM42xk1qZmhN4f7HBS2L+B3+SjAau7hqe 3Y0PPzAf8Dd/R5t8dz/0xlEzRaO53YnCKTgNEiiFlCuLzjE/qQO5+iZ/zYHxDlAJL6Md Zg1mUyfsljz7qrWByFLJ4KeFwKFpDcAp/POg4HebQPelOAufeBfwW7om1H/CpSXS4qPv 4s28F0b2Or5Ny7H41g941iPEFHqihdiqKLBpGLaWIuBOhHFQZhto8Aui/rlWM7z0q2wD ZEbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=6CO0g1e2iEYIKJ/eo72YLUJTNuT2OqKeA+f4WWAhCUA=; fh=7IigFu9EloB+SUPah2fJYnRCzKrIbT/ePc9vHmBF+Dg=; b=ke/OrRo6as3d7neuS+IyeVTTUsQMWzIdsZjdRZaXadWQE6eHSthTLQ8IhnMDBQyueG lvYVfYGjJ08SVwUISP3YeeLvYdfpP+PYkiQeCJDtshCivT5CDcXyVpPZyOY6P6+/k7zQ XKsmWPFqqh9m6AjGzbovqE+di/G8ihujfaxI3MEsxQFwF1iGtqS3wW9iOYBy7oktwCtg DdK6nhjMzWbwwYBsY+gKxlg19kRivuLC8Eq6YsgwBVRlsItLnNxVY4l1B53V78lomF1q fkv6Iah0Avq+yd+4J/z1solvxUg03pngdEIGXMTaZeckiQrJaUyJRJpcQYSdTdvfVXJP 7KuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FP+oP4FE; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-204851-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204851-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2045f5d0si1611337a12.54.2024.06.06.11.35.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 11:35:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204851-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FP+oP4FE; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-204851-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204851-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 23297B27C9B for ; Thu, 6 Jun 2024 18:04:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0F4D2110E; Thu, 6 Jun 2024 18:04:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="FP+oP4FE" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 BEF0F1991D3 for ; Thu, 6 Jun 2024 18:04:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717697061; cv=none; b=BTSMSF7lYJz6XvizdSeoeVJx5/69sjdRUN5bbffnlJmhcno1+oXQo2otRnUGNRnidCiKGohtOSRUb72QbleUG7OQ3Di7pk+d73tcZUdomE21gWcOatUIypZ1b14OCWOTv9S/VcFqHU4kZbfp7FijNXkc8Qc2NfvJMU3eHeaOJes= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717697061; c=relaxed/simple; bh=da+imw45i6WbUyYnjdn/vso5vMNu8F/aTdzRiRx0Jm8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=oTyZfxKEmncPVKqJgAvpoFmdjsfctWFY0+Y1i83i249Jr/iNhsRNnMQLAefjiCivpxpl+4iYm7RfYscZ44+ngHoOOr2KvHmqhxZFZ5eFWFEx0gBoOkIUnz0650ixiGlqJrwRLvgpWaAV/0iDcgM5HcIIKDanZoIz7/12w3FjSnA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=FP+oP4FE; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717697058; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6CO0g1e2iEYIKJ/eo72YLUJTNuT2OqKeA+f4WWAhCUA=; b=FP+oP4FEDgh2HaiiWpZlKv9XuMtjsKEejf3C+FrrL9e1V2x8Qn2j7Tmzy8Vo9NR7nKcwKQ 39bbsofuPdJ5uoBmTB4QfUI5ha84g5ATk/1nrrXFlvEdZ59y2xJJJgdSlgfayg5N91NsVF Jck9rfOvqCIn0B0e0e/cMh5igltyoV0= Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-210-8ypqWJbzPAWP3SCrROSlnA-1; Thu, 06 Jun 2024 14:04:17 -0400 X-MC-Unique: 8ypqWJbzPAWP3SCrROSlnA-1 Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-3d1ff776f69so937915b6e.2 for ; Thu, 06 Jun 2024 11:04:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717697056; x=1718301856; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6CO0g1e2iEYIKJ/eo72YLUJTNuT2OqKeA+f4WWAhCUA=; b=PweA8Ctrx2CefIwnIjnp15XeJRng8IfqMFJi9tMNUtccMNnhs+bF+QTh00I4Uz5cgM 9aAWwDiYdrE5ZSR7qpVEF7lWX57yoodu7h/UPLObE1zNWpdzrD6parQl20Y52xvi5r4r PtlVOKRoJw4LBdvmpNof1e6iXDU8XtroI6Gbl4LFi+v2oZ9RpHjHcC+IsPlCYLMDHslo Si4C4piKxayfa+5YMbaCSRebcokjta06X6dgZ7F1GI85hdaRCn+2kwVDkU9x5i7uei3d hkKySsUXZMNavZ7kWZAp6uFlAyO1SmsGYZTrk+rRNs9u5rbMewRmR+cj0TeDob4g9FHR Xewg== X-Forwarded-Encrypted: i=1; AJvYcCUV25QHMB3BtlMAjMiVS5LC9TiyVn4e2KeztVk/KxV3D+B2d1gdlNrPC95bXEm6TggBjv0f1gp3aGOxPCiqf5ZV6n+QFxE/yKP0F03C X-Gm-Message-State: AOJu0Yz3Xwshj/rtpO/w8SuJHrtpsECB2+YQwC+qhUIKLv9hZEcvtmkx C+9sbG/rxbzBE1nSNLV/YIe44Du41LKYHUtYqC16BLMVPfYIoYQV9adVVV/KRUbgQZAlekeHHGJ 4Xaq9sqWI35kLmapH5/rUrtruIsCOjHoqJYtotIyyMwSoy7k08UPPU1fKPt0TSOCotZKkU3QV5F qmyjzIoEDaKx/VOY/PP1+bC0uwa1fmMBwK7UZ0qQQW35fe X-Received: by 2002:a05:6808:f01:b0:3c9:c350:bd40 with SMTP id 5614622812f47-3d210c5c58dmr321906b6e.0.1717697055854; Thu, 06 Jun 2024 11:04:15 -0700 (PDT) X-Received: by 2002:a05:6808:f01:b0:3c9:c350:bd40 with SMTP id 5614622812f47-3d210c5c58dmr321852b6e.0.1717697055422; Thu, 06 Jun 2024 11:04:15 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240606135348.4708-1-rysulliv@redhat.com> In-Reply-To: <20240606135348.4708-1-rysulliv@redhat.com> From: Joel Savitz Date: Thu, 6 Jun 2024 14:03:59 -0400 Message-ID: Subject: Re: [PATCH] selftests/livepatch: define max test-syscall processes To: Ryan Sullivan Cc: live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, mpdesouza@suse.com, jpoimboe@kernel.org, jikos@kernel.org, mbenes@suse.cz, pmladek@suse.com, joe.lawrence@redhat.com, shuah@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 6, 2024 at 9:54=E2=80=AFAM Ryan Sullivan = wrote: > > Define a maximum allowable number of pids that can be livepatched in > test-syscall.sh as with extremely large machines the output from a > large number of processes overflows the dev/kmsg "expect" buffer in > the "check_result" function and causes a false error. > > Reported-by: CKI Project > Signed-off-by: Ryan Sullivan > --- > tools/testing/selftests/livepatch/test-syscall.sh | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/livepatch/test-syscall.sh b/tools/te= sting/selftests/livepatch/test-syscall.sh > index b76a881d4013..289eb7d4c4b3 100755 > --- a/tools/testing/selftests/livepatch/test-syscall.sh > +++ b/tools/testing/selftests/livepatch/test-syscall.sh > @@ -15,7 +15,10 @@ setup_config > > start_test "patch getpid syscall while being heavily hammered" > > -for i in $(seq 1 $(getconf _NPROCESSORS_ONLN)); do > +NPROC=3D$(getconf _NPROCESSORS_ONLN) > +MAXPROC=3D128 > + > +for i in $(seq 1 $(($NPROC < $MAXPROC ? $NPROC : $MAXPROC))); do > ./test_klp-call_getpid & > pids[$i]=3D"$!" > done > -- > 2.44.0 > > Acked-by: Joel Savitz