[PATCH] x86/efi: Do not release sub-1MB memory regions when the crashkernel option is specified

2021-04-07 Thread Lianbo Jiang
specified. Signed-off-by: Lianbo Jiang --- arch/x86/platform/efi/quirks.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/x86/platform/efi/quirks.c b/arch/x86/platform/efi/quirks.c index 67d93a243c35..637f932c4fd4 100644 --- a/arch/x86/platform/efi/quirks.c +++ b/arch/x86/pla

[PATCH v3 2/2] iommu: use the __iommu_attach_device() directly for deferred attach

2021-01-26 Thread Lianbo Jiang
iommu_attach_device() is not suitable for handling this situation. Signed-off-by: Lianbo Jiang --- drivers/iommu/dma-iommu.c | 18 +++--- drivers/iommu/iommu.c | 10 ++ include/linux/iommu.h | 1 + 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/drivers/iommu

[PATCH v3 1/2] dma-iommu: use static-key to minimize the impact in the fast-path

2021-01-26 Thread Lianbo Jiang
Let's move out the is_kdump_kernel() check from iommu_dma_deferred_attach() to iommu_dma_init(), and use the static-key in the fast-path to minimize the impact in the normal case. Signed-off-by: Lianbo Jiang Co-developed-by: Robin Murphy Signed-off-by: Robin Murphy --- drivers/iommu/dma

[PATCH v3 0/2] iommu: fix the failure of deferred attach for iommu attach device

2021-01-26 Thread Lianbo Jiang
and change its name to iommu_deferred_attach() [3] remove the "extern" from the definition of iommu_deferred_attach() in include/linux/iommu.h Lianbo Jiang (2): dma-iommu: use static-key to minimize the impact in the fast-path iommu: use the __iommu_attach_device() directly for defer

[PATCH 0/2 v2] iommu: fix the failure of deferred attach for iommu attach device

2021-01-19 Thread Lianbo Jiang
static-key to minimize the impact in the fast-path Lianbo Jiang (2): dma-iommu: use static-key to minimize the impact in the fast-path iommu: use the __iommu_attach_device() directly for deferred attach drivers/iommu/dma-iommu.c | 29 +++-- drivers/iommu/iommu.c

[PATCH 2/2 v2] iommu: use the __iommu_attach_device() directly for deferred attach

2021-01-19 Thread Lianbo Jiang
iommu_attach_device() is not suitable for handling this situation. Signed-off-by: Lianbo Jiang --- drivers/iommu/dma-iommu.c | 18 +++--- drivers/iommu/iommu.c | 12 include/linux/iommu.h | 2 ++ 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers

[PATCH 1/2 v2] dma-iommu: use static-key to minimize the impact in the fast-path

2021-01-19 Thread Lianbo Jiang
Let's move out the is_kdump_kernel() check from iommu_dma_deferred_attach() to iommu_dma_init(), and use the static-key in the fast-path to minimize the impact in the normal case. Signed-off-by: Lianbo Jiang Co-developed-by: Robin Murphy Signed-off-by: Robin Murphy --- drivers/iommu/dma

[PATCH] iommu: check for the deferred attach when attaching a device

2020-12-25 Thread Lianbo Jiang
such as the bnxt_en driver. That can be reproduced easily in kdump kernel when SME is active. Add a check for the deferred attach in the iommu_attach_device() and allow to attach the deferred device regardless of how many devices are in a group. Signed-off-by: Lianbo Jiang --- drivers/iommu/iommu.c | 5

[PATCH] docs: admin-guide: update kdump documentation due to change of crash URL

2020-09-18 Thread Lianbo Jiang
Since crash utility has moved to github, the original URL is no longer available. Let's update it accordingly. Suggested-by: Dave Young Signed-off-by: Lianbo Jiang --- Documentation/admin-guide/kdump/kdump.rst | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[tip: x86/urgent] kexec: Improve & fix crash_exclude_mem_range() to handle overlapping ranges

2020-08-06 Thread tip-bot2 for Lianbo Jiang
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: a2e9a95d2190ef55bf0724ecdf8a466d393a86b6 Gitweb: https://git.kernel.org/tip/a2e9a95d2190ef55bf0724ecdf8a466d393a86b6 Author:Lianbo Jiang AuthorDate:Tue, 04 Aug 2020 12:49:32 +08:00

[tip: x86/urgent] x86/crash: Correct the address boundary of function parameters

2020-08-06 Thread tip-bot2 for Lianbo Jiang
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: a3e1c3bb24e2ff2927af5e30c2bebe669bb84196 Gitweb: https://git.kernel.org/tip/a3e1c3bb24e2ff2927af5e30c2bebe669bb84196 Author:Lianbo Jiang AuthorDate:Tue, 04 Aug 2020 12:49:31 +08:00

[tip: x86/urgent] kexec_file: Correctly output debugging information for the PT_LOAD ELF header

2020-08-06 Thread tip-bot2 for Lianbo Jiang
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 475f63ae63b5102ae6423d1712333929d04d6ecc Gitweb: https://git.kernel.org/tip/475f63ae63b5102ae6423d1712333929d04d6ecc Author:Lianbo Jiang AuthorDate:Tue, 04 Aug 2020 12:49:33 +08:00

[tip: x86/urgent] kexec_file: Correctly output debugging information for the PT_LOAD ELF header

2020-08-06 Thread tip-bot2 for Lianbo Jiang
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 8ca346039f70cf92dbada6c06048efde165b191f Gitweb: https://git.kernel.org/tip/8ca346039f70cf92dbada6c06048efde165b191f Author:Lianbo Jiang AuthorDate:Tue, 04 Aug 2020 12:49:33 +08:00

[tip: x86/urgent] x86/crash: Correct the address boundary of function parameters

2020-08-06 Thread tip-bot2 for Lianbo Jiang
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 5b89a35f8c11a7846b06ac729d7de72044f7fc60 Gitweb: https://git.kernel.org/tip/5b89a35f8c11a7846b06ac729d7de72044f7fc60 Author:Lianbo Jiang AuthorDate:Tue, 04 Aug 2020 12:49:31 +08:00

[tip: x86/urgent] kexec: Improve & fix crash_exclude_mem_range() to handle overlapping ranges

2020-08-06 Thread tip-bot2 for Lianbo Jiang
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 12e4e432ac4d65020ba85037da06f2c886188e4f Gitweb: https://git.kernel.org/tip/12e4e432ac4d65020ba85037da06f2c886188e4f Author:Lianbo Jiang AuthorDate:Tue, 04 Aug 2020 12:49:32 +08:00

[PATCH 2/3] kexec: Improve the crash_exclude_mem_range() to handle the overlapping ranges

2020-08-03 Thread Lianbo Jiang
extend the crash_exclude_mem_range() to handle the overlapping ranges. Signed-off-by: Lianbo Jiang --- kernel/kexec_file.c | 31 +-- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c index 09cc78df53c6..41616b6a80ad 100644 --- a/

[PATCH 3/3] kexec_file: correctly output debugging information for the PT_LOAD elf header

2020-08-03 Thread Lianbo Jiang
information. Signed-off-by: Lianbo Jiang --- kernel/kexec_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c index 41616b6a80ad..e2c03b4ce31b 100644 --- a/kernel/kexec_file.c +++ b/kernel/kexec_file.c @@ -1323,10 +1323,10 @@ int

[PATCH 0/3] x86/kexec_file: Fix some corners bugs and improve the crash_exclude_mem_range()

2020-08-03 Thread Lianbo Jiang
[3] [PATCH 3/3] kexec_file: correctly output debugging information for the PT_LOAD elf header Lianbo Jiang (3): x86/crash: Correct the address boundary of function parameters kexec: Improve the crash_exclude_mem_range() to handle the overlapping ranges kexec_file: correctly output

[PATCH 1/3] x86/crash: Correct the address boundary of function parameters

2020-08-03 Thread Lianbo Jiang
Let's carefully handle the boundary of the function parameter to make sure that the arguments passed doesn't exceed the address range. Signed-off-by: Lianbo Jiang --- arch/x86/kernel/crash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/crash.c b/arch/x86

[PATCH v2] kexec: Do not verify the signature without the lockdown or mandatory signature

2020-06-01 Thread Lianbo Jiang
verification is mandated. Otherwise, we lift the bar for any kernel image. Signed-off-by: Lianbo Jiang --- Changes since v1: [1] Modify the log level(suggested by Jiri Bohac) kernel/kexec_file.c | 34 ++ 1 file changed, 6 insertions(+), 28 deletions(-) diff --git

[PATCH] kexec: Do not verify the signature without the lockdown or mandatory signature

2020-05-24 Thread Lianbo Jiang
verification is mandated. Otherwise, we lift the bar for any kernel image. Signed-off-by: Lianbo Jiang --- kernel/kexec_file.c | 37 ++--- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c index faa74d5f6941

