lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 15 Oct 2021 09:42:19 +0800
From:   "Huang, Ying" <>
To:     Yang Shi <>
Subject: Re: [PATCH] mm: migrate: make demotion knob depend on migration

Yang Shi <> writes:

> The memory demotion needs to call migrate_pages() to do the jobs.  And
> it is controlled by a knob, however, the knob doesn't depend on
> CONFIG_MIGRATION.  The knob could be truned on even though MIGRATION is
> disabled, this will not cause any crash since migrate_pages() would just
> return -ENOSYS.  But it is definitely not optimal to go through demotion
> path then retry regular swap every time.
> And it doesn't make too much sense to have the knob visible to the users
> when !MIGRATION.  Move the related code from mempolicy.[h|c] to migrate.[h|c].

Sounds reasonable to me.  Thanks!

> Signed-off-by: Yang Shi <>

Acked-by: "Huang, Ying" <>

Best Regards,
Huang, Ying

Powered by blists - more mailing lists