From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2A9ECCA5FB1 for ; Wed, 30 Sep 2026 12:54:16 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 8B25D3E5833 for ; Wed, 30 Sep 2026 14:54:14 +0200 (CEST) Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id A47553E564D for ; Wed, 30 Sep 2026 14:53:59 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id D13AD1400C59 for ; Wed, 30 Sep 2026 14:53:58 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D3BDE21E50; Wed, 30 Sep 2026 12:53:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1790772833; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YsXBMlFKzmE5K2NmalpJ2w/PgYNnMBoB55Q2JbLHRqI=; b=y5i5gFR3SG4tRz5HCJo5TRerqDHvvm8eTNZUMJ/kw8wgR4SVk2pshSrxO55przfEoBRjhV mNp6HGSR5ehhWlzcRPJi8cumlwjnc7cQhQ9g+WpGIoNGCqii0Z+gjtvUuleqHsvVKiVcTb 1onRXzYyeeHP4WlcYDwlRzdYk83XgM4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1790772833; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YsXBMlFKzmE5K2NmalpJ2w/PgYNnMBoB55Q2JbLHRqI=; b=8+h7jrZ67y6ktB3K+igTLsXp5KzkcZDEMrl+jLSwRDnbFJijhfTkn2l45ims2gP2uPelUf hyYBHycqu3F44YBw== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=CjQfKL7j; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=tuKjuPDd DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1790772828; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YsXBMlFKzmE5K2NmalpJ2w/PgYNnMBoB55Q2JbLHRqI=; b=CjQfKL7j1FvLTwCFy7HAg2dAAkhqJq/p8qxhJczBCPa6ZyYeHFIlGm+KK5bA3LNr+rfniZ 0wMC9piqUwM+406sng4sTcjYSJGhwf/0+XWNHWTLOzUDhI5c23rxvgQabTwcmQneD3QbDz cjufdTgi11R2ChB1QZUlY66LxNQpetI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1790772828; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YsXBMlFKzmE5K2NmalpJ2w/PgYNnMBoB55Q2JbLHRqI=; b=tuKjuPDdRv/46dLME9bcJ3u98vFjkQvrFwoJ1koVGOlISJGGxsGG0Q5qBIvwsg3W7cC7Dz RaZDTBQ0qUXtKXAw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 97445136AD; Wed, 30 Sep 2026 12:53:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id g6e8FVwGvWqqEgAAD6G6ig (envelope-from ); Wed, 30 Sep 2026 12:53:48 +0000 Date: Wed, 30 Sep 2026 14:53:47 +0200 From: Petr Vorel To: Anders Roxell Message-ID: <20260930125347.GB2652589@pevik> References: <20260928212733.2835408-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20260928212733.2835408-1-anders.roxell@linaro.org> X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Queue-Id: D3BDE21E50 X-Rspamd-Action: no action X-Spamd-Result: default: False [-3.71 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; HAS_REPLYTO(0.30)[pvorel@suse.cz]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-0.999]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_DN_SOME(0.00)[]; MISSING_XM_UA(0.00)[]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; DNSWL_BLOCKED(0.00)[2a07:de40:b281:106:10:150:64:167:received]; RCPT_COUNT_THREE(0.00)[4]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; RCVD_TLS_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[linaro.org:email,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns,suse.cz:replyto,suse.cz:email,suse.cz:dkim]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[suse.cz:+] X-Virus-Scanned: clamav-milter 1.0.9 at in-6.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH] accept02: Join the multicast group on lo X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Petr Vorel Cc: Martin Doucha , ltp@lists.linux.it Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Hi Anders, all, > The test joins the multicast group with interface 0. Then the kernel > needs a route to 224.0.0.0 to find a device. When we only have lo, > like in a QEMU guest with no network, there is no such route and the > test breaks: > accept02.c:52: TBROK: setsockopt(3, 0, 42, ...) failed: ENODEV (19) > All traffic in the test goes over 127.0.0.1, so join the group on lo. > Signed-off-by: Anders Roxell > --- > testcases/kernel/syscalls/accept/accept02.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > diff --git a/testcases/kernel/syscalls/accept/accept02.c b/testcases/kernel/syscalls/accept/accept02.c > index 17056625e933..09a1c35e2591 100644 > --- a/testcases/kernel/syscalls/accept/accept02.c > +++ b/testcases/kernel/syscalls/accept/accept02.c > @@ -22,6 +22,7 @@ > #include > #include > #include "tst_test.h" > +#include "tst_netdevice.h" > #include "tst_safe_net.h" > #include "tst_safe_pthread.h" > @@ -112,7 +113,7 @@ static void setup(void) > client_addr = tst_alloc(sizeof(*client_addr)); > mc_group = tst_alloc(sizeof(*mc_group)); > - mc_group->gr_interface = 0; > + mc_group->gr_interface = NETDEV_INDEX_BY_NAME("lo"); Reviewed-by: Petr Vorel I tested that it really fixes the problem when no network and runs ok. But I'm not 100% sure that it did not affect the CVE reproducibility. Therefore I do not add my TBT. Kind regards, Petr > mc_group_addr = (struct sockaddr_in *) &mc_group->gr_group; > mc_group_addr->sin_family = AF_INET; > inet_aton(MULTICASTIP, &mc_group_addr->sin_addr); -- Mailing list info: https://lists.linux.it/listinfo/ltp