Commit Graph

64 Commits

Author SHA1 Message Date
openharmony_ci ea2a3fa61a !40 NewIP code security issue remediation
Merge pull request !40 from liangbotong/master
2023-08-28 08:24:49 +00:00
liangbotong d11037a9a5 NewIP code security issue remediation
1.Resolve stack overflow issue in parsing ICMP packets in newip.
2.Resolve negative overflow issue in parsing UDP packets in newip.
3.Resolve unchecked data reception issue in nip_rcv.

Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-08-28 10:27:42 +08:00
openharmony_ci 4e676263eb !39 Add NewIP debug log
Merge pull request !39 from liangbotong/master
2023-08-21 09:34:45 +00:00
liangbotong 160ebcc010 Add NewIP debug log
Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-08-21 13:07:11 +08:00
openharmony_ci 4de36a1873 !37 fix NewIP coding style problem
Merge pull request !37 from liangbotong/master
2023-08-04 01:30:46 +00:00
liangbotong eac6348880 fix NewIP coding style problem
Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-08-03 11:52:14 +08:00
openharmony_ci 498b2a4ccd !36 Performance Optimization of NewIP Congestion Control Algorithm
Merge pull request !36 from liangbotong/master
2023-08-01 07:28:57 +00:00
liangbotong d02f178222 Performance Optimization of NewIP Congestion Control Algorithm
1. NewIP dynamic rto
2. bw window control

Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-08-01 14:35:35 +08:00
openharmony_ci 6ec4be39b7 !29 支持运行时文件验签
Merge pull request !29 from zhushengle/sign_verity
2023-07-07 07:38:54 +00:00
zhushengle 23498881a0 feat: xpm支持文件验签
Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: I6362e58030b126f33320654bb0034c06e2ede6a1
2023-07-06 14:51:29 +08:00
openharmony_ci 3cb986d631 !34 NEWIP HOOKS恢复默认开启、支持单播方式发送NS
Merge pull request !34 from liangbotong/master
2023-07-03 11:08:27 +00:00
liangbotong 238e3327e5 NewIP config file and NS modification
1.config NewIP HOOKS are enabled by default.
2.Use unicast to send NS to update the status of neighbor table entries.

Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-07-03 17:00:47 +08:00
openharmony_ci 800c550c6a !32 fix: 规范告警清零
Merge pull request !32 from zhushengle/codecheck
2023-06-30 01:06:58 +00:00
openharmony_ci efae12a886 !30 NewIP code problem modification
Merge pull request !30 from liangbotong/master
2023-06-29 12:13:06 +00:00
zhushengle 8b7de123d2 fix: 规范告警清零
Close #I7GNQH

Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: I985717fda8845c311fe2cbbacf10cf7b513112d8
2023-06-29 15:47:50 +08:00
openharmony_ci 0cd6f9ecbe !33 修改xpm编码规范
Merge pull request !33 from 团辉/master
2023-06-29 07:41:52 +00:00
liangbotong 6e58885db6 NewIP code problem modification
1.add HCK lite vendor hook for NewIP
2.Code specification check and rectify

Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-06-29 11:39:44 +08:00
limerence 1fba5fa9f0 fix xpm coding style problem
Signed-off-by: limerence <shituanhui@huawei.com>
2023-06-28 17:01:37 +08:00
openharmony_ci d3a5084551 !31 32位机适配
Merge pull request !31 from Ywenrui44091/master
2023-06-26 15:32:09 +00:00
Ywenrui44091 3c8b4f9c23 32位机适配修改
Signed-off-by: Hu Zhaodong <huzhaodong@huawei.com>

Signed-off-by: Ywenrui44091 <yaowenrui2@huawei.com>
2023-06-26 22:09:33 +08:00
openharmony_ci 6fd36a8f4d !27 btdev code view problem modification, debug rectification
Merge pull request !27 from YangYanJun/master
2023-06-20 13:54:28 +00:00
openharmony_ci f6d1602450 !28 NewIP code problem modification
Merge pull request !28 from liangbotong/master
2023-06-20 01:41:12 +00:00
liangbotong 067f8c4a88 NewIP code problem modification
1.Add the log information about the NewIP route exception branch
2.Code specification check and rectify

Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-06-19 20:08:40 +08:00
yangyanjun c786a42652 btdev code view problem modification, debug rectification
1. bt_io_file_write function call copy_from_user branch failure need to release skb.
2. The branch that bt_io_file_read fails to call copy_to_user needs to release skb, because skb has been unchained from ring buf.
3. The bt_cmd_peek_packet function only obtains the skb data length. After put_user fails, the skb does not need to be released.
4. The bt_cmd_create_virnet function bt_get_unused_id may return an invalid id, and add the if judgment that the id is less than 0.
5. The branch of bt_cmd_create_virnet function copy_to_user that fails needs to release bt_table_remove_device.
6. bt_table_add_device and bt_table_remove_device functions to tbl->num variable ++ and -- operation to increase the validity judgment, avoid flipping.
7. __bt_ring_create function if (unlikely(size < 0)) branch has memory leaks, modified to determine the validity of the input parameter, and then apply for memory.
8. Both bt_ring_is_empty and bt_ring_is_full return true for invalid branches.
9. bt_virnet_produce_data adds a memory barrier before and after calling bt_ring_produce, and bt_ring_produce already has a memory barrier. Delete the redundant memory barrier.
10. The vnet->tx_queue variable is a redundant operation and has no practical effect. Delete all codes corresponding to the variable to improve the efficiency of receiving and sending packets on the btdev virtual device.
   bt_virnet_create deletes init_waitqueue_head(&vnet->tx_queue);
   bt_io_file_poll deletes poll_wait(filp, &vnet->tx_queue, wait);
