Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1506926
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | n@dhp.com |
| Newsgroups | linux.kernel |
| Subject | /dev/mem arch/x86 mm/pat.c break |
| Date | Mon, 24 Oct 2016 08:30:01 +0200 |
| Message-ID | <svGVH-3Q4-9@gated-at.bofh.it> (permalink) |
| X-Original-To | linux-kernel@vger.kernel.org |
| X-Greylist | delayed 1653 seconds by postgrey-1.27 at vger.kernel.org; Mon, 24 Oct 2016 02:26:32 EDT |
| MIME-Version | 1.0 |
| Content-Type | TEXT/PLAIN; charset=US-ASCII |
| 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 | 32 |
| Organization | linux.* mail to news gateway |
| X-Original-Date | Mon, 24 Oct 2016 05:58:58 +0000 (/etc/localtime) |
| X-Original-Message-ID | <Pine.LNX.4.21.1610240540340.31299-100000@shell.dhp.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1506926 |
Show key headers only | View raw
Hi, Unless I read C wrong, pat.c seems to break all non-strict devmem use. I discovered this while reversing a bunch of pci and other low-level stuff. Here is a link to the fix, http//users.dhp.com/~n/pubs/ the one starting with Linux-86...txt is the correct file, those kernel bugs in OpenBSD and that are just hilarious enough to keep around.. Oh, here is the full link: http://users.dhp.com/~n/Linux-x86-mmap-nonstrict-broken.txt This was first 'nonpromisc_devmem', probably dating back to that introduction of 1MB limits on mmap(2) way back in the day.. who knows. Alright, I confess as a kernel programmer Linux isn't my thing, I prefer Unix particularly BSD and SysV (SVR4 would be sort of both). Thats mostly because sys_call_table is sysent to me, as are tons of other symbols. But still, /usr/libexec/cpp seems to have broken /dev/mem mmap(2) functionality over the non-strict range of memory for.. a long time. If I'm wrong, then there is no problem, however I had to fix this to get things working. Thanks, I realize that #ifdef instead of #ifndef can cause strictness reversals.. good thing other portions of the kernel had this correct, or strict would be nonstrict, and vice-versa. Alright, enjoy.. Reply address: n@mod.net (please). -n
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
/dev/mem arch/x86 mm/pat.c break n@dhp.com - 2016-10-24 08:30 +0200 Re: /dev/mem arch/x86 mm/pat.c break <n@dhp.com> - 2016-10-24 12:30 +0200
csiph-web