[Cluster-devel] [PATCH AUTOSEL 4.19 216/237] dlm: fix invalid free

2019-11-16 Thread Sasha Levin
From: Tycho Andersen [ Upstream commit d968b4e240cfe39d39d80483bac8bca8716fd93c ] dlm_config_nodes() does not allocate nodes on failure, so we should not free() nodes when it fails. Signed-off-by: Tycho Andersen Signed-off-by: David Teigland Signed-off-by: Sasha Levin --- fs/dlm/member.c |

[Cluster-devel] [PATCH AUTOSEL 4.19 217/237] dlm: don't leak kernel pointer to userspace

2019-11-16 Thread Sasha Levin
From: Tycho Andersen [ Upstream commit 9de30f3f7f4d31037cfbb7c787e1089c1944b3a7 ] In copy_result_to_user(), we first create a struct dlm_lock_result, which contains a struct dlm_lksb, the last member of which is a pointer to the lvb. Unfortunately, we copy the entire struct dlm_lksb to the

[Cluster-devel] [PATCH AUTOSEL 4.14 134/150] dlm: fix invalid free

2019-11-16 Thread Sasha Levin
From: Tycho Andersen [ Upstream commit d968b4e240cfe39d39d80483bac8bca8716fd93c ] dlm_config_nodes() does not allocate nodes on failure, so we should not free() nodes when it fails. Signed-off-by: Tycho Andersen Signed-off-by: David Teigland Signed-off-by: Sasha Levin --- fs/dlm/member.c |

[Cluster-devel] [PATCH AUTOSEL 4.9 88/99] dlm: don't leak kernel pointer to userspace

2019-11-16 Thread Sasha Levin
From: Tycho Andersen [ Upstream commit 9de30f3f7f4d31037cfbb7c787e1089c1944b3a7 ] In copy_result_to_user(), we first create a struct dlm_lock_result, which contains a struct dlm_lksb, the last member of which is a pointer to the lvb. Unfortunately, we copy the entire struct dlm_lksb to the

[Cluster-devel] [PATCH AUTOSEL 4.9 87/99] dlm: fix invalid free

2019-11-16 Thread Sasha Levin
From: Tycho Andersen [ Upstream commit d968b4e240cfe39d39d80483bac8bca8716fd93c ] dlm_config_nodes() does not allocate nodes on failure, so we should not free() nodes when it fails. Signed-off-by: Tycho Andersen Signed-off-by: David Teigland Signed-off-by: Sasha Levin --- fs/dlm/member.c |

[Cluster-devel] [PATCH AUTOSEL 4.4 03/77] gfs2: Fix marking bitmaps non-full

2019-11-16 Thread Sasha Levin
From: Andreas Gruenbacher [ Upstream commit ec23df2b0cf3e1620f5db77972b7fb735f267eff ] Reservations in gfs can span multiple gfs2_bitmaps (but they won't span multiple resource groups). When removing a reservation, we want to clear the GBF_FULL flags of all involved gfs2_bitmaps, not just that

[Cluster-devel] [PATCH AUTOSEL 4.19 007/237] gfs2: Fix marking bitmaps non-full

2019-11-16 Thread Sasha Levin
From: Andreas Gruenbacher [ Upstream commit ec23df2b0cf3e1620f5db77972b7fb735f267eff ] Reservations in gfs can span multiple gfs2_bitmaps (but they won't span multiple resource groups). When removing a reservation, we want to clear the GBF_FULL flags of all involved gfs2_bitmaps, not just that

[Cluster-devel] [PATCH AUTOSEL 4.14 003/150] gfs2: Fix marking bitmaps non-full

2019-11-16 Thread Sasha Levin
From: Andreas Gruenbacher [ Upstream commit ec23df2b0cf3e1620f5db77972b7fb735f267eff ] Reservations in gfs can span multiple gfs2_bitmaps (but they won't span multiple resource groups). When removing a reservation, we want to clear the GBF_FULL flags of all involved gfs2_bitmaps, not just that

[Cluster-devel] [PATCH AUTOSEL 4.14 135/150] dlm: don't leak kernel pointer to userspace

2019-11-16 Thread Sasha Levin
From: Tycho Andersen [ Upstream commit 9de30f3f7f4d31037cfbb7c787e1089c1944b3a7 ] In copy_result_to_user(), we first create a struct dlm_lock_result, which contains a struct dlm_lksb, the last member of which is a pointer to the lvb. Unfortunately, we copy the entire struct dlm_lksb to the

[Cluster-devel] [PATCH AUTOSEL 4.4 71/77] dlm: don't leak kernel pointer to userspace

2019-11-16 Thread Sasha Levin
From: Tycho Andersen [ Upstream commit 9de30f3f7f4d31037cfbb7c787e1089c1944b3a7 ] In copy_result_to_user(), we first create a struct dlm_lock_result, which contains a struct dlm_lksb, the last member of which is a pointer to the lvb. Unfortunately, we copy the entire struct dlm_lksb to the

[Cluster-devel] [PATCH AUTOSEL 4.4 70/77] dlm: fix invalid free

2019-11-16 Thread Sasha Levin
From: Tycho Andersen [ Upstream commit d968b4e240cfe39d39d80483bac8bca8716fd93c ] dlm_config_nodes() does not allocate nodes on failure, so we should not free() nodes when it fails. Signed-off-by: Tycho Andersen Signed-off-by: David Teigland Signed-off-by: Sasha Levin --- fs/dlm/member.c |