Linux 4.4.222
Greg KH
maintainerI'm announcing the release of the 4.4.222 kernel.
All users of the 4.4 kernel series must upgrade.
The updated 4.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/powerpc/perf/power8-pmu.c | 2 arch/x86/kernel/cpu/perf_event_intel.c | 3 drivers/acpi/device_pm.c | 4 - drivers/dma/dmatest.c | 4 - drivers/gpu/drm/qxl/qxl_cmd.c | 5 - drivers/i2c/busses/i2c-designware-core.c | 3 drivers/infiniband/hw/mlx4/main.c | 3 drivers/media/platform/exynos4-is/fimc-isp-video.c | 4 - drivers/vfio/vfio_iommu_type1.c | 4 - fs/ext4/inode.c | 2 fs/nfs/nfs3acl.c | 22 ++++-- net/ipv6/raw.c | 12 +++ security/selinux/hooks.c | 69 +++++++++++++-------- sound/core/oss/pcm_plugin.c | 20 +++--- sound/isa/opti9xx/miro.c | 9 +- sound/isa/opti9xx/opti92x-ad1848.c | 9 +- sound/soc/codecs/wm8960.c | 32 +++++---- sound/soc/fsl/imx-spdif.c | 2 tools/perf/util/hist.c | 2 20 files changed, 133 insertions(+), 80 deletions(-)
Alaa Hleihel (1):
RDMA/mlx4: Initialize ib_spec on the stack
Andreas Gruenbacher (1):
nfs: Fix potential posix_acl refcnt leak in nfs3_set_acl
Andy Shevchenko (2):
dmaengine: dmatest: Fix iteration non-stop logic
i2c: designware-pci: use IRQF_COND_SUSPEND flag
Arnd Bergmann (1):
ALSA: opti9xx: shut up gcc-10 range warning
Greg Kroah-Hartman (1):
Linux 4.4.222
Jiri Olsa (1):
perf hists: Fix HISTC_MEM_DCACHELINE width setting
Kai-Heng Feng (1):
PM: ACPI: Output correct message on target power state
Lars-Peter Clausen (1):
ASoC: imx-spdif: Fix crash on suspend
Madhavan Srinivasan (1):
powerpc/perf: Remove PPMU_HAS_SSLOT flag for Power8
Olivier Matz (1):
ipv6: use READ_ONCE() for inet->hdrincl as in ipv4
Paul Moore (1):
selinux: properly handle multiple messages in selinux_netlink_send()
Peter Zijlstra (1):
perf/x86: Fix uninitialized value usage
Rasmus Villemoes (1):
exynos4-is: fix a format string bug
Sean Christopherson (1):
vfio/type1: Fix VA->PA translation for PFNMAP VMAs in vaddr_get_pfn()
Stuart Henderson (1):
ASoC: wm8960: Fix WM8960_SYSCLK_PLL mode
Takashi Iwai (1):
ALSA: pcm: oss: Place the plugin buffer overflow checks correctly
Theodore Ts'o (1):
ext4: fix special inode number checks in __ext4_iget()
Vasily Averin (1):
drm/qxl: qxl_release leak in qxl_hw_surface_alloc()
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 221 +SUBLEVEL = 222 EXTRAVERSION = NAME = Blurry Fish Butt
arch/powerpc/perf/power8-pmu.c +1 -1
@@ -816,7 +816,7 @@ static struct power_pmu power8_pmu = { .get_constraint = power8_get_constraint, .get_alternatives = power8_get_alternatives, .disable_pmc = power8_disable_pmc, - .flags = PPMU_HAS_SSLOT | PPMU_HAS_SIER | PPMU_ARCH_207S, + .flags = PPMU_HAS_SIER | PPMU_ARCH_207S, .n_generic = ARRAY_SIZE(power8_generic_events), .generic_events = power8_generic_events, .cache_events = &power8_cache_events,
arch/x86/kernel/cpu/perf_event_intel.c +2 -1
@@ -1937,7 +1937,8 @@ intel_bts_constraints(struct perf_event *event)static int intel_alt_er (int idx,u64 config) { -int alt_idx; +int alt_idx = idx; +if (!(x86_pmu.flags &PMU_FL_HAS_RSP_1 ))return idx;
drivers/acpi/device_pm.c +2 -2
@@ -225,13 +225,13 @@ int acpi_device_set_power(struct acpi_device *device, int state) end:if (result) {dev_warn (&device->dev,"Failed to change power state to %s\n" , -acpi_power_state_string (state)); +acpi_power_state_string (target_state)); }else { device->power.state = target_state;ACPI_DEBUG_PRINT ((ACPI_DB_INFO ,"Device [%s] transitioned to %s\n" , device->pnp.bus_id, -acpi_power_state_string (state))); +acpi_power_state_string (target_state))); }return result;
drivers/dma/dmatest.c +2 -2
@@ -491,8 +491,8 @@ static int dmatest_func(void *data) flags =DMA_CTRL_ACK |DMA_PREP_INTERRUPT ; ktime =ktime_get (); -while (!kthread_should_stop () - && !(params->iterations && total_tests >= params->iterations)) { +while (!(kthread_should_stop () || + (params->iterations && total_tests >= params->iterations))) {struct dma_async_tx_descriptor *tx =NULL ;struct dmaengine_unmap_data *um;dma_addr_t srcs[src_cnt];
drivers/gpu/drm/qxl/qxl_cmd.c +3 -2
@@ -500,9 +500,10 @@ int qxl_hw_surface_alloc(struct qxl_device *qdev,return ret; ret =qxl_release_reserve_list (release, true); -if (ret) +if (ret) { +qxl_release_free (qdev, release);return ret; - + } cmd = (struct qxl_surface_cmd *)qxl_release_map (qdev, release); cmd->type =QXL_SURFACE_CMD_CREATE ; cmd->flags =QXL_SURF_FLAG_KEEP_DATA ;
drivers/i2c/busses/i2c-designware-core.c +2 -1
@@ -865,7 +865,8 @@ int i2c_dw_probe(struct dw_i2c_dev *dev)i2c_set_adapdata (adap, dev);i2c_dw_disable_int (dev); - r =devm_request_irq (dev->dev, dev->irq, i2c_dw_isr,IRQF_SHARED , + r =devm_request_irq (dev->dev, dev->irq, i2c_dw_isr, +IRQF_SHARED |IRQF_COND_SUSPEND ,dev_name (dev->dev), dev);if (r) { dev_err(dev->dev, "failure requesting irq %i: %d\n",
drivers/infiniband/hw/mlx4/main.c +2 -1
@@ -1435,8 +1435,9 @@ static int __mlx4_ib_create_default_rules(int i;for (i =0 ; i <ARRAY_SIZE (pdefault_rules->rules_create_list); i++) { +union ib_flow_spec ib_spec = {};int ret; -union ib_flow_spec ib_spec; +switch (pdefault_rules->rules_create_list[i]) {case 0 :/* no rule */
drivers/media/platform/exynos4-is/fimc-isp-video.c +2 -2
@@ -221,8 +221,8 @@ static void isp_video_capture_buffer_queue(struct vb2_buffer *vb) ivb->dma_addr[i];isp_dbg (2 , &video->ve.vdev, -"dma_buf %pad (%d/%d/%d) addr: %pad\n" , - &buf_index, ivb->index, i, vb->index, +"dma_buf %d (%d/%d/%d) addr: %pad\n" , + buf_index, ivb->index, i, vb->index, &ivb->dma_addr[i]); }
drivers/vfio/vfio_iommu_type1.c +2 -2
@@ -227,8 +227,8 @@ static int vaddr_get_pfn(unsigned long vaddr, int prot, unsigned long *pfn) vma =find_vma_intersection (current->mm, vaddr, vaddr +1 );if (vma && vma->vm_flags &VM_PFNMAP ) { - *pfn = ((vaddr - vma->vm_start) >>PAGE_SHIFT ) + vma->vm_pgoff; -if (is_invalid_reserved_pfn (*pfn)) +if (!follow_pfn (vma, vaddr, pfn) && +is_invalid_reserved_pfn (*pfn)) ret =0 ; }
fs/ext4/inode.c +1 -1
@@ -4233,7 +4233,7 @@ struct inode *__ext4_iget(struct super_block *sb, unsigned long ino,uid_t i_uid;gid_t i_gid; -if (((flags &EXT4_IGET_NORMAL ) && +if ((!(flags &EXT4_IGET_SPECIAL ) && (ino <EXT4_FIRST_INO (sb) && ino !=EXT4_ROOT_INO )) || (ino <EXT4_ROOT_INO ) || (ino >le32_to_cpu (EXT4_SB (sb)->s_es->s_inodes_count))) {
fs/nfs/nfs3acl.c +15 -7
@@ -213,37 +213,45 @@ int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,int nfs3_set_acl (struct inode *inode,struct posix_acl *acl,int type) { -struct posix_acl *alloc =NULL , *dfacl =NULL ; +struct posix_acl *orig = acl, *dfacl =NULL , *alloc;int status;if (S_ISDIR (inode->i_mode)) {switch (type) {case ACL_TYPE_ACCESS : - alloc = dfacl =get_acl (inode,ACL_TYPE_DEFAULT ); + alloc =get_acl (inode,ACL_TYPE_DEFAULT );if (IS_ERR (alloc)) goto fail; + dfacl = alloc;break ;case ACL_TYPE_DEFAULT : - dfacl = acl; - alloc = acl =get_acl (inode,ACL_TYPE_ACCESS ); + alloc =get_acl (inode,ACL_TYPE_ACCESS );if (IS_ERR (alloc)) goto fail; + dfacl = acl; + acl = alloc;break ; } }if (acl ==NULL ) { - alloc = acl =posix_acl_from_mode (inode->i_mode,GFP_KERNEL ); + alloc =posix_acl_from_mode (inode->i_mode,GFP_KERNEL );if (IS_ERR (alloc)) goto fail; + acl = alloc; } status =__nfs3_proc_setacls (inode, acl, dfacl); -posix_acl_release (alloc); +out: +if (acl != orig) +posix_acl_release (acl); +if (dfacl != orig) +posix_acl_release (dfacl);return status; fail: -return PTR_ERR (alloc); + status =PTR_ERR (alloc); + goto out; }const struct xattr_handler *nfs3_xattr_handlers[] = {
net/ipv6/raw.c +10 -2
@@ -757,6 +757,7 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)int hlimit =-1 ;int tclass =-1 ;int dontfrag =-1 ; +int hdrincl;u16 proto;int err;
@@ -770,6 +771,13 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)if (msg->msg_flags &MSG_OOB )return -EOPNOTSUPP ; +/* hdrincl should be READ_ONCE(inet->hdrincl) +* but READ_ONCE() doesn't work with bit fields. +* Doing this indirectly yields the same result. +*/ + hdrincl = inet->hdrincl; + hdrincl =READ_ONCE (hdrincl); +/* * Get and verify the address. */
@@ -878,7 +886,7 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) fl6.flowi6_oif = np->ucast_oif;security_sk_classify_flow (sk,flowi6_to_flowi (&fl6)); -if (inet->hdrincl) +if (hdrincl) fl6.flowi6_flags |=FLOWI_FLAG_KNOWN_NH ; dst =ip6_dst_lookup_flow (sk, &fl6, final_p);
@@ -899,7 +907,7 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) goto do_confirm; back_from_confirm: -if (inet->hdrincl) +if (hdrincl) err =rawv6_send_hdrinc (sk, msg, len, &fl6, &dst, msg->msg_flags);else {lock_sock (sk);
security/selinux/hooks.c +45 -24
83 lines not on this page · raw message
sound/core/oss/pcm_plugin.c +12 -8
@@ -211,21 +211,23 @@ static snd_pcm_sframes_t plug_client_size(struct snd_pcm_substream *plug,if (stream ==SNDRV_PCM_STREAM_PLAYBACK ) { plugin =snd_pcm_plug_last (plug);while (plugin && drv_frames >0 ) { -if (check_size && drv_frames > plugin->buf_frames) - drv_frames = plugin->buf_frames; plugin_prev = plugin->prev;if (plugin->src_frames) drv_frames = plugin->src_frames (plugin, drv_frames); +if (check_size && plugin->buf_frames && + drv_frames > plugin->buf_frames) + drv_frames = plugin->buf_frames; plugin = plugin_prev; } }else if (stream ==SNDRV_PCM_STREAM_CAPTURE ) { plugin =snd_pcm_plug_first (plug);while (plugin && drv_frames >0 ) { plugin_next = plugin->next; +if (check_size && plugin->buf_frames && + drv_frames > plugin->buf_frames) + drv_frames = plugin->buf_frames;if (plugin->dst_frames) drv_frames = plugin->dst_frames (plugin, drv_frames); -if (check_size && drv_frames > plugin->buf_frames) - drv_frames = plugin->buf_frames; plugin = plugin_next; } }else
@@ -251,26 +253,28 @@ static snd_pcm_sframes_t plug_slave_size(struct snd_pcm_substream *plug, plugin =snd_pcm_plug_first (plug);while (plugin && frames >0 ) { plugin_next = plugin->next; +if (check_size && plugin->buf_frames && + frames > plugin->buf_frames) + frames = plugin->buf_frames;if (plugin->dst_frames) { frames = plugin->dst_frames (plugin, frames);if (frames <0 )return frames; } -if (check_size && frames > plugin->buf_frames) - frames = plugin->buf_frames; plugin = plugin_next; } }else if (stream ==SNDRV_PCM_STREAM_CAPTURE ) { plugin =snd_pcm_plug_last (plug);while (plugin) { -if (check_size && frames > plugin->buf_frames) - frames = plugin->buf_frames; plugin_prev = plugin->prev;if (plugin->src_frames) { frames = plugin->src_frames (plugin, frames);if (frames <0 )return frames; } +if (check_size && plugin->buf_frames && + frames > plugin->buf_frames) + frames = plugin->buf_frames; plugin = plugin_prev; } }else
sound/isa/opti9xx/miro.c +6 -3
@@ -875,10 +875,13 @@ static void snd_miro_write(struct snd_miro *chip, unsigned char reg,spin_unlock_irqrestore (&chip->lock, flags); } +static inline void snd_miro_write_mask (struct snd_miro *chip, +unsigned char reg,unsigned char value,unsigned char mask) +{ +unsigned char oldval =snd_miro_read (chip, reg); -#define snd_miro_write_mask (chip, reg, value, mask) \ - snd_miro_write(chip, reg, \ - (snd_miro_read(chip, reg) & ~(mask)) | ((value) & (mask))) +snd_miro_write (chip, reg, (oldval & ~mask) | (value & mask)); +}/* * Proc Interface
sound/isa/opti9xx/opti92x-ad1848.c +6 -3
@@ -327,10 +327,13 @@ static void snd_opti9xx_write(struct snd_opti9xx *chip, unsigned char reg, } -#define snd_opti9xx_write_mask (chip, reg, value, mask) \ - snd_opti9xx_write(chip, reg, \ - (snd_opti9xx_read(chip, reg) & ~(mask)) | ((value) & (mask))) +static inline void snd_opti9xx_write_mask (struct snd_opti9xx *chip, +unsigned char reg,unsigned char value,unsigned char mask) +{ +unsigned char oldval =snd_opti9xx_read (chip, reg); +snd_opti9xx_write (chip, reg, (oldval & ~mask) | (value & mask)); +} static int snd_opti9xx_configure(struct snd_opti9xx *chip, long port,
sound/soc/codecs/wm8960.c +17 -15
@@ -631,29 +631,31 @@ static int wm8960_configure_clocking(struct snd_soc_codec *codec)return -EINVAL ; } -/* check if the sysclk frequency is available. */ -for (i =0 ; i <ARRAY_SIZE (sysclk_divs); ++i) { -if (sysclk_divs[i] ==-1 ) -continue ; - sysclk = freq_out / sysclk_divs[i]; -for (j =0 ; j <ARRAY_SIZE (dac_divs); ++j) { -if (sysclk == dac_divs[j] * lrclk) { +if (wm8960->clk_id !=WM8960_SYSCLK_PLL ) { +/* check if the sysclk frequency is available. */ +for (i =0 ; i <ARRAY_SIZE (sysclk_divs); ++i) { +if (sysclk_divs[i] ==-1 ) +continue ; + sysclk = freq_out / sysclk_divs[i]; +for (j =0 ; j <ARRAY_SIZE (dac_divs); ++j) { +if (sysclk != dac_divs[j] * lrclk) +continue ;for (k =0 ; k <ARRAY_SIZE (bclk_divs); ++k)if (sysclk == bclk * bclk_divs[k] /10 )break ;if (k !=ARRAY_SIZE (bclk_divs))break ; } +if (j !=ARRAY_SIZE (dac_divs)) +break ; } -if (j !=ARRAY_SIZE (dac_divs)) -break ; - } -if (i !=ARRAY_SIZE (sysclk_divs)) { - goto configure_clock; - }else if (wm8960->clk_id !=WM8960_SYSCLK_AUTO ) { -dev_err (codec->dev,"failed to configure clock\n" ); -return -EINVAL ; +if (i !=ARRAY_SIZE (sysclk_divs)) { + goto configure_clock; + }else if (wm8960->clk_id !=WM8960_SYSCLK_AUTO ) { +dev_err (codec->dev,"failed to configure clock\n" ); +return -EINVAL ; + } }/* get a available pll out frequency and set pll */ for (i =0 ; i <ARRAY_SIZE (sysclk_divs); ++i) {
sound/soc/fsl/imx-spdif.c +0 -2
@@ -72,8 +72,6 @@ static int imx_spdif_audio_probe(struct platform_device *pdev) goto end; } -platform_set_drvdata (pdev, data); - end:of_node_put (spdif_np);
tools/perf/util/hist.c +2 -0
@@ -131,6 +131,8 @@ void hists__calc_col_len(struct hists *hists, struct hist_entry *h) symlen = unresolved_col_width +4 +2 ;hists__new_col_len (hists,HISTC_MEM_DADDR_SYMBOL , symlen); +hists__new_col_len (hists,HISTC_MEM_DCACHELINE , + symlen); }if (h->mem_info->iaddr.sym) {