Commit Graph

27848 Commits

Author SHA1 Message Date
chenjianhua
32d3bf7919 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(65db61f)
- Fixed remove and clear white list
2023-12-08 13:40:44 +08:00
Abhinav Kudnar
2d14933dbc fix(nimble): Handled IRK/LTK deletion based on key availability. 2023-12-07 13:47:16 +05:30
Jiang Jiang Jian
2e387a71b0 Merge branch 'bugfix/fix_dhcp_server_can_not_restore_address_pool_issue_5.0' into 'release/v5.0'
fix(dhcp server):dhcp server can not restore address pool 5.0

See merge request espressif/esp-idf!27692
2023-12-06 16:57:35 +08:00
wanlei
64ac8f0874 fix(spi): correct some signals and dummy bits docs 2023-12-06 16:28:51 +08:00
TD-er
a27b43a6db fix(spi): Correct REG_SPI_BASE(i) macro for all targets
The existing formula can never match these registers.

Closes https://github.com/espressif/esp-idf/pull/12559
Closes https://github.com/espressif/esp-idf/pull/12562
2023-12-06 16:27:06 +08:00
luomanruo
38f9aa04f8 ble(fix): Fixed crash issue when reset event queue 2023-12-06 14:16:33 +08:00
Harshit Malpani
0728e4cdf4
fix(esp-tls): Add headers in esp_tls_errors.h header file
Closes https://github.com/espressif/esp-idf/issues/12541
2023-12-06 10:20:07 +05:30
xueyunfei
112ce3f3a5 fix(dhcp server):dhcp server can not restore address pool 2023-12-06 10:32:27 +08:00
luomanruo
8e48c4756e ble: update ble log on ESP32C2
ble(fix): clear event queue when init event queue
2023-12-05 16:11:15 +08:00
Island
ab5576d91d Merge branch 'bugfix/fix_bleqabr23_808_v5.0' into 'release/v5.0'
Fixed assert when LLCP instant passed on ESP32-C3 (backport v5.0)

See merge request espressif/esp-idf!27635
2023-12-05 12:32:45 +08:00
Roland Dobai
53bebcade5 fix(tools): Fix fatfsgen construct exception type and dependency
construct=2.10.70 fixed an issue
(c3866e9492)
and StringError is raised instead of UnicodeDecodeError.
2023-12-04 17:24:46 +01:00
kohait00
7a4cec1edb
fix(app_update): avoid erasing an extra sector than the actual required size
OTA update used to fail if `firmware_size == partition_size`, because the code was trying to
erase one additional sector beyond the space reserved for the firmware partition.

This commit fixes the problem and OTA update can work if the firmware
size exactly matches the allocated partition size.

Closes https://github.com/espressif/esp-idf/pull/12460
2023-12-04 18:48:30 +05:30
chenjianhua
259e8ab25b fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(b8f0db9)
- Fixed assert when llcp instant passed
2023-12-04 17:09:50 +08:00
chenjianhua
19919a2222 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(70ab55f)
- Fixed assert for instant passed workaround
- Fixed add RPA to white list
- Fixed AES encryption for RPA resolution
2023-12-04 17:09:38 +08:00
chenjianhua
52333aeac9 fix(bt/bluedroid): Fixed add RPA to white list 2023-12-04 17:09:28 +08:00
Jiang Jiang Jian
1d611df0b5 Merge branch 'bugfix/alarm_args_double_free_v5.0' into 'release/v5.0'
Bugfix/alarm args double free v5.0

See merge request espressif/esp-idf!27539
2023-12-04 14:57:21 +08:00
zhanghaipeng
1355f58180 feat(bt/bluedroid): Support ble create sync report disable and filter duplicate 2023-12-04 14:38:51 +08:00
gaoxu
38d0be39a8 fix(adc): fix adc continuous get less results beacuse do not reset apb clk 2023-12-04 14:29:57 +08:00
Jin Cheng
e7a52632f0 feat(bt/bluedroid): Added an API to specify data types for ACL-U traffic 2023-12-04 10:28:05 +08:00
luomanruo
63c78087ed ble(update):
Update c2 lib to 47a787f0
2023-12-01 19:30:43 +08:00
harshal.patil
206af07ad4
fix(mbedtls/aes): fix AES interrupt allocation for AES-GCM operations 2023-12-01 16:49:47 +05:30
harshal.patil
b72804340c
fix(mbedtls): move interrupt allocation during initialization phase 2023-12-01 16:49:47 +05:30
zhanghaipeng
7129df2ad5 fix(bt/bluedroid): Fix BLE SMP register log level 2023-12-01 17:01:26 +08:00
Frantisek Hrbata
13e4c1a9e7 feat(docker): allow to add paths into git's safe.directory
With 8959555cee7e[1] ("setup_git_directory(): add an owner check for the top..")
git added an ownership check of the git directory and refuses to
run any git commands, even parsing the config file, if the git directory
is not owned by the current user. The "fatal: detected dubious ownership in repository"
is reported.

This fixes CVE-2022-24765[2], which allows to compromise user account. On a
multi-user system or e.g. on a shared file system, one user may create a "rogue"
git repository with e.g. core.fsmonitor set to an arbitrary command. Other user
may unwillingly execute this command by running e.g. git-diff or
git-status within the "rogue" git repository, which may be in one of the parent
directories. If e.g. PS1 is set to display information about a git
repository in CWD, as suggested in Git in Bash[3], the user do not need to run
any git command to trigger this, just entering some subdirectory under
this "rogue" git repository is enough, because the git command will be
started transparently through the script used in PS1. The core.fsmonitor
can be set to arbitrary command. It's purpose is to help git to identify changed files
and speed up the scanning for changed files.

rogue
├── .git     # owned by user1
└── dir1     # owned by user2
    ├── dir2 # owned by user2
    └── .git # owned by user2

user1 sets core.fsmonitor for git repository in rogue directory
$ git config --add core.fsmonitor "bash -c 'rm -rf \$HOME'"

user2 enters dir1 and runs e.g. git diff and triggers the core.fsmonitor command.

The ownership check may cause problems when running git commands in
ESP-IDF Docker container. For example user may run the container as
root, but the mounted project may be owned by a particular user.

In this case git will refuse to execute any git command within the
"/project" directory, because it's not owned by root. To overcome this,
git allows to set safe.directories, for which the ownership check is
skipped. The security check may be completely disabled by setting
safe.directories to "*". This solution was proposed in PR 12636[4], but
it would allow make it possible to exploit this vulnerability again.

This fix allows user to specify git's safe.directory in IDF_GIT_SAFE_DIR
environmental variable, which may be set during container startup.

The IDF_GIT_SAFE_DIR has same format as PATH and multiple directories can be
specified by using a ":" separator. To entirely disable this git security check
within the container, user may set IDF_GIT_SAFE_DIR='*'. This might be
heplfull in CI.

Closes https://github.com/espressif/esp-idf/pull/12636

[1] - 8959555cee
[2] - https://nvd.nist.gov/vuln/detail/cve-2022-24765
[3] - https://git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Git-in-Bash
[4] - https://github.com/espressif/esp-idf/pull/12636

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-12-01 08:31:06 +01:00
Island
a060a261ef Merge branch 'bugfix/ble_update_lib_20231124_v5.0' into 'release/v5.0'
ble(update):Update c2 lib to 79ed4e8a

See merge request espressif/esp-idf!27392
2023-12-01 13:58:16 +08:00
Jiang Jiang Jian
c56fa7ce36 Merge branch 'bugfix/fix_wifi_deinit_s_wifi_modem_sleep_lock_v5.0' into 'release/v5.0'
fix(wifi): fix wifi deinit s_wifi_modem_sleep_lock

See merge request espressif/esp-idf!27449
2023-12-01 13:57:41 +08:00
Jin Cheng
db287328bc fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free in L2CAP layer 2023-11-30 20:14:31 +08:00
Jin Cheng
bab64a98d8 fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free in BTC layer 2023-11-30 20:14:31 +08:00
Michael (XIAO Xufeng)
3cab1a00bc Merge branch 'feat/max_ver_c3_199_v5.0' into 'release/v5.0'
feat(soc): Increase max supported version of C3 to 1.99 (v5.0)

