You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running RepoAudit on MLK bugs, I noticed that it failed to detect a memory leak in a single-function bug, such as this commit.
Specifically, the leak in this line was not reported:
Line#76 at the buggy version:adis->xfer = kcalloc(scan_count + 1, sizeof(*adis->xfer), GFP_KERNEL);
I checked the logs and found that the LLM inference was actually correct. This led me to suspect there might be an issue in the logic of collect potential buggy path
Hi @Feng-Jay! we also found this buggy logic several days ago. I just merged the PR #21, and I think it can fix the issue.
The fix plan you proposed is also reasonable. However, the empty set will not trigger the validation stage. In our adopted patch, we just regard [src_value] as a path, which can still enable the validation.
@jinyaoguo Could you please also check this issue to see whether your patch can resolve it thoroughly?
Yes. Originally, the potential_buggy_path is empty for intra-procedural MLK bugs. After applying PR#21, at least we'll have the source in the potential_buggy_path to trigger validation, which reports the bug.
Activity
[-]Potential bugs when detecting MLK bugs[/-][+]Potential Bug in MLK Bug Detection Logic[/+]chengpeng-wang commentedon Sep 30, 2025
Hi @Feng-Jay! we also found this buggy logic several days ago. I just merged the PR #21, and I think it can fix the issue.
The fix plan you proposed is also reasonable. However, the empty set will not trigger the validation stage. In our adopted patch, we just regard [src_value] as a path, which can still enable the validation.
@jinyaoguo Could you please also check this issue to see whether your patch can resolve it thoroughly?
jinyaoguo commentedon Sep 30, 2025
Yes. Originally, the
potential_buggy_pathis empty for intra-procedural MLK bugs. After applying PR#21, at least we'll have the source in thepotential_buggy_pathto trigger validation, which reports the bug.Feng-Jay commentedon Sep 30, 2025
Great! Thanks for the quick reply and solution! : )