Skip to content

Kernel API to get Physical RAM Offset

I’m writing a device driver (for Linux kernel 2.6.x) that interacts directly with physical RAM using physical addresses. For my device’s memory layout (according to the output of cat /proc/iomem), System RAM begins at physical address 0x80000000; however, this code may run on other devices with di…

Strange pointer position in the stack

I wrote this simple code: and I’ve disassembled it to see what the compiler does. Using objdump I obtain: I can understand everything except for the mov QWORD PTR [rbp-0x10],0x0, this correspond (I think)to p=NULL; but from mov QWORD PTR [rbp-0x8],rax I know that my pointer is on rbp-0x8 and it seems co…

Pcregrep include file extension bug

I’m using pcregrep to search for a multiline pattern, and I only want pcregrep to search through files with specific file extensions, i.e. pcregrep -Mrl –include=*.sv -e ‘<my_multi-line_pattern>’ /path/to/search However, this throws an error: pcregrep: Error in ‘include&#82…

Stop timesyncd from polling hard coded Debian timeservers

The systemd-timesyncd daemon repeatedly tries to contact the following hard coded (compiled) time servers if neither an NTP server is specified manually nor one received via DHCP: Since I’m operating behind a corporate proxy, it will never be successful to reach these servers. Is there a way to prevent …

ODBC Error Connecting Teradata

I have installed Teradata ODBC driver on Debian via alien. Dependencies checked via ldd and are fufiled.. But when attempting to connect to the DB I am getting following errors (with Debug) Any idea how to get rid of those errors? It seems to be a root cause of failing connections Architecture X64 OS Debian 7…

Using MySQL INTO OUTFILE not writing to tmp

I’ve recently moved a project to a live VM instance, it worked perfectly during development and testing on my macOS box using XAMPP. Essentially the web app has 3 export options: XML, PDF and CSV. XML works fine and is created using a SELECT statement then looping through the results and pushing that in…