Juhee Kang <claudiajkang@xxxxxxxxx> wrote: > Currently, when the rule related to IDLETIMER is added, idletimer_tg timer > structure is initialized by kmalloc on executing idletimer_tg_create > function. However, in this process timer->timer_type is not defined to > a specific value. Thus, timer->timer_type has garbage value and it occurs > kernel panic. So, this commit fixes the panic by initializing > timer->timer_type using kzalloc instead of kmalloc. > > Test commands: > # iptables -A OUTPUT -j IDLETIMER --timeout 1 --label test > $ cat /sys/class/xt_idletimer/timers/test > Killed Reviewed-by: Florian Westphal <fw@xxxxxxxxx>