Tony Jones
451830a94b
apparmor: Fix network performance issue in aa_label_sk_perm
...
[ Upstream commit 5f997580e8b12b9f585e34cc16304925d26ce49e ]
The netperf benchmark shows a 5.73% reduction in throughput for
small (64 byte) transfers by unconfined tasks.
DEFINE_AUDIT_SK() in aa_label_sk_perm() should not be performed
unconditionally, rather only when the label is confined.
netperf-tcp
56974a6fc ^ 56974a6fc
Min 64 563.48 ( 0.00%) 531.17 ( -5.73%)
Min 128 1056.92 ( 0.00%) 999.44 ( -5.44%)
Min 256 1945.95 ( 0.00%) 1867.97 ( -4.01%)
Min 1024 6761.40 ( 0.00%) 6364.23 ( -5.87%)
Min 2048 11110.53 ( 0.00%) 10606.20 ( -4.54%)
Min 3312 13692.67 ( 0.00%) 13158.41 ( -3.90%)
Min 4096 14926.29 ( 0.00%) 14457.46 ( -3.14%)
Min 8192 18399.34 ( 0.00%) 18091.65 ( -1.67%)
Min 16384 21384.13 ( 0.00%) 21158.05 ( -1.06%)
Hmean 64 564.96 ( 0.00%) 534.38 ( -5.41%)
Hmean 128 1064.42 ( 0.00%) 1010.12 ( -5.10%)
Hmean 256 1965.85 ( 0.00%) 1879.16 ( -4.41%)
Hmean 1024 6839.77 ( 0.00%) 6478.70 ( -5.28%)
Hmean 2048 11154.80 ( 0.00%) 10671.13 ( -4.34%)
Hmean 3312 13838.12 ( 0.00%) 13249.01 ( -4.26%)
Hmean 4096 15009.99 ( 0.00%) 14561.36 ( -2.99%)
Hmean 8192 18975.57 ( 0.00%) 18326.54 ( -3.42%)
Hmean 16384 21440.44 ( 0.00%) 21324.59 ( -0.54%)
Stddev 64 1.24 ( 0.00%) 2.85 (-130.64%)
Stddev 128 4.51 ( 0.00%) 6.53 ( -44.84%)
Stddev 256 11.67 ( 0.00%) 8.50 ( 27.16%)
Stddev 1024 48.33 ( 0.00%) 75.07 ( -55.34%)
Stddev 2048 54.82 ( 0.00%) 65.16 ( -18.86%)
Stddev 3312 153.57 ( 0.00%) 56.29 ( 63.35%)
Stddev 4096 100.25 ( 0.00%) 88.50 ( 11.72%)
Stddev 8192 358.13 ( 0.00%) 169.99 ( 52.54%)
Stddev 16384 43.99 ( 0.00%) 141.82 (-222.39%)
Signed-off-by: Tony Jones <tonyj@suse.de>
Fixes: 56974a6fcf ("apparmor: add base infastructure for socket
mediation")
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:49:54 +01:00
arch
ARM: dts: at91: nattis: make the SD-card slot work
2020-01-27 14:49:54 +01:00
block
block: fix an integer overflow in logical block size
2020-01-23 08:21:29 +01:00
certs
export.h: remove VMLINUX_SYMBOL() and VMLINUX_SYMBOL_STR()
2018-08-22 23:21:44 +09:00
crypto
crypto: user - fix memory leak in crypto_report
2019-12-13 08:52:48 +01:00
Documentation
iio: fix position relative kernel version
2020-01-27 14:49:54 +01:00
drivers
drm/virtio: fix bounds check in virtio_gpu_cmd_get_capset()
2020-01-27 14:49:54 +01:00
firmware
Fix built-in early-load Intel microcode alignment
2020-01-23 08:21:29 +01:00
fs
xfs: Sanity check flags of Q_XQUOTARM call
2020-01-27 14:49:51 +01:00
include
regulator: ab8500: Remove SYSCLKREQ from enum ab8505_regulator_id
2020-01-23 08:21:39 +01:00
init
fork: fix some -Wmissing-prototypes warnings
2019-12-05 09:21:04 +01:00
ipc
ipc/mqueue.c: only perform resource calculation if user valid
2019-08-06 19:06:52 +02:00
kernel
tick/sched: Annotate lockless access to last_jiffies_update
2020-01-23 08:21:37 +01:00
lib
idr: Fix idr_get_next_ul race with idr_remove
2019-12-17 20:36:02 +01:00
LICENSES
LICENSES: Remove CC-BY-SA-4.0 license text
2018-10-18 11:28:50 +02:00
mm
mm/huge_memory.c: thp: fix conflict of above-47bit hint address and PMD alignment
2020-01-23 08:21:32 +01:00
net
tipc: fix wrong timeout input for tipc_wait_for_cond()
2020-01-27 14:49:52 +01:00
samples
samples: bpf: fix syscall_tp due to unused syscall
2020-01-12 12:17:13 +01:00
scripts
kconfig: don't crash on NULL expressions in expr_eq()
2020-01-12 12:17:19 +01:00
security
apparmor: Fix network performance issue in aa_label_sk_perm
2020-01-27 14:49:54 +01:00
sound
ALSA: usb-audio: fix sync-ep altsetting sanity check
2020-01-23 08:21:29 +01:00
tools
perf map: No need to adjust the long name of modules
2020-01-27 14:49:53 +01:00
usr
kbuild: clean compressed initramfs image
2019-10-07 18:57:16 +02:00
virt
KVM: arm/arm64: vgic: Don't rely on the wrong pending table
2019-12-13 08:52:45 +01:00
.clang-format
clang-format: Set IndentWrappedFunctionNames false
2018-08-01 18:38:51 +02:00
.cocciconfig
scripts: add Linux .cocciconfig for coccinelle
2016-07-22 12:13:39 +02:00
.get_maintainer.ignore
Add hch to .get_maintainer.ignore
2015-08-21 14:30:10 -07:00
.gitattributes
.gitattributes: set git diff driver for C source code files
2016-10-07 18:46:30 -07:00
.gitignore
Kbuild updates for v4.17 (2nd)
2018-04-15 17:21:30 -07:00
.mailmap
libnvdimm-for-4.19_misc
2018-08-25 18:13:10 -07:00
COPYING
COPYING: use the new text with points to the license files
2018-03-23 12:41:45 -06:00
CREDITS
9p: remove Ron Minnich from MAINTAINERS
2018-08-17 16:20:26 -07:00
Kbuild
Kbuild updates for v4.15
2017-11-17 17:45:29 -08:00
Kconfig
kconfig: move the "Executable file formats" menu to fs/Kconfig.binfmt
2018-08-02 08:06:55 +09:00
MAINTAINERS
USB: rio500: Remove Rio 500 kernel driver
2019-10-17 13:44:47 -07:00
Makefile
Linux 4.19.98
2020-01-23 08:21:39 +01:00
README
Docs: Added a pointer to the formatted docs to README
2018-03-21 09:02:53 -06:00