See merge request espressif/esp-idf!26824
2023-11-30 17:01:13 +08:00
Harshit Malpani
c2f66b5d89
fix(esp_http_client): Fix esp_http_client async mode
Closes https://github.com/espressif/esp-idf/issues/12358
2023-11-30 12:11:43 +05:30
zhanghaipeng
9ab954096a fix(bt/bluedroid): Fix bluedroid menuconfig 2023-11-30 10:39:06 +08:00
zhanghaipeng
92080994fd docs(bt/bluedroid): Update ble example document 2023-11-30 10:38:43 +08:00
Michael (XIAO Xufeng)
893725dd40 feat(soc): Increase max supported version of C3 to 1.99 2023-11-29 15:52:09 +08:00
luomanruo
0b71f8a2d2 ble(fix): fix RX issue on ESP32-C2(amend) 2023-11-29 11:05:11 +08:00
liuning
606360d33d fix(wifi): fix wifi deinit s_wifi_modem_sleep_lock 2023-11-28 20:52:42 +08:00
morris
f73a701e3c fix(i80_lcd): enhance the check of a valid data phase
in case the user passes a (uint8_t){0x00} parameter with the perameter size
set to zero
2023-11-28 09:57:21 +08:00
luomanruo
71ed11a7f0 ble: update rom.ld file 2023-11-24 20:35:07 +08:00
luomanruo
b147fcad42 ble: update sdkconfig_version on ESP32C2, ESP32H2 and ESP32C6 2023-11-24 20:17:28 +08:00
luomanruo
d8dd468631 ble(fix): fix RX issue on ESP32-C2 2023-11-24 19:44:11 +08:00
luomanruo
69e7b56c48 ble:
Update c2 lib to 79ed4e8a
2023-11-24 19:20:54 +08:00
Alexey Lapshin
f7a6ca13e9 feat(tools): update gdb version to 12.1_20231023 2023-11-24 11:17:52 +04:00
Jiang Jiang Jian
32160c7b74 Merge branch 'bugfix/fix_ps_none_wake_null_v5.0' into 'release/v5.0'
fix(wifi): fix endless wake null at ps none mode (v5.0)

See merge request espressif/esp-idf!27346
2023-11-23 23:57:07 +08:00
Jiang Jiang Jian
15825570a3 Merge branch 'contrib/github_pr_12052_v5.0' into 'release/v5.0'
Two small patches for build system and fatfs (GitHub PR) (v5.0)

See merge request espressif/esp-idf!26432
2023-11-23 19:27:38 +08:00
Jiang Jiang Jian
eaba52d7df Merge branch 'fix/remove_deprecated_bt_example_sdkfonfigs_v5.0' into 'release/v5.0'
ci(bt/bluedroid): remove configs that are not in effect (backport v5.0)

See merge request espressif/esp-idf!27283
2023-11-23 19:14:14 +08:00
Jiang Jiang Jian
893dac658e Merge branch 'bugfix/validate_random_address_v5.0' into 'release/v5.0'
fix(nimble): Added check to validate allowed random address (v5.0)

See merge request espressif/esp-idf!26929
2023-11-23 19:12:15 +08:00
nilesh.kale
54bf1e708b fix: fix preencrypted ota failed with pytest server and partial http enabled 2023-11-23 12:48:28 +05:30
Jiang Jiang Jian
ae02cc7b7c Merge branch 'feat/dynamic_integration_pipeline_v5.0' into 'release/v5.0'
CI: dynamic integration pipeline v5.0

See merge request espressif/esp-idf!26947
2023-11-23 15:17:12 +08:00
Jiang Jiang Jian
85651c507f Merge branch 'contrib/github_pr_12558_v5.0' into 'release/v5.0'
Fix: esptool_py incorrectly assumed target name equals binary name (GitHub PR) (v5.0)

See merge request espressif/esp-idf!27272
2023-11-23 15:13:59 +08:00
nilesh.kale
47fe2499ca fix(component-esp_https_ota): Fix wrong debug print for ota upgrade size 2023-11-23 12:28:50 +05:30
Jiang Jiang Jian
a8caeb9af4 Merge branch 'bugfix/fix_lightsleep_current_leakage_on_usj_pad_v5.0' into 'release/v5.0'
fix(esp_hw_support): fix lightsleep current leakage on usb pad (backport v5.0)

See merge request espressif/esp-idf!27208
2023-11-23 14:46:38 +08:00