* TCP_ULP option is not working for tls
@ 2023-05-04 16:19 Kernel.org Bugbot
2023-05-04 16:19 ` Kernel.org Bugbot
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Kernel.org Bugbot @ 2023-05-04 16:19 UTC (permalink / raw)
To: bugs, netdev, john.fastabend, kuba, borisp
sumit.200744 writes via Kernel.org Bugzilla:
TCP socket was created as below
int sfd = socket(AF_INET,SOCK_STREAM,0).
socket connection was established between server and client using accept and connect calls.
To enable TCP_ULP, setsockopt was used as below
Client:
setsockopt(sfd, IPPROTO_TCP, TCP_ULP, "tls", sizeof("tls"));
Server:
setsockopt(nsfd, IPPROTO_TCP, TCP_ULP, "tls", sizeof("tls"));
but setsockopt is returning -1 with error ENOENT - "No such file or directory". Is anything missing for above usage ?
Which kernel version has TLS option enabled which is mentioned in https://www.kernel.org/doc/html/latest/networking/tls.html#kernel-tls ?
View: https://bugzilla.kernel.org/show_bug.cgi?id=217401#c0
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: TCP_ULP option is not working for tls
2023-05-04 16:19 TCP_ULP option is not working for tls Kernel.org Bugbot
@ 2023-05-04 16:19 ` Kernel.org Bugbot
2023-05-04 16:51 ` Jakub Kicinski
2023-05-04 16:19 ` Kernel.org Bugbot
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Kernel.org Bugbot @ 2023-05-04 16:19 UTC (permalink / raw)
To: bugs, netdev, john.fastabend, kuba, borisp
sumit.200744 writes via Kernel.org Bugzilla:
I tried it on 5.15.78 where I'm getting the above failure - "No such file or directory for setsockopt.
Not sure on which linux kernel this TLS option is introduced.
View: https://bugzilla.kernel.org/show_bug.cgi?id=217401#c2
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: TCP_ULP option is not working for tls
2023-05-04 16:19 ` Kernel.org Bugbot
@ 2023-05-04 16:51 ` Jakub Kicinski
0 siblings, 0 replies; 6+ messages in thread
From: Jakub Kicinski @ 2023-05-04 16:51 UTC (permalink / raw)
To: Kernel.org Bugbot; +Cc: bugs, netdev, john.fastabend, borisp
On Thu, 4 May 2023 16:19:29 +0000 (UTC) Kernel.org Bugbot wrote:
> I tried it on 5.15.78 where I'm getting the above failure - "No such
> file or directory for setsockopt. Not sure on which linux kernel this
> TLS option is introduced.
Can you show the output of:
modprobe tls
cat /proc/sys/net/ipv4/tcp_available_ulp
grep CONFIG_TLS /boot/config-*
?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TCP_ULP option is not working for tls
2023-05-04 16:19 TCP_ULP option is not working for tls Kernel.org Bugbot
2023-05-04 16:19 ` Kernel.org Bugbot
@ 2023-05-04 16:19 ` Kernel.org Bugbot
2023-05-05 7:09 ` Kernel.org Bugbot
2023-05-05 19:43 ` Kernel.org Bugbot
3 siblings, 0 replies; 6+ messages in thread
From: Kernel.org Bugbot @ 2023-05-04 16:19 UTC (permalink / raw)
To: bugs, netdev, john.fastabend, kuba, borisp
mricon writes via Kernel.org Bugzilla:
What kernel version is this?
View: https://bugzilla.kernel.org/show_bug.cgi?id=217401#c1
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TCP_ULP option is not working for tls
2023-05-04 16:19 TCP_ULP option is not working for tls Kernel.org Bugbot
2023-05-04 16:19 ` Kernel.org Bugbot
2023-05-04 16:19 ` Kernel.org Bugbot
@ 2023-05-05 7:09 ` Kernel.org Bugbot
2023-05-05 19:43 ` Kernel.org Bugbot
3 siblings, 0 replies; 6+ messages in thread
From: Kernel.org Bugbot @ 2023-05-05 7:09 UTC (permalink / raw)
To: bugs, john.fastabend, kuba, borisp, netdev
sumit.200744 writes via Kernel.org Bugzilla:
Trying it on android platform. Seems TLS is not enabled in kernel
# modprobe tls
modprobe: No module configuration directories given.
# insmod tls
insmod: tls: No such file or directory
# cat /proc/sys/net/ipv4/tcp_available_ulp
# grep CONFIG_TLS /boot/config-*
grep: /boot/config-*: No such file or directory
View: https://bugzilla.kernel.org/show_bug.cgi?id=217401#c4
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TCP_ULP option is not working for tls
2023-05-04 16:19 TCP_ULP option is not working for tls Kernel.org Bugbot
` (2 preceding siblings ...)
2023-05-05 7:09 ` Kernel.org Bugbot
@ 2023-05-05 19:43 ` Kernel.org Bugbot
3 siblings, 0 replies; 6+ messages in thread
From: Kernel.org Bugbot @ 2023-05-05 19:43 UTC (permalink / raw)
To: borisp, john.fastabend, kuba, bugs, netdev
kubakici writes via Kernel.org Bugzilla:
Sounds like it. I'm not familiar with the Android kernel but the tls code either needs to be loaded as a module or compiled in, and since /proc/sys/net/ipv4/tcp_available_ulp is empty - neither seems to be the case on your system.
View: https://bugzilla.kernel.org/show_bug.cgi?id=217401#c5
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-05-05 19:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-04 16:19 TCP_ULP option is not working for tls Kernel.org Bugbot
2023-05-04 16:19 ` Kernel.org Bugbot
2023-05-04 16:51 ` Jakub Kicinski
2023-05-04 16:19 ` Kernel.org Bugbot
2023-05-05 7:09 ` Kernel.org Bugbot
2023-05-05 19:43 ` Kernel.org Bugbot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).