Bug 4213 - BUG: use after free in drbd_create_device()
Summary: BUG: use after free in drbd_create_device()
Status: RESOLVED FIXED
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: 5.10.y-15
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: GuixinLiu
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-24 14:22 UTC by tomsun
Modified: 2023-02-28 19:39 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 tomsun inspur_group 2023-02-24 14:22:06 UTC
Description of problem:

The drbd_destroy_connection() frees the "connection" so use the _safe()
iterator to prevent a use after free.

Fixes: b6f85ef9538b ("drbd: Iterate over all connections")
Comment 1 maqiao alibaba_cloud_group 2023-02-28 19:39:40 UTC
merged: https://gitee.com/anolis/cloud-kernel/pulls/1268