-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel tried to execute NX-protected page - exploit attempt? (uid: 1000, task: Xorg, pid: 3433) #20
Comments
Again, my time online is minimal, always traced (but working on PCAPs is many many times multiple than the time online, for non-experts)... |
@miroR If you want us to help you, you will have to avoid opening any exits at all times and perform the tasks you are asked to do so that we can diagnose your problem or even ideally reproduce it. 1] minipli asked you to try with a recent kernel (4.14.4). Have you tried? Regards, |
On 171207-15:12+0000, Loïc wrote:
@miroR
Hi,
If you want us to help you, you will have to avoid opening any exits at all
times
I apologize. But it also felt a little like my hardware was in peril to some extent. I have already lost Ethernet cards, and DVD drives in the past due to intrusions, and I could prove it, it time would permit me to. Also verly likely one TV card I lost. I'm not joking. My MBOs are one set (doing Air-Gap installing and cloning as I explained here or elsewhere --see why I can't be more precise just next-- so I have at least two of same kind MBOs in a set)... [my MBOs are one set] 4 yrs old, the other set 10 years old, and no chance to get any new set soon. I can't risk them too openly online for too long.
I am also sorry for the reply that I am due to the email by
[MEncoder-users] Mencoder involved in system crashes? WAS: DVD rip (to avi) using mencoder
Reimar Döffinger in this or one of the other issues of mine (the reason for not being precise coming).
The truth is --if you allow that I am being honest all this time-- every time I've gone online in the past (how long? three weeks intensly, but also a few weeks, nay, at least one month earlier, only less intense), I have had crashes starting when I came online, or soon afterwards, or from the hidden recesses in the system that exploit users can possibly store their stuff. Even after fresh cloning, but then usually the crashing vanishes after one or --rarely-- two crashes. However, the crashing is not always with the ethers which you write below, it is sometimes also with some of the: Mencoder, MPlayer, FFmpeg, (or even other, but those are the most likely candidates).
The reason that I am writing without referring to precise issues/web-archived emails that I mention, has just been said in the above paragraph. I have to be cautious with my time online, so I can't first go online and copy the links, I have to send this first --also because: what if a crash makes it impossible to send this tonight?-- and... And more.
And more, but good stuff, I would hope. I can now (but only now) more confidently go online because I finally completed deployment of grsec RBAC system (I manually installed, from spender's cvsweb that you gave me the links in some of my recent issues, the latest gradm of some 10 days ago). The learning was pretty bad, because there were so many crashes, so the cycle that grsec needs to do the learning (first the full learning, but also later lots of subject learning) hardly ever got completed. And there was little hope that those cycles would complete --not in the online clone-machine, and most important work I do in it, I don't do it in the master Air-Gapped machine-- and *I had to spend days* figuring out manually a hundred details for subjects and objects here and there... But that work I have pretty much completed finally.
Pls. notice that the crashes were so bad as I explain above. And how much it took me to get RBAC finally deployed. Thank you!
and perform the tasks you are asked to do so that we can diagnose your
problem or even ideally reproduce it.
I appreciate your and minipli's work and help. (Pls. understand I have, and will be, doing what I can... Which also means, not more than I am capable of doing.)
That said, let me look at your kind suggestions below.
1] minipli asked you to try with a recent kernel (4.14.4). Have you tried?
Ah, I see. The most recent, not the 4.9? I thought I should go for the vanilla 4.9.x... But I'll follow this more clearly explained (for non-expert) advice of yours instead.
Of course if I am able to understand what I need to do once I visit minipli's github, then I'll take 4.14.4 and try. It will be at least one to two hours, the compiling, so hopefully tomorrow morning. Again, if I am able to understand what I need to do, which I assure you I will do my best to... Except...
Except: I would be much more vulnerable for online without grsec-unoff... However, I can try my usual FFmpeg sessions, MPlayer playing and Mencoder, and Tzap recording, and see if I get any crashes.
2] [SKY2](https://github.com/torvalds/linux/commits/master/drivers/net/ethernet/marvell/sky2.c) just lost the connection without crashing. This could be due to your router, an outdated software that uses promiscuous mode, or one of your scripts.
I have found one of the possible reasons. I was going online the wrong way with the refurbished ifupdown program in Ceres, the Devuan unstable (corresponding to Debian unstable).
I had the macchanger turned on in (this is previous state, and it was so for long weeks):
# cat /etc/default/macchanger | grep true
ENABLE_ON_POST_UP_DOWN=true
#
And then I would get Ethernet II notice in the PCAPs --which I only now understand what it meant, phew!--. Logging into my router solved that for me, once I saw some five or more different MACs all on the same port, i.e. all that I created from one same machine, one same Ethernet Sky2 card.
Now that line above is commented out, and I assign to the eth1 in question a fake, but always same, MAC myself, before going online.
However, my Pale Moon:
$ palemoon -v
Moonchild Productions Pale Moon 27.4.0
#
crashed yesterday (or the day before, can't remember) when I discovered the multiple MACs asigned to same port, same eth1 in same machine, from same eth1 Ether... [my Pale Moon crashed yesterday], and there weren't multiple assigned MACs, so...
( and I can't update Pale Moon very soon, I compile it myself, long time needed )
And also, really, I was sticking carefully to one fake MAC, but there were more crashes regardless, so that wrong use of the new ifupdown program along with such macchanger config as above was not the cause of all of those crashes in all the 5 or so issues that I authored... Wrong ifupdown program use consisted in me mostly running:
# ifdown eth1; ifup eth1;
which in the older ifupdown was almost fine. In the new it is not needed, it's obviously harmful... Once the ifup down reassigned it all, the eth1 had a new MAC...
Some recent crashes that I had were very likely due to wrong/missing rules. I had one with Postfix crashing today... But just didn't have the strength any more to take it down manually --it's some 30 minutes of typing--, hoping it would be in the logs... But the logs were completely empty of what I saw on the screen. Information lost forever... I do remember it was because this line was missing in this subject:
# Role: root
subject /usr/lib/postfix/sbin o {
/ h
[...]
/usr/lib/postfix rx
/usr/lib/x86_64-linux-gnu rx
/var/spool r
/var/spool/postfix rwcdl
/var/tmp rwcdl
/tmp rwcdl
-CAP_ALL
+CAP_DAC_READ_SEARCH
+CAP_KILL
This line:
+CAP_KILL
was missing. I saw it when I couldn't shutdown the machine having logged into the role shutdown... Postfix stuck at being unable to kill some of its process. But the crash happened later once I rebooted! However once I added that line --and a few other stuff around Postfix: it's complex, the manually fixing of subjects-- Postfix now behaves. So that crash --unreported in tech terms, since not in the logs-- was probably isolated incident. But it is also the pattern of some of the crashes: missing or wrong RBAC rules.
3] Update your bios (version 2.80) that might fix the NX warn.
Thanks for looking into it! I will. I didn't expect there was an update... I get lost in doing things... Sorry!
Regards,
I hope crashes won't be so bad to delay my testing that I promised above: vanilla recent kernel compile, and FFmpeg, MPlayer, Mencoder, my tzap scripts (which I will also post for your kind perusal), and other work that I do.
BTW, 4.9.67 running here --no separate modules, and only what my hardware needs--, and after one belated crash --which I feel it's due to previously to installing it having been online-- is running just fine... However, haven't been online with it yet... --well, other than two times some 70 seconds, first to fix RBAC perms, and second to get new mail, yours included.
But 4.9.67 hasn't been under much strain here, yet. But it will be, because I'll start a long FFmpeg session on the recordings of some two days or so, and see if this time my machine won't crash... I'll let all of it running during the night: Tzap recording, Mencoder recording, FFmpeg conversions on previously recorded either AVIs taken by Mencoder, or M2Ts recorded by Tzap, and if MPlayer, which I'll set so, wakes me up in the morning, I'll know it all worked fine...
But it hasn't in most of these nights... I mostly had crashes, and no wakup music.
The same work as above I can try with vanilla.
But I don't think I should go online with vanilla, wouldn't feel safe, not if these are intrusion attempts, be it only part of all these somewhat diverse crashes that I've had so far...
While trying to send this, here's, among a few rules for /usr/lib/postfix/sbin that grsec asks me to fix, [here's] from the logs, without comments:
Dec 7 23:24:36 gdOv kernel: [22845.096786] IPv4: martian source 255.255.255.255 from 192.168.1.1, on dev eth1
Dec 7 23:24:36 gdOv kernel: [22845.096808] ll header: 00000000: 00 30 4f 47 37 17 2c 95 7f 8b 44 87 08 00 .0OG7.,...N...
Dec 7 23:24:36 gdOv kernel: [22845.118784] IPv4: martian source 255.255.255.255 from 192.168.1.1, on dev eth1
Dec 7 23:24:36 gdOv kernel: [22845.118807] ll header: 00000000: 00 30 4f 47 37 17 2c 95 7f 8b 44 87 08 00 .0OG7.,...N...
Regards!
--
Miroslav Rovis
Zagreb, Croatia
https://www.CroatiaFidelis.hr
|
I have stressed the system, this clone that I use for online, without sparing it since my last night's post. E.g. FFmpeg, which by default runs with all processing power, has been on since I went to sleep very early, minutes into this day (UTC), and it's still churning on videos. Will be lots of garbage videos to clean, because I recorded mostly indiscriminately, to record a lot for testing purposes. And also mencoder was recording on Hauppauge HVR3000 composite input all the time (lot of garbage, indiscriminately). And so was tzap (same note). I promised I would post the scripts:
And:
Just in case... I don't think anything causing issues to be found in these (primitive) scripts. And lots of mplayer runs. Lot's of. E.g. with a command line like this:
That script lists every Compo_NNNNNN_NNNN.avi file (where NNNNNN_NNNN can be, say 171208_0659, the timestamp, because I run mencoder on Composite input with:
where I have this config:
I actually ran strace on:
I doubt there is anything to be found in there... Also the old 27.4.0 Pale Moon is on all the time. It crashed, but that was restrected to it only. It's probably just some kind of problem with the addons not behaving as PAX would like:
On the standard input (because in my lean OpenBox, I start programs from xterm, I had:
Otherwise there have been no (other) issues, well no bad issues as for days on end earlier, no real issues whatsoever anymore now!
But I think maybe I found one other reason for the (earlier) crashes. Tor was running all the time when the crashes were happening, all these weeks. It's the Devuan/Debian Tor that runs as a "daemon", managed by (Devuan maintained) OpenRC in my boxen, and started by the init service (old sysvinit here; BTW, my system is a no-dbus system, I don't trust it, so I don't install it). I decided it was time to try and disable Tor. This is the state since, IIRC yesterday around yesterday morning plus minus a couple of hours (but my recollection is not always correct):
Because I had noticed earlier --only it takes time getting into my understanding properly-- these lines in my:
Pls. notice "weird crashes, that might be why". Could that have to do with these crashes in the six issues that I have reported recently? If, so more info needed. More info needed if so, and for more I think it would be good to try and ask some Tor developers about this. And I'll try and contact some on them. Just give me a little more time. And, if I have no more crashes, I now have nothing to reproduce... I will compile and actually try and keep regularly compiling latest vanilla kernels --is it really not the 4.9 equivalent of the grsec-unoff patched kernels that I compile, rather than the latest kernel from kernel.org like 4.14.x ? That's it for now, waiting for more suggestions/advice/directions/clarifications/questions! |
confirmation/information on tor failure with weird crashes due to "OpenSSL version from headers does not match" Still no crashes... I think I should enable Tor, and if the crashes are back --but won't be taking to many of them to declare this issue, actually these issues, solved-- than that's it. And if that's it, I hope Tor devs give use more clue... |
This is beyond me completely.
And yet, browsing with tor-browser, and apt-get update/upgrade 'ing via tor+https went as smooth as I never expected. And no crashes whatsoever (other than having to use safe-mode with Pale Moon, else it crashes along the lines I explained above, w/o bringing any harm to the system). I don't know what those crashes were caused with. I will try and strain my system tonight like I made it work hard last night and with those same programs as I explained above, and... maybe we'll know more... Regards! |
Pale-Moon seems to me less sure than Firefox. If you want a secure browser, compile firefox by disabling JIT (which will reduce javascript performance) so that it is compatible with PAX_MPROTECT. Can we deduce from this that your problem is due to your use/environment and that it is solved? |
HacKurx wrote:
If you or @minipli feel like, you can close all my reports as solved, I won't object. But, if by my problem you mean this issue #20 , the 5 months old palemoon build of mine:
is not something that can be the cause of it, I think. That's homebrew Pale Moon I built, hopelessly old, for lack of time to update it. But I don't see that it crashes the system though. [1] But don't these issues indicate the possibility of something sinister --outside of the programming errors, instead above them in a way, or on the sides such as the now somewhat known out-of-band methods that Google the world's top commercial spy agency first introduced, or the ME/PSP of Intel and AMD respectively (the latter is my system's), being it that no one else has had any of them? I bet there are people who could tell what these crashes really are, how they were instigated, but those won't speak from their shadows. But those are my suspicions only. Speaking of which, I think I'll update this page of mine with the few links there are currently missing there: And the above I don't think is unrelated. What I am sad about it that unsolved (well these are actually unsolved, but feel free to close them) bugs damage the perception of grsecunoff, which I continue to put my hopes in, given that spender and PaX Team left following the ripoff by Google, as spender wrote, grsecunoff. I don't see any other complete solution for Linux security. And... And I still think the management of these crashes in these issues #13, #17, #18, #19, #20, #21 --or in most of them-- are sooner protection by grsecunoff of my system, than grsecunoff being at fault. But it would take so much more than my insufficient knowledge to prove that... |
The instruction pointer in the initial kernel log looks odd -- it's 0xffffc9000c6ffb80 which is 16 bytes above the current stack pointer. This would imply there was some kind of Do you have CONFIG_PAX_RAP enabled? And, if so, what's the version of your gcc and binutils? To answer those questions you could do the following:
The dis-func.sh script can be found here. It's just a wrapper around objdump and a perl oneliner. |
Well, the all-modules-any-system kernel that I will soon upload for anybody wishing to try and reproduce any of my issues, c'mon try somebody, I congratulate anybody who can (well maybe only the mencoder Call Trace is doable to reproduce, but it too I suspect may still have been in some of the traces I presented here triggered from the network)... [that I will soon upload] to: https://www.croatiafidelis.hr/gnu/deb/linux-deb-grsec-current/ (I was saying) [the all-modules-any system]:
had no PAX_RAP option set. But the all-in-kernel-compiled, with only what my system needs, that of course I can't upload for others:
And:
but:
|
It's still at:
and the prompt is not returning:
(that's the only-my-hardware-no-separate-modules kernel) |
I waited for some 20 minutes on this one without command prompt having returned. Rebooted into vanilla kernel:
Now:
Such long work this script got to do, or something wrong?
|
Yeah, the script shouldn't take that long :/ Anyways, I assumed the panic was from a non-modular kernel, but now I'm not certain any more. You seem to change kernels frequently. Oh well, could you please try the following instead and post the output?:
|
Oh, well, the verbosity or lack of it, which is better, I sometimes ask myself...
No, I don't. I use only two sets of kernels, one is no-modules-loading my own hardware only, for my regular use, and the other is what I offer to others, which has all the modules as any general-purpose kernel, compiled separately, and I offer them at https://www.croatiafidelis.hr/gnu/deb/linux-deb-grsec-current/ and have dedicated topics at:
Sure! |
Wow! That's 360k ... I think I'd better upload it. Temporarily (but no rush to remove it), but that takes me longer than posting here, because I'll upload the:
that I compiled yesterday, in the same session, [temporarily] I'll post it in:
Give me a little time now to do it... (and I hope crashes won't make it longer and worse...) |
The objdump looks good. However, I probably need the following files, too -- depending on which one you're using:
Have you been able to reproduce the panic with .72? |
Will do it. A little time I need.
Hey, it's not in the world typical, what happens here, for programming errors, such as would be the case if your patch contained programming errors. It just wouldn't be this erratic, or at least it is not typical for programs with errors to so often and so much be so very erratic... Namely I occasionally have no Call Traces whatsoever for even approx. 4-5 days (didn't count), and then I can't stop having them... But that was earlier, as I posted about it (or gave links, in the verbose reports of mine in the past weeks). It hasn't repeated such absolutely worse kind of condition lately... I'm not saying it won't, but that it, likely, depends on the attacker, in my theory at least. I have had one rsyslog-recorded trace with 4.9.70 on Dec 27, and two or three not-recorded in the syslog on Dec 29, but none so far with 4.9.72 all-modules-any-system that I uploaded for the world, nor with 4.9.72 no-modules-loading only-my-hardware that I'm running now. I can post the 4.9.70 trace and explain when at least one of the not recorded crashes happened, but in a few hours. And I'll take care to post it in the proper old or new that it should be, issue, as best I will know. |
Uploaded: |
The text was updated successfully, but these errors were encountered: