fix(driver): fix memory security problem in tty device ioctl (#833)

* add soft link to musl-gcc

* fix the tty_ioctl

* modified

* modified
This commit is contained in:
laokengwt
2024-05-31 10:20:51 +08:00
committed by GitHub
parent de199e3c86
commit 415e14e9c3
4 changed files with 45 additions and 20 deletions

View File

@ -1,4 +1,5 @@
use core::{
any::Any,
fmt::Debug,
sync::atomic::{AtomicBool, Ordering},
};
@ -8,6 +9,7 @@ use alloc::{
sync::{Arc, Weak},
vec::Vec,
};
use intertrait::CastFromSync;
use system_error::SystemError;
use crate::{
@ -130,6 +132,10 @@ impl EPollItem {
}
}
pub trait KernelIoctlData: Send + Sync + Any + Debug + CastFromSync {}
impl KernelIoctlData for EPollItem {}
/// ### Epoll文件的私有信息
#[derive(Debug, Clone)]
pub struct EPollPrivateData {