Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1607647lqo; Sat, 18 May 2024 10:19:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQBEMCTphfj3VP3JTcydml6rAHmU1CSkbKCxZ2r43JJ/fjHw31YrezRFxKuCiWPvUCCMl1ioRfreWraOVCH+enPFstRx6OQoMSuMr6UA== X-Google-Smtp-Source: AGHT+IFIfy0q/njggMnm7w9H01JdqmIjrUGAYb+hcZp/5W1kzxhhwoVGaqR97oIBsDgmabVZPUMI X-Received: by 2002:a05:6a00:98b:b0:6f4:7297:7bd with SMTP id d2e1a72fcca58-6f4e037d1c7mr25403723b3a.28.1716052746410; Sat, 18 May 2024 10:19:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716052746; cv=pass; d=google.com; s=arc-20160816; b=CJx6ulvqwXM/6wOcALurnSO6To4DqAB0jLfofVEPkO4fKbKdsGshAGNV5tVvAnUHaO JKrjihlnbhSL6przmXd005WKVUCax78RXIFcFlkkTC+t6tKkWZGJ4FPm1sJ0aUGJzoe7 nrbMYksNY8eLyKJmhIg0WuUS31byoT8WoK3Y1/hUF/IzNwkLJ90sM8AMd1JHcivoFuux ym/WTae+P54g6981ITGjAObArE4STZ56HZGKZOvcrr747C2LwTv9RgwFvcx6SgE1AWu4 NxFXYkVULtXkpkQq/adxaoFUnuEKbO8F26qyQcbS/bCIniMuqVJJ9+qz4H+4FToyUNqc QuJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bI35mSpFGv5azuf3W34PAy5g+Nwe9xTUDOP2VBYb+qw=; fh=M0bloI2vzuAM8Sl8TgWFRxSzzu7PP6QyYLucMZaRJ5Q=; b=CBTRdTUZbH/kN5E1mwb7F8e58waEvJ/klo6JFmXy+P08EhPmOgkuB2+OvDF0g2csO4 4JgImukHy7heIUPrYafJiuvlee9fPZOIXsy5e5MGqPPb+qPhDPQKvpB5JVKTeUy/JEUV vceC4qxjxG6f0yXPBILmlLAHLY0hl4ZIMTc2gUSQmtbN5VGe9WeMrF7wlAhksqMeA2U/ LpmWjRWIbuatu4KRsVVbeZLGo4wH4kNHoFzlSqmOUI6z9tLdvH+penHoZVFXJbwkDuGZ exlAqRles4Q97mNvHL506maKyOFs93Tw12it46GtToKnKlesVFQQmyG0m20gonR+lyoS g2Nw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bLvtPKtf; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-182920-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182920-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6619970a607si2580606a12.178.2024.05.18.10.19.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 10:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182920-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bLvtPKtf; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-182920-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182920-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E56C3281CF3 for ; Sat, 18 May 2024 17:19:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 595AB171B6; Sat, 18 May 2024 17:18:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="bLvtPKtf" Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 4127F266AB for ; Sat, 18 May 2024 17:18:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716052734; cv=none; b=TQ2cOQfZSg29G2d4LnkHIS2Pjx5ZEUR8kNV3xfQEivgaIJ/2p/i6HqVzARSAMdS9JuxwGkZw1U4nQKpeFQ5PZqxlVWZkKf2KixIbNn+5wB2/YvKh/ebLxKUXCLKaV9GGDy/cPxk6Xkdj5CQG2CLG1AVMARs6j0F0FOr+afBD5X8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716052734; c=relaxed/simple; bh=//8QV5TSiMfT14T+L5Dni8yVPWQI23EOE8lPHpMRkQs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=A/i/iBBxhvIFCW7oEiqrIKOa5B/Bgpu1P3oCOTGdwGghOYb2TO05jdMizYsv484oM63k6Qz0REKz/mJ0W4cZV8TSb+qGZZQrPEsyBq/1k+i91gTSZM1HDZcpUt0nZlMrhZtiilIlbXuGVDPtGGIy+mBTS0mv3klCGf+UEMfTG5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=bLvtPKtf; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1e651a9f3ffso37105505ad.1 for ; Sat, 18 May 2024 10:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716052732; x=1716657532; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=bI35mSpFGv5azuf3W34PAy5g+Nwe9xTUDOP2VBYb+qw=; b=bLvtPKtf7AAWUQL7+1BKfBQFilZk/h/+9MqhYx3/ShuBC/VbG7djvHzsS5IkURC66Q 01vQjZEIk0vVLgNCnqrW31X87xGfJIH8Zb0RGjsovgioPJUSOqmnKHV3pz4gKKRjv+vk ORI+VxKwcJWNGn1ZIf67KYxyKfGxIkGDJCZMk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716052732; x=1716657532; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bI35mSpFGv5azuf3W34PAy5g+Nwe9xTUDOP2VBYb+qw=; b=A24blj21kQaduTZx3rtav3Jxy36x54/ocn+7Qv7sSHAB8uMieFRLYToDCC3dhSM3bx LaTCi9MQ2izIwMc6E5MD06cCwctdLRlAZcB2DvCG9LsFHuU4HROLa1TxDZ7qWr0z+cgq bLpP42+V8kOhDMzpzvqfpSN754baLlX8RIFogBkg4rrhiW0uH/tr1vah9qgcEE7PW+O9 vWqGiQSterjmNYO7iIJhOwkQJ724KboLaJaz0pne97qRu3KxH/tRXOrZ6bpIG8ygrf6g DVf0/aBdBeMeav691E4R6QOBLUb9nXtQD5sVOeJFVHXp8831SEz8fWMWunw/ER5dRQoZ G4IQ== X-Forwarded-Encrypted: i=1; AJvYcCUy0IT87S3tCwfSkAxGrnfXGocPFuHV6jLw7gPB3gXwM0Gn/qUuyw+eUTDUqVJ2KlzaCu6VKoLSMNeDZkVdwIk5evbE2sejcaojlGFO X-Gm-Message-State: AOJu0YwIo55Pzq75WSaRCtcJUO37fJCU1sZn63d0TldziHYwTHJBTcfx 2lXBta8GjC+MdH/V0gPs5YtSs9ewB6GXv+9FL7wLsJW1W36//DlqeqgNvi39KQ== X-Received: by 2002:a05:6a20:5602:b0:1af:cbd3:ab4d with SMTP id adf61e73a8af0-1afde120e4dmr22666060637.33.1716052732590; Sat, 18 May 2024 10:18:52 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f4fff45ce3sm11294743b3a.197.2024.05.18.10.18.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 10:18:51 -0700 (PDT) Date: Sat, 18 May 2024 10:18:50 -0700 From: Kees Cook To: Masahiro Yamada Cc: Andy Lutomirski , Will Drewry , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandre Belloni , Benjamin Tissoires , Christian Borntraeger , Claudio Imbrenda , David Hildenbrand , Janosch Frank , Jiri Kosina , Shuah Khan , bpf@vger.kernel.org, kvm@vger.kernel.org, linux-input@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH 1/2] selftests: harness: remove unneeded __constructor_order_last() Message-ID: <202405181014.B84D979BA@keescook> References: <20240517114506.1259203-1-masahiroy@kernel.org> <20240517114506.1259203-2-masahiroy@kernel.org> <202405171621.A178606D8@keescook> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sat, May 18, 2024 at 12:29:00PM +0900, Masahiro Yamada wrote: > It will be set to "true" eventually, > but __LIST_APPEND() still sees "false" > on backward-order systems. Ah, yes -- you are right. I looked through the commit history (I had to go back to when the seccomp test, and the harness, was out of tree). There was a time when the logic happened during the list walking, rather than during list _creation_. I was remembering the former. So, yes, let's make this change. As you say, it also solves for defining TEST_HARNESS_MAIN before the tests. Thank you! I'd still like to replace all the open-coded TEST_HARNESS_MAIN calls, though. -- Kees Cook