Re: [PATCH net] net/tls: prevent bad memory access in tls_is_sk_tx_device_offloaded()

2019-04-10 Thread David Miller
From: Jakub Kicinski Date: Mon, 8 Apr 2019 17:59:50 -0700 > Unlike '&&' operator, the '&' does not have short-circuit > evaluation semantics. IOW both sides of the operator always > get evaluated. Fix the wrong operator in > tls_is_sk_tx_device_offloaded(), which would lead to > out-of-bounds

[PATCH net] net/tls: prevent bad memory access in tls_is_sk_tx_device_offloaded()

2019-04-08 Thread Jakub Kicinski
Unlike '&&' operator, the '&' does not have short-circuit evaluation semantics. IOW both sides of the operator always get evaluated. Fix the wrong operator in tls_is_sk_tx_device_offloaded(), which would lead to out-of-bounds access for for non-full sockets. Fixes: 4799ac81e52a ("tls: Add rx inl