Compare commits

..

32 Commits

Author SHA1 Message Date
openharmony_ci 30d6d3c088
!1244 【Pick 4.1 Release】fs_epoll竞争漏洞修复
Merge pull request !1244 from hw_llm/cherry-pick-1729040743
2024-10-16 04:01:14 +00:00
石子怡 65a8243fb1 update fs/vfs/epoll/fs_epoll.c.
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IAXDGA
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
(cherry picked commit from <gitee.com//openharmony/kernel_liteos_a/commit/02abd34ad29301fdd3ade31fe35c62033e732007>
2024-10-16 01:05:43 +00:00
openharmony_ci 4b34b96700
!1240 【Pick 4.1 Release】shm pid 入参漏洞修复
Merge pull request !1240 from hw_llm/cherry-pick-1728735200
2024-10-12 12:49:43 +00:00
hw_llm 066a984a97 Description: shm pid入参 漏洞修复
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IAWOD7
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
(cherry picked commit from <gitee.com//openharmony/kernel_liteos_a/commit/14c79fc921db176c8c7ae87a917fa50217e664ac>
2024-10-12 12:13:20 +00:00
openharmony_ci f9ccc6e5fd
!1237 【Pick 4.1 Release】hidumper 漏洞修复
Merge pull request !1237 from hw_llm/cherry-pick-1727612382
2024-09-29 14:21:40 +00:00
hw_llm 66228974c5 Description: hidumper 漏洞修复
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IAUKDF
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
(cherry picked commit from <gitee.com//openharmony/kernel_liteos_a/commit/31da79ec80e5a1517e3aff126a4b13ed37d352ee>
2024-09-29 12:19:42 +00:00
openharmony_ci 572022f542
!1234 mem 漏洞修复
Merge pull request !1234 from hw_llm/cherry-pick-1727599316
2024-09-29 11:50:43 +00:00
hw_llm 439633c93b Description: mem 漏洞修复
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IAUJWK
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
(cherry picked commit from <gitee.com//openharmony/kernel_liteos_a/commit/4bb465f9af0af618c9d4b24b82ede7dd9f12faa6>
2024-09-29 08:41:56 +00:00
openharmony_ci 020edcb1b7
!1231 【Pick 4.1 Release】liteipc 解决 释放后使用问题
Merge pull request !1231 from hw_llm/cherry-pick-1727158800
2024-09-24 08:30:39 +00:00
hw_llm 562c5d93d3 Description: liteipc 解决 释放后使用问题
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IAT99L
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
(cherry picked commit from <gitee.com//openharmony/kernel_liteos_a/commit/8b571985262dc1d5ed64bbeb08f55a11306bf174>
2024-09-24 06:20:00 +00:00
openharmony_ci 898e71eb54
!1228 【同步4.1 release分支】VM Map 添加LITEIPC保护
Merge pull request !1228 from hw_llm/cherry-pick-1727060660
2024-09-24 01:50:14 +00:00
hw_llm 07be40d1f3 Description: VM Map 添加LiteIPC 保护
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IASJLX
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
(cherry picked commit from <gitee.com//openharmony/kernel_liteos_a/commit/75af9e28d9e92398f71e2f884c53a2745e7cd097>
2024-09-23 03:04:20 +00:00
openharmony_ci 20820bd0f7
!1223 OsShellCmdTskInfoGet 内存泄露漏洞修复
Merge pull request !1223 from hw_llm/cherry-pick-1724405916
2024-08-26 12:29:32 +00:00
openharmony_ci 20cf25498f
!1220 SysEpollWait 系统调用使用正确长度。
Merge pull request !1220 from hw_llm/cherry-pick-1724401985
2024-08-23 10:39:01 +00:00
hw_llm a502da19c0 cherry pick b58c6d4 from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1221
Description: OsShellCmdTskInfoGet 内存泄露漏洞修复
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IAM34B?from=project-issue
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
2024-08-23 09:38:36 +00:00
hw_llm dc523053cd cherry pick 5e3a8f1 from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1218
Description: syscall SysEpollWait 执行漏洞修复
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IALYB5?from=project-issue
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
2024-08-23 08:33:05 +00:00
openharmony_ci f264fa6b13
!1214 [Pick 4.1 Release]console read 漏洞修复
Merge pull request !1214 from hw_llm/cherry-pick-1724245367
2024-08-22 08:38:58 +00:00
hw_llm 1bb7968775 cherry pick 0c53eca from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1213
cherry pick b22a7c2 from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1212
Description: console read 漏洞修复
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IALLNX?from=project-issue
Feature Or Bugfix: Feature
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
2024-08-21 13:02:47 +00:00
openharmony_ci 017822c2fd
!1211 liteos_a 内核shell 漏洞修复
Merge pull request !1211 from hw_llm/cherry-pick-1724202574
2024-08-21 12:41:57 +00:00
hw_llm fef87f5da8 cherry pick bca2645 from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1210
cherry pick 2ac53f2 from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1209
Description: shell lk 漏洞修复
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IAKVF0
Feature Or Bugfix: Feature
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
2024-08-21 01:09:34 +00:00
openharmony_ci a0088a2e53
!1206 内核代码适配
Merge pull request !1206 from yaowenrui/OpenHarmony-4.1-Release
2024-08-19 07:45:48 +00:00
openharmony_ci 08b1ab779c
!1208 【同步4.1 Release】容器编译失败问题同步
Merge pull request !1208 from hw_llm/cherry-pick-1723789557
2024-08-16 10:12:17 +00:00
hw_llm 03a2bf2c68 cherry pick d958a85 from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1202
Description: 解决容器编译报错问题
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/I9TEYD
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
2024-08-16 06:25:58 +00:00
yaowenrui 589820d05a 5.10内核仓代码适配
Signed-off-by: yaowenrui <yaowenrui2@huawei.com>
2024-08-15 14:21:37 +08:00
openharmony_ci 4e90ebdd73
!1200 整数溢出漏洞修复
Merge pull request !1200 from hw_llm/cherry-pick-1721456740
2024-07-22 10:22:58 +00:00
hw_llm 6241f722f3 fixed da45d3f from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1197
Description: fix CVE-817641412102197248
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IACJLK
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
2024-07-20 06:25:40 +00:00
openharmony_ci b7a35ec4bb
!1196 【同步4.1 release分支】解决UAF问题
Merge pull request !1196 from hw_llm/cherry-pick-1720749987
2024-07-12 08:18:50 +00:00
hw_llm 50410f66fb fixed 21087fb from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1195
fixed 78db02d from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1194
Description: fix CVE-810023952561737728
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IAAZWU
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
2024-07-12 02:06:27 +00:00
openharmony_ci 26a187ede7
!1191 【Pick】【OH-4.1-Release】解决竞争冲突
Merge pull request !1191 from hw_llm/cherry-pick-1715399782
2024-05-23 12:40:06 +00:00
hw_llm 4e62fec983 fixed dfc582a from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1190
fixed dbbb96c from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1189
Description: liteos_a 内核竞争漏洞修复
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/I9OACM
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
2024-05-11 03:56:23 +00:00
openharmony_ci 25a4c3f13a
!1186 部件bundle.json 中syscap与设计信息不一致
Merge pull request !1186 from hw_llm/cherry-pick-1708502857
2024-02-22 06:34:28 +00:00
hw_llm 7dc3f24815 fixed cfa0209 from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1185
Description: 删除bundle.json中syscap信息
IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/I90PKD
Feature Or Bugfix: Feature
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
2024-02-21 08:07:38 +00:00
5 changed files with 8 additions and 15 deletions

View File

@ -65,8 +65,6 @@
<!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
</filefilter>
<filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
<filteritem type="filepath" name="figures/architecture-of-the-openharmony-liteos-cortex-a-kernel.png" desc="architecture-of-the-openharmony-liteos-cortex-a-kernel"/>
<filteritem type="filepath" name="figures/OpenHarmony-LiteOS-A内核架构图.png" desc="LiteOS-A内核架构图"/>
<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
<!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->

View File

@ -8668,7 +8668,7 @@ diff -Nupr old/fs/jffs2/writev.c new/fs/jffs2/writev.c
diff -Nupr old/fs/jffs2/xattr.c new/fs/jffs2/xattr.c
--- old/fs/jffs2/xattr.c 2022-05-09 17:15:24.360000000 +0800
+++ new/fs/jffs2/xattr.c 1970-01-01 08:00:00.000000000 +0800
@@ -1,1352 +0,0 @@
@@ -1,1347 +0,0 @@
-/*
- * JFFS2 -- Journalling Flash File System, Version 2.
- *
@ -9443,10 +9443,10 @@ diff -Nupr old/fs/jffs2/xattr.c new/fs/jffs2/xattr.c
-}
-
-#define XREF_TMPHASH_SIZE (128)
-int jffs2_build_xattr_subsystem(struct jffs2_sb_info *c)
-void jffs2_build_xattr_subsystem(struct jffs2_sb_info *c)
-{
- struct jffs2_xattr_ref *ref, *_ref;
- struct jffs2_xattr_ref **xref_tmphash;
- struct jffs2_xattr_ref *xref_tmphash[XREF_TMPHASH_SIZE];
- struct jffs2_xattr_datum *xd, *_xd;
- struct jffs2_inode_cache *ic;
- struct jffs2_raw_node_ref *raw;
@ -9455,12 +9455,9 @@ diff -Nupr old/fs/jffs2/xattr.c new/fs/jffs2/xattr.c
-
- BUG_ON(!(c->flags & JFFS2_SB_FLAG_BUILDING));
-
- xref_tmphash = kcalloc(XREF_TMPHASH_SIZE,
- sizeof(struct jffs2_xattr_ref *), GFP_KERNEL);
- if (!xref_tmphash)
- return -ENOMEM;
-
- /* Phase.1 : Merge same xref */
- for (i=0; i < XREF_TMPHASH_SIZE; i++)
- xref_tmphash[i] = NULL;
- for (ref=c->xref_temp; ref; ref=_ref) {
- struct jffs2_xattr_ref *tmp;
-
@ -9558,8 +9555,6 @@ diff -Nupr old/fs/jffs2/xattr.c new/fs/jffs2/xattr.c
- "%u of xref (%u dead, %u orphan) found.\n",
- xdatum_count, xdatum_unchecked_count, xdatum_orphan_count,
- xref_count, xref_dead_count, xref_orphan_count);
- kfree(xref_tmphash);
- return 0;
-}
-
-struct jffs2_xattr_datum *jffs2_setup_xattr_datum(struct jffs2_sb_info *c,

View File

@ -103,7 +103,7 @@ STATIC VOID SortQueueIndexArray(UINT32 *indexArray, UINT32 count)
IpcSortParam queueSortParam;
queueSortParam.buf = (CHAR *)g_queueDebugArray;
queueSortParam.ipcDebugCBSize = sizeof(QueueDebugCB);
queueSortParam.ipcDebugCBCnt = LOSCFG_BASE_IPC_QUEUE_LIMIT;
queueSortParam.ipcDebugCBCnt = LOSCFG_BASE_IPC_SEM_LIMIT;
queueSortParam.sortElemOff = LOS_OFF_SET_OF(QueueDebugCB, lastAccessTime);
if (count > 0) {

View File

@ -887,7 +887,7 @@ STATIC UINT32 OsMemPoolInit(VOID *pool, UINT32 size)
}
#ifdef LOSCFG_MEM_MUL_POOL
STATIC VOID OsMemPoolDeInit(const VOID *pool, UINT32 size)
STATIC VOID OsMemPoolDeinit(const VOID *pool, UINT32 size)
{
#ifdef LOSCFG_KERNEL_LMS
if (g_lms != NULL) {

View File

@ -261,7 +261,7 @@ STATIC UINT32 GetDirtySize(LosFilePage *fpage, struct Vnode *vnode)
STATIC INT32 OsFlushDirtyPage(LosFilePage *fpage)
{
ssize_t ret;
UINT32 ret;
size_t len;
char *buff = NULL;
struct Vnode *vnode = fpage->mapping->host;