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
mengyingkun
088b4d85c7
loongarch: Add support for v4.0 interface
...
Signed-off-by: mengyingkun <mengyingkun@loongson.cn>
(cherry picked from commit 048b61123f321de2f517f3a0aebc6c65f38f66f6)
2023-02-13 17:14:54 +08:00
mengyingkun
0957330bbf
loongarch: Add EFI frame buffer support
...
Signed-off-by: mengyingkun <mengyingkun@loongson.cn>
(cherry picked from commit f4711e7975394ab53bc6691b8ec0c4ee41c3fd95)
2023-02-08 10:27:12 +08:00
Qiumiao Zhang
3e10ca701e
backport some patches from upstream
...
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-02-06 23:06:41 +08:00
mengyingkun
189f7a910f
LoongArch: modify the location where initrd is loaded into memory
...
(cherry picked from commit cad0e769c463c78e5fd9cdb8321a81adcf30ea59)
2023-02-06 11:32:25 +08:00
Qiumiao Zhang
928a9962cf
disable some unsupported filesystems
...
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-02-02 14:52:09 +08:00
mengyingkun
c28fd31817
Add LoongArch support
...
Signed-off-by: mengyingkun <mengyingkun@loongson.cn>
(cherry picked from commit e9acecfb21878c4ffa6baf3e9ed914ff3b0edede)
2023-01-13 11:02:29 +08:00
zhangqiumiao
0eeb9d64d1
fix CVE-2022-2601 and CVE-2022-3775
...
Signed-off-by: zhangqiumiao <zhangqiumiao1@huawei.com>
2022-11-18 11:17:52 +08:00
Qiumiao Zhang
cf4cdab72f
backport some patches from upstream
...
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2022-10-23 22:14:59 +08:00
wanglu210
243de24303
backport patches from upstream
2022-08-30 18:55:38 +08:00
zhangqiumiao
552b2e73ce
fix compressed kernel verification failed
2022-07-23 20:07:16 +08:00
sun_hai_10
b7658c3bed
fix CVE-2021-3697 CVE-2022-28735 CVE-2022-28736 CVE-2022-28734 CVE-2022-28733 CVE-2021-3695 CVE-2021-3696
2022-06-21 15:14:12 +08:00
sunh
ca2e356735
fix-null-pointer-dereference-when-paring-ICMP6_ROUTE_ADVERTISE messages
2022-05-05 15:31:32 +08:00
zhangqiumiao
7746c1e996
fix grub2 password setting does not take effect
...
(cherry picked from commit d97f925042d64cc2435e4615c3f0313b125af213)
2022-04-14 17:19:29 +08:00
Qiumiao Zhang
b1bd5cadda
enable sbat and don't verify kernels twice
...
(cherry picked from commit ee1698c6501b7b1ed981a5f3f2ed34493948c4c3)
2022-04-14 15:43:37 +08:00