Commit df02452
cgroup: cgroup_get_from_id() must check the looked-up kn is a directory
cgroup has to be one kernfs dir, otherwise kernel panic is caused,
especially cgroup id is provide from userspace.
Reported-by: Marco Patalano <[email protected]>
Fixes: 6b658c4 ("scsi: cgroup: Add cgroup_get_from_id()")
Cc: Muneendra <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Acked-by: Mukesh Ojha <[email protected]>
Cc: [email protected] # v5.14+
Signed-off-by: Tejun Heo <[email protected]>1 parent a81e18e commit df02452
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6049 | 6049 | | |
6050 | 6050 | | |
6051 | 6051 | | |
| 6052 | + | |
| 6053 | + | |
| 6054 | + | |
6052 | 6055 | | |
6053 | 6056 | | |
6054 | 6057 | | |
6055 | 6058 | | |
6056 | 6059 | | |
6057 | 6060 | | |
6058 | 6061 | | |
6059 | | - | |
| 6062 | + | |
6060 | 6063 | | |
6061 | 6064 | | |
6062 | 6065 | | |
| |||
0 commit comments