Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2745471ybt; Mon, 22 Jun 2020 06:06:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBz6Rz3R6wfvw5So/WOGswX9OPBjJGhshCVGFF/ULLPT4XnVlg2d4YhYCBmkJ1wsaMf/pz X-Received: by 2002:a05:6402:c85:: with SMTP id cm5mr11351103edb.341.1592831186310; Mon, 22 Jun 2020 06:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592831186; cv=none; d=google.com; s=arc-20160816; b=L1THwC/ez2QeWaBHvN6/NxHiaElARw3P5dtU8TghqrpYTqpdZxE5ucxsmOj9QL0HKa lVzOVlh8zGIYjjcPThbVIitkQzzdpzwwbDZgw8UrDJouLCA7pEuAgo8lRgE/E9w8VZL+ AJ1A19IxDRiuzXbszN5LOOcFcW+W9DGZv+wobAd3Itjj3mxWBZ8wAkoM3l5u83/x3Tji RunVS9Q06WpZbO6QjVvWpOs01T3osJcuyo2c0y8DBXtXx3J6JeXx/ksCtg1XrL35tBgv K9xwQPbZ5izlshQs9RNBe/aeRv6TJHs5v2qgMabzI3ooM7pg0f2W6gqDWJtgDaYIubpc 7MDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dszT79NgiiYmLxEO+86hQusN0IhnJ9bqFLtWEsnu6g8=; b=OTihkvXQl/5ZOl2UEvOuRfMCFwSkyW+Ahv4ZNquOPqOavw3lxU7e4r3MTFOU0V2Ytl dqmPsOdeauhFYeUEpl8D6742l92jhnl+zy1sEuTBdHmxpBnZG0KLMbGaOJQl6fkrbY02 JbQ2rKV8kz4B6cQKTlvfa9fl202V7EOzGJZ15+ytKf1aJFQJvNy86L1roSfYCHfwvht8 8OXPNZ9aPrO+CQieimiBxZkVLSjQL8A5VHLSzZYnZcjkzlNWNgco38FUijcXm/UOuLFL lzYxyNgVdgi8CkzkkfQmiV5XkozUoMrM3K84XHawIR1XWU1Y+D/eyS2waCQ5PwfMOy9z US0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KpeSo4v1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg4si9782516edb.439.2020.06.22.06.06.01; Mon, 22 Jun 2020 06:06:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KpeSo4v1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728256AbgFVNCK (ORCPT + 99 others); Mon, 22 Jun 2020 09:02:10 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:24582 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728137AbgFVNCI (ORCPT ); Mon, 22 Jun 2020 09:02:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592830927; 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=dszT79NgiiYmLxEO+86hQusN0IhnJ9bqFLtWEsnu6g8=; b=KpeSo4v1GOSlHcq5qwkj8e51mX8Oh+6dx2iPku8NhHhUJ/rEMlSfdCI5Dtk97+Evzx4XiQ H6UQ+zCLbkCop0uEHhWh4Xbyx4URWgYn07c153hGI+4XC1xILXEtanwYKgmt22qsjEvS/m 3/A0cMLeulTRAnK6CW/mtdtugDasnAw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-318--SFhCDsyMk-SGmLQ_Bm6Zw-1; Mon, 22 Jun 2020 09:02:04 -0400 X-MC-Unique: -SFhCDsyMk-SGmLQ_Bm6Zw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9E7F019200D0; Mon, 22 Jun 2020 13:01:59 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.40.192.236]) by smtp.corp.redhat.com (Postfix) with SMTP id EB9B76FDD1; Mon, 22 Jun 2020 13:01:56 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 22 Jun 2020 15:01:59 +0200 (CEST) Date: Mon, 22 Jun 2020 15:01:55 +0200 From: Oleg Nesterov To: Christian Brauner Cc: Dominique Martinet , Alexander Kapshuk , linux-kernel@vger.kernel.org, ebiederm@xmission.com, akpm@linux-foundation.org, liuzhiqiang26@huawei.com, joel@joelfernandes.org, paulmck@linux.vnet.ibm.com, kernel test robot Subject: Re: [PATCH] kernel/signal.c: Export symbol __lock_task_sighand Message-ID: <20200622130155.GE6516@redhat.com> References: <20200621133704.77896-1-alexander.kapshuk@gmail.com> <20200622062527.GA6516@redhat.com> <20200622083905.c3nurmkbo5yhd6lj@wittgenstein> <20200622102401.GA12377@nautica> <20200622113610.okzntx7jmnk6n7au@wittgenstein> <20200622120259.GD6516@redhat.com> <20200622122925.khcilncycuzb4xki@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200622122925.khcilncycuzb4xki@wittgenstein> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/22, Christian Brauner wrote: > > It is a supported case however unlikely. I just tried to answer > Dominique's specific question pointing out that even in that unlikely > case sighand_struct is stable. I too tried to say this, but apparently just added more confusion ;) > Just as an fyi, CLONE_SIGHAND with CLONE_VM but without CLONE_THREAD is > actually used quite a bit, e.g. in newlib, in stress-ng, and in criu. OK, > you'd want CLONE_VM which enforces > CLONE_SIGHAND so that would be another use-case afaict. Cough no ;) CLONE_SIGHAND requires CLONE_VM, not vice versa. > > But this doesn't really matter. I mean, even if you race with another > > thread doing exec/exit/whatever, current->sighand is stable. Unless, again, > > current has already exited (called exit_notify()). Oleg.