From b48fec96551ac95768b76102703c4039a64c1168 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Wed, 21 Oct 2020 14:43:57 -0700 Subject: 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 --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to '.github') 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 -- cgit v1.2.3