From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796477172; b=4cCcYeJml19sMdpxOfG9PlRw1prUIUrTHCFKh3sOukCHJa0xBDCS/A4KQYQch87vO7g+ shenIRx3OkEeFZLJgYlFnpbSON+f/+z5bwt21zFO+zGcnACDNHrL4fUSFsleA5WLZvCJ9 iQ9ax1PMJLAGQcZdO8fO0FwPMwYK6yLdyuwP0FTAVpmRYJeez18RTn2y2BzlG59M56xNa rRlU8thlMoyetZ5EVORwhn5/mJB14Elq5yUqHS4/gv1Z91KprK9Vmp8G1Lva1QeVeq+/q zAaaDRWpNFvx1YJh3HqJKypCvCM/+5wP8iHxIZcuFyny+OnHAX+ivIFv3j96sEBsPLQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796477172; h=DMARC-Filter:DKIM-Signature:X-MC-Rep:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:In-Reply-To:X-Scanned-By: X-Mimecast-MFC-PROC-ID:X-Mimecast-Originator:Content-Type: Content-Disposition:Content-Transfer-Encoding; bh=/lvHgXiV8tcNc3mlqVXkc2ih0MGoIS0L1VE7Z3U6gAw=; b=O4eKCPouz/rhM3WcJnIXjix5ghT5+ytZDSYymTGzuQHcGmWfZ+Tcc72pPcSDBEOue1x7 9RfU3p0d+kITFEL5JzD7y31IlrqTKz17nrwdTianYCI2HzngOdTfn07vlMFHeV1qtFggn 5IaINEuXqwdpQlOflho49m0Ekv8KW66mKBg06Ls6/7WuqoCVSYRLkS2etSiAxtXh2Q6/r 6l0JYVbn2V55nNK57QfswBda5PTgnKH7cYX+9UMwdpxiDRZZ7M4ESb122I/f8/YZdXsy6 QrXVpsk/BRhNa0lcSM1gY7XdbtdKeqlh9Zv1QbRzaKpsNpr26qVdT12+AqN3uJIu/Vw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=KE+eNrUp; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7ADB606A330 for ; Sat, 5 Dec 2026 13:26:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E7ADB606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=KE+eNrUp DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796477172; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/lvHgXiV8tcNc3mlqVXkc2ih0MGoIS0L1VE7Z3U6gAw=; b=KE+eNrUpzXmjY8emrZQBQVYhmiBHfrique8MEq6LZUjGeCq83eGpJCpZfYzt0rsGiC+pEy DvC4qc0KzynPYkUs+COKnYeJmxyU94azLx7KOPjfAPXHLjjwLoz3rWL9YW6SWbgnRWvSr5 35sMqEqyJUJHi1fZP3ktvjS8szKVu2o= X-MC-Rep: binary re single Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS with 8BITMIME (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-427-OpiqzlHDPC6y3zMJRypCLQ-1; Sat, 5 Dec 2026 13:26:05 +0000 X-MC-Unique: OpiqzlHDPC6y3zMJRypCLQ-1 X-Mimecast-MFC-AGG-ID: OpiqzlHDPC6y3zMJRypCLQ_1796477161 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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 mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6DF831955F38; Sat, 5 Dec 2026 13:26:00 +0000 (UTC) Received: from onestero-thinkpadp1gen7.tpbc.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id D10B618023DD; Sat, 5 Dec 2026 13:25:38 +0000 (UTC) Received: by onestero-thinkpadp1gen7.tpbc.csb (nbSMTP-1.00) for uid 13628 oleg@redhat.com; Sat, 5 Dec 2026 14:26:00 +0100 (CET) Date: Sat, 5 Dec 2026 14:25:37 +0100 From: Oleg Nesterov To: sashiko-bot@kernel.org, =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Cc: "David Hildenbrand (Arm)" , Hugh Dickins , Baolin Wang , Andrew Morton , Mike Rapoport , Peter Xu , Michal Hocko , Kiryl Shutsemau , Manfred Spraul , Davidlohr Bueso , Cyrill Gorcunov , Zi Yan , "Liam R. Howlett" , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Usama Arif , Lorenzo Stoakes , Rik van Riel , Vlastimil Babka , Harry Yoo , Jann Horn , Yang Shi , Zach O'Keefe , Song Liu , David Stevens , Kefeng Wang , Alex Williamson , Suren Baghdasaryan , Dave Jiang , Matthew Wilcox , Miaohe Lin , David Rientjes , Shakeel Butt , Jan Kara , Mel Gorman , Jason Gunthorpe , John Hubbard , Gerd Hoffmann , Vivek Kasireddy , Dave Airlie , Matthew Brost , Joshua Hahn , Byungchul Park , Gregory Price , Ying Huang , Alistair Popple , Hagen Paul Pfeifer , James Bottomley , Felix Kuehling , Alex Sierra , Balbir Singh , Kairui Song , Qi Zheng , Axel Rasmussen , Yuanchu Xie , Wei Xu , Baoquan He , Oscar Salvador , Muchun Song , Dan Williams , Rakie Kim , Hao Li , Christoph Lameter , Roman Gushchin , Sebastian Andrzej Siewior , Clark Williams , Steven Rostedt , Alexei Starovoitov , Xu Xin , Chengming Zhou , Shivank Garg , linux-mm@kvack.org, linux-cxl@vger.kernel.org, linux-rt-devel@lists.linux.dev, SJ Park , Chris Mason , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 23/31] mm/mempolicy: check access under exec_update_lock Message-ID: References: <20261204-fixes_core_3-v2-0-9aad65727632@kernel.org> <20261204-fixes_core_3-v2-23-9aad65727632@kernel.org> X-Mailing-List: linux-rt-devel@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-MFC-PROC-ID: hw9EBhCTUONmLqEIjKEB3j8CLZ5vryISS_D-hjOTf54_1796477161 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 12/05, sashiko-bot@kernel.org wrote: > > > --- a/mm/mempolicy.c > > +++ b/mm/mempolicy.c > > @@ -1981,6 +1981,12 @@ static int kernel_migrate_pages(pid_t pid, unsigned long maxnode, > > goto out; > > } > > get_task_struct(task); > > + rcu_read_unlock(); > > + > > + /* Exclude execve() until we have grabbed the MM from this task. */ > > + err = down_read_killable(&task->signal->exec_update_lock); > > + if (err) > > + goto out_put; > > [Severity: High] > Can taking task->signal->exec_update_lock unconditionally here deadlock with > Landlock thread synchronization when migrating the calling process or a > sibling thread? Another reason to avoid exec_update_lock in landlock_restrict_sibling_threads(). Mickaël is working on the patch: [PATCH v3] landlock: Do not hold exec_update_lock across the TSYNC wait https://lore.kernel.org/all/20261204111754.1452982-1-mic@digikod.net/ Oleg.