Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


FAST_ERESOURCE_PRECONDITION_VIOLATION -> EX_FAST_RESOURCE_ENABLE_LEGACY_APIS

azysazys Member Posts: 2

Hi,

I got the following issue under verifier but I can not find anything related to EX_FAST_RESOURCE_ENABLE_LEGACY_APIS,
any idea? TIA

FAST_ERESOURCE_PRECONDITION_VIOLATION (1c6)
The current thread is performing an invalid call to a fast resource routine.
Arguments:
Arg1: 000000000000000f, The caller passed a fast resource to a legacy routine that
supports fast resources, but the fast resource was not
initialized with EX_FAST_RESOURCE_ENABLE_LEGACY_APIS.
Arg2: fffff807177c1c38, Pointer to the resource.
Arg3: 0000000000000000
Arg4: 0000000000000000


FAULTING_SOURCE_CODE:
426: KeEnterCriticalRegion();
427: ExAcquireResourceExclusiveLite(&Globals.Sessions.Lock, TRUE);


  428: context = ExAllocatePool(FILTER_NONPAGED_POOL, sizeof(*context));


429: if (!context)
430: {
431: status = STATUS_INSUFFICIENT_RESOURCES;
432: leave;

Comments

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 9,160

    Cool! That’s one I haven’t seen before.

    The Windows and WDK version you’re using, please?

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • azysazys Member Posts: 2

    @Peter_Viscarola_(OSR) said:
    Cool! That’s one I haven’t seen before.

    The Windows and WDK version you’re using, please?

    Peter

    We are using Windows Server 2019 Standard Version: 1809 Build: 17763.1457
    WDK 10.0.17134.0

    Thanks.

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 9,160

    So, not anything exotic, then. I expected to hear Win 11 and V.Next of the WDK.

    Hmmmmm...

    Peter Viscarola
    OSR
    @OSRDrivers

  • ChepuriChepuri Member Posts: 43

    I'm also hitting this issue randomly with verifier (standard settings) enabled.

    **WDK version: **10.0.14393.
    **Target System: ** Windows 10, 64-bit

    Here are the APIs used and code flow

    ExInitializeResourceLite(&eresrclock)

    KeEnterCriticalRegion();
    ExAcquireResourceExclusiveLite(&eresrclock, TRUE);

    ExReleaseResourceLite(&eresrclock);
    KeLeaveCriticalRegion();

    FAST_ERESOURCE_PRECONDITION_VIOLATION (1c6)
    The current thread is performing an invalid call to a fast resource routine.
    Arguments:
    Arg1: 000000000000000f, The caller passed a fast resource to a legacy routine that
    supports fast resources, but the fast resource was not
    initialized with EX_FAST_RESOURCE_ENABLE_LEGACY_APIS.
    Arg2: fffff8040710a230, Pointer to the resource.
    Arg3: 0000000000000000
    Arg4: 0000000000000000

    Could someone guide on this?

  • Dejan_MaksimovicDejan_Maksimovic Member - All Emails Posts: 636
    Can you post a full stack?
    Is it reproducible?
    It might be a memory corruption otherwise.
  • wc2023wc2023 Member Posts: 38

    @azys did you get to the bottom of this?

    I can't seem to find a lot of info on the FAST_ERESOURCE_PRECONDITION_VIOLATION and EX_FAST_RESOURCE_ENABLE_LEGACY_APIS. What is it referring to? Fast I/O, or what?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 13-17 May 2024 Live, Online
Developing Minifilters 1-5 Apr 2024 Live, Online
Internals & Software Drivers 11-15 Mar 2024 Live, Online
Writing WDF Drivers 20-24 May 2024 Live, Online