Created attachment 356960 [details] reverse-drivers-media-310-to-309.patch.gz My Hauppage usb-dvbt mini stick totally froze my system. Not only my home-brew kernel but also Debian-siduction and openSUSE-tumbleweed. Also othe media hardware is broken, I found for example: --- +++ b/drivers/media/platform/sh_vou.c @@ -776,9 +776,10 @@ static int sh_vou_try_fmt_vid_out(struct file *file, void *priv, v4l_bound_align_image(&pix->width, 0, VOU_MAX_IMAGE_WIDTH, 1, &pix->height, 0, VOU_MAX_IMAGE_HEIGHT, 1, 0); - for (i = 0; ARRAY_SIZE(vou_fmt); i++) + for (i = 0; i < ARRAY_SIZE(vou_fmt); i++) { ... Because my system totally knocks out I am not able to give you any error message. I decided to roll back to linux-3.9/drivers/media subsystem. This is easily possible. My system now runs stable. I attach my patch which beside drivers/media also includes some header files.
Also freezing is linux-3.11-rc6 when using dvb-t Perhaps someone with writing capabilities to the upstream kernel.org dev-mailing list should mention this issue there before release! (The drivers/media subsystem seems to be totally untestet, otherwise such as the above shown endless loop would have been detected)
diff --recursive /usr/src/linux-3.11-rc6/drivers/media \ /usr/src/linux-3.11-rc7/drivers/media shows no better - no differences. Even the heavy bug of the never ending loop in drivers/media/platform/sh_vou.c > for (i = 0; ARRAY_SIZE(vou_fmt); i++) which has a patch at https://patchwork.linuxtv.org/patch/19893/
Which exact kernel version was this introduced with? The branch release (3.10.0) or a newer release; if so, which one? Also, what was the last working kernel?
linux-3.9.y is the last working. That is why I use linux-3.9/drivers/media for Linux-3.10 Linux-3.11 which works! (My patch resembles this) Also there is an additional report with kernel panic https://bugzilla.kernel.org/show_bug.cgi?id=60645#c2 of today.
Trying the whole new linux-3.11 with new drivers/media I got dvb-t run a short while: After upgrade to sys-kernel/linux-headers-3.11 I recompiled vlc and libdvbpsi-0.2.2 It runs a television for about 4 minutes and then freezes. Using vlc-9999 and libdvbpsi-1.1 has the same effect. Kaffeine with xine-lib freezes imediately. Should I recompile sys-libs/glibc-2.17 with the new linux-headers-3.11 also (I didnt)? ... Perhaps it is not a kernel issue but change abi of the kernel that has to be reimplemented in clients?
There is a patch visible in the kernel stable-queue mailing list from chehab which solves the issue (media - division zero fix)
Comment on attachment 356960 [details] reverse-drivers-media-310-to-309.patch.gz FIXFORME - there is coming a fix which makes linux-3.10/drivers/media usable again ...
There is the fix at kernel.org: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ec532503209053bbee0c7dac410031e50835e01a
solved upstream by: linux-3.10.13 linux-3.11.2