Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp22511lqj; Thu, 11 Apr 2024 08:53:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUYlbCstrNY4kagXa1L9oKxxQF12qMbLVvsxQy+VizPvZA63iVY/BZ7nYobePvA/38rtXvzhSagkTbvkdaCo1DnPgcXZ7LEUdMzF0v+Q== X-Google-Smtp-Source: AGHT+IGyxEWhq/LtItKIh55LVlL6b6zWUWglR0NPi7db1lwF/hqQieeEMTgECG6MRwQpWIxcwRYB X-Received: by 2002:a05:6a20:734e:b0:1a9:48b9:aab1 with SMTP id v14-20020a056a20734e00b001a948b9aab1mr282601pzc.16.1712850827411; Thu, 11 Apr 2024 08:53:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712850827; cv=pass; d=google.com; s=arc-20160816; b=sEawcIXIEtGRKY2raqLF2RDlXuVcWKF/D8lWIp9KtFzkDI4Ap0SeeHesiiKoBhSPub XPEWLy14hxkBfM9JsTDx6JK8+JCStFq9UtS7CjZcRbs6kmkAOVW8Fu2/2+grqcA+QBCM N4eblCiwNRdZD3pn76XAdn5xpIW3FrqO51NTiuJ6a/eaz6SIX5MMw3Jnm5ScpMOcRtlh Yw9gAzChu9Z2q3GYnUWUq6FfSUaLz8KEAQg1aongIIHprMayWWSlVacsF7XB+YJWtgiO jTqXrUVvCzUAWM5kr4/iKRtZzxeZErkc/yrG4JmZFAOsgD+gDhlfccE2k0iE84HjOhK7 gsHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=WWEKgvL/ZOpKjtTgIwws6qhc3HHfgaLuekbpj/jm1oc=; fh=gIz4AkbpFLT5J/TG+hPms6fHekQuywaML+ToIhrH3Rg=; b=umzGU7yqVRIkiJwzhVMhOaXrMrPQY83+lSAHbcrKN/n+3RhEBczR3s80yFSjI9bCge HIg6p9nN0Fh13RcI/ALmMG9uo+zb3kTMSTcXQ/TIt/UeRuF3Tsb89c6iwgs/YPi8ZjBc GzJshGJiv8fXflXcPiQRTypbYcrcA4uXDPQTNXWnWSGJF5Q3+lVJiXsZUQABcoJdmOeb Eg4RIIlUdYfAF3zn41Iwn1u91K7qYniQ0YJNzIQBIxqqmb60s+9w3Ni3EcAxSjQG0Cw9 J7aS4klImmouM8wGvLfv9oCRjaRYc7EhRVNqD+17wQyDXwXkBAFgE1FDUujPdCUKLfY9 xFVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=DfIUfbjf; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-140826-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140826-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s8-20020a17090302c800b001e41c8728f2si1472256plk.1.2024.04.11.08.53.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:53:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140826-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=@google.com header.s=20230601 header.b=DfIUfbjf; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-140826-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140826-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 187C128135F for ; Thu, 11 Apr 2024 15:53:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C344A8595B; Thu, 11 Apr 2024 15:33:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="DfIUfbjf" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 7547D85281 for ; Thu, 11 Apr 2024 15:33:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849616; cv=none; b=DgP0HIIsbRV4Qt69JFfvz0e78nq1BvkLsUGW/fnmEjPuUah8Or+TFadobJt5IC4aeNTz57Tz0vOMi8Y5usLIZh/V1Bkv7l5KBmWj+UKgFv1/HatseFQjnjbTBlXB3hSzEu+Pcfun8+xatcWC29vNUZ97yx7jMngLfgSIQPbCxdc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849616; c=relaxed/simple; bh=PbLspCwu5bkgUdK2U9YWWFJDaTS6qgXYBAw1NQGhQTc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BONGxgHqalKAlYvGTB5G9xbCR5L/TACD0weWnxdU3LKctw6FT7xk9vJSTGqgURk32u8GBZMuvpEAqWQPokUJOTPna3Q1C0zkcbaGrwMuGFGZhTa3lgHY/fNkLkuse72q6BwhV+dMrqbnt2kaZcoXPDkVQqfxoCwr4mtG/D2G13k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=DfIUfbjf; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-41687826509so93545e9.1 for ; Thu, 11 Apr 2024 08:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712849614; x=1713454414; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=WWEKgvL/ZOpKjtTgIwws6qhc3HHfgaLuekbpj/jm1oc=; b=DfIUfbjfC35idweQK7LNh05x+QHPEk6q6gaQAtg8Lbv75BznVDCQI/yKui6fvLDhLi OLVB9sI1Zv0VqZvTly7QyiVTUpfXd7w6zyqj8DAkg8tH3zVgcUTLakzL2Wo6Stl1g+gi cX8qVz+xEwD0OX10qn0xx4cQJ9mKxvPNy7gKino9urfmR6OHCXJNeX5RiUkPcY2ArUMV bG7rjElKIj8ePleuSlqfZ6VUOMLiSXTeGdzNV9u9ME/kQSQrzkwpIGqGNhSq6BdjvYw7 PnTJRuUz+S7DMwSURQMFv5adDi2glOl6Fe7fSxIH3+pcNfzd2Fb/KNXF+ABq/rpGsvQ6 vH4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712849614; x=1713454414; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WWEKgvL/ZOpKjtTgIwws6qhc3HHfgaLuekbpj/jm1oc=; b=IoJJMzozEZwYhyrjneG5hboEFUCgIEfGwGTbC10LhYJ9cpVR/y+uZ/bC4sUQbaUVC6 D3QSOLp354hI+dU4xtCezhEIOfNbBcEdWEVMiuzc8/o1lpOEdwQB+wnq1BqDf6hZm2zb kRjfU/3bwC42PdxYuvhJwVcZ9a+FiQ3uKMdMRCYHUcuMJNyJBwOn2Sp5xsc6/gCc6X/S /CJwtpsr8WX1SgDlzyE1kTwwC+uoaL0quWeEOeAuv5HFcRCvO1+T65iFbZAcsGWaHjQo QDPfqkfN7eUFstHAw8dtb4Skk+3N78bwFr/QXE9kOmHgxSZbPrKoo04kCneuSHWKBi7e LT2g== X-Forwarded-Encrypted: i=1; AJvYcCVE8QWp0AGycoyddYzj64fv3s+oQXfNZpG0VzOjwXMJwvW2vWzlFbgvStpZmn75joB3grIOB8MxCM6b2SoDR3Xa87xJiTr0JewwLfb8 X-Gm-Message-State: AOJu0YzydrS+LulNYifWggoRfvQ6LmdMJx8gNXhs8cnn2aNfYaQMaSsb 4cmq4sSJWjEXnwjpe3axr6foY18pfCcOa1jAc/QU4BEZYS+srzDaeQjCRqq4JQgN9Lzg0fFphRw +D+94nhPl6BaJS85OLFIOr4QQeZdFi/67+ls= X-Received: by 2002:a05:600c:3b93:b0:417:3f9e:5cac with SMTP id n19-20020a05600c3b9300b004173f9e5cacmr177314wms.3.1712849613449; Thu, 11 Apr 2024 08:33:33 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <87sf02bgez.ffs@tglx> <87r0fmbe65.ffs@tglx> <87o7aqb6uw.ffs@tglx> <87frw2axv0.ffs@tglx> <20240404145408.GD7153@redhat.com> <87le5t9f14.ffs@tglx> <20240406150950.GA3060@redhat.com> In-Reply-To: From: John Stultz Date: Thu, 11 Apr 2024 08:33:20 -0700 Message-ID: Subject: Re: [PATCH] selftests/timers/posix_timers: reimplement check_timer_distribution() To: Mark Brown Cc: Oleg Nesterov , Thomas Gleixner , Marco Elver , Peter Zijlstra , Ingo Molnar , "Eric W. Biederman" , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Dmitry Vyukov , kasan-dev@googlegroups.com, Edward Liaw , Carlos Llamas , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Apr 11, 2024 at 5:42=E2=80=AFAM Mark Brown wro= te: > On Sat, Apr 06, 2024 at 05:09:51PM +0200, Oleg Nesterov wrote: > > Without the commit bcb7ee79029d ("posix-timers: Prefer delivery of sign= als > > to the current thread") the test-case fails immediately, the very 1st t= ick > > wakes the leader up. Otherwise it quickly succeeds after 100 ticks. > > This has landed in -next and is causing warning spam throughout > kselftest when built with clang: > > /home/broonie/git/bisect/tools/testing/selftests/kselftest.h:435:6: warni= ng: variable 'major' is used uninitialized whenever '||' condition is true = [-Wsometimes-uninitialized] > if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor= ) !=3D 2) > ^~~~~~~~~~~~ > /home/broonie/git/bisect/tools/testing/selftests/kselftest.h:438:9: note:= uninitialized use occurs here > return major > min_major || (major =3D=3D min_major && minor >=3D= min_minor); > ^~~~~ > /home/broonie/git/bisect/tools/testing/selftests/kselftest.h:435:6: note:= remove the '||' if its condition is always false > if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor= ) !=3D 2) > ^~~~~~~~~~~~~~~ > /home/broonie/git/bisect/tools/testing/selftests/kselftest.h:432:20: note= : initialize the variable 'major' to silence this warning > unsigned int major, minor; > ^ > =3D 0 I hit this one too yesterday and included a fix for it here: https://lore.kernel.org/lkml/20240410232637.4135564-2-jstultz@google.com/ thanks -john