Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp3127055rdb; Tue, 13 Feb 2024 07:38:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHVj7h1gzuO1dV/C9U/QJade2W+Q543Oh7P2ODrjJG8zfFNY/83rqc1YjWhtwfZi2DVsb1 X-Received: by 2002:a05:6a20:9f86:b0:19e:a1ae:48a4 with SMTP id mm6-20020a056a209f8600b0019ea1ae48a4mr14766794pzb.31.1707838701739; Tue, 13 Feb 2024 07:38:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707838701; cv=pass; d=google.com; s=arc-20160816; b=ESgnlNZbofRQSu/gMAxWg3eKgqBeUaco+nx8xlSf/G9v+rz0CObyy76dGgfA2x8Low wWl6GkOUd9mVBAkG4Z29OKy1Jz+hzwFRG143pTXreqAX4MUM4yj/LGUZnP/haXMBU2g4 15aC34JSZNdLwIokVCoZSSvdI8rAAmcsuQdlccljlSXWuqoJ8q6dLkli5G6gvo2s8PsI jtuc8+iOu3CII5wwnZ/JlRS0JaunApJAwptH13PrYi8sSM/Z0BNwJMlVFMfPOX6jr9Bt iEu15SYghfe9dIC/kZwwvKpdg6mVROLvaXF8tpaJUX+6xUsa9Bk5hqewQbUITXS5tuFd XS+g== 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=I3QRgzvR69ZeaU9YbOZG14Z3fldYJTQYNr719A3rJNs=; fh=H5kC9vyiJScEjvMZYy7fOEbBVrWpPJRwUs026B3TVCs=; b=HiOnTIbhfRwl0qSPV0Sc8dQwD9C8gb2kA4bqwdqUIkK8n5X3RrJbeooBkTOHU8M8kE bKEDWbBgsiLSdBT8UgWiwGyAdaogdNtDsRMr96L5a2azIE9keXRiZtZa4ThnoIE5tEZT nzeiE0gUo6mAMJEP1NABiSNww2+KqwHTlzGJUAGcGOrmXlEEtoIFB60MgoGUkymTkM/m ysbj5TYvbI5RKp0alRjhv8c3AZBzdLyh0RHJG7c3GIoTYZ2dWeSSHbeMPZh27GFosBEA Q3nK7kVef1PpPG7n1jqDhExo+Gaj4H7L6n3KaRq1ywjPWJi9UM3gPMcBIgerydQfCyFR icHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="O82mdty/"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-63783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63783-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=2; AJvYcCXrT5bETG42KqPHUKs1fFVQasxUx45emGskSH9ROixnjo4qtQbvMDL5yfojJ7aa5i1r0+q5sSv9c0CvHs9mvC3Ld4bhn+gdMqDVRXjR4Q== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id r20-20020a638f54000000b005dc427627c5si2118370pgn.431.2024.02.13.07.38.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 07:38:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="O82mdty/"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-63783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63783-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 3E763B20B88 for ; Tue, 13 Feb 2024 15:12:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FD595EE69; Tue, 13 Feb 2024 15:09:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="O82mdty/" 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 40EDD55780; Tue, 13 Feb 2024 15:09:42 +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=1707836982; cv=none; b=XW5/LH6luJsrs56Cj4yUFa1njktTAKXJoC3lnMK9RjfOoFD3vbxfCq+d7Z/ifAGyjwxKbMuG7+xnZZSDMXI/gOsswQMI5h7vAZpkGAwGEBwod/hCRdfq9RwkjK1D5K431qKc1YDhIyEheY6aKl4MFGLeDwP6gM80rx9wONieads= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707836982; c=relaxed/simple; bh=d/SbQewKw97qHMcT4YLu0I9/NAOZ0hdPBAZpUB60RQ8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PFAmkPLlMI/qHkF9K4OjJop0hTU/Y5xZRuWLB+d3gW4ocxE0YsGIYZ5Sug55Z0HD+lXPlUbH7dwSqKdVnBRyrgUv28hb+Sun43un/u8soF4oAycvcFaJsprTH9f+vSG29aIPNDHKxu8R4xlIFAAEckJmjVYntWOsvdxTRDQPlwY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O82mdty/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BF90C433C7; Tue, 13 Feb 2024 15:09:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707836982; bh=d/SbQewKw97qHMcT4YLu0I9/NAOZ0hdPBAZpUB60RQ8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O82mdty/hIg37bZ628amycXSBelVC+v3pWEIaN4x4Aibw2Eo4LNZndhemHyVrEBCY PJzD93+3rSjq3Po+k9RZLruxyiu6qvpwX9iHBbhM0caNj7akpWNiJ6MJ9X2lhPmkmh zRGuXo1fIkHOifOJbS/fP3RntrJ30Qb3MMvdqxYc= Date: Tue, 13 Feb 2024 16:09:38 +0100 From: Greg KH To: Linux regressions mailing list Cc: Sasha Levin , David Laight , "stable@vger.kernel.org" , LKML Subject: Re: [regression] linux-6.6.y, minmax: virtual memory exhausted in i586 chroot during kernel compilation Message-ID: <2024021327-granular-boogieman-de5e@gregkh> References: <2024021318-shifty-daybed-fca8@gregkh> <699726f6-8f5d-4482-8c27-8ea47a483f8a@leemhuis.info> 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: <699726f6-8f5d-4482-8c27-8ea47a483f8a@leemhuis.info> On Tue, Feb 13, 2024 at 04:01:23PM +0100, Linux regression tracking (Thorsten Leemhuis) wrote: > On 13.02.24 15:50, Greg KH wrote: > > On Mon, Feb 12, 2024 at 05:16:58PM +0100, Linux regression tracking (Thorsten Leemhuis) wrote: > >> > >> I noticed a regression report in bugzilla.kernel.org that seems to be > >> specific to the linux-6.6.y series: > >> > >> Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=218484 : > >> > >>> After upgrading to version 6.6.16, the kernel compilation on a i586 > >>> arch (on a 32bit chroot in a 64bit host) fails with a message: > >>> > >>> virtual memory exhausted: Cannot allocate memory > >>> > >>> this happens even lowering the number of parallel compilation > >>> threads. On a x86_64 arch the same problem doesn't occur. It's not > >>> clear whether some weird recursion is triggered that exhausts the > >>> memory, but it seems that the problem is caused by the patchset > >>> 'minmax' added to the 6.6.16 version, in particular it seems caused > >>> by these patches: > >>> > >>> - minmax-allow-min-max-clamp-if-the-arguments-have-the-same-signedness.patch > >>> - minmax-fix-indentation-of-__cmp_once-and-__clamp_once.patch > >>> - minmax-allow-comparisons-of-int-against-unsigned-char-short.patch > >>> - minmax-relax-check-to-allow-comparison-between-unsigned-arguments-and-signed-constants.patch > >>> > >>> Reverting those patches fixes the memory exhaustion problem during compilation. > >> > >> The reporter later added: > >> > >>> From a quick test the same problem doesn't occur in 6.8-rc4. > >> See the ticket for more details. > > > > I think this was already fixed in 6.7 or Linus's tree, but I can't seem > > to find the commit at the moment. > > I thought so as well, but was in the same situation. But your comment > made me look again and now I found it: that was 31e97d7c9ae3de ("media: > solo6x10: replace max(a, min(b, c)) by clamp(b, a, c)"), which indeed is > not yet in 6.6.y. Yes, that's the one, thanks! I've queued it up now. greg k-h