mirror of
				https://bitbucket.org/padavan/rt-n56u.git
				synced 2024-02-16 20:28:32 +08:00 
			
		
		
		
	
			
				
					
						
					
					master
				
			
			
		
	 David Rientjes
		
	
	32a93db402
	
	
	kernel/relay.c: limit kmalloc size to KMALLOC_MAX_SIZE
			David Rientjes
		
	
	32a93db402
	
	
	kernel/relay.c: limit kmalloc size to KMALLOC_MAX_SIZE
		
			
			commit 88913bd8ea2a75d7e460a4bed5f75e1c32660d7e upstream. chan->n_subbufs is set by the user and relay_create_buf() does a kmalloc() of chan->n_subbufs * sizeof(size_t *). kmalloc_slab() will generate a warning when this fails if chan->subbufs * sizeof(size_t *) > KMALLOC_MAX_SIZE. Limit chan->n_subbufs to the maximum allowed kmalloc() size. Link: http://lkml.kernel.org/r/alpine.DEB.2.10.1802061216100.122576@chino.kir.corp.google.com Fixes: f6302f1bcd75 ("relay: prevent integer overflow in relay_open()") Signed-off-by: David Rientjes <rientjes@google.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Jens Axboe <axboe@kernel.dk> Cc: Dave Jiang <dave.jiang@intel.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
README
Welcome to the rt-n56u project
This project aims to improve the rt-n56u and other supported devices on the software part, allowing power user to take full control over their hardware. This project was created in hope to be useful, but comes without warranty or support. Installing it will probably void your warranty. Contributors of this project are not responsible for what happens next.
How do I get set up?
- Get the tools to build the system or Download pre-built system image
- Feed the device with the system image file (Follow instructions of updating your current system)
- Perform factory reset
- Open web browser on http://my.router to configure the services
Contribution guidelines
- To be completed
Description
				
					Languages
				
				
								
								
									C
								
								90.8%
							
						
							
								
								
									Assembly
								
								1.8%
							
						
							
								
								
									HTML
								
								1.6%
							
						
							
								
								
									Makefile
								
								1.4%
							
						
							
								
								
									C++
								
								1.2%
							
						
							
								
								
									Other
								
								2.7%