[PATCH 0/3 v4] x86/kdump: Fix 'kmem -s' reported an invalid freepointer when SME was active

2019-10-17 Thread Lianbo Jiang
Lianbo Jiang (3): x86/kdump: always reserve the low 1MiB when the crashkernel option is specified x86/kdump: remove the unused crash_copy_backup_region() x86/kdump: clean up all the code related to the backup region arch/x86/include/asm/crash.h | 1 - arch/x86/include/asm/kexec.h

[PATCH v2] x86/kdump: Fix 'kmem -s' reported an invalid freepointer when SME was active

2019-10-07 Thread Lianbo Jiang
e first 640k area to a backup region in the purgatory(). Signed-off-by: Lianbo Jiang --- Changes since v1: 1. Improve patch log 2. Change the checking condition from sme_active() to sme_active() && strstr(boot_command_line, "crashkernel=") arch/x86/kernel/setup.c | 3 +++ 1 file

[PATCH] x86/kdump: Fix 'kmem -s' reported an invalid freepointer when SME was active

2019-09-19 Thread Lianbo Jiang
t the allocated memory does not fall into the first 640k area. So, no need to worry about whether kernel can correctly copy the contents of the first 640K area to a backup region in purgatory(). Signed-off-by: Lianbo Jiang --- arch/x86/kernel/setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[tip:x86/kdump] fs/proc/vmcore: Enable dumping of encrypted memory when SEV was active

2019-06-20 Thread tip-bot for Lianbo Jiang
Commit-ID: 4eb5fec31e613105668a1472d5876f3d0558e5d8 Gitweb: https://git.kernel.org/tip/4eb5fec31e613105668a1472d5876f3d0558e5d8 Author: Lianbo Jiang AuthorDate: Tue, 30 Apr 2019 15:44:21 +0800 Committer: Borislav Petkov CommitDate: Thu, 20 Jun 2019 10:07:49 +0200 fs/proc/vmcore

[tip:x86/kdump] x86/kexec: Set the C-bit in the identity map page table when SEV is active

2019-06-20 Thread tip-bot for Lianbo Jiang
Commit-ID: 85784d16c2cf172cf1ebaf2390d6b7c4045d659c Gitweb: https://git.kernel.org/tip/85784d16c2cf172cf1ebaf2390d6b7c4045d659c Author: Lianbo Jiang AuthorDate: Tue, 30 Apr 2019 15:44:20 +0800 Committer: Borislav Petkov CommitDate: Thu, 20 Jun 2019 10:07:12 +0200 x86/kexec: Set the C

[tip:x86/kdump] x86/kexec: Do not map kexec area as decrypted when SEV is active

2019-06-20 Thread tip-bot for Lianbo Jiang
Commit-ID: 1a79c1b8a04153c4c387518967ce851f89e22733 Gitweb: https://git.kernel.org/tip/1a79c1b8a04153c4c387518967ce851f89e22733 Author: Lianbo Jiang AuthorDate: Tue, 30 Apr 2019 15:44:19 +0800 Committer: Borislav Petkov CommitDate: Thu, 20 Jun 2019 10:06:46 +0200 x86/kexec: Do not map

[tip:x86/kdump] x86/crash: Add e820 reserved ranges to kdump kernel's e820 table

2019-06-20 Thread tip-bot for Lianbo Jiang
Commit-ID: 980621daf368f2b9aa69c7ea01baa654edb7577b Gitweb: https://git.kernel.org/tip/980621daf368f2b9aa69c7ea01baa654edb7577b Author: Lianbo Jiang AuthorDate: Tue, 23 Apr 2019 09:30:07 +0800 Committer: Borislav Petkov CommitDate: Thu, 20 Jun 2019 10:05:06 +0200 x86/crash: Add e820

[tip:x86/kdump] x86/mm: Rework ioremap resource mapping determination

2019-06-20 Thread tip-bot for Lianbo Jiang
Commit-ID: 5da04cc86d1215fd9fe0e5c88ead6e8428a75e56 Gitweb: https://git.kernel.org/tip/5da04cc86d1215fd9fe0e5c88ead6e8428a75e56 Author: Lianbo Jiang AuthorDate: Tue, 23 Apr 2019 09:30:06 +0800 Committer: Borislav Petkov CommitDate: Thu, 20 Jun 2019 09:58:07 +0200 x86/mm: Rework

