This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# builder gcc | |
https://github.com/a13xp0p0v/kernel-build-containers | |
# enable debug kconfig | |
Kernel hacking -> Generic Kernel Debugging Instruments -> KGDB: kernel debugger | |
Kernel hacking -> Compile-time checks and compiler options -> Compile the kernel with debug info | |
scripts/config --enable DEBUG_INFO | |
scripts/config --enable DEBUG_KERNEL | |
scripts/config --disable CC_OPTIMIZE_FOR_SIZE | |
scripts/config --enable GDB_SCRIPTS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size=0 to size=0x38 | |
[task:0xffff88800536a780 exploit ] __kmalloc_node_noprof : 0xffff888005473440 (size: 0x40 name: kmalloc-64) | |
[task:0xffff88800536a780 exploit ] __kmalloc_node_noprof : 0xffff888005473d40 (size: 0x40 name: kmalloc-64) | |
[task:0xffff88800536a780 exploit ] __kmalloc_node_noprof : 0xffff8880054732c0 (size: 0x40 name: kmalloc-64) | |
[task:0xffff88800536a780 exploit ] __kmalloc_node_noprof : 0xffff888005473c40 (size: 0x40 name: kmalloc-64) | |
[task:0xffff88800536a780 exploit ] __kmalloc_node_noprof : 0xffff888005473580 (size: 0x40 name: kmalloc-64) | |
[task:0xffff88800536a780 exploit ] __kmalloc_node_noprof : 0xffff888005473680 (size: 0x40 name: kmalloc-64) | |
[task:0xffff88800536a780 exploit ] __kmalloc_node_noprof : 0xffff888005473c80 (size: 0x40 name: kmalloc-64) | |
[task:0xffff88800536a780 exploit ] __kmalloc_node_noprof : 0xffff888005473ec0 (size: 0x40 name: kmalloc- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <stdlib.h> | |
#include <sys/mman.h> | |
#include <unistd.h> | |
#include <sys/io.h> | |
#include <sys/types.h> | |
#include <inttypes.h> | |
#include "utils.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Aviel Warschawski <[email protected]> | |
# https://raw.githubusercontent.com/archlinuxcn/repo/e5e16b97748fa4b3ac4a070a1f4b3070bc651e9c/alarmcn/gdb-multiarch/PKGBUILD | |
pkgname=gdb-multiarch | |
_pkgname=${pkgname%-multiarch} | |
pkgver=15.1 | |
pkgrel=1 | |
pkgdesc="The GNU Debugger for all gdb supported architectures (i386/arm/mips...)" | |
arch=("i686" "x86_64" "aarch64") | |
url="http://www.gnu.org/software/${_pkgname}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
CoderByte: Array Challenge | |
Have the function ArrayChallenge(arr) take the array of numbers stored in arr which will contain integers that represent the amount in dollars that a single stock is worth, and return the maximum profit that could have been made by buying stock on day x and selling stock on day y where y > x. For example: if arr is [44, 30, 24, 32, 35, 30, 40, 38, 15] then your program should return 16 because at index 2 the stock was worth $24 and at index 6 the stock was then worth $40, so if you bought the stock at 24 and sold it at 40, you would have made a profit of $16, which is the maximum profit that could have been made with this list of stock prices. | |
If there is not profit that could have been made with the stock prices, then your program should return -1. For example: arr is [10, 9, 8, 2] then your program should return -1. | |
Examples | |
Input: [10,12,4,5,9] | |
Output: 5 | |
Input: [14,20,4,12,5,11] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install Dependencies | |
sudo pacman -S git svn gd lib32-gcc-libs patch make bison fakeroot | |
# Checkout glibc source | |
svn checkout --depth=empty svn://svn.archlinux.org/packages | |
cd packages | |
svn update glibc | |
cd glibc/repos/core-x86_64 |