#ifndef __NET_TC_NAT_H #define __NET_TC_NAT_H #include <linux/types.h> #include <net/act_api.h> struct tcf_nat { struct tc_action common; __be32 old_addr; __be32 new_addr; __be32 mask; u32 flags; }; #define to_tcf_nat(a) ((struct tcf_nat *)a) #endif /* __NET_TC_NAT_H */ ux/net-next.git/atom/net/sunrpc/xprtrdma/Makefile?h=nds-private-remove' type='application/atom+xml'/> <link rel='vcs-git' href='git://git.distanz.ch/linux/net-next.git' title='net-next.git Git repository'/> <link rel='vcs-git' href='http:///git.distanz.ch/cgit.cgi/linux/net-next.git' title='net-next.git Git repository'/> </head> <body> <div id='cgit'><table id='header'> <tr> <td class='logo' rowspan='2'><a href='/cgit.cgi/'><img src='/cgit.png' alt='cgit logo'/></a></td> <td class='main'><a href='/cgit.cgi/'>index</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'> <input type='hidden' name='id' value='bd08b532f49b640c8d2ba1a7a7344ab206e051cb'/><select name='h' onchange='this.form.submit();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master'>master</option> <option value='nds-private-remove' selected='selected'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=bd08b532f49b640c8d2ba1a7a7344ab206e051cb'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/net/sunrpc/xprtrdma/Makefile?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/sunrpc/xprtrdma/Makefile?h=nds-private-remove&id=bd08b532f49b640c8d2ba1a7a7344ab206e051cb'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/sunrpc/xprtrdma/Makefile?h=nds-private-remove&id=bd08b532f49b640c8d2ba1a7a7344ab206e051cb'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/sunrpc/xprtrdma/Makefile?h=nds-private-remove&id=bd08b532f49b640c8d2ba1a7a7344ab206e051cb'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/sunrpc/xprtrdma/Makefile'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='bd08b532f49b640c8d2ba1a7a7344ab206e051cb'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&id=bd08b532f49b640c8d2ba1a7a7344ab206e051cb'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?h=nds-private-remove&id=bd08b532f49b640c8d2ba1a7a7344ab206e051cb'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/sunrpc?h=nds-private-remove&id=bd08b532f49b640c8d2ba1a7a7344ab206e051cb'>sunrpc</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/sunrpc/xprtrdma?h=nds-private-remove&id=bd08b532f49b640c8d2ba1a7a7344ab206e051cb'>xprtrdma</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/sunrpc/xprtrdma/Makefile?h=nds-private-remove&id=bd08b532f49b640c8d2ba1a7a7344ab206e051cb'>Makefile</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/net/sunrpc/xprtrdma/Makefile?h=nds-private-remove&id=bd08b532f49b640c8d2ba1a7a7344ab206e051cb&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr> ue='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'> <tr><th>author</th><td>Ard Biesheuvel <ard.biesheuvel@linaro.org></td><td class='right'>2017-02-01 17:45:02 +0000</td></tr> <tr><th>committer</th><td>Ingo Molnar <mingo@kernel.org></td><td class='right'>2017-02-01 21:17:49 +0100</td></tr> <tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/include/trace/events/nmi.h?id=c8f325a59cfc718d13a50fbc746ed9b415c25e92'>c8f325a59cfc718d13a50fbc746ed9b415c25e92</a> (<a href='/cgit.cgi/linux/net-next.git/patch/include/trace/events/nmi.h?id=c8f325a59cfc718d13a50fbc746ed9b415c25e92'>patch</a>)</td></tr> <tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?id=c8f325a59cfc718d13a50fbc746ed9b415c25e92'>d53fbdac9d0781e39a13b2ac6b2bd258cf3b4140</a> /<a href='/cgit.cgi/linux/net-next.git/tree/include/trace/events/nmi.h?id=c8f325a59cfc718d13a50fbc746ed9b415c25e92'>include/trace/events/nmi.h</a></td></tr> <tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/include/trace/events/nmi.h?id=bf29bddf0417a4783da3b24e8c9e017ac649326f'>bf29bddf0417a4783da3b24e8c9e017ac649326f</a> (<a href='/cgit.cgi/linux/net-next.git/diff/include/trace/events/nmi.h?id=c8f325a59cfc718d13a50fbc746ed9b415c25e92&id2=bf29bddf0417a4783da3b24e8c9e017ac649326f'>diff</a>)</td></tr></table> <div class='commit-subject'>efi/fdt: Avoid FDT manipulation after ExitBootServices()</div><div class='commit-msg'>Some AArch64 UEFI implementations disable the MMU in ExitBootServices(), after which unaligned accesses to RAM are no longer supported. Commit: abfb7b686a3e ("efi/libstub/arm*: Pass latest memory map to the kernel") fixed an issue in the memory map handling of the stub FDT code, but inadvertently created an issue with such firmware, by moving some of the FDT manipulation to after the invocation of ExitBootServices(). Given that the stub's libfdt implementation uses the ordinary, accelerated string functions, which rely on hardware handling of unaligned accesses, manipulating the FDT with the MMU off may result in alignment faults. So fix the situation by moving the update_fdt_memmap() call into the callback function invoked by efi_exit_boot_services() right before it calls the ExitBootServices() UEFI service (which is arguably a better place for it anyway) Note that disabling the MMU in ExitBootServices() is not compliant with the UEFI spec, and carries great risk due to the fact that switching from cached to uncached memory accesses halfway through compiler generated code (i.e., involving a stack) can never be done in a way that is architecturally safe. Fixes: abfb7b686a3e ("efi/libstub/arm*: Pass latest memory map to the kernel") Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Riku Voipio <riku.voipio@linaro.org> Cc: <stable@vger.kernel.org> Cc: mark.rutland@arm.com Cc: linux-efi@vger.kernel.org Cc: matt@codeblueprint.co.uk Cc: leif.lindholm@linaro.org Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/1485971102-23330-2-git-send-email-ard.biesheuvel@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org> </div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?id=c8f325a59cfc718d13a50fbc746ed9b415c25e92'>Diffstat</a> (limited to 'include/trace/events/nmi.h')</div><table summary='diffstat' class='diffstat'>