[tip:x86/kdump] x86/e820, ioport: Add a new I/O resource descriptor IORES_DESC_RESERVED

2019-06-20 Thread tip-bot for Lianbo Jiang
Commit-ID: ae9e13d621d6795ec1ad6bf10bd2549c6c3feca4 Gitweb: https://git.kernel.org/tip/ae9e13d621d6795ec1ad6bf10bd2549c6c3feca4 Author: Lianbo Jiang AuthorDate: Tue, 23 Apr 2019 09:30:05 +0800 Committer: Borislav Petkov CommitDate: Thu, 20 Jun 2019 09:54:31 +0200 x86/e820, ioport: Add

[PATCH v2] scsi: smartpqi: properly set both the DMA mask and the coherent DMA mask in pqi_pci_init()

2019-05-26 Thread Lianbo Jiang
and coherent, in order to inform the kernel about the devices DMA addressing capabilities. Signed-off-by: Lianbo Jiang Acked-by: Don Brace Tested-by: Don Brace --- Changes since v1: 1. Add the extra description suggested by Tom to patch log. 2. Add Don's Acked-by and Tested-by to the commit

[PATCH] scsi: smartpqi: properly set both the DMA mask and the coherent DMA mask in pqi_pci_init()

2019-05-22 Thread Lianbo Jiang
]: Warning: dracut-initqueue timeout - starting timeout scripts For correct operation, lets call the dma_set_mask_and_coherent() to properly set the mask for both streaming and coherent, in order to inform the kernel about the devices DMA addressing capabilities. Signed-off-by: Lianbo Jiang

[PATCH 3/3 v9] x86/kexec_file: add reserved e820 ranges to kdump kernel e820 table

2019-03-21 Thread Lianbo Jiang
ot present at all in kdump kernel e820 table, those reserved regions are considered as encrypted, it goes wrong. The e820 reserved range is useful in kdump kernel, so it is necessary to pass the e820 reserved ranges to kdump kernel. Suggested-by: Dave Young Signed-off-by: Lianbo Jiang --- arch/

[PATCH 1/3 v9] x86/mm: Change the examination condition to avoid confusion

2019-03-21 Thread Lianbo Jiang
Following the commit <0e4c12b45aa8> ("x86/mm, resource: Use PAGE_KERNEL protection for ioremap of memory pages"), here it is really checking for the 'IORES_DESC_ACPI_*' values. Therefore, it is necessary to change the examination condition to avoid confusion. Signed-off-

[tip:x86/kdump] kdump: Document kernel data exported in the vmcoreinfo note

2019-01-15 Thread tip-bot for Lianbo Jiang
Commit-ID: f263245a0ce2c4e23b89a58fa5f7dfc048e11929 Gitweb: https://git.kernel.org/tip/f263245a0ce2c4e23b89a58fa5f7dfc048e11929 Author: Lianbo Jiang AuthorDate: Thu, 10 Jan 2019 20:19:43 +0800 Committer: Borislav Petkov CommitDate: Tue, 15 Jan 2019 11:05:28 +0100 kdump: Document

[tip:x86/kdump] x86/kdump: Export the SME mask to vmcoreinfo

2019-01-11 Thread tip-bot for Lianbo Jiang
Commit-ID: 65f750e5457aef9a8085a99d613fea0430303e93 Gitweb: https://git.kernel.org/tip/65f750e5457aef9a8085a99d613fea0430303e93 Author: Lianbo Jiang AuthorDate: Thu, 10 Jan 2019 20:19:44 +0800 Committer: Borislav Petkov CommitDate: Fri, 11 Jan 2019 16:09:25 +0100 x86/kdump: Export

[PATCH 1/2 v6] kdump: add the vmcoreinfo documentation

2019-01-10 Thread Lianbo Jiang
This document lists some variables that export to vmcoreinfo, and briefly describles what these variables indicate. It should be instructive for many people who do not know the vmcoreinfo. Suggested-by: Borislav Petkov Signed-off-by: Lianbo Jiang --- Documentation/kdump/vmcoreinfo.txt | 500

[PATCH 2/2 v6] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo

2019-01-10 Thread Lianbo Jiang
the true physical address. Signed-off-by: Lianbo Jiang --- arch/x86/kernel/machine_kexec_64.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c index 4c8acdfdc5a7..bc4108096b18 100644 --- a/arch/x86/kernel/machine_kexec_64

[PATCH 0/2 v6] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo

