summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2020-10-21 14:43:57 -0700
committerGitHub <noreply@github.com>2020-10-21 14:43:57 -0700
commitb48fec96551ac95768b76102703c4039a64c1168 (patch)
tree11b24f3863a28010c7f16380ef35c03857f15d6c /.github
parent8dbc3c79379f2243fc04d444239d009c1c610016 (diff)
net: fix use-after-free in slab compaction (#3019)
An off-by-one bug results in freeing the incorrect page. This also adds an `asan` CI job. Fixes: 3014
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d2bcc47d..975ed5c4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -112,6 +112,21 @@ jobs:
- name: miri
run: cargo miri test --features rt,rt-multi-thread,sync task
working-directory: tokio
+ san:
+ name: san
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ toolchain: ${{ env.nightly }}
+ override: true
+ - name: asan
+ run: cargo test --all-features --target x86_64-unknown-linux-gnu --lib -- --test-threads 1
+ working-directory: tokio
+ env:
+ RUSTFLAGS: -Z sanitizer=address
+ ASAN_OPTIONS: detect_leaks=0
cross:
name: cross