1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

41983 Commits

Author SHA1 Message Date
benpicco
2d4c5a43ba
Merge pull request #18914 from benpicco/sock_udp_recv_aux-style
gnrc_sock_udp: style fix in sock_udp_recv_buf_aux()
2022-11-15 22:20:32 +01:00
Benjamin Valentin
95e654f232 sys/fmt: add print_bytes_hex() 2022-11-15 22:05:42 +01:00
benpicco
cc7c525d0b
Merge pull request #18882 from kfessel/p-split-kernel-defines
core/lib: split kernel defines by its concerns
2022-11-15 22:02:31 +01:00
Marian Buschsieweke
5b86848d77
sys/print_stack_usage: update MIN_SIZE
Since fmt no longer has a significant advantage in stack consumption,
we need to bump the `MIN_SIZE` guard that prevents causing stack
overflows due to the printing of the stack consumption.
2022-11-15 21:41:58 +01:00
Benjamin Valentin
5b359108f7 cpu/esp8266: blacklist -fmacro-prefix-map
This requires at least GCC 8
2022-11-15 20:39:49 +01:00
Benjamin Valentin
442644ba93 gnrc_sock_udp: style fix in sock_udp_recv_buf_aux() 2022-11-15 20:35:20 +01:00
benpicco
e710b6f07c
Merge pull request #18854 from benpicco/gnrc_sock_udp-_remote_mismatch
gnrc_sock_udp: accept response from any address if remote is multicast
2022-11-15 20:33:58 +01:00
Benjamin Valentin
71b1689407 makefiles/cflags.inc.mk: don't include absolute path in __FILE__ macro 2022-11-15 15:28:54 +01:00
Marian Buschsieweke
7ce641f110
sys/malloc_tracing: add module to trace dyn memory management
Hooking into the existing wrappers for `malloc()`, `calloc()`,
`realloc()`, and `free()`, the new (pseudo) module `malloc_tracing`
prints out the calls to the given functions, the program counter of
the caller, as well as the return result.

The intent is to aid debugging double-frees, invalid frees, or memory
leaks.
2022-11-15 12:59:46 +01:00
Marian Buschsieweke
35149bd1c2
Merge pull request #18797 from MrKevinWeiss/pr/fixstmclk
cpu/stm32: Fix stm clock configuration
2022-11-15 11:39:25 +01:00
Benjamin Valentin
920d690694 test/gnrc_udp: add test multicast sock 2022-11-15 11:26:31 +01:00
Benjamin Valentin
2b92e9ec59 gnrc_sock_udp: accept response from any address if remote is multicast 2022-11-15 11:26:31 +01:00
Marian Buschsieweke
643aeda471
Merge pull request #18893 from maribu/makefiles/libc/picolibc.mk
makefiles/libc/picolibc.mk: fix compilation with modern binutils
2022-11-15 08:52:45 +01:00
benpicco
78ee505aa1
Merge pull request #18906 from gschorcht/pkg/tinyusb_fix_default_speed
pkg/tinyusb: fix CFG_TUD_MAX_SPEED
2022-11-15 08:20:34 +01:00
benpicco
29128759ee
Merge pull request #18891 from maribu/tests/shell
tests/shell: fix failure on samr21-xpro
2022-11-15 00:46:42 +01:00
Gunar Schorcht
37f6720da3 pkg/tinyusb: fix CFG_TUD_MAX_SPEED
The commit 98478e02fe removed the setting of the CFG_TUD_MAX_SPEED define to OPT_MODE_DEFAULT_SPEED. This setting is usually not required since CFG_TUD_MAX_SPEED is determined from CFG_TUSB_RHPORT{0,1}_MODE. However, this does not work for STM32F429I-DISC1 where the HS port is used via the internal FS-PHY. Therefore the default speed setting is added again.
2022-11-14 22:11:08 +01:00
52181c05f0
Merge pull request #18685 from aabadie/pr/readme_ci_status
README.md: update CI badge
2022-11-14 16:39:42 +01:00
02b6f60bc1
Merge pull request #18905 from kaspar030/drop_murdock_note
CI: drop obsolete murdock note
2022-11-14 14:32:12 +01:00
f54f81df4d
README.md: update CI badge 2022-11-14 14:28:28 +01:00
0c90586563 CI: drop obsolete murdock note 2022-11-14 13:56:32 +01:00
chrysn
971a023a4c
Merge pull request #18904 from chrysn-pull-requests/posixly-correct-grep
makefiles: Use `grep -q` rather than `--quiet`
2022-11-14 12:54:54 +01:00
chrysn
269b33f01a makefiles: Use grep -q rather than --quiet
`--quiet` is a GNUism; Alpine's busybox grep only supports the minimal
-q option required by POSIX.
2022-11-14 09:51:19 +01:00
benpicco
e59446eaf8
Merge pull request #18901 from gschorcht/pkg/tinyusb_update_doc
pkg/tinyusb: update doc for tusb_app_config.h and common descriptor handling
2022-11-13 14:18:59 +01:00
Gunar Schorcht
5905893c9d pkg/tinyusb: update doc for common descriptors
With PR #18835, the automatic generation of descriptors for the most common device classes and their handling was introduced. The update of the documentation was forgotten.
2022-11-13 11:33:24 +01:00
Gunar Schorcht
ad65ed6830 pkg/tinyusb: update doc for tusb_app_config.h
With PR #18804 the approach to override the default tinyUSB configuration was changed. The update of the documentation was forgotten.
2022-11-13 11:33:24 +01:00
b47fed3bc9
Merge pull request #18900 from maribu/tests/pkg_emlearn
tests/pkg_emlearn: fix compilation
2022-11-13 08:37:36 +01:00
Marian Buschsieweke
eb6addeba5
tests/pkg_emlearn: fix compilation
It turns out that the fix for the missing terminating newline is not
robust. This hopefully fixes the issue and resolves the following
error message:

    In file included from /home/maribu/Repos/software/RIOT/tests/pkg_emlearn/main.c:25:
    /home/maribu/Repos/software/RIOT/tests/pkg_emlearn/model.h:7221:36: error: stray '\' in program
     7221 |     /* fix for no newline at eof */\n
          |                                    ^
    /home/maribu/Repos/software/RIOT/tests/pkg_emlearn/model.h:7221:38: error: expected ';' before '_Alignas'
     7221 |     /* fix for no newline at eof */\n
          |                                      ^
          |                                      ;