2019-01-10 Thread Lianbo Jiang
. Improve patch log. Lianbo Jiang (2): kdump: add the vmcoreinfo documentation kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo Documentation/kdump/vmcoreinfo.txt | 500 + arch/x86/kernel/machine_kexec_64.c | 3 + 2 files changed, 503 insertions

[PATCH 1/2 v5] kdump: add the vmcoreinfo documentation

2019-01-06 Thread Lianbo Jiang
-by: Borislav Petkov Signed-off-by: Lianbo Jiang --- Documentation/kdump/vmcoreinfo.txt | 500 + 1 file changed, 500 insertions(+) create mode 100644 Documentation/kdump/vmcoreinfo.txt diff --git a/Documentation/kdump/vmcoreinfo.txt b/Documentation/kdump/vmcoreinfo.txt new

[PATCH 0/2 v5] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo

2019-01-06 Thread Lianbo Jiang
in this document. 3. Correct some of the mistakes in this document. *** BLURB HERE *** Lianbo Jiang (2): kdump: add the vmcoreinfo documentation kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo Documentation/kdump/vmcoreinfo.txt | 500 + arch/x86/kernel

[PATCH 2/2 v5] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo

2019-01-06 Thread Lianbo Jiang
address. Signed-off-by: Lianbo Jiang --- arch/x86/kernel/machine_kexec_64.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c index 4c8acdfdc5a7..bc4108096b18 100644 --- a/arch/x86/kernel/machine_kexec_64.c +++ b/arch/x86

[PATCH 1/2 v4] kdump: add the vmcoreinfo documentation

2018-12-19 Thread Lianbo Jiang
-by: Borislav Petkov Signed-off-by: Lianbo Jiang --- Documentation/kdump/vmcoreinfo.txt | 513 + 1 file changed, 513 insertions(+) create mode 100644 Documentation/kdump/vmcoreinfo.txt diff --git a/Documentation/kdump/vmcoreinfo.txt b/Documentation/kdump/vmcoreinfo.txt new

[PATCH 2/2 v4] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo

2018-12-19 Thread Lianbo Jiang
address. Signed-off-by: Lianbo Jiang --- arch/x86/kernel/machine_kexec_64.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c index 4c8acdfdc5a7..bc4108096b18 100644 --- a/arch/x86/kernel/machine_kexec_64.c +++ b/arch/x86

[PATCH 0/2 v4] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo

2018-12-19 Thread Lianbo Jiang
it become more clear and easy to read. 2. Move sme_mask comments in the code to the vmcoreinfo document. 3. Improve patch log. Lianbo Jiang (2): kdump: add the vmcoreinfo documentation kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo Documentation/kdump/vmcoreinfo.txt | 513

[PATCH 2/2 v3] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo

2018-12-16 Thread Lianbo Jiang
address. Signed-off-by: Lianbo Jiang --- arch/x86/kernel/machine_kexec_64.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c index 4c8acdfdc5a7..1860fe24117d 100644 --- a/arch/x86/kernel/machine_kexec_64.c

[PATCH 0/2 v3] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo

2018-12-16 Thread Lianbo Jiang
comment for the code. 3. Improve the patch log. 4. Add the vmcoreinfo documentation. Changes since v2: 1. Improve the vmcoreinfo document, add more descripts for these variables exported. 2. Fix spelling errors in the document. Lianbo Jiang (2): kdump: add the vmcoreinfo documentation kdump

[PATCH 1/2 v3] kdump: add the vmcoreinfo documentation

2018-12-16 Thread Lianbo Jiang
-by: Borislav Petkov Signed-off-by: Lianbo Jiang --- Documentation/kdump/vmcoreinfo.txt | 456 + 1 file changed, 456 insertions(+) create mode 100644 Documentation/kdump/vmcoreinfo.txt diff --git a/Documentation/kdump/vmcoreinfo.txt b/Documentation/kdump/vmcoreinfo.txt

[PATCH 0/2 v7] add reserved e820 ranges to the kdump kernel e820 table

2018-11-15 Thread Lianbo Jiang
ese patches log. Changes since v6: 1. Modify the [PATCH 1/2], and add the new I/O resource descriptor 'IORES_DESC_RESERVED' for the iomem resources search interfaces. 2. Modify the [PATCH 2/2], and walk through io resource based on the new descriptor 'IORES_DESC_RESERVED'. Lianbo Jiang (2):

[PATCH 0/2 v7] add reserved e820 ranges to the kdump kernel e820 table

2018-11-15 Thread Lianbo Jiang
ese patches log. Changes since v6: 1. Modify the [PATCH 1/2], and add the new I/O resource descriptor 'IORES_DESC_RESERVED' for the iomem resources search interfaces. 2. Modify the [PATCH 2/2], and walk through io resource based on the new descriptor 'IORES_DESC_RESERVED'. Lianbo Jiang (2):

[tip:x86/mm] kdump, proc/vmcore: Enable kdumping encrypted memory with SME enabled

2018-10-06 Thread tip-bot for Lianbo Jiang
Commit-ID: 992b649a3f013465d8128da02e5449def662a4c3 Gitweb: https://git.kernel.org/tip/992b649a3f013465d8128da02e5449def662a4c3 Author: Lianbo Jiang AuthorDate: Sun, 30 Sep 2018 16:37:41 +0800 Committer: Borislav Petkov CommitDate: Sat, 6 Oct 2018 12:09:26 +0200 kdump, proc/vmcore

[tip:x86/mm] iommu/amd: Remap the IOMMU device table with the memory encryption mask for kdump

2018-10-06 Thread tip-bot for Lianbo Jiang
Commit-ID: 8780158cf977ea5f9912931a30b3d575b36dba22 Gitweb: https://git.kernel.org/tip/8780158cf977ea5f9912931a30b3d575b36dba22 Author: Lianbo Jiang AuthorDate: Sun, 30 Sep 2018 11:10:32 +0800 Committer: Borislav Petkov CommitDate: Sat, 6 Oct 2018 12:08:24 +0200 iommu/amd: Remap

[tip:x86/mm] kdump, proc/vmcore: Enable kdumping encrypted memory with SME enabled

2018-10-06 Thread tip-bot for Lianbo Jiang
Commit-ID: 992b649a3f013465d8128da02e5449def662a4c3 Gitweb: https://git.kernel.org/tip/992b649a3f013465d8128da02e5449def662a4c3 Author: Lianbo Jiang AuthorDate: Sun, 30 Sep 2018 16:37:41 +0800 Committer: Borislav Petkov CommitDate: Sat, 6 Oct 2018 12:09:26 +0200 kdump, proc/vmcore

[tip:x86/mm] iommu/amd: Remap the IOMMU device table with the memory encryption mask for kdump

2018-10-06 Thread tip-bot for Lianbo Jiang
Commit-ID: 8780158cf977ea5f9912931a30b3d575b36dba22 Gitweb: https://git.kernel.org/tip/8780158cf977ea5f9912931a30b3d575b36dba22 Author: Lianbo Jiang AuthorDate: Sun, 30 Sep 2018 11:10:32 +0800 Committer: Borislav Petkov CommitDate: Sat, 6 Oct 2018 12:08:24 +0200 iommu/amd: Remap

[tip:x86/mm] kexec: Allocate decrypted control pages for kdump if SME is enabled

2018-10-06 Thread tip-bot for Lianbo Jiang
Commit-ID: 9cf38d5559e813cccdba8b44c82cc46ba48d0896 Gitweb: https://git.kernel.org/tip/9cf38d5559e813cccdba8b44c82cc46ba48d0896 Author: Lianbo Jiang AuthorDate: Sun, 30 Sep 2018 11:10:31 +0800 Committer: Borislav Petkov CommitDate: Sat, 6 Oct 2018 12:01:51 +0200 kexec: Allocate

[tip:x86/mm] x86/ioremap: Add an ioremap_encrypted() helper

2018-10-06 Thread tip-bot for Lianbo Jiang
Commit-ID: c3a7a61c192ec350330128edb13db33a9bc0ace1 Gitweb: https://git.kernel.org/tip/c3a7a61c192ec350330128edb13db33a9bc0ace1 Author: Lianbo Jiang AuthorDate: Thu, 27 Sep 2018 15:19:51 +0800 Committer: Borislav Petkov CommitDate: Sat, 6 Oct 2018 11:57:51 +0200 x86/ioremap: Add

[tip:x86/mm] kexec: Allocate decrypted control pages for kdump if SME is enabled

2018-10-06 Thread tip-bot for Lianbo Jiang
Commit-ID: 9cf38d5559e813cccdba8b44c82cc46ba48d0896 Gitweb: https://git.kernel.org/tip/9cf38d5559e813cccdba8b44c82cc46ba48d0896 Author: Lianbo Jiang AuthorDate: Sun, 30 Sep 2018 11:10:31 +0800 Committer: Borislav Petkov CommitDate: Sat, 6 Oct 2018 12:01:51 +0200 kexec: Allocate

