-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Oipo/liburing
* 'master' of https://github.com/Oipo/liburing: CHANGELOG: add sanitizer adition Add tests for testing sanitizer functionality Add support for sanitizing user provided pointers src/setup: don't munmap user provided buffer test/read-mshot-empty: set line-endings to unix Skip tests that are not able to be run with sanitizers Clean up resources in various tests
- Loading branch information
Showing
55 changed files
with
798 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* SPDX-License-Identifier: MIT */ | ||
#ifndef LIBURING_SANITIZE_H | ||
#define LIBURING_SANITIZE_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
struct io_uring; | ||
struct iovec; | ||
|
||
#if defined(CONFIG_USE_SANITIZER) | ||
void liburing_sanitize_ring(struct io_uring *ring); | ||
void liburing_sanitize_address(const void *addr); | ||
void liburing_sanitize_region(const void *addr, unsigned int len); | ||
void liburing_sanitize_iovecs(const struct iovec *iovecs, unsigned nr); | ||
#else | ||
#define __maybe_unused __attribute__((__unused__)) | ||
static inline void liburing_sanitize_ring(struct io_uring __maybe_unused *ring) {} | ||
static inline void liburing_sanitize_address(const void __maybe_unused *addr) {} | ||
static inline void liburing_sanitize_region(const void __maybe_unused *addr, unsigned int __maybe_unused len) {} | ||
static inline void liburing_sanitize_iovecs(const struct iovec __maybe_unused *iovecs, unsigned __maybe_unused nr) {} | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.