On Fri, Feb 10, 2017 at 09:40:11AM +0000, James Hogan wrote: > Hi Guenter, > > On Thu, Feb 09, 2017 at 08:50:04PM -0800, Guenter Roeck wrote: > > On 02/09/2017 04:01 PM, Justin Chen wrote: > > > Hello Guenter, > > > > > > I am unable to reproduce the problem. May you give me more details? > > > > > The scripts I am using are available at > > > > https://github.com/groeck/linux-build-test/tree/master/rootfs > > > > in the mips and mipsel subdirectories (both crash). Individual > > build logs are always available at kerneltests.org/builders, > > in the 'next' column. > > Did you find it 100% reproducible? I was trying to reproduce yesterday > evening, and did hit it a few times, but then it stopped happening > before I could try and figure out what was going wrong. I switched to gcc 5.2 (buildroot toolchain) for building kernel, and now it reproduces every time :) Cheers James > > I presume from your run-qemu-mipsel.sh script its a vanilla 2.7 > qemu-system-mipsel? > > Cheers > James > > > > > Note: If I build the image with my configuration, and run > > your qemu command, I get a different crash: > > > > ... > > ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0x1088 irq 15 > > CPU 0 Unable to handle kernel paging request at virtual address fffffffc, epc == 80341d68, ra == 803eae70 > > Oops[#1]: > > CPU: 0 PID: 1 Comm: swapper Not tainted 4.10.0-rc7-next-20170209 #2 > > task: 8704b8a0 task.stack: 8704c000 > > $ 0 : 00000000 0000006f fffffffc 00000000 > > $ 4 : 87044980 8069ee48 8069ee49 00000004 > > $ 8 : 00000000 8741c990 00000000 00000040 > > $12 : 00000000 00000001 00000000 fffffffe > > $16 : 8070ae14 80742fb8 80738190 00000000 > > $20 : 806e0000 8071c2fc 80770000 00000008 > > $24 : 00000110 00000000 > > $28 : 8704c000 8704fe10 80754728 803eae70 > > Hi : 0000000f > > Lo : 8f8f8f9f > > epc : 80341d68 kset_find_obj+0xc/0xa4 > > ra : 803eae70 driver_find+0x1c/0x48 > > Status: 1000a403 KERNEL EXL IE > > Cause : 00800008 (ExcCode 02) > > BadVA : fffffffc > > PrId : 00019300 (MIPS 24Kc) > > Modules linked in: > > Process swapper (pid: 1, threadinfo=8704c000, task=8704b8a0, tls=00000000) > > Stack : 80710000 00000000 806e0000 8044ba18 8070ae14 803eaf10 00000000 00000000 > > 80770000 80742fb8 80770000 80770000 80742fb8 801005dc 8708b900 810017e0 > > 8704fe68 806f0000 806ee894 81041c41 80600600 80141fb8 00000000 80740000 > > 806e0000 80720000 00000000 00000006 806765e4 00000006 00000017 80670000 > > 80676cf0 80680000 80770000 80742fb8 00000006 80742f98 80770000 80742fb8 > > ... > > Call Trace: > > [<80341d68>] kset_find_obj+0xc/0xa4 > > [<803eae70>] driver_find+0x1c/0x48 > > [<803eaf10>] driver_register+0x74/0x128 > > [<801005dc>] do_one_initcall+0x48/0x16c > > [<8071cd18>] kernel_init_freeable+0x170/0x22c > > [<805e1d30>] kernel_init+0x14/0x108 > > [<80105e18>] ret_from_kernel_thread+0x14/0x1c > > Code: 8c830000 10830012 2462fffc <8c430000> 1060000c 00a03021 90670000 90c10000 24630001 > > > > ---[ end trace c22dffa22f0b1376 ]--- > > Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b > > > > ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b > > > > Guenter > > > > > I rebased my patch onto of 4.10-rc7 and compiled with malta defconfig > > > with disabled SMP. Then booted with qemu. Doesn't seem to have an > > > error with the way I have it set up. > > > > > > I am using the command: > > > qemu-system-mipsel -kernel vmlinux -nographic -smp 0 > > > > > > Thanks, > > > Justin > > > > > > On Wed, Feb 8, 2017 at 3:45 PM, Guenter Roeck <linux@xxxxxxxxxxxx> wrote: > > >> Hi Justin, > > >> > > >> The 32-bit qemu mips runtime tests for -next at kerneltests.org are crashing > > >> for non-SMP builds as follows. > > >> > > >> cacheinfo: Failed to find cpu0 device node > > >> cacheinfo: Unable to detect cache hierarchy for CPU 0 > > >> CPU 0 Unable to handle kernel paging request at virtual address 00000004, epc == > > >> 8013c6a8, ra == 8013cb54 > > >> Oops[#1]: > > >> CPU: 0 PID: 5 Comm: kworker/u2:0 Not tainted 4.10.0-rc7-next-20170208 #1 > > >> Workqueue: events_unbound call_usermodehelper_exec_work > > >> task: 8704a420 task.stack: 87068000 > > >> $ 0 : 00000000 80770000 873a8204 8700c214 > > >> $ 4 : 00000000 873a8200 00000000 ffff00fe > > >> $ 8 : 8706bfe0 0000a400 fffffffc 8704a459 > > >> $12 : 00000000 00000000 00000000 00000720 > > >> $16 : 873a8200 87045880 00000000 8700c200 > > >> $20 : 87014000 87014005 8700c200 8700c200 > > >> $24 : 00000000 8014d1e8 > > >> $28 : 87068000 8706be70 87045880 8013cb54 > > >> Hi : 00077698 > > >> Lo : ab801af8 > > >> epc : 8013c6a8 process_one_work+0xd4/0x408 > > >> ra : 8013cb54 worker_thread+0x178/0x598 > > >> Status: 1000a402 KERNEL EXL > > >> Cause : 0080000c (ExcCode 03) > > >> BadVA : 00000004 > > >> PrId : 00019300 (MIPS 24Kc) > > >> Modules linked in: > > >> Process kworker/u2:0 (pid: 5, threadinfo=87068000, task=8704a420, tls=00000000) > > >> Stack : 80700000 8700c214 00000088 80700000 8700c200 8700c200 8700c200 87045898 > > >> 80700000 8700c214 00000088 80700000 8700c200 8013cb54 8013c9dc 8704fe00 > > >> 87045600 87045700 80700000 80700000 80700000 80676560 87045600 87045700 > > >> 87045618 87045880 8013c9dc 8704fe00 80670000 80760000 806e0000 80142958 > > >> 00000000 00000000 00000000 00000000 80142850 80142850 87045700 8704b380 > > >> ... > > >> Call Trace: > > >> [<8013c6a8>] process_one_work+0xd4/0x408 > > >> [<8013cb54>] worker_thread+0x178/0x598 > > >> [<80142958>] kthread+0x108/0x138 > > >> [<80105e18>] ret_from_kernel_thread+0x14/0x1c > > >> Code: 8e030008 8e040004 8e150000 <ac830004> 7eb51900 ac640000 ae020004 16400094 ae020008 > > >> > > >> Bisect points to 'MIPS: Add cacheinfo support'; see below for details. > > >> Reverting this patch fixes te problem. > > >> > > >> Configuration is pretty much malta_defconfig with SMP disabled. > > >> I can provide more details if needed. > > >> > > >> Thanks, > > >> Guenter > > >> > > >> --- > > >> # bad: [e3e6c5f3544c5d05c6b3b309a34f4f2c3537e993] Add linux-next specific files for 20170208 > > >> # good: [d5adbfcd5f7bcc6fa58a41c5c5ada0e5c826ce2c] Linux 4.10-rc7 > > >> git bisect start 'HEAD' 'v4.10-rc7' > > >> # bad: [403e468309f9e2b2dbe264be1ad29b1486ed720e] Merge remote-tracking branch 'crypto/master' > > >> git bisect bad 403e468309f9e2b2dbe264be1ad29b1486ed720e > > >> # bad: [44448c3f07a3ae77164de4405fa97baca4f103f5] Merge remote-tracking branch 'hid/for-next' > > >> git bisect bad 44448c3f07a3ae77164de4405fa97baca4f103f5 > > >> # good: [dd4318312c6fc5c00ae7619f875fb73538a2c1e6] Merge remote-tracking branch 'omap/for-next' > > >> git bisect good dd4318312c6fc5c00ae7619f875fb73538a2c1e6 > > >> # bad: [2fe482530119a6d07acca625b29d527dc22435e6] Merge remote-tracking branch 'powerpc/next' > > >> git bisect bad 2fe482530119a6d07acca625b29d527dc22435e6 > > >> # good: [8576190cecf3370ce07ed04178cb3ecbf17dc2d9] Merge remote-tracking branch 'clk/clk-next' > > >> git bisect good 8576190cecf3370ce07ed04178cb3ecbf17dc2d9 > > >> # bad: [bf0505dfeac3f7df81b62d9d81987aaef6739ffd] MIPS: Fix special case in 64 bit IP checksumming. > > >> git bisect bad bf0505dfeac3f7df81b62d9d81987aaef6739ffd > > >> # good: [e89ef66d7682f031f026eee6bba03c8c2248d2a9] MIPS: init: Ensure reserved memory regions are not added to bootmem > > >> git bisect good e89ef66d7682f031f026eee6bba03c8c2248d2a9 > > >> # bad: [a8b3b0c94ac282628f0668d1366239a3fa72dc9d] MIPS: Netlogic: Fix assembler warning from smpboot.S > > >> git bisect bad a8b3b0c94ac282628f0668d1366239a3fa72dc9d > > >> # bad: [07724712bf22aec5fe44e5d399f115755f436721] MIPS: ralink: Add missing symbol for highmem support. > > >> git bisect bad 07724712bf22aec5fe44e5d399f115755f436721 > > >> # good: [856b0f591e951a234d6642cc466023df182eb51c] MIPS: kexec: add debug info about the new kexec'ed image > > >> git bisect good 856b0f591e951a234d6642cc466023df182eb51c > > >> # bad: [2517caf19dbfac3b39f2db5500c5fd03c4370e81] MIPS: ralink: Add missing I2C and I2S clocks. > > >> git bisect bad 2517caf19dbfac3b39f2db5500c5fd03c4370e81 > > >> # bad: [ef462f3b64e9fb0c8e1cd5d60f5bd7f13ac2156d] MIPS: Add cacheinfo support > > >> git bisect bad ef462f3b64e9fb0c8e1cd5d60f5bd7f13ac2156d > > >> # good: [0014dea6b71ae3e0384c3358f632b4728c3d432e] MIPS: generic/kexec: add support for a DTB passed in a separate buffer > > >> git bisect good 0014dea6b71ae3e0384c3358f632b4728c3d432e > > >> # first bad commit: [ef462f3b64e9fb0c8e1cd5d60f5bd7f13ac2156d] MIPS: Add cacheinfo support > > >> > > >> > > > > > > >
Attachment:
signature.asc
Description: Digital signature