Skip to contentSkip to conversation

netlabel: Fix NULL pointer exception caused by CALIPSO on IPv4 sockets

PATCH Superseded [email protected] 2 participants 2 messages Mar 27, 2025 – Mar 28, 2025

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netlabel: Fix NULL pointer exception caused by CALIPSO on IPv4 sockets

Quoted 3 lines · On Thu, Mar 27, 2025 at 3:38 AM Paul Moore [email protected] wrote:

For all three function, I'd probably add a single blank line between the local variable declarations and the code below for the sake of readability. I'd probably also drop the comment as the code seems reasonably obvious (inet6_sk() can return NULL, we can't do anything with a NULL ptr so bail), but neither are reasons for not applying this patch, if anything they can be fixed up during the merge assuming the patch author agrees.

Anyway, this looks good to me, Jakub and/or other netdev folks, we should get this marked for stable and sent up to Linus, do you want to do that or should I?

Thank you for your acknowledgment and suggestions! Your insights have been very helpful to us.

We fully agree with your suggestions regarding code formatting and comment adjustments. Since you are more familiar with the code, we would appreciate it if you could help handle these modifications and complete the merge. If you are willing to do so, we would be very grateful!

Previously, the email failed to be delivered to [email protected] and [email protected] due to formatting issues. We sincerely apologize for any inconvenience this may have caused.

Thank you again for your guidance and support. We are delighted to learn from you!

Thanks again.
Debin Zhu & Bitao Ouyang

#1 lore raw
Quoted 11 lines · On Wed, Mar 26, 2025 at 11:05 PM [email protected] <[email protected]> wrote:
Quoted 3 lines · On Thu, Mar 27, 2025 at 3:38 AM Paul Moore [email protected] wrote:

For all three function, I'd probably add a single blank line between the local variable declarations and the code below for the sake of readability. I'd probably also drop the comment as the code seems reasonably obvious (inet6_sk() can return NULL, we can't do anything with a NULL ptr so bail), but neither are reasons for not applying this patch, if anything they can be fixed up during the merge assuming the patch author agrees.

Anyway, this looks good to me, Jakub and/or other netdev folks, we should get this marked for stable and sent up to Linus, do you want to do that or should I?

Thank you for your acknowledgment and suggestions! Your insights have been very helpful to us.

We fully agree with your suggestions regarding code formatting and comment adjustments. Since you are more familiar with the code, we would appreciate it if you could help handle these modifications and complete the merge. If you are willing to do so, we would be very grateful!

Previously, the email failed to be delivered to [email protected] and [email protected] due to formatting issues. We sincerely apologize for any inconvenience this may have caused.

Most (all?) of the Linux kernel mailing lists have requirements around only sending plaintext email, no HTML, no MIME, etc.; I believe that was the issue with some of your email to the lists.

The Linux kernel documentation does have some guidance on configuring popular email clients as well as submitting patches, you can browse the documentation online (relevant links below).

https://docs.kernel.org/process/submitting-patches.html
https://docs.kernel.org/process/email-clients.html

Quoted 1 line

Thank you again for your guidance and support. We are delighted to learn from you!

Thanks for the problem report and your help with finding and testing a solution :)

Signature · 1 line
paul-moore.com