Bug 1698208

Summary: [abrt] unwind_backtrace: WARNING: CPU: 0 PID: 1 at arch/arm/mm/dump.c:252 note_page+0x158/0x31c
Product: [Fedora] Fedora Reporter: Paul Whalen <pwhalen>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: airlied, bskeggs, hdegoede, ichavero, itamar, jarodwilson, jeremy, jglisse, john.j5live, jonathan, josef, kernel-maint, labbott, linville, mchehab, mjg59, steved, warlord
Target Milestone: ---   
Target Release: ---   
Hardware: armv7l   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/fcbe7f87f57d35bc5fd900a35544c542ee6fd4f1
Whiteboard: abrt_hash:fb7e6f730ae29228003eac86999e3fd99a690f91;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-17 20:08:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: dmesg
none
wandboard-dmesg
none
wandboard vmallocinfo none

Description Paul Whalen 2019-04-09 19:50:45 UTC
Description of problem:


Additional info:
reporter:       libreport-2.10.0
WARNING: CPU: 0 PID: 1 at arch/arm/mm/dump.c:252 note_page+0x158/0x31c
arm/mm: Found insecure W+X mapping at address 0xf0879000
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.0.6-300.fc30.armv7hl #1
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[<c0312580>] (unwind_backtrace) from [<c030c9ac>] (show_stack+0x18/0x1c)
[<c030c9ac>] (show_stack) from [<c0b31b60>] (dump_stack+0x80/0x9c)
[<c0b31b60>] (dump_stack) from [<c03505b4>] (__warn+0xdc/0xf8)
[<c03505b4>] (__warn) from [<c035060c>] (warn_slowpath_fmt+0x3c/0x4c)
[<c035060c>] (warn_slowpath_fmt) from [<c031b488>] (note_page+0x158/0x31c)
[<c031b488>] (note_page) from [<c031b714>] (walk_pgd+0xc8/0xe0)
[<c031b714>] (walk_pgd) from [<c031b7f0>] (ptdump_check_wx+0x58/0xac)
[<c031b7f0>] (ptdump_check_wx) from [<c0b45f40>] (kernel_init+0x34/0x11c)
[<c0b45f40>] (kernel_init) from [<c03010e8>] (ret_from_fork+0x14/0x2c)
Exception stack(0xee917fb0 to 0xee917ff8)
7fa0:                                     00000000 00000000 00000000 00000000
7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
7fe0: 00000000 00000000 00000000 00000000 00000013 00000000

Comment 1 Paul Whalen 2019-04-09 19:50:48 UTC
Created attachment 1553930 [details]
File: dmesg

Comment 2 Paul Whalen 2019-04-09 19:52:38 UTC
Crash happened when booting the XFCE spin on a Wandboard Quad.

Comment 3 Laura Abbott 2019-04-09 20:49:31 UTC
Hmmmm, is this reproducible? That address looks like it's from the vmalloc space. If you can reproduce this, can you share dmesg + the out put cat /proc/vmallocinfo?

Comment 4 Paul Whalen 2019-04-09 20:58:08 UTC
Yes, looks like it happens on every boot. requested output attached.

Comment 5 Paul Whalen 2019-04-09 20:58:39 UTC
Created attachment 1553943 [details]
wandboard-dmesg

Comment 6 Paul Whalen 2019-04-09 20:59:15 UTC
Created attachment 1553944 [details]
wandboard vmallocinfo

Comment 7 Laura Abbott 2019-04-10 00:41:32 UTC
Thanks for the dumps. I think this is from arch/arm/mach-imx/pm-imx6.c calling __arm_ioremap_exec which deliberately maps everything as RWX. The warning is correctly flagging it as something bad but it's otherwise harmless. I don't see a super easy way to fix this but I'll give it some thought.

Comment 8 Justin M. Forbes 2019-08-20 17:35:03 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There are a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 30 kernel bugs.

Fedora 30 has now been rebased to 5.2.9-200.fc30.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you have moved on to Fedora 31, and are still experiencing this issue, please change the version to Fedora 31.

If you experience different issues, please open a new bug report for those.

Comment 9 Justin M. Forbes 2019-09-17 20:08:24 UTC
*********** MASS BUG UPDATE **************
This bug is being closed with INSUFFICIENT_DATA as there has not been a response in 3 weeks. If you are still experiencing this issue, please reopen and attach the relevant data from the latest kernel you are running and any data that might have been requested previously.

Comment 10 Derek Atkins 2020-04-17 15:00:33 UTC
Hi,

I see this happening on a Wandboard Quad IMX6Q-BW Rev D1 with 5.4.17-200.fc31.armv7hl.  This is on a system that started at F25 and was upgraded all the way to F31 step-by-step using dnf system-upgrade.  

Note that if I use Fedora-Minimal-31 directly on the quad system I do NOT see this issue (running 5.3.7-301.fc31.armv7hl).

I am working to reproduce it using "old" and "new" system disks with the same kernel to see if it's specifically a kernel version issue or if there is something residual on the old filesystem that might be causing this.

I'll note that this appears to prevent certain other parts of the system from starting up later..

[    6.841555] Freeing unused kernel memory: 2048K                              
[    6.848283] ------------[ cut here ]------------                             
[    6.852985] WARNING: CPU: 2 PID: 1 at arch/arm/mm/dump.c:248 note_page+0x1604
[    6.860609] arm/mm: Found insecure W+X mapping at address 0xf0879000         
[    6.866994] Modules linked in:                                               
[    6.870093] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 5.4.17-200.fc31.armv7h1
[    6.877494] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)       
[    6.884062] [<c0311264>] (unwind_backtrace) from [<c030b744>] (show_stack+0x)
[    6.891825] [<c030b744>] (show_stack) from [<c0b2d580>] (dump_stack+0xb4/0xd)
[    6.899068] [<c0b2d580>] (dump_stack) from [<c034d5bc>] (__warn+0xdc/0xf8)   
[    6.905958] [<c034d5bc>] (__warn) from [<c034d96c>] (warn_slowpath_fmt+0x70/)
[    6.913455] [<c034d96c>] (warn_slowpath_fmt) from [<c03197a8>] (note_page+0x)
[    6.921383] [<c03197a8>] (note_page) from [<c0319a34>] (walk_pgd+0xc8/0xe0)  
[    6.928357] [<c0319a34>] (walk_pgd) from [<c0319b10>] (ptdump_check_wx+0x58/)
[    6.935858] [<c0319b10>] (ptdump_check_wx) from [<c0b4182c>] (kernel_init+0x)
[    6.943706] [<c0b4182c>] (kernel_init) from [<c03010e8>] (ret_from_fork+0x14)
[    6.951281] Exception stack(0xee943fb0 to 0xee943ff8)                        
[    6.956339] 3fa0:                                     00000000 00000000 00000
[    6.964524] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000
[    6.972708] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000      
[    6.979365] ---[ end trace eb98c3200f90d0b6 ]---                             
[    6.984352] Checked W+X mappings: FAILED, 1 W+X pages found                  
[    6.989965] rodata_test: test data was not read only