diff options
| -rw-r--r-- | kernel/kubsan.c | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/kubsan.c b/kernel/kubsan.c index 2923268..e2d682c 100644 --- a/kernel/kubsan.c +++ b/kernel/kubsan.c @@ -39,6 +39,20 @@ void __ubsan_handle_mul_overflow(struct OverflowData *data, unsigned long lhs,    ubsan_log("handle_mul_overflow", data->location);  } +void __ubsan_handle_negate_overflow(struct OverflowData *data, +                                    unsigned long lhs, unsigned long rhs) { +  (void)lhs; +  (void)rhs; +  ubsan_log("handle_negate_overflow", data->location); +} + +void __ubsan_handle_divrem_overflow(struct OverflowData *data, +                                    unsigned long lhs, unsigned long rhs) { +  (void)lhs; +  (void)rhs; +  ubsan_log("handle_divrem_overflow", data->location); +} +  void __ubsan_handle_out_of_bounds(struct OutOfBoundsData *data, void *index) {    (void)index;    ubsan_log("handle_out_of_bounds", data->location);  |