netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH v4] netfilter: ebtables: CONFIG_COMPAT support
Date: Thu, 18 Feb 2010 12:10:10 +0100	[thread overview]
Message-ID: <4B7D2012.1020803@trash.net> (raw)
In-Reply-To: <1266338348-6233-1-git-send-email-fw@strlen.de>

Florian Westphal wrote:
> Version 4 of the ebtables CONFIG_COMPAT patch set.
> 
> Changes since v3:
> - reformat to get rid of overly long lines.
> 
> One long line remains (a BUG_ON() ), fixing this would make this much
> more ugly, so I'd rather remove the BUG_ON if that one line is still a
> problem.
> 
> Changes since v2:
> - remove last use of MEMPRINT macro
> - remove BUGPRINT line instead of adding compat argument to copy_counters_to_user
> 
> First patches are preparation patches to reduce copy & paste in later
> patches.  Patch 4 is the main CONFIG_COMPAT hunk, next ones
> handles those ebtables binaries specifically built for 64 bit kernel
> (i.e. pad in userspace).
> Last two patches add CONFIG_COMPAT support to the targets/matches that
> need special handling (maybe I missed some, though).
> 
> Tested on x86_64 with x86 userland by comparing output of 32 and 64 bit ebtables binaries.
> 
> Changes since v1 were:
> - also move handling of ebt counter set/getsockopt handling to helper functions to avoid
> copy & pasting the same code in the COMPAT handlers.
> - add missing length check to compat_do_ebt_get_ctl().
> - add a patch to handle "userspace-side-padding" in some ebtables 32bit userspace binaries.
> - add "const *" qualifiers to the compat_from/to user functions.
> 
> The following changes since commit 3e5e524ffb5fcf2447eb5dd9f8e54ad22dd9baa7:
>   Florian Westphal (1):
>         netfilter: CONFIG_COMPAT: allow delta to exceed 32767
> 
> are available in the git repository at:
> 
>   git://git.breakpoint.cc/fw/nf-next-2.6.git ebt_config_compat_v4
> 
> Florian Westphal (7):
>       netfilter: ebtables: split do_replace into two functions
>       netfilter: ebtables: split copy_everything_to_user into two functions
>       netfilter: ebtables: split update_counters into two functions
>       netfilter: ebtables: add CONFIG_COMPAT support
>       netfilter: ebtables: try native set/getsockopt handlers, too
>       netfilter: ebt_limit: add CONFIG_COMPAT support
>       netfilter: ebtables: mark: add CONFIG_COMPAT support

Pulled, thanks a lot Florian.

      parent reply	other threads:[~2010-02-18 11:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-16 16:39 [PATCH v4] netfilter: ebtables: CONFIG_COMPAT support Florian Westphal
2010-02-16 16:39 ` [PATCH 1/7] netfilter: ebtables: split do_replace into two functions Florian Westphal
2010-02-16 16:39 ` [PATCH 2/7] netfilter: ebtables: split copy_everything_to_user " Florian Westphal
2010-02-16 16:39 ` [PATCH 3/7] netfilter: ebtables: split update_counters " Florian Westphal
2010-02-16 16:39 ` [PATCH 4/7] netfilter: ebtables: add CONFIG_COMPAT support Florian Westphal
2010-02-16 16:39 ` [PATCH 5/7] netfilter: ebtables: try native set/getsockopt handlers, too Florian Westphal
2010-02-16 16:39 ` [PATCH 6/7] netfilter: ebt_limit: add CONFIG_COMPAT support Florian Westphal
2010-02-16 16:39 ` [PATCH 7/7] netfilter: ebtables: mark: " Florian Westphal
2010-02-16 17:10 ` [PATCH v4] netfilter: ebtables: " Patrick McHardy
2010-02-18 11:10 ` Patrick McHardy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B7D2012.1020803@trash.net \
    --to=kaber@trash.net \
    --cc=fw@strlen.de \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).