Driver crash

Hello…
I have got a small doubt…
Will driver crash due to application errors??
TIA
regards
atma


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

If a driver crashes due to application errors then the driver has a problem
and is defective.

-----Original Message-----
From: Atmacharan [mailto:xxxxx@tataelxsi.co.in]
Sent: Thursday, October 25, 2001 9:57 AM
To: NT Developers Interest List
Subject: [ntdev] Driver crash

Hello…
I have got a small doubt…
Will driver crash due to application errors??
TIA
regards
atma

You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Yes, if it’s a badly-written driver. One of the goals of good driver writing
is to guard against failures caused by naive or malicious users.

Regards,
Art Baker
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Atmacharan
Sent: Thursday, October 25, 2001 9:57 AM
To: NT Developers Interest List
Subject: [ntdev] Driver crash

Hello…
I have got a small doubt…
Will driver crash due to application errors??
TIA
regards
atma

You are currently subscribed to ntdev as: xxxxx@nfr.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,
It may crash in the following cases.
* if the IOCTL is done with NEITHER_IO condition. and the virtual address is
accessed without locking it.
* If you have embedded pointer in a structure and passed to the driver
through any IO mechanism and if that pointer is accessed.

All these tell that accessing the user address space directly causes crash.

In other words the error is not in the application, but in the driver…i.e.
driver is not doing proper validation.

Regards,
Prasanna.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Atmacharan
Sent: Thursday, October 25, 2001 7:27 PM
To: NT Developers Interest List
Subject: [ntdev] Driver crash

Hello…
I have got a small doubt…
Will driver crash due to application errors??
TIA
regards
atma

You are currently subscribed to ntdev as: xxxxx@tataelxsi.co.in
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Some will say “No”, but I will say yes. Typically it’s an anomaly in a
driver that doesn’t happen unless an application turns left instead of
right. The support conversation then usually sounds like this:

“You did WHAT in your application!?!?!?”

Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@broadstor.com

-----Original Message-----
From: Atmacharan [mailto:xxxxx@tataelxsi.co.in]
Sent: Thursday, October 25, 2001 6:57 AM
To: NT Developers Interest List
Subject: [ntdev] Driver crash

Hello…
I have got a small doubt…
Will driver crash due to application errors??
TIA
regards
atma

You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Art,

However, there is a new specification, or interface, that can lead to a
system failing, with the root cause being the application on the REMOTE
machine. That spec is RDMA, or remote DMA. However, maybe it is how we (I??)
have implemented it.

I allocate a 64K buffer using a DMA common buffer call in the target
machine. This is fibre channel so the target is the slave if you will where
as the initiator will be the master. The initiator uses standard memory
allocation and lock down to acquire a buffer for transfer, basically
initiates a standard Fibre channel scatter/gather transfer. The DMA transfer
is handled by the fibre channel hardware on the target side without an
intervening call to the OS or application for a buffer, since the initiator
tells the target it is an RDMA transfer. If the initiator exceeds the buffer
size of the RDMA buffer, the target will fail. If the target is receiving
RDMA, memory beyond that 64k boundary is going to be clobbered. If it is
sending, it will eventually transfer data from memory that has not been set
up properly for DMA.

Right now my solution is to tell our customer to find the RDMA buffer size
of the target and don’t exceed it on the initiator. A registry value to
limit the size of the allocation and the size of an initiator transfer will
most likely be one answer, but even that does not “fix” it.

Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@broadstor.com

-----Original Message-----
From: Art Baker [mailto:xxxxx@nfr.com]
Sent: Thursday, October 25, 2001 7:33 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Driver crash

Yes, if it’s a badly-written driver. One of the goals of good driver writing
is to guard against failures caused by naive or malicious users.

Regards,
Art Baker
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Atmacharan
Sent: Thursday, October 25, 2001 9:57 AM
To: NT Developers Interest List
Subject: [ntdev] Driver crash
Hello…
I have got a small doubt…
Will driver crash due to application errors??
TIA
regards
atma

You are currently subscribed to ntdev as: xxxxx@nfr.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

If the driver is not buggy - the NO application intent can crash it.

----- Original Message -----
From: Atmacharan
To: NT Developers Interest List
Sent: Thursday, October 25, 2001 5:56 PM
Subject: [ntdev] Driver crash

Hello…
I have got a small doubt…
Will driver crash due to application errors??
TIA
regards
atma

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I disagree Max …

If the a driver is used outside the scope of it’s capabilities, then it is
quite possible that an application can be the root cause for a system crash.

Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@broadstor.com

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Thursday, October 25, 2001 9:16 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Driver crash

If the driver is not buggy - the NO application intent can crash it.

----- Original Message -----

From: Atmacharan mailto:xxxxx
To: NT Developers mailto:xxxxx Interest List
Sent: Thursday, October 25, 2001 5:56 PM
Subject: [ntdev] Driver crash

Hello…
I have got a small doubt…
Will driver crash due to application errors??
TIA
regards
atma

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
mailto:xxxxx
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
mailto:leave-ntdev-

You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</mailto:leave-ntdev-></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

Nevertheless, this means that the driver is buggy.
The OS kernel must be bulletproof, and drivers must not open holes in this.

Max

----- Original Message -----
From: Gary Little
To: NT Developers Interest List
Sent: Thursday, October 25, 2001 11:05 PM
Subject: [ntdev] Re: Driver crash

I disagree Max .

If the a driver is used outside the scope of it’s capabilities, then it is quite possible that an application can be the root cause for a system crash.

Gary G. Little

Staff Engineer

Broadband Storage, Inc.

xxxxx@broadstor.com

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Thursday, October 25, 2001 9:16 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Driver crash

If the driver is not buggy - the NO application intent can crash it.

----- Original Message -----

From: Atmacharan

To: NT Developers Interest List

Sent: Thursday, October 25, 2001 5:56 PM

Subject: [ntdev] Driver crash

Hello…

I have got a small doubt…

Will driver crash due to application errors??

TIA

regards

atma


You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com