// Syscall overrides are performing integer-to-pointer conversions, which
// should be done with `ptr::from_exposed_addr` in Rust nightly, but we have
// to support stable as well.
#[cfg_attr(miri, ignore)]
#[cfg_attr(
miri,
ignore="`let map_info = unsafe { &mut *(attr.info.info as *mut bpf_map_info) }` is trying to retag from <wildcard> for Unique permission, but no exposed tags have suitable permission in the borrow stack for this location"
)]
fntest_name(){
usecrate::generated::bpf_map_info;
@ -1183,10 +1183,10 @@ mod tests {
}
#[test]
// Syscall overrides are performing integer-to-pointer conversions, which
// should be done with `ptr::from_exposed_addr` in Rust nightly, but we have
// to support stable as well.
#[cfg_attr(miri, ignore)]
#[cfg_attr(
miri,
ignore="`let map_info = unsafe { &mut *(attr.info.info as *mut bpf_map_info) }` is trying to retag from <wildcard> for Unique permission, but no exposed tags have suitable permission in the borrow stack for this location"
ignore="`unsafe { (*header).data_tail = tail as u64 };` is attempting a write access using using a tag that only grants SharedReadOnly permission"
)]
fntest_no_events(){
letmmapped_buf=MMappedBuf{
data: [0;PAGE_SIZE*2],
@ -355,7 +357,10 @@ mod tests {
}
#[test]
#[cfg_attr(miri, ignore)]
#[cfg_attr(
miri,
ignore="`ptr::write_unaligned(dst, value)` is attempting a write access but no exposed tags have suitable permission in the borrow stack for this location"
)]
fntest_read_first_lost(){
letmutmmapped_buf=MMappedBuf{
data: [0;PAGE_SIZE*2],
@ -428,7 +433,10 @@ mod tests {
}
#[test]
#[cfg_attr(miri, ignore)]
#[cfg_attr(
miri,
ignore="`ptr::write_unaligned(dst, value)` is attempting a write access but no exposed tags have suitable permission in the borrow stack for this location"
)]
fntest_read_first_sample(){
letmutmmapped_buf=MMappedBuf{
data: [0;PAGE_SIZE*2],
@ -446,7 +454,10 @@ mod tests {
}
#[test]
#[cfg_attr(miri, ignore)]
#[cfg_attr(
miri,
ignore="`ptr::write_unaligned(dst, value)` is attempting a write access but no exposed tags have suitable permission in the borrow stack for this location"
)]
fntest_read_many_with_many_reads(){
letmutmmapped_buf=MMappedBuf{
data: [0;PAGE_SIZE*2],
@ -469,7 +480,10 @@ mod tests {
}
#[test]
#[cfg_attr(miri, ignore)]
#[cfg_attr(
miri,
ignore="`ptr::write_unaligned(dst, value)` is attempting a write access but no exposed tags have suitable permission in the borrow stack for this location"
)]
fntest_read_many_with_one_read(){
letmutmmapped_buf=MMappedBuf{
data: [0;PAGE_SIZE*2],
@ -491,7 +505,10 @@ mod tests {
}
#[test]
#[cfg_attr(miri, ignore)]
#[cfg_attr(
miri,
ignore="`ptr::write_unaligned(dst, value)` is attempting a write access but no exposed tags have suitable permission in the borrow stack for this location"
)]
fntest_read_last_sample(){
letmutmmapped_buf=MMappedBuf{
data: [0;PAGE_SIZE*2],
@ -511,7 +528,10 @@ mod tests {
}
#[test]
#[cfg_attr(miri, ignore)]
#[cfg_attr(
miri,
ignore="`ptr::write_unaligned(dst, value)` is attempting a write access but no exposed tags have suitable permission in the borrow stack for this location"
)]
fntest_read_wrapping_sample_size(){
letmutmmapped_buf=MMappedBuf{
data: [0;PAGE_SIZE*2],
@ -540,7 +560,10 @@ mod tests {
}
#[test]
#[cfg_attr(miri, ignore)]
#[cfg_attr(
miri,
ignore="`ptr::write_unaligned(dst, value)` is attempting a write access but no exposed tags have suitable permission in the borrow stack for this location"