Commit Graph

31271 Commits

Author SHA1 Message Date
Jiang Jiang Jian
4caaabec9e Merge branch 'bugfix/lwip_dns_docs_v5.1' into 'release/v5.1'
fix(lwip): Document DNS limitation in lwIP (v5.1)

See merge request espressif/esp-idf!27562
2023-12-08 11:20:13 +08:00
Jiang Jiang Jian
bc3a75d5ba Merge branch 'fix/esp_netif_lock_v5.1' into 'release/v5.1'
fix(esp_netif): Lock netif list with TCPIP context (v5.1)

See merge request espressif/esp-idf!26710
2023-12-08 11:18:09 +08:00
Jiang Jiang Jian
c3de87083f Merge branch 'fix/remove_deprecated_bt_example_sdkfonfigs_v5.1' into 'release/v5.1'
ci(bt/bluedroid): remove configs that are not in effect (backport v5.1)

See merge request espressif/esp-idf!27282
2023-12-08 11:17:18 +08:00
morris
5e29bd5370 Merge branch 'bugfix/fix_adc_continuous_do_not_rst_apb_clk_v5.1' into 'release/v5.1'
fix(adc): fix adc continuous get less results beacuse do not reset apb clk (v5.1)

See merge request espressif/esp-idf!27604
2023-12-07 21:27:05 +08:00
Jiang Jiang Jian
fb511f4ec6 Merge branch 'bugfix/nan_sd_dp_timer_fixes_v5.1' into 'release/v5.1'
Fix NAN service discovery, datapath and timer bugs (Backport v5.1)

See merge request espressif/esp-idf!27522
2023-12-07 21:17:31 +08:00
Jiang Jiang Jian
493ecf59d4 Merge branch 'bugfix/fix_dhcp_subnet_option_api_dos_not_work_issue_5.1' into 'release/v5.1'
Fix(dhcps):fix dhcp subnet option api dos not work issue 5.1

See merge request espressif/esp-idf!27675
2023-12-07 21:09:38 +08:00
Jiang Jiang Jian
977098edca Merge branch 'feature/support_ext1_clear_spec_pins_v5.1' into 'release/v5.1'
fix(pm/ext1): fix c6 h2 lp_aon_ll_ext1_set_wakeup_pins func

See merge request espressif/esp-idf!27552
2023-12-07 21:07:54 +08:00
morris
8425cada28 Merge branch 'bugfix/fix_adc_cali_error_after_light_sleep_wake_on_h2_v5.1' into 'release/v5.1'
adc: fix calibration error when waking up from light sleep on H2 and enable test (v5.1)

See merge request espressif/esp-idf!27603
2023-12-07 17:49:06 +08:00
Marius Vikhammer
25507da236 Merge branch 'bugfix/import_lib_example_url_v5.1' into 'release/v5.1'
fix(build-system/example): Removed dead URL for downloading tinyxml2 (v5.1)

See merge request espressif/esp-idf!27661
2023-12-07 16:56:49 +08:00
Jiang Jiang Jian
817884eb31 Merge branch 'bugfix/fix_wifi_init_reentrant_issue_v5.1' into 'release/v5.1'
Bugfix/fix wifi init reentrant issue v5.1

See merge request espressif/esp-idf!27629
2023-12-07 16:22:57 +08:00
Shyamal Khachane
9cdf839cf6 fix(esp_wifi): Fix NAN service discovery, datapath and timer bugs
1. Fix crash while cancelling NAN service
2. Avoid possible crash scenarios while forming datapath
3. Modify peer records structure thus fixing issues in datapath establishment
4. Fix timer out of bound issue causing "No timer handle" warning
5. Fix miscellaneous service discovery and datapath issues
2023-12-07 03:54:55 +00:00
Mu Hai Dong
e86ff640f8 fix(wifi): free beacon eb when softap destroy 2023-12-07 03:54:55 +00:00
Lou Tianhao
c1782faf0f fix(pm/ext1): fix c6 h2 lp_aon_ll_ext1_set_wakeup_pins func 2023-12-07 03:52:22 +00:00
liuning
46d4c6cc0a fix(wifi): fix wifi deinit s_wifi_modem_sleep_lock 2023-12-07 03:44:38 +00:00
liuning
3515b1d5c8 fix(wifi): fix wifi init reentrant issue 2023-12-07 03:44:38 +00:00
xueyunfei
97b9c24c62 fix(dhcp server):dhcp server can not restore address pool 2023-12-07 02:59:50 +00:00
xueyunfei
c69f3aec91 Fix(dhcps):fix dhcp subnet option api dos not work issue 2023-12-07 02:59:50 +00:00
Shu Chen
5bdcaef8c9 Merge branch 'fix/ieee802154_sleep_config_v5.1' into 'release/v5.1'
fix(ieee802154): fix ieeee802154 sleep enable configuration dependency issue (backport v5.1)

See merge request espressif/esp-idf!27466
2023-12-07 10:05:17 +08:00
Roland Dobai
ca5c8deb7e Merge branch 'fix/fatfsgen_construct_v5.1' into 'release/v5.1'
fix(tools): Fix fatfsgen construct dependency (v5.1)

See merge request espressif/esp-idf!27655
2023-12-07 07:18:49 +08:00
Shu Chen
46d52c81f9 Merge branch 'backport5.1/ot_examples_config' into 'release/v5.1'
fix(openthread): openthread examples config (backport v5.1)

See merge request espressif/esp-idf!27553
2023-12-06 21:44:08 +08:00
xiaqilin
f38e56e685 fix(ieee802154): fix ieeee802154 sleep enable configuration dependency issue 2023-12-06 12:43:58 +00:00
Alexey Gerenkov
c42c37aff7 Merge branch 'save_isr_ctx_to_coredump_v5.1' into 'release/v5.1'
feat(coredump): save isr context to coredump elf file (v5.1)

See merge request espressif/esp-idf!27454
2023-12-06 18:38:54 +08:00
gaoxu
6190b3f7c9 fix(adc): restore cali registers after light sleep wake up on H2 and enable test 2023-12-06 10:19:52 +00:00
gaoxu
98ec583690 ci(adc): add a test that adc continuous read after restarting 2023-12-06 10:19:45 +00:00
gaoxu
57a5c4684c fix(adc): fix adc continuous get less results beacuse do not reset apb clk 2023-12-06 10:19:45 +00:00
Roland Dobai
ccc75dd2da 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-06 08:50:01 +00:00
Anton Maklakov
4fe15460ab Merge branch 'ci/fix_build_linux_targets' into 'release/v5.1'
Ci/fix build linux targets (v5.1)

See merge request espressif/esp-idf!27519
2023-12-06 15:31:35 +08:00
morris
5cf65ce766 Merge branch 'fix/usb_host_soc_caps_backport_v5.1' into 'release/v5.1'
USB host soc caps (backport v5.1)

See merge request espressif/esp-idf!27399
2023-12-06 09:59:53 +08:00
Marius Vikhammer
81ab5f7fb7 fix(build-system/example): Updated dead URL for downloading tinyxml2
The import_lib example contained a fallback mirror for downloading tinyxml2 sources
but this link was dead. If this mirror was used it would cause the build to fail.
2023-12-05 12:32:33 +08:00
Mahavir Jain
d083a0e313 Merge branch 'support/add_srp_salt_ver_gen_api_v5.1' into 'release/v5.1'
Generate Salt and verifier pair for given username and password (v5.1)

See merge request espressif/esp-idf!27351
2023-12-04 21:10:51 +08:00
Xu Si Yu
d13e47596b fix(openthread): add eventfd nums for spi interface 2023-12-04 17:51:25 +08:00
Shu Chen
c9babf8cb3 fix(openthread): remove invalid configs from ot examples 2023-12-04 17:51:25 +08:00
Roland Dobai
b5289ed2ba Merge branch 'feature/docker_git_safe_dirs_v5.1' into 'release/v5.1'
feat(docker): allow to add dirs into git's safe.directory (v5.1)

See merge request espressif/esp-idf!27560
2023-12-01 20:02:53 +08:00
David Cermak
0f51b5da67 fix(lwip): Document DNS limitation in lwIP
* Add a note that DNS server config is global in lwIP
* Add a section about defining LWIP config macros from CMake
* Mention the DNS limitation in ESP-IDF additions to lwIP
* Update CN for lwIP DNS limitation

