[https://nvbugs/5740377][fix] Prevent out-of-bounds read (#10868)

Signed-off-by: Hui Gao <huig@nvidia.com>
Co-authored-by: Thor Johnsen <41591019+thorjohnsen@users.noreply.github.com>
Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
This commit is contained in:
HuiGao-NV 2026-01-22 11:04:47 +08:00 committed by Yanchao Lu
parent 2a5b8800e1
commit 8fd22ac72d
2 changed files with 4 additions and 1 deletions

View File

@ -483,7 +483,6 @@ void KVCacheBlock::removeNextBlock(BlockKey const& blockKey)
void KVCacheBlock::freeDescendantsRecursively()
{
std::lock_guard<std::mutex> lock(mNextBlocksMutex);
bool hasChildren = !mNextBlocks.empty();
if (hasChildren)
{

View File

@ -340,6 +340,10 @@ examples/test_ray.py::test_llm_inference_distributed_ray[tp2pp2] SKIP (https://n
test_e2e.py::test_openai_chat_harmony SKIP (https://nvbugs/5819444)
accuracy/test_cli_flow.py::TestLlama2_7B::test_fp8 SKIP (https://nvbugs/5819452)
accuracy/test_llm_api_pytorch.py::TestDeepSeekV3Lite::test_bfloat16_4gpus[ep4-mtp_nextn=2-attention_dp=True-cuda_graph=True-overlap_scheduler=True-torch_compile=False] SKIP (https://nvbugs/5800646)
accuracy/test_llm_api_pytorch.py::TestLlama4ScoutInstruct::test_fp4[tp4-cuda_graph=True] SKIP (https://nvbugs/5820734)
llmapi/test_llm_examples.py::test_llmapi_tensorrt_engine SKIP (https://nvbugs/5820553)
accuracy/test_disaggregated_serving.py::TestDeepSeekV3Lite::test_guided_decoding[xgrammar-mtp_nextn=0] SKIP (https://nvbugs/5748600)
accuracy/test_disaggregated_serving.py::TestDeepSeekV3Lite::test_guided_decoding[llguidance-mtp_nextn=0] SKIP (https://nvbugs/5748600)
accuracy/test_disaggregated_serving.py::TestQwen3_30B_A3B::test_mixed_ctx_gen_model[ctxpp2gentp2] SKIP (https://nvbugs/5748664)
perf/test_perf_sanity.py::test_e2e[aggr_upload-deepseek_r1_fp4_v2_grace_blackwell-r1_fp4_v2_tep4_mtp3_8k1k] SKIP (https://nvbugs/5819053)
examples/test_llama.py::test_llama_3_x_with_bf16_lora_torch[llama-3.2-1b-instruct] SKIP (https://nvbugs/5838178)