Bug 5984 - [ANCK 5.10] drm/virtio: Correct drm_gem_shmem_get_sg_table() error handling
Summary: [ANCK 5.10] drm/virtio: Correct drm_gem_shmem_get_sg_table() error handling
Status: RESOLVED FIXED
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: GuixinLiu
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-26 10:45 UTC by zhujun
Modified: 2023-08-16 15:55 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhujun cmss_group 2023-07-26 10:45:37 UTC
kernel-5.10 软件逻辑bug,在return之前,没有将指针设置为NULL,导致crash virtio_gpu_cleanup_object()函数 crash


Additional info:

社区有patch已经解决
drm/virtio: Correct drm_gem_shmem_get_sg_table() error handling

commit 87c647def389354c95263d6635c62ca0de7d12ca

Reference:https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=87c647def389354c95263d6635c62ca0de7d12ca

git cherry-pick -s 87c647def38935(with stable-v5.10.171 repo added)
Comment 1 小龙 admin 2023-07-26 10:54:08 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/1951
Comment 2 GuixinLiu alibaba_cloud_group 2023-08-16 15:55:01 UTC
already fixed