Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp553114rdb; Tue, 23 Jan 2024 07:37:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHy+o5rmxKzmnyfnLTrGXEaxrHg3/R+IareBSsUfRORDV7L4H8An3bhuygqZ35gnZXGtjUp X-Received: by 2002:a19:ca52:0:b0:50e:5082:a868 with SMTP id h18-20020a19ca52000000b0050e5082a868mr3010507lfj.104.1706024229285; Tue, 23 Jan 2024 07:37:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706024229; cv=pass; d=google.com; s=arc-20160816; b=U/grCj7nXhoqiAnXTm8D02qUgtlxK7d6hPNwYgf43NCsAFJGaeWAKB+KmrEhlY5lx+ qG1H9elpc11m57mqwKKv0pV5AI8ImXr31AsC2kqbvTzCb7BjTD2WTO0DN4IWnXs91qkv z+1/BaCDZl69oLCOvANQ1E/W7R+U75qfS3GVZoNKAfoAvnjA/ZSKcmA4EAofCNTkIeU3 LfVecbxf0D5IZjJqJ6Me+j1kCE5oZ8T2B0FjDzlpzlWpanQPn/z/EZgd9RzDwKjuTya9 08Oee9oEZEe2u46Rn02PduEHWWBtlQinVmYf44sqOBKeOSlwr9aXbJrZ9lJ0r5vAgboL c/Cg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=ESCqsLfyB1eo9BBxtfoyLfAC1646jR8s7IT62e4/cWw=; fh=NrPUQ5fb2LYhfrBFB5+JVUXAypO1HjJgVIb7BqDPkhw=; b=Mc2H3VYZkOiZ0pcfmJ0pvl58yi+641J9kdmgTnjC6HCSyqaDFzqbPLAYDy4+kq7BBk p3v4BLkLwkL3I0A5lr+cOtN/1/FIB8wBM8MIHAu01pB4Jlf3ACYu/tV/8FStR6A9RDse yNlsBSfIwOzIZHtNvUvgddQaOaPHlLjZYIxfEv+OdDlHgyhF4aB1mK6Tn++j3wLHIQBN qbBwnYUCgr3nZrNwnFC+Md3CYp0S+AnUNR1l87v2Y+vMfi08HTpNAlw2zkshvKcTsUiT yrcCGRA6+sg8LLxihjbh7SJrmTxwLMrFPYJV98sl0Cb+qMwyzL0BeVAvfP48EcPHtyl4 TcOQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iyYVC4eX; 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-35545-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35545-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r10-20020a056402234a00b0055c05b981d7si3381681eda.207.2024.01.23.07.37.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:37:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35545-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iyYVC4eX; 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-35545-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35545-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0966B1F23207 for ; Tue, 23 Jan 2024 15:37:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3BF460EE3; Tue, 23 Jan 2024 15:34:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="iyYVC4eX" 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 EFF3E6087B for ; Tue, 23 Jan 2024 15:34:34 +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=1706024078; cv=none; b=NSInk5suvnqHmRIgpGF2byDygX0MWSD9q7RMjU3MXHAsFwSQOC/ek6eE7ADqZrrij+elrRvJTZ0FS7PoBmzQxDXjMwXhZx6k/ztuYw3BEZeWuK31h7Os4DyX/2DeRa9RhoQVuq6/7IYVLY3wUu4eCBS4v8DydfM9IV8ukmZkRyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706024078; c=relaxed/simple; bh=LnwHGn88+81X3IqzrKkhOGc1geOo30Jg71Fn2SQpiuw=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=LTLRbYxbmqctwRMKhuTaZ9N7+rEzs/2etWb422KmaX3PhT3iPHo/lRwVegVOyEqe6xu1xAIP3zyNyhYaVfoD0+SJWNTlQgqHP5Ry9k+YLdU9fiEGG0kN9/nOsDpHhW28JMyQGOkqHpWSgKNqxPpG7ln6nwJptVuEBO+/nI1Osmg= 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=iyYVC4eX; 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=1706024073; 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; bh=ESCqsLfyB1eo9BBxtfoyLfAC1646jR8s7IT62e4/cWw=; b=iyYVC4eX9HsTxM/95nPI8grALjKZbsfILOfno/bfZYq7AsAGEaQZ6o806lLOy/f/kO9VBK o+E8jgiEu2Hg3G4O4pMvPAtZ0/udo891jZa5vwdHu2VJ+37Xnd8EVm6Toq6RNpLHyqpb5y eG+GFcGP4SSwnN7V8eo7tgzztWWXdZ0= 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-613-boRKdBLsOm6wMMgu9_TW_g-1; Tue, 23 Jan 2024 10:34:30 -0500 X-MC-Unique: boRKdBLsOm6wMMgu9_TW_g-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 D440F18A668E; Tue, 23 Jan 2024 15:34:28 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.224.197]) by smtp.corp.redhat.com (Postfix) with SMTP id A382A492BCF; Tue, 23 Jan 2024 15:34:27 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Tue, 23 Jan 2024 16:33:15 +0100 (CET) Date: Tue, 23 Jan 2024 16:33:13 +0100 From: Oleg Nesterov To: Andrew Morton Cc: "Eric W. Biederman" , Dylan Hatch , linux-kernel@vger.kernel.org Subject: [PATCH 0/3] fs/proc: do_task_stat: use sig->stats_lock Message-ID: <20240123153313.GA21832@redhat.com> 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 User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 do_task_stat() has the same problem as getrusage() had before getrusage-use-sig-stats_lock-rather-than-lock_task_sighand.patch 3/3 depends on the patch above. Oleg. fs/proc/array.c | 66 ++++++++++++++++++++++++++++++++------------------------- kernel/exit.c | 10 +++------ 2 files changed, 40 insertions(+), 36 deletions(-)