Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp277325rdb; Thu, 1 Feb 2024 08:14:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1o09u3RIBfcs4LxsCpCYJ/9iK9MT8xbml20Vyb5Z1X0/tPQEJmbNsgNWYZSCX3PwJax7r X-Received: by 2002:a05:6a20:4f99:b0:19c:9b3c:cdb3 with SMTP id gh25-20020a056a204f9900b0019c9b3ccdb3mr2228711pzb.48.1706804079699; Thu, 01 Feb 2024 08:14:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706804079; cv=pass; d=google.com; s=arc-20160816; b=CZRXQe/Nv+ALroBT99NgUGsoM7yL+XNCd2wcPs+LDZyeQ/VWEqUPHAG5gKE+sDb9Kx mtdgiSlX/LTjLIJnA2c2veO3HESRdUXX0UtIKs8jw8+lgwB/hgG736i9uxCLeCIToegU Izpm2GIZIzO+TqCu7GDSDuJ5LCIvUpqiqEPLhlfT+Eek2uZcvqorawwzy+M3Ixw1Waab Ku49oThtYm8JN24JjsESFgGRzf0ifALHqI0APrJVc/rV+rtnYQiuHrTdM0FGAcEmNBRq j5r/TYZx/1pUOcCxGouCX+ImTWcM+kogOpisbiImjgvrk3VuztWY6Uhm5VFA9Q3OjG4I F+yA== 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=OZywLTntIvc7An1/li/OH/wesSrdpkXuVCqlL0sCLto=; fh=o8ticAhdE8UtgOeS2tsWVMa/7NIOH4EJHIei+3OnKVM=; b=lngHDU+8nycfsbkDt+5aFK7wWHXmtn6QkswUzkcjkFs3x2hTZAdZ8G7X3QBKbU2MBK Q8gYhoTLkUVpIYVPFRuvpXHILb71YxWU0hqRTHelD8edjxNs3ZDCfjnmePxK5Lcc4cgq 2/OevKtj8v7BvFynqlXLr4+uwew3sLwYNPQC/XoEiSYuLSlVX2eCZzP/H+dqjzRfEGfY UD6tIMVREdIuVZsq7zaTbiDAxQrtxAUahyG8Qtjes+8ETRV01x9JPNH9X5eEZUlYpSg7 tsYioWeWLUCs2SdJXPdhjKHKE+WX3woUnoA2KakAwauFzQkPm2X2o/7Qcv6MtPj+1D5f iQ/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mZeVk456; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-48427-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=1; AJvYcCVob+jcO2syqf/5/yyLA1lK/LBqQ0mJQXASTU+Yhdx2bjvcfPVtoFon8j5dBdGjvTQeiBPdJnKv5VbRw5+08jSdVE6rgzxYO3Or8ozuCg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 199-20020a6301d0000000b005cd82a478f6si11832138pgb.759.2024.02.01.08.14.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 08:14:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48427-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mZeVk456; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-48427-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 62589B24FA4 for ; Thu, 1 Feb 2024 15:44:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1FF3626AB; Thu, 1 Feb 2024 15:44:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mZeVk456" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E3C075F494; Thu, 1 Feb 2024 15:44:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706802273; cv=none; b=NYh6TsMC1C28BneU66NhuegR2+qMmXlTyN8DmKWKD8LJ8Phfer22nuU0FnJNX+Bw4EwjuSly5egkWRqn/goGfIsFFjHaVmvNdfZafuEiMRLLb6YrlUZJy9Okxfniz4wQbiu3QYkYn0f9o2fTWAZ7o+nqlfZcsAI0z3EmC/DPoVQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706802273; c=relaxed/simple; bh=cFF+cZZhYXujuj65xq6IcWbd/D/Sk1miTqOWKe1WC0I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VDEri6hGzaQNtoV6kdy4BZW1uLQiyltd5isHBVjMObSzNKJLaA+r/647AbUW4ohK+FoaYikbxhnqt6XeN7WX3z+xYSSQDoAj9C1VPB7KaY57R07sB/Xjka6lHhHmipsqR/wfBlFzStR4N8ZzzaSAdB8dB6brQvMZUPbmRcwwEmY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mZeVk456; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5007EC433F1; Thu, 1 Feb 2024 15:44:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1706802272; bh=cFF+cZZhYXujuj65xq6IcWbd/D/Sk1miTqOWKe1WC0I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mZeVk456WY4ZB6GKYrS3EUkJLgEevilMSVtyEsxmfk2o7uDku7H2+7jEUBUMQvtV7 toSu0B0VREbRzofoAPJ+3MYbn7rPZmua1gD8L2oDmhGDJNTq2fN9a4XbIQfM4N+kCH 5DdwCTalYRIPKw/Fen0kviDGTw7YN+Z+HV0LmVhU= Date: Thu, 1 Feb 2024 07:44:31 -0800 From: Greg KH To: Daniel Bristot de Oliveira Cc: Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] tracing/timerlat: Move hrtimer_init to timerlat_fd open() Message-ID: <2024020109-duffel-finally-4f0b@gregkh> References: <7324dd3fc0035658c99b825204a66049389c56e3.1706798888.git.bristot@kernel.org> 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: <7324dd3fc0035658c99b825204a66049389c56e3.1706798888.git.bristot@kernel.org> On Thu, Feb 01, 2024 at 04:13:39PM +0100, Daniel Bristot de Oliveira wrote: > Currently, the timerlat's hrtimer is initialized at the first read of > timerlat_fd, and destroyed at close(). It works, but it causes an error > if the user program open() and close() the file without reading. What error exactly happens? Userspace, or the kernel crashes? thanks, greg k-h