Skip to content

misc: adi-axi-tdd: fix heap buffer overflow in adi_axi_tdd_init_sysfs()#3136

Merged
nunojsa merged 1 commit intomainfrom
staging/adi-axi-tdd-fixes
Feb 18, 2026
Merged

misc: adi-axi-tdd: fix heap buffer overflow in adi_axi_tdd_init_sysfs()#3136
nunojsa merged 1 commit intomainfrom
staging/adi-axi-tdd-fixes

Conversation

@amiclaus
Copy link
Contributor

PR Description

Use sizeof(*attr_group) instead of sizeof(attr_group) to allocate the correct struct size rather than just the pointer size.

Fixes: 4519bcc ("drivers: misc: adi-axi-tdd: Add TDD engine")

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have compiled my changes, including the documentation
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly
  • I have provided links for the relevant upstream lore

Use sizeof(*attr_group) instead of sizeof(attr_group) to allocate
the correct struct size rather than just the pointer size.

Fixes: 4519bcc ("drivers: misc: adi-axi-tdd: Add TDD engine")
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
@nunojsa nunojsa merged commit aa2470a into main Feb 18, 2026
32 checks passed
@nunojsa nunojsa deleted the staging/adi-axi-tdd-fixes branch February 18, 2026 15:02
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

Comments