linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Frank Schäfer" <fschaefer.oss@googlemail.com>
To: Fengguang Wu <fengguang.wu@intel.com>, luca@ventoso.org
Cc: Mauro Carvalho Chehab <m.chehab@samsung.com>,
	linux-media@vger.kernel.org, Jet Chen <jet.chen@intel.com>,
	Su Tao <tao.su@intel.com>, Yuanhan Liu <yuanhan.liu@intel.com>,
	LKP <lkp@01.org>,
	linux-kernel@vger.kernel.org, crope@iki.fi
Subject: [media/dvb_usb_af9005] BUG: unable to handle kernel paging request (WAS: [media/em28xx] BUG: unable to handle kernel)
Date: Fri, 19 Sep 2014 21:22:21 +0200	[thread overview]
Message-ID: <541C826D.7060702@googlemail.com> (raw)
In-Reply-To: <541C7D9D.30908@googlemail.com>

(adjusting the title and adding Luca Olivetti (dvb_usb_af9005 author)
and Antti Palosaari)


Am 19.09.2014 um 21:01 schrieb Frank Schäfer:
> Hi Fengguang,
>
> thank you for reporting this issue.
>
> Am 19.09.2014 um 03:41 schrieb Fengguang Wu:
[...]
>> [    8.528015] usbcore: registered new interface driver dvb_usb_ttusb2
>> [    8.529751] usbcore: registered new interface driver dvb_usb_af9005
>> [    8.529751] usbcore: registered new interface driver dvb_usb_af9005
>> [    8.531584] BUG: unable to handle kernel 
>> [    8.531584] BUG: unable to handle kernel paging requestpaging request at 02e00000
>>  at 02e00000
>> [    8.533385] IP:
>> [    8.533385] IP: [<7d9d67c6>] af9005_usb_module_init+0x6b/0x9d
>>  [<7d9d67c6>] af9005_usb_module_init+0x6b/0x9d
> And this tells us what is going wrong:
>
> (gdb) list *(af9005_usb_module_init+0x83)
> 0x2d11 is in af9005_usb_module_init
> (drivers/media/usb/dvb-usb/af9005.c:1092).
> 1087            if (rc_decode == NULL || rc_keys == NULL || rc_keys_size
> == NULL) {
> 1088                    err("af9005_rc_decode function not found,
> disabling remote");
> 1089                    af9005_properties.rc.legacy.rc_query = NULL;
> 1090            } else {
> 1091                    af9005_properties.rc.legacy.rc_map_table = rc_keys;
> 1092                    af9005_properties.rc.legacy.rc_map_size =
> *rc_keys_size;
> 1093            }
> 1094
> 1095            return 0;
> 1096    }
>
> So it happens in line 1092 when rc_keys_size is accessed.
>
> According to your kernel config you have
>
> CONFIG_MODULES disabled
> CONFIG_DVB_USB_AF9005 enabled
> CONFIG_DVB_USB_AF9005_REMOTE  disabled
>
> So af9005 is compiled in without remote control support.
> Thus we should have hit the "if"-path, which also prints a message about
> the missing remote control support.
>
> Instead, we have hit the "else" path, which means that rc_decode,
> rc_keys and rc_keys_size are all != NULL, although they should be NULL.
>
> You can verify this by enabling CONFIG_DVB_USB_AF9005_REMOTE.
> That makes the issue disappear.
>
> Now let's go a few lines up to see where these pointers come from:
>
> 1084           rc_decode = symbol_request(af9005_rc_decode);
> 1085           rc_keys = symbol_request(rc_map_af9005_table);
> 1086           rc_keys_size = symbol_request(rc_map_af9005_table_size);
>
> So symbol_request() returns pointers.!= NULL
>
> A closer look at the definition of symbol_request() shows, that it does
> nothing if CONFIG_MODULES is disabled (it just returns its argument).
>
>
> One possibility to fix this bug would be to embrace these three lines with
>
> #ifdef CONFIG_DVB_USB_AF9005_REMOTE
> ...
> #endif
Luca, what do you think ?

This seems to be an ancient bug, which is known at least since 5 1/2 years:
https://lkml.org/lkml/2009/2/4/350

Regards,
Frank Schäfer

>
>> [    8.535613] *pde = 00000000 
>> [    8.535613] *pde = 00000000 
>>
>> [    8.536416] Oops: 0000 [#1] 
>> [    8.536416] Oops: 0000 [#1] PREEMPT PREEMPT DEBUG_PAGEALLOCDEBUG_PAGEALLOC
>>
>> [    8.537863] CPU: 0 PID: 1 Comm: swapper Not tainted 3.15.0-rc6-00151-ga5c075c #1
>> [    8.537863] CPU: 0 PID: 1 Comm: swapper Not tainted 3.15.0-rc6-00151-ga5c075c #1
>> [    8.539827] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
>> [    8.539827] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
>> [    8.541519] task: 89c9a670 ti: 89c9c000 task.ti: 89c9c000
>> [    8.541519] task: 89c9a670 ti: 89c9c000 task.ti: 89c9c000
>> [    8.541519] EIP: 0060:[<7d9d67c6>] EFLAGS: 00010206 CPU: 0
>> [    8.541519] EIP: 0060:[<7d9d67c6>] EFLAGS: 00010206 CPU: 0
>> [    8.541519] EIP is at af9005_usb_module_init+0x6b/0x9d
>> [    8.541519] EIP is at af9005_usb_module_init+0x6b/0x9d
>> [    8.541519] EAX: 02e00000 EBX: 00000000 ECX: 00000006 EDX: 00000000
>> [    8.541519] EAX: 02e00000 EBX: 00000000 ECX: 00000006 EDX: 00000000
>> [    8.541519] ESI: 00000000 EDI: 7da33ec8 EBP: 89c9df30 ESP: 89c9df2c
>> [    8.541519] ESI: 00000000 EDI: 7da33ec8 EBP: 89c9df30 ESP: 89c9df2c
>> [    8.541519]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
>> [    8.541519]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
>> [    8.541519] CR0: 8005003b CR2: 02e00000 CR3: 05a54000 CR4: 00000690
>> [    8.541519] CR0: 8005003b CR2: 02e00000 CR3: 05a54000 CR4: 00000690
>> [    8.541519] Stack:
>> [    8.541519] Stack:
>> [    8.541519]  7d9d675b
>> [    8.541519]  7d9d675b 89c9df90 89c9df90 7d992a49 7d992a49 7d7d5914 7d7d5914 89c9df4c 89c9df4c 7be3a800 7be3a800 7d08c58c 7d08c58c 8a4c3968 8a4c3968
>>
>> [    8.541519]  89c9df80
>> [    8.541519]  89c9df80 7be3a966 7be3a966 00000192 00000192 00000006 00000006 00000006 00000006 7d7d3ff4 7d7d3ff4 8a4c397a 8a4c397a 00000200 00000200
>>
>> [    8.541519]  7d6b1280
>> [    8.541519]  7d6b1280 8a4c3979 8a4c3979 00000006 00000006 000009a6 000009a6 7da32db8 7da32db8 b13eec81 b13eec81 00000006 00000006 000009a6 000009a6
>>
>> [    8.541519] Call Trace:
>> [    8.541519] Call Trace:
>> [    8.541519]  [<7d9d675b>] ? ttusb2_driver_init+0x16/0x16
>> [    8.541519]  [<7d9d675b>] ? ttusb2_driver_init+0x16/0x16
>> [    8.541519]  [<7d992a49>] do_one_initcall+0x77/0x106
>> [    8.541519]  [<7d992a49>] do_one_initcall+0x77/0x106
>> [    8.541519]  [<7be3a800>] ? parameqn+0x2/0x35
>> [    8.541519]  [<7be3a800>] ? parameqn+0x2/0x35
>> [    8.541519]  [<7be3a966>] ? parse_args+0x113/0x25c
>> [    8.541519]  [<7be3a966>] ? parse_args+0x113/0x25c
>> [    8.541519]  [<7d992bc2>] kernel_init_freeable+0xea/0x167
>> [    8.541519]  [<7d992bc2>] kernel_init_freeable+0xea/0x167
>> [    8.541519]  [<7cf01070>] kernel_init+0x8/0xb8
>> [    8.541519]  [<7cf01070>] kernel_init+0x8/0xb8
>> [    8.541519]  [<7cf27ec0>] ret_from_kernel_thread+0x20/0x30
>> [    8.541519]  [<7cf27ec0>] ret_from_kernel_thread+0x20/0x30
>> [    8.541519]  [<7cf01068>] ? rest_init+0x10c/0x10c
>> [    8.541519]  [<7cf01068>] ? rest_init+0x10c/0x10c
>> [    8.541519] Code:
>> [    8.541519] Code: 08 08 c2 c2 c7 c7 05 05 44 44 ed ed f9 f9 7d 7d 00 00 00 00 e0 e0 02 02 c7 c7 05 05 40 40 ed ed f9 f9 7d 7d 00 00 00 00 e0 e0 02 02 c7 c7 05 05 3c 3c ed ed f9 f9 7d 7d 00 00 00 00 e0 e0 02 02 75 75 1f 1f b8 b8 00 00 00 00 e0 e0 02 02 85 85 c0 c0 74 74 16 16 <a1> <a1> 00 00 00 00 e0 e0 02 02 c7 c7 05 05 54 54 84 84 8e 8e 7d 7d 00 00 00 00 e0 e0 02 02 a3 a3 58 58 84 84 8e 8e 7d 7d eb eb
>>
>> [    8.541519] EIP: [<7d9d67c6>] 
>> [    8.541519] EIP: [<7d9d67c6>] af9005_usb_module_init+0x6b/0x9daf9005_usb_module_init+0x6b/0x9d SS:ESP 0068:89c9df2c
>>  SS:ESP 0068:89c9df2c
>> [    8.541519] CR2: 0000000002e00000
>> [    8.541519] CR2: 0000000002e00000
>> [    8.541519] ---[ end trace 768b6faf51370fc7 ]---
>> [    8.541519] ---[ end trace 768b6faf51370fc7 ]---
[...]
>> This script may reproduce the error.
>>
>> ----------------------------------------------------------------------------
>> #!/bin/bash
>>
>> kernel=$1
>> initrd=quantal-core-i386.cgz
>>
>> wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd
>>
>> kvm=(
>> 	qemu-system-x86_64
>> 	-cpu kvm64
>> 	-enable-kvm
>> 	-kernel $kernel
>> 	-initrd $initrd
>> 	-m 320
>> 	-smp 2
>> 	-net nic,vlan=1,model=e1000
>> 	-net user,vlan=1
>> 	-boot order=nc
>> 	-no-reboot
>> 	-watchdog i6300esb
>> 	-rtc base=localtime
>> 	-serial stdio
>> 	-display none
>> 	-monitor null 
>> )
>>
>> append=(
>> 	hung_task_panic=1
>> 	earlyprintk=ttyS0,115200
>> 	debug
>> 	apic=debug
>> 	sysrq_always_enabled
>> 	rcupdate.rcu_cpu_stall_timeout=100
>> 	panic=-1
>> 	softlockup_panic=1
>> 	nmi_watchdog=panic
>> 	oops=panic
>> 	load_ramdisk=2
>> 	prompt_ramdisk=0
>> 	console=ttyS0,115200
>> 	console=tty0
>> 	vga=normal
>> 	root=/dev/ram0
>> 	rw
>> 	drbd.minor_count=8
>> )
>>
>> "${kvm[@]}" --append "${append[*]}"
>> ----------------------------------------------------------------------------
>>
>> Thanks,
>> Fengguang
>>
>>
>> _______________________________________________
>> LKP mailing list
>> LKP@linux.intel.com


  reply	other threads:[~2014-09-19 19:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-19  1:41 [media/em28xx] BUG: unable to handle kernel Fengguang Wu
2014-09-19 19:01 ` Frank Schäfer
2014-09-19 19:22   ` Frank Schäfer [this message]
2014-09-19 19:55     ` [media/dvb_usb_af9005] BUG: unable to handle kernel paging request (WAS: [media/em28xx] BUG: unable to handle kernel) Luca Olivetti
2014-09-20 11:18       ` Antti Palosaari
2014-09-23 18:52       ` Frank Schäfer
2014-09-23 21:03         ` Luca Olivetti
2014-09-25 13:54           ` Frank Schäfer
2014-09-25 15:57             ` Luca Olivetti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=541C826D.7060702@googlemail.com \
    --to=fschaefer.oss@googlemail.com \
    --cc=crope@iki.fi \
    --cc=fengguang.wu@intel.com \
    --cc=jet.chen@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=lkp@01.org \
    --cc=luca@ventoso.org \
    --cc=m.chehab@samsung.com \
    --cc=tao.su@intel.com \
    --cc=yuanhan.liu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).