Skip to content

Commit 2942242

Browse files
committed
Merge tag 'mm-hotfixes-stable-2025-07-24-18-03' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Pull misc fixes from Andrew Morton: "11 hotfixes. 9 are cc:stable and the remainder address post-6.15 issues or aren't considered necessary for -stable kernels. 7 are for MM" * tag 'mm-hotfixes-stable-2025-07-24-18-03' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: sprintf.h requires stdarg.h resource: fix false warning in __request_region() mm/damon/core: commit damos_quota_goal->nid kasan: use vmalloc_dump_obj() for vmalloc error reports mm/ksm: fix -Wsometimes-uninitialized from clang-21 in advisor_mode_show() mm: update MAINTAINERS entry for HMM nilfs2: reject invalid file types when reading inodes selftests/mm: fix split_huge_page_test for folio_split() tests mailmap: add entry for Senozhatsky mm/zsmalloc: do not pass __GFP_MOVABLE if CONFIG_COMPACTION=n mm/vmscan: fix hwpoisoned large folio handling in shrink_folio_list
2 parents 94ce1ac + 0dec720 commit 2942242

File tree

13 files changed

+60
-9
lines changed

13 files changed

+60
-9
lines changed

.mailmap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,10 @@ Sedat Dilek <[email protected]> <[email protected]>
694694
695695
696696
697+
Sergey Senozhatsky <[email protected]> <[email protected]>
698+
Sergey Senozhatsky <[email protected]> <[email protected]>
699+
Sergey Senozhatsky <[email protected]> <[email protected]>
700+
Sergey Senozhatsky <[email protected]> <[email protected]>
697701
698702
699703

CREDITS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,6 +1397,10 @@ N: Thomas Gleixner
13971397
13981398
D: NAND flash hardware support, JFFS2 on NAND flash
13991399

1400+
N: Jérôme Glisse
1401+
1402+
D: HMM - Heterogeneous Memory Management
1403+
14001404
N: Richard E. Gooch
14011405
14021406
D: parent process death signal to children

MAINTAINERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11009,7 +11009,8 @@ F: Documentation/ABI/testing/debugfs-hisi-zip
1100911009
F: drivers/crypto/hisilicon/zip/
1101011010

1101111011
HMM - Heterogeneous Memory Management
11012-
M: Jérôme Glisse <[email protected]>
11012+
M: Jason Gunthorpe <[email protected]>
11013+
M: Leon Romanovsky <[email protected]>
1101311014
1101411015
S: Maintained
1101511016
F: Documentation/mm/hmm.rst

fs/nilfs2/inode.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,18 @@ static int __nilfs_read_inode(struct super_block *sb,
472472
inode->i_op = &nilfs_symlink_inode_operations;
473473
inode_nohighmem(inode);
474474
inode->i_mapping->a_ops = &nilfs_aops;
475-
} else {
475+
} else if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) ||
476+
S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) {
476477
inode->i_op = &nilfs_special_inode_operations;
477478
init_special_inode(
478479
inode, inode->i_mode,
479480
huge_decode_dev(le64_to_cpu(raw_inode->i_device_code)));
481+
} else {
482+
nilfs_error(sb,
483+
"invalid file type bits in mode 0%o for inode %lu",
484+
inode->i_mode, ino);
485+
err = -EIO;
486+
goto failed_unmap;
480487
}
481488
nilfs_ifile_unmap_inode(raw_inode);
482489
brelse(bh);

include/linux/sprintf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include <linux/compiler_attributes.h>
66
#include <linux/types.h>
7+
#include <linux/stdarg.h>
78

89
int num_to_str(char *buf, int size, unsigned long long num, unsigned int width);
910

kernel/resource.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,8 +1279,9 @@ static int __request_region_locked(struct resource *res, struct resource *parent
12791279
* become unavailable to other users. Conflicts are
12801280
* not expected. Warn to aid debugging if encountered.
12811281
*/
1282-
if (conflict->desc == IORES_DESC_DEVICE_PRIVATE_MEMORY) {
1283-
pr_warn("Unaddressable device %s %pR conflicts with %pR",
1282+
if (parent == &iomem_resource &&
1283+
conflict->desc == IORES_DESC_DEVICE_PRIVATE_MEMORY) {
1284+
pr_warn("Unaddressable device %s %pR conflicts with %pR\n",
12841285
conflict->name, conflict, res);
12851286
}
12861287
if (conflict != parent) {

mm/damon/core.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,19 @@ static struct damos_quota_goal *damos_nth_quota_goal(
754754
return NULL;
755755
}
756756

757+
static void damos_commit_quota_goal_union(
758+
struct damos_quota_goal *dst, struct damos_quota_goal *src)
759+
{
760+
switch (dst->metric) {
761+
case DAMOS_QUOTA_NODE_MEM_USED_BP:
762+
case DAMOS_QUOTA_NODE_MEM_FREE_BP:
763+
dst->nid = src->nid;
764+
break;
765+
default:
766+
break;
767+
}
768+
}
769+
757770
static void damos_commit_quota_goal(
758771
struct damos_quota_goal *dst, struct damos_quota_goal *src)
759772
{
@@ -762,6 +775,7 @@ static void damos_commit_quota_goal(
762775
if (dst->metric == DAMOS_QUOTA_USER_INPUT)
763776
dst->current_value = src->current_value;
764777
/* keep last_psi_total as is, since it will be updated in next cycle */
778+
damos_commit_quota_goal_union(dst, src);
765779
}
766780

767781
/**
@@ -795,6 +809,7 @@ int damos_commit_quota_goals(struct damos_quota *dst, struct damos_quota *src)
795809
src_goal->metric, src_goal->target_value);
796810
if (!new_goal)
797811
return -ENOMEM;
812+
damos_commit_quota_goal_union(new_goal, src_goal);
798813
damos_add_quota_goal(dst, new_goal);
799814
}
800815
return 0;

mm/kasan/report.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,9 @@ static void print_address_description(void *addr, u8 tag,
399399
}
400400

401401
if (is_vmalloc_addr(addr)) {
402-
pr_err("The buggy address %px belongs to a vmalloc virtual mapping\n", addr);
402+
pr_err("The buggy address belongs to a");
403+
if (!vmalloc_dump_obj(addr))
404+
pr_cont(" vmalloc virtual mapping\n");
403405
page = vmalloc_to_page(addr);
404406
}
405407

mm/ksm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3669,10 +3669,10 @@ static ssize_t advisor_mode_show(struct kobject *kobj,
36693669
{
36703670
const char *output;
36713671

3672-
if (ksm_advisor == KSM_ADVISOR_NONE)
3673-
output = "[none] scan-time";
3674-
else if (ksm_advisor == KSM_ADVISOR_SCAN_TIME)
3672+
if (ksm_advisor == KSM_ADVISOR_SCAN_TIME)
36753673
output = "none [scan-time]";
3674+
else
3675+
output = "[none] scan-time";
36763676

36773677
return sysfs_emit(buf, "%s\n", output);
36783678
}

mm/memory-failure.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,6 +1561,10 @@ static int get_hwpoison_page(struct page *p, unsigned long flags)
15611561
return ret;
15621562
}
15631563

1564+
/*
1565+
* The caller must guarantee the folio isn't large folio, except hugetlb.
1566+
* try_to_unmap() can't handle it.
1567+
*/
15641568
int unmap_poisoned_folio(struct folio *folio, unsigned long pfn, bool must_kill)
15651569
{
15661570
enum ttu_flags ttu = TTU_IGNORE_MLOCK | TTU_SYNC | TTU_HWPOISON;

0 commit comments

Comments
 (0)