forked from mirrors/linux
		
	netfilter: nf_tables: disable register tracking
The register tracking infrastructure is incomplete, it might lead to generating incorrect ruleset bytecode, disable it by now given we are late in the release process. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
		
							parent
							
								
									ee0a4dc9f3
								
							
						
					
					
						commit
						ed5f85d422
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
					@ -8260,6 +8260,12 @@ void nf_tables_trans_destroy_flush_work(void)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
EXPORT_SYMBOL_GPL(nf_tables_trans_destroy_flush_work);
 | 
					EXPORT_SYMBOL_GPL(nf_tables_trans_destroy_flush_work);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static bool nft_expr_reduce(struct nft_regs_track *track,
 | 
				
			||||||
 | 
								    const struct nft_expr *expr)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						return false;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int nf_tables_commit_chain_prepare(struct net *net, struct nft_chain *chain)
 | 
					static int nf_tables_commit_chain_prepare(struct net *net, struct nft_chain *chain)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	const struct nft_expr *expr, *last;
 | 
						const struct nft_expr *expr, *last;
 | 
				
			||||||
| 
						 | 
					@ -8307,8 +8313,7 @@ static int nf_tables_commit_chain_prepare(struct net *net, struct nft_chain *cha
 | 
				
			||||||
		nft_rule_for_each_expr(expr, last, rule) {
 | 
							nft_rule_for_each_expr(expr, last, rule) {
 | 
				
			||||||
			track.cur = expr;
 | 
								track.cur = expr;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if (expr->ops->reduce &&
 | 
								if (nft_expr_reduce(&track, expr)) {
 | 
				
			||||||
			    expr->ops->reduce(&track, expr)) {
 | 
					 | 
				
			||||||
				expr = track.cur;
 | 
									expr = track.cur;
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue