cron job: media_tree daily build: OK
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below.
Results of the daily build of media_tree:
date: Mon Mar 21 04:00:22 CET 2016
git branch: test
git hash: b39950960d2b890c21465c69c7c0e4ff6253c6b5
gcc version: i686-linux-gcc (GCC) 5.3.0
sparse version: v0.5.0-56-g7647c77
smatch version: Warning: /share/smatch/smatch_data/ is not accessible.
Use --no-data or --data to suppress this message.
v0.5.0-3353-gcae47da
host hardware: x86_64
host os: 4.4.0-164
linux-git-arm-at91: OK
linux-git-arm-davinci: OK
linux-git-arm-exynos: OK
linux-git-arm-mx: OK
linux-git-arm-omap: OK
linux-git-arm-omap1: OK
linux-git-arm-pxa: OK
linux-git-blackfin-bf561: OK
linux-git-i686: OK
linux-git-m32r: OK
linux-git-mips: OK
linux-git-powerpc64: OK
linux-git-sh: OK
linux-git-x86_64: OK
linux-2.6.36.4-i686: OK
linux-2.6.37.6-i686: OK
linux-2.6.38.8-i686: OK
linux-2.6.39.4-i686: OK
linux-3.0.60-i686: OK
linux-3.1.10-i686: OK
linux-3.2.37-i686: OK
linux-3.3.8-i686: OK
linux-3.4.27-i686: OK
linux-3.5.7-i686: OK
linux-3.6.11-i686: OK
linux-3.7.4-i686: OK
linux-3.8-i686: OK
linux-3.9.2-i686: OK
linux-3.10.1-i686: OK
linux-3.11.1-i686: OK
linux-3.12.23-i686: OK
linux-3.13.11-i686: OK
linux-3.14.9-i686: OK
linux-3.15.2-i686: OK
linux-3.16.7-i686: OK
linux-3.17.8-i686: OK
linux-3.18.7-i686: OK
linux-3.19-i686: OK
linux-4.0-i686: OK
linux-4.1.1-i686: OK
linux-4.2-i686: OK
linux-4.3-i686: OK
linux-4.4-i686: OK
linux-4.5-i686: OK
linux-2.6.36.4-x86_64: OK
linux-2.6.37.6-x86_64: OK
linux-2.6.38.8-x86_64: OK
linux-2.6.39.4-x86_64: OK
linux-3.0.60-x86_64: OK
linux-3.1.10-x86_64: OK
linux-3.2.37-x86_64: OK
linux-3.3.8-x86_64: OK
linux-3.4.27-x86_64: OK
linux-3.5.7-x86_64: OK
linux-3.6.11-x86_64: OK
linux-3.7.4-x86_64: OK
linux-3.8-x86_64: OK
linux-3.9.2-x86_64: OK
linux-3.10.1-x86_64: OK
linux-3.11.1-x86_64: OK
linux-3.12.23-x86_64: OK
linux-3.13.11-x86_64: OK
linux-3.14.9-x86_64: OK
linux-3.15.2-x86_64: OK
linux-3.16.7-x86_64: OK
linux-3.17.8-x86_64: OK
linux-3.18.7-x86_64: OK
linux-3.19-x86_64: OK
linux-4.0-x86_64: OK
linux-4.1.1-x86_64: OK
linux-4.2-x86_64: OK
linux-4.3-x86_64: OK
linux-4.4-x86_64: OK
linux-4.5-x86_64: OK
apps: OK
spec-git: OK
sparse: WARNINGS
smatch: ERRORS
Detailed results are available here:
http://www.xs4all.nl/~hverkuil/logs/Monday.log
Full logs are available here:
http://www.xs4all.nl/~hverkuil/logs/Monday.tar.bz2
The Media Infrastructure API from this daily build is here:
Em Mon, 21 Mar 2016 05:05:07 +0100
"Hans Verkuil" <[email protected]> escreveu:
Quoted 5 lines
This message is generated daily by a cron job that builds
media_treefor the kernels and architectures in the list below.Results of the daily build of
media_tree:
Quoted 8 lines
date: Mon Mar 21 04:00:22 CET 2016
git branch: test
git hash:b39950960d2b890c21465c69c7c0e4ff6253c6b5
gcc version: i686-linux-gcc (GCC) 5.3.0
sparse version: v0.5.0-56-g7647c77
smatch version: Warning: /share/smatch/smatch_data/ is not accessible.
Use --no-data or --data to suppress this message.
v0.5.0-3353-gcae47da
Not sure how you're running smatch, but what I do here is to run it as:
/<smatch_dir>/smatch
This way, it finds the smatch_data dir at /<smatch_dir, with also suppress several false positive error messages from the smatch logs.
As a side effect, it simplifies a little bit the procedure to update smatch's version.
Regards
Signature · 2 lines
Thanks, Mauro
Em Mon, 21 Mar 2016 06:57:08 -0300
Mauro Carvalho Chehab <[email protected]> escreveu:
Quoted 21 lines
Em Mon, 21 Mar 2016 05:05:07 +0100
"Hans Verkuil" <[email protected]> escreveu:Quoted 5 lines
This message is generated daily by a cron job that builds
media_treefor the kernels and architectures in the list below.Results of the daily build of
media_tree:Quoted 8 lines
date: Mon Mar 21 04:00:22 CET 2016
git branch: test
git hash:b39950960d2b890c21465c69c7c0e4ff6253c6b5
gcc version: i686-linux-gcc (GCC) 5.3.0
sparse version: v0.5.0-56-g7647c77
smatch version: Warning: /share/smatch/smatch_data/ is not accessible.
Use --no-data or --data to suppress this message.
v0.5.0-3353-gcae47daNot sure how you're running smatch, but what I do here is to run it as:
/<smatch_dir>/smatch
Quoted 7 lines
This way, it finds the
smatch_datadir at /<smatch_dir, with also suppress several false positive error messages from the smatch logs.As a side effect, it simplifies a little bit the procedure to update smatch's version.
Regards
As a reference, those are what I get here with the latest version of smatch (plus a patch to avoid a "Function too hairy." warning, posted in the end of this email):
$ make ARCH=i386 CF=-D__CHECK_ENDIAN__ CONFIG_DEBUG_SECTION_MISMATCH=y C=1 W=1 CHECK='/devel/smatch/smatch -p=kernel' M=drivers/staging/media
$ make ARCH=i386 CF=-D__CHECK_ENDIAN__ CONFIG_DEBUG_SECTION_MISMATCH=y C=1 W=1 CHECK='/devel/smatch/smatch -p=kernel' M=drivers/media
drivers/media/tuners/tuner-xc2028.c:1498 xc2028_attach() error: potential null dereference 'priv'. (kzalloc returns null)
drivers/media/radio/radio-aztech.c:87 aztech_alloc() warn: possible memory leak of 'az'
drivers/media/pci/mantis/mantis_uart.c:105 mantis_uart_work() warn: this loop depends on readl() succeeding
drivers/media/dvb-core/dvb_frontend.c:272 dvb_frontend_get_event() warn: inconsistent returns 'sem:&fepriv->sem'.
Locked on: line 246
line 253
line 264
line 272
Unlocked on: line 261
drivers/media/pci/ddbridge/ddbridge-core.c:1007 input_tasklet() warn: this loop depends on readl() succeeding
drivers/media/pci/ddbridge/ddbridge-core.c:1351 flashio() warn: this loop depends on readl() succeeding
drivers/media/pci/ddbridge/ddbridge-core.c:1371 flashio() warn: this loop depends on readl() succeeding
drivers/media/tuners/tuner-simple.c:1102 simple_tuner_attach() error: potential null dereference 'priv'. (kzalloc returns null)
drivers/media/radio/radio-typhoon.c:79 typhoon_alloc() warn: possible memory leak of 'ty'
drivers/media/radio/radio-aimslab.c:73 rtrack_alloc() warn: possible memory leak of 'rt'
drivers/media/radio/radio-zoltrix.c:83 zoltrix_alloc() warn: possible memory leak of 'zol'
drivers/media/radio/radio-gemtek.c:189 gemtek_alloc() warn: possible memory leak of 'gt'
drivers/media/tuners/tda9887.c:692 tda9887_attach() error: potential null dereference 'priv'. (kzalloc returns null)
drivers/media/radio/radio-trust.c:60 trust_alloc() warn: possible memory leak of 'tr'
drivers/media/tuners/tda18271-fe.c:1317 tda18271_attach() error: potential null dereference 'priv'. (kzalloc returns null)
drivers/media/tuners/xc5000.c:1418 xc5000_attach() error: potential null dereference 'priv'. (kzalloc returns null)
drivers/media/tuners/xc4000.c:1690 xc4000_attach() error: potential null dereference 'priv'. (kzalloc returns null)
drivers/media/tuners/mxl5007t.c:878 mxl5007t_attach() error: potential null dereference 'state'. (kzalloc returns null)
drivers/media/rc/ir-lirc-codec.c:289 ir_lirc_ioctl() warn: check for integer overflow 'val'
drivers/media/tuners/r820t.c:2342 r820t_attach() error: potential null dereference 'priv'. (kzalloc returns null)
drivers/media/rc/st_rc.c:110 st_rc_rx_interrupt() warn: this loop depends on readl() succeeding
drivers/media/pci/bt8xx/dvb-bt8xx.c:720 frontend_init() warn: possible memory leak of 'state'
./arch/x86/include/asm/bitops.h:416:22: warning: asm output is not an lvalue
./arch/x86/include/asm/bitops.h:416:22: warning: asm output is not an lvalue
./arch/x86/include/asm/bitops.h:457:22: warning: asm output is not an lvalue
./arch/x86/include/asm/bitops.h:457:22: warning: asm output is not an lvalue
./arch/x86/include/asm/bitops.h:457:22: warning: asm output is not an lvalue
./arch/x86/include/asm/bitops.h:457:22: warning: asm output is not an lvalue
./arch/x86/include/asm/bitops.h:457:22: warning: asm output is not an lvalue
./arch/x86/include/asm/bitops.h:457:22: warning: asm output is not an lvalue
drivers/media/usb/uvc/uvc_ctrl.c:1387 uvc_ctrl_begin() warn: inconsistent returns 'mutex:&chain->ctrl_mutex'.
Locked on: line 1387
Unlocked on: line 1387
drivers/media/usb/pvrusb2/pvrusb2-hdw.c:3676 pvr2_send_request_ex() error: we previously assumed 'write_data' could be null (see line 3648)
drivers/media/usb/pvrusb2/pvrusb2-hdw.c:3829 pvr2_send_request_ex() error: we previously assumed 'read_data' could be null (see line 3649)
drivers/media/platform/vivid/vivid-rds-gen.c:82 vivid_rds_generate() error: buffer overflow 'rds->psname' 9 <= 43
drivers/media/platform/vivid/vivid-rds-gen.c:83 vivid_rds_generate() error: buffer overflow 'rds->psname' 9 <= 42
drivers/media/platform/vivid/vivid-rds-gen.c:89 vivid_rds_generate() error: buffer overflow 'rds->radiotext' 65 <= 84
drivers/media/platform/vivid/vivid-rds-gen.c:90 vivid_rds_generate() error: buffer overflow 'rds->radiotext' 65 <= 85
drivers/media/platform/vivid/vivid-rds-gen.c:92 vivid_rds_generate() error: buffer overflow 'rds->radiotext' 65 <= 86
drivers/media/platform/vivid/vivid-rds-gen.c:93 vivid_rds_generate() error: buffer overflow 'rds->radiotext' 65 <= 87---
[PATCH] smatch_slist: use a higher memory limit
50M is not enough for some code at the Kernel. It produces this warning:
drivers/media/pci/cx23885/cx23885-dvb.c:2046 dvb_register() Function too hairy. Giving up.
While checking for troubles on a loop with attaches the device specific sub-devices based on the PCI ID.
There's not much that could be done at the code to simplify it. The code there is big just because the cx23885 driver supports lots of different cards.
On the other hand, increasing the maximum memory size to 500MB is cheap, as nowadays even desktops have 16GB.
So, let's increase it.
smatch_slist.c +2 -2
@@ -235,11 +235,11 @@ char *alloc_sname(const char *str)int out_of_memory (void ) {/* -* I decided to use 50M here based on trial and error. +* I decided to use 500M here based on trial and error. * It works out OK for the kernel and so it should work * for most other projects as well. */ -if (sm_state_counter *sizeof (struct sm_state ) >=50000000 ) +if (sm_state_counter *sizeof (struct sm_state ) >=500000000 )return 1 ;return 0 ; }
Signature · 2 lines
Thanks, Mauro
Quoted 21 lines · Mauro Carvalho Chehab
Em Mon, 21 Mar 2016 05:05:07 +0100
"Hans Verkuil" <[email protected]> escreveu:Quoted 5 lines
This message is generated daily by a cron job that builds
media_treefor the kernels and architectures in the list below.Results of the daily build of
media_tree:Quoted 8 lines
date: Mon Mar 21 04:00:22 CET 2016
git branch: test
git hash:b39950960d2b890c21465c69c7c0e4ff6253c6b5
gcc version: i686-linux-gcc (GCC) 5.3.0
sparse version: v0.5.0-56-g7647c77
smatch version: Warning: /share/smatch/smatch_data/ is not accessible.
Use --no-data or --data to suppress this message.
v0.5.0-3353-gcae47daNot sure how you're running smatch, but what I do here is to run it as:
/<smatch_dir>/smatch
Quoted 5 lines
This way, it finds the
smatch_datadir at /<smatch_dir, with also suppress several false positive error messages from the smatch logs.As a side effect, it simplifies a little bit the procedure to update smatch's version.
It was a botched smatch install. It should be OK for the next build.
Thanks for noticing this!
Hans