11. Change the global variable name to g_xxx
12. atomic operation process xx_open_limit variable value changes add annotation
13. debug rectification, the normal path is closed by default (shell can be opened), and the abnormal path is opened by default. At the same time, key information such as btdev interface name printing and data length are added to the interface open, delete, and packet sending functions.

Signed-off-by: yangyanjun <yangyanjun@huawei.com>
2023-06-19 20:00:05 +08:00
openharmony_ci 5f0e2198b1 !26 security remediation of NewIP code
Merge pull request !26 from liangbotong/master
2023-06-16 03:02:38 +00:00
liangbotong 8f4b680a77 security remediation of NewIP code
Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-06-15 11:41:25 +08:00
openharmony_ci b99fb7b4e1 !25 NewIP rto and license adjustment
Merge pull request !25 from liangbotong/master
2023-06-09 02:37:39 +00:00
liangbotong 6ef350297c NewIP rto and license adjustment
1. The header comment contains the copyright license, feature description, author, and creation date.
2. The NewIP rto is changed to 20.

Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-06-08 09:48:28 +08:00
openharmony_ci 0792804363 !24 add "WITH Linux-syscall-note" for nip_addr.h license
Merge pull request !24 from liangbotong/master
2023-06-01 06:59:16 +00:00
liangbotong 36eb377ad1 add nip_addr.h license
add "WITH Linux-syscall-note" for nip_addr.h license

Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-06-01 13:49:05 +08:00
openharmony_ci e331f5c78b !23 add annotating code for NewIp vendor hooks and adjust the NewIP ioctl entry
Merge pull request !23 from liangbotong/master
2023-05-31 11:26:41 +00:00
liangbotong 415578aa24 adjust the NewIP ioctl entry
avoiding memory leaks caused by CAP_NET_ADMIN

Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-05-31 17:06:22 +08:00
openharmony_ci 326c0faf93 !22 README格式修复
Merge pull request !22 from 万晓庆/master
2023-05-26 07:02:59 +00:00
liangbotong b0e0d8b626 add annotating code for NewIp vendor hooks
Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-05-26 10:23:30 +08:00
openharmony_ci a57f943354 !21 NewIP code rectification
Merge pull request !21 from liangbotong/master
2023-05-26 02:12:30 +00:00
liangbotong f3a7e813d9 NewIP code rectification
1. The header comment contains the copyright license, feature description, author, and creation date
2. Rectification of code specification problems

Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-05-25 20:28:57 +08:00
wanxiaoqing40281 f3b28c123e README格式修复
Signed-off-by: wanxiaoqing40281 <wanxiaoqing@huawei.com>
2023-05-25 16:22:46 +08:00
openharmony_ci c12b06204a !20 sched: add qos ctrl and authority ctrl for FFRT
Merge pull request !20 from 万晓庆/master
2023-05-25 07:31:30 +00:00
Huzhaodong 925fb31f78 sched: add qos ctrl and authority ctrl for FFRT
ohos inclusion
category: feature
issue: #I76RYD
CVE:NA

Signed-off-by: Huzhaodong <huzhaodong@huawei.com>
2023-05-25 11:11:50 +08:00
openharmony_ci c50378b5b0 !19 btdev code rectification
Merge pull request !19 from liangbotong/master
2023-05-22 09:56:03 +00:00
liangbotong 0eb3d8cc8c btdev code rectification
1. The header comment contains the copyright license, feature description, author, and creation date
2. Rectification of deep nesting of code blocks of functions
3. Rectification of code specification problems
4. Rectify resource leakage
5. Rectifying reliability risks

Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-05-22 16:19:39 +08:00
openharmony_ci ad98e0b1fa !17 代码执行权限内核模块限定支持64bit
Merge pull request !17 from 团辉/master
2023-05-10 10:10:43 +00:00
limerence 1b0c67047d xpm only support arm64
Signed-off-by: limerence <shituanhui@huawei.com>
2023-05-10 15:22:34 +08:00
openharmony_ci e48aae1134 !16 代码执行权限管控模块修改
Merge pull request !16 from 团辉/develop
2023-05-08 13:47:17 +00:00
limerence 77dd4d1929 add xpm module
Signed-off-by: limerence <shituanhui@huawei.com>
2023-05-08 19:46:54 +08:00
openharmony_ci 16d3c4a30f !9 update README file
Merge pull request !9 from 朱佳鑫/master
2023-04-26 01:30:40 +00:00
zhujiaxin 378c16d152 update README file
Signed-off-by: zhujiaxin <zhujiaxin@huawei.com>
2023-04-25 16:36:02 +08:00
openharmony_ci 4cf8c96c49 !8 newip开源合规评审问题修改
Merge pull request !8 from YangYanJun/master
2023-04-23 02:34:49 +00:00
yangyanjun 2de79d97ba newip开源合规评审问题修改
Signed-off-by: yangyanjun <yangyanjun@huawei.com>
2023-04-21 16:29:00 +08:00
openharmony_ci 47b00d6875 !7 Fix NewIP route issues and btdev Makefile
Merge pull request !7 from liangbotong/master
2023-04-21 01:38:46 +00:00