[tip:x86/mm] x86/ioremap: Add an ioremap_encrypted() helper

2018-10-06 Thread tip-bot for Lianbo Jiang
Commit-ID: c3a7a61c192ec350330128edb13db33a9bc0ace1 Gitweb: https://git.kernel.org/tip/c3a7a61c192ec350330128edb13db33a9bc0ace1 Author: Lianbo Jiang AuthorDate: Thu, 27 Sep 2018 15:19:51 +0800 Committer: Borislav Petkov CommitDate: Sat, 6 Oct 2018 11:57:51 +0200 x86/ioremap: Add

[PATCH v7 RESEND 1/4] x86/ioremap: add a function ioremap_encrypted() to remap kdump old memory

2018-09-27 Thread Lianbo Jiang
ke them an before. ioremap_encrypted()\ ioremap_cache() | ioremap_prot() | ioremap_wt()|->__ioremap_caller() ioremap_wc()| ioremap_uc() | ioremap_nocache() / Signed-off-by: Lianbo Jiang Reviewed-by: Tom Lendacky --- arch/x86/include/asm/io

[PATCH v7 RESEND 1/4] x86/ioremap: add a function ioremap_encrypted() to remap kdump old memory

2018-09-27 Thread Lianbo Jiang
ke them an before. ioremap_encrypted()\ ioremap_cache() | ioremap_prot() | ioremap_wt()|->__ioremap_caller() ioremap_wc()| ioremap_uc() | ioremap_nocache() / Signed-off-by: Lianbo Jiang Reviewed-by: Tom Lendacky --- arch/x86/include/asm/io

[PATCH 0/2] x86/kexec_file: add reserved e820 ranges to the kdump kernel e820 table

2018-09-17 Thread Lianbo Jiang
the following patch, which uses to fix an upstream bug. For more information, you can refer to the link below. https://lore.kernel.org/patchwork/patch/986979/ Lianbo Jiang (2): x86/kexec_file: add e820 entry in case e820 type string matches to io resource name x86/kexec_file: add reserved e820

[PATCH 1/2] x86/kexec_file: add e820 entry in case e820 type string matches to io resource name

2018-09-17 Thread Lianbo Jiang
the e820 type and resource name. Signed-off-by: Dave Young Signed-off-by: Lianbo Jiang --- arch/x86/include/asm/e820/api.h | 2 ++ arch/x86/kernel/crash.c | 6 +- arch/x86/kernel/e820.c | 2 +- kernel/resource.c | 1 + 4 files changed, 9 insertions(+), 2 deletions

[PATCH 0/2] x86/kexec_file: add reserved e820 ranges to the kdump kernel e820 table

2018-09-17 Thread Lianbo Jiang
the following patch, which uses to fix an upstream bug. For more information, you can refer to the link below. https://lore.kernel.org/patchwork/patch/986979/ Lianbo Jiang (2): x86/kexec_file: add e820 entry in case e820 type string matches to io resource name x86/kexec_file: add reserved e820

[PATCH 1/2] x86/kexec_file: add e820 entry in case e820 type string matches to io resource name

2018-09-17 Thread Lianbo Jiang
the e820 type and resource name. Signed-off-by: Dave Young Signed-off-by: Lianbo Jiang --- arch/x86/include/asm/e820/api.h | 2 ++ arch/x86/kernel/crash.c | 6 +- arch/x86/kernel/e820.c | 2 +- kernel/resource.c | 1 + 4 files changed, 9 insertions(+), 2 deletions

[PATCH 2/2] x86/kexec_file: add reserved e820 ranges to 2nd kernel e820 table

2018-09-17 Thread Lianbo Jiang
these ranges sit in e820 reserved ranges thus the early ioremap code naturally map them as unencrypted. So if we have same e820 reserve setup in kdump kernel then it will just work like normal kernel. Signed-off-by: Dave Young Signed-off-by: Lianbo Jiang --- arch/x86/kernel/crash.c | 6 ++ 1 file

[PATCH 2/2] x86/kexec_file: add reserved e820 ranges to 2nd kernel e820 table

2018-09-17 Thread Lianbo Jiang
these ranges sit in e820 reserved ranges thus the early ioremap code naturally map them as unencrypted. So if we have same e820 reserve setup in kdump kernel then it will just work like normal kernel. Signed-off-by: Dave Young Signed-off-by: Lianbo Jiang --- arch/x86/kernel/crash.c | 6 ++ 1 file

