Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2681694ybt; Mon, 22 Jun 2020 04:36:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMs4H+B8BqwLSS6cSuqWrUisg7Zr7I1j/+OqSjkZkJsB1JLwAGr5ucv7JWo2rUeWosV2XS X-Received: by 2002:a50:e14e:: with SMTP id i14mr15806864edl.279.1592825772955; Mon, 22 Jun 2020 04:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592825772; cv=none; d=google.com; s=arc-20160816; b=agKn7tomrPBRW9Oq9kyEaDTP9DpBPRUdZmffgsa54Fe8SMz3E8YZrCbOylJ0+W2kFG MOTfd19gs5VFOBfb5DAYGjgYwdDyzlOrP1Ts96WJTYOIXEYV8DxlTiHEKnqFiqwpF0iK HIUiaP8mh5K4hQ+wvWS+kaKSgMga3T4QgD53MqhdB1AngYuudI4yhEfdcuAIeor8GrAl BZ+aVAN7HwlbMCarn93cj7aAZWMm9kGxZCbU/IzRD9S07f821IFn8V4xrzPepwZbjzeq qSRoJQ63adU+V1SSyxx7J0mPnU5ykW6ScUPXly4rkqXbzMI5v3p+b7m9t4QwnzHt3MHb oqpg== 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=qmsQUkrMhCL5SGBQbKt+n8nVk/2RnNQHsX/u5U1pL3A=; b=VT+UjTRCJour3De4RvNIHG9Y2dWEs5Hlw1vEPE3JcCzqdd91jR71+02ucaxvbWzqqR /6RfAPlPqJXg9NRAPtYamVA08hOkiX1Y/v9QgQA14f8MS6cb5SmauvJgiXwaSGuqscpw Zxa1Kjye+SvUmm2ItjIrEmEoLSkUqYEgOAxIXvI1aO2pFoPdOfbhhl/qDPucT50Mjilp /bQp03+EOGJ7CcpxVHsOLFzD3Pnzeq6yUkCxTaOLBSsnFZlqAVC9j5YRCcUYqJOVzxbw du/ENbuZG5zwZ/bhHHEzqkIEVZlEhMfbG7iD9qlEPmB8B7RC8b2vKVRaTYVHIMf6JpLM dOSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="BYezhqu/"; 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 c3si5358649edn.385.2020.06.22.04.35.50; Mon, 22 Jun 2020 04:36:12 -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="BYezhqu/"; 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 S1727102AbgFVLbu (ORCPT + 99 others); Mon, 22 Jun 2020 07:31:50 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:21320 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726998AbgFVLbu (ORCPT ); Mon, 22 Jun 2020 07:31:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592825509; 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=qmsQUkrMhCL5SGBQbKt+n8nVk/2RnNQHsX/u5U1pL3A=; b=BYezhqu/9TZbdH3F2gN8e44fSwMecjtU2dtAlHld5VT7wJ5t1L2K2K25srDEQ/Vb0sqSL+ /Mm9Le6uYQTKGGv+4XlyztqGXKqx1Gqzql7HcwXW072kuUPXftlDPsarIcIZV5RuUU/IU0 zDihYI797DBzcg54akS1twPkQ9TDKwo= 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-359-Gvw9u-L-MLSNYGSHhyeS9A-1; Mon, 22 Jun 2020 07:31:47 -0400 X-MC-Unique: Gvw9u-L-MLSNYGSHhyeS9A-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EA166107ACF4; Mon, 22 Jun 2020 11:31:45 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.40.192.236]) by smtp.corp.redhat.com (Postfix) with SMTP id 723CE1A8F5; Mon, 22 Jun 2020 11:31:43 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 22 Jun 2020 13:31:45 +0200 (CEST) Date: Mon, 22 Jun 2020 13:31:42 +0200 From: Oleg Nesterov To: Dominique Martinet Cc: Christian Brauner , 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: <20200622113141.GC6516@redhat.com> References: <20200621133704.77896-1-alexander.kapshuk@gmail.com> <20200622062527.GA6516@redhat.com> <20200622083905.c3nurmkbo5yhd6lj@wittgenstein> <20200622102401.GA12377@nautica> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200622102401.GA12377@nautica> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/22, Dominique Martinet wrote: > > What about the possibility of sighand being null that the function does > check, is that impossible for current as well? It is only possible if "current" has already exited and passed exit_notify(), iow if it is already a zombie and can be (auto)reaped. Oleg.