Co-Authored-By: Wang Ziyan <wangziyan@espressif.com>
2023-12-01 09:51:47 +01:00
Frantisek Hrbata
99f9dd4c07 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:23:16 +01:00
Island
9a05c9446f Merge branch 'fix/ble_mesh_example_relay_enable_v5.1' into 'release/v5.1'
fix(ble_mesh): Enable relay by default for the specific dev role (v5.1)

See merge request espressif/esp-idf!27512
2023-12-01 15:17:24 +08:00
Island
fae44bf123 Merge branch 'bugfix/ble_update_lib_20231124_v5.1' into 'release/v5.1'
ble(update):Update c2 lib to 79ed4e8a,Update h2 lib to 9a237426,Update c6 lib to 9a237426

See merge request espressif/esp-idf!27393
2023-12-01 13:58:21 +08:00
Roland Dobai
76d3d18fdd Merge branch 'fix/monitor_print_filter_v5.1' into 'release/v5.1'
fix(tools/monitor): fix PRINT_FILTER env variable usage (v5.1)

See merge request espressif/esp-idf!27418
2023-12-01 00:09:14 +08:00
Fu Hanxi
1f0f661979
ci: skip pytest cases in managed_components 2023-11-30 09:08:01 +01:00
Fu Hanxi
7df8574119
ci: fix missing linux related .build-test-rules.yml 2023-11-30 09:07:36 +01:00
Liu Linyan
1bfd5e35af fix(ble_mesh): Enable relay by default for the specific dev role 2023-11-30 12:29:37 +08:00
Ivan Grokhotkov
a803c846aa Merge branch 'bugfix/console_examples_reenable_v5.1' into 'release/v5.1'
examples: re-enable console examples for C2, C6, H2 (v5.1)

See merge request espressif/esp-idf!24336
2023-11-29 23:57:09 +08:00
Martin Vychodil
a165b5c1d5 Merge branch 'feature/expose_unload_partitions_v5.1' into 'release/v5.1'
refactor(esp_partition): Expose function for unloading partitions (v5.1)

See merge request espressif/esp-idf!27426
2023-11-29 16:35:19 +08:00
Martin Vychodil
958d98c8e7 Merge branch 'fix/fatfs_formatting_wrong_volume_v5.1' into 'release/v5.1'
Fix: FATFS formatting wrong partition (v5.1)

See merge request espressif/esp-idf!27373
2023-11-29 16:33:29 +08:00
Wang Meng Yang
d51b71260a Merge branch 'feature/support_ble_esp32c3_eco7_v5.1' into 'release/v5.1'
Feature/support ble esp32c3 eco7 (backport v5.1)

See merge request espressif/esp-idf!27326
2023-11-29 14:14:22 +08:00
Mahavir Jain
3b1d428501 Merge branch 'bugfix/preencrypted_ota_failed_with_partial_download_v5.1' into 'release/v5.1'
fix(esp_https_ota): fix preencrypted ota failed with pytest server and partial http enabled (v5.1)

See merge request espressif/esp-idf!27354
2023-11-29 14:05:39 +08:00
Mahavir Jain
4788804f6d Merge branch 'bugfix/wrong_ota_upgrade_size_log_v5.1' into 'release/v5.1'
fix(esp_https_ota): Fix wrong debug print for ota upgrade size (v5.1)

See merge request espressif/esp-idf!27352
2023-11-29 11:38:53 +08:00
morris
5f35f5ddb8 Merge branch 'bugfix/i80_lcd_tx_param_check_enhancement_v5.1' into 'release/v5.1'
fix(i80_lcd): enhance the check of a valid data phase (v5.1)

See merge request espressif/esp-idf!27428
2023-11-29 10:37:43 +08:00
Roman Leonov
e950cdf549 fix(usb/host): remove bInterval verification during pipe opening for INTR and ISOC EPs 2023-11-28 22:00:54 +01:00
Tomas Rezucha
609628e139 fix(usb/host): Do not abort on string descriptor overflow
Some devices return full LANGID table, even if short LANGID table was requested.
No memory overflow occurs, because we have allocated enough memory for transfers to the
default pipe. So we can ignore the error and continue with string desc fetching.
2023-11-28 22:00:54 +01:00