[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 Michael Ellerman (mich...@ellerman.id.au) changed: What|Removed |Added CC||mich...@ellerman.id.au --- Comment #26 from Michael Ellerman (mich...@ellerman.id.au) --- If you want to test things that are not quite in mainline you can always try the "merge" branch of the powerpc tree. That is a merge of master, next and fixes, so should have any fixes that are in the pipeline. -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #25 from Erhard F. (erhar...@mailbox.org) --- (In reply to Christophe Leroy from comment #24) > Do you confirm that the two patches done in the scope of bug #204479 are > included in your config, especially the first one: > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/ > arch/powerpc/mm/kasan/kasan_init_32. > c?id=663c0c9496a69f80011205ba3194049bcafd681d > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/ > arch/powerpc/mm/kasan/kasan_init_32. > c?id=45ff3c55958542c3b76075d59741297b8cb31cbb Ahh, now we are getting closer... No, I did the testing with a vanilla 5.3-rc8 kernel assuming that powerpc/kasan: Fix shadow area set up for modules powerpc/kasan: Fix parallel loading of modules were already in 5.3-rc8. Now I realize I was wrong. In -rc8 the latest one (2019-07-31) is: powerpc/kasan: fix early boot failure on PPC32 The other two patches are dated 2019-08-20 and not in 5.3-rc8 or the newly released 5.3. Sorry for the noise! I will close the bug for now and retest as soon as the 2 patches are in 5.4-rcx or 5.3.x. If it still seems valid that time I will re-open. -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #24 from Christophe Leroy (christophe.le...@c-s.fr) --- Do you confirm that the two patches done in the scope of bug #204479 are included in your config, especially the first one: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/arch/powerpc/mm/kasan/kasan_init_32.c?id=663c0c9496a69f80011205ba3194049bcafd681d https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/arch/powerpc/mm/kasan/kasan_init_32.c?id=45ff3c55958542c3b76075d59741297b8cb31cbb -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #23 from Christophe Leroy (christophe.le...@c-s.fr) --- Thanks. The third one is interesting, as it shows : Sep 16 12:57:39 T600 kernel: BUG: Unable to handle kernel data access at 0xfe295404 0xfe295000-0xfe295fff 0x00d05000 4K user rpresent accessed So unlike the other cases, this one shows that the area is still read-only and pointing to the zero shadow area. Wondering whether for the other ones the area is not allocated to a further module loader after the failing one. Are you able to dump kernel_page_tables just after each module load failure before loading any additional module ? -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #22 from Erhard F. (erhar...@mailbox.org) --- (In reply to Christophe Leroy from comment #11) > I have carefully reviewed the flushing calls and have not been able to > identify any issue. > > Maybe a SMP issue ? Does this problem also happen without CONFIG_SMP ? For my 1st (v2) retest I applied the "powerpc/ptdump: Fix addresses display on PPC32" patch you linked on top of -rc8. For my 2nd (v3) retest I applied the patch and disabled SMP in the .config. As you can see the issue still persists without SMP. Also different 'problematic' modules popup even without SMP. -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #21 from Erhard F. (erhar...@mailbox.org) --- Created attachment 285009 --> https://bugzilla.kernel.org/attachment.cgi?id=285009=edit objdump ehci-pci v3 (5.3-rc8 + ptdump patch, NO SMP) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #20 from Erhard F. (erhar...@mailbox.org) --- Created attachment 285007 --> https://bugzilla.kernel.org/attachment.cgi?id=285007=edit objdump firewire-ohci v3 (5.3-rc8 + ptdump patch, NO SMP) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #19 from Erhard F. (erhar...@mailbox.org) --- Created attachment 285005 --> https://bugzilla.kernel.org/attachment.cgi?id=285005=edit objdump ohci-hcd v3 (5.3-rc8 + ptdump patch, NO SMP) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #18 from Erhard F. (erhar...@mailbox.org) --- Created attachment 285003 --> https://bugzilla.kernel.org/attachment.cgi?id=285003=edit objdump usbcore v3 (5.3-rc8 + ptdump patch, NO SMP) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #17 from Erhard F. (erhar...@mailbox.org) --- Created attachment 285001 --> https://bugzilla.kernel.org/attachment.cgi?id=285001=edit kernel_page_tables v3 (5.3-rc8 + ptdump patch, NO SMP) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #16 from Erhard F. (erhar...@mailbox.org) --- Created attachment 284999 --> https://bugzilla.kernel.org/attachment.cgi?id=284999=edit dmesg v3 (5.3-rc8 + ptdump patch, NO SMP) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #15 from Erhard F. (erhar...@mailbox.org) --- Created attachment 284997 --> https://bugzilla.kernel.org/attachment.cgi?id=284997=edit objdump usbcore v2 (5.3-rc8 + ptdump patch) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #14 from Erhard F. (erhar...@mailbox.org) --- Created attachment 284995 --> https://bugzilla.kernel.org/attachment.cgi?id=284995=edit objdump firewire-ohci v2 (5.3-rc8 + ptdump patch) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #13 from Erhard F. (erhar...@mailbox.org) --- Created attachment 284993 --> https://bugzilla.kernel.org/attachment.cgi?id=284993=edit kernel_page_tables v2 (5.3-rc8 + ptdump patch) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #12 from Erhard F. (erhar...@mailbox.org) --- Created attachment 284991 --> https://bugzilla.kernel.org/attachment.cgi?id=284991=edit dmesg v2 (5.3-rc8 + ptdump patch) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #11 from Christophe Leroy (christophe.le...@c-s.fr) --- I have carefully reviewed the flushing calls and have not been able to identify any issue. Maybe a SMP issue ? Does this problem also happen without CONFIG_SMP ? -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #10 from Christophe Leroy (christophe.le...@c-s.fr) --- No no, what I mean by 'manually fixed kernel_page_tables' is that I fixed the file you attached so that it has the same values as what it would have had with the patch applied. Don't worry. -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #9 from Erhard F. (erhar...@mailbox.org) --- I can apply the patch but how do I apply the manually fixed kernel_page_tables? Not quite sure how to proceed. -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #8 from Christophe Leroy (christophe.le...@c-s.fr) --- You get: Sep 13 17:43:49 T600 kernel: BUG: Unable to handle kernel data access at 0xfe205150 However this area is properly mapped RW: 0xfe205000-0xfe205fff 0x297d6000 4Krw present dirty accessed There must be something wrong with hash table update. -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #7 from Christophe Leroy (christophe.le...@c-s.fr) --- Created attachment 284961 --> https://bugzilla.kernel.org/attachment.cgi?id=284961=edit Manually fixed kernel_page_tables -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #6 from Christophe Leroy (christophe.le...@c-s.fr) --- Aaarrgghhh ! kernel_page_tables addresses are wrong. Ok, I'll manage. For next time, please apply https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/arch/powerpc/mm/ptdump?h=next-20190904=7c7a532ba3fc51bf9527d191fb410786c1fdc73c -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #5 from Erhard F. (erhar...@mailbox.org) --- Created attachment 284953 --> https://bugzilla.kernel.org/attachment.cgi?id=284953=edit objdump sungem (5.3-rc8, PowerMac G4 DP) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #4 from Erhard F. (erhar...@mailbox.org) --- Created attachment 284951 --> https://bugzilla.kernel.org/attachment.cgi?id=284951=edit kernel_page_tables (5.3-rc8, PowerMac G4 DP) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #284931|0 |1 is obsolete|| --- Comment #3 from Erhard F. (erhar...@mailbox.org) --- Created attachment 284949 --> https://bugzilla.kernel.org/attachment.cgi?id=284949=edit dmesg (5.3-rc8, PowerMac G4 DP) -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 Christophe Leroy (christophe.le...@c-s.fr) changed: What|Removed |Added CC||christophe.le...@c-s.fr --- Comment #2 from Christophe Leroy (christophe.le...@c-s.fr) --- Could you please provide the content of /sys/kernel/debug/kernel_page_tables together with the dmesg, and also an 'objdump -h' of the failing modules ? -- You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204819] KASAN still got problems loading some modules at boot
https://bugzilla.kernel.org/show_bug.cgi?id=204819 --- Comment #1 from Erhard F. (erhar...@mailbox.org) --- Created attachment 284933 --> https://bugzilla.kernel.org/attachment.cgi?id=284933=edit kernel .config (5.3-rc8, PowerMac G4 DP) -- You are receiving this mail because: You are watching the assignee of the bug.