Skip to content

Conversation

@eliastam
Copy link
Collaborator

Resolves #509

Modify AclPrefixCheck to use the new fast ACL API only for real user clients.
During replication context, fall back to the legacy ACL path which has proper
safety checks and prevents segmentation fault in VM_GetModuleUserFromUserName.

This approach:
- Preserves fast ACL checking for real users when new API is available
- Uses safe legacy path during replication/AOF/internal operations
- Prevents crashes while maintaining performance benefits

Fixes crash introduced in commit e9f277c when ACL checking was added.
I, Elias Tamraz <[email protected]>, hereby add my Signed-off-by to this commit: 0384de5

Address code review feedback:
- Add early return for non-real users to avoid unnecessary work
- Replace conditional check with assertion for better error handling

Co-authored-by: yairgott
Signed-off-by: Elias Tamraz <[email protected]>
@eliastam
Copy link
Collaborator Author

eliastam commented Dec 5, 2025

@yairgott anything pending here ?
it seems Integration tests ASAN / integration-tests-asan (pull_request) was canceled

Canceling since a higher priority waiting request for integration-tests-main exists

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.

[BUG]

2 participants