bors[bot]
5667814d2c
Merge #19270 #19271
...
19270: drivers/at24cxxx: implement _mtd_at24cxxx_read_page r=benpicco a=HendrikVE
### Contribution description
The function `read_page` was missing which lead to (from a user perspective) undefined behavior on the MTD layer.
### Testing procedure
Any application using MTD in conjunction with a board with an at24cxxx.
19271: core/xfa: disable asan on llvm r=benpicco a=Teufelchen1
### Contribution description
Hi! 🦎
When using llvm and address sanitation, the XFA trip the sanitizer.
This PR attempts to fix this by adding the `no_sanitize` attribute to the XFA macros. Sadly, this attribute is not known by gnu, a guard is hence needed. I'm open for alternatives as I dislike this solution but it is the best I could come up with.
### Testing procedure
Before this patch:
Go to `examples/gnrc_minimal` and run `TOOLCHAIN=llvm make all-asan` and then `make term`.
You should see an error similar to this:
```
==3374719==ERROR: AddressSanitizer: global-buffer-overflow on address 0x080774e0 at pc 0x0804af5e bp 0x0808eb88 sp 0x0808eb78
READ of size 4 at 0x080774e0 thread T0
#0 0x804af5d in _auto_init_module /RIOT/sys/auto_init/auto_init.c:40
#1 0x804af5d in auto_init /RIOT/sys/auto_init/auto_init.c:339
#2 0x804b375 in main_trampoline /RIOT/core/lib/init.c:56
#3 0xf76bc7b8 in makecontext (/lib32/libc.so.6+0x4a7b8)
...
```
After applying this PR, the example can be build and run with llvm or gcc, with or without asan.
Co-authored-by: Hendrik van Essen <hendrik.vanessen@ml-pa.com>
Co-authored-by: Teufelchen1 <bennet.blischke@haw-hamburg.de>
2023-02-15 17:03:30 +00:00
..
2022-05-23 08:35:27 +02:00
2022-05-23 08:35:27 +02:00
2022-09-14 15:05:25 +02:00
2022-03-02 14:03:28 +01:00
2022-05-23 08:35:27 +02:00
2022-03-02 14:03:29 +01:00
2022-03-02 14:03:29 +01:00
2022-05-23 08:35:27 +02:00
2022-10-16 14:05:31 +02:00
2023-02-15 11:56:21 +01:00
2021-11-29 23:22:23 +01:00
2022-09-14 15:05:25 +02:00
2022-03-04 14:15:32 +01:00
2023-01-30 18:37:58 +01:00
2022-12-14 16:29:01 +01:00
2022-09-14 15:05:25 +02:00
2022-10-25 14:47:13 +02:00
2022-03-04 14:16:01 +01:00
2022-03-04 14:15:32 +01:00
2022-05-23 08:35:27 +02:00
2022-05-23 08:35:27 +02:00
2022-05-23 08:35:27 +02:00
2022-05-23 08:35:27 +02:00
2022-03-04 14:15:34 +01:00
2020-11-25 12:00:37 +01:00
2021-08-13 19:50:38 +02:00
2022-09-16 22:57:28 +02:00
2022-09-16 22:57:28 +02:00
2022-05-23 08:35:27 +02:00
2022-04-14 11:31:36 +02:00
2022-09-14 15:05:25 +02:00
2022-03-04 14:15:35 +01:00
2022-09-21 09:42:37 +02:00
2022-05-23 08:35:27 +02:00
2022-04-13 12:49:58 +02:00
2022-10-06 17:48:47 +02:00
2022-05-23 08:35:27 +02:00
2022-05-23 08:35:27 +02:00
2022-03-04 14:15:36 +01:00
2022-12-27 17:21:55 +01:00
2022-03-04 14:15:37 +01:00
2022-03-04 14:15:38 +01:00
2021-08-13 19:50:38 +02:00
2022-03-04 14:15:38 +01:00
2022-09-14 15:05:25 +02:00
2022-09-14 15:05:25 +02:00
2023-01-31 19:50:11 +01:00
2023-01-08 22:26:13 +01:00
2021-12-01 10:06:24 +01:00
2022-01-21 14:13:49 +01:00
2023-01-05 14:25:20 +01:00
2022-05-23 08:35:27 +02:00
2022-09-14 15:11:14 +02:00
2022-06-14 10:23:19 +02:00
2023-01-05 14:25:20 +01:00
2022-03-04 14:15:40 +01:00
2022-05-23 08:35:27 +02:00
2022-09-14 15:05:25 +02:00
2022-05-23 08:35:27 +02:00
2022-05-23 08:35:27 +02:00
2022-04-19 16:22:10 +02:00
2022-05-23 08:35:27 +02:00
2022-05-23 08:35:27 +02:00
2023-02-15 17:03:30 +00:00
2022-09-14 15:11:14 +02:00
2022-05-31 17:58:39 +02:00
2022-05-23 08:35:27 +02:00
2022-03-04 14:15:44 +01:00
2022-09-14 15:05:25 +02:00
2022-05-23 08:35:27 +02:00
2022-08-23 10:04:44 +02:00
2022-12-14 16:29:01 +01:00
2022-09-14 15:05:25 +02:00
2022-05-23 08:35:27 +02:00
2022-09-14 15:05:25 +02:00
2022-04-19 16:21:42 +02:00
2022-07-21 15:51:01 +02:00
2022-05-23 08:35:27 +02:00
2022-09-14 15:05:25 +02:00
2022-09-14 15:05:25 +02:00
2022-03-04 14:15:45 +01:00
2022-05-23 08:35:27 +02:00
2023-01-07 09:47:44 +01:00
2022-10-04 00:28:46 +02:00
2022-09-16 14:00:35 +02:00
2022-05-23 08:35:27 +02:00
2022-05-23 08:35:27 +02:00
2023-01-17 11:03:01 +01:00
2022-05-23 08:35:27 +02:00
2022-09-14 15:05:25 +02:00
2023-01-31 21:05:07 +01:00
2022-09-14 15:05:25 +02:00
2022-05-23 08:35:27 +02:00
2022-05-23 08:35:27 +02:00
2021-12-21 18:23:11 +01:00
2022-05-23 08:35:27 +02:00
2022-05-23 08:35:27 +02:00
2022-03-04 14:15:47 +01:00
2023-01-19 15:31:06 +01:00
2023-02-06 15:46:34 +01:00
2021-09-22 09:22:51 +02:00
2022-06-03 00:22:06 +02:00
2022-03-31 10:58:52 +02:00
2023-02-05 19:03:09 +01:00
2023-01-07 09:47:44 +01:00
2022-03-04 14:15:47 +01:00
2022-03-04 14:16:01 +01:00
2022-09-16 14:00:35 +02:00
2022-12-15 10:15:31 +00:00
2022-09-14 15:05:25 +02:00
2022-09-16 22:57:28 +02:00
2021-01-18 10:42:35 +01:00
2022-01-18 16:27:44 +01:00
2022-09-14 15:05:25 +02:00
2022-03-04 14:15:48 +01:00
2022-05-23 08:35:27 +02:00
2022-03-04 14:15:49 +01:00
2022-05-23 08:35:27 +02:00
2023-02-13 21:09:07 +00:00
2022-05-23 08:35:27 +02:00
2023-01-05 14:25:18 +01:00
2022-03-04 14:15:50 +01:00
2023-01-05 14:25:19 +01:00
2022-05-23 08:35:27 +02:00
2021-08-13 19:50:38 +02:00
2022-08-17 12:56:07 +02:00
2022-06-12 15:57:04 +02:00
2023-02-02 02:04:09 +01:00
2022-05-23 08:35:27 +02:00
2022-10-20 00:43:27 +02:00
2022-05-23 08:35:27 +02:00
2022-09-14 15:05:25 +02:00
2022-05-23 08:35:27 +02:00
2021-01-21 11:22:29 +01:00
2022-09-26 18:54:40 +02:00
2022-11-22 13:39:35 +01:00
2022-12-14 21:47:32 +01:00
2022-09-16 14:00:35 +02:00
2022-07-20 17:37:33 +02:00
2022-05-23 08:35:27 +02:00
2022-05-23 08:35:27 +02:00
2022-05-23 08:35:27 +02:00
2023-01-10 15:44:57 +00:00
2022-09-26 18:54:40 +02:00
2022-12-14 08:18:45 -05:00
2021-11-18 10:14:51 +01:00
2022-05-23 08:35:27 +02:00
2022-03-04 14:15:57 +01:00
2022-09-14 15:11:14 +02:00
2022-03-04 14:15:58 +01:00
2022-05-24 17:45:58 +02:00
2022-09-14 15:05:25 +02:00
2023-01-25 08:47:26 +01:00
2022-09-16 22:57:28 +02:00
2022-09-16 22:57:28 +02:00
2022-05-23 08:35:27 +02:00
2022-03-04 14:16:02 +01:00
2023-01-05 14:25:19 +01:00
2021-05-25 14:21:58 +02:00
2022-03-04 14:15:58 +01:00
2022-05-23 08:35:27 +02:00
2022-05-23 08:35:27 +02:00
2020-12-02 10:13:50 +01:00
2021-11-16 20:16:59 +01:00
2022-12-07 16:34:34 +01:00
2022-09-14 15:05:25 +02:00
2022-05-23 08:35:27 +02:00
2023-02-02 02:04:09 +01:00
2022-09-16 22:57:28 +02:00
2023-01-07 02:27:01 +01:00
2022-09-16 22:57:28 +02:00
2020-06-26 13:09:33 +02:00
2023-02-02 02:04:09 +01:00
2023-02-01 21:57:23 +01:00
2020-03-04 16:13:40 +01:00
2023-02-13 21:09:07 +00:00