Commit Graph

11814 Commits

Author SHA1 Message Date
David Cermak
754a15890e ci/test: Fix esp_http_client test not to use pointer after free 2021-06-30 14:05:59 +02:00
Juraj Michálek
c28c933751 docs: update Windows Tools 2.9 installation 2021-06-30 11:21:24 +02:00
zwj
16e5b25c98 - fix data length update failed
- fix no callback when the value being used is the same as the value to be set
2021-06-29 14:16:03 +08:00
Marius Vikhammer
4463db7e7f soc: add dummy bytes to ensure instr prefetch always valid
The CPU might prefetch instructions, which means it in some cases
will try to fetch instruction located after the last instruction in
flash.text.

Add dummy bytes to ensure fetching these wont result in an error,
 e.g. MMU exceptions
2021-06-26 08:55:04 +08:00
Jiang Jiang Jian
7504329ef9 Merge branch 'bugfix/fix_amsdu_fragment_vulnerability_v4.0' into 'release/v4.0'
esp_wifi: fix amsdu & fragment vulnerabilities(v4.0)

See merge request espressif/esp-idf!14101
2021-06-25 11:45:15 +00:00
Jiang Jiang Jian
c2f9002b03 Merge branch 'update/version_4_0_3' into 'release/v4.0'
Update version to 4.0.3

See merge request espressif/esp-idf!14141
2021-06-25 11:42:07 +00:00
ChenJianxing
f3f1190959 esp_wifi: fix amsdu & fragment vulnerabilities 2021-06-24 22:39:13 +08:00
Roland Dobai
d5d0c624d0 tools: Catch OSError which is raised when the tool is not available
Closes https://github.com/espressif/esp-idf/issues/7140
2021-06-24 12:04:08 +02:00
He Yin Ling
03fc307e21 versions: Update version to 4.0.3 2021-06-24 17:35:06 +08:00
Ivan Grokhotkov
b0097bb64f Merge branch 'feature/codeowners_v4.0' into 'release/v4.0'
add simplified CODEOWNERS file for older release branches (v4.0)

See merge request espressif/esp-idf!14093
2021-06-23 08:08:35 +00:00
xiongweichao
8a45db1a7a fix spp acceptor deadlock 2021-06-23 11:12:59 +08:00
He Yin Ling
251ca7dd4e example: set example wifi scan method to all channel:
in CI example test we could have runners with same SSID in the same lab.
Use scan on all channel will let DUT connect to the AP with best RSSI.
2021-06-23 10:25:21 +08:00
Ivan Grokhotkov
57a9782f8b add simplified CODEOWNERS file for older release branches 2021-06-22 09:23:33 +02:00
Ivan Grokhotkov
93ee9aab3b cmake: set IDF_VERSION_* variables at requirement expansion stage
Currently IDF_VERSION_* variables are not available to the component
CMakeLists.txt files at the requirements expansion stage. This makes
it harder to write component CMakeLists files compatible with
different IDF versions.

Include version.cmake from the requirements expansion script, add a
build system test.
2021-06-18 15:32:40 +02:00
Island
ee8c27e5e3 Merge branch 'bugfix/AuthValue_leak_v4.0' into 'release/v4.0'
ble_mesh: stack: Fix AuthValue Leak and Predictable AuthValue in Bluetooth... (v4.0)

See merge request espressif/esp-idf!14005
2021-06-18 03:47:47 +00:00
wangjialiang
6ba3ae339b ble_mesh: stack: Fix AuthValue Leak and Predictable AuthValue in Bluetooth Mesh Provisioning Leads to MITM 2021-06-17 16:53:07 +08:00
Island
3ea9deff82 Merge branch 'bugfix/impersonation_attacks_and_AuthValue_disclosure_v4.0' into 'release/v4.0'
ble_mesh: stack: Add check the value of Provisioning Random & Confirmation... (v4.0)

See merge request espressif/esp-idf!13924
2021-06-17 07:38:45 +00:00
Renz Bagaporo
081d0d5225 docs: remove quotes in ldgen documentation for adding fragment file
Closes https://github.com/espressif/esp-idf/issues/5142
2021-06-17 09:14:02 +02:00
wangjialiang
f9b2bba5a4 ble_mesh: stack: Add check the value of Provisioning Random & Confirmation sent and received by provisioner 2021-06-16 21:28:52 +08:00
Island
577aef29ad Merge branch 'bugfix/btdm_enable_gattc_cache_will_crash_v4.0' into 'release/v4.0'
component/bt: fix enable gattc nvs cache lead to crash

See merge request espressif/esp-idf!13916
2021-06-10 02:56:25 +00:00
Island
8ca5068f20 Merge branch 'bugfix/bt_impersonation_passkey_fix_v4.0' into 'release/v4.0'
Bluedroid: Check only x component of passkey to avoid passkey impersonation attack. (v4.0)

See merge request espressif/esp-idf!13898
2021-06-09 06:32:42 +00:00
Chen Yudong
bc65641ac4 test: fix socket issue in iperf example test 2021-06-08 17:25:41 +08:00
He Yin Ling
7be1a8d689 test: fix iperf example errors:
1. fix TypeError when running with python3
2. fix throughput chart x/y axis label error
3. make test case compatibile with iperf bin on earlier release branches
2021-06-08 17:25:33 +08:00
Chen Yudong
61fd08e5ef CI: fix connection failures in asio example tests 2021-06-08 17:25:23 +08:00
Chinmay Chhajed
e42479e129 Bluedroid: Check only x component of passkey to avoid passkey impersonation attack. 2021-06-08 10:09:21 +05:30
Cao Sen Miao
e6222ccf60 spi_flash: fix cs line setup to make the flash driver more stable 2021-06-08 01:02:39 +08:00
xiewenxiang
3892a92d80 component/bt: fix enable gattc nvs cache lead to crash 2021-06-07 18:03:19 +08:00
He Yin Ling
d35bcf65b0 example: set PMF capable to connect to PMF required APs 2021-06-04 18:00:49 +08:00
Alexey Gerenkov
37538d2188 gcov: Fixes not linked gcov rtio functions 2021-06-03 11:43:05 +03:00
Angus Gratton
bdbfdcdf5c Merge branch 'bugfix/partition_table_integrity_check_v4.0' into 'release/v4.0'
paritition_table: Verify the partition table md5sum when loading in the app (v4.0)

See merge request espressif/esp-idf!13586
2021-06-03 02:14:28 +00:00
liaowenhao
ac190b6a01 bugfix/fix crash when lmp flooding 2021-06-02 17:25:45 +08:00
Angus Gratton
c572e0bf5f paritition_table: Verify the partition table md5sum when loading the app
Additionally, always enable the partition MD5 check if flash encryption is on in
Release mode. This ensures the partition table ciphertext has not been modified
(CVE-2021-27926).

The exception is pre-V3.1 ESP-IDF bootloaders and partition tables, which
don't have support for the MD5 entry.
2021-06-02 16:30:02 +10:00
baohongde
cff9332ddd components/bt: Delete BLE ADV priority high 2021-06-02 11:35:56 +08:00
Angus Gratton
2483fb2777 ci: Fix websocket example test error handling
If connection fails for websocket test, a second exception was generated in
__exit__
2021-06-01 17:19:26 +10:00
Jakob Hasse
1d8ca35eec [C++]: wrapper functions around unwind code
* Replaced all C++ exception related
  functions with wrappers if -fno-exception
  is used. This prevents linking of the
  corresponding code in libgcc. The code
  size will decrease by around 7-9 KB when
  building with -fno-exception.
* added no except test app

Closes https://github.com/espressif/esp-idf/pull/5380
Closes https://github.com/espressif/esp-idf/issues/5363
Closes https://github.com/espressif/esp-idf/issues/5224
Closes IDFGH-3153
Closes IDF-2577
2021-06-01 15:00:23 +08:00
Angus Gratton
aea01b00e1 pthread: Fix possible deadlock when using pthread_join() and Debug log level
Possible for a joined task to be deleted at the moment it is logging,
meaning it might hold the stdout lock. In that case the lock isn't
released and the next task to try and take it (i.e. call printf)
will block indefinitely.
2021-05-31 13:50:41 +10:00
Felipe Neves
e29da11f6b freertos/portmux: increase portmux timeouts to avoid crashing when using debug feature
Closes: https://github.com/espressif/esp-idf/issues/3629#
2021-05-28 09:52:26 +10:00
He Yin Ling
b23f8e21cd Merge branch 'ci/ttfw_fix_dut_exception_not_added_to_junit_report_v4.0' into 'release/v4.0'
ttfw: fix DUT exception not added to junit report (v4.0)

