Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1888308lqb; Mon, 27 May 2024 00:14:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbjV6xcpyKdsZVa4+SlWZWmZSPeskl+rRePT6wQzVL1U/5Hru54I4nHXt6oxt0O9VxQc/68Veg0l4GbbwY3BpG61wpaB0XTPoaj6ogzw== X-Google-Smtp-Source: AGHT+IFnxDxs3So6HS6RJuTXdjB7PNOlKggGBmaonRmJMb0H8OLsYEWQHqm9ry/Urquir9mcoE+8 X-Received: by 2002:a05:622a:1213:b0:43c:5d37:5a94 with SMTP id d75a77b69052e-43fb0f019d9mr100542931cf.62.1716794045598; Mon, 27 May 2024 00:14:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716794045; cv=pass; d=google.com; s=arc-20160816; b=ojAjVKEhCEPlwzp8Nd51LIaPB/5vEW8So3ufQ2tVseHr2oQiLD8hNDKQgZdgTeqA13 SM5sFk0sgPdVY3axT/sjqOHEnRiW/UB+8HYTiD6yEFKVQXFriTkQSGYhMVtnb8HeFgkU /qbVn+NX8P2Ul3EldqtTGmakmgThYoHx0h6bruBzoUFBc4/8wseHBTqStaA45o6c59qm gniderxUl1PFjaVF1hKwnJEnsjbRNZUMwZkYpNELM47U8dyIfhtRT7CZzT8p0dAAuSwK nOgPilaQMGMpM36ee2f1J/1HLfK5fCQB8P6hbyZfPBq2A9IadRAW0Gp3OUsMOTYFKvTS eagQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Uye+qPyIlPr8r1G8aGQy8xNPlvuLVvJZ8ppLZ/tUAB4=; fh=ibrX28a777iPHeod384Fg/s/q6uaSXKSliG+xy0lwI0=; b=Qgm9cKWuzo+XE/t1wflx7OWxLJ7eMaH5w6IuDfzYdDraoo5uqJEvg4/1BnuwQVsnJl tTrq8vqTYCLlElkivls8trNJ8g4Qrrkhgdk1LSnotV5LudVnKCnUa5eB+yFL5ea5oimJ EPEh4xcpFpTGlwEr+HTdr1JNED9j9psrnprLfwrBllLpnpbhX5OGkz6N7yNxDe7pGhFY vcWpS9l5TLO2QI306hD81K2AdrngsuhTcRKty9i59tv6u/zCE+/lvoWKkIMPwJFh+NtF H7kZy9NUhukyyKmGzvsH6S4mNRch/wYF463xygC1usDGF7bdfj74V8qHYi6xY5bG61M7 Jkig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nNwh4O8g; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-190121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18b2dc6si75071911cf.458.2024.05.27.00.14.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 00:14:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nNwh4O8g; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-190121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 537E61C20D79 for ; Mon, 27 May 2024 07:14:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85DEA17BC9; Mon, 27 May 2024 07:13:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nNwh4O8g" Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) (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 6BCE01755A for ; Mon, 27 May 2024 07:13:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716794037; cv=none; b=ZtWUSjNMaE5rVRspsp3tTl8n8OP1pvnWB472iUNy3tNpmN1PpY22XJ8dDw18idDjA7y39Sv6S3jJ6MEk46gTBHBwxiG70tIYYlYSZppEv9Y+we3OPBS8a9cQ4ahzoQtgL7tTZSK/6YmpqreufhO2Wy0D/GQU5f15lLdSykzFnTc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716794037; c=relaxed/simple; bh=hPOiU8EzJd6UGf1Qrqx8b1T+bxulcNCNVewdy3U/vsQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=oeIABBuaWwC3GKldrEPMHFkl7ak7a4P1vt2Qm62zXXr9lw8uCRKVeTt4sl5tMbmIAbcJEeQdUKMjN0QF0tyrNRuL3I5BVDOo8fAmfKruXw6NFuERNw8oUt8C2ulSnexMILdNP4Si9Ewe+z9QniNi8f3MGXyGOhRLIBBgT6x452U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nNwh4O8g; arc=none smtp.client-ip=209.85.160.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-24c9f91242dso1540892fac.2 for ; Mon, 27 May 2024 00:13:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716794035; x=1717398835; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Uye+qPyIlPr8r1G8aGQy8xNPlvuLVvJZ8ppLZ/tUAB4=; b=nNwh4O8g3TO5/glcAzO8PEvdX07FSqBCRl/rHk6GG8U03EKlKEMNlR5COe+BEm9VCR QA2iqmc9lYNKtUpg/YKXuT07ER0o13afijEOIJWejLBrEmSycbW4Y4UfHIdgI5I5VClB vsQPTKMlk7GKxDqOSlGb8Np6QHGXFpbUct31u17Hh+C22rTbce3+QRtoiPKumX6k/Zrx SEk7xjtMQqlL/MRI5oaUCQuyjy1lQpXHFwfwTxUM0ClDUXHqet007nitX6qDZm/lrzjI JxLTtAEDmG/RLi4fSBjBRcHbHniqI4hpzfQI/EtxiEvc6VCmPHHSEqV4QgvpuGTbtARA 3y0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716794035; x=1717398835; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Uye+qPyIlPr8r1G8aGQy8xNPlvuLVvJZ8ppLZ/tUAB4=; b=NTYiDQA92kDZAjm1GBjp3R3cbSiPjqL2gdTwNJ5MoJbu4Zg2cPIEI9HKnkhAlamaAg cJ4JdsppfcvbbvLaA/HCvKmS89NO/Q8j+BuPnl0omydPKDINHI9wVxkXGKlfNjkPINaI 79Y8Y80GMpaMeKThnMw9Aiv6PNuiivWa36k4RfD1vHdZ/5ihCsubgb+ZTpSH504CX4D8 ctAzyiCAuZcktlkqinZdqPnncmUyufnJoAyZlKoUflyX6NiQVJ945K/MzvEr4vdz4RPb cEwELpfyID7xINUh1aPvCuqFkqgYBLXLbJgpeqQq7vWExIzWRfao0HW91Nx08jQBQeQk HGEg== X-Forwarded-Encrypted: i=1; AJvYcCWB+FtvLBnZ20kgo0qsDq/hJZROzFMYdP9JDwIO7eXpuKEvl/vTzxf8mlTncjpCrhuEwHwDRa/3E0rAcnUnkqdSt7V/TXZwSgE7uHmd X-Gm-Message-State: AOJu0Yy5FyPz4EFFTE3HA6lgT5Buqb+mJWTSwBKi3kXzbyDDcUbGQ+iF +QNog75qG3WE7sbaJClZ+PH20zBJa7Jc3FcFJRFFWa5B98JKrVMl X-Received: by 2002:a05:6870:fbab:b0:22e:8a0c:ea26 with SMTP id 586e51a60fabf-24ca13e796cmr9174312fac.44.1716794035173; Mon, 27 May 2024 00:13:55 -0700 (PDT) Received: from paran-QEMU-Virtual-Machine.. ([118.32.98.101]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f8fd4d56casm4357253b3a.199.2024.05.27.00.13.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 00:13:54 -0700 (PDT) From: yskelg@gmail.com To: "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , =?UTF-8?q?Eugenio=20P=C3=A9rez?= Cc: skhan@linuxfoundation.org, Austin Kim , shjy180909@gmail.com, virtualization@lists.linux.dev, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Yunseong Kim Subject: [PATCH] tools/virtio: pipe assertion in vring_test.c Date: Mon, 27 May 2024 16:13:31 +0900 Message-Id: <20240527071330.105268-1-yskelg@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Yunseong Kim The virtio_device need to fail checking when create the geust/host pipe. Signed-off-by: Yunseong Kim --- tools/virtio/vringh_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/virtio/vringh_test.c b/tools/virtio/vringh_test.c index 98ff808d6f0c..b1af8807c02a 100644 --- a/tools/virtio/vringh_test.c +++ b/tools/virtio/vringh_test.c @@ -161,8 +161,8 @@ static int parallel_test(u64 features, host_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); guest_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); - pipe(to_guest); - pipe(to_host); + assert(pipe(to_guest) == 0); + assert(pipe(to_host) == 0); CPU_ZERO(&cpu_set); find_cpus(&first_cpu, &last_cpu); -- 2.34.1