freebsd ktls: avoid unaligned 16 bit length store in ktls_read_record#28860
Closed
MegaManSec wants to merge 1 commit intoopenssl:masterfrom
Closed
freebsd ktls: avoid unaligned 16 bit length store in ktls_read_record#28860MegaManSec wants to merge 1 commit intoopenssl:masterfrom
MegaManSec wants to merge 1 commit intoopenssl:masterfrom
Conversation
This prevents SIGBUS on strict alignment architectures when p+3 is not aligned for 16 bit access. Behavior is unchanged on x86 and matches the Linux path. Signed-off-by: Joshua Rogers <[email protected]>
Sashan
reviewed
Oct 13, 2025
Contributor
Sashan
left a comment
There was a problem hiding this comment.
I think this change has no effect. do you have a crashdump triggered by SIGBUS? also what platform is on your mind here?
Contributor
Author
ARM FreeBSD, mostly. This is already done in the Linux path, here, seemingly because |
t8m
approved these changes
Oct 14, 2025
Member
t8m
left a comment
There was a problem hiding this comment.
I think this is better than the current code.
mattcaswell
approved these changes
Oct 14, 2025
Collaborator
|
This pull request is ready to merge |
Member
|
Merged to all the active branches. Thank you for your contribution. |
openssl-machine
pushed a commit
that referenced
this pull request
Oct 17, 2025
This prevents SIGBUS on strict alignment architectures when p+3 is not aligned for 16 bit access. Behavior is unchanged on x86 and matches the Linux path. Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28860)
openssl-machine
pushed a commit
that referenced
this pull request
Oct 17, 2025
This prevents SIGBUS on strict alignment architectures when p+3 is not aligned for 16 bit access. Behavior is unchanged on x86 and matches the Linux path. Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28860) (cherry picked from commit c33120d)
openssl-machine
pushed a commit
that referenced
this pull request
Oct 17, 2025
This prevents SIGBUS on strict alignment architectures when p+3 is not aligned for 16 bit access. Behavior is unchanged on x86 and matches the Linux path. Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28860) (cherry picked from commit c33120d)
openssl-machine
pushed a commit
that referenced
this pull request
Oct 17, 2025
This prevents SIGBUS on strict alignment architectures when p+3 is not aligned for 16 bit access. Behavior is unchanged on x86 and matches the Linux path. Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28860) (cherry picked from commit c33120d)
openssl-machine
pushed a commit
that referenced
this pull request
Oct 17, 2025
This prevents SIGBUS on strict alignment architectures when p+3 is not aligned for 16 bit access. Behavior is unchanged on x86 and matches the Linux path. Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28860) (cherry picked from commit c33120d)
openssl-machine
pushed a commit
that referenced
this pull request
Oct 17, 2025
This prevents SIGBUS on strict alignment architectures when p+3 is not aligned for 16 bit access. Behavior is unchanged on x86 and matches the Linux path. Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28860) (cherry picked from commit c33120d)
openssl-machine
pushed a commit
that referenced
this pull request
Oct 17, 2025
This prevents SIGBUS on strict alignment architectures when p+3 is not aligned for 16 bit access. Behavior is unchanged on x86 and matches the Linux path. Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28860) (cherry picked from commit c33120d)
MegaManSec
added a commit
to MegaManSec/openssl
that referenced
this pull request
Nov 11, 2025
This prevents SIGBUS on strict alignment architectures when p+3 is not aligned for 16 bit access. Behavior is unchanged on x86 and matches the Linux path. Signed-off-by: Joshua Rogers <[email protected]> Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl#28860)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This prevents SIGBUS on strict alignment architectures when p+3 is not aligned for 16 bit access. Behavior is unchanged on x86 and matches the Linux path.