Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2129632rwl; Thu, 6 Apr 2023 06:19:27 -0700 (PDT) X-Google-Smtp-Source: AKy350b8cRf3TEOdGVJ8Jpuc/y+oUryXdbC8iWtF8ceJEyj+aNyd/4IiO7SeUxphJlD1WFqzQ0+H X-Received: by 2002:a17:906:b2d5:b0:948:7614:af2a with SMTP id cf21-20020a170906b2d500b009487614af2amr6282989ejb.25.1680787167692; Thu, 06 Apr 2023 06:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680787167; cv=none; d=google.com; s=arc-20160816; b=StmeFuRVQgqzllkwnNpaRbxGs3TjG198gS2jO7TVS0XMWfU3VCtqjkJwhkiooXrZhw k+aXXDbWjlBrcuMwwyle18N000Z5Vakdht/l8TCyxmAPbeZxJJVj6jnpC8I6QjhG/rlC PuilILNKzWRA7yGkShOCwFuuFa6QHraZEK5V3WJywC7hu0n+8TFEw0D2PDrWYel9Oie0 z/e2sAb2BheB1NcxgMO4roUwBtDoHEd64YDOCFO2m0AQfIO9/SL5iKIxm2eZDK8V9tIO 2USQAAagBEKw57ERBUulaNOYsfcgt/1GahACLJQZL+F87bMUIRad5/HW0tNUXu6Cs2lr Jwkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=AfC7CMPXeeRMiPKxLyM3C13TOXBtHVBske2Zh3FAELY=; b=TPR398V8fuNa7tdZFrOnd1USy6ujIuka2DSrsq9pxdY1V7RiIu5yW1/TSZm9dyE9IC 3+03yBJuPhJnMnQedbtN0M2OuSqFnXxIQRpZqqgDjAcVd4zkNBB4DK7UGzyAVtpa4UDf 7pnw21MX8P1dSv1ABE8PSoyKk9dRqGttecFbV/BkrbnUYY8aWZXxlH1tmyswmaEv9C/B ayVtWLHAwUjA01lWKdP8aI0bxxL789U7cySqYYF5C8ngNSfsbIm/ZugGi2TxAmzGlKPf gRV6YsJMdoiZZOwGsD1fk9u8Fy3egYY2bC0a/+U/IWdIxf8qIni/gfmLVuDb1Fv6p6DI AB1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=jz4wQSjN; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ai2-20020a1709069a0200b009351565d152si1059650ejc.729.2023.04.06.06.19.02; Thu, 06 Apr 2023 06:19:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=jz4wQSjN; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237735AbjDFNSI (ORCPT + 99 others); Thu, 6 Apr 2023 09:18:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237504AbjDFNSG (ORCPT ); Thu, 6 Apr 2023 09:18:06 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B870903A for ; Thu, 6 Apr 2023 06:17:59 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 1EAB11FD76; Thu, 6 Apr 2023 13:17:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1680787078; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AfC7CMPXeeRMiPKxLyM3C13TOXBtHVBske2Zh3FAELY=; b=jz4wQSjNwiTLPukTzWuoOY3ua0xRuJciJdXDRsbi9kNotTXtegJTpyHUDpAW9erXwGzNSk L66Rjygnz+Y0LaU/6wU43bNPjQHz2TW/EaraJ+U93a4phnG5AJO1if1ZP/6bUr2Ty5mYxa ryQmHMtNROJKsQ4cbTv4G7wkrnRp8Xo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1680787078; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AfC7CMPXeeRMiPKxLyM3C13TOXBtHVBske2Zh3FAELY=; b=GJxuSPA7soPWU8u482+5aSlrmq9WnEviWybvmmcG3PJJ+HGT5looaU/dsNoaWo+bPAErlP tTEGOP+6eIo8UzAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 37D64133E5; Thu, 6 Apr 2023 13:17:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id vmNhCoXGLmTWBQAAMHmgww (envelope-from ); Thu, 06 Apr 2023 13:17:57 +0000 Date: Thu, 6 Apr 2023 15:17:55 +0200 From: Petr Vorel To: Arnd Bergmann Cc: Naresh Kamboju , open list , LTP List , llvm@lists.linux.dev, chrubis , Nathan Chancellor , Anders Roxell , Daniel =?iso-8859-2?Q?D=EDaz?= , Benjamin Copeland , Tudor Cretu Subject: Re: LTP: list of failures on 32bit and compat mode Message-ID: <20230406131755.GA1608262@pevik> Reply-To: Petr Vorel References: <96b67ae8-98dd-40fe-9dde-302e09d12551@app.fastmail.com> <20230406105646.GB1545779@pevik> <7234b8ab-db5c-4f4a-bb9e-ddef9f1a50d3@app.fastmail.com> <20230406124812.GA1589248@pevik> <3c2ba6f9-bea1-4510-8fbb-6521fab74a9d@app.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3c2ba6f9-bea1-4510-8fbb-6521fab74a9d@app.fastmail.com> X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Thu, Apr 6, 2023, at 14:48, Petr Vorel wrote: > >> On Thu, Apr 6, 2023, at 12:56, Petr Vorel wrote: > >> Ah, I see. This must be the padding code then, not the time64 > >> conversion: > >> +int recvmmsg(int fd, struct mmsghdr *msgvec, unsigned int vlen, unsigned int flags, struct timespec *timeout) > >> +{ > >> +#if LONG_MAX > INT_MAX > >> + struct mmsghdr *mh = msgvec; > >> + unsigned int i; > >> + for (i = vlen; i; i--, mh++) > >> + mh->msg_hdr.__pad1 = mh->msg_hdr.__pad2 = 0; > >> +#endif > > I suppose this is a suggestion for fix in LTP. I'd expect is should go into > > testcases/kernel/syscalls/sendmmsg/sendmmsg_var.h into static inline int > > sys_recvmmsg(...) > > But that at least on glibc 64bit compilation does not see __pad1 member: > > ../sendmmsg/sendmmsg_var.h: In function ‘sys_recvmmsg’: > > ../sendmmsg/sendmmsg_var.h:47:28: error: ‘struct msghdr’ has no member > > named ‘__pad1’ > > 47 | mh->msg_hdr.__pad1 = mh->msg_hdr.__pad2 = 0; > > | ^ > Sorry, I should have been clearer, the snippet I cited is > from the musl sources, and the __pad access is what causes the > segfault. The fix is to catch the fault on ltp, same as for the > time64 conversions. Thanks! I've just searched in musl as well, because it didn't make sense to me it'd be a code for LTP. "to catch the fault on ltp" I wonder if it's not actually musl bug. Kind regards, Petr > Arnd