Commit 4c9d078
selftests/bpf: Don't override SIGSEGV handler with ASAN
test_progs has custom SIGSEGV handler, which interferes with the
address sanitizer [1]. Add an #ifndef to avoid this.
Additionally, declare an __asan_on_error() to dump the test logs in
the same way it happens in the custom SIGSEGV handler.
[1] https://lore.kernel.org/bpf/73d832948b01dbc0ebc60d85574bdf8537f3a810.camel@gmail.com/
Acked-by: Mykyta Yatsenko <yatsenko@meta.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Link: https://lore.kernel.org/r/20260223191118.655185-3-ihor.solodrai@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>1 parent a2714e7 commit 4c9d078
1 file changed
Lines changed: 26 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1261 | 1261 | | |
1262 | 1262 | | |
1263 | 1263 | | |
1264 | | - | |
1265 | | - | |
| 1264 | + | |
1266 | 1265 | | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | | - | |
1272 | 1266 | | |
1273 | 1267 | | |
1274 | 1268 | | |
| |||
1277 | 1271 | | |
1278 | 1272 | | |
1279 | 1273 | | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
1280 | 1287 | | |
1281 | 1288 | | |
1282 | 1289 | | |
1283 | 1290 | | |
1284 | 1291 | | |
1285 | 1292 | | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
1286 | 1300 | | |
1287 | 1301 | | |
1288 | 1302 | | |
| |||
1944 | 1958 | | |
1945 | 1959 | | |
1946 | 1960 | | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
1947 | 1964 | | |
1948 | 1965 | | |
1949 | 1966 | | |
1950 | | - | |
1951 | | - | |
1952 | | - | |
| 1967 | + | |
1953 | 1968 | | |
| 1969 | + | |
1954 | 1970 | | |
1955 | 1971 | | |
1956 | 1972 | | |
| |||
0 commit comments