Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2114053lqz; Tue, 2 Apr 2024 07:38:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYbUQAgCujL1scCDoOoFbcQkwGsJy+7wIvBUMluLIMpB3BWNXQLxy5wGvFfJwk8AhQOgzpydkrmzj/0hygHMt4YQH2aWjJddSJRQg7EA== X-Google-Smtp-Source: AGHT+IEDoVLLRjXokTCp6ffAB9jhjiLRg/qKISA3sSueDRgsz93eurqdgMOQsqARlK+aCrFweuj3 X-Received: by 2002:a17:903:41cc:b0:1e0:e305:19a with SMTP id u12-20020a17090341cc00b001e0e305019amr13627047ple.30.1712068686811; Tue, 02 Apr 2024 07:38:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712068686; cv=pass; d=google.com; s=arc-20160816; b=UWv5eBFhIYYdCSI7ncR8K8nL84HDmHXBFAV/L+2QX5oodiAxY10ME9p9Snc/thI5tN TmIPFswsA38T1wAToI2dlU5Bh+wzti7ukh36C29wSyBf2NkGGsV/tYnCAFE4VOP69R64 D5wEyueCZjbhkyCnIF72DUlEJG5mFaBhlEhyEZHXxbQvrtAibVzMtxfjHYoDQLJ08Biu hml1Ijusb2zkfaQsnRjPCSfOXzXKLqt0c60eE7o8JeDdGTE7kQ6jGipNaFWMR8BiuClo BgdLeIaVEkxZHZxXvg/oyeVhowbM/bLQXosmNgAVK4s9RXIQ1cAITKJBMepXIGRHQ1ya W16w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=7FYEajHHZNrGHETCR6Q3fzJ6HNWJWU4r/hKJctcIepI=; fh=j23IQjK9fQXbC8qrAF6CpZa7mRy7e989OKjYhXdOUds=; b=zEn+dtLU9JeZtMcbi+IErvgve7nNiI7AL8bfwEOlIfUyUUUu54x11fmqLnkjdgDBRT 7J2CuOwOTTd5tu4cHnpadKm6vwTABDFFs5NwBZazrxVDJCS9kXoGQiMzZDwLfRytFRNq EfyHVfEtpXKBDfRqZxYHLd+kYR2gJnAcKdKDfjBsI0ytl/H4DW/Mx7i2OA9hzG+h52lD mJRzUV0Pq5o3kDasaw+p+TGFnevoHpbIEffdxBCjYyiWqI8XIS0QDyNAxBM0cYc0x4m8 /tTVYafF0MajBUcRJi+PKb4G0YZBRd3DdHhkt+/d4kvZtMjSeRaVtHls76Jpf0NiJILW IMow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@fu-berlin.de header.s=fub01 header.b=OIojHHSc; arc=pass (i=1 spf=pass spfdomain=zedat.fu-berlin.de dkim=pass dkdomain=fu-berlin.de dmarc=pass fromdomain=physik.fu-berlin.de); spf=pass (google.com: domain of linux-kernel+bounces-128122-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fu-berlin.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j4-20020a170902da8400b001d71de11ca5si11950134plx.493.2024.04.02.07.38.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:38:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128122-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=fail header.i=@fu-berlin.de header.s=fub01 header.b=OIojHHSc; arc=pass (i=1 spf=pass spfdomain=zedat.fu-berlin.de dkim=pass dkdomain=fu-berlin.de dmarc=pass fromdomain=physik.fu-berlin.de); spf=pass (google.com: domain of linux-kernel+bounces-128122-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fu-berlin.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8A914B226C1 for ; Tue, 2 Apr 2024 14:14:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0943E8615C; Tue, 2 Apr 2024 14:14:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fu-berlin.de header.i=@fu-berlin.de header.b="OIojHHSc" Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C55385466B; Tue, 2 Apr 2024 14:14:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.133.4.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712067271; cv=none; b=QL52B4kTSW/O7FYv1DqiBVxkF/p++gyjUJkTy7+VVhqIiAXumsvE1RaeDhFKKcC6syAfA302HdBKJKD/aJI7/i8xN9cuB7ld5ljsqruozygoBMhUOS+/P/0bnqiJbm6XBKxm8nJZpCwJZkkNS09gxFmGZCXm9KAkOxMlOaP+2B8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712067271; c=relaxed/simple; bh=xGBS8087o4E2OFVrwhMP2Fd9XpiplM/rOINlshOr56M=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=PoIfIuUvne2l0Dhggb7w+uJhDu61LKh/+8i9b/sz2g2yiPmV2bPSftMb7sAlx09Cj+AtEOPVBifYX4dHuLClVxafX8JZV0aZaCTmu0Hpd5wKCnbivxTAV7JpaBxt+hftTkCa6kZfLPwxG1Uc3dnk5b04LXPJImRKgguhAFyzTyw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=physik.fu-berlin.de; spf=pass smtp.mailfrom=zedat.fu-berlin.de; dkim=pass (2048-bit key) header.d=fu-berlin.de header.i=@fu-berlin.de header.b=OIojHHSc; arc=none smtp.client-ip=130.133.4.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=physik.fu-berlin.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zedat.fu-berlin.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fu-berlin.de; s=fub01; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7FYEajHHZNrGHETCR6Q3fzJ6HNWJWU4r/hKJctcIepI=; t=1712067267; x=1712672067; b=OIojHHScqszIjU2KfVSb6eKfmUZQH0X+pj1tdpiI1K4mkXSrbysLEmAJJaUH7xlzFZMjTaFgqr7 4RoFGFsVfJuYcdtapDnnPw0w2DnxyPdjPO0JBcBewOl0Nfdfmzzahf+XdGq4Sq1QvIZpei35OlC6J idjnrkUOkXMNTL94NGj3Hld93DiGmmxGsW4JC47SzDX/lBwpMTHdk/CpncC2EpXeAu6MOGURentPD ue1qqauoBEKjc4Y6RvBHKbU/rUPEhKyoPnhC3zc8O7C8KIOOutYhOkNWaLVnVIFzfvtYKaz8SBawz P9GgsxTBOE6z3X+X6wyjlTZ009wIb3SzAJ4Q==; Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.97) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1rrepN-00000001CzR-2fhC; Tue, 02 Apr 2024 16:09:29 +0200 Received: from p57bd9555.dip0.t-ipconnect.de ([87.189.149.85] helo=[192.168.178.20]) by inpost2.zedat.fu-berlin.de (Exim 4.97) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1rrepN-00000000Hav-1nB3; Tue, 02 Apr 2024 16:09:29 +0200 Message-ID: <1e77ade4fb1d924ffaf226cb946ba3314ba59a1d.camel@physik.fu-berlin.de> Subject: Re: [PATCH] Revert "sh: Handle calling csum_partial with misaligned data" From: John Paul Adrian Glaubitz To: Guenter Roeck , Yoshinori Sato Cc: Rich Felker , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 02 Apr 2024 16:09:28 +0200 In-Reply-To: References: <20240324231804.841099-1-linux@roeck-us.net> <059d03a5da257660fa0bc188c6cc8d0152e97704.camel@physik.fu-berlin.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-ZEDAT-Hint: PO On Tue, 2024-04-02 at 07:06 -0700, Guenter Roeck wrote: > Hi, >=20 > On Mon, Mar 25, 2024 at 07:34:00AM -0700, Guenter Roeck wrote: > > On 3/25/24 00:39, John Paul Adrian Glaubitz wrote: > > > Hi Guenter, > > >=20 > > > On Sun, 2024-03-24 at 16:18 -0700, Guenter Roeck wrote: > > > > This reverts commit cadc4e1a2b4d20d0cc0e81f2c6ba0588775e54e5. > > > >=20 > > > > Commit cadc4e1a2b4d ("sh: Handle calling csum_partial with misalign= ed > > > > data") causes bad checksum calculations on unaligned data. Revertin= g > > > > it fixes the problem. > > > >=20 > > > > # Subtest: checksum > > > > # module: checksum_kunit > > > > 1..5 > > > > # test_csum_fixed_random_inputs: ASSERTION FAILED at lib/check= sum_kunit.c:500 > > > > Expected ( u64)result =3D=3D ( u64)expec, but > > > > ( u64)result =3D=3D 53378 (0xd082) > > > > ( u64)expec =3D=3D 33488 (0x82d0) > > > > # test_csum_fixed_random_inputs: pass:0 fail:1 skip:0 total:1 > > > > not ok 1 test_csum_fixed_random_inputs > > > > # test_csum_all_carry_inputs: ASSERTION FAILED at lib/checksum= _kunit.c:525 > > > > Expected ( u64)result =3D=3D ( u64)expec, but > > > > ( u64)result =3D=3D 65281 (0xff01) > > > > ( u64)expec =3D=3D 65280 (0xff00) > > > > # test_csum_all_carry_inputs: pass:0 fail:1 skip:0 total:1 > > > > not ok 2 test_csum_all_carry_inputs > > > > # test_csum_no_carry_inputs: ASSERTION FAILED at lib/checksum_= kunit.c:573 > > > > Expected ( u64)result =3D=3D ( u64)expec, but > > > > ( u64)result =3D=3D 65535 (0xffff) > > > > ( u64)expec =3D=3D 65534 (0xfffe) > > > > # test_csum_no_carry_inputs: pass:0 fail:1 skip:0 total:1 > > > > not ok 3 test_csum_no_carry_inputs > > > > # test_ip_fast_csum: pass:1 fail:0 skip:0 total:1 > > > > ok 4 test_ip_fast_csum > > > > # test_csum_ipv6_magic: pass:1 fail:0 skip:0 total:1 > > > > ok 5 test_csum_ipv6_magic > > > > # checksum: pass:2 fail:3 skip:0 total:5 > > > > # Totals: pass:2 fail:3 skip:0 total:5 > > > > not ok 22 checksum > > >=20 > > > Can you tell me how the tests are run so I can try to verify this on = real hardware? > > >=20 > >=20 > > Enabling CONFIG_KUNIT and CHECKSUM_KUNIT and booting with those tests e= nabled > > should do it. > >=20 >=20 > Did you have time to test this on real hardware ? Not yet. I just returned from Easter holidays and need to get synced with w= ork first. Adrian --=20 .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913