From patchwork Fri Aug 16 11:13:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bert Karwatzki X-Patchwork-Id: 13765996 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 6156FC531DC for ; Fri, 16 Aug 2024 11:14:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E613E8D0071; Fri, 16 Aug 2024 07:14:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DC23B8D0062; Fri, 16 Aug 2024 07:14:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C8A0A8D0070; Fri, 16 Aug 2024 07:14:27 -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 AAE3C8D0062 for ; Fri, 16 Aug 2024 07:14:27 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 27CE58199E for ; Fri, 16 Aug 2024 11:14:27 +0000 (UTC) X-FDA: 82457850174.24.A74E901 Received: from mout.web.de (mout.web.de [212.227.17.11]) by imf29.hostedemail.com (Postfix) with ESMTP id 28B86120033 for ; Fri, 16 Aug 2024 11:14:23 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=web.de header.s=s29768273 header.b=MZTOoSc1; dmarc=pass (policy=quarantine) header.from=web.de; spf=pass (imf29.hostedemail.com: domain of spasswolf@web.de designates 212.227.17.11 as permitted sender) smtp.mailfrom=spasswolf@web.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1723806804; a=rsa-sha256; cv=none; b=3xcdPm+6gVu6w54qFogRkyIYLkBXBIzVyXuVuHJWLYm5tVo6kWedIdlbvQ2RCRJMWkWLtp +ZZamfF3dyqS4gbX7yCrOsHKz9GW5GNaAnapjnt2Zm4SeFgNuQfU937CnWbjORSKi58DGX 6UBkTHJ+Z4W4cfKkrmNpVjgfvOMUgfw= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=web.de header.s=s29768273 header.b=MZTOoSc1; dmarc=pass (policy=quarantine) header.from=web.de; spf=pass (imf29.hostedemail.com: domain of spasswolf@web.de designates 212.227.17.11 as permitted sender) smtp.mailfrom=spasswolf@web.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1723806804; 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=VPwjhtww3tPPlpRtXDZX8Ow2MnpNsc9bFboKd/hL7S0=; b=Gzun+LEp7cBH3/dTIJYvl5HDMXYiB2MljrKvSL1Z2XIRki0gb9vE+6RjV6+iRHyHI0KTba eeB0dY6RqOmrjZiy3rq2DPcdZnBuinHYMPfZ1K/DJk6Kiuy534GMCt8KMYmjOrBwZMhLAB 2DBEM9LcFGyUnUm66PczjbCNeSBgnRU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1723806855; x=1724411655; i=spasswolf@web.de; bh=VPwjhtww3tPPlpRtXDZX8Ow2MnpNsc9bFboKd/hL7S0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:Message-ID: MIME-Version:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=MZTOoSc1OOvlWPbJwu0k7w5VaxsGf1UGNQe3x+zcnHoKMHAro3EArIHbO3/gDuNZ oDUNctcCWOIooYBx3vIrg5dLCVfMvxmpgoWZ+L5TeCw5O8YuAtkW338LEX9h37Wsk z5yJ7UU9jmzGHxNUdd5IjpD/QtQrs4SbMEjiSZ4FZUmVJHb0AiI82ID9eFi2oOJ5m 9rujpw7O2WTqgbcE6K/RZ0rNO71fsdqfkoZTXF4OM5UqH9s66Oo/ZNZHmmaLfxb0g X2lovkM7VEGTzwPf2z//OZtiV8km9VgYxSD0U48TwNuG0AVI5I3ugH5H76KWi1E/U ijKCI73VweYlw6qaDA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from localhost.localdomain ([84.119.92.193]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MPrLN-1srLWe2cJn-00Thi5; Fri, 16 Aug 2024 13:14:15 +0200 From: Bert Karwatzki To: "Liam R . Howlett" Cc: Bert Karwatzki , Suren Baghdasaryan , Vlastimil Babka , Lorenzo Stoakes , Matthew Wilcox , sidhartha.kumar@oracle.com, "Paul E . McKenney" , Jiri Olsa , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Kees Cook , Jeff Xu Subject: [PATCH v5.1 00/19] Rebase v5 patchset to next-20240816 Date: Fri, 16 Aug 2024 13:13:41 +0200 Message-ID: <20240816111405.11793-1-spasswolf@web.de> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:CUFDoYc++9zo/suM14zb6A1KPLhd554oKzT20ehlOvRLuZYUji3 JUqAV62LAmS0i+D90DlahMTbsu04Gc8BaV8BBJdpMz8mQJzWqKuMIA0Uw+KdjBv9ENCA3oD ZcfTJQL5Gkp0Ncr//+kHZ82WmtJ9BINRhWxEJBjdbJqado1zU8u5WuyDckG7AMFWUJTwmqD SFYA8QWUdaIWVYX/ErRaw== UI-OutboundReport: notjunk:1;M01:P0:TfdXJYxdSmA=;ND/yBPCcZRzwZOIKNzrL5nnUofd 0zRhpPBvXyFqCVan5RlCti+9/RoH2oW7I/yc7qI2h0Dd8WKCpX8vprUTKz5KOXHSmhueSI9Kl SL5lXFkcuwMBqmlBVo/NMxNbPhsk/ajMAxIy6uBdsA3lblYXbMaq0jAPsnpjkgNmqbTRgAj/7 y+5FddNJBQr0izEKh+W500izFE9vzZGLR+CgHPofQJqV0vnq6dKtWfeON1llMF89Q226OPPgz I84m9LqGSIJpDvwSIXHqSlEKmRP01ab23d46PxLrZ61cgbGY6FxD8deitamU71AbZzJ3lXE7B ERep06nrM3X4qCHZA/BCxcCkHRKg2zO7+yFLUSRDzC/CnnywE+WChiijzZLox8lzS7oQZ+6Os njuvO34yUlZQ+1DswrsdXPlfSe3mJT5MHK8bDWb1hBdjFOPG/p5++uhHDcL/MZKOXItbWm0d3 UmyzOYLUYDUPeeg8mKIl1Wln1FnhWU1huKr7gQvfA9g6j00C8BrubVEFnwbDTgXX8o5JQQs/p bOHS2Gh3sC8So6ZT+yfFaTf6BY6M73jIIeQNHbreQIt/JLvdnWrjMBd8VwnPPkcNpaUByried M0TWM+IGk3W9QKCKtevMEcPxSk7hNqi2D2zk0IyAInwBpUjV5LTx95v9Sb/E+PHJVfqWzkoUM 3MvI0MEIvRpjreFLoTtTqfE4xTWrI4FPSEFt6VvZ5MEIVR4Qh/4YrlF8/PUaEhYdn2uTPHJDw PNZmHrwC/BFpBRWqOH8PrrR4nqF6ChLGoaHseMwtibzwJUN5li5O4BrxubBM7pG9eByGCKLeP ljZD3VVB5MdHe7ggyCoPxUsQ== X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 28B86120033 X-Stat-Signature: ws49b56uzxntoo4zyuku1dyq7qntybdn X-Rspam-User: X-HE-Tag: 1723806863-229611 X-HE-Meta: U2FsdGVkX1/7nm/o5sxqbgmfGs2rBeXn3PNwUgir6wv5JlNw5P3RoY8l18pxwvzg/PDUXC+Z5CyjQ+GAwQJvCSY0qdvYFrNZNgugZ3NYQQJtUdyg6GihlbAu7GpqkJIwicJhjHK17NReqL2kdAbKlg6jkT8PDh2LTEd46/F3fQU9rI6uO6zRNGuO7gP16jWoxxAJ13J97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Qh0Pz6tRM1/6ZobRJ2Lzx07tVl42b/cXc= 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: Since the v5 patchset some changes have taken place in the linux-next tree which make it impossible to cleanly apply that patchset. The most important of these changes is the splitting of the mm/mmap.c into mm/mmap.c and mm/vma.c and the splitting of mm/internal.h into mm/internal.h and mm/vma.h. Also arch_unmap() has already been removed from mm/mmap.c in next-20240816 so there's no need to take care of that. When testing this with `stress-ng --vm-segv 1` dmesg show errors like [ T3753] coredump: 3753(stress-ng-vm-se): over coredump resource limit, skipping core dump [ T3753] coredump: 3753(stress-ng-vm-se): coredump has not been created, error -7 [ T3754] coredump: 3754(stress-ng-vm-se): over coredump resource limit, skipping core dump [ T3754] coredump: 3754(stress-ng-vm-se): coredump has not been created, error -7 [...] this is most likely not a problem of the patchset but instead caused by a more verbose coredump introduced in the following patch: https://lore.kernel.org/all/20240718182743.1959160-3-romank@linux.microsoft.com/ Changes since v4: - rebase on next-20240816 - some functions which were static in the original v5 patchset are now non-static as they're used in both mmap.c and vma.c (an alternative approach to this would have been to leave them as "static inline" and put them into vma.h (at least if they're only used in mmap.c and vma.c)) Bert Karwatzki Liam R. Howlett (19): mm/mmap: Correctly position vma_iterator in __split_vma() mm/mmap: Introduce abort_munmap_vmas() mm/mmap: Introduce vmi_complete_munmap_vmas() mm/mmap: Extract the gathering of vmas from do_vmi_align_munmap() mm/mmap: Introduce vma_munmap_struct for use in munmap operations mm/mmap: Change munmap to use vma_munmap_struct() for accounting and surrounding vmas mm/mmap: Extract validate_mm() from vma_complete() mm/mmap: Inline munmap operation in mmap_region() mm/mmap: Expand mmap_region() munmap call mm/mmap: Support vma == NULL in init_vma_munmap() mm/mmap: Reposition vma iterator in mmap_region() mm/mmap: Track start and end of munmap in vma_munmap_struct mm/mmap: Clean up unmap_region() argument list mm/mmap: Avoid zeroing vma tree in mmap_region() mm/mmap: Use PHYS_PFN in mmap_region() mm/mmap: Use vms accounted pages in mmap_region() mm/mmap: Move can_modify_mm() check down the stack ipc/shm, mm: Drop do_vma_munmap() mm/mmap: Move may_expand_vm() check in mmap_region() include/linux/mm.h | 6 +- ipc/shm.c | 8 +- mm/mmap.c | 146 ++++++++--------- mm/vma.c | 397 +++++++++++++++++++++++++++++++-------------- mm/vma.h | 61 ++++++- 5 files changed, 403 insertions(+), 215 deletions(-) Nacked-by: Lorenzo Stoakes --- 2.45.2