81 Commits

Author SHA1 Message Date
sunway_fw
e100bf4cab add SW64 arch support
Signed-off-by: sunway_fw <sunway_fw@wxiat.com>
(cherry picked from commit c77b80a2ab9a7dc8f49fe33d54ea3a47d39c7d36)
2025-03-11 20:36:59 +08:00
Qiumiao Zhang
74f9c62794 fix the vulnerabilities announced on February 18th, 2025
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit c141a13130da5dca205b607533751a6ba6c9581e)
2025-02-25 16:47:19 +08:00
Qiumiao Zhang
74da96de03 fix not verifying grub.cfg when loading it
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit 3eda58b0c237aec4f718f337d67fcb102aed3d44)
2024-12-23 20:08:54 +08:00
Qiumiao Zhang
4af2214537 commands/legacycfg: Avoid closing file twice
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit fdf98a7720a5e222898b091465b808284ae94d21)
2024-12-23 17:43:44 +08:00
ouuleilei
639ef896a3 revert ssophgo's modify-efi_max_usable-addr.patch
(cherry picked from commit 35c729b71368d73b8a39de65d4e524b1787dba9e)
2024-12-17 11:02:44 +08:00
Qiumiao Zhang
0818f4ebf0 commands/efi/tpm: Re-enable measurements on confidential computing platforms
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit c76475ce1e25392e52d1dc6740fc3f4c7f8f1129)
2024-12-12 16:24:53 +08:00
yueyuankun
8f7ea8f9b1 acpi: Fix out of bounds access in grub_acpi_xsdt_find_table()
(cherry picked from commit 3d099f07174b832482b0f627930b802effd7790a)
2024-11-18 11:23:20 +08:00
hanliyang
7413ba71dd use confidential computing provisioned secrets for disk decryption
The code of this functionality is cherry-picked from
https://mail.gnu.org/archive/html/grub-devel/2022-02/msg00064.html.

Signed-off-by: hanliyang <hanliyang@hygon.cn>
2024-11-13 19:30:33 +08:00
Qiumiao Zhang
bb5e986028 10_linux: fix missing "ro" in kernel boot parameters
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit 6d2e2f52e74ebe3700fe7da76c59414ea2a97b1b)
2024-11-04 15:48:47 +08:00
chench00
e6b6bc11f7 add support for hygon tpcm 2024-08-27 16:04:17 +08:00
wangyueliang
1c3e5b182f Inherit 'Add BLS Support' patch from grub-2.06 2024-08-08 15:41:05 +08:00
peng_zou
234d66e79a remove BuildRequires:pesign >= 0.99-8 and fix bug about petitboot doesn't ignore EFI entries for ppc64le 2024-07-15 14:57:35 +08:00
yueyuankun
ffc10c83b2 Export all variables from the initial context when creating a submenu. 2024-07-02 09:16:51 +08:00
wangziliang
8c7269a15f disk/mdraid1x_linux: Prevent infinite recursion 2024-06-17 06:47:02 +00:00
Qiumiao Zhang
4155120fe5 lib/libtasn1: Fix ETYPE_OK off by one array size check
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2024-06-05 02:03:28 +00:00
Xue Liu
48fdc532e5 Fix that patch233 introduced old code 2024-05-28 17:03:18 +08:00
Juxin Gao
49d8f0dc10 LoongArch: Add back-compatibility for linux kernel.
Signed-off-by: Juxin Gao <gaojuxin@loongson.cn>
2024-05-25 13:03:15 +08:00
ouuleilei
20f2ea943e Add sophgo's patch to support risc-v machine SG2042 2024-05-24 20:51:30 +08:00
Qiumiao Zhang
c7c9317412 loongarch64: fix GRUB_EFI_MAX_ALLOCATION_ADDRESS undeclared
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2024-05-11 07:11:21 +00:00
肖在
eaccc141e1 Handle non-continuous data blocks in directory extents 2024-05-11 11:33:07 +08:00
肖在
88a9257d49
Revert "Handle non-continuous data blocks in"
This reverts commit e0cd43f8a5486debeba17349abbb088001164d70.
2024-05-11 03:26:36 +00:00
肖在
e0cd43f8a5 Handle non-continuous data blocks in
directory extents

The directory extent list does not have to be a continuous list of data
blocks. When GRUB tries to read a non-existant member of the list,
grub_xfs_read_file() will return a block of zero'ed memory. Checking for
a zero'ed magic number is sufficient to skip this non-existant data block.

Prior to commit 07318ee7e (fs/xfs: Fix XFS directory extent parsing)
this was handled as a subtle side effect of reading the (non-existant)
tail data structure. Since the block was zero'ed the computation of the
number of directory entries in the block would return 0 as well.
2024-05-11 10:06:01 +08:00
肖在
fd1e9fdd65
Revert " Handle non-continuous data blocks in"
This reverts commit 242fa05f2412202b241bbea01dc2bd69214b2e33.
2024-05-11 01:46:46 +00:00
肖在
242fa05f24 Handle non-continuous data blocks in
directory extents

The directory extent list does not have to be a continuous list of data
blocks. When GRUB tries to read a non-existant member of the list,
grub_xfs_read_file() will return a block of zero'ed memory. Checking for
a zero'ed magic number is sufficient to skip this non-existant data block.
2024-05-11 09:32:27 +08:00
Qiumiao Zhang
c7050828a7 sync patches from openEuler-22.03-LTS-SP3
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit ce31b98a9c7cb28116572daf9e62349bc24e2a2f)
2024-05-07 21:32:14 +08:00
Qiumiao Zhang
d513a38b43 sync patches from 22.03-LTS-Next
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit 908a3e71137970eaa927be7b646ead3ac17ce084)
2024-04-10 11:25:24 +08:00
Qiumiao Zhang
b0a4604866 fix compressed kernel verification failed
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit f567bbdc444bb5ddf157c65e568e5b50a1f17169)
2024-04-08 16:50:50 +08:00
Qiumiao Zhang
acc6d8a204 add TPCM support with ipmi channel
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit 1e52014b39673718830070eb7dfe450646954074)
2024-03-21 20:54:55 +08:00
Qiumiao Zhang
8d295b5bc5 Don't require a password to boot entries generated by grub-mkconfig
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit e07518a0fb083b68bc4dbf4ea3b2eb6bcbe7c5f6)
2024-03-15 14:18:01 +08:00
Qiumiao Zhang
4a55b3894f look for grub.cfg on efi where the app was found
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit 4c4771d498e643899d768f102c0bc6f49fe3e7be)
2024-03-08 18:11:35 +08:00
Qiumiao Zhang
03ef4d01cf modify klist in 10_linux.in
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2024-03-07 02:39:46 +00:00
Qiumiao Zhang
3f42453819 update to 2.12
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2024-03-04 19:17:07 +08:00
Yingkun Meng
54048ecd9e loongarch: Disable relaxation relocations
Signed-off-by: Yingkun Meng <mengyingkun@loongson.cn>
2023-12-25 11:26:57 +08:00
Yingkun Meng
781871c861 loongarch: Make patches meet specification requirements
As described in [1], the ifarch macro is no longer recommanded for use,
and the number of architecture related patch should start from 1000.

[1] https://gitee.com/openeuler/TC/pulls/71

Signed-off-by: Yingkun Meng <mengyingkun@loongson.cn>
2023-12-25 11:22:14 +08:00
Qiumiao Zhang
317a2cc40c skip verification when not loading grub.cfg
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit 1a70c89178317faf0fe5fe4a7402ce5c1f301084)
2023-12-22 15:30:05 +08:00
Qiumiao Zhang
5fbe53a8e7 add TPCM support with ipmi channel
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit bf5379d84f0bd61d407e87d2e4a1dd90528e2e1d)
2023-12-11 10:10:08 +08:00
Qiumiao Zhang
0d987655f0 fix CVE-2023-4692 and CVE-2023-4693
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-10-07 19:56:25 +08:00
Qiumiao Zhang
fbde2eddf8 backport some patches from upstream
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-09-13 22:49:55 +08:00
ouuleilei
034249d78b add a patch to fix build error 2023-09-08 10:11:09 +08:00
Qiumiao Zhang
fa477f729e backport some patches from upstream
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-08-17 19:47:05 +08:00
Yingkun Meng
1eae189350 loongarch: Fix the initrd parameter passing
Signed-off-by: Yingkun Meng <mengyingkun@loongson.cn>
2023-08-09 14:16:50 +08:00
Qiumiao Zhang
526de9571a remove the items of unsupported filesystems in fs.lst
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-07-24 22:06:04 +08:00
Qiumiao Zhang
2252eb370e use xsdt_addr if present
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-07-03 19:54:42 +08:00
Qiumiao Zhang
581a5d3a1d Revert "EFI: allocate kernel in EFI_RUNTIME_SERVICES_CODE instead of EFI_LOADER_DATA."
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-06-15 22:12:59 +08:00
Qiumiao Zhang
36491a7d0e Read /etc/default/grub.d/*.cfg after /etc/default/grub
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-04-23 21:57:43 +08:00
Qiumiao Zhang
1857bf1c82 backport some patches from upstream
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-04-10 22:22:30 +08:00
mengyingkun
8a04f685e3 LoongArch: Implement cache synchronization operation
Signed-off-by: mengyingkun <mengyingkun@loongson.cn>
(cherry picked from commit 60c48504c262606c75540c014de0c4c5a9ef65bd)
2023-03-23 11:34:39 +08:00
mengyingkun
be5296dfe0 LoongArch: Force initrd load address 64KiB alignment
Signed-off-by: mengyingkun <mengyingkun@loongson.cn>
(cherry picked from commit 49bab1d9ae8b2a13648c414a8cc31b113873e17c)
2023-03-21 14:25:33 +08:00
Qiumiao Zhang
2f4cce5575 Fix missing declaration of strchrnul in rpm-sort
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-03-11 16:18:53 +08:00
mengyingkun
1ba4b16683 LoongArch: Add support for new efi screen info GUID
Signed-off-by: mengyingkun <mengyingkun@loongson.cn>
(cherry picked from commit 722a77ccf7c3d61301d934b3347b8938ba54d033)
2023-03-10 14:19:14 +08:00