summaryrefslogtreecommitdiff
path: root/bpf.vim
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-10 14:27:33 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-10 14:27:33 +0100
commit664dcf4217c4fc08cc43c050419fea8181d81ef1 (patch)
tree3c32cb97cf513ce90cc8e0da561c94cf68090cb8 /bpf.vim
parent125b8ffe5a48f1daa65e54935ede55d843141f8f (diff)
netsniff-ng: nlmsg: Use correct pritnf format specifier for int
RTA_LEN is defined as an alias of RTA_PAYLOAD which is defined as: #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) Thus use the correct format specifier %d for int instead of %lu. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'bpf.vim')
0 files changed, 0 insertions, 0 deletions
ce in the kernel. This patch series addresses both of these issues. The queues are fixed by simply zeroing the memory before use. PIO errors from userspace will result in a SIGBUS being sent to the user process. The MEM errors form userspace will result in a SIGKILL and also cause the offending pages to be claimed so they are no longer used in future tasks. SIGKILL is used to ensure that the process does not try to coredump and result in an attempt to read the memory again from within kernel space. Although there is a HV call to scrub the memory (mem_scrub), there is no easy way to guarantee that the real memory address(es) are not used by other tasks. Clearing the error with mem_scrub would zero the memory and cause the other processes to proceed with bad data. The handling of other non-resumable errors remain unchanged and will cause a panic. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound')