9 ms·
When your OS kernel handles scroll bars, you're doing something wrong. NT 3.5 had the GUI entirely outside the kernel. For compatibility with Windows 95, much
by Animats 12y ago
When your OS kernel handles scroll bars, you're doing something wrong.
NT 3.5 had the GUI entirely outside the kernel. For compatibility with Windows 95, much of the Windows 95 GUI code was moved into the kernel. 20 years later, that decision is still causing bugs.
- api 12y agoBackward compatibility is the root of quite a bit more evil than premature optimization.
- InclinedPlane 12y agoModern CPUs still implement the A20 gate functionality, for example.
- barrkel 12y agoBackward compatibility, OTOH, is key to a large fraction of upgrade revenue.
- wvenable 12y agoI thought the big reason for moving the GUI into the kernel was for performance rather than compatibility.
- CurtHagenlocher 12y agoThat is correct.
- 2510c39011c5 12y agoin terms of GUI, performance is responsiveness... and for a windows system, it needs to support a range of hardware configurations...Some could be really slow...
- Animats 12y agoThat was the official word from Microsoft at the time, but Mark Russinovich, who had Sysinternals.com at the time, benchmarked and said that pushing low-level graphics commands (draw line, fill, etc; stuff graphics cards do) across the kernel boundary wasn't a bottleneck. He was critical of those decisions. Microsoft eventually hired him to shut him up.
- jen729w 12y agoAnd because he was clearly a genius.
- Animats 12y agoThere's a story behind that buyout. Russinovich had a business called Winternals, and had written NTFSDOS [1], which allowed access to NT file systems under DOS.[2] Microsoft didn't like that, because it allowed booting from a floppy, bypassing NT's security restrictions, and resetting the administrator password, copying, or modifying files. (The concept that a computer could be secure when someone had enough physical access to boot a new OS seems silly now, but back then, the opposition was script kiddies, not intelligence agencies and organized crime.) So Microsoft bought Russinovich out. Wikipedia: "Winternals was acquired by Microsoft mid-2006. Microsoft has removed any traces of NTFSDOS..." [1] https://en.wikipedia.org/wiki/NTFSDOS https://en.wikipedia.org/wiki/NTFSDOS [2] https://web.archive.org/web/20000126093942/http://sysinternals.com/ntfspro.htm https://web.archive.org/web/20000126093942/http://sysinterna...
- asveikau 12y ago> Microsoft didn't like that, because it allowed booting from a floppy, bypassing NT's security restrictions, and resetting the administrator password, copying, or modifying files. This sounds nonsensical, like folk history. You can already create a boot disk to do this using all Microsoft tools: Assuming the volume is not BitLocker'd it's pretty simple to do all of this stuff with WinPE [1], including the version that shipped in 2006, or with a Windows setup DVD. Or you could simply move the drive to a machine where you are an admin. I am pretty sure they bought winternals because they wanted to hire MarkRuss. [1] http://en.wikipedia.org/wiki/Windows_Preinstallation_Environment http://en.wikipedia.org/wiki/Windows_Preinstallation_Environ...
- userbinator 12y agoWindows started out as being for a single-user personal computer, and such a use-case is going to emphasise different features than something more security-oriented for large multi-user systems. The NT family was widely known for being more sluggish and resource-consuming than 9x, even in regular usage - I dualbooted with 98SE and XP for a long time, and the difference in responsiveness was very noticeable. Also, it could be argued that vulnerabilities like these which are only locally exploitable are not all that scary, as a personal computer should be by definition one that obeys its user no matter what. It's a bug, but not a "someone can take over your computer without you doing anything". Maybe it's because I grew up with personal computers that practically invited you to do whatever you want with them and had absolutely no "protection" whatsoever (early 8-bit machines, then DOS on a PC) that I find it hard to get scared or excited by local-only exploits like these.
- nitrogen 12y agoLocal privilege exploits are problematic for corporate environments where not all users can be trusted 100%, and for the gullible less-technical users.
- comex 12y agoToday, with public hosting nearly universally offering VMs instead of traditional user accounts on a single operating system - never mind the whole Docker trend of giving every single piece of the application its own virtual OS install - are "large multi-user systems" even worth worrying about anymore? But this is basically orthogonal to the modern application of (OS-level) privilege boundaries, which is to protect the user from compromised application processes. This escalation doesn't let someone "take over your computer without you doing anything" by itself, but once someone has exploited an IE bug and found themselves able to run arbitrary code on users' computers in a sandbox - which happens all the time - that's exactly what it allows.
- mjevans 12y agoThe short answer is yes; such operating systems are required to run Docker, LXC and other approaches which all utilize similar tools. I'm not that familliar with Docker but looking at http://en.wikipedia.org/wiki/Docker_%28software%29 http://en.wikipedia.org/wiki/Docker_%28software%29 it is built on the same resource isolation features as LXC which I am using on two of my test systems. The resource isolation features are, in fact, built on top of a large multi-user system, which happens to have powerful security context support and abstractions built in. The contained applications operate, from a userspace perspective, as if they are their own system when in reality their kernel is actually the host kernel and their users really virtually re-mapped to distinct accounts within the host kernel.
- nbevans 12y agoAre you on crack? Windows does no such thing. It's called User32.dll for a reason. If what you say was true it would be called User32.sys i.e. a kernel driver. You're getting confused from the fact that graphics drivers and DirectX are primarily kernel mode components in Windows, which is done purely for performance reasons. It is not done for any backward compatibility reasons like you wildly claim. I would recommend that you read the NT Internals book by Mark Russinovich. Then you might actually show some respect to the NT kernel.
- na85 12y agoEver try showing some respect to your fellow HN users?
- 72deluxe 12y agoAnyone else noticed the rise of offensiveness here?
- spacemanmatt 12y agoGoes with the territory; the front door stays open here. But yeah, I've noticed. It ebbs and flows.
- asveikau 12y agoThis vulnerability seems to be in win32k.sys. The UI side of NT is something I know less about than other pieces, however, my understanding is that a lot of user32.dll in an NT-based system is simply trapping into win32k.sys. Similar to the fact that most stuff in ntdll is just a syscall stub. I respect the NT kernel but it has visible warts. I will give you that they are not always the same warts as what people complain about on HN.
- dang 12y ago> Are you on crack? Personal attacks are not allowed on Hacker News, regardless of whether someone else is wrong.
- logicallee 12y ago>When your OS kernel handles scroll bars, you're doing something wrong. it's pretty core to the idea of windows though. kind of like a printer - i wouldn't be surprised if a printer driver was in the kernel. or age of empires, which is a Microsoft property. just load it into the kernel in case you need it and you dont need much DRM, if people end up buying it it can get unlocked.
- goldenkey 12y agoA game residing in the kernel. Have you gone mad?!
- logicallee 12y agoI cannot imagine how anyone didn't get that I was making a joke. Originally I ended by saying that I'd draw the line at including all of creative suites (photoshop, illustrator, etc) would be too much, since it's a third party and Microsoft shouldn't be playing favorites with what's in the kernel like that. in essence i was agreeing that a microkernel is no place for a scroll bar!
- goldenkey 12y agoYour joke was a bit deadpan. But I'm laughing now ;-)
- logicallee 12y agosorry, i wasn't actually in a funny mood.
- est 12y agoMore than that, Vista (along with .NET) put http stack into kernel. It's called http.sys
- drzaiusapelord 12y agoThe kernel move was, reportedly, for performance reasons. I think if you use NT workstation at the time, you'd probably notice this compared 95/98. I believe MS also runs http in kernel space under http.sys. There's no backwards compatability there for legacy 8 or 16-bit apps as, you know, the web is younger than those apps and even then a browser would not need to interface with them. I think MS is eternally hamstrung by performance and legacy issues because those two things are in demand for so many of their customers. Windows fits this market, which is fairly sizeable. Of course now with hardware at the speed its at, you can get a lot more slack. I've found the linux desktop to be horribly slow until the past couple of years where there's a glut of CPU/GPU performance on even the most commodity equipment. I can run, and have run, Win7 on equipment that shipped with XP and its been a fairly pleasant experience. Running, say, a gnome or KDE WM on that equipment is a nightmare. MS, for all its faults, is fairly conservative in many regards, especially performance. At the end of the day this is yet another security issue that needs to be patched. The larger issue in my mind isn't MS decisions from 15 years ago, but why so much of our software infrastructure is being written in languages that more or less beg for stack/malloc vulnerabilities. These constant tirades about MS are just more "the beatings will continue until morale improves" and not really a constructive conversation about security. I think in the near future we'll be looking at all our stuff written in Rust-like languages and wonder why the hell it took so long to do. Lastly, Win10 is a technical preview. Finding bugs is exactly what should be going on here. Are we really being this critical on pre-release software? I don't see any other software held up to such a standard.
- CognitiveLens 12y ago> Lastly, Win10 is a technical preview. Finding bugs is exactly what should be going on here. FTA: "We have verified this exploit against all supported Windows desktop versions, including Windows 10 Technical Preview." The specific "Windows 10" aspect is click-bait; the exploit is for Windows
- floatboth 12y ago"we managed to create a reliable exploit for all versions of Windows – dating back as of Windows XP to Windows 10 preview"
- deleted 12y ago[deleted]
- outworlder 12y agoNot to mention that the scrollbar code is triggered by a LOT of window messages. If you wanted to draw scrollbars yourself, you'd have to eat a bunch of messages, not just WM_PAINT and the like. On my last count, you needed to swallow 11 different types of messages.
- yuhong 12y agoThey finally created a separate font server process in Win10.