See merge request espressif/esp-idf!13614
2021-05-26 03:12:41 +00:00
aleks
44832d2379 freemodbus: increase max priority of modbus tasks
allows to avoid issues with modbus processing when higher priority tasks are used in user application
2021-05-25 16:31:04 +02:00
Jiang Jiang Jian
1a415f3e31 Merge branch 'nimble/fix_ble_sm_sc_pub_key_v4.0' into 'release/v4.0'
NimBLE: Fix MITM vulnerability and free AES context (v4.0)

See merge request espressif/esp-idf!13599
2021-05-25 14:27:33 +00:00
Omar Chebib
8d1f243bff regi2c: add a spinlock for accessing (reg)I2C devices
When not compiling bootloader, a spinlock will be used for reading or writing
I2C internal devices/registers.
When compiling for bootloader, no need to use any lock.
2021-05-25 17:57:07 +08:00
Prasad Alatkar
fc9f2e8782 NimBLE: Fix MITM vulnerability and free AES context (v4.0) 2021-05-25 14:57:37 +05:30
David Cermak
f456ab2353 MQTT: Update submodule reference to support new config modes
* Queueing publish messages to outbox when the client is not connected (default=off -> messages are queued if disconnected)
* Use of incremental msg-id instead of random id (default=off -> msg-id uses platform_random())
* Posting a new event-id if a queued message gets deleted from the outbox (default=off -> events are not posted)

Detailed description of included `esp-mqtt` changes
(da850b0add1e71b3659bfac5d797cc834dc3e89b...9ea804e0ab5368d5ab53ae2301a5fec9d1f12f1a)
* mqtt: Remove unused mqtt_header_state_t
  - esp-mqtt commit: b7158a4aea
  - esp-mqtt MR: espressif/esp-mqtt!84
  - Merges https://github.com/espressif/esp-mqtt/pull/180
* Cleanup public include dirs
  - esp-mqtt commit: f65d5d05db
  - esp-mqtt MR: espressif/esp-mqtt!85
* Config: Add a new option to use incremental message id
  - esp-mqtt commit: 8bb4a26f46
  - esp-mqtt MR: espressif/esp-mqtt!85
  - Closes https://github.com/espressif/esp-mqtt/issues/176
* Publish: Add new API to enqueue qos>0 messages
  - esp-mqtt commit: dc7fd5c0b1
  - esp-mqtt MR: espressif/esp-mqtt!85
  - Closes https://github.com/espressif/esp-mqtt/issues/155
* Config: Add a new option to disable publishing when disconnected
  - esp-mqtt commit: f44dcb1c26
  - esp-mqtt MR: espressif/esp-mqtt!85
  - Related https://github.com/espressif/esp-mqtt/issues/177
* Events: Add new event to report deleted messages from outbox
  - esp-mqtt commit: 2e35d4d4d5
  - esp-mqtt MR: espressif/esp-mqtt!85
* Publish: Allow for qos=0 messages to be stored using esp_mqtt_client_enqueue()
  - esp-mqtt commit: e2de0f3e3e
  - esp-mqtt MR: espressif/esp-mqtt!85
2021-05-25 09:56:43 +02:00
morris
7ab8594813 esp_eth: restart negotiation in esp_eth_start 2021-05-25 15:31:53 +08:00
Chinmay Chhajed
805f30fda9 bt controller: Fixed handling for invalid feature page. 2021-05-25 05:09:36 +00:00
He Yin Ling
091681faec ttfw: fix DUT exception not added to junit report 2021-05-20 16:57:06 +08:00
Island
532d0a72c3 Merge branch 'nimble/fix_host_flow_ctrl_v4.0' into 'release/v4.0'
NimBLE: Fix host flow control in NimBLE porting layer and host (release/v4.0)

See merge request espressif/esp-idf!13577
2021-05-19 09:50:27 +00:00
Angus Gratton
51623fd4ce Merge branch 'feature/oocd_ver_backport_v4.0' into 'release/v4.0'
Feature/oocd ver backport v4.0

See merge request espressif/esp-idf!11378
2021-05-19 07:57:38 +00:00
Angus Gratton
0242438e9d Merge branch 'bugfix/setjmp_longjmp_4.0' into 'release/v4.0'
[system]: Made longjmp save for context switch (backport v4.0)

See merge request espressif/esp-idf!13503
2021-05-19 01:39:51 +00:00
Prasad Alatkar
e123d89625 NimBLE: Update submodule to fix host flow control bugs. 2021-05-18 19:01:28 +05:30