Commit Graph

41 Commits

Author SHA1 Message Date
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
liangbotong 330bf5438c Fix NewIP route issues and btdev Makefile
Fix the issue that a network port can add a route or address when it is not running.

The btdev Makefile adds a conditional compilation.

Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-04-20 10:58:50 +08:00
openharmony_ci 32e87020a4 !6 Fix NewIP ofo and SELinux issues
Merge pull request !6 from 史云飞/master
2023-04-20 02:31:32 +00:00
shiyunfei 98d108401f Fix NewIP ofo and SELinux issues
Fix ofo last_skb cover new_skb Processing.

Fix the issue of NewIP socket SELinux object role not being marked.

Signed-off-by: shiyunfei <shiyunfei3@huawei.com>
2023-04-13 14:14:02 +08:00
openharmony_ci 86fc2d371e !5 update README file
Merge pull request !5 from 朱佳鑫/master
2023-04-12 01:34:17 +00:00
zhujiaxin b4a9b5d788 update README file
Signed-off-by: zhujiaxin <zhujiaxin@huawei.com>
2023-04-11 19:34:46 +08:00
openharmony_ci 97001e98f4 !4 update README file
Merge pull request !4 from 朱佳鑫/md
2023-04-10 11:46:24 +00:00
zhujiaxin ddb56738ad update README file
Signed-off-by: zhujiaxin <zhujiaxin@huawei.com>
2023-04-10 17:23:24 +08:00
openharmony_ci 0878ed942b !3 update README file
Merge pull request !3 from 朱佳鑫/md
2023-04-10 03:59:27 +00:00
zhujiaxin 80e4fab4c6 update README file
Signed-off-by: zhujiaxin <zhujiaxin@huawei.com>
2023-04-10 10:55:51 +08:00
openharmony_ci 2b3a56044e !2 Modify related scripts and files according to the directory structure
Merge pull request !2 from liangbotong/master
2023-04-07 06:27:22 +00:00
liangbotong fc26f6b6f4 Modify related scripts and files according to the directory structure
Signed-off-by: liangbotong <liangbotong@huawei.com>
2023-04-07 11:31:22 +08:00
openharmony_ci 49da5153e6 !1 add New IP protocol stack
Merge pull request !1 from YangYanJun/master
2023-04-03 12:42:10 +00:00
yangyanjun 8295eeab35 add New IP protocol stack
Signed-off-by: yangyanjun <yangyanjun@huawei.com>
2023-04-03 16:57:06 +08:00
mamingshuai 0c75fa6ede Initial commit 2023-03-31 09:11:25 +00:00