Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5619181ybe; Tue, 17 Sep 2019 10:46:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMOwdw9C5uxVHZQj7lR3SpglU4iJKimndq1+uZatATx09r+pJBBhdgPolpQStx35Yu2PJN X-Received: by 2002:a17:906:944b:: with SMTP id z11mr5736391ejx.46.1568742379810; Tue, 17 Sep 2019 10:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568742379; cv=none; d=google.com; s=arc-20160816; b=cHvqNzysBnvMZhMDWF/52qw3xBfOZaM5SN/OzLi25cgehEEOwGqEKX6/kckuLoRtUM kh7vRWlwak/37gYr4hgvEeILy1+U/o/iu0ioaDf96zjdzCcdwkSj0RSNeWVe8MQ83PYS 1WiiVSd8oPcxvT3/IezrkeUPwahytf4G4xrH1ekm5VdWIo2QplGeUtWYNEdDwm2osi+K wQyQGwDoKBhpm2sYHJ7XQOygEs1MKBlthdDJ0VIXSYg/41mGxWpfXp65ql4ZcvtI9CP0 ATQKo2IZd1JygJsau83+RBFXRNUEa44QhLb8l0YAH+a8GxdOqseBcyily75c7hGUPi+0 Hd1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=dPYa6rjY+iCeqbQ9qdyZyWAC5y2DotbWu7ys05ke8q4=; b=y7d3WhRaDS/UvmPahiDXkkzGwKGgGFHL9J3sBOtqrNoiV0z9i3nnkz0XezkTMdXd4s hY1uee7tvqYKY43cuLbOWn2ZqnR/GWSiUwCwSGPDYToJ4hHgJG0+VxQ77s+RCg8cAXEl JN3o+NdDQ5srQ0wJz4MI3A6sf7UzIILYZew3LfXR2VfZNqB8Bna65mv3/XjXjR/BaFjh 80FjpcyWknfO0JtUUZkS7mumfg5pxylPuKHB4YCUbZiQCXBHFk8prEz1ZkENaDJ2BP53 KzASXT55HgkCQIx1t8DOQx4/IltswRNYZseOzAVAFMzbRnFIY5e+HHpzyE/Num6A2VRh N2hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gBWa9t46; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c51si1828232edc.317.2019.09.17.10.45.56; Tue, 17 Sep 2019 10:46:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gBWa9t46; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727255AbfIQOJu (ORCPT + 99 others); Tue, 17 Sep 2019 10:09:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:50184 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726726AbfIQOJt (ORCPT ); Tue, 17 Sep 2019 10:09:49 -0400 Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6A41D206C2; Tue, 17 Sep 2019 14:09:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568729388; bh=KFwph7a3NLAqJ2SmDpmG/ijd2kzcKrqWVg3/D/v5zMg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=gBWa9t46COVeM8W9Fm//z3KOlRGJXJX0JfFItum33ty5Nwpo70PVSms1rMriQ+aqI nSuFZ18C7sL7jpZqrtXSFF7AYwBjktC4moA+ToyjF57OoNBv44HonkFxas/tNTW/Sc uMShTXMt7KHGNm0DHKWvaJGZERSTxzML7g32JFKA= Subject: Re: [PATCH] selftests/net: replace AF_MAX with INT_MAX in socket.c To: Marcelo Henrique Cerri Cc: "David S. Miller" , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, shuah References: <20190916150337.18049-1-marcelo.cerri@canonical.com> <212adcf8-566e-e06d-529f-f0ac18bd6a35@kernel.org> <20190917071222.6nfzmcxt4kxzgpki@gallifrey> From: shuah Message-ID: <2a2f3436-4e10-5c7c-3e69-a46491b10960@kernel.org> Date: Tue, 17 Sep 2019 08:09:36 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190917071222.6nfzmcxt4kxzgpki@gallifrey> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/17/19 1:12 AM, Marcelo Henrique Cerri wrote: > So the problem arises because the headers we have in userspace might > be older and not match what we have in the kernel. In that case, the > actual value of AF_MAX in the userspace headers might be a valid > protocol family in the new kernel. > > That happens relatively often for us because we support different > kernel versions at the same time in a given Ubuntu series. > Right. This is an evolving use-case for kselftest to make it easier to run on distribution kernels. > An alternative is to use the headers we have in the kernel tree, but I > believe that might cause other issues. > Kselftest is tied to the kernel in such as way that you do need to use the kernel headers to compile. Do you run newer tests on older kernels? Where do you build them? What I would like to see is fixing the test to run on older kernels and not changing the tests to suit older kernel needs. This definitely isn't a change that is good to make. We have to come with a better way to solve this. Could you please send me the errors you are seeing so I can help you find a better solution. thanks, -- Shuah