Skip to content

revokefs: Fix off-by-one array size in fuse implementation - #3110

Closed
alexlarsson wants to merge 1 commit into
flatpak:masterfrom
alexlarsson:revokefs-stack-overrun
Closed

alexlarsson wants to merge 1 commit into
flatpak:masterfrom
alexlarsson:revokefs-stack-overrun

Conversation

@alexlarsson

Copy link
Copy Markdown
Member

The iovec write_vecs[] array on the stack was just 2 element, but we
sometimes use 3 elements of it. This was causing random crashes due to
corrupting the stack.

The iovec write_vecs[] array on the stack was just 2 element, but we
sometimes use 3 elements of it. This was causing random crashes due to
corrupting the stack.
@alexlarsson

Copy link
Copy Markdown
Member Author

@rh-atomic-bot r+

@rh-atomic-bot

Copy link
Copy Markdown

📌 Commit cc9ae43 has been approved by alexlarsson

@rh-atomic-bot

Copy link
Copy Markdown

⌛ Testing commit cc9ae43 with merge 84e7b19...

@rh-atomic-bot

Copy link
Copy Markdown

☀️ Test successful - status-papr
Approved by: alexlarsson
Pushing 84e7b19 to master...

alexlarsson added a commit to alexlarsson/flatpak that referenced this pull request Sep 18, 2019
The iovec write_vecs[] array on the stack was just 2 element, but we
sometimes use 3 elements of it. This was causing random crashes due to
corrupting the stack.

Closes: flatpak#3110
Approved by: alexlarsson

(cherry picked from commit 84e7b19)
rh-atomic-bot pushed a commit that referenced this pull request Sep 18, 2019
The iovec write_vecs[] array on the stack was just 2 element, but we
sometimes use 3 elements of it. This was causing random crashes due to
corrupting the stack.

Closes: #3110
Approved by: alexlarsson

(cherry picked from commit 84e7b19)

Closes: #3111
Approved by: alexlarsson
alexlarsson added a commit that referenced this pull request Sep 18, 2019
The iovec write_vecs[] array on the stack was just 2 element, but we
sometimes use 3 elements of it. This was causing random crashes due to
corrupting the stack.

Closes: #3110
Approved by: alexlarsson

(cherry picked from commit 84e7b19)
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