Article View: linux.kernel.netdev
Article #26417Re: [PATCH net-next v3] selftests: net: add tests for the QRTR socket family
From: Murali Krishna
Date: Thu, 03 Dec 2026 14:20
Date: Thu, 03 Dec 2026 14:20
45 lines
13033 bytes
13033 bytes
On Thu, Dec 03, 2026 at 12:48:22PM +0000, netdev-bot+sashiko@kernel.org wrote: > - [Medium] qrtr_endpoint.c gives the fake /dev/qrtr-tun endpoint the > fixed node id TEST_SRC_NODE = 5. Agreed. qrtr_node_assign() gives the tun endpoint the id even when another node already has it, so a small fixed id can be taken for a real remote processor on a Qualcomm board. v4 still has this; v5 will use 0xfff0, near the top of the 16-bit v2 node field. > - [Medium] qrtr.sh passes on only the binaries' failure status, so it > exits 0 (PASS) whenever nothing actually runs Fixed in v4: if no test passes and none fails, qrtr.sh now exits with the kselftest skip code. > - [Medium] The commit message says the suite covers the CAP_NET_ADMIN > boundary, but bind_privileged_port in qrtr_sock.c does not test it Fixed in v4: the test drops CAP_NET_ADMIN itself, so a single run as root checks both sides: with it, binding a low port succeeds; without it, binding the port just below the ephemeral range fails with EACCES. v5 also checks that the first port of the range is not refused without it, and only trusts capget() in the initial user namespace, since capable() checks that one. > - [Medium] The qrtr_endpoint.c header comment (lines 11-12) and the > commit message say each frame is malformed in exactly one way Fixed in v4: zero_size and unaligned_length now fail only the check they are named for, and the comments say which checks cannot be tested on their own. In v5, size_exceeds_frame uses a frame that only the size check rejects when size_t is 32-bit. > - [Low] Since commit 3b536db8fb32, qrtr_create() in net/qrtr/af_qrtr.c > returns -EAFNOSUPPORT for any network namespace other than init_net Right. v5 mentions init_net in the skip messages and in the comment. qrtr.sh does not need to detect it: as root outside init_net, qrtr_endpoint still runs the tests that need no socket, and a run where no test passes or fails is reported as a skip. v4: https://lore.kernel.org/r/20261203122145.144381-1-muralikrishna2444b@gmail.com pw-bot: cr
Technical Details
Message-ID:
<20261203142024.15053-1-muralikrishna2444b@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376653-linux-kernel-netdev=dewy.ruReferences:
<20261202120303.257866-1-muralikrishna2444b@gmail.com> <179630210271.3146.11727363632224442979@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376653-linux-kernel-netdev=dewy.ru From: muralikrishna2444b@gmail.com (Murali Krishna) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v3] selftests: net: add tests for the QRTR socket family Date: Thu, 3 Dec 2026 19:50:01 +0530 Organization: Usenet Network Message-ID: <20261203142024.15053-1-muralikrishna2444b@gmail.com> References: <20261202120303.257866-1-muralikrishna2444b@gmail.com> <179630210271.3146.11727363632224442979@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2512364"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:0cUgfZBEiLE8iLLsYI7TGjPFYLw= sha256:WMN+F217yzyO9by1S5lQw6CuzYdvWc138uwvAHOsM1U= sha1:6PSdNLrMJpa7GGf8AEgNhkUzj5c= sha256:s7xyh9HkaAzkVqrfj1YEwobcAVc+T3wAQ8KxCQPMrmg= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 937CF117976; Thu, 3 Dec 2026 17:21:50 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.297 X-Spam-Status: No, score=-3.297 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8vAoaty2jNPJ; Thu, 3 Dec 2026 17:21:47 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376653-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id EB8F31171C2; Thu, 3 Dec 2026 17:21:38 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id DD48C2B2BC; Thu, 3 Dec 2026 14:21:36 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796307696; b=ujReDgaYvIRomnoUzaFNs10ScTAfkJ1NYF9+SiqtwSN49WswfVVY8xxydaJqYjr3Qtl5 zlgMIZcbDq9v4gUSgyzlvwOoc61k8944DGU6RQ8mjqNSH/rlA+gxm037h2rNtFHAj41yp xYNZaG9ztKIe0bJSp1x8XOJImGBLKx1f0IUeikQ9GK0cW7EBUfo9prSJdA201lntGrt4b QSsXoujM7WyVcaIffQUAqTDnLekdJ7sXVTDiEPokWjoHYShl7L6tAizCfNcHvlHuq1wBi Ufnsva+xAzgoXwbrVHuL82W2GodFkLwuDalAHOp8Mw2fWedfh0N7/SFdCSd5VVgqlVw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796307696; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State: X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Transfer-Encoding; bh=eI8DgFk5Px6TSF/mqn0+efAcQOKEaPNjpohy/7mvHmI=; b=YoT9ygSm0ywKnDsbJf/BjnaaNUFg5X2S5Ew5ZgHsOK3zRQ8wqjxYR+S3b5zZc6iBoBaA FWnDx/ZHhRivRXEvNF6KZEDaUIqrUQc8RQyuO3fszBCY0GUHJsB+bvDZdDlUZi+v3MXYI MJPcGkNbELyDvJPgvqaydTfqQft7L+oUdz2UpJAeBDp1FSM++WSAYvQnykg5j1DJIHMyH gr2AWtMO087DOz1JErDtSQBNGAANdDlaG5bBKLE/iJA1MywbZWUe+nqQxBdXhL0M/mKZV QaliP2H1e7ABx4BB6e/+cpVXwyHQwdyvdPAIeHLN/XXWxkd3GeVPo0+8gffgT9ROwGg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=je61luG3; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B0E5606A33C; Thu, 3 Dec 2026 14:21:36 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=je61luG3 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.227.132 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796307695; b=vM79QTcvEwtnbRC9YW5Qs3VMwHIkU0R8MS69dCNJVyEW0jcCJyzFLfxmUDj3wFtS4ooJ ha75wJCXul2SLcCoVgzVtFCHWBp6CopzVCTViHFLHdu4v7slNQw5fm5FFaWpUrUhunCXV yOUfJy6+33eFPp9S6TQGn4rsB3QqkrTWVmYBC2RYbaN8iuXkNfPH/q8UV/Zp7gwnuBUXy GNh9ueeicSMnSaQhX9i2/MiMF+X3BiUAaBxPtQz+PL0UTzDnYDtGS4woLNxD5YszpRvcM ZhaHkpt+anDEzI9k7cPNOpJbH64yeuzJES59qgfsoKhNR/sVfUahFgh7HuqKD2Ona5w== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796307695; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=eI8DgFk5Px6TSF/mqn0+efAcQOKEaPNjpohy/7mvHmI=; b=SvfwThBrkxYBVu6haxOhsyMffx3WfFWvZzbk9RaJ3ejLooPW7VOZWDvGCbXEUqDAtCju NpBzP8Dq38KADToahx7zdG7opTRuzp9KCLAtIFueQ4dM8eSh6w9g3RwKGB6R2XbA2jV+1 3puqlBoRHWzIDcYTrY21BPJQaLNcCZZHdfxnREY0Yh9sIgH02FkAjpksZTve8hmwh9ERS duI5xjg4hKcDL9fQHfWle6s2E0eEgVhPeEf6hhGTNWS5UmmNFG5DqqA0zFHmj6JdfmG9D VNGOqTPossezLAR8b0HX+V1F4zLFP2liqQEb80NCpETMLdkya8QgIn87xsK/OcKcotA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=je61luG3; arc=none smtp.remote-ip=74.125.227.132 X-Received: from mail-pj2-f4.google.com (mail-pj2-f4.google.com [74.125.227.132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3464606A32C for <netdev@vger.kernel.org>; Thu, 3 Dec 2026 14:21:34 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E3464606A32C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com X-Received: by mail-pj2-f4.google.com with SMTP id d9443c01a7336-2f04824c47bso32574145ad.1 for <netdev@vger.kernel.org>; Thu, 03 Dec 2026 06:21:34 -0800 (PST) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796307694; x=1796912494; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=eI8DgFk5Px6TSF/mqn0+efAcQOKEaPNjpohy/7mvHmI=; b=je61luG3QkT6TOIE5p9uTNKVfAwyPAEkhchlKZ7u2vx6aYIT48+LjFjrAmlLrQog4E /GmsVEcj5TKiII8kc1pwzk6fQd4RIXHYLdlWGGM17Dc3xJNFHltf3vB9kKJDW9rouJVl utrVz7VSPQcLt8gkzkVb9N/a4vVnCw1DMUMnPm/TagPSTciVoCFkBPwWTsNaUufCHsZy +30+2H9H9EpIXWvKV1VHvhDbZ6yAuqL0qHTKCBMsVmzanreFrq9ivDGQtReOKM7wwLna iCRbfLsJqmd51iybRtmBA96mjF1IP76GGBcy00whiXqtHfos96aiTyJtozNFfUcz8lMR FI/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796307694; x=1796912494; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=eI8DgFk5Px6TSF/mqn0+efAcQOKEaPNjpohy/7mvHmI=; b=kEA3WixJwYXmjKj3dI95hVttQop58H/w1enDydNMUFRIhSYYhGgl/tnb5bJeennL98 8Zlt4tPD5Wwu41wYk/yF+hbwr8MdX5S/X4OXUcte1p15dw2mgyOljT/Kfvhm5mnpElmX GpPFiyfJGx+nu4WCaIWo3gi04qaNCO/Ha7VrhquzzSU1aYnlah6AuhjMNIUljsJatL1K s+rfuRh5prLINvgO5WOll+i0nNMTkgoNAPZQriCdsZnXcRuBKKAO9+9BUVwYELzDuaD1 bZTRhooITCUII0OpSpduzsdP5j6+glF9Z6jS6ixqPg6dmsqkxYmhDQwoDEm3tCQbERSZ J7rA== X-Forwarded-Encrypted: i=1; AL+hErE2CVnNkXZbCd0/+7xYcRjgKtLGHS5h+NYVMmbr2g9p/iZFEn8RFQxRWWfOYrccYfnQkrpfd04=@vger.kernel.org X-Gm-Message-State: APuU4Z9pgjLr92jtPiwVQCIuodWZe+deHWmV1p7ZC883mP0EdVDcBqoW NmvcEci3KVDP3fa3WqlmBw6qdg5SMWBtz+ssXBbmc8YviX0oaG10uQk= X-Gm-Gg: AZFdTZd6CefnxDOKDsc3N1JNbg4IZGeLdxUZ6T5+BlqoQDp6iEwUhCui39UgBqyx0GT Bkeu2Xs1Mmeijyoal02nUIoB1fDjddwFMmFg9zlEvrln3t8Sk6e64vVIZg1FOTtTfFcOkAyEg5y yflF88akBHHFjBy2uWJPdc1C4SqUJAVkrVn1QY4VhdxiZshnUzmjlAB+o+ulUSUuqzH2E7c8wkv b9xCEI4UoSIKC/8d0zaUxHUqHhcWjAytcnDNqyDc7yTyX976nI33kzXbTuD/eZW9UlyYHNXAg8D ldj+CRTbetYL1THEASSLBWKMcsuIujGk105ILcuXt98POv2OWe3aVNKhvyP+LIRkpqyuZXc2CEX aBXjphNjoNPg2iX75fy844gKEnMyIGQe+89GYsoVpQCe2B5bzGRPSpfriuuoNRoEkWqzTvpAU+s dFEH9s+x/sw9T3f7ISKjsTezsgzQukJ5nzck8cKsAHQGFyAHh8iatu9dUa2VXQ5Y514/BrfASLe TrPUu4I3kDapPI6d9zNntxVLhy9zEiJqKcGKmFMmW7F7I5Ug9UpOmn1XXup4CvHiTh9cTmMAJ9u Fl85PhkARF67gUsnU/JF X-Received: by 2002:a17:903:b4b:b0:2e2:d09f:d770 with SMTP id d9443c01a7336-2f03f18fcdbmr475343925ad.26.1796307694066; Thu, 03 Dec 2026 06:21:34 -0800 (PST) X-Received: from localhost ([2a09:bac1:36a0:40::243:a1]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f03f0dbe86sm221141595ad.32.2026.12.03.06.21.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 06:21:33 -0800 (PST) X-Cc: Murali Krishna <muralikrishna2444b@gmail.com>, Manivannan Sadhasivam <mani@kernel.org>, Shuah Khan <shuah@kernel.org>, Hangbin Liu <hangbin.liu@linux.dev>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: git-send-email 2.43.0 X-In-Reply-To: <179630210271.3146.11727363632224442979@kernel.org> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list