From patchwork Tue Jul 30 18:49:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danilo Krummrich X-Patchwork-Id: 13747780 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7AE79C3DA70 for ; Tue, 30 Jul 2024 18:51:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 118A56B0083; Tue, 30 Jul 2024 14:51:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0C87A6B0085; Tue, 30 Jul 2024 14:51:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ED2396B0089; Tue, 30 Jul 2024 14:50:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id CF0046B0083 for ; Tue, 30 Jul 2024 14:50:59 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 3F35EA4C50 for ; Tue, 30 Jul 2024 18:50:59 +0000 (UTC) X-FDA: 82397311038.04.66E54C0 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf19.hostedemail.com (Postfix) with ESMTP id A3CF71A001B for ; Tue, 30 Jul 2024 18:50:56 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=AwLrIsx9; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf19.hostedemail.com: domain of dakr@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=dakr@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722365395; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=qGecsvOTdbVZsLNetV6gq0tQGz9y80SWIn90dU/w+YQ=; b=ltJePTP2W/yoJOgesbERqCHT+itA4anz8n9r1s9mlumSXsLMXAGQJxhXizTTpKewWkg5tN H03vDv3LzqLF61KC4s27/5jUaQmRHzlHU32xwrPq4h3Trc8rvZa230ZKu6yUHX+5+70jV+ 0dqhna23OmLzm2Yd+Wz7KBc8SG8NtuE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722365395; a=rsa-sha256; cv=none; b=bjl4NHN7fVU5euFU8r5+5Yy1Mp1MfV8n9+iPG/PbasE74f0/9ug1vpyYPT5npOs9SSGzH5 Ps3vo7CpDaWcNpFbNKk+DmADu/e6ZEhOqjleWTJym4KHfdm8UfMYavXB0+8lwHGqTKlh2t Sy0lKL+0Wi+zyMUigUskxXQD79Qgc1I= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=AwLrIsx9; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf19.hostedemail.com: domain of dakr@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=dakr@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 671D462039; Tue, 30 Jul 2024 18:50:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D9B5C32782; Tue, 30 Jul 2024 18:50:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722365455; bh=dD1n7w5Jem9acpsAsrBHR1ipmgsus4rY6j0u7D4ffmI=; h=From:To:Cc:Subject:Date:From; b=AwLrIsx9SwwYwR5wQy0TwV1cPPxn3T+/JHIncw+Qj666TR80dAZ5NlRyOWwPauHht 7S8lk92hMK7DVp22X5q8hqMzYE0LPz+SkVUzrhX33iU3uKrqgbJHuQHhYDlWoLg5v7 utuXJqQ/0MdnPPvWt/fYfbAxZaKPhY1xv+FDxWv50wibQSNk0iwg0jxZqSpOjKG7X2 VSStg8r2gOpAfM5CTb3NS9OLodI4n8LxlRqPkwMq0f/OqCOptwTFV+kCPPZCTXRUEN 9DeSMx6H+rAKbYcA40GRGLN/QIfoKY3CG+Z0u77njo5qAB7dX9AUcqoTUTZILGs19q dXxdlcWmnc4Uw== From: Danilo Krummrich To: akpm@linux-foundation.org, urezki@gmail.com, hch@infradead.org, vbabka@suse.cz Cc: mhocko@suse.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Danilo Krummrich Subject: [PATCH 0/4] (k)vrealloc (__GFP_ZERO) fixes Date: Tue, 30 Jul 2024 20:49:40 +0200 Message-ID: <20240730185049.6244-1-dakr@kernel.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: A3CF71A001B X-Stat-Signature: ekj4w9idanssbbwofupabja47pu9rjza X-Rspam-User: X-HE-Tag: 1722365456-250502 X-HE-Meta: U2FsdGVkX18ZxLuuJkevk8t3bacCvI3Q35dXzw9yGE9lztIyIz7BSI4/3xpoZecXKRYE2rM766q41iCAuFg8AheyaNr6KSE+4QjhUY2kaA0vunqNixtR+1Men/HtUoebV8zNs2witPmvFdF5uf00w/0LfUa/SzneOTEfWgkEqDkdX2/usArAPLdrMjTqAoOxR8rXriOJ9gwXeEsVm0/7Bsxl5DtotOWmTs1v5xx+IU+tjgfsI3TVuKVDX/Zenwa7wPmWeg93wrH6FmrbHjDwfiUgrQ5uPym6eoZIbqTrBrDY5C+uQzxUev5pwvbEjTQ7736Jtx0tIwMTwPMBsNoaW/OCBem4+4K+uloTNVoUvA9hWFfAl1+Q4dHXvg9P03nacuj9IS/eh1ChzCHJRYJ8+Vy5l8AiOc+HCCuMngzeI68ZiKNBaabM/vGpZjmqg7USnOCZcR/Xp1UoH3JfounF5H/m08z0K7apD7d3Us88yXueVXop6gKHk76eZR4ikMBN7JOSqGIthyv1O4p+3ToPDx+fwIsjANP/F7MDyhLxtZyDxL+uuyF2zJimkz0YQUeMzO1A0knZBHRgnPOF8cw6pvFZxTZpbK1+SCiaaXbpXuDLg5/iA65RdkWxVu2txZzwKX5rCy6vnaNM0wWTli5TxTS5X+RDcK3IyQa8vVjkw3gfpJ/IuQ+LWSd2K17PRyZN95gm+eWUwuDyk8i8yNiwVurIA0hDupWBOQ0dAM6gBd6iUHM7LYJs0wbmjhqAdj61oOrABfAIX//ovIMyPhvLg/jpnvhcWbQe88Iq7TqpVapYIoTuIvV/5Hq9Pn9vSIThoFVuHSsxPzYxGhjF/+LQEypiJP560iXUqzBRPA5rPPGglBCSat/Z71V+wXfnlNbc1ZA6++tbT2hJUWgE6DvyNLKW8IPd+seKNGU8xEHEWcgWqh1yiFxf5q7GwWm9C47LON/GeYjvQ5yBIQnZ8Uk dJ4Vgcsw IOQDPLjvj24ryigq08j3tEfbbCabg4b1wEQGOHPSMV7opDPg72utlFke7oYHoeOMZ0GrFwuMFPHn4P05zaqQPnzBLJ+nowjoc9CmkaCV40M/1Sv+I0TtdSOnZOj/ULOcD8aHSUjgsTrRpj2l+JqWdZK2cMD4zMBIZ5+sw0XkWw2UUcariYH2WtVWJ/Y2qZXqjJSohmcJJW3QonPmq1fWcPczL/5r1WZqOrBxoc8NXUvcp/qXCZWePi5ZAWjcW35nutmlFSrZmFu4cdc0b/8ZaOrMIpIPInsDsedeC X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Fixups for [1], as discussed. [1] https://lore.kernel.org/linux-mm/20240722163111.4766-1-dakr@kernel.org/ Danilo Krummrich (4): mm: kvrealloc: disable KASAN when switching to vmalloc mm: vrealloc: consider spare memory for __GFP_ZERO mm: vrealloc: properly document __GFP_ZERO behavior mm: kvrealloc: properly document __GFP_ZERO behavior mm/util.c | 16 ++++++++++++---- mm/vmalloc.c | 24 ++++++++++++++++-------- 2 files changed, 28 insertions(+), 12 deletions(-) base-commit: 4152c2f7b8af8c270686a4aabda302ec22b0e099