[PATCH] resource: fix an error which walks through iomem resources

2018-09-17 Thread Lianbo Jiang
A and B when we walk through the whole tree, but it only gets the resource A, the resource B is missed. Signed-off-by: Lianbo Jiang --- kernel/resource.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/resource.c b/kernel/resource.c index 30e1bc68503b..f5d9fc70a04c 100644 --- a/ke

[PATCH] resource: fix an error which walks through iomem resources

2018-09-17 Thread Lianbo Jiang
A and B when we walk through the whole tree, but it only gets the resource A, the resource B is missed. Signed-off-by: Lianbo Jiang --- kernel/resource.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/resource.c b/kernel/resource.c index 30e1bc68503b..f5d9fc70a04c 100644 --- a/ke

[PATCH 1/4 v7] x86/ioremap: add a function ioremap_encrypted() to remap kdump old memory

2018-09-07 Thread Lianbo Jiang
When SME is enabled on AMD machine, the memory is encrypted in the first kernel. In this case, SME also needs to be enabled in kdump kernel, and we have to remap the old memory with the memory encryption mask. Signed-off-by: Lianbo Jiang --- arch/x86/include/asm/io.h | 3 +++ arch/x86/mm

[PATCH 1/4 v7] x86/ioremap: add a function ioremap_encrypted() to remap kdump old memory

2018-09-07 Thread Lianbo Jiang
When SME is enabled on AMD machine, the memory is encrypted in the first kernel. In this case, SME also needs to be enabled in kdump kernel, and we have to remap the old memory with the memory encryption mask. Signed-off-by: Lianbo Jiang --- arch/x86/include/asm/io.h | 3 +++ arch/x86/mm

[PATCH 0/2] support kdump for AMD secure memory encryption(sme)

2018-05-14 Thread Lianbo Jiang
/makedumpfile commit e1de103eca8f (A draft for kdump vmcore about AMD SME) Author: Lianbo Jiang <liji...@redhat.com> Date: Mon May 14 17:02:40 2018 +0800 Note: This patch can only dump vmcore in the case of SME enabled. crash-7.2.1: https://github.com/crash-utility/crash.git commit 1e1bd9c4c1b

[PATCH 1/2] add a function(ioremap_encrypted) for kdump when AMD sme enabled.

2018-05-14 Thread Lianbo Jiang
It is convenient to remap the old memory encrypted to the second kernel by calling ioremap_encrypted(). Signed-off-by: Lianbo Jiang <liji...@redhat.com> --- arch/x86/include/asm/io.h | 2 ++ arch/x86/mm/ioremap.c | 25 + 2 files changed, 19 insertions(+), 8 del

[PATCH 0/2] support kdump for AMD secure memory encryption(sme)

2018-05-14 Thread Lianbo Jiang
/makedumpfile commit e1de103eca8f (A draft for kdump vmcore about AMD SME) Author: Lianbo Jiang Date: Mon May 14 17:02:40 2018 +0800 Note: This patch can only dump vmcore in the case of SME enabled. crash-7.2.1: https://github.com/crash-utility/crash.git commit 1e1bd9c4c1be (Fix for the "bpf&quo

[PATCH 1/2] add a function(ioremap_encrypted) for kdump when AMD sme enabled.

2018-05-14 Thread Lianbo Jiang
It is convenient to remap the old memory encrypted to the second kernel by calling ioremap_encrypted(). Signed-off-by: Lianbo Jiang --- arch/x86/include/asm/io.h | 2 ++ arch/x86/mm/ioremap.c | 25 + 2 files changed, 19 insertions(+), 8 deletions(-) diff --git

[PATCH 2/2] support kdump when AMD secure memory encryption is active

2018-05-14 Thread Lianbo Jiang
| | on | off | no| | off | on| no| |__|___|___| Signed-off-by: Lianbo Jiang <liji...@redhat.com> --- arch/x86/include/asm/dmi.h | 14 +- arch/x86/kernel/acpi/boot.c | 8 arch/x86/

[PATCH 2/2] support kdump when AMD secure memory encryption is active

2018-05-14 Thread Lianbo Jiang
| | on | off | no| | off | on| no| |__|___|___| Signed-off-by: Lianbo Jiang --- arch/x86/include/asm/dmi.h | 14 +- arch/x86/kernel/acpi/boot.c | 8 arch/x86/kernel/crash_dump_64.c | 27