aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2021-05-05 12:40:48 -0700
committerDavid S. Miller <[email protected]>2021-05-05 12:52:45 -0700
commit8621436671f3a4bba5db57482e1ee604708bf1eb (patch)
tree5a5dafac72732103c5eb548fc4a01242e40c70b3 /tools/perf/util/trace-event-scripting.c
parent2c16db6c92b0ee4aa61e88366df82169e83c3f7e (diff)
smc: disallow TCP_ULP in smc_setsockopt()
syzbot is able to setup kTLS on an SMC socket which coincidentally uses sk_user_data too. Later, kTLS treats it as psock so triggers a refcnt warning. The root cause is that smc_setsockopt() simply calls TCP setsockopt() which includes TCP_ULP. I do not think it makes sense to setup kTLS on top of SMC sockets, so we should just disallow this setup. It is hard to find a commit to blame, but we can apply this patch since the beginning of TCP_ULP. Reported-and-tested-by: [email protected] Fixes: 734942cc4ea6 ("tcp: ULP infrastructure") Cc: John Fastabend <[email protected]> Signed-off-by: Karsten Graul <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions