Re: compat ebtables broke in syzkaller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 4, 2018 at 9:04 PM, Florian Westphal <fw@xxxxxxxxx> wrote:
> Dmitry Vyukov <dvyukov@xxxxxxxxxx> wrote:
>> One question:
>>
>> > We will need to special-case compat_table_info() in ebtables.c to
>> > either not allocate the compat array for nentries == 0, or pretend
>> > it was 1.
>>
>> nentries == 0 is returned to us by EBT_SO_GET_INIT_INFO, and I think
>> there are actually 3 or 4 entries, and we do want to get all of them
>> (to restore them later). If EBT_SO_GET_INIT_ENTRIES will give us no
>> entries (or 1 entry), then we won't be able to restore them later. Am
>> I missing something?
>
> nentries are the user-defined entries, and there are none in the initial
> (empty) table, so this should be fine.

ah, ok, then we are good
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux