Re: Kernel TLS

2019-11-29 Thread Valdis Klētnieks
On Fri, 29 Nov 2019 23:37:35 -0500, Jeffrey Walton said: repl: bad addresses: Valentin VidiD -- no mailbox in address, only a phrase (Valentin VidiD) > On Fri, Nov 29, 2019 at 3:04 PM Jeffrey Walton wrote: > > ... > > So now I am at: > > > > $ gcc -Wall -g2 -O1 ktls.c -o ktls > >

Re: Kernel TLS

2019-11-29 Thread Alexander Mihalicyn
Hello, I think reason is here: https://github.com/torvalds/linux/blob/386403a115f95997c2715691226e11a7b5cffcfd/net/tls/tls_main.c#L725 You need to setsockopt() ULP ktls on CONNECTION socket. Regards, Alex On Sat, Nov 30, 2019 at 7:39 AM Jeffrey Walton wrote: > > On Fri, Nov 29, 2019 at 3:04

Re: Kernel TLS

2019-11-29 Thread Jeffrey Walton
On Fri, Nov 29, 2019 at 3:04 PM Jeffrey Walton wrote: > ... > So now I am at: > > $ gcc -Wall -g2 -O1 ktls.c -o ktls > $ ./ktls > setsockopt failed, 524, Unknown error 524 Now open in the Fedora bug tracker: https://bugzilla.redhat.com/show_bug.cgi?id=1778348

I2C bus driver TIMEDOUT because of PM autosuspend

2019-11-29 Thread Primoz Beltram
I am analysing a problem with I2C bus driver where the problem shows up as I2C bus completely blocked. The LX driver in question is /drivers/i2c/busses/i2c-xiic.c. Problem is difficult to reproduce, it happens very rarely. So far I saw that the main precondition is to have very heavy I2C

Re: Kernel TLS

2019-11-29 Thread Jeffrey Walton
On Fri, Nov 29, 2019 at 2:57 PM Jeffrey Walton wrote: > > On Fri, Nov 29, 2019 at 2:48 PM Valentin Vidić > wrote: > > > > On Fri, Nov 29, 2019 at 02:36:10PM -0500, Jeffrey Walton wrote: > > > I'm trying to run through the example at > > >

Re: Kernel TLS

2019-11-29 Thread Jeffrey Walton
On Fri, Nov 29, 2019 at 2:48 PM Valentin Vidić wrote: > > On Fri, Nov 29, 2019 at 02:36:10PM -0500, Jeffrey Walton wrote: > > I'm trying to run through the example at > > https://www.kernel.org/doc/html/latest/networking/tls.html#kernel-tls > > . > > > > I'm working on Fedora 31 x86_64 (fully

Re: Kernel TLS

2019-11-29 Thread Valentin Vidić
On Fri, Nov 29, 2019 at 02:36:10PM -0500, Jeffrey Walton wrote: > I'm trying to run through the example at > https://www.kernel.org/doc/html/latest/networking/tls.html#kernel-tls > . > > I'm working on Fedora 31 x86_64 (fully patched). Running my program results > in: > > $ ./ktls >

Re: Kernel TLS

2019-11-29 Thread Alexander Mihalicyn
Hello, I think you need to load "tls" kernel module first. Regards, Alex On Fri, Nov 29, 2019 at 11:37 AM Jeffrey Walton wrote: > > Hi Everyone, > > I'm trying to run through the example at > https://www.kernel.org/doc/html/latest/networking/tls.html#kernel-tls > . > > I'm working on Fedora 31

Kernel TLS

2019-11-29 Thread Jeffrey Walton
Hi Everyone, I'm trying to run through the example at https://www.kernel.org/doc/html/latest/networking/tls.html#kernel-tls . I'm working on Fedora 31 x86_64 (fully patched). Running my program results in: $ ./ktls setsockopt failed, 2, No such file or directory I observed: $ cat

Interrupt catched in kernel, but not handled

2019-11-29 Thread Ranran
Hello, I installed centos8 , and I use uio_pci_generic, in order to communicate with FPGA (Xilinx) through PCIe in userspace. The cpu is ATOM cpu. I first install the driver: echo "10ee 0007" > /sys/bus/pci/drivers/uio_pci_generic/new_id I use userspace application which wait for interrupt,