From: cinap_lenrek@felloff.net
To: 9fans@9fans.net
Subject: Re: [9fans] NFS suicide on RPi3 and RPi4 9front, but works on RMiller's Plan9.
Date: Mon, 29 Mar 2021 17:19:39 +0200 [thread overview]
Message-ID: <88847EB155A2F4AA455C0C26D22E84B7@felloff.net> (raw)
In-Reply-To: <761985F3-8139-4F5D-AFEC-0A7D5F808245@gmail.com>
>
> Anyawys, the faulting address is
>
> addr=0x100061fa0 pc=37930
sorry to reply here as i never got the original mail.
i could reproduce this and it turns out to be a arm64 compiler bug expanding
the -1 offset in the array index to a 32 bit unsigned constant but instruction
issued is a 64 bit addition.
i commited a work around for libsunrpc avoiding this case.
changeset: 8382:fbff57e70e76
tag: tip
user: cinap_lenrek@felloff.net
date: Mon Mar 29 17:13:50 2021 +0200
summary: libsunrpc: work around arm64 compiler bug in sunStringUnpack()
diff -r 87d8e72ffb5c -r fbff57e70e76 sys/src/libsunrpc/rpc.c
--- a/sys/src/libsunrpc/rpc.c Tue Mar 23 16:33:32 2021 -0700
+++ b/sys/src/libsunrpc/rpc.c Mon Mar 29 17:13:50 2021 +0200
@@ -428,8 +428,9 @@
goto Err;
/* slide string down over length to make room for NUL */
memmove(dat-1, dat, n);
- dat[-1+n] = 0;
- *s = (char*)(dat-1);
+ dat--;
+ dat[n] = 0;
+ *s = (char*)dat;
return 0;
Err:
return -1;
--
cinap
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T995ec2230d16bd0b-M7a648db117dd9b3b65e26b9b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
prev parent reply other threads:[~2021-03-29 15:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <FE4D07EC-A08F-454D-B1EA-A81B4AD88B84@gmail.com>
2021-03-10 20:14 ` [9fans] Fwd: " Shiro
2021-03-11 15:07 ` ori
2021-03-24 23:18 ` [9fans] " Shiro
2021-03-29 15:19 ` cinap_lenrek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=88847EB155A2F4AA455C0C26D22E84B7@felloff.net \
--to=cinap_lenrek@felloff.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).