2022-11-13 00:20:10 +01:00
Marian Buschsieweke
c0e997a8e7
makefiles/libc/picolibc.mk: fix compilation with modern binutils
Modern binutils complain about segments with RWX permissions. While
this is indeed a bad habit, RIOT ignores segments permissions anyway.
(We do have a `mpu_noexec_ram` module to disable execution of all of
RAM, which would do so regardless of the segment permission.) So for
now, we can safely just disable the warning.

This fixes:

    /usr/lib/gcc/arm-none-eabi/12.2.0/../../../../arm-none-eabi/bin/ld: warning: /home/maribu/Repos/software/RIOT/examples/default/bin/nucleo-f767zi/default.elf has a LOAD segment with RWX permissions
    collect2: error: ld returned 1 exit status
2022-11-12 17:09:11 +01:00
Marian Buschsieweke
4e00c0e360
Merge pull request #18894 from kaspar030/shorten_bitarithm_timings_runtime
tests/bitarithm_timings: shorten timeout from 5s to 200ms
2022-11-12 12:26:40 +01:00
Marian Buschsieweke
01182af7f7
Merge pull request #18892 from maribu/makefiles/arch/cortexm.inc.mk
makefiles/arch/cortexm.inc.mk: fix ASMFLAGS
2022-11-12 12:25:44 +01:00
Marian Buschsieweke
4b4f34fb18
Merge pull request #18890 from maribu/pkg/ccn-lite
pkg/ccn-lite: Fix use after free bug
2022-11-12 12:11:22 +01:00
Marian Buschsieweke
a211e4fc14
Merge pull request #18871 from maribu/pkg/tflite-micro
pkg/tflite-micro: fix compilation with GCC >= 12.x
2022-11-12 09:10:11 +01:00
benpicco
2801107570
Merge pull request #18888 from kfessel/p-fix-tinyusb-defaultbuild
tests/pkg_tinyusb*: add a BOARD to make make build
2022-11-12 03:55:54 +01:00
317e05b869 tests/bitarithm_timings: shorten timeout from 5s to 200ms 2022-11-11 23:49:03 +01:00
5c31e722d3
Merge pull request #18881 from maribu/dist/tools/backport_pr
tools/backport_pr: finally fix running outside of repo's root
2022-11-11 23:33:34 +01:00
Marian Buschsieweke
44df6d3a71
Merge pull request #18832 from MrKevinWeiss/pr/removedrone
.drone: Remove unmaintained .drone file
2022-11-11 23:33:10 +01:00
benpicco
edf30e051c
Merge pull request #18885 from benpicco/tapsetup-loss
tapsetup: add --loss & --delay option
2022-11-11 23:32:37 +01:00
Marian Buschsieweke
8448aa33ae
makefiles/arch/cortexm.inc.mk: fix ASMFLAGS
Drop `CFLAGS_DBG` from `ASFLAGS` to fix

    make RIOT_CI_BUILD=1 CC_NOCOLOR=1 --no-print-directory -C /home/maribu/Repos/software/RIOT/tests/pkg_qdsa clean all
    rm -rf /home/maribu/Repos/software/RIOT/tests/pkg_qdsa/bin/samr21-xpro/pkg-build/qdsa
    Building application "tests_pkg_qdsa" for "samr21-xpro" with MCU "samd21".

    Assembler messages:
    Fatal error: unknown option `-ggdb'
    make[3]: *** [/home/maribu/Repos/software/RIOT/Makefile.base:176: /home/maribu/Repos/software/RIOT/tests/pkg_qdsa/bin/samr21-xpro/qdsa_asm/bigint_red.o] Error 1
    make[2]: *** [/home/maribu/Repos/software/RIOT/Makefile.base:31: ALL--/home/maribu/Repos/software/RIOT/build/pkg/qdsa/arm/asm] Error 2
    make[1]: *** [Makefile:11: all] Error 2
    make: *** [/home/maribu/Repos/software/RIOT/tests/pkg_qdsa/../../Makefile.include:803: pkg-build] Error 2

    Return value: 2
2022-11-11 23:11:07 +01:00
Marian Buschsieweke
e95f7551eb
tests/shell: fix failure on samr21-xpro
The test (at least locally) fails on the long shell line detection in
`master`, as the EDBG UART adapter drops chars when more than 64 bytes
are send at a time. This works around the issue:

- The line buffer in the test is reduced to 60 bytes, so that
  overflowing it becomes possible with sending less than 64 bytes.
- The test script is adapted to exceed the shell buffer size by one
  byte only (due to linefeed char), rather than significantly.
    - Sending more than 64 bytes would result in the linefeed being
      dropped by the EDBG adapter and the test failing

Finally, the shell buffer is no longer allocated on the stack and,
hence, the main stack size could be reduced a bit. The test still
passes on the Nucleo-F767ZI which is notorious in failing on tight
stacks due to the MPU stack guard - so the stack size reduction is
expected to work for all boards.
2022-11-11 23:00:58 +01:00
Marian Buschsieweke
d605b58a91
pkg/ccn-lite: Fix use after free bug
This fixes compilation with GCC >= 12.x, which is unhappy about the use
after free:

    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c: In function 'ccnl_fib_rem_entry':
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c:916:16: error: pointer 'fwd' used after 'free' [-Werror=use-after-free]
      916 |         if (fwd->face) {
          |             ~~~^~~~~~
    In file included from /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c:33:
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/../ccnl-riot/include/ccn-lite-riot.h:52:41: note: call to 'free' here
       52 | #define ccnl_free(p)                    free(p)
          |                                         ^~~~~~~
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c:910:13: note: in expansion of macro 'ccnl_free'
      910 |             ccnl_free(fwd);
          |             ^~~~~~~~~
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c: In function 'ccnl_fib_rem_entry':
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c:916:16: error: pointer 'fwd' used after 'free' [-Werror=use-after-free]
      916 |         if (fwd->face) {
          |             ~~~^~~~~~
    In file included from /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c:33:
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-riot/include/ccn-lite-riot.h:52:41: note: call to free' here
       52 | #define ccnl_free(p)                    free(p)
          |                                         ^~~~~~~
    /home/maribu/Repos/software/RIOT/build/pkg/ccn-lite/src/ccnl-core/src/ccnl-relay.c:910:13: note: in expansion of macro 'ccnl_free'
      910 |             ccnl_free(fwd);
          |             ^~~~~~~~~
2022-11-11 22:16:47 +01:00
Karl Fessel
edeed17e1b tests/pkg_tinyusb*: add a BOARD to make make build 2022-11-11 20:41:57 +01:00
Marian Buschsieweke
9bba2d074c
tools/backport_pr: finally fix running outside of repo's root
It turned out that 4983f8bb60 was not
enough to allow the tool to be executed from within
`dist/tools/backport_pr`. With this, I successfully tested it :)
2022-11-11 19:52:18 +01:00
benpicco
225521efa0
Merge pull request #18873 from maribu/pkg/wolfssl
pkg/wolfssl: fix compilation with GCC >= 12.x
2022-11-11 16:56:25 +01:00
Benjamin Valentin
4511f3f2a1 tapsetup: add --delay option 2022-11-11 16:54:21 +01:00
Juergen Fitschen
f840fd0730
Merge pull request #18878 from maribu/tests/pkg_tinyvcdiff
tests/pkg_tinyvcdiff: fix stack overflow
2022-11-11 16:15:09 +01:00
Benjamin Valentin
0eaa6edffd tapsetup: add --loss option 2022-11-11 14:41:15 +01:00
Karl Fessel
045bd7a1a2 core/lib: split kernel defines by its concerns 2022-11-11 13:41:33 +01:00
benpicco
dc52965369
Merge pull request #18876 from bergzand/pr/pkg_littlefs_2.5.1
pkg/littlefs2: bump version to 2.5.1
2022-11-11 13:11:48 +01:00
Marian Buschsieweke
bec46c55bd
Merge pull request #18879 from benpicco/bf_popcnt
sys/bitfield: add bf_popcnt()
2022-11-11 11:35:14 +01:00
Marian Buschsieweke
4166e044b3
Merge pull request #18874 from maribu/sys/net/gnrc/pkt
sys/net/gnrc/pkt: fix gnrc_pkt_delete()
2022-11-11 09:21:25 +01:00