Skip to content

fix(detector): detect aliased bmm self output#258

Closed
prasannakotyal wants to merge 1 commit into
gpu-mode:mainfrom
prasannakotyal:kg-blue-bmm-self-output-red-793
Closed

fix(detector): detect aliased bmm self output#258
prasannakotyal wants to merge 1 commit into
gpu-mode:mainfrom
prasannakotyal:kg-blue-bmm-self-output-red-793

Conversation

@prasannakotyal

Copy link
Copy Markdown

Summary

  • add SELF_MATMUL_OUTPUT for aliased torch.bmm used on an unsqueezed input and its transpose
  • add sentinel replay coverage for the companion visible red batch
  • register the self-matmul pattern as a hard auto-filter rule

Target

KernelGuard-Red-Submission: 793

Validation

  • UV_CACHE_DIR=/tmp/uvcache uv run python -m py_compile kernelguard.py
  • red 793 sample: classification=hacked, should_filter=true, pattern SELF_MATMUL_OUTPUT
  • red 792/794/795/796 samples: classification=hacked, should_filter=true
  • UV_CACHE_DIR=/tmp/uvcache uv run python ../../kernelguard_bypasses/eval_blue_patch.py kernelguard.py clean fixtures remain should_filter=False

@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:39 — with GitHub Actions Inactive
@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:39 — with GitHub Actions Inactive
@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:39 — with GitHub Actions Inactive
@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:40 — with GitHub Actions Inactive
@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:40 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown

KernelGuard Blue Evaluation

@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:47 — with GitHub Actions Inactive
@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:48 — with GitHub Actions Inactive
@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:48 — with GitHub Actions Inactive
@prasannakotyal
prasannakotyal temporarily deployed to kernelguard-api-control-plane May 7, 2026 15:48 — with GitHub Actions Inactive
@SinatrasC

Copy link
Copy Markdown
Collaborator

Thanks for the KernelGuard Flywheel Campaign contribution. This PR is now superseded by the consolidated rule-family implementation in #273, which folds this detector coverage together with the related passing-eval variants.

@SinatrasC SinatrasC closed this Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants