Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp21149lqb; Tue, 16 Apr 2024 07:47:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXo95msy9R1iHB2R0dbpzG1d4PR0/0JqFrAtil8DN4GSGss7XtJxur+gdnBxeocEW56RqEqtARzfw3qC4nhEbYkvdIN+ALboUSc0L+LUw== X-Google-Smtp-Source: AGHT+IGxDTxls21Vh+RzbmaZ56cq1pm4NTe7XvFlfWl8KEw2fFGh71x68Cm0XCYDUvh5JByaW7rP X-Received: by 2002:a05:622a:241:b0:436:a3c2:e3b4 with SMTP id c1-20020a05622a024100b00436a3c2e3b4mr12532473qtx.5.1713278837402; Tue, 16 Apr 2024 07:47:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713278837; cv=pass; d=google.com; s=arc-20160816; b=fDtkap/ZvFkLDG08vmY5vw9QeVtFE6g0+n1F0MZ47eMkCMwcsv/CnGWMPw7KLnRR6p jMC+/oXhB9jTPl4VYay2T7dzzv/tjHNHbob6rEt4i7Fg1FYmz0xTmcp3PLOJDL2rBa4e 4XxvkaBmFipC70YF+NOjMRCj1m+snuymJZZtNO7qmXECdPIpjbVPaAart+i5mTU4XbTp NrkdpzKaCvCmcLyUoHvJ2TOxM2koTHMoZfgeMxnw/POM9mh3k6ep39s9bWtvxkoiH2US Jgvf4ikM2mSGbhq0Pc6qB62DYQ9n54xiP8GEZ/cm92ZuIcX28Wy7wUDQnLbcSDAxgIKN KOdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent: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=3TxHZ4ZRaEXdkE2iyGrPF64b8dJ88F1bx4hw6cwnxfY=; fh=34NfmAEzJOJaceHohYxDFsWIDaICnelwXMlFcm2Aay8=; b=Doh2km08oXOteMpyVeTGuXLTGnT+PUk3po73bYXoI/O1f2uEqSSI9Rzsldnar1w5wK +utccA/6pQkRkoSebyymuAstKsopPJtXylRu4NkRemyhKRtHV8+aQVkROVVmziPHbWck dcsimYiZgj7/Pr1cYFtYNrMIZ5eXJX/7GBxL4Y4oTa7bIetqjnqyMrlG7/5ZyWSVI7PN qfvlIiBV02ndBk1/F/SyqcmqzJSVYHvIrjGyO2PAU5Yhkx6g47t2P7+aICEBLIyAkAYb 0NBZ61Pw5zuviTGqk85WcM+GSo4ox50AmoMBYCCf3n9NtVAmSbTrpkuSANeVfdJeO0BB Fq0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AjTq+sJg; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-147052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e22-20020ac85996000000b004370b00494fsi4761317qte.479.2024.04.16.07.47.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 07:47:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AjTq+sJg; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-147052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5D99E1C22A1C for ; Tue, 16 Apr 2024 14:46:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E47B412EBE8; Tue, 16 Apr 2024 14:46:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="AjTq+sJg" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C75DE12E1D9 for ; Tue, 16 Apr 2024 14:46:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713278778; cv=none; b=s8CjX6ECOwZMkCx1QRJaGAmbglK7bnBiZuhniP7b+yEYnAMWRLCTWwIiA1BegHJPrYfp5k/0E32MWlaiJXTxOA/R6ouQjQavZrL0IKfFY2GLSthdr4RUii6JOElhVM1ad/hxPrse8XhVxDLlM7Qg+w6pVh5hZo0B9uHcy7HqRGs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713278778; c=relaxed/simple; bh=3TxHZ4ZRaEXdkE2iyGrPF64b8dJ88F1bx4hw6cwnxfY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=o4V95eev489HF8RTrfzhCtCIyyPQa3AosGqPaPv7Zwyev7a5p5KXgB861+BWPwAMAYG6wlz8/Ex4IlAe4raoLU4hArh8FwcMb6TpWo/9MU8qD0CKtN60+X14OUH4Tdv1GUAJ/r8wQ8M+suUmbwCZfyp2th4SploruJnZIu3sty4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=AjTq+sJg; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713278775; 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: in-reply-to:in-reply-to:references:references; bh=3TxHZ4ZRaEXdkE2iyGrPF64b8dJ88F1bx4hw6cwnxfY=; b=AjTq+sJgHbuUD9G3dUvNTkEgFhHKXYaroP+Z+HnhYsfUYSUeLnbAKftB/CiCtGF1ZOrJMU w85IcvfRbUT3o9Lx6Ib3SyPXBQksjRIsbpxz8w4qLaZJrumA//CkenV6pzzO0VA/0cqYT8 KEXz0IANAZ4oQrX0YMoZhNG+GFm4xnE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-691-six1j7VsNiC3wbwE5cj3Qg-1; Tue, 16 Apr 2024 10:46:11 -0400 X-MC-Unique: six1j7VsNiC3wbwE5cj3Qg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7DA7D80591B; Tue, 16 Apr 2024 14:46:10 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.226.182]) by smtp.corp.redhat.com (Postfix) with SMTP id 3BFB51C06667; Tue, 16 Apr 2024 14:46:08 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Tue, 16 Apr 2024 16:44:45 +0200 (CEST) Date: Tue, 16 Apr 2024 16:44:38 +0200 From: Oleg Nesterov To: Thomas Gleixner Cc: LKML , Anna-Maria Behnsen , Frederic Weisbecker , John Stultz , Peter Zijlstra , Ingo Molnar , Stephen Boyd , Eric Biederman Subject: Re: [patch V2 07/50] posix-cpu-timers: Split up posix_cpu_timer_get() Message-ID: <20240416144438.GA17990@redhat.com> References: <20240410164558.316665885@linutronix.de> <20240410165551.376994018@linutronix.de> 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: <20240410165551.376994018@linutronix.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 On 04/11, Thomas Gleixner wrote: > > In preparation for addressing issues in the timer_get() and timer_set() > functions of posix CPU timers. Cough... I must have missed something, but posix_cpu_timer_get() doesn't look right with or without this trivial patch. It doesn't initialize itp->it_value if cpu_timer_getexpires() == 0, this means that sys_timer_gettime() will copy the uninitialized cur_setting->it_value on the stack to userspace? Oleg.