I've tracked down a kernel bug and want to fix it right away in my own kernel. Basically a function is being called twice and it is resetting a pair of global variables, a pointer and a size, to NULL and 0 respectively.
It's the ipfw_init_obj_rewriter function in ip_fw_sockopt.c which is getting called a second time when I launch a vnet jail. This causes the ipfw list command to segfault as the kernel stops returning table names. It also causes a small memory leak and I don't know what other issues.
If those variables are initialized to NULL and 0 automatically then I can just remove the two lines initializing them later. They look like they are but I want to make sure.
This is in 11.0-RC2
It's the ipfw_init_obj_rewriter function in ip_fw_sockopt.c which is getting called a second time when I launch a vnet jail. This causes the ipfw list command to segfault as the kernel stops returning table names. It also causes a small memory leak and I don't know what other issues.
If those variables are initialized to NULL and 0 automatically then I can just remove the two lines initializing them later. They look like they are but I want to make sure.
This is in 11.0-RC2