Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1643471
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Willem de Bruijn <willemdebruijn.kernel@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: linux-next: build failure after merge of the netfilter tree |
| Date | Wed, 17 May 2017 17:40:01 +0200 |
| Message-ID | <tI9dn-4QL-5@gated-at.bofh.it> (permalink) |
| References | <tHY8h-6fJ-5@gated-at.bofh.it> <tHZnH-7gf-1@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uZZoVEMsBjHcd/RV2E/W2TyDjHkngfiAE83NZAYLFAc=; b=IWWiIUo4lJ9wjFlsokoKa05D3HAQhGGKb/AszkLacVYIwbiFwWXqrooPsF9aayPjiN zN/8c6OhfVf4k9xDvhtdPBAAR2BlRsJjtBSxhRAkeJUNNDFytjC4RDlIsfTwQqBnqM10 +2FcEzDqngPbvA/OSaa+pSHC3le6MUJD4XXwsZeHGIhbWLonJQ4p+Wp0USfR28o0xaj+ wvPz9kqROsHx8D0gq1NBbKISQxAOQMRylDHfnE0aKLW0cPEZVxM/CcQsJ8sBD7YK0Ud2 oiRRjwGgXXBILqtura2o0oNkuLFRymBrKypN9dvvVPwhhfNgNEm51gI2lGAgzkzXfTIZ KHIg== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uZZoVEMsBjHcd/RV2E/W2TyDjHkngfiAE83NZAYLFAc=; b=GPQapD8CrwqebnYLLrTo4FlCfI2QNL8P0A2aHcKIunzx9S/FZrxCr+LpOLd606eCfM iOjrhPT16PNFw98jw/cGoguVZOjMammPOAZvQ4BuFA16NOp81Ub22S9IFCvLQa1g8IPf 8LZFCzhysmvgKBFQB9khyGyjX3o07ycEJWMQIyGb0V/JxtFs4Ee1iqRUFeQboRi4I2SI X/uDLKoYhlsCF/Gez9euRLvAetqo9T3fyHljI+IU7Ix2XpZaL7rUklTFLMWQk7dUkZ0Q CbAVWsUc23/vlV9IRZ75DbO3zw3KGCavFy75SYOTuc6H4XdL4Nb5BQTtFp8YvNyHSY56 9TAQ== |
| X-Gm-Message-State | AODbwcCD9ogDvQghs7dQNLgPxDJfYizusRslpMRNTjd4FN73kcgwkApe tmgJM13Bsrm3zkliAak= |
| X-Received | by 10.223.161.144 with SMTP id u16mr2598814wru.145.1495034991103; Wed, 17 May 2017 08:29:51 -0700 (PDT) |
| X-Received | by 10.28.33.66 with SMTP id h63mr3149364wmh.86.1495034989599; Wed, 17 May 2017 08:29:49 -0700 (PDT) |
| MIME-Version | 1.0 |
| X-Gmail-Original-Message-ID | <CA+FuTScZAee2BDVn0DFdQ99bt3SoVgmUiENMHDfMyoyb-iVnKA@mail.gmail.com> |
| Content-Type | text/plain; charset="UTF-8" |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 66 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Stephen Rothwell <sfr@canb.auug.org.au>, Pablo Neira Ayuso <pablo@netfilter.org>, NetFilter <netfilter-devel@vger.kernel.org>, Linux-Next Mailing List <linux-next@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org> |
| X-Original-Date | Wed, 17 May 2017 11:29:19 -0400 |
| X-Original-Message-ID | <CA+FuTScZAee2BDVn0DFdQ99bt3SoVgmUiENMHDfMyoyb-iVnKA@mail.gmail.com> |
| X-Original-References | <20170517134536.3ce21d47@canb.auug.org.au> <CA+FuTSfKpNj6kAfEGVnE=SN-OK0+8vbFiZTr1kaHd1x+9HEYdw@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1643471 |
Show key headers only | View raw
On Wed, May 17, 2017 at 1:02 AM, Willem de Bruijn
<willemdebruijn.kernel@gmail.com> wrote:
> On Tue, May 16, 2017 at 11:45 PM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>> Hi all,
>>
>> After merging the netfilter tree, today's linux-next build (i386
>> defconfig) failed like this:
>>
>> net/netfilter/x_tables.c: In function 'xt_match_to_user':
>> net/netfilter/x_tables.c:303:13: error: implicit declaration of function 'COMPAT_XT_ALIGN' [-Werror=implicit-function-declaration]
>> C_SIZE ? COMPAT_XT_ALIGN(C_SIZE) : \
>> ^
>> net/netfilter/x_tables.c:310:9: note: in expansion of macro 'XT_DATA_TO_USER'
>> XT_DATA_TO_USER(u, m, match, 0);
>> ^
>>
>> Caused by commit
>>
>> 324318f0248c ("netfilter: xtables: zero padding in data_to_user")
>>
>> In the !CONFIG_COMPAT case C_SIZE will always be zero, but the compiler
>> is still looking for the macro :-(
>
> Apologies for the breakage.
>
>> I added this cludge patch (I am sure it can be done better):
>>
>> From: Stephen Rothwell <sfr@canb.auug.org.au>
>> Date: Wed, 17 May 2017 13:36:26 +1000
>> Subject: [PATCH] netfilter: xtables: fix for zero padding in data_to_user
>>
>> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
>> ---
>> net/netfilter/x_tables.c | 8 ++++++++
>> 1 file changed, 8 insertions(+)
>>
>> diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c
>> index d17769599c10..2b1785993a92 100644
>> --- a/net/netfilter/x_tables.c
>> +++ b/net/netfilter/x_tables.c
>> @@ -296,12 +296,20 @@ int xt_data_to_user(void __user *dst, const void *src,
>> }
>> EXPORT_SYMBOL_GPL(xt_data_to_user);
>>
>> +#ifdef CONFIG_COMPAT
>> #define XT_DATA_TO_USER(U, K, TYPE, C_SIZE) \
>> xt_data_to_user(U->data, K->data, \
>> K->u.kernel.TYPE->usersize, \
>> C_SIZE ? : K->u.kernel.TYPE->TYPE##size, \
>> C_SIZE ? COMPAT_XT_ALIGN(C_SIZE) : \
>> XT_ALIGN(K->u.kernel.TYPE->TYPE##size))
>> +#else
>> +#define XT_DATA_TO_USER(U, K, TYPE, C_SIZE) \
>> + xt_data_to_user(U->data, K->data, \
>> + K->u.kernel.TYPE->usersize, \
>> + C_SIZE ? : K->u.kernel.TYPE->TYPE##size, \
>> + C_SIZE ? : XT_ALIGN(K->u.kernel.TYPE->TYPE##size))
>> +#endif
>>
>
> I will send a patch to the netfilter to define a separate
> COMPAT_XT_DATA_TO_USER inside the CONFIG_COMPAT region further down
> the file. This also allows simplifying XT_DATA_TO_USER by removing
> those ternary statements.
Full patch out for review at http://patchwork.ozlabs.org/patch/763655/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
linux-next: build failure after merge of the netfilter tree Stephen Rothwell <sfr@canb.auug.org.au> - 2017-05-17 05:50 +0200
Re: linux-next: build failure after merge of the netfilter tree Willem de Bruijn <willemdebruijn.kernel@gmail.com> - 2017-05-17 07:10 +0200
Re: linux-next: build failure after merge of the netfilter tree Willem de Bruijn <willemdebruijn.kernel@gmail.com> - 2017-05-17 17:40 +0200
Re: linux-next: build failure after merge of the netfilter tree Stephen Rothwell <sfr@canb.auug.org.au> - 2017-05-18 01:20 +0200
csiph-web