Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6997248rdb; Wed, 3 Jan 2024 00:30:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFh4YzOCH4cnKpU/1siSeGBK3RmTu7q0t+i4MTbazcT2yRWc6YrWy3IhiAewweTp8wH0NAn X-Received: by 2002:a17:907:360c:b0:a27:6615:1653 with SMTP id bk12-20020a170907360c00b00a2766151653mr6014233ejc.34.1704270623434; Wed, 03 Jan 2024 00:30:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704270623; cv=none; d=google.com; s=arc-20160816; b=IoGPkMkFt8YOy4BSyo+tSIg1omxy9wuRJbR4mQwnDAl71Ha+mzy16BjcVElDtElzfe 0eb3NlVnzYRDguiWvLUFHKWh0IiKOaFtLHFIZdJ/QEzFP41CDYnfSu3Ekifm8KKyZQGM NNY0w2nOzRdySS3AzcsUpPF729kXt6J3jyHsAURy5i53wJhnKB0QVOPJ0DiTMs5nCYPR Ub75fdKdKqszO/bFnRhRK+rgizcQVcGhZJQbdwdyIH/K05SX6H7tZikIbKPDCn+AjuZc CWM579xZt3F3V17C00K4hc+v8bFi8UjAlhTdywC7sZCSVk0sbAiSDkt1TrtiWf0b97Zo 4m6w== ARC-Message-Signature: i=1; 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:dkim-signature:dkim-signature :dkim-signature; bh=XqOr95siHnywoD7/KUJ+ty+J9r6iy/sRySCRnI6kD0E=; fh=uYnjiVNxbW5kI0u75v8U/Y/ao7NQ4m8EfWg99NPaynw=; b=sywpRT6Pew+rGYUPlOtCRX7BWMGlU6ufASM0ehH/fquFkvsfsZr4mXLhARrriEx+l8 SS+z8vz6KtOY6Qfyhm+5BS0l0ADW9ygnU/ilc9JoHrVzWLqhmP4Bov5vOR8nyalBynA4 VVEUkMJUJL01bcXuM3kfJHJ/Cdjs+2ZLxrlxnWgCyTAhKyCDkkiIcQPaGK/gmvqdZX4G BXAiPmidDOH0VZSHj7XV16JfjNPqybFtLDSR29c2SYwYRd/yDiLIHjokjEDvhv3rdWMx G84gD/OnhRWfl0g7OdZ4cYT9C0SmdC/HPwoj5SRBgdECMfKTNli0MAgoLa+L9T7UTUOm 0o4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="Q2/SuwAm"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=+WwTfcZ1; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="Q2/SuwAm"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel+bounces-15273-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id mj6-20020a170906af8600b00a235d41a185si11575400ejb.524.2024.01.03.00.30.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 00:30:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15273-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="Q2/SuwAm"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=+WwTfcZ1; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="Q2/SuwAm"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel+bounces-15273-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 200071F23D79 for ; Wed, 3 Jan 2024 08:30:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6AC271799A; Wed, 3 Jan 2024 08:30:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="Q2/SuwAm"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="+WwTfcZ1"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="Q2/SuwAm"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="+WwTfcZ1" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90FCED313 for ; Wed, 3 Jan 2024 08:30:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 9CE3B1FD0B; Wed, 3 Jan 2024 08:30:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1704270610; h=from:from:reply-to: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=XqOr95siHnywoD7/KUJ+ty+J9r6iy/sRySCRnI6kD0E=; b=Q2/SuwAm1Eb8k0Kz7EA7hWXRextYholBQCxjAvSsmmaEZqdpMd01zZGlGaw7DZ5oaJDYwp W9V3oWm6fUVOurrG/ygL+F4VBs4ZMe2Sd7+1Pwhbd/7g+78pOx9AEiiDEFp0eq5zj3YhyO 3k/p3iWgTVYeozldS578T8Vtti5ROHw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1704270610; h=from:from:reply-to: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=XqOr95siHnywoD7/KUJ+ty+J9r6iy/sRySCRnI6kD0E=; b=+WwTfcZ1LOcXJa24SVdLbjO468sU3uEK/j3Bw/CchAnb4PU27CyI8jl2BlxaEev6NjlQUO VUzPQhRrLQ7SVZBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1704270610; h=from:from:reply-to: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=XqOr95siHnywoD7/KUJ+ty+J9r6iy/sRySCRnI6kD0E=; b=Q2/SuwAm1Eb8k0Kz7EA7hWXRextYholBQCxjAvSsmmaEZqdpMd01zZGlGaw7DZ5oaJDYwp W9V3oWm6fUVOurrG/ygL+F4VBs4ZMe2Sd7+1Pwhbd/7g+78pOx9AEiiDEFp0eq5zj3YhyO 3k/p3iWgTVYeozldS578T8Vtti5ROHw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1704270610; h=from:from:reply-to: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=XqOr95siHnywoD7/KUJ+ty+J9r6iy/sRySCRnI6kD0E=; b=+WwTfcZ1LOcXJa24SVdLbjO468sU3uEK/j3Bw/CchAnb4PU27CyI8jl2BlxaEev6NjlQUO VUzPQhRrLQ7SVZBg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id E614D1340C; Wed, 3 Jan 2024 08:30:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id fP9iNREblWX4XgAAD6G6ig (envelope-from ); Wed, 03 Jan 2024 08:30:09 +0000 Date: Wed, 3 Jan 2024 09:30:56 +0100 From: Oscar Salvador To: andrey.konovalov@linux.dev Cc: Andrew Morton , Andrey Konovalov , Marco Elver , Alexander Potapenko , Dmitry Vyukov , Vlastimil Babka , kasan-dev@googlegroups.com, Evgenii Stepanov , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: Re: [PATCH v4 06/22] lib/stackdepot: use fixed-sized slots for stack records Message-ID: References: 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: X-Spam-Level: Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -1.30 X-Spamd-Result: default: False [-1.30 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_TWELVE(0.00)[12]; DBL_BLOCKED_OPENRESOLVER(0.00)[linux.dev:email,suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[linux-foundation.org,gmail.com,google.com,suse.cz,googlegroups.com,kvack.org,vger.kernel.org]; RCVD_TLS_ALL(0.00)[] X-Spam-Flag: NO On Mon, Nov 20, 2023 at 06:47:04PM +0100, andrey.konovalov@linux.dev wrote: > From: Andrey Konovalov > > Instead of storing stack records in stack depot pools one right after > another, use fixed-sized slots. > > Add a new Kconfig option STACKDEPOT_MAX_FRAMES that allows to select > the size of the slot in frames. Use 64 as the default value, which is > the maximum stack trace size both KASAN and KMSAN use right now. > > Also add descriptions for other stack depot Kconfig options. > > This is preparatory patch for implementing the eviction of stack records > from the stack depot. > > Signed-off-by: Andrey Konovalov Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE Labs