From patchwork Sun Nov 24 10:08:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 13884039 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 CD9D0E66894 for ; Sun, 24 Nov 2024 10:08:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D656E6B0082; Sun, 24 Nov 2024 05:08:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D163D6B0083; Sun, 24 Nov 2024 05:08:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BDD2F6B0085; Sun, 24 Nov 2024 05:08:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 9FBA56B0082 for ; Sun, 24 Nov 2024 05:08:54 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 04D6F1C5FB2 for ; Sun, 24 Nov 2024 10:08:53 +0000 (UTC) X-FDA: 82820564862.09.45CFBC9 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf30.hostedemail.com (Postfix) with ESMTP id DBC9F80003 for ; Sun, 24 Nov 2024 10:08:48 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=ggEhGLJf; spf=pass (imf30.hostedemail.com: domain of akpm@linux-foundation.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1732442931; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=A1Lq11mT7Dt/tnenSpLOqmZHG+CdQh3W7LxwWMEAl44=; b=WP78188gPTPm7zQzUDk8fGFF3e9rltiOlzBGsz6/pWA3FJ+U5U+wiOCcojcZMA9NBW8uv/ XDa3hB3M/KetQYYR6O7THiGDTb7pehlVKbFlG/7Ay82/7S4GC7hWebuJeQWMtKR6kEWw3p MkkJkmpyyCMq7NgR6ZxyDR9aE+SRzn0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732442931; a=rsa-sha256; cv=none; b=t4LsZKkkEPYDcXyjkp1dqBnuo6SMxVgvO1m/jGokOFGgykbjLawrlCUbTXbBxTgJzGYPrZ BTxaUgYNQ8GsO2Us09rSTiNAJDilmWNl6aTnna5PiIeKH35UsmAjtxy8GbBKOdo/ELf+Gw eotxK4ZCMHO6cDic/W4tSPmvxV9qBqQ= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=ggEhGLJf; spf=pass (imf30.hostedemail.com: domain of akpm@linux-foundation.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 4B28FA406A5; Sun, 24 Nov 2024 10:06:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5D91C4CECC; Sun, 24 Nov 2024 10:08:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1732442931; bh=JOaEzMsrupHbOYkmeB77Gn8/lgjUaj9fxhGXkH5xHaA=; h=Date:From:To:Cc:Subject:From; b=ggEhGLJfZesK8O9RXX3jmh5lwx+M+JvYmFPMrKrgjPnI7oDCK+kkfvdPhAKVhAUmH K7OlZ0URs5QE8GWmgg7DKQSZRoIDNVp2VsyxGOn7AWzdM5vbjGixZEzkZWH+tmDCLm FXljQod357ta7wwtzqx/LP8wlmf7c8q1OAzCdCiQ= Date: Sun, 24 Nov 2024 02:08:41 -0800 From: Andrew Morton To: Linus Torvalds Cc: linux-mm@kvack.org, mm-commits@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] non-MM updates for 6.13-rc1 Message-Id: <20241124020841.3a96d9e26be9ce4d5810d0b5@linux-foundation.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-Rspamd-Server: rspam10 X-Stat-Signature: 3hqyyfypwpwtwtf45bupo51c99eteeyz X-Rspamd-Queue-Id: DBC9F80003 X-Rspam-User: X-HE-Tag: 1732442928-870288 X-HE-Meta: U2FsdGVkX1/6un/P3tb5E62WBXlr7VQFkGTzHce3SkJq+VgYR4yOmQUBWiH8K1SAWUK1XiASGgEY1nFEyQLvI3iJsvK2SIL59JGeydIg9Xr627suUKU4X/eZJeYOup5f7DgpLXwGBLCq6MvoZ2k1KflAdKg7nrEWPyZ4b7yh2LImlOY58GV6fpZeKMP3mFAa2WsnWf4D2WJkDm0YsJIqK8XCkO2NpsnOOYoJvMdG9qa0cIq43L9pEfTlYDgzT4PbGBVVraXBH6EirSBrzsEVMeiBIHK7ewCq58N96TNodCwASq0P74n8JDkPZjLTpzBeWI3dhJrQVwylT8/fUgfXIk/+R65MolZ134NB/vPNaxSFFdsM/ZzlGWaHNL1/rLpTPbvgsw16iCUDKrFKvAtgb85XlPezA0LnVo7zu42Rn2eCIo+8ntdYGtMTxu21I7Hj5nyj++bwZxpA7448aqTXt5lLybWF9K0dCoG0LKl+kcAmxcOk6uwmWU2UN2PXtdfQoNQf259JI92UZejA0tSAfEwN5A2xSj6GOO2fAZwtL07UTYwLpuXQxd3Hq10lyXSczXHB8rzzzCubnbj7DNk92nM6GVSLditjcJa9mr8yWh8rFmYQDM7RRFJbvVKU5utIExjrVX1ndKQSF89vb2HacmLnbHXB+YXdE0PcitT01vMHwdV8BSKUd/oqrD1q8Qu6PNJEcM42aDEmkyRxzCJiG3ClH276FE8H5PMBzUvHF6Zk7mavSOqWfuFlhrKpGyMLmMf6FGD6xAIxHh0Q+pH1CLDyy3tbSJbVZngIC61vKbRNgfOYEX2LmxiDKKr8FlTwjuDthBMJrh6dv5+tFOz0T4zu3//s13BX2ctAJbQ1Ean/wQqrSKfprD6fVcp5E1t5TrXwmZzlUhbPwD7qPjoNnK+q08DeeUe/R7ixkEf4OvoqOl4xuNui8Yhr8snU9iivnz++dm8OYt7SuM5fezH MxoolIe1 MXH0B+husSzSW0JgWrVtvEGpZH3ixbp2d3RKk4FymIwDzMw/31BTODAPPFk8uKtAWbR8Ps3y4vE0wXIlFjzkTMQNBIEqDgeN4eG+Eh/5vh8nilBJEhdGVnzmHFcwn4SjIuMcxO4wTYPfiwgW1l7KFRidwegl7+EPx0tOjVnM2qJkmzRxschM8ycUB4BPbZkIzgPkLRbUrGmYcVpnWqbgvItEq9vnHw9n/QHPAbFKql6wU3ztt+fyNAN6+50oEv0znJBayj5IpP/OSimIckEfNn3hp34/d20juFSSabNxzXhZXOjGU9EgfxrOTfcsmDePz3MkzedutjSZQhTQ= 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: Linus, please merge this cycle's non-MM updates, thanks. Merge issues along with their linux-next resolutions are as follows: kernel/auditsc.c, vs security tree: https://lkml.kernel.org/r/20241014144648.1923104a@canb.auug.org.au lib/Makefile, vs asm-generic tree: https://lkml.kernel.org/r/20241029095525.0fba9d23@canb.auug.org.au The following changes since commit 59b723cd2adbac2a34fc8e12c74ae26ae45bf230: Linux 6.12-rc6 (2024-11-03 14:05:52 -1000) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm tags/mm-nonmm-stable-2024-11-24-02-05 for you to fetch changes up to 2c259a91d8d23a8266092b0dd51b8092877717a4: gdb: lx-symbols: do not error out on monolithic build (2024-11-14 22:51:14 -0800) ---------------------------------------------------------------- - The series "resource: A couple of cleanups" from Andy Shevchenko performs some cleanups in the resource management code. - The series "Improve the copy of task comm" from Yafang Shao addresses possible race-induced overflows in the management of task_struct.comm[]. - The series "Remove unnecessary header includes from {tools/}lib/list_sort.c" from Kuan-Wei Chiu adds some cleanups and a small fix to the list_sort library code and to its selftest. - The series "Enhance min heap API with non-inline functions and optimizations" also from Kuan-Wei Chiu optimizes and cleans up the min_heap library code. - The series "nilfs2: Finish folio conversion" from Ryusuke Konishi finishes off nilfs2's folioification. - The series "add detect count for hung tasks" from Lance Yang adds more userspace visibility into the hung-task detector's activity. - Apart from that, singelton patches in many places - please see the individual changelogs for details. ---------------------------------------------------------------- Alexandru Ardelean (2): util_macros.h: fix/rework find_closest() macros lib: util_macros_kunit: add kunit test for util_macros.h Andrew Kreimer (1): ocfs2: cluster: fix a typo Andy Shevchenko (2): resource: replace open coded resource_intersection() resource: introduce is_type_match() helper and use it Breno Leitao (1): scripts/decode_stacktrace.sh: remove trailing space Dmitry Antipov (1): ocfs2: fix uninitialized value in ocfs2_file_read_iter() Dr. David Alan Gilbert (1): ocfs2: remove unused errmsg function and table Etienne Buira (1): gdb: lx-symbols: do not error out on monolithic build Huang Ying (1): resource: avoid unnecessary resource tree walking in __region_intersects() I Hsin Cheng (1): list: test: check the size of every lists for list_cut_position*() Ilpo Järvinen (1): resource: correct reallocate_resource() documentation Kuan-Wei Chiu (16): lib/Kconfig.debug: move int_pow test option to runtime testing section lib/Makefile: make union-find compilation conditional on CONFIG_CPUSETS lib/list_sort: remove unnecessary header includes tools/lib/list_sort: remove unnecessary header includes perf tools: update expected diff for lib/list_sort.c lib/min_heap: introduce non-inline versions of min heap API functions lib min_heap: optimize min heap by prescaling counters for better performance lib min_heap: avoid indirect function call by providing default swap lib/test_min_heap: update min_heap_callbacks to use default builtin swap perf/core: update min_heap_callbacks to use default builtin swap dm vdo: update min_heap_callbacks to use default builtin swap bcache: update min_heap_callbacks to use default builtin swap bcachefs: clean up duplicate min_heap_callbacks declarations bcachefs: update min_heap_callbacks to use default builtin swap Documentation/core-api: add min heap API introduction MAINTAINERS: add entry for min heap library code Lance Yang (2): hung_task: add detect count for hung tasks hung_task: add docs for hung_task_detect_count Ma Wupeng (1): ipc: fix memleak if msg_init_ns failed in create_ipc_ns Matthew Wilcox (Oracle) (4): nilfs2: remove nilfs_writepage nilfs2: convert nilfs_page_count_clean_buffers() to take a folio nilfs2: convert nilfs_recovery_copy_block() to take a folio nilfs2: convert metadata aops from writepage to writepages Mirsad Todorovac (1): fs/proc/kcore.c: fix coccinelle reported ERROR instances Mohammed Anees (1): ocfs2: fix typo in comment Nataniel Farzan (1): Improve consistency of '#error' directive messages Ryusuke Konishi (8): nilfs2: convert segment buffer to be folio-based nilfs2: convert common metadata file code to be folio-based nilfs2: convert segment usage file to be folio-based nilfs2: convert persistent object allocator to be folio-based nilfs2: convert inode file to be folio-based nilfs2: convert DAT file to be folio-based nilfs2: remove nilfs_palloc_block_get_entry() nilfs2: convert checkpoint file to be folio-based Shuah Khan (1): tools: fix -Wunused-result in linux.c Sourabh Jain (1): kexec/crash: no crash update when kexec in progress Sui Jingfeng (2): scatterlist: fix a typo lib/scatterlist: use sg_phys() helper Tamir Duberstein (1): checkpatch: always parse orig_commit in fixes tag Thomas Weißschuh (1): reboot: move reboot_notifier_list to kernel/reboot.c Thorsten Blum (1): ipc/msg: replace one-element array with flexible array member Tio Zhang (1): kernel/watchdog: always restore watchdog_softlockup(,hardlockup)_user_enabled after proc show Uros Bizjak (5): perf/hw_breakpoint: use ERR_PTR_PCPU(), IS_ERR_PCPU() and PTR_ERR_PCPU() macros percpu: merge VERIFY_PERCPU_PTR() into its only user percpu: introduce PERCPU_PTR() macro percpu: cast percpu pointer in PERCPU_PTR() via unsigned long dma-buf: use atomic64_inc_return() in dma_buf_getfile() Vinicius Peixoto (1): lib/crc16_kunit.c: add KUnit tests for crc16 WangYuli (1): scripts/spelling.txt: add typo "exprienced" and "rewritting" Yafang Shao (7): get rid of __get_task_comm() auditsc: replace memcpy() with strscpy() security: replace memcpy() with get_task_comm() bpftool: ensure task comm is always NUL-terminated mm/util: fix possible race condition in kstrdup() mm/util: deduplicate code in {kstrdup,kstrndup,kmemdup_nul} drm: replace strcpy() with strscpy() Yu Jiaoliang (1): scripts/spelling.txt: add more spellings corrections Zhang Zekun (1): ocfs2: remove unused declaration in header file zhangguopeng (1): kernel/reboot: replace sprintf() with sysfs_emit() Documentation/admin-guide/sysctl/kernel.rst | 9 + Documentation/core-api/index.rst | 1 + Documentation/core-api/min_heap.rst | 300 ++++++++++++++++ MAINTAINERS | 9 + arch/alpha/include/asm/spinlock_types.h | 2 +- arch/arm/include/asm/spinlock_types.h | 2 +- arch/arm64/include/asm/spinlock_types.h | 2 +- arch/hexagon/include/asm/spinlock_types.h | 2 +- arch/powerpc/include/asm/simple_spinlock_types.h | 2 +- arch/powerpc/include/asm/spinlock_types.h | 2 +- arch/s390/include/asm/spinlock_types.h | 2 +- arch/sh/include/asm/spinlock_types.h | 2 +- arch/xtensa/include/asm/spinlock_types.h | 2 +- drivers/dma-buf/dma-buf.c | 2 +- drivers/gpu/drm/drm_framebuffer.c | 2 +- drivers/gpu/drm/i915/i915_gpu_error.c | 6 +- drivers/md/bcache/Kconfig | 1 + drivers/md/bcache/alloc.c | 11 +- drivers/md/bcache/bset.c | 14 +- drivers/md/bcache/extents.c | 10 +- drivers/md/bcache/movinggc.c | 10 +- drivers/md/dm-vdo/Kconfig | 1 + drivers/md/dm-vdo/repair.c | 2 +- drivers/md/dm-vdo/slab-depot.c | 10 +- fs/bcachefs/Kconfig | 1 + fs/bcachefs/clock.c | 25 +- fs/bcachefs/ec.c | 19 +- fs/exec.c | 10 - fs/nilfs2/alloc.c | 148 ++++---- fs/nilfs2/alloc.h | 4 +- fs/nilfs2/cpfile.c | 383 +++++++++++---------- fs/nilfs2/dat.c | 98 +++--- fs/nilfs2/dir.c | 2 +- fs/nilfs2/ifile.c | 10 +- fs/nilfs2/ifile.h | 4 +- fs/nilfs2/inode.c | 35 +- fs/nilfs2/mdt.c | 40 ++- fs/nilfs2/page.c | 4 +- fs/nilfs2/page.h | 4 +- fs/nilfs2/recovery.c | 17 +- fs/nilfs2/segbuf.c | 17 +- fs/nilfs2/sufile.c | 160 ++++----- fs/ocfs2/alloc.c | 2 +- fs/ocfs2/aops.h | 2 + fs/ocfs2/cluster/quorum.c | 2 +- fs/ocfs2/dlm/dlmapi.h | 2 - fs/ocfs2/dlm/dlmdebug.c | 53 --- fs/ocfs2/file.c | 4 + fs/ocfs2/quota.h | 1 - fs/proc/array.c | 2 +- fs/proc/kcore.c | 10 +- include/acpi/platform/aclinux.h | 2 +- include/linux/compiler-clang.h | 2 +- include/linux/compiler-gcc.h | 2 +- include/linux/min_heap.h | 357 +++++++++++++++---- include/linux/notifier.h | 2 - include/linux/percpu-defs.h | 21 +- include/linux/pm_wakeup.h | 2 +- include/linux/rwlock.h | 2 +- include/linux/rwlock_api_smp.h | 2 +- include/linux/scatterlist.h | 2 +- include/linux/sched.h | 28 +- include/linux/spinlock_api_smp.h | 2 +- include/linux/spinlock_types_up.h | 2 +- include/linux/spinlock_up.h | 2 +- include/linux/util_macros.h | 56 ++- init/Kconfig | 1 + ipc/msg.c | 2 +- ipc/namespace.c | 4 +- kernel/auditsc.c | 6 +- kernel/crash_core.c | 6 +- kernel/events/core.c | 15 +- kernel/events/hw_breakpoint.c | 4 +- kernel/hung_task.c | 18 + kernel/kthread.c | 2 +- kernel/notifier.c | 8 - kernel/reboot.c | 15 +- kernel/resource.c | 66 ++-- kernel/watchdog.c | 3 +- lib/Kconfig | 6 + lib/Kconfig.debug | 59 +++- lib/Makefile | 6 +- lib/crc16_kunit.c | 155 +++++++++ lib/list-test.c | 4 + lib/list_sort.c | 3 - lib/min_heap.c | 70 ++++ lib/scatterlist.c | 4 +- lib/test_min_heap.c | 16 +- lib/util_macros_kunit.c | 240 +++++++++++++ mm/util.c | 62 ++-- samples/hw_breakpoint/data_breakpoint.c | 4 +- scripts/checkpatch.pl | 37 +- scripts/decode_stacktrace.sh | 7 +- scripts/gdb/linux/modules.py | 3 + scripts/gdb/linux/symbols.py | 3 + scripts/spelling.txt | 33 ++ security/lsm_audit.c | 4 +- security/selinux/selinuxfs.c | 2 +- tools/bpf/bpftool/pids.c | 2 + tools/include/linux/compiler-gcc.h | 2 +- tools/lib/list_sort.c | 2 - .../perf/check-header_ignore_hunks/lib/list_sort.c | 11 +- tools/testing/shared/linux.c | 14 +- 103 files changed, 1952 insertions(+), 896 deletions(-) create mode 100644 Documentation/core-api/min_heap.rst create mode 100644 lib/crc16_kunit.c create mode 100644 lib/min_heap.c create mode 100644 lib/util_macros_kunit.c