Re: [PATCH 0/3] s390 refcount conversions
From: Julian Wiedmann
Date: Mon Oct 23 2017 - 08:11:35 EST
On 10/20/2017 09:47 AM, Elena Reshetova wrote:
> This series, for S390, replaces atomic_t reference
> counters with the new refcount_t type and API (see include/linux/refcount.h).
> By doing this we prevent intentional or accidental
> underflows or overflows that can led to use-after-free vulnerabilities.
>
> The patches are fully independent and can be cherry-picked separately.
> Patches are based on top of linux-next as of yesterday.
> If there are no objections to the patches, please merge them via respective trees
>
> Elena Reshetova (3):
> [S390] vmur: convert urdev.ref_count from atomic_t to refcount_t
> [S390] net: convert lcs_reply.refcnt from atomic_t to refcount_t
> [S390] qeth: convert qeth_reply.refcnt from atomic_t to refcount_t
>
> drivers/s390/char/vmur.c | 8 ++++----
> drivers/s390/char/vmur.h | 4 +++-
> drivers/s390/net/lcs.c | 10 +++++-----
> drivers/s390/net/lcs.h | 3 ++-
> drivers/s390/net/qeth_core.h | 3 ++-
> drivers/s390/net/qeth_core_main.c | 10 +++++-----
> 6 files changed, 21 insertions(+), 17 deletions(-)
>
Thanks Elena, I picked up the two network patches. Also removed the WARN_ONs while applying,
those who care may use CONFIG_REFCOUNT_FULL.