SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > Silent Hunter 4: Wolves of the Pacific
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-14-11, 10:23 AM   #1
WernherVonTrapp
Sea Lord
 
Join Date: Jul 2009
Location: Now, alot farther from NYC.
Posts: 1,896
Downloads: 105
Uploads: 0
Default

Don't take it personal WH4K. My post wasn't directed toward you. It was a matter of fact statement based on 1 single hour of web research. It's not at all Chicken-Littleish. It's common sense. I mentioned that during my research, I found many forum members (on many forums) that claimed they experienced no problems with the patch. On the other hand, they claim that they haven't noticed any improvements or enhancements to their Windows system either. You have just reinforced this with your own claim.
From what I've read, and I'm not an expert mind you, you cannot allow a 32 bit program to use 4GB of memory (on a 32 or 64 bit system), without altering the Windows Kernel. It's not possible, from what I dug up. Any time you mess with the Windows Kernel, you potentially open up your system to an exploit or hack. Hacks occur every day without the PC users ever knowing that it took place. That's one of the reasons why it's called hacking.
I don't see why, if you do some research yourself, you wouldn't find the same things I did on-line. It wasn't an attack on you WH4K and I'm sorry if I came across that way since I sincerely had no intention of it appearing that way.
Here, I'm not an expert and I don't do programming but, on the same website where you got your 4GB patch from, there is some explanantion involving 32 & 64 bit apps and RAM utilization. Now, from what I can decipher, he mentions "call tos" or other references that sound like he's using or fooling the Windows Kernel. That, in essence, is an alteration of the original Kernel. Maybe I'm misunderstanding this but check it out for yourself:
http://www.ntcore.com/files/vista_x64.htm

Mind you, I had checked other websites also, that contain content about getting 32 bit apps to use 4GB of memory.
__________________
"The journey of a thousand miles begins with a single step."
-Miyamoto Musashi
-------------------------------------------------------
"What is truth?"
-Pontius Pilate

Last edited by WernherVonTrapp; 03-14-11 at 10:41 AM.
WernherVonTrapp is offline   Reply With Quote
Old 03-14-11, 10:42 PM   #2
WH4K
Frogman
 
Join Date: Dec 2010
Posts: 291
Downloads: 56
Uploads: 0
Default

Quote:
Originally Posted by WernherVonTrapp View Post
...On the other hand, they claim that they haven't noticed any improvements or enhancements to their Windows system either. You have just reinforced this with your own claim.
Not so fast. I have had an improvement: After the NTCore patch, SH4 doesn't crash nearly as much as it once did. Hardly ever, in fact.

Quote:
Originally Posted by WernherVonTrapp View Post
From what I've read, and I'm not an expert mind you, you cannot allow a 32 bit program to use 4GB of memory (on a 32 or 64 bit system), without altering the Windows Kernel. It's not possible, from what I dug up.
That's not what the article you linked says.

Quote:
Originally Posted by WernherVonTrapp View Post
Any time you mess with the Windows Kernel, you potentially open up your system to an exploit or hack. Hacks occur every day without the PC users ever knowing that it took place. That's one of the reasons why it's called hacking.
Any time you step outside, you potentially open yourself up to having a grand piano land on your head.

That doesn't mean it's reasonable to worry about it, especially when the thing (changes to the Windows kernel) isn't even happening.

This line of thought is a dead end.

Quote:
Originally Posted by WernherVonTrapp View Post
... Now, from what I can decipher, he mentions "call tos" or other references that sound like he's using or fooling the Windows Kernel. That, in essence, is an alteration of the original Kernel. Maybe I'm misunderstanding this but check it out for yourself:
http://www.ntcore.com/files/vista_x64.htm
There is not a single use of the term "call to" in that article.

Using features of the system as intended is not "altering" the kernel. You apparently skipped the section on Patch Guard. Go back and read it, and perhaps you'll understand.

Another part you must have skipped, under the "Windows on Windows" heading:
Quote:
...32bit applications have a maximal 2GB space (4GB if explicitly required) and the rest of the space is handled by the system. This doesn't change much of course, since on x86 user mode applications had 2GB of virtual memory space out of 4GB (the other 2GB were reserved for kernel mode). On x64 these two other GB can now be accessed by 32bit applications. In order to achieve this, the IMAGE_FILE_LARGE_ADDRESS_AWARE flag has to be set in the File Header's Characteristics field. You can do this programmatically or manually with a normal PE editor like the CFF Explorer, just like this: (example truncated)
So we see it is entirely possible to let a 32-bit app access more than 2 GB RAM without "hacking" or in any way altering the Windows kernel. Even if it did try, Patch Guard would probably stop it.

I have seen no evidence that the NTCore 4GB patch does anything that could reasonably be regarded as harmful. The plural of anecdote is not "data."

Rather, the NTCore patch simply keeps SH4 from crashing where it once crashed constantly, regardless of whether SH4 uses more than 2 GB RAM. That is good enough for me.

No insult perceived or intended - I just think you are worrying needlessly, and perpetuating conclusions not supported by the facts.
__________________
Windows 10 Pro (x64)
WH4K is offline   Reply With Quote
Old 03-15-11, 04:53 AM   #3
WernherVonTrapp
Sea Lord
 
Join Date: Jul 2009
Location: Now, alot farther from NYC.
Posts: 1,896
Downloads: 105
Uploads: 0
Default

Quote:
Originally Posted by WH4K View Post
Not so fast. I have had an improvement: After the NTCore patch, SH4 doesn't crash nearly as much as it once did. Hardly ever, in fact.



That's not what the article you linked says.
I never said that particular article did. I was referring to other forums where other users of the 4GB patch, (as well as other similar apps), didn't notice, well, anything that would indicate they even installed a patch. Many said they never even bothered to check. I reiterate, it was not directed toward you. It was directed against installing patches w/o researching them first.



Quote:
Originally Posted by WH4K View Post
Any time you step outside, you potentially open yourself up to having a grand piano land on your head.

That doesn't mean it's reasonable to worry about it, especially when the thing (changes to the Windows kernel) isn't even happening.

This line of thought is a dead end.
Where did that comparison come from? Of course that line of thought is a dead end, falling pianos and PC patches are as far from each other as East from West.
Quote:
Originally Posted by WH4K View Post
There is not a single use of the term "call to" in that article.
No, the exact words "Call To" are not. Here is a paragraph from that page referencing those call functions:
And now, the most important things. Calling convention and stack. x64 assembly uses FASTCALLs as calling convention, meaning it uses registers to pass the first 4 parameters (and then the stack). Thus, the stack frame is made of: the stack parameters, the registers parameters, the return address (which I remind you is a qword) and the local variables. The first parameter is the rcx register, the second one rdx, the third r8 and the fourth r9. Saying that the parameters registers are part of the stack frame, makes it also clear that any function that calls another child function has to initialize the stack providing space for these four registers, even if the parameters passed to the child function are less than four. The initialization of the stack pointer is done only in the prologue of a function, it has to be large enough to hold all the arguments passed to child functions and it's always a duty of the caller to clean the stack. Now, the most important thing to understand how the space is provided in the stack frame is that the stack has to be 16-byte aligned. In fact, the return address has to be aligned to 16 bytes. So, the stack space will always be something like 16n + 8, where n depends on the number of parameters. Here's a small figure of a stack frame:

These are some of the "call to" functions that I was referring to. But what does that have to do with any of this? Your misunderstanding about what I was referring to, or how it was spelled is moot point. Look, I'm not going to get involved in a tit-for-tat over using a descriptive term that I never said was written in that exact way on that page. I said he mentions "call tos" and the "calls" in that paragraph are just that. Calling to another file, .dll, kernel or whatever.

Quote:
Originally Posted by WH4K View Post
Using features of the system as intended is not "altering" the kernel. You apparently skipped the section on Patch Guard. Go back and read it, and perhaps you'll understand.

Another part you must have skipped, under the "Windows on Windows" heading:
So we see it is entirely possible to let a 32-bit app access more than 2 GB RAM without "hacking" or in any way altering the Windows kernel. Even if it did try, Patch Guard would probably stop it.
I skipped a lot of parts because I didn't even reference his site in my original post. It wasn't humanly possible for me to remember verbatim all the information from all the sites I referenced. I'm not going to sit here and try to force it down your throat as far as whether his particular app alters (in any way) the windows Kernel. I was referring to other similar apps that do and just trying to give anyone the heads-up in making sure a patch to be installed doesn't do so in one way or another. I was under the impression, from one or more sites I visited, that getting Windows to use 4GB on a 32 bit app wasn't possible w/o altering the kernel in one way or another. Do you know for a fact that it doesn't? Then, that's fine. If you don't, I would make sure before using the patch, that's all I was saying.

Quote:
Originally Posted by WH4K View Post
I have seen no evidence that the NTCore 4GB patch does anything that could reasonably be regarded as harmful. The plural of anecdote is not "data."

Rather, the NTCore patch simply keeps SH4 from crashing where it once crashed constantly, regardless of whether SH4 uses more than 2 GB RAM. That is good enough for me.

No insult perceived or intended - I just think you are worrying needlessly, and perpetuating conclusions not supported by the facts.
I never said that the 4GB patch was harmful. I said that it "may" pose a risk for hacks or exploits if the Windows kernel is altered. May means (it might, it could). I said that one should make sure first because I saw some questionable references regarding other similar apps. So, now you have thoroughly researched it and that was all I was trying to say in the first place. And yes, I've always been a worrier by nature.
(chuckle) God, I hate debates.
__________________
"The journey of a thousand miles begins with a single step."
-Miyamoto Musashi
-------------------------------------------------------
"What is truth?"
-Pontius Pilate

Last edited by WernherVonTrapp; 03-15-11 at 05:09 AM.
WernherVonTrapp is offline   Reply With Quote
Old 03-15-11, 02:46 PM   #4
WH4K
Frogman
 
Join Date: Dec 2010
Posts: 291
Downloads: 56
Uploads: 0
Default

No problem. Certainly, you did get me to look deeper into the matter. We simply differ on the conclusions.
__________________
Windows 10 Pro (x64)
WH4K is offline   Reply With Quote
Old 03-15-11, 06:43 PM   #5
WernherVonTrapp
Sea Lord
 
Join Date: Jul 2009
Location: Now, alot farther from NYC.
Posts: 1,896
Downloads: 105
Uploads: 0
Default

The only reason I researched it in the first place is, after reading your first post regarding the patch I thought, if it could improve my own gaming experience, I might use the patch myself. So, I began researching it before installing it. What I found was that there were some serious questions that I couldn't find definitive answers for. Instead, I ended up with more questions than answers. I'm still not completely convinced that the patch doesn't alter (in some way, shape or form) the Windows Kernel. I concluded that I really don't need the patch and will not be installing it anytime soon. If answers to my questions become more easily available in the future, I might reconsider.
__________________
"The journey of a thousand miles begins with a single step."
-Miyamoto Musashi
-------------------------------------------------------
"What is truth?"
-Pontius Pilate
WernherVonTrapp is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.