lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201706011302.A0laNATn%fengguang.wu@intel.com>
Date:   Thu, 1 Jun 2017 13:53:38 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Jia-Ju Bai <baijiaju1990@....com>
Cc:     kbuild-all@...org, awalls@...metrocast.net, mchehab@...nel.org,
        linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
        Jia-Ju Bai <baijiaju1990@....com>
Subject: Re: [PATCH] ivtv: Fix a sleep-in-atomic bug in snd_ivtv_pcm_hw_free

Hi Jia-Ju,

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on v4.12-rc3 next-20170531]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Jia-Ju-Bai/ivtv-Fix-a-sleep-in-atomic-bug-in-snd_ivtv_pcm_hw_free/20170601-131112
base:   git://linuxtv.org/media_tree.git master
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   drivers/media//pci/ivtv/ivtv-alsa-pcm.c: In function 'snd_ivtv_pcm_hw_free':
>> drivers/media//pci/ivtv/ivtv-alsa-pcm.c:274:2: warning: 'dma_area' may be used uninitialized in this function [-Wmaybe-uninitialized]
     vfree(dma_area);
     ^

vim +/dma_area +274 drivers/media//pci/ivtv/ivtv-alsa-pcm.c

   258						   params_buffer_bytes(params));
   259	}
   260	
   261	static int snd_ivtv_pcm_hw_free(struct snd_pcm_substream *substream)
   262	{
   263		struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream);
   264		unsigned long flags;
   265		unsigned char *dma_area;
   266	
   267		spin_lock_irqsave(&itvsc->slock, flags);
   268		if (substream->runtime->dma_area) {
   269			dprintk("freeing pcm capture region\n");
   270			dma_area = substream->runtime->dma_area;
   271			substream->runtime->dma_area = NULL;
   272		}
   273		spin_unlock_irqrestore(&itvsc->slock, flags);
 > 274		vfree(dma_area);
   275	
   276		return 0;
   277	}
   278	
   279	static int snd_ivtv_pcm_prepare(struct snd_pcm_substream *substream)
   280	{
   281		struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream);
   282	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (50141 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