Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp538874lqg; Fri, 1 Mar 2024 12:47:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW3GzbhxXiKFQWvfdxwJoqUiVcUFrxdAljw2ZtXkcWYBMHrjPd/TQUaMy06vAcfzV2mcaCSF6UBCCNBB5ZYSD7syB5jzTuJmnQaTdumYQ== X-Google-Smtp-Source: AGHT+IG0vDsEXkDuR9ISRubkXxyYkJ5gB8CnWhJkyLF+RctbhkNu1p21FEm0kLZEpq1v7j0WIhXt X-Received: by 2002:a17:907:100a:b0:a3e:a5b9:d69d with SMTP id ox10-20020a170907100a00b00a3ea5b9d69dmr2403076ejb.74.1709326072861; Fri, 01 Mar 2024 12:47:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709326072; cv=pass; d=google.com; s=arc-20160816; b=bxLXCoF7L82cuwx1RjDYtZEVohIBVSARQn2RVrKQtVrrh9ZSbim/xbgF9CPSLeVlFZ wvyaKA+nEaPXazkWijt4Ia0O1DfGPQz5Hz55ACizYtH97Y7A3sKi/8vsfeUezTdAOWAN sygLcZLbc1VCP6xTW+BkXWQL/LMwkq5iRvBcJjiFThnMPq408Wyb0CVUbDcAeQVddiqJ Lgz/oCdf6H+wJKcxT6h6sUqHDOihuvE0dciLMaBjGgcDZiOG9PQzgVHeBiVby+btYzo5 5uiOBm4+nRU5EpdPantygkp2DDgBRFo0vaRTmekkmZc/ladqiDFcyBmg/FRA38LF8LXy 2k5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=fi955ff2Km/XHk+EvfWGRWtcjoumqDRLFwVbG3a05Tg=; fh=DUSBYzkBDuM3JochDHL/PrcHtA4Al1iEpRWdtLcFk0E=; b=gXbRfemnnJGKWvBqwgade16UwZWEMt6FCdaEIWtGlowYNZTwAnK1a1Lc43ju0cUtbr 3LR+KFh19sH/OTAgchX7ujfXDyWhC9ULRXjqKeD5z7ccsSV2dqU4kdUwtSp+bjaO/8iz 3E/KYrHU5z4HSEonjBR1IhHG1FBFFyDfM9/fFPNhKlJjvojU8l3lbKwQiFV6qCpFmlLv DH46h1RKsuWMggQ9YbqUgKjo22TBXXZHgB3296Sc5VFjezbYUHy/F2VCSBmKtzGSFgVG jumM2ZhfT0dSyyLNCXM5OJtX4SVkFw3bLhct+ZPcfbuAqYLOHeMQykduy8qsDoa3cNrt 4n+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GZqBWuLU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-89111-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89111-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bu15-20020a170906a14f00b00a4421f3b6e1si1676468ejb.491.2024.03.01.12.47.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 12:47:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89111-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GZqBWuLU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-89111-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89111-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 240D41F228D2 for ; Fri, 1 Mar 2024 20:47:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9215152F9B; Fri, 1 Mar 2024 20:47:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GZqBWuLU" Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) (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 7A5D055E6E; Fri, 1 Mar 2024 20:47:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709326045; cv=none; b=KZR9IpwVaa46AWCNVQxMyK5X24h6vfmrKsq5CHk9QkqS4VEJG87j9EALYAXG+z52y1tvd8AG7qbMGZqWoZaXuvVuHeyyexjcgE1arJEgrT4XW6dnesHQgk9+KSii0dWn52ELnw5owv1iqGLWWSSVqDHdAwDqmJNRhaTfGm0OS/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709326045; c=relaxed/simple; bh=bpOXBl/+vEKKGfVApj2A/xz6pEaxLe47MBrtl3tKaVM=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=NzWAFsb9xEeQuUAm+QCQaN9v1vUXJ9aQUJ0oY73NSImeK68XSP/vq5bBFXKhZ/DDtCT53NexbWquMc75ehFKFAnUZroTYoZ5JIZ0+0a/fV1j43ajwpGPp/2tKRQ08ifUYpG5uAw4hZvxgl0nPc2T0hTkhubo7qX6GDTgdGmJlxk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GZqBWuLU; arc=none smtp.client-ip=209.85.166.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-7c7770fd687so135666039f.3; Fri, 01 Mar 2024 12:47:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709326042; x=1709930842; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=fi955ff2Km/XHk+EvfWGRWtcjoumqDRLFwVbG3a05Tg=; b=GZqBWuLUb5eIWzp1ouZgchIhdpSdAS7G0iDLUiOqehfY3/mh2YI1mHnlWGGA7WaiIp iD3LdYKzVN0273l/okziuxmhpavjLjWwlvPbqEJVdVTDwT3oIQFog6PBIncXyyG6BDbX h/1w3Rdkq/v77hVsZepiEzmk/M4Aika6CazOF34YEh9AHjjBV8gEQUmOpLOIGrm7dzmU zQU0eQs0YVyVEcXIb+uKtzLlH0mx5vLKfBFGsc1szL5UPLiWnalR6btZajxj+on8ooej c6LoSULRMk/ShZha9NCJVgUZZoX2RrcKZ7ZTOp1EXBwTu8d515R7R5quB7edL+BuvriO 3PoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709326042; x=1709930842; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fi955ff2Km/XHk+EvfWGRWtcjoumqDRLFwVbG3a05Tg=; b=aNOWavH66hHrRb8HeghJ6kmDRSnU+IvGYWEiq6zhECQZST34Wil8Pvllhuwla1wZGH kiNiVLBVLgCGwsST1aOy+2l0Ojniv4zzCRmqCVtvAmh6EYPNETwWDDzry1cFOL9ftXO2 YQg4b6OgwhwnpmYtWINvm3lmUzXYabjXSZ+tFM7LgC2NPDUhmwx8f0xRlp3aox0yn9TS tSXzoS96y4DT4zue1y9VWoYkQBHZ5UQMwz4t+R0W3iF/oUFchF78D8fygOfyoDQfZPew IOel4Yknp9d7sgRsK6Bz0BJI3VISXjPOHmzSNXtalkT096uv2ba88L8XDJGhhRNaSUz/ tkPA== X-Forwarded-Encrypted: i=1; AJvYcCXWWF2gnY9GU4vO85U2F/Sqp7MjL8VwpgPSr/j80Q0Vd4K/oHEdka2nK5O7B9myUqRd26+Ulkp3o8W1ardHb6THUWWeYLydVWEdg0VR X-Gm-Message-State: AOJu0YzPK+dxNzcV/k1Xr80mrr0qWlcCrMs/nhnfe5E4VYVPwCPdsJ7Q y/VTTI21+HgQAa50uuVdM1MvO+IaxNxCaA9igM3kPrv+ms1x2vOc X-Received: by 2002:a5e:a711:0:b0:7c8:de3:2ab1 with SMTP id b17-20020a5ea711000000b007c80de32ab1mr3162526iod.10.1709326042301; Fri, 01 Mar 2024 12:47:22 -0800 (PST) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id ay6-20020a056638410600b00474d08a6fc4sm377115jab.7.2024.03.01.12.47.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Mar 2024 12:47:21 -0800 (PST) Sender: Guenter Roeck Message-ID: <11842961-91c2-40bf-9134-7528d30137f3@roeck-us.net> Date: Fri, 1 Mar 2024 12:47:18 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v10] lib: checksum: Use aligned accesses for ip_fast_csum and csum_ipv6_magic tests Content-Language: en-US From: Guenter Roeck To: Christophe Leroy , Charlie Jenkins , David Laight , Palmer Dabbelt , Andrew Morton , Helge Deller , "James E.J. Bottomley" , Parisc List , Arnd Bergmann Cc: "linux-kernel@vger.kernel.org" , Palmer Dabbelt , Linux ARM , Russell King References: <20240223-fix_sparse_errors_checksum_tests-v10-1-b6a45914b7d8@rivosinc.com> <7ae930a7-3b10-4470-94ee-89cb650b3349@csgroup.eu> <0bd79258-b8c4-45f9-9201-4d7ddf02dfea@csgroup.eu> <0b4a7a9c-dd94-47bd-b9df-4da58be11342@roeck-us.net> Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/om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WEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <0b4a7a9c-dd94-47bd-b9df-4da58be11342@roeck-us.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 3/1/24 08:24, Guenter Roeck wrote: > On 2/29/24 22:46, Christophe Leroy wrote: >> >> >> Le 26/02/2024 à 17:44, Guenter Roeck a écrit : >>> On 2/26/24 03:34, Christophe Leroy wrote: >>>> >>>> >>>> Le 23/02/2024 à 23:11, Charlie Jenkins a écrit : >>>>> The test cases for ip_fast_csum and csum_ipv6_magic were not properly >>>>> aligning the IP header, which were causing failures on architectures >>>>> that do not support misaligned accesses like some ARM platforms. To >>>>> solve this, align the data along (14 + NET_IP_ALIGN) bytes which is the >>>>> standard alignment of an IP header and must be supported by the >>>>> architecture. >>>> >>>> I'm still wondering what we are really trying to fix here. >>>> >>>> All other tests are explicitely testing that it works with any alignment. >>>> >>>> Shouldn't ip_fast_csum() and csum_ipv6_magic() work for any alignment as >>>> well ? I would expect it, I see no comment in arm code which explicits >>>> that assumption around those functions. >>>> >>>> Isn't the problem only the following line, because csum_offset is >>>> unaligned ? >>>> >>>> csum = *(__wsum *)(random_buf + i + csum_offset); >>>> >>>> Otherwise, if there really is an alignment issue for the IPv6 source or >>>> destination address, isn't it enough to perform a 32 bits alignment ? >>>> >>> >>> It isn't just arm. >>> >>> Question should be what alignments the functions are supposed to be able >>> to handle, not what they are optimized for. If byte and/or half word >>> alignments >>> are expected to be supported, there is still architecture code which would >>> have to be fixed. Unaligned accesses are known to fail on hppa64/parisc64 >>> and on sh4, for example. If unaligned accesses are expected to be handled, >>> it would probably make sense to add a separate test case, though, to >>> clarify >>> that the test fails due to alignment issues, not due to input parameters. >>> >> >> When you say "Unaligned accesses are known to fail on hppa64/parisc64 >> and on sh4", do you mean unaligned accesses in general or do you mean >> ip_fast_csum() with unaligned ip header and csum_ipv6_magic() with >> unaligned source and dest addresses ? >> >> Because later in this thread it is said that only ARM and NIOS2 >> potentially have an issue. >> >> And when you say "unaligned", to what level is that ? Is it 4-bytes >> alignment or more or less ? >> > > This e-mail chain is getting too long. Here is an attempt of a quick summary. > > - Someone else suggested that unaligned accesses with nios2 should fail. >   I since then tested and found that they pass at least for the checksum tests, >   while dumping "unaligned access" messages into the kernel log. Other tests >   (specifically gso) cause crashes, but that is unrelated. > > - checksum tests on sh4 fail for unaligned data because of a bug introduced >   to the architecture's checksum core with commit cadc4e1a2b4d ("sh: Handle >   calling csum_partial with misaligned data"). The tests pass after reverting >   that patch. I reported this, but that revert (or a fix of the problem it >   introduced) has not been applied to linux-next. > > - Checksum tests on unaligned data fail on parisc in mainline due to a number >   of bugs in checksum assembler code (and with upstream qemu due to a bug in >   qemu's hppa64 emulation). All those issues should by now be fixed in linux-next. >   For reference, the following patches (SHAs from next-20240301) are needed to fix >   the known problems: >     0568b6f0d863 parisc: Strip upper 32 bit of sum in csum_ipv6_magic for 64-bit builds >     4b75b12d7050 parisc: Fix csum_ipv6_magic on 64-bit systems >     4408ba75e4ba parisc: Fix csum_ipv6_magic on 32-bit systems >     a2abae8f0b63 parisc: Fix ip_fast_csum >   qemu (v8.2 and later) needs >     https://lore.kernel.org/all/20240217015811.1975411-1-linux@roeck-us.net/T/ >   for the hppa64/parisc64 tests to work with qemu. > > - Checksum tests on unaligned data cause a crash on arm systems with "thumb" >   instruction set enabled (such as mps2_defconfig and an385). I didn't bother >   checking if the crash is with 1-byte or 2-byte alignment. > > - There used to be a crash with checksum tests on m68k because of word alignment >   which the implementation of the unit tests for csum_ipv6_magic() did not take >   into account (this is fixed by the padding in struct csum_ipv6_magic_data). >   I don't know if this patch is needed to fix that problem or if it was since >   fixed differently. > > I hope that covers everything. As I said above, the chain is getting long > and I may have missed something. > I knew I missed something. I forgot to mention upstream commit d55347bfe4e6 ("MIPS: Add 'memory' clobber to csum_ipv6_magic() inline assembler") witch fixed problems with csum_ipv6_magic() for mips. Guenter