vc4_hdmi: NULL pointer deference in 4.17.0-rc1-next-20180419

Stefan Wahren stefan.wahren at i2se.com
Fri Apr 20 06:05:59 PDT 2018


Hi,
i noticed on kernelci.org that the boot on RPi 1 B with 4.17.0-rc1-next-20180419 (bcm2835_defconfig) triggered a NULL pointer dereference [1]. But for today [2] there isn't such an issue. I assume this is timing related. Any hints are welcome.

Stefan

[1] - https://storage.kernelci.org/next/master/next-20180419/arm/bcm2835_defconfig/lab-baylibre-seattle/boot-bcm2835-rpi-b.html
[2] - https://storage.kernelci.org/next/master/next-20180420/arm/bcm2835_defconfig/lab-baylibre-seattle/boot-bcm2835-rpi-b.html

[    1.794308] Unable to handle kernel NULL pointer dereference at virtual address 00000004
[    1.802407] pgd = c0ba09c3
[    1.805173] [00000004] *pgd=00000000
[    1.808763] Internal error: Oops: 5 [#1] ARM
[    1.813027] Modules linked in:
[    1.816089] CPU: 0 PID: 48 Comm: kworker/0:2 Not tainted 4.17.0-rc1-next-20180419 #1
[    1.823816] Hardware name: BCM2835
[    1.827231] Workqueue: events deferred_probe_work_func
[    1.832391] PC is at snd_soc_register_card+0x940/0xdc4
[    1.837531] LR is at refcount_dec_and_test+0x18/0x1c
[    1.842489] pc : [<c057bc94>]    lr : [<c03a4474>]    psr: 60000013
[    1.848743] sp : d971bc70  ip : 00000000  fp : d971bcc4
[    1.853957] r10: 00000003  r9 : 00000001  r8 : d9725594
[    1.859172] r7 : d97255ec  r6 : 00000000  r5 : d97aa800  r4 : d972541c
[    1.865688] r3 : 00000000  r2 : cac788dc  r1 : d9711824  r0 : 00000000
[    1.872205] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    1.879328] Control: 00c5387d  Table: 00004008  DAC: 00000051
[    1.885068] Process kworker/0:2 (pid: 48, stack limit = 0x890186d8)
[    1.891325] Stack: (0xd971bc70 to 0xd971c000)
[    1.895680] bc60:                                     00000000 d972549c c0c515ac 00000001
[    1.903852] bc80: d97254f8 d97254a4 d9725504 00000002 d9556610 d97af680 c0c41248 00000000
[    1.912024] bca0: d97aeb90 d972541c d9556610 d9556600 c0c41248 c083d3b0 d971bce4 d971bcc8
[    1.920197] bcc0: c0588efc c057b360 00000000 d9725410 d9556610 d9556610 d971bd24 d971bce8
[    1.928369] bce0: c045e0ac c0588ec8 00000000 d9724c00 0000000c 00000000 d971bd24 d96cdbc0
[    1.936540] bd00: d9712840 d9556c10 00000000 d9724c00 014000c0 00000014 d971bd5c d971bd28
[    1.944712] bd20: c0465488 c045dc80 d9556c10 c045c340 d971bd5c d9724c00 00000000 d9556c10
[    1.952884] bd40: d96cdb90 00000007 d9712a40 c0c4166c d971bd7c d971bd60 c045624c c0465378
[    1.961057] bd60: d96cdbc0 d9712a40 d95f5bb8 d96cdb90 d971bdbc d971bd80 c0464fb4 c04561d0
[    1.969229] bd80: 00000018 c0223a94 d9556a10 c0455f6c d971bdbc d9712a40 c0c41680 c083e1cc
[    1.977401] bda0: d96cdbc0 c0d38a64 00000007 00000000 d971bddc d971bdc0 c0465120 c0464e48
[    1.985574] bdc0: c0461f54 d9556a10 c0c41620 c0d38a60 d971bdec d971bde0 c0461f74 c046509c
[    1.993745] bde0: d971be0c d971bdf0 c046ce2c c0461f60 d9556a10 00000000 c0c41620 c0d38a60
[    2.001918] be00: d971be44 d971be10 c046b224 c046cdd8 c05564b0 c0554bbc d971be44 00000001
[    2.010089] be20: d9556a10 c0c41620 d971be90 c0c0be90 00000000 00000008 d971be64 d971be48
[    2.018261] be40: c046b690 c046b024 00000000 d971be90 c046b5d0 d9556a44 d971be8c d971be68
[    2.026433] be60: c0469470 c046b5dc d94c659c d96b48b4 d9556a10 d9556a10 c0c41980 00000001
[    2.034605] be80: d971beb4 d971be90 c046af04 c04693e8 d9556a10 00000001 d9556a10 c0c41980
[    2.042777] bea0: d9556a10 d9c58200 d971bec4 d971beb8 c046b6f4 c046ae74 d971bee4 d971bec8
[    2.050949] bec0: c046a23c c046b6e4 d9556a10 c0c417b4 c0c417c8 d9c58200 d971bf0c d971bee8
[    2.059121] bee0: c046a870 c046a210 d96e1980 c0c417d0 00000000 d9c58200 c0c0be90 00000000
[    2.067293] bf00: d971bf44 d971bf10 c0133f9c c046a78c c0c145a0 c0c0bea4 c0134b34 d96e1980
[    2.075465] bf20: 00000000 c0c0be90 c0c145a0 c0c0bea4 d96e1998 00000008 d971bf74 d971bf48
[    2.083637] bf40: c0134e08 c0133db0 00000000 d96ff540 d96eb400 d971a000 00000000 d96e1980
[    2.091809] bf60: c0134b34 d94f7e9c d971bfac d971bf78 c01399ec c0134b40 d96ff558 d96ff558
[    2.099980] bf80: d971bfac d96eb400 c01398ac 00000000 00000000 00000000 00000000 00000000
[    2.108150] bfa0: 00000000 d971bfb0 c01010e8 c01398b8 00000000 00000000 00000000 00000000
[    2.116319] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.124488] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    2.132702] [<c057bc94>] (snd_soc_register_card) from [<c0588efc>] (devm_snd_soc_register_card+0x40/0x7c)
[    2.142276] [<c0588efc>] (devm_snd_soc_register_card) from [<c045e0ac>] (vc4_hdmi_bind+0x438/0x4fc)
[    2.151332] [<c045e0ac>] (vc4_hdmi_bind) from [<c0465488>] (component_bind_all+0x11c/0x238)
[    2.159702] [<c0465488>] (component_bind_all) from [<c045624c>] (vc4_drm_bind+0x88/0x138)
[    2.167885] [<c045624c>] (vc4_drm_bind) from [<c0464fb4>] (try_to_bring_up_master+0x178/0x254)
[    2.176497] [<c0464fb4>] (try_to_bring_up_master) from [<c0465120>] (component_add+0x90/0x120)
[    2.185107] [<c0465120>] (component_add) from [<c0461f74>] (vc4_v3d_dev_probe+0x20/0x28)
[    2.193204] [<c0461f74>] (vc4_v3d_dev_probe) from [<c046ce2c>] (platform_drv_probe+0x60/0xb0)
[    2.201730] [<c046ce2c>] (platform_drv_probe) from [<c046b224>] (driver_probe_device+0x20c/0x46c)
[    2.210599] [<c046b224>] (driver_probe_device) from [<c046b690>] (__device_attach_driver+0xc0/0x108)
[    2.219727] [<c046b690>] (__device_attach_driver) from [<c0469470>] (bus_for_each_drv+0x94/0xa4)
[    2.228507] [<c0469470>] (bus_for_each_drv) from [<c046af04>] (__device_attach+0x9c/0x138)
[    2.236767] [<c046af04>] (__device_attach) from [<c046b6f4>] (device_initial_probe+0x1c/0x20)
[    2.245286] [<c046b6f4>] (device_initial_probe) from [<c046a23c>] (bus_probe_device+0x38/0x90)
[    2.253893] [<c046a23c>] (bus_probe_device) from [<c046a870>] (deferred_probe_work_func+0xf0/0x140)
[    2.262942] [<c046a870>] (deferred_probe_work_func) from [<c0133f9c>] (process_one_work+0x1f8/0x368)
[    2.272075] [<c0133f9c>] (process_one_work) from [<c0134e08>] (worker_thread+0x2d4/0x424)
[    2.280260] [<c0134e08>] (worker_thread) from [<c01399ec>] (kthread+0x140/0x160)
[    2.287660] [<c01399ec>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    2.294870] Exception stack(0xd971bfb0 to 0xd971bff8)
[    2.299916] bfa0:                                     00000000 00000000 00000000 00000000
[    2.308085] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.316252] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    2.322866] Code: 0a000001 e1a00005 eb00331f e595356c (e5932004) 
[    2.329081] ---[ end trace 4a7c976e001c7aa4 ]---



More information about the linux-rpi-kernel mailing list