|
| 1 | +From 59978b21ad9c65276ee8e14f26759691b8a65763 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Tom Stellard < [email protected]> |
| 3 | +Date: Mon, 28 Apr 2025 13:45:11 -0700 |
| 4 | +Subject: [PATCH] [sanitizer_common] Remove interceptors for deprecated struct |
| 5 | + termio (#137403) |
| 6 | + |
| 7 | +This struct will be removed from glibc-2.42 and has been deprecated for |
| 8 | +a very long time. |
| 9 | + |
| 10 | +Fixes #137321 |
| 11 | +--- |
| 12 | + .../sanitizer_common_interceptors_ioctl.inc | 8 -------- |
| 13 | + .../sanitizer_common/sanitizer_platform_limits_posix.cpp | 3 --- |
| 14 | + .../sanitizer_common/sanitizer_platform_limits_posix.h | 1 - |
| 15 | + 3 files changed, 12 deletions(-) |
| 16 | + |
| 17 | +diff --git a/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc b/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc |
| 18 | +index f88f914b1d149..bc8f02826c614 100644 |
| 19 | +--- a/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc |
| 20 | ++++ b/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc |
| 21 | +@@ -342,17 +342,9 @@ static void ioctl_table_fill() { |
| 22 | + _(SOUND_PCM_WRITE_CHANNELS, WRITE, sizeof(int)); |
| 23 | + _(SOUND_PCM_WRITE_FILTER, WRITE, sizeof(int)); |
| 24 | + _(TCFLSH, NONE, 0); |
| 25 | +-#if SANITIZER_GLIBC |
| 26 | +- _(TCGETA, WRITE, struct_termio_sz); |
| 27 | +-#endif |
| 28 | + _(TCGETS, WRITE, struct_termios_sz); |
| 29 | + _(TCSBRK, NONE, 0); |
| 30 | + _(TCSBRKP, NONE, 0); |
| 31 | +-#if SANITIZER_GLIBC |
| 32 | +- _(TCSETA, READ, struct_termio_sz); |
| 33 | +- _(TCSETAF, READ, struct_termio_sz); |
| 34 | +- _(TCSETAW, READ, struct_termio_sz); |
| 35 | +-#endif |
| 36 | + _(TCSETS, READ, struct_termios_sz); |
| 37 | + _(TCSETSF, READ, struct_termios_sz); |
| 38 | + _(TCSETSW, READ, struct_termios_sz); |
| 39 | +diff --git a/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp |
| 40 | +index b4d87ab6228e5..7a89bf1c74985 100644 |
| 41 | +--- a/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp |
| 42 | ++++ b/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp |
| 43 | +@@ -494,9 +494,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr); |
| 44 | + unsigned struct_input_id_sz = sizeof(struct input_id); |
| 45 | + unsigned struct_mtpos_sz = sizeof(struct mtpos); |
| 46 | + unsigned struct_rtentry_sz = sizeof(struct rtentry); |
| 47 | +-#if SANITIZER_GLIBC || SANITIZER_ANDROID |
| 48 | +- unsigned struct_termio_sz = sizeof(struct termio); |
| 49 | +-#endif |
| 50 | + unsigned struct_vt_consize_sz = sizeof(struct vt_consize); |
| 51 | + unsigned struct_vt_sizes_sz = sizeof(struct vt_sizes); |
| 52 | + unsigned struct_vt_stat_sz = sizeof(struct vt_stat); |
| 53 | +diff --git a/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h |
| 54 | +index 348bb4f27aec3..fdc52aa56c493 100644 |
| 55 | +--- a/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h |
| 56 | ++++ b/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h |
| 57 | +@@ -1063,7 +1063,6 @@ extern unsigned struct_hd_geometry_sz; |
| 58 | + extern unsigned struct_input_absinfo_sz; |
| 59 | + extern unsigned struct_input_id_sz; |
| 60 | + extern unsigned struct_mtpos_sz; |
| 61 | +-extern unsigned struct_termio_sz; |
| 62 | + extern unsigned struct_vt_consize_sz; |
| 63 | + extern unsigned struct_vt_sizes_sz; |
| 64 | + extern unsigned struct_vt_stat_sz; |
0 commit comments