Archive for the ‘Linux’ Category
my experience with kernel lockdown and eBFP
I’m running Ubuntu Linux on Dell Latitude 7390 and was extremely baffled when suddenly I couldn’t run any of eBPF tools. Even running as root I received this: Error creating map: ‘@curfreq’: Operation not permitted Error creating map: ‘@process_mhz’: Operation not permitted Error creating map: ‘@system_mhz’: Operation not permitted Error creating printf map: Operation not […]
My trivial Linux kernel module in Rust
Couple of weeks ago had a chance to participate in a small gig at work that offered a chance to try Rust as a language for wringing Linux kernel module. It was a steep learning experience which made it super fun. Huge shout out to folks behind linux-kernel-module-rust framework without whom nothing would be possible. […]
In: Linux, Programming
python-bpfcc on Ubuntu 19.10 misses PerfEventArray due to an outdated bpfcc-tools
If you, like me, follow bcc Python Developer Tutorial, to sharpen bpf skills you might hit the same snag as I did when I was trying to implement a solution for lesson 8: Traceback (most recent call last): File “_ctypes/callbacks.c”, line 315, in ‘calling callback function’ File “/usr/lib/python2.7/dist-packages/bcc/table.py”, line 572, in raw_cb_ callback(cpu, data, size) […]
Where GREP came from – Brian Kernighan
In: Apple, FreeBSD, HP-UX, Linux, Solaris
Yandex internal CTF 2017
This year CTF at Yandex brought not only the excitement and sleepless nights but a bunch of awesome swag.
In: Life, Linux, Security
No video during the flight
Don’t know what version of Linux they were running but looks like one of the following code paths triggered the issue: static int pca953x_read_regs(struct pca953x_chip *chip, int reg, u8 *val) { int ret; ret = chip->read_regs(chip, reg, val); if (ret < 0) { dev_err(&chip->client->dev, “failed reading register\n”); return ret; } return 0; } static int […]
Watch “Monitorama 2016: All of Your Networking Monitoring is (probably) wrong” talk
Just came across this talk being mentioned in the comments on Hacker news and, boy, it’s absolutely amazing! Watch this hilarious talk here – Monitorama 2016: All of Your Networking Monitoring is (probably) wrong Btw, the talk is presented, presumably, by the same guy who wrote Monitoring and Tuning the Linux Networking Stack: Receiving Data […]
TIL gethostbyname*() and gethostbyaddr*() functions are obsolete
It wasn’t obvious to me until I tried to run netcat utility (aka nc) on Ubuntu 10.04 (lucid) release to check Zookeeper’s status: echo “stat” | nc zookeer_server_name 2181 zookeer_server_name: forward host lookup failed: No address associated with name It wouldn’t have been a problem had Zookeeper server used IPv4 address but it was configured […]
jbd2 is munching your disks? Use ftrace to find why.
Have you ever been wondering why jbd2 (or jbd if your are still using ext3) is sitting at the top of iotop and consuming the most of IO bandwidth? Well, it’s certainly not because it’s doing that just to drive you nuts but there is a reason. And the reason is most probably there is […]
Have stalled snmpd in recvfrom()? Check Recv-Q
Not so while ago I had an issue with a monitoring system that paged about SNMP checks failing on a number of servers. Quick checking here and there (logs, strace, tcpdump, etc.) revealed that snmpd had stalled in recvfrom() without sending a single packet out in response to the constant queries from our monitoring system. […]