Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1425653
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | David Miller <davem@davemloft.net> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] sparc64: Swap registers for fault code and address in mna trap |
| Date | Sat, 18 Jun 2016 08:20:01 +0200 |
| Message-ID | <rLhLP-mW-13@gated-at.bofh.it> (permalink) |
| References | <rKR50-8jh-5@gated-at.bofh.it> |
| X-Original-To | hikanda@zlab.co.jp |
| X-Mailer | Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) |
| MIME-Version | 1.0 |
| Content-Type | Text/Plain; charset=iso-2022-jp |
| Content-Transfer-Encoding | 7bit |
| X-Greylist | Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 17 Jun 2016 23:12:39 -0700 (PDT) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 26 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org |
| X-Original-Date | Fri, 17 Jun 2016 23:12:34 -0700 (PDT) |
| X-Original-Message-ID | <20160617.231234.1295900275353757289.davem@davemloft.net> |
| X-Original-References | <TYXPR01MB0589F696D4EADB7B1244D97A99570@TYXPR01MB0589.jpnprd01.prod.outlook.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1425653 |
Show key headers only | View raw
From: 神田 尚 <hikanda@zlab.co.jp> Date: Fri, 17 Jun 2016 01:49:11 +0000 > This bug may occur in the following. > > user_rtt_fill_64bit <= If mna trap occurred, call do_mna > +-> do_mna <= Mistake storing registers for fault code and address > +-> winfix_mna > +-> user_rtt_fill_fixup <= Put fault address into thread_info->flag's TI_FAULT_CODE > +-> do_sparc64_fault() <= If fault address has FAULT_CODE_ITLB and FAULT_CODE_DTLB bits, call BUG() > +-> BUG() We should not be invoking do_sparc64_fault() in this case. Instead, we call either sun4v_do_mna() or mem_address_unaligned(). Neither of which care about the values stored in the thread's fault address and code. If you can really trigger this code path, please post the kernel log backtrace that happens when the BUG() triggers. That way we can figure out what the real problem is. Your patch is also wrong for other reasons, it would break the unaligned trap code paths that don't go via user_rtt_fill_64bit fixups.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] sparc64: Swap registers for fault code and address in mna trap 神田 尚 <hikanda@zlab.co.jp> - 2016-06-17 03:50 +0200
Re: [PATCH] sparc64: Swap registers for fault code and address in mna trap David Miller <davem@davemloft.net> - 2016-06-18 08:20 +0200
RE: [PATCH] sparc64: Swap registers for fault code and address in mna trap 神田 尚 <hikanda@zlab.co.jp> - 2016-06-21 12:40 +0200
Re: [PATCH] sparc64: Swap registers for fault code and address in mna trap David Miller <davem@davemloft.net> - 2016-06-22 20:50 +0200
csiph-web