kern/59256: [PATCH] Forgotten OS table size update after one item removal

Rudolf Cejka cejkar at fit.vutbr.cz
Thu Nov 13 09:40:20 PST 2003


>Number:         59256
>Category:       kern
>Synopsis:       [PATCH] Forgotten OS table size update after one item removal
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 13 09:40:17 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Rudolf Cejka
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
FIT, Brno University of Technology, Czech Republic
>Environment:

FreeBSD-current, bug in $FreeBSD: src/sys/boot/i386/boot0/boot0.s,v 1.26 2003/06/01 20:41:04 obrien Exp $

>Description:

There has been removed UNIX entry from known partitions in revision 1.26,
but size of table of known partitions TBL1SZ has not been updated.

>How-To-Repeat:

Install boot0.s 1.26 boot block and see shifted partition descriptions,
for example BSD instead of FreeBSD and/or Linux...

>Fix:

--- boot0.s.orig	Tue Nov 11 18:25:12 2003
+++ boot0.s	Tue Nov 11 18:25:21 2003
@@ -25,7 +25,7 @@
 		.set PRT_OFF,0x1be		# Partition table
 
 		.set TBL0SZ,0x3 		# Table 0 size
-		.set TBL1SZ,0xc 		# Table 1 size
+		.set TBL1SZ,0xb 		# Table 1 size
 
 		.set MAGIC,0xaa55		# Magic: bootable
 		.set B0MAGIC,0xbb66		# Identification

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list