[PATCH STABLE ONLY] swap: fix swapfile page to sector mapping

2021-03-04 Thread Anthony Iliopoulos
The following patches fix the swapfile page-to-sector mapping for block devices that implement rw_page for all the stable kernels. This is related to the upstream fix of commit caf6912f3f4a ("swap: fix swapfile read/write offset"), but for kernels prior to v5.12-rc1 the bug only affects swapfiles

[PATCH STABLE 5.10 5.11] swap: fix swapfile page to sector mapping

2021-03-04 Thread Anthony Iliopoulos
kernel.org # 5.10+ Signed-off-by: Anthony Iliopoulos --- mm/page_io.c | 12 mm/swapfile.c | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/mm/page_io.c b/mm/page_io.c index 433df1263349..1541c0d6ad6e 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -37,7 +37,6

[PATCH STABLE 4.4] swap: fix swapfile page to sector mapping

2021-03-04 Thread Anthony Iliopoulos
kernel.org # 4.4 Signed-off-by: Anthony Iliopoulos --- mm/page_io.c | 11 +++ mm/swapfile.c | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/mm/page_io.c b/mm/page_io.c index b995a5ba5e8f..ab92cd559404 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -32,7 +32,6

[PATCH STABLE 4.14 4.19] swap: fix swapfile page to sector mapping

2021-03-04 Thread Anthony Iliopoulos
kernel.org # 4.14 4.19 Signed-off-by: Anthony Iliopoulos --- mm/page_io.c | 11 +++ mm/swapfile.c | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/mm/page_io.c b/mm/page_io.c index 08d2eae58fce..9b646f07f47f 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -

[PATCH STABLE 4.9] swap: fix swapfile page to sector mapping

2021-03-04 Thread Anthony Iliopoulos
kernel.org # 4.9 Signed-off-by: Anthony Iliopoulos --- mm/page_io.c | 11 +++ mm/swapfile.c | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/mm/page_io.c b/mm/page_io.c index a2651f58c86a..ad0e0ce31090 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -32,7 +32,6

[PATCH STABLE 5.4] swap: fix swapfile page to sector mapping

2021-03-04 Thread Anthony Iliopoulos
kernel.org # 5.4 Signed-off-by: Anthony Iliopoulos --- mm/page_io.c | 11 +++ mm/swapfile.c | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/mm/page_io.c b/mm/page_io.c index 60a66a58b9bf..f03dca3f43d9 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -37,7 +37,6

Re: [PATCH STABLE 5.10 5.11] swap: fix swapfile page to sector mapping

2021-03-04 Thread Anthony Iliopoulos
On Thu, Mar 04, 2021 at 04:16:26PM +0100, Greg Kroah-Hartman wrote: > On Thu, Mar 04, 2021 at 04:08:24PM +0100, Anthony Iliopoulos wrote: > > commit caf6912f3f4af7232340d500a4a2008f81b93f14 upstream. > > No, this does not look like that commit. > > Why can I not just tak

Re: [PATCH STABLE 5.10 5.11] swap: fix swapfile page to sector mapping

2021-03-04 Thread Anthony Iliopoulos
On Thu, Mar 04, 2021 at 05:58:49PM +0100, Greg Kroah-Hartman wrote: > On Thu, Mar 04, 2021 at 05:30:00PM +0100, Anthony Iliopoulos wrote: > > On Thu, Mar 04, 2021 at 04:16:26PM +0100, Greg Kroah-Hartman wrote: > > > On Thu, Mar 04, 2021 at 04:08:24PM +0100, Anthony Iliopoulos wro

Re: [PATCH 4.19 12/58] dm integrity: select CRYPTO_SKCIPHER

2021-01-25 Thread Anthony Iliopoulos
On Mon, Jan 25, 2021 at 07:58:29PM +0100, Pavel Machek wrote: > Hi! > > > From: Anthony Iliopoulos > > > > [ Upstream commit f7b347acb5f6c29d9229bb64893d8b6a2c7949fb ] > > > > The integrity target relies on skcipher for encryption/decryption, but >

[PATCH] dm integrity: select the Kconfig option CRYPTO_SKCIPHER

2020-12-14 Thread Anthony Iliopoulos
-by: Anthony Iliopoulos --- drivers/md/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig index 30ba3573626c..5c0e7063f5f5 100644 --- a/drivers/md/Kconfig +++ b/drivers/md/Kconfig @@ -585,6 +585,7 @@ config DM_INTEGRITY select

Re: [PATCH] x86, hugetlb: add missing TLB page invalidation for hugetlb_cow()

2014-05-17 Thread Anthony Iliopoulos
Hi Oren, On Thu, May 15, 2014 at 10:05:05AM +0300, Oren Twaig wrote: > > On 05/15/2014 08:00 PM, Anthony Iliopoulos wrote: > > I have dismissed this case, since I assume that there are many more > > cycles spent in servicing the TLB invalidation IPI, walking the pgtable >

[PATCH] x86, hugetlb: add missing TLB page invalidation for hugetlb_cow()

2014-05-13 Thread Anthony Iliopoulos
forked child process, even after hugetlb_cow(). The thread will not see the updated page as long as the stale DTLB entry remains cached, the thread attempts to write into the page, the child process exits, or the thread gets migrated to a different processor. Signed-off-by: Anthony Iliopoulos

Re: [PATCH] x86, hugetlb: add missing TLB page invalidation for hugetlb_cow()

2014-05-14 Thread Anthony Iliopoulos
On Tue, May 13, 2014 at 03:44:55PM -0700, Dave Hansen wrote: > On 05/14/2014 02:29 AM, Anthony Iliopoulos wrote: > > The invalidation is required in order to maintain proper semantics > > under CoW conditions. In scenarios where a process clones several > > threads, a threa

[PATCH] nvme/multipath: revalidate nvme_ns_head gendisk in nvme_validate_ns

2019-07-29 Thread Anthony Iliopoulos
endisk in addition to the per-controller gendisk, when multipath is enabled. Signed-off-by: Anthony Iliopoulos --- drivers/nvme/host/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 8f3fbe5ca937..80c7a7ee240b 100644 --- a/driver

[tip:x86/urgent] x86, mm, hugetlb: Add missing TLB page invalidation for hugetlb_cow()

2014-05-13 Thread tip-bot for Anthony Iliopoulos
Commit-ID: 9844f5462392b53824e8b86726e7c33b5ecbb676 Gitweb: http://git.kernel.org/tip/9844f5462392b53824e8b86726e7c33b5ecbb676 Author: Anthony Iliopoulos AuthorDate: Wed, 14 May 2014 11:29:48 +0200 Committer: H. Peter Anvin CommitDate: Tue, 13 May 2014 16:34:09 -0700 x86, mm, hugetlb