lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56499ad1-3d82-457e-9886-12b4665c4f9f@spud>
Date:   Thu, 23 Mar 2023 08:13:15 +0000
From:   Conor Dooley <conor.dooley@...rochip.com>
To:     Vlastimil Babka <vbabka@...e.cz>
CC:     Naresh Kamboju <naresh.kamboju@...aro.org>,
        open list <linux-kernel@...r.kernel.org>,
        Linux-Next Mailing List <linux-next@...r.kernel.org>,
        linux-mm <linux-mm@...ck.org>, <lkft-triage@...ts.linaro.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Stephen Rothwell <sfr@...b.auug.org.au>, <lstoakes@...il.com>,
        David Hildenbrand <david@...hat.com>,
        "Liam R. Howlett" <liam.howlett@...cle.com>, <willy@...radead.org>,
        <vernon2gm@...il.com>, Arnd Bergmann <arnd@...db.de>,
        Anders Roxell <anders.roxell@...aro.org>
Subject: Re: next-20230323: arm64: vma_merge (mm/mmap.c:952 (discriminator
 1)) - Unable to handle kernel paging request at virtual address
 0000000000100111 -

On Thu, Mar 23, 2023 at 08:51:25AM +0100, Vlastimil Babka wrote:
> On 3/23/23 08:35, Naresh Kamboju wrote:
> > The following kernel crash was noticed on arm x15, arm64 hikey-6220, Juno-r2,
> > x86_64 and i386 devices on Linux next-20230323.

To add one more to the sample size, it's falling over on RISC-V too!

> > Reported-by: Linux Kernel Functional Testing <lkft@...aro.org>
> > 
> > crash log on arm64:
> > ---------------
> > [   19.281223] Unable to handle kernel paging request at virtual
> > address 0000000000100111
> > [   19.289189] Mem abort info:
> > [   19.291995]   ESR = 0x0000000096000006
> > [   19.295757]   EC = 0x25: DABT (current EL), IL = 32 bits
> > [   19.301086]   SET = 0, FnV = 0
> > [   19.304151]   EA = 0, S1PTW = 0
> > [   19.307302]   FSC = 0x06: level 2 translation fault
> > [   19.312194] Data abort info:
> > [   19.315083]   ISV = 0, ISS = 0x00000006
> > [   19.318930]   CM = 0, WnR = 0
> > [   19.321901] user pgtable: 4k pages, 48-bit VAs, pgdp=00000008a23c5000
> > [   19.328374] [0000000000100111] pgd=08000008a14c5003,
> > p4d=08000008a14c5003, pud=08000008a14c6003, pmd=0000000000000000
> > [   19.339037] Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
> > [   19.345315] Modules linked in:
> > [   19.348373] CPU: 2 PID: 1 Comm: init Not tainted 6.3.0-rc3-next-20230323 #1
> 
> next-20230323 seems to contain v2 of Lorenzo's vma_merge cleanups
> 
> > [   19.355347] Hardware name: ARM Juno development board (r2) (DT)
> > [   19.361273] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
> > [   19.368246] pc : vma_merge (mm/mmap.c:952 (discriminator 1))
> 
> And this is a line involving 'next' and Liam pointed out a possibly
> unitialized next in v2, so that's probably it.
> Andrew replaced it with a fixed version so it should make its way to -next
> as well.

Cool, hopefully it is fixed tomorrow :)

Cheers,
Conor.

> > [   19.371917] lr : vma_merge (mm/mmap.c:945)
> > [   19.375670] sp : ffff80000b37bb40
> > [   19.378985] x29: ffff80000b37bb40 x28: ffff000820c0ff20 x27: 0000000000000000
> > [   19.386139] x26: ffff000820c17210 x25: ffff000800bfac00 x24: 0000ffff8e8b7000
> > [   19.393293] x23: 0000000000100071 x22: ffff000800898d80 x21: 0000000000100071
> > [   19.400446] x20: ffff80000b37bd18 x19: 0000ffff8e8ba000 x18: ffff80000b37bd18
> > [   19.407599] x17: 0000000000000000 x16: ffff8000099a58c8 x15: 0000ffff8e9aefff
> > [   19.414752] x14: 0000ffff8e8b7000 x13: 1fffe001041bb361 x12: ffff80000b37baf8
> > [   19.421905] x11: ffff000822473400 x10: ffff000820dd9b08 x9 : ffff80000830fc64
> > [   19.429057] x8 : 0000ffff8e8b7000 x7 : 0000ffff8e8b7000 x6 : ffff000820dd9b50
> > [   19.436210] x5 : ffff000820c0ff20 x4 : 0000000000000187 x3 : ffff000800bfac00
> > [   19.443363] x2 : 0000000000000000 x1 : 0000000000100071 x0 : 0000000000000000
> > [   19.450515] Call trace:
> > [   19.452960] vma_merge (mm/mmap.c:952 (discriminator 1))
> > [   19.456279] mprotect_fixup (mm/mprotect.c:676)
> > [   19.460034] do_mprotect_pkey.constprop.0 (mm/mprotect.c:862)
> > [   19.465094] __arm64_sys_mprotect (mm/mprotect.c:880)
> > [   19.469283] invoke_syscall (arch/arm64/include/asm/current.h:19
> > arch/arm64/kernel/syscall.c:57)
> > [   19.473041] el0_svc_common (arch/arm64/include/asm/daifflags.h:28
> > arch/arm64/kernel/syscall.c:150)
> > [   19.476796] do_el0_svc (arch/arm64/kernel/syscall.c:194)
> > [   19.480117] el0_svc (arch/arm64/include/asm/daifflags.h:28
> > arch/arm64/kernel/entry-common.c:133
> > arch/arm64/kernel/entry-common.c:142
> > arch/arm64/kernel/entry-common.c:638)
> > [   19.483177] el0t_64_sync_handler (arch/arm64/kernel/entry-common.c:656)
> > [   19.487454] el0t_64_sync (arch/arm64/kernel/entry.S:591)
> > [ 19.491123] Code: eb18001f 54000800 52800002 b40004d7 (f94052e1)
> > All code
> > ========
> >    0:* 1f                    (bad)  <-- trapping instruction
> >    1: 00 18                add    %bl,(%rax)
> >    3: eb 00                jmp    0x5
> >    5: 08 00                or     %al,(%rax)
> >    7: 54                    push   %rsp
> >    8: 02 00                add    (%rax),%al
> >    a: 80 52 d7 04          adcb   $0x4,-0x29(%rdx)
> >    e: 00                    .byte 0x0
> >    f: b4 e1                mov    $0xe1,%ah
> >   11: 52                    push   %rdx
> >   12: 40 f9                rex stc
> > 
> > Code starting with the faulting instruction
> > ===========================================
> >    0: e1 52                loope  0x54
> >    2: 40 f9                rex stc
> 
> Looks like an x86 decodecode of arm64 code :) calling a wrong objdump or
> something?
> 
> > [   19.497226] ---[ end trace 0000000000000000 ]---
> > [   19.501883] Kernel panic - not syncing: Attempted to kill init!
> > exitcode=0x0000000b
> > [   19.509551] SMP: stopping secondary CPUs
> > [   19.513665] Kernel Offset: disabled
> > [   19.517152] CPU features: 0x400002,0c3c0400,0000421b
> > [   19.522123] Memory Limit: none
> > [   19.525181] ---[ end Kernel panic - not syncing: Attempted to kill
> > init! exitcode=0x0000000b ]---
> > 
> > 
> > metadata:
> >   git_ref: master
> >   git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
> >   git_sha: 7c4a254d78f89546d0e74a40617ef24c6151c8d1
> >   git_describe: next-20230323
> >   kernel_version: 6.3.0-rc3
> >   kernel-config:
> > https://storage.tuxsuite.com/public/linaro/lkft/builds/2NOjwfRUa0fjWWZBWCUG4Ypift7/config
> >   build-url: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next/-/pipelines/815177945
> >   artifact-location:
> > https://storage.tuxsuite.com/public/linaro/lkft/builds/2NOjwfRUa0fjWWZBWCUG4Ypift7
> >   toolchain: gcc-11
> > 
> > 
> > --
> > Linaro LKFT
> > https://lkft.linaro.org
> > 
> 
> 

Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