DragonOS-Community / DragonOS

使用Rust从0自研内核,具有Linux兼容性的操作系统,面向云计算轻量化场景而设计。DragonOS is an operating system developed from scratch using Rust, with Linux compatibility. It is designed for lightweight cloud computing scenarios.
https://dragonos.org
GNU General Public License v2.0
817 stars 132 forks source link

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

Closed laokengwt closed 4 weeks ago

laokengwt commented 1 month ago

671

laokengwt commented 1 month ago

@dragonosbot review

fslongjin commented 1 month ago

r? @GnoCiYeH hey xd,麻烦看看这个

fslongjin commented 1 month ago

kernel_ioctl接口,作为通用的接口。没必要跟tty本身的数据/对象耦合。这样的写法没有可扩展性

@dragonosbot author

dragonosbot commented 1 month ago

tty驱动发生了更改,请进行审查

cc @GnoCiYeH

laokengwt commented 1 month ago

@dragonosbot review