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


Groups > linux.kernel > #1640152

Re: [PATCH v2] scsi: sg: don't return bogus Sg_requests

From "Martin K. Petersen" <martin.petersen@oracle.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2] scsi: sg: don't return bogus Sg_requests
Date 2017-05-12 05:20 +0200
Message-ID <tG9hw-6RZ-15@gated-at.bofh.it> (permalink)
References <tFuHo-6mF-15@gated-at.bofh.it>
Organization Oracle Corporation

Show all headers | View raw


Johannes,

> If the list search in sg_get_rq_mark() fails to find a valid request,
> we return a bogus element. This then can later lead to a GPF in
> sg_remove_scat().
>
> So don't return bogus Sg_requests in sg_get_rq_mark() but NULL in case
> the list search doesn't find a valid request.

Applied to 4.12/scsi-fixes, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

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


Thread

[PATCH v2] scsi: sg: don't return bogus Sg_requests Johannes Thumshirn <jthumshirn@suse.de> - 2017-05-10 10:00 +0200
  Re: [PATCH v2] scsi: sg: don't return bogus Sg_requests Hannes Reinecke <hare@suse.de> - 2017-05-10 10:10 +0200
  Re: [PATCH v2] scsi: sg: don't return bogus Sg_requests Douglas Gilbert <dgilbert@interlog.com> - 2017-05-10 21:50 +0200
  Re: [PATCH v2] scsi: sg: don't return bogus Sg_requests "Martin K. Petersen" <martin.petersen@oracle.com> - 2017-05-12 05:20 +0200

csiph-web