Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp586955rdb; Thu, 1 Feb 2024 19:05:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHggsr/hzXoKNAZTRAB0VCN12rFLTaHw2aw+ZSpxb/dTWBQIw9912EWZ6aPEayhb4Gu7yi9 X-Received: by 2002:a05:620a:28d4:b0:785:45f0:c56d with SMTP id l20-20020a05620a28d400b0078545f0c56dmr1407444qkp.29.1706843133034; Thu, 01 Feb 2024 19:05:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706843133; cv=pass; d=google.com; s=arc-20160816; b=bg5Mt3pZ2P1GNq28JeUVBy5bi8Lau8uIuwJ/hskusYyAgUcDTsLiTeDsLAJEw3a9NZ 8S+DV5dzSpvnPp7wum4MQ87a7A0YzjVSLYnNp4kYHpfoNi46WTkpQ+X8cg3r43K3eOtH iDtZoOzCiYXeQ2bEJc4AFT1v5YCD6p9CqgqCvZia9Sli6/PdrGDAFk/QAxMJ7LBqocKg 2e70/PWZRxiVHekfG/clRvAiVMks5e4h2sRvvTsRHtcjhIyCz3o2oyeWQA2nnQWOrM5M 65650jrY7TdtNMGiGB0Zp4iUEghUPrYqAM685OJNV0mx8rnJzloMONve68//UWKYYv4D IBFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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=skwCDGnLP4ByDSOBblEedQL0pq1fFuzhc2BhN7e3aHY=; fh=nvcAbd+UwTSI24T6xI4GBKsnAEBnSP+EqXzrtu1GJNM=; b=mVe6p6IxHUK0MJEZdAp92G3vYrILK8AtI6IpAmg3QAuL322hmpM2b+3u2jqw0gdBmT ZjG58mnk+O7rkUfv+QoblJ0S4/jtWZaZvfhMzabES4n7pdvK7Pk/nzDOWFyGEbYUMU/M 2KMJgZamz7RcaUmPNfxCmVoO7UQtsO0ofE0vqWqsiOOBzGMTFR2YDkq1cm6hINSPkhn/ n/FJG5oLAZSBQJHYwor7yS2kP7xaahY0CQffOQ4X9aFpjWYYbNk6NO1iRGApdevD13fP uzLjEvaQs3kiVvI/36Ga9FXFRLlOHu7cjlVpr8Iqht/9Sv7Ub87AsJV1NbeI6bbANr/j 0Xyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b="b/aMu8Jo"; arc=pass (i=1 dkim=pass dkdomain=linux.org.uk dmarc=pass fromdomain=zeniv.linux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-49132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49132-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk X-Forwarded-Encrypted: i=1; AJvYcCUVdA0ynA04VVYaxSdKZb/+s5e3yNyS02QJfzR1w8FGpAr1J+x5Mj5IBhgcqLHpWxaUf/PsExhkZeJvEWcj3frOb0yauXQP9CI8Wptdig== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y3-20020ae9f403000000b007853e9ca5dcsi1053682qkl.241.2024.02.01.19.05.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 19:05:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b="b/aMu8Jo"; arc=pass (i=1 dkim=pass dkdomain=linux.org.uk dmarc=pass fromdomain=zeniv.linux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-49132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49132-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 510E21C22D69 for ; Fri, 2 Feb 2024 03:05:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5148AFC11; Fri, 2 Feb 2024 03:04:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="b/aMu8Jo" Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [62.89.141.173]) (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 E9E88F9EB; Fri, 2 Feb 2024 03:04:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.89.141.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706843090; cv=none; b=Sq+aneq3nR7abwyqx6T35uRnq19fNOOCOwiDM3mGRfeHn5PpQmCJT23+tyVAIPYMbczm8skFbVhpTczSHqNfOokk4rAsPk0+p0UGWztBrolI7r/9Y0DoAGak4I7EsfYxGfpzObxor6y5tyPXjkctJJsZHp4Y5fejOp3v03atMVA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706843090; c=relaxed/simple; bh=8fHK8o8jc9om6S6NsTKmiBFNLkn6v1fUilTyI9/jVVA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZSVc3SZGXxHQrTUnt6HIaUGw8QF9rZI6UqAWqV63jrwmvJ7ZegP+iilFuYkXwTly1tmFRNjOh0XyWXuI97ATieNxaPNRFiGbOKgl0LjA/DzzXh8MVnyDxlXfPmg1MS9QNMUnWcah0W/c6kH50T96axGVHaVmb5H9LqUN7xqUeGg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk; spf=none smtp.mailfrom=ftp.linux.org.uk; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b=b/aMu8Jo; arc=none smtp.client-ip=62.89.141.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ftp.linux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=skwCDGnLP4ByDSOBblEedQL0pq1fFuzhc2BhN7e3aHY=; b=b/aMu8JoyIi6pJYBgWcGXN8/UL ZV4PD80UgkfKr6pNS8JG1V4UccwxSlYwrgseJJPFEZpuLwVa38MCxyhgHRo5KdncYIge1WN+dpbqS B/1lOpLFqm2CKapZ6zJ4X5rP0E9ppzecAfULowIMwbcSNmIT80kFFjW7GDT8mdZxu2xyQ6l1D7XGF q3PGSLF044jinUnnTJjlThb6VV31oS8mUd7z1EJSenxFA0Nq06FvNXOzOSdMQeFNFZPGacvJ9byOz qyKNcOnAu5QzJoxF27mka7u/ZWgwVBgWf1BJ7vQL6+knhEqc/KZTEmNMsvHBDB7ucfRKXsAyn6ihr 8MIH4/Rg==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1rVjr4-003cIj-1h; Fri, 02 Feb 2024 03:04:38 +0000 Date: Fri, 2 Feb 2024 03:04:38 +0000 From: Al Viro To: Doug Anderson Cc: Christian Brauner , Eric Biederman , Jan Kara , Kees Cook , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] regset: use vmalloc() for regset_get_alloc() Message-ID: <20240202030438.GV2087318@ZenIV> References: <20240201171159.1.Id9ad163b60d21c9e56c2d686b0cc9083a8ba7924@changeid> <20240202012249.GU2087318@ZenIV> 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: Sender: Al Viro On Thu, Feb 01, 2024 at 06:54:51PM -0800, Doug Anderson wrote: > > What the hell? Which regset could have lead to that? > > It would need to have the total size of register in excess of > > 256K. Seriously, which regset is that about? Note that we > > have just made sure that size is not greater than that product. > > size is unsigned int, so it's not as if a negative value passed > > to function could get through that test only to be interpreted > > as large positive later... > > > > Details, please. > > I can continue to dig more, but it is easy for me to reproduce this. > On the stack is elf_core_dump() and it seems like we're getting a core > dump of the chrome process. So I just arbitrarily look for the chrome > GPU process: > > $ ps aux | grep gpu-process > chronos 2075 3.0 1.1 34075552 95372 ? S /opt/google/chrome/chrome --type=gpu-process ... > > Then I send it a quit: > > $ kill -quit 2075 > > I added some printouts for this allocation and there are a ton. Here's > all of them, some of which are over 256K: Well, the next step would be to see which regset it is - if you see that kind of allocation, print regset->n, regset->size and regset->core_note_type.