Revision 7e699d2a4e8104d304e921ac5e0a0c73f0f7b623 authored by Arseniy Krasnov on 14 March 2023, 11:09:27 UTC, committed by David S. Miller on 16 March 2023, 17:28:23 UTC
This adds SOCK_STREAM and SOCK_SEQPACKET tests for invalid buffer case. It tries to read data to NULL buffer (data already presents in socket's queue), then uses valid buffer. For SOCK_STREAM second read must return data, because skbuff is not dropped, but for SOCK_SEQPACKET skbuff will be dropped by kernel, and 'recv()' will return EAGAIN. Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8daaf39
File | Mode | Size |
---|---|---|
partitions | ||
Kconfig | -rw-r--r-- | 6.9 KB |
Kconfig.iosched | -rw-r--r-- | 1.4 KB |
Makefile | -rw-r--r-- | 1.8 KB |
badblocks.c | -rw-r--r-- | 14.1 KB |
bdev.c | -rw-r--r-- | 25.4 KB |
bfq-cgroup.c | -rw-r--r-- | 40.2 KB |
bfq-iosched.c | -rw-r--r-- | 264.2 KB |
bfq-iosched.h | -rw-r--r-- | 40.5 KB |
bfq-wf2q.c | -rw-r--r-- | 52.4 KB |
bio-integrity.c | -rw-r--r-- | 12.3 KB |
bio.c | -rw-r--r-- | 48.8 KB |
blk-cgroup-fc-appid.c | -rw-r--r-- | 1.4 KB |
blk-cgroup-rwstat.c | -rw-r--r-- | 3.4 KB |
blk-cgroup-rwstat.h | -rw-r--r-- | 3.9 KB |
blk-cgroup.c | -rw-r--r-- | 54.7 KB |
blk-cgroup.h | -rw-r--r-- | 15.5 KB |
blk-core.c | -rw-r--r-- | 33.3 KB |
blk-crypto-fallback.c | -rw-r--r-- | 18.7 KB |
blk-crypto-internal.h | -rw-r--r-- | 6.1 KB |
blk-crypto-profile.c | -rw-r--r-- | 16.4 KB |
blk-crypto-sysfs.c | -rw-r--r-- | 4.5 KB |
blk-crypto.c | -rw-r--r-- | 12.3 KB |
blk-flush.c | -rw-r--r-- | 15.5 KB |
blk-ia-ranges.c | -rw-r--r-- | 8.5 KB |
blk-integrity.c | -rw-r--r-- | 11.9 KB |
blk-ioc.c | -rw-r--r-- | 10.5 KB |
blk-iocost.c | -rw-r--r-- | 97.7 KB |
blk-iolatency.c | -rw-r--r-- | 29.1 KB |
blk-ioprio.c | -rw-r--r-- | 5.5 KB |
blk-ioprio.h | -rw-r--r-- | 540 bytes |
blk-lib.c | -rw-r--r-- | 9.0 KB |
blk-map.c | -rw-r--r-- | 18.0 KB |
blk-merge.c | -rw-r--r-- | 31.4 KB |
blk-mq-cpumap.c | -rw-r--r-- | 1.3 KB |
blk-mq-debugfs-zoned.c | -rw-r--r-- | 453 bytes |
blk-mq-debugfs.c | -rw-r--r-- | 21.6 KB |
blk-mq-debugfs.h | -rw-r--r-- | 2.4 KB |
blk-mq-pci.c | -rw-r--r-- | 1.3 KB |
blk-mq-rdma.c | -rw-r--r-- | 1.3 KB |
blk-mq-sched.c | -rw-r--r-- | 17.6 KB |
blk-mq-sched.h | -rw-r--r-- | 2.5 KB |
blk-mq-sysfs.c | -rw-r--r-- | 6.5 KB |
blk-mq-tag.c | -rw-r--r-- | 18.3 KB |
blk-mq-tag.h | -rw-r--r-- | 2.2 KB |
blk-mq-virtio.c | -rw-r--r-- | 1.3 KB |
blk-mq.c | -rw-r--r-- | 122.9 KB |
blk-mq.h | -rw-r--r-- | 11.2 KB |
blk-pm.c | -rw-r--r-- | 6.6 KB |
blk-pm.h | -rw-r--r-- | 763 bytes |
blk-rq-qos.c | -rw-r--r-- | 8.3 KB |
blk-rq-qos.h | -rw-r--r-- | 4.6 KB |
blk-settings.c | -rw-r--r-- | 30.4 KB |
blk-stat.c | -rw-r--r-- | 5.5 KB |
blk-stat.h | -rw-r--r-- | 4.8 KB |
blk-sysfs.c | -rw-r--r-- | 23.3 KB |
blk-throttle.c | -rw-r--r-- | 66.8 KB |
blk-throttle.h | -rw-r--r-- | 6.4 KB |
blk-timeout.c | -rw-r--r-- | 4.1 KB |
blk-wbt.c | -rw-r--r-- | 22.2 KB |
blk-wbt.h | -rw-r--r-- | 1.1 KB |
blk-zoned.c | -rw-r--r-- | 16.4 KB |
blk.h | -rw-r--r-- | 14.7 KB |
bounce.c | -rw-r--r-- | 6.8 KB |
bsg-lib.c | -rw-r--r-- | 9.8 KB |
bsg.c | -rw-r--r-- | 6.2 KB |
disk-events.c | -rw-r--r-- | 12.9 KB |
elevator.c | -rw-r--r-- | 18.4 KB |
elevator.h | -rw-r--r-- | 5.5 KB |
fops.c | -rw-r--r-- | 17.0 KB |
genhd.c | -rw-r--r-- | 38.1 KB |
holder.c | -rw-r--r-- | 3.8 KB |
ioctl.c | -rw-r--r-- | 16.4 KB |
ioprio.c | -rw-r--r-- | 5.8 KB |
kyber-iosched.c | -rw-r--r-- | 27.9 KB |
mq-deadline.c | -rw-r--r-- | 33.6 KB |
opal_proto.h | -rw-r--r-- | 9.5 KB |
sed-opal.c | -rw-r--r-- | 66.0 KB |
t10-pi.c | -rw-r--r-- | 12.5 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...