Re: FreeBSD 5.3-BETA6 available

From: David Malone (dwmalone_at_maths.tcd.ie)
Date: 09/28/04

  • Next message: Gavin Atkinson: "FDC/ACPI/GEOM problems (was: RE: 5.3-BETA5-i386-disc1 bootstrap failures)"
    To: Matthias Andree <matthias.andree@gmx.de>
    Date: Tue, 28 Sep 2004 14:51:24 +0100
    
    

    > > Bruce suggests that this one is fixed in geom, which is now used
    > > by default. If this is the case, I can close the PR.

    > Please do not close the PR yet, the bug persists in FreeBSD
    > 4.10-RELEASE-p3 (tested a few minutes ago) and probably also in 4.8.

    Here's a quick attempt to port the patch that Bruce suggested. I
    haven't been able to test it yet, but you might like to try it.

            David.

    --- /usr/src/sys/kern/subr_diskslice.c Fri Sep 7 21:45:00 2001
    +++ subr_diskslice.c Tue Sep 28 14:47:39 2004
    @@ -142,6 +142,7 @@
             struct disklabel *lp;
             char *msg;
             long nsec;
    + off_t offset;
             struct partition *pp;
             daddr_t secno;
             daddr_t slicerel_secno;
    @@ -153,6 +154,20 @@
                     printf("dscheck(%s): negative b_blkno %ld\n",
                         devtoname(bp->b_dev), (long)blkno);
                     bp->b_error = EINVAL;
    + goto bad;
    + }
    + offset = bp->b_offset;
    + if (offset < 0) {
    + printf("dscheck(%s): negative b_offset %ld\n",
    + devtoname(bp->b_dev), (long)offset);
    + bp->b_error = EINVAL;
    + goto bad;
    + }
    + if (offset % (uoff_t)DEV_BSIZE) {
    + printf(
    + "dscheck(%s): b_offset %ld is not on a DEV_BSIZE boundary\n",
    + devtoname(bp->b_dev), (long)offset);
    + bp->bio_error = EINVAL;
                     goto bad;
             }
             sp = &ssp->dss_slices[dkslice(bp->b_dev)];
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Gavin Atkinson: "FDC/ACPI/GEOM problems (was: RE: 5.3-BETA5-i386-disc1 bootstrap failures)"

    Relevant Pages

    • Re: FreeBSD 5.3-BETA6 available
      ... > is still open and unpatched AFAICS ... Bruce suggests that this one is fixed in geom, ... To unsubscribe, ...
      (freebsd-current)
    • Re: Unable to Access Com Port
      ... Bruce, Steve and Malke, thanks...looks like I'll need to ... get a patch or new program. ... > If the application's manufacturer will not (or ... >> compatibility to Win 98, ...
      (microsoft.public.windowsxp.general)
    • Re: sys/conf/DEFAULT[S]
      ... Bruce Evans said: ... Stefan's patch moved ... the SEMICOLON and nesting issues and in addition fix the problem you ...
      (freebsd-arch)
    • Re: sys/conf/DEFAULT[S]
      ... Bruce Evans said: ... > at the end of GENERIC should be a syntax error, ... > back but config aborts before then. ... with his patch. ...
      (freebsd-arch)
    • Re: [PATCH] Re: IP_MAX_MEMBERSHIPS story.
      ... Bruce M Simpson wrote: ... the patch will probably also apply ... to HEAD with little or no fuzz. ... Because of the nature of this patch, it will break the ABI with regards ...
      (freebsd-net)