mirror of
				https://github.com/choff/anbox-modules.git
				synced 2025-11-04 07:42:37 +08:00 
			
		
		
		
	Merge pull request #9 from morphis/fix-sigbus-with-newer-kernels
staging: ashmem: Fix SIGBUS crash when traversing mmaped ashmem pages
This commit is contained in:
		
						commit
						5061f6e5cb
					
				@ -419,7 +419,13 @@ static int ashmem_mmap(struct file *file, struct vm_area_struct *vma)
 | 
				
			|||||||
			fput(asma->file);
 | 
								fput(asma->file);
 | 
				
			||||||
			goto out;
 | 
								goto out;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0)
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							vma_set_anonymous(vma);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (vma->vm_file)
 | 
						if (vma->vm_file)
 | 
				
			||||||
		fput(vma->vm_file);
 | 
							fput(vma->vm_file);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user