Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Fix another move-native fmt::Debug crash (vector-of-structs). #194

Merged
merged 1 commit into from
Jun 11, 2023

Conversation

nvjle
Copy link

@nvjle nvjle commented Jun 11, 2023

This patch fixes another occurrence of the move-native runtime defect where a debug formatter-- this time in the vector-of-structs case-- dereferenced and called a rogue pointer. This results in a callx out of the address space. #191.

Also enhanced the fmt::Debug routines for structs to output the struct name and otherwise make the output more like what a default rust debug formatter for structs would do.

Other minor NFC clean-ups.

Added a runnable rbpf test cases demonstrating vector-of-struct operations and debug-printing. Updated the log messages of the other rtty tests since the output now includes names.

Thi patch fixes another occurrence in the move-native runtime library
defect where a debug formatter-- this time in the vector-of-structs case--
dereferenced and called a rogue pointer. This results in a callx out of
the address space.  anza-xyz#191.

Also enhanced the fmt::Debug routines for structs to output the struct name
and otherwise make the output more like what a default rust debug formatter
for structs would do.

Other minor NFC clean-ups.

Added a runnable rbpf test cases demonstrating vector-of-struct operations
and debug-printing. Updated the log messages of the other rtty tests since
the output now includes names.
Copy link
Collaborator

@jcivlin jcivlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nvjle nvjle merged commit 15ef121 into anza-xyz:llvm-sys Jun 11, 2023
4 checks passed
ksolana pushed a commit to ksolana/move that referenced this pull request Jun 24, 2023
…yz#194)

This patch fixes another occurrence of the move-native runtime 
defect where a debug formatter-- this time in the vector-of-structs case--
dereferenced and called a rogue pointer. This results in a callx out of
the address space.  anza-xyz#191.
  
Also enhanced the fmt::Debug routines for structs to output the struct name
and otherwise make the output more like what a default rust debug formatter
for structs would do.
    
Other minor NFC clean-ups.
    
Added a runnable rbpf test cases demonstrating vector-of-struct operations
and debug-printing. Updated the log messages of the other rtty tests since
the output now includes names.
ksolana pushed a commit to ksolana/move that referenced this pull request Jul 6, 2023
…yz#194)

This patch fixes another occurrence of the move-native runtime 
defect where a debug formatter-- this time in the vector-of-structs case--
dereferenced and called a rogue pointer. This results in a callx out of
the address space.  anza-xyz#191.
  
Also enhanced the fmt::Debug routines for structs to output the struct name
and otherwise make the output more like what a default rust debug formatter
for structs would do.
    
Other minor NFC clean-ups.
    
Added a runnable rbpf test cases demonstrating vector-of-struct operations
and debug-printing. Updated the log messages of the other rtty tests since
the output now includes names.
ksolana pushed a commit that referenced this pull request Jul 17, 2023
This patch fixes another occurrence of the move-native runtime 
defect where a debug formatter-- this time in the vector-of-structs case--
dereferenced and called a rogue pointer. This results in a callx out of
the address space.  #191.
  
Also enhanced the fmt::Debug routines for structs to output the struct name
and otherwise make the output more like what a default rust debug formatter
for structs would do.
    
Other minor NFC clean-ups.
    
Added a runnable rbpf test cases demonstrating vector-of-struct operations
and debug-printing. Updated the log messages of the other rtty tests since
the output now includes names.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants