Questions tagged [usermode]

68 questions
1
vote
2 answers

WFP kernel mode to user mode communication response

I'm using the Windows Filter Platform to implement a simple firewall application. Actually my driver is a callout driver and it can intercept 2 kinds of event: FWPM_LAYER_ALE_AUTH_CONNECT_V4 and FWPM_LAYER_ALE_AUTH_LISTEN_V4. The driver can…
Masamune
  • 11
  • 4
1
vote
2 answers

first chance exception thrown from translatemessage() api of window's user32.dll in 64 bit

There is a exception thrown from TranslateMessage() API of user32.dll. When i tried to analyze the exception using !analyze -v in windbg command, i got the following information. Can anyone help me decode the error FAULTING_IP: +0 ffffffff`e85b6720…
1
vote
1 answer

Kernel mode and User mode Drivers

I am a beginner in driver development. I want to know where exactly a kernel mode driver and a user mode driver resides in the main memory (Portion of main memory). And how to specify a driver as kernel mode driver or user mode driver while creating…
Muhammad Irfan
  • 735
  • 1
  • 11
  • 17
1
vote
2 answers

SystemParametersInfo and ERROR_OPERATION_IN_PROGRESS

I'm coding this user-mode executable that can be run from a local service on a Windows platform in a context of logged in users. Its main purpose is to configure a desktop of all logged in users. It calls the following API to set up…
ahmd0
  • 16,633
  • 33
  • 137
  • 233
1
vote
2 answers

Simulating serial port programmatically without installing driver

com0com is a great program to have virtual serial ports. My question: is there any library which I can use for simulating serial ports (COM, USB and so on) programmatically in my application without install extra software for such virtual…
rnd_nr_gen
  • 2,203
  • 3
  • 36
  • 55
0
votes
0 answers

General protection fault when try to switch the processor to user mode

I am writing a simple os for x86-64. I made it to the long mode. Now I gotta get to the user mode cause I want my os to run user applications. So here's how my gdt looks like: GDTLM: .Null: equ $ - GDTLM dq 0 .Code: equ $ -…
MindW1n
  • 11
  • 4
0
votes
1 answer

why root user have more previlage than normal user?

I'm asking for Linux-based Operating systems but this question can also be generalized to any other Operating systems. Question : As we all know that many processes can't run as a normal user but they could only run as a root user. for example, the…
54Y4N
  • 19
  • 6
0
votes
1 answer

FreeRTOS MPU: privileged access to bss?

I am using FreeRTOS 10.5.1 with MPU support on a Cortex M4 microcontroller (STM32F4). I created some tasks (all privileged -> portPRIVILEGE_BIT set) and my system is running fine. Now I tested again with one task not having the portPRIVILEGE_BIT set…
mostrich
  • 1
  • 3
0
votes
0 answers

How can I send a UNICODE_STRING from a Windows driver to a usermode client?

My Windows driver use a PLOAD_IMAGE_NOTIFY_ROUTINE callback to get the image path for a specified process. I want to send this path (parameter FullImagePathName, which is a PUNICODE_STRING) to a usermode client, and display it. I think the first…
UVision
  • 11
  • 4
0
votes
1 answer

QEMU Reboots on sysret

I'm writing a small Kernel to learn more about Operating ystems. I recently decided to start implementing User Mode, just for fun. To achieve this, I followed this guide:…
0
votes
0 answers

WinDBG hits the breakpoint but doesn't step through (User-mode)

The breakpoint at the start of the function is hit and I can see that but after that it doesn't step through the function rather it just jumps instead of stepping through so I can verify all the variables
0
votes
1 answer

Why my cpu seems to lose the ability to decode

I meet this problem when finishing the lab of my OS course. We are trying to implement a kernel with the function of system call (platform: QEMU/i386). When testing the kernel, problem occurred that after kernel load user program to memory and…
0
votes
1 answer

Link Error when Compile c program without kernel32.lib

I'm want to Create App that just use ntdll and use security check for it. but when I remove kernel32.lib or uncheck "inherit from parent or project defaults" I get link errors when I build my project. Link Errors #include #include…
0
votes
2 answers

How to implement SVC handler on ARM926EJ-S?

I'm writing an amateur operating system for ARM-based devices and currently trying to make it working in QEMU's versatilepb (ARM926EJ-S). The problem arrives when I try to implement syscalls to my kernel. The idea is pretty simple: to implement…
Alexander Perechnev
  • 2,797
  • 3
  • 21
  • 35
0
votes
1 answer

Can WinDBG display information about an arbitrary heap address?

Does WinDBG provide a way of displaying type information (dt?) for a plain heap address? I am looking at a scenario where paged heap and user mode stack traces are not available. While analysing the heap I was tracking down excessive heap usage and…
Samuel
  • 6,126
  • 35
  • 70