View | Details | Raw Unified | Return to bug 272203
Collapse All | Expand All

(-)b/sys/vm/vm_fault.c (-1 / +5 lines)
Lines 1149-1154 vm_fault_allocate(struct faultstate *fs) Link Here
1149
1149
1150
	if (fs->pindex >= fs->object->size) {
1150
	if (fs->pindex >= fs->object->size) {
1151
		unlock_and_deallocate(fs);
1151
		unlock_and_deallocate(fs);
1152
		printf("%s:%d FAULT_OUT_OF_BOUNDS: %lx %lx\n", __func__, __LINE__, fs->pindex, fs->object->size);
1152
		return (FAULT_OUT_OF_BOUNDS);
1153
		return (FAULT_OUT_OF_BOUNDS);
1153
	}
1154
	}
1154
1155
Lines 1310-1315 vm_fault_getpages(struct faultstate *fs, int *behindp, int *aheadp) Link Here
1310
		VM_OBJECT_WLOCK(fs->object);
1311
		VM_OBJECT_WLOCK(fs->object);
1311
		fault_page_free(&fs->m);
1312
		fault_page_free(&fs->m);
1312
		unlock_and_deallocate(fs);
1313
		unlock_and_deallocate(fs);
1314
		printf("%s:%d FAULT_OUT_OF_BOUNDS: %x\n", __func__, __LINE__, rv);
1313
		return (FAULT_OUT_OF_BOUNDS);
1315
		return (FAULT_OUT_OF_BOUNDS);
1314
	}
1316
	}
1315
	KASSERT(rv == VM_PAGER_FAIL,
1317
	KASSERT(rv == VM_PAGER_FAIL,
Lines 1533-1538 vm_fault(vm_map_t map, vm_offset_t vaddr, vm_prot_t fault_type, Link Here
1533
		case FAULT_FAILURE:
1535
		case FAULT_FAILURE:
1534
			return (KERN_FAILURE);
1536
			return (KERN_FAILURE);
1535
		case FAULT_OUT_OF_BOUNDS:
1537
		case FAULT_OUT_OF_BOUNDS:
1538
			printf("%s:%d KERN_OUT_OF_BOUNDS a\n", __func__, __LINE__);
1536
			return (KERN_OUT_OF_BOUNDS);
1539
			return (KERN_OUT_OF_BOUNDS);
1537
		case FAULT_CONTINUE:
1540
		case FAULT_CONTINUE:
1538
			break;
1541
			break;
Lines 1560-1565 vm_fault(vm_map_t map, vm_offset_t vaddr, vm_prot_t fault_type, Link Here
1560
		case FAULT_FAILURE:
1563
		case FAULT_FAILURE:
1561
			return (KERN_FAILURE);
1564
			return (KERN_FAILURE);
1562
		case FAULT_OUT_OF_BOUNDS:
1565
		case FAULT_OUT_OF_BOUNDS:
1566
			printf("%s:%d KERN_OUT_OF_BOUNDS b\n", __func__, __LINE__);
1563
			return (KERN_OUT_OF_BOUNDS);
1567
			return (KERN_OUT_OF_BOUNDS);
1564
		case FAULT_PROTECTION_FAILURE:
1568
		case FAULT_PROTECTION_FAILURE:
1565
			return (KERN_PROTECTION_FAILURE);
1569
			return (KERN_PROTECTION_FAILURE);
Lines 1580-1585 vm_fault(vm_map_t map, vm_offset_t vaddr, vm_prot_t fault_type, Link Here
1580
			if (fs.first_object == fs.object)
1584
			if (fs.first_object == fs.object)
1581
				fault_page_free(&fs.first_m);
1585
				fault_page_free(&fs.first_m);
1582
			unlock_and_deallocate(&fs);
1586
			unlock_and_deallocate(&fs);
1587
			printf("%s:%d KERN_OUT_OF_BOUNDS c %x\n", __func__, __LINE__, fs.fault_flags);
1583
			return (KERN_OUT_OF_BOUNDS);
1588
			return (KERN_OUT_OF_BOUNDS);
1584
		}
1589
		}
1585
		VM_OBJECT_WUNLOCK(fs.object);
1590
		VM_OBJECT_WUNLOCK(fs.object);
1586
- 

Return to bug 272203