Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp7183rdb; Wed, 7 Feb 2024 18:47:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUKVewJNNPawRR4UVLXrdaXDzyBD8A5eCyJxcrxDTfyYHHZIYa53/BTeV5l3yusJnwET8DgDzSYj285RdPrxn7CnKo8ftPl2Xk9nzMO6A== X-Google-Smtp-Source: AGHT+IH7uZNmsMrD0HnKY5iWrd655JjCSXtDMqOSl0xNX35PidmshTgxuBE4dzNiijUt0CK+j+R7 X-Received: by 2002:a05:6402:4496:b0:561:f03:f41e with SMTP id er22-20020a056402449600b005610f03f41emr77298edb.0.1707360472946; Wed, 07 Feb 2024 18:47:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707360472; cv=pass; d=google.com; s=arc-20160816; b=Ubit4l0k5eY+qNr1GJqnRpPj709P2XiO+IRaEg0HsiP7G2CvRMWjTgFnTBZDGdrgVN 0CkVuV1wQQ6agn3e6YJSFROahK5jogkji2mQUds4/hUfggZT1rRLLIcftj72Eq3HJnZg aTZQvnbNfbLl4+XmRRL0ffmCnZ7YTLl0oY+mw/JV5c6vegpGCRcWe9oe6WXeeJkgR3qi 3b7xcS515RlKJCZXMwzWWL33zwxV2UYDweWDCtCxoYKSh48o40oPNaD5rcs4mC7IYSEC 7L/MilkFQcCR8axwI+jl0v0FATx6H7OxMV+j2IFBCSJQzsEwGQ/xfggajU50Pcwa2Oy/ rPAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:to:from:cc:in-reply-to :subject:date:dkim-signature; bh=0iq8cRJkj/2hm4TS0USuQqVEylYWKy8V5m45mzf9FJM=; fh=vIL/n/ggn32/MMb1XjovwceA6MmI48mGHe3+KsFi3aY=; b=F+/kThndJOse9XpssxM8pDAx2t8guM2ZHqjw4teWKZQPPV+ZJR5nbh2qRASjxL+7Ey lfmLeXflFoLSOmTjcjekvAvgF3UFfIkQUqKA8GPFV0Oew9La2VvbCCN5cSIOdWHc9/dE 0eeTL69U9hxnYovh5d5UIb2YX/y1JEk7bwaobmqmikEWpT+zullAK7ty5eUGnsMvbKHM 0XYXRGKgu2GVha3W/emAJ8Zz0/qblyoRhYvCHsExWOIxU5pB6OBDNXL1editZWKBUSyv B9evisP9jzysALUlZADgOgdhAwCR62TzSL/2DvoIf8viijX32/lddACuRdBbIHoBISuE r8Pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=1rFqLYfK; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-57402-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57402-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUGi24atPb+hIq3DYVz8Zs/djNQaE5OAT8x8sZaO5cgfjIuFwmD7qPilp6WvnEizqsd8OS6GLZmtfDmuUgsOSJRXjjY6f5FDZKPnufiHg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p26-20020aa7c89a000000b0056016c58691si404220eds.142.2024.02.07.18.47.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 18:47:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57402-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=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=1rFqLYfK; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-57402-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57402-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 EB0621F22C0A for ; Thu, 8 Feb 2024 02:47:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A14351D526; Thu, 8 Feb 2024 02:47:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b="1rFqLYfK" Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) (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 7B3F61CD3B for ; Thu, 8 Feb 2024 02:47:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707360463; cv=none; b=ZDXC5QrEA/jeOFk7BlGZKH+ikx4qhBoJ6RicCapF5XKEhjAYRQjOVshTGFLImuPwWi/0QMY15VJGgq19lbJGGkQ46T0F0LD+exC6esm1a6Vn7eKsv4EHS+m/hGNrIpIg0VtKXU7EIfmgJU8dK4yJKZSfZsXh6W1DxVsGDDJww2U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707360463; c=relaxed/simple; bh=MK76DvHni7iW6Jm9pZscOdxTC14rov0rPpzyV+KhtIU=; h=Date:Subject:In-Reply-To:CC:From:To:Message-ID:Mime-Version: Content-Type; b=BVRnOzP6gkUA5e2v01EjJTs2y2gXATj8YsSd6X64M390a5NlFX5woxleDMi5swvd08YqbjVFozeBNN+4TiNs8Y/5Xzah9CktVFm6SSGvsYS/XCcU31vFg2HOAMmvq9cKeKPgwpTS/HRXoq8Ori6nYG5PjMC5TpDYV4mBqWxrh+o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com; spf=pass smtp.mailfrom=dabbelt.com; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b=1rFqLYfK; arc=none smtp.client-ip=209.85.167.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-oi1-f179.google.com with SMTP id 5614622812f47-3bbb4806f67so941556b6e.3 for ; Wed, 07 Feb 2024 18:47:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20230601.gappssmtp.com; s=20230601; t=1707360460; x=1707965260; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=0iq8cRJkj/2hm4TS0USuQqVEylYWKy8V5m45mzf9FJM=; b=1rFqLYfK0o04y64bu/H5z3ySITQpkQuiXwHAzaPPWXRKtbR5ecSMQWUZWKPEg+njeT OVMeC4ulioJEFwvw29P+q0W4AcEefBBMtM4uA+PfcqrgwtQ7ldS2NLRpMAUgoGQd2TAd W/R0vS/ScMcJ6SVDdpU1aa1oOHAeqBdWKmPyQl7FbID8J+SUx6VYpYWCPMIPZLKmevGt rfH2PiejTABx9HFUesse7ZHr8uL0dGmc16fMI6jGUYDMeaE4goJUbvhet0qkByRrLTSm 7r550+dwzj4MEYS4aH0NFGU8y3yibr/MA8EtBne0u2j+mDl2iEgRgb1W+kTxaUq8scmC NdDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707360460; x=1707965260; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0iq8cRJkj/2hm4TS0USuQqVEylYWKy8V5m45mzf9FJM=; b=Z0jPKJKxsPfnQjye1x91lH6tHuTbWO1wRsWNlZJBYUBMqVsjXX5JCaToAgaX9QZS56 wkjgwG0e4DtwYKeds4g+BWnafG4Rm3GeV0bZnAKqoxGokVI6z9ZgLzaJ6eDsvQ1ffETn mIXuSjEEDXGL1YnG0eoGa+f0OM5ynLssc27cyWfxO6qfZ98JveKunZOILIVhvAjYk2GD 26N2EaL3RIexuu4bhjPm24zoo74RoeaqgI5RhuywyHSt9k3y3YqWKqyLTSx6i3/pXTMV ko+inpwVh74zuktIsRS4hPl0amL4WN7UO7Zyr9Ei2T39FKn4gXweXEfPilndg3MkCovC MN/A== X-Forwarded-Encrypted: i=1; AJvYcCXnKsrixGgLv+0OfoLi0r/ZGtSwpr0jYvdkDAjuh30UTrfgmZICSOXasYIV16DuLoeQQ9a11ky/s4KVzje0x7j7nnyBvzHumV5rM3lq X-Gm-Message-State: AOJu0YyTRifmy03xT4720sF/9VZUtw+7y/25XCDZoui5fPgOZrvqP9N0 CYnlLHtEWnf9FoR4ZCqFvCbYxoF9HjmVT+u15OU3FRCZ63sjkldPSQR38ySbTGy/QydP4eGln/3 3 X-Received: by 2002:a05:6808:1a04:b0:3be:24d2:6d74 with SMTP id bk4-20020a0568081a0400b003be24d26d74mr8040618oib.38.1707360460304; Wed, 07 Feb 2024 18:47:40 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVkCt3S09kDcU8uWirtmwpuc8fI+9UPxZbKNaSJl0hV+RJHa6Wt9EWLb8CQOMW8nF2BsTgvQ09ClNk8JrcpQrBhGCbEIXtlUdwdzdz2Iddij5Hr/y/e7HDZ9hI/VS8FbGfcrmMPpxdH9i3EldrMPFJqwNNw20GLGa3J64wGYKppYA48nxogkkALaAe3EgIjBQ== Received: from localhost ([192.184.165.199]) by smtp.gmail.com with ESMTPSA id p17-20020a056a0026d100b006dde1781800sm1812370pfw.94.2024.02.07.18.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 18:47:39 -0800 (PST) Date: Wed, 07 Feb 2024 18:47:39 -0800 (PST) X-Google-Original-Date: Wed, 07 Feb 2024 18:47:37 PST (-0800) Subject: Re: [PATCH v6 0/2] lib: checksum: Fix issues with checksum tests In-Reply-To: <622b1790-8abb-463c-b6f6-9fb8b4a739cc@roeck-us.net> CC: Charlie Jenkins , akpm@linux-foundation.org, David.Laight@aculab.com, linux-kernel@vger.kernel.org, lkp@intel.com From: Palmer Dabbelt To: linux@roeck-us.net Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On Wed, 07 Feb 2024 18:44:42 PST (-0800), linux@roeck-us.net wrote: > On 2/7/24 18:09, Charlie Jenkins wrote: >> On Wed, Feb 07, 2024 at 05:45:22PM -0800, Andrew Morton wrote: >>> On Wed, 07 Feb 2024 16:22:49 -0800 Charlie Jenkins wrote: >>> >>>> The ip_fast_csum and csum_ipv6_magic tests did not have the data >>>> types properly casted, and improperly misaligned data. >>> >>> Neither this nor the two patch's changelogs describe *why* these changes >>> are needed. They merely assert that we need to do this. >>> >>> IOW, when fixing a bug please always describe the user-visible effects >>> of that bug. >>> >> >> I can add a description that says that the tests are being fixed because >> they caused failures on systems without misaligned access support. As >> for the casting patch it's a bit less pertinent but I can add that it >> allows the code to pass sparse checks. >> >> - Charlie >> > I don't know exactly what Andrew is asking for, but maybe including the > error log from the failed selftests and/or the sparse errors would be > sufficient ? > > Not sure though if any of those count as "user visible". Ya, for compiler warning/error workarounds I usually just include something like "without this, I get $ERROR". Something like 28ea54bade76 ("RISC-V: Don't rely on positional structure initialization"). For the aligned access on there was a fairly interesting discussion on why this hadn't tripped up before, I forget if it was on LKML or IRC (or Slack or just in the office). That's worth including...