Linux 4.8.3
Greg KH
maintainerI'm announcing the release of the 4.8.3 kernel.
All users of the 4.8 kernel series must upgrade.
The updated 4.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.8.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 +- drivers/scsi/hosts.c | 12 ++++++++---- fs/xfs/xfs_xattr.c | 1 + include/linux/mm.h | 1 + include/media/rcar-fcp.h | 2 +- mm/gup.c | 14 ++++++++++++-- 6 files changed, 24 insertions(+), 8 deletions(-)
Artem Savkov (1):
Make __xfs_xattr_put_listen preperly report errors.
Greg Kroah-Hartman (1):
Linux 4.8.3
Heiner Kallweit (1):
scsi: configure runtime pm before calling device_add in scsi_add_host_with_dma
Laurent Pinchart (1):
v4l: rcar-fcp: Don't force users to check for disabled FCP support
Linus Torvalds (1):
mm: remove gup_flags FOLL_WRITE games from __get_user_pages()
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 8 -SUBLEVEL = 2 +SUBLEVEL = 3 EXTRAVERSION = NAME = Psychotic Stoned Sheep
drivers/scsi/hosts.c +8 -4
@@ -246,10 +246,6 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev, shost->dma_dev = dma_dev; - error =device_add (&shost->shost_gendev); -if (error) - goto out_destroy_freelist; -/* * Increase usage count temporarily here so that calling * scsi_autopm_put_host() will trigger runtime idle if there is
@@ -260,6 +256,10 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev,pm_runtime_enable (&shost->shost_gendev);device_enable_async_suspend (&shost->shost_gendev); + error =device_add (&shost->shost_gendev); +if (error) + goto out_destroy_freelist; +scsi_host_set_state (shost,SHOST_RUNNING );get_device (shost->shost_gendev.parent);
@@ -309,6 +309,10 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev, out_del_gendev:device_del (&shost->shost_gendev); out_destroy_freelist: +device_disable_async_suspend (&shost->shost_gendev); +pm_runtime_disable (&shost->shost_gendev); +pm_runtime_set_suspended (&shost->shost_gendev); +pm_runtime_put_noidle (&shost->shost_gendev);scsi_destroy_command_freelist (shost); out_destroy_tags:if (shost_use_blk_mq (shost))
fs/xfs/xfs_xattr.c +1 -0
@@ -147,6 +147,7 @@ __xfs_xattr_put_listent( arraytop = context->count + prefix_len + namelen +1 ;if (arraytop > context->firstu) { context->count =-1 ;/* insufficient space */ + context->seen_enough =1 ;return 0 ; } offset = (char *)context->alist + context->count;
include/linux/mm.h +1 -0
@@ -2234,6 +2234,7 @@ static inline struct page *follow_page(struct vm_area_struct *vma,#define FOLL_TRIED 0x800/* a retry, previous pass started an IO */ #define FOLL_MLOCK 0x1000/* lock present pages */ #define FOLL_REMOTE 0x2000/* we are working on non-current tsk/mm */ +#define FOLL_COW 0x4000/* internal GUP flag */ typedef int (*pte_fn_t )(pte_t *pte,pgtable_t token,unsigned long addr,void *data);
include/media/rcar-fcp.h +1 -1
@@ -29,7 +29,7 @@ static inline struct rcar_fcp_device *rcar_fcp_get(const struct device_node *np)static inline void rcar_fcp_put (struct rcar_fcp_device *fcp) { }static inline int rcar_fcp_enable (struct rcar_fcp_device *fcp) { -return -ENOSYS ; +return 0 ; }static inline void rcar_fcp_disable (struct rcar_fcp_device *fcp) { }#endif
mm/gup.c +12 -2
@@ -60,6 +60,16 @@ static int follow_pfn_pte(struct vm_area_struct *vma, unsigned long address,return -EEXIST ; } +/* +* FOLL_FORCE can write to even unwritable pte's, but only +* after we've gone through a COW cycle and they are dirty. +*/ +static inline bool can_follow_write_pte (pte_t pte,unsigned int flags) +{ +return pte_write (pte) || + ((flags &FOLL_FORCE ) && (flags &FOLL_COW ) &&pte_dirty (pte)); +} +static struct page *follow_page_pte (struct vm_area_struct *vma,unsigned long address,pmd_t *pmd,unsigned int flags) {
@@ -95,7 +105,7 @@ retry: }if ((flags &FOLL_NUMA ) &&pte_protnone (pte)) goto no_page; -if ((flags &FOLL_WRITE ) && !pte_write (pte)) { +if ((flags &FOLL_WRITE ) && !can_follow_write_pte (pte, flags)) {pte_unmap_unlock (ptep, ptl);return NULL ; }
@@ -412,7 +422,7 @@ static int faultin_page(struct task_struct *tsk, struct vm_area_struct *vma,* reCOWed by userspace write). */ if ((ret &VM_FAULT_WRITE ) && !(vma->vm_flags &VM_WRITE )) - *flags &= ~FOLL_WRITE ; + *flags |=FOLL_COW ;return 0 ; }