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 44E8FD36119 for ; Tue, 5 Nov 2024 19:55:26 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id C6F6C3D2BE9 for ; Tue, 5 Nov 2024 20:55:24 +0100 (CET) Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [IPv6:2001:4b78:1:20::2]) (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 231EE3D2BE0 for ; Tue, 5 Nov 2024 20:55:09 +0100 (CET) Authentication-Results: in-2.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=redhat.com (client-ip=170.10.129.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=david@redhat.com; receiver=lists.linux.it) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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-2.smtp.seeweb.it (Postfix) with ESMTPS id 48A18658FE1 for ; Tue, 5 Nov 2024 20:55:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1730836505; h=from:from:reply-to:subject:subject: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:autocrypt:autocrypt; bh=Kk0Uddu4MO4qu1GKFPDAlKgk8Zk+ZoUnhpwUjqCgdZw=; b=C0AWKdI0HtN0qw9jA9eSxWW5U2lgDrqrSYti8chOI9lEuQHu9l0QM+jam3hFyuxzF4Na9I hEw9IeFQFnK1fD2Ri1uagZyjN/Cqg+386C8Z+M9AhCCMoXa+6S6LILLLjwsaITDS23yPFo cHigvz6yzV9wEBvuG7z8QTBnuZWpKLU= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-381-mneCwD9dOlm8G9W9NKy1Vw-1; Tue, 05 Nov 2024 14:55:02 -0500 X-MC-Unique: mneCwD9dOlm8G9W9NKy1Vw-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-43157cff1d1so42926915e9.2 for ; Tue, 05 Nov 2024 11:55:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730836501; x=1731441301; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Kk0Uddu4MO4qu1GKFPDAlKgk8Zk+ZoUnhpwUjqCgdZw=; b=C46bhSmHROLi+p6z0ubz8CUDZzbL5WZ4/9QIvPIuA6NVsyS+SgV4W7EWyroO0agEow OqWVIgObAr44XhOMe1bQTHfwNmCxYB84Nk6IY9wmI2nS/ya14198OMuo8zL/U/vFr6Xe 9QgDw9w+396ER876iyOqqXHM9pXuzpmZJCRQM1BZ5KrtlxDCUmZipWKjaSXaTQLNxGW8 GKZPGlgUI1Q7Qw+EKlwnFtKnPNFdoOjfr9hE4PrzrgEnqg5XJTKPz4lMdIu4fqFl62r9 n3FHU2rtIgGYq3ci8/74J1o6UePY5FRTbsRrqlDaCtHi5incpAu31luNcnB/QNpP6Hah nl0A== X-Forwarded-Encrypted: i=1; AJvYcCWudjLqmKLTuku4cRz6AkA5xEfQbJdwgPeEsNBm7yXNBu9i9ECBsx1d8hbEC710JyLW9zw=@lists.linux.it X-Gm-Message-State: AOJu0YzDA03NsnbFnw/XHh89z66bc90EORPVdO0Ne0w7xO6etEoSw1YX cJ02AzPJyInxFGld/V6bwjmQc2+GzWAkegMM+IUiW5lJ6AMpZDjojRyeMgtrwRmVLCNi8H6vTPa 5OalXLJmJXusxTq7HF9vZjXIukTfuEbxzz6VPoUsd25GDrfpW X-Received: by 2002:a05:600c:1c26:b0:432:9fdb:1490 with SMTP id 5b1f17b1804b1-4329fdb1571mr49170815e9.7.1730836501427; Tue, 05 Nov 2024 11:55:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYtA1PO8owb9R5lcnUv6sTLbx7IC7BAuTOVoGviOrgeiHcPRFc85BGHcrnkFOwysv61UAqoQ== X-Received: by 2002:a05:600c:1c26:b0:432:9fdb:1490 with SMTP id 5b1f17b1804b1-4329fdb1571mr49170705e9.7.1730836501023; Tue, 05 Nov 2024 11:55:01 -0800 (PST) Received: from ?IPV6:2003:cb:c73b:db00:b0d7:66ca:e3e9:6528? (p200300cbc73bdb00b0d766cae3e96528.dip0.t-ipconnect.de. [2003:cb:c73b:db00:b0d7:66ca:e3e9:6528]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-431bd9ca7ebsm229337565e9.42.2024.11.05.11.54.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Nov 2024 11:55:00 -0800 (PST) Message-ID: <540c9f18-bf62-4bcd-9481-0b4b9ce1d102@redhat.com> Date: Tue, 5 Nov 2024 20:54:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Petr Vorel References: <20241104153404.21273-1-akumar@suse.de> <20241105104003.GA1573194@pevik> <5667b9b5-c19e-4c00-8fa1-176ae7e1176d@redhat.com> <20241105180541.GA1592518@pevik> From: David Hildenbrand Autocrypt: addr=david@redhat.com; keydata= xsFNBFXLn5EBE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2TAkFnMEbo9Zu9w7Kv AxBQXWeXhJI9XQssfrf4Gusdqx8nPEpfOqCtbbwJMATbHyqLt7/oz/5deGuwxgb65pWIzufa N7eop7uh+6bezi+rugUI+w6DABEBAAHCwXwEGAEIACYCGwwWIQQb2cqtc1xMOkYN/MpN3hD3 AP+DWgUCXw7HsgUJEqkpoQAKCRBN3hD3AP+DWrrpD/4qS3dyVRxDcDHIlmguXjC1Q5tZTwNB boaBTPHSy/Nksu0eY7x6HfQJ3xajVH32Ms6t1trDQmPx2iP5+7iDsb7OKAb5eOS8h+BEBDeq 3ecsQDv0fFJOA9ag5O3LLNk+3x3q7e0uo06XMaY7UHS341ozXUUI7wC7iKfoUTv03iO9El5f XpNMx/YrIMduZ2+nd9Di7o5+KIwlb2mAB9sTNHdMrXesX8eBL6T9b+MZJk+mZuPxKNVfEQMQ a5SxUEADIPQTPNvBewdeI80yeOCrN+Zzwy/Mrx9EPeu59Y5vSJOx/z6OUImD/GhX7Xvkt3kq Er5KTrJz3++B6SH9pum9PuoE/k+nntJkNMmQpR4MCBaV/J9gIOPGodDKnjdng+mXliF3Ptu6 3oxc2RCyGzTlxyMwuc2U5Q7KtUNTdDe8T0uE+9b8BLMVQDDfJjqY0VVqSUwImzTDLX9S4g/8 kC4HRcclk8hpyhY2jKGluZO0awwTIMgVEzmTyBphDg/Gx7dZU1Xf8HFuE+UZ5UDHDTnwgv7E th6RC9+WrhDNspZ9fJjKWRbveQgUFCpe1sa77LAw+XFrKmBHXp9ZVIe90RMe2tRL06BGiRZr jPrnvUsUUsjRoRNJjKKA/REq+sAnhkNPPZ/NNMjaZ5b8Tovi8C0tmxiCHaQYqj7G2rgnT0kt WNyWQQ== Organization: Red Hat In-Reply-To: <20241105180541.GA1592518@pevik> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-Virus-Scanned: clamav-milter 1.0.3 at in-2.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH] crypto/af_alg0[13]: update tests for additional possible errno case 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: , Cc: ltp@lists.linux.it Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" On 05.11.24 19:05, Petr Vorel wrote: >> On 05.11.24 11:40, Petr Vorel wrote: >>> Hi Cyril, Jan, David, > >>>> kernel behaviour wrt checking invalid algorithms has changed [1] [2] >>>> updating the tests to address the additional errno case. >>>> Related discussion on the mailing list [3] > >>> Looking at 57ab2160c0 ("move_pages04: remove special-casing for kernels < 4.3") [4] >>> recently reverting errnos for 4.3 d539a004dd ("move_pages04: fix zero page >>> status code for kernels >= 4.3") [5] please double check this already merged >>> change. I still believe it's a different case thus merging this is correct. >>> Also Eric is suggesting this (I should have added Suggested-by: tag for him). > >>> Maybe we need some rules to clarify when we are ok with different errno and when not. > > >> Right. > >> Regarding d539a004dd, we pretty much hid kernel bugs: behaving differently >> than expected+documented. > >> If the kernel starts reporting a different errno it might be a bug: user >> space might not be prepared to handle that. Or it might be expected, because >> nobody really cares about the exact error code. > > I don't remember last time anybody noticed, but sure it's important. > > FYI an example where errno change was not important enough was for bind, where > commit 0fb44559ffd6 ("af_unix: move unix_mknod() out of bindlock") did some > fixes and a side effect was that errno on an attempt to bind a unix socket to > the same path twice changed from -EINVAL to -EADDRINUSE [1]. Bug which that > kernel commit fixed was way more important than changing errno [2] (and > therefore backported to all stable/LTS mainline kernels [3]). > > The attempt to to fix errno [1] was just considered as not needed. But this > might be a special case, because both errnos were listed in the man page, it was > just matter of priority which of the error checks was handled first. > > First attempt to fix the affected bind03.c was to detect kernel version [4], > which was wrong (some versions in between did not get the fix). In the end it > was possible to adjust test to get always expected errno regardless kernel got > 0fb44559ffd6 backported or not [5]. > > Back to move_pages04. Jan wrote [6]: > If people find it too noisy now for older kernels, we could add .min_kver = "" > to the test. > > I guess nothing happen, because 4.3 is way too old (the oldest mainline LTS kernel is 4.19, IMHO nobody tests 4.3 kernel with current LTP). Yes, likely. > > But having a written rules 1) when we care about errno change and when not and > what to do in both cases would be useful. Agreed. > >> So if a test starts failing, it's definitely concerning and needs a closer >> look. > >>> I also thought there would be some rule "don't hide kernel bugs", but I can't >>> find it in the docs. > >> That rule makes sense to me. > > I was not clear. We follow "don't hide kernel bugs" (at least Cyril mentioned > this several times), but I haven't found if we document it somewhere in doc/ > folder. Ah, yes that's what I meant: this unofficial rule makes sense to me :) -- Cheers, David / dhildenb -- Mailing list info: https://lists.linux.it/listinfo/ltp