Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1717984
| From | "Martin K. Petersen" <martin.petersen@oracle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] sg: protect against races between mmap() and SG_SET_RESERVED_SIZE |
| Date | 2017-08-23 04:30 +0200 |
| Message-ID | <uhtAC-2W7-3@gated-at.bofh.it> (permalink) |
| References | <ueZnj-36e-7@gated-at.bofh.it> |
| Organization | Oracle Corporation |
Todd, > Take f_mutex around mmap() processing to protect against races with > the SG_SET_RESERVED_SIZE ioctl. Ensure the reserve buffer length > remains consistent during the mapping operation, and set the > "mmap called" flag to prevent further changes to the reserved buffer > size as an atomic operation with the mapping. Applied to 4.14/scsi-queue (with a slight whitespace fix). Thanks! -- Martin K. Petersen Oracle Linux Engineering
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] sg: protect against races between mmap() and SG_SET_RESERVED_SIZE Todd Poynor <toddpoynor@google.com> - 2017-08-16 07:50 +0200 Re: [PATCH] sg: protect against races between mmap() and SG_SET_RESERVED_SIZE Douglas Gilbert <dgilbert@interlog.com> - 2017-08-23 03:50 +0200 Re: [PATCH] sg: protect against races between mmap() and SG_SET_RESERVED_SIZE "Martin K. Petersen" <martin.petersen@oracle.com> - 2017-08-23 04:30 +0200
csiph-web