linux/samples
Chang-Hsien Tsai f7c2d64bac samples, bpf: fix to change the buffer size for read()
If the trace for read is larger than 4096, the return
value sz will be 4096. This results in off-by-one error
on buf:

    static char buf[4096];
    ssize_t sz;

    sz = read(trace_fd, buf, sizeof(buf));
    if (sz > 0) {
        buf[sz] = 0;
        puts(buf);
    }

Signed-off-by: Chang-Hsien Tsai <luke.tw@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2019-05-21 16:36:48 +02:00
..
auxdisplay auxdisplay: Replace licenses with SPDX identifiers 2018-04-12 19:02:45 +02:00
binderfs samples: add binderfs sample program 2019-01-14 17:22:22 -07:00
bpf samples, bpf: fix to change the buffer size for read() 2019-05-21 16:36:48 +02:00
configfs configfs: make config_item_type const 2017-10-19 16:15:15 +02:00
connector kbuild: announce removal of SUBDIRS if used 2018-12-01 22:21:56 +09:00
hidraw HID: samples/hidraw: fix typo in printed message 2018-11-21 00:31:58 +01:00
hw_breakpoint
kdb
kfifo kfifo: clean up example to not use page_link 2017-07-12 16:26:01 -07:00
kobject samples/kobject: Replace foo_ktype's default_attrs field with groups 2019-04-25 22:06:10 +02:00
kprobes arch: remove tile port 2018-03-16 10:56:03 +01:00
livepatch Merge branch 'for-5.0/upstream-fixes' into for-linus 2019-03-05 15:55:59 +01:00
mei samples: mei: use /dev/mei0 instead of /dev/mei 2019-01-30 15:24:45 +01:00
mic/mpssd samples/mic/mpssd/mpssd.h: remove duplicate header 2019-03-07 18:32:03 -08:00
pidfd samples: add .gitignore for pidfd-metadata 2019-05-10 11:50:52 +02:00
pktgen Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-11-04 09:26:51 +09:00
qmi samples: Introduce Qualcomm QMI sample client 2018-02-12 16:57:22 -08:00
rpmsg rpmsg: Allow callback to return errors 2016-09-08 22:15:25 -07:00
seccomp samples: guard sub-directories with CONFIG options 2019-05-18 11:29:01 +09:00
timers License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
trace_events Merge branch 'for-linus' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2017-11-15 10:14:11 -08:00
trace_printk tracing: Add trace_printk sample code 2016-06-20 09:54:21 -04:00
uhid kbuild: remove all dummy assignments to obj- 2017-11-18 11:46:06 +09:00
v4l media: v4l2-pci-skeleton.c: fix outdated irq code 2019-01-25 18:47:06 -02:00
vfio-mdev samples/vfio-mdev/mtty: expand minor range when registering chrdev region 2019-02-12 13:21:18 -07:00
vfs samples: guard sub-directories with CONFIG options 2019-05-18 11:29:01 +09:00
watchdog License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig Kbuild updates for v5.2 2019-05-08 12:25:12 -07:00
Makefile samples: guard sub-directories with CONFIG options 2019-05-18 11:29:01 +09:00