mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-03 10:10:33 +02:00 
			
		
		
		
	pstore: do not use message compression without lock
pstore_compress() uses static stream buffer for zlib-deflate which easily crashes when several concurrent threads use one shared state. Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Signed-off-by: Tony Luck <tony.luck@intel.com>
This commit is contained in:
		
							parent
							
								
									e26081808e
								
							
						
					
					
						commit
						f0e2efcfd2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -299,7 +299,7 @@ static void pstore_dump(struct kmsg_dumper *dumper,
 | 
			
		|||
		bool compressed;
 | 
			
		||||
		size_t total_len;
 | 
			
		||||
 | 
			
		||||
		if (big_oops_buf) {
 | 
			
		||||
		if (big_oops_buf && is_locked) {
 | 
			
		||||
			dst = big_oops_buf;
 | 
			
		||||
			hsize = sprintf(dst, "%s#%d Part%u\n", why,
 | 
			
		||||
							oopscount, part);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue