Commit Graph

16660 Commits

Author SHA1 Message Date
Shell cfe1768815 fixup: smart: sys_mount: UAF vulnerability
This patch addresses a use-after-free (UAF) vulnerability in the
sys_mount. The issue occurred due to improper handling of memory
deallocation, which could lead to crashes or undefined behavior on user
request of mounting.

Changes made:
- Moved the `rt_free(copy_source)` function call to occur after the necessary
  operations are completed, preventing premature deallocation of memory.

Signed-off-by: Shell <smokewood@qq.com>
2024-10-21 17:15:52 +08:00
CYFS fabee02c38
[ci][rsoc]fix fm33lc026 yc3121-pos build issue (#9564)
* [ci]fix fm33lc026 yc3121-pos build issue

* [ci]rm airm2m/air105
2024-10-21 15:15:05 +08:00
heyuanjie87 b14a14057c 解决编译错误 2024-10-21 13:05:08 +08:00
heyuanjie87 08888b6e23 去除多余空格 2024-10-21 13:05:08 +08:00
heyuanjie87 063e6e7c0c 解决编译警告 2024-10-21 13:05:08 +08:00
heyuanjie87 1045bcb9df 给使用独立的defunct线程添加限制条件 2024-10-21 13:05:08 +08:00
heyuanjie87 2351981e83 分离defunct 2024-10-21 13:05:08 +08:00
heyuanjie87 e2b311c3b5 [kernel]在smart模式也启用"回收线程"
lwp的某些资源回收放到了后台,其中会引起线程挂起,而idle不应该被挂起
2024-10-21 13:05:08 +08:00
CYFS fc6f3c0403 [bsp][fm33lc026]fix path issue 2024-10-20 12:18:28 -04:00
CYFS 7e123fb187 [bsp][fm33lc026]add link 2024-10-20 12:18:28 -04:00
CYFS 45812e43a6 [bsp][yichip]fix bug 2024-10-20 12:18:28 -04:00
Shell 81181e101f feat: bsp: fit into the new thread context 2024-10-19 15:19:41 -04:00
Shell 645b3c6015 feat: remove RT_USING_SCHED_THREAD_CTX
Prepare for the next release by removing the compatible codes for v5.1.0
and before.

Changes:

- Remove the compatible macros and Kconfig options for the old struct
  rt_thread layout.

Signed-off-by: Shell <smokewood@qq.com>
2024-10-19 15:19:41 -04:00
CYFS 76adf376db
[bsp][stm32][rsoc]串口超时判断逻辑有问题
[bsp][stm32]fix uart bug
2024-10-19 12:24:42 -04:00
sakumisu 4c206caf8b
update(cherryusb): update to v1.4.1 2024-10-19 12:23:21 -04:00
CYFS e47f478e12
[bsp][rsoc]Fix compilation issues with bsp of hc32l136 2024-10-19 12:23:07 -04:00
Supper Thomas ab964e1e5a [action] fix the fail action 2024-10-19 19:20:03 +08:00
heyuanjie87 49b6614763
[libcpu]添加对riscv vector的支持 (#9531)
[libcpu]添加对riscv vector的支持
2024-10-16 14:10:09 +08:00
Meco Man 47d941388b [bsp][stm32] fix variable init
fix https://github.com/RT-Thread/rt-thread/pull/9525
2024-10-14 22:12:21 -04:00
LZerro 8c1cd39d80
[bsp][Infineon]add drv_eth (#9527)
[bsp][Infineon]add xmc7200 eth driver #9527

---------

Co-authored-by: LZerro <lizhenhong@rt-thread.com>
2024-10-14 11:30:00 +08:00
Diamond Rivero 5010c17539 move `GPIO_InitStruct` variable inside to `PIN_IRQ_ENABLE`. thanks to @mysterywolf 2024-10-12 22:34:42 +08:00
Diamond Rivero df36d1806c call `HAL_GPIO_Init()` by default 2024-10-12 22:34:42 +08:00
Yuqiang Wang 6b0671b336
[bsp][ci] fix BSPs compilation errors
1.RT_TIMER_TICK_PER_SECOND替换为RT_TICK_PER_SECOND
2.nxp lpc、imx、mcx系列bsp修复
3.lpc824支持gcc
4.lpc824、lpc1114 bsp默认使用nano版本
5.nxp scons --dist问题修复
6.rt-spark lvgl latest 编译修复
2024-10-11 18:32:58 -04:00
Supper Thomas 15a14500c7 [doc]Update README.md
图标太大了,改小一些
2024-10-11 21:40:40 +08:00
zhangjing0303 523b123995
[libcpu][risc-v] fix the bug when using ASID in the RV64 MMU
* (fix) mmu: satp value should be 64-bit
Corrected the SATP register to ensure it uses the correct 64-bit format as required by the system architecture.

* use __asm__ instead of asm for the GNU C compiler

Co-authored-by: Shell <smokewood@qq.com>

---------

Co-authored-by: Shell <smokewood@qq.com>
2024-10-11 00:10:46 -04:00
zms123456 9a010bb71b
[components][sal]add netdev ifindex feature 2024-10-11 00:10:21 -04:00
zms123456 344ea87347
[components][smp]remove redundant memset & unlock in smp 2024-10-11 00:09:28 -04:00
Shell 5796e0d646 feat: arm64: update thread self on sp-switch
This patch improves the atomicity of context switching by ensuring that
the stack pointer (sp) and thread self updates occur simultaneously.
This enhancement is crucial for maintaining thread safety and
preventing potential inconsistencies during context switches.

Changes:
- Modified `cpuport.h` to use `ARM64_THREAD_REG` for thread self access.
- Added an `update_tidr` macro in `context_gcc.S` to streamline thread ID
  updates.
- Adjusted `rt_hw_context_switch_to` and `rt_hw_context_switch` to call
  `update_tidr`, ensuring atomic updates during context switches.
- Cleaned up `scheduler_mp.c` by removing redundant thread self
  assignments.

Signed-off-by: Shell <smokewood@qq.com>
2024-10-11 00:09:01 -04:00
zms123456 906d1caea6
[component][sal]add netgetdev api 2024-10-10 22:40:24 -04:00
yangpeng c9a1245977 [components][dfs][dfs_v1]cat输出实际读取的长度 2024-10-10 17:44:32 -04:00
Yuqiang Wang 9b31631df1
[drivers][spi] Fixed an issue that caused spi bus deadlock in the spi configuration 2024-10-09 21:32:17 -04:00
zhangjing0303 65234401f3
[libcpu][risc-v]remove the redundant "0x" from the printed information when cpu is in exception (#9516)
Remove redundant '0x' from printed output
2024-10-09 15:46:39 +08:00
wumingzi a0415846db
[bsp][ESP32][esp32c3] add spi driver 2024-10-08 18:34:24 -04:00
CYFS 2b281ff0cb
[doxygen][rsoc]add pwm touch can i2c spi driver example for doxygen 2024-10-08 17:57:52 -04:00
zhangjing0303 bf8f7b04b5
[libcpu][risc-v]add README for RV64 2024-10-08 17:56:55 -04:00
Supper Thomas 5f15b5aee4 [action] open action_tools.yml 2024-10-08 17:55:41 -04:00
Supper Thomas 6276ba144b [action] remove debug option 2024-10-08 20:52:38 +08:00
Meco Man 5a18b88657 [stm32-f469][ci] add lvgl 8.3 and 8.4 version checking 2024-10-07 23:13:50 -04:00
sulfurandcu 85bd74640e [Bug] [ymodem] last frame's data_sz issue, fixed. 2024-10-07 23:13:41 -04:00
Meco Man 43a727691d [stm32-l475][ci] add LVGL multi versions checking 2024-10-07 19:05:55 -04:00
Meco Man bc74bea545 [RTduino] support TFT_eSPI demo 2024-10-06 21:04:15 -04:00
Meco Man 36f8f266e9 feat:[drivers][spi] rt_spi_configure 添加互斥保护 2024-10-06 00:02:53 -04:00
wdfk-prog 99503d3ff6 feat:[drivers][spi] rt_spi_bus_configure 添加 -RT_EBUSY 返回值,并增加说明注释 2024-10-06 00:02:53 -04:00
CYFS3 9bcb904a0b [doxygen]add pin driver example for doxygen 2024-10-05 23:33:58 -04:00
Meco Man b6382d2a00 [stm32l475][RTduino] modify macros and files name 2024-10-05 23:33:37 -04:00
zhuzhuzhu ef426851ea
[feat] add pci api,the pci/pcie driver
add pci api,the pci/pcie driver writer can use this to get resource of current device with flag,there are three flag :
1. PCI_BUS_REGION_F_MEM it mean memory space
2. PCI_BUS_REGION_F_IO it mean io space
3. PCI_BUS_REGION_F_PREFETCH it mean prefetchable memory
2024-10-05 02:30:52 -04:00
Meco Man b9c3bdf7eb [lvgl][ci] add lvgl 8.3-latest check 2024-10-04 23:41:11 -04:00
wdfk-prog f28b84aa1f [components][i2c] 修改为debug等级打印 2024-10-04 18:02:36 -04:00
wdfk-prog ff6d5b13f0
[components][ulog] ULOG_OUTPUT_LEVEL未定义时,level_output_info产生警告 2024-10-03 19:19:24 -04:00
hydevcode 6b14e0d220
[ci] enable lvgl latest version checking on stm32f407-rt-spark (#9493) 2024-10-02 11:59:18 -04:00