+173
−86
Loading
kunpeng inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAP49S CVE: NA ---------------------------------------------------------------------- 1. add mmap size validations, avoid mapping too big memory 2. add chn check before register read/write 3. use rwlock instead of spinlock while checking authority 4. Add validation of bios resources: io register size, irq_cnt and number of sdma channels to avoid Out-of-Bounds 5. add vm_flags while mmapping avoid copy while forking 6. add device lock for operations of accessing global info 7. change umem spinlock use method to avoid UAF 8. add ida validation while using exclusive channel 9. add task num validation while sending task 10. fix print infos to speed up problem fixing Signed-off-by:zhangshuowen <zhangshuowen@hisilicon.com> Fixes: 7d91f398 ("drivers: misc: sdma-dae: support sqe task send and execute")