Commit 125f94d
committed
[NTOS:EX] Check whether the boot-time drivers are safe to use on MP systems (reactos#7744)
Invoke the MmVerifyImageIsOkForMpUse() helper. If the boot-time driver
only supports a uniprocessor system, bugcheck with UP_DRIVER_ON_MP_SYSTEM.
https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-0x92--up-driver-on-mp-system
Note that we don't do this check very soon at boot time (e.g. in
MiReloadBootLoadedDrivers or MiInitializeLoadedModuleList), but only
after loading the drivers' debug symbols (if any).
The reason is simply to ease debugging in case we bugcheck: this allows
having the debugger set up with the symbols for this driver.
For automatic and manual driver loading, MmVerifyImageIsOkForMpUse()
is invoked by MmCheckSystemImage() but in this case, there is graceful
failure and no bugcheck.1 parent 4750cbe commit 125f94d
3 files changed
+23
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
863 | 863 | | |
864 | 864 | | |
865 | 865 | | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
866 | 876 | | |
867 | 877 | | |
868 | 878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1649 | 1649 | | |
1650 | 1650 | | |
1651 | 1651 | | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
1652 | 1659 | | |
1653 | 1660 | | |
1654 | 1661 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2716 | 2716 | | |
2717 | 2717 | | |
2718 | 2718 | | |
| 2719 | + | |
2719 | 2720 | | |
2720 | 2721 | | |
2721 | 2722 | | |
2722 | 2723 | | |
2723 | 2724 | | |
2724 | | - | |
| 2725 | + | |
2725 | 2726 | | |
2726 | 2727 | | |
2727 | 2728 | | |
| |||
2731 | 2732 | | |
2732 | 2733 | | |
2733 | 2734 | | |
2734 | | - | |
2735 | | - | |
2736 | 2735 | | |
2737 | 2736 | | |
2738 | 2737 | | |
| |||
2741 | 2740 | | |
2742 | 2741 | | |
2743 | 2742 | | |
2744 | | - | |
2745 | | - | |
| 2743 | + | |
| 2744 | + | |
2746 | 2745 | | |
2747 | 2746 | | |
2748 | 2747 | | |
2749 | 2748 | | |
2750 | 2749 | | |
| 2750 | + | |
2751 | 2751 | | |
2752 | 2752 | | |
2753 | 2753 | | |
| |||
2847 | 2847 | | |
2848 | 2848 | | |
2849 | 2849 | | |
2850 | | - | |
| 2850 | + | |
2851 | 2851 | | |
2852 | 2852 | | |
2853 | 2853 | | |
| |||
0 commit comments