Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1601807

Re: [PATCH] drivers, scsi: convert iscsi_task.refcount from atomic_t to refcount_t

From "Martin K. Petersen" <martin.petersen@oracle.com>
Newsgroups linux.kernel
Subject Re: [PATCH] drivers, scsi: convert iscsi_task.refcount from atomic_t to refcount_t
Date 2017-03-16 00:20 +0100
Message-ID <tlqn0-6ih-11@gated-at.bofh.it> (permalink)
References <tj4JY-4BF-23@gated-at.bofh.it>
Organization Oracle Corporation

Show all headers | View raw


Elena Reshetova <elena.reshetova@intel.com> writes:

> refcount_t type and corresponding API should be used instead of
> atomic_t when the variable is used as a reference counter. This allows
> to avoid accidental refcounter overflows that might lead to
> use-after-free situations.

Applied to 4.12/scsi-queue.

-- 
Martin K. Petersen	Oracle Linux Engineering

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] drivers, scsi: convert iscsi_task.refcount from atomic_t to refcount_t "Martin K. Petersen" <martin.petersen@oracle.com> - 2017-03-16 00:20 +0100

csiph-web