Skip to contentSkip to conversation

Semaphore assembly-code bug

DISCUSSION Horst von Brand 2 participants 5 messages Nov 3, 2004 – Dec 18, 2004 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

linux-os <[email protected]> said:

[...]

Quoted 5 lines

Instead, we must listen to those who profess to know about this magic because of some innate enlightenment imparted to those favored few who are able to perceive the trueness of their intellectual perception without regard for contrary physical observations.

Right. Just go and tell that to somebody who actually designed one of the competing CPU's inards. And who probably learnt nothing whatsowever on the ones it was mimiking in the process.

Quoted 2 lines

It's wonderful to not be bothered by tests, measurements, documentation, or other facts.

How true.

Signature · 4 lines
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513
#2 lore raw

Re: Linux-2.6.9 won't allow a write to a NTFS file-system.

In reply to a message not in the archive

linux-os <[email protected]> said:

[...]

Quoted 7 lines

Huh? Are we talking about the same thing? I'm talking about the NTFS that Windows/NT and later versions puts on its file-systems. I use an USB external disk with my M$ Laptop and I have always been able to transfer data to/from my machines using that drive. Now I can't. The drive it writable under M$, but I can't even delete anything (no permission for root) under Linux.

Looks like you reformated from the original VFAT (== Win9x) to NTFS.

Signature · 4 lines
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513
#3 lore raw

Re: Linux-2.6.9 won't allow a write to a NTFS file-system.

Quoted 12 lines · Horst von Brand

linux-os <[email protected]> said:

[...]

Quoted 7 lines

Huh? Are we talking about the same thing? I'm talking about the NTFS that Windows/NT and later versions puts on its file-systems. I use an USB external disk with my M$ Laptop and I have always been able to transfer data to/from my machines using that drive. Now I can't. The drive it writable under M$, but I can't even delete anything (no permission for root) under Linux.

Quoted 7 lines

Looks like you reformated from the original VFAT (== Win9x) to NTFS.

Signature · 4 lines
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513

The plot thickens. My 2.4.x system had the ntfs.sys adapter module. I just re-partitioned and re-formatted the drive to FAT-32.

Cheers,
Dick Johnson
Penguin : Linux version 2.6.9 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by John Ashcroft.
98.36% of all statistics are fiction.

#4 lore raw

Re: What if?

In reply to a message not in the archive
Quoted 1 line · linux-os

On Sun, 5 Dec 2004, Horst von Brand wrote:

[...]

Quoted 9 lines
Quoted 3 lines

C++ is sufficiently not C that for such it is probably best to just redesign the systems. Well done it is probably more elegant than C, but to get there is a _lot_ of work.

There is another problem. The kernel requires a procedural language to communicate with hardware. Interface with hardware is all about the step-by-step methods necessary to make hardware run. C++ tries to isolate one from the actual methods involved. That's what it was designed for.

If you want isolation. The actual methods (I'm assuming function members) are written in procedural style if you want to.

Quoted 2 lines

One would need to use "extensions" just to get text to the screen. 'C' being an "smart" assembler, is nearly ideal for kernel development.

And C++ is supposed to be an OO extension to C, designed to give a (knowledgeable) programmer exactly the same low-level control as C when needed (knowlegdeable, tasteful programmer is requisite).

Signature · 4 lines
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513
#5 lore raw

Re: [Coverity] Untrusted user data in kernel

In reply to a message not in the archive
Quoted 1 line · linux-os

On Fri, 17 Dec 2004, Bill Davidsen wrote:

[...]

Quoted 5 lines
Quoted 3 lines

Are you saying that processes with capability don't make mistakes? This isn't a bug related to untrusted users doing privileged operations, it's a case of using unchecked user data.

But isn't there always the possibility of "unchecked user data"?

Yes. But it should be kept to a minimum.

Quoted 3 lines

I can, as root, do cp /dev/zero /dev/mem and have the most spectacular crask you've evet seen. I can even make my file- systems unrecoverable.

Right. And you can get rid of /dev/mem if you don't want to screw yourself this way (which is well-known). The problem at hand is _not_ in this same league.

Signature · 4 lines
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513