mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolinux.com>
To: Dawson Engler <engler@csl.stanford.edu>
Cc: linux-kernel@vger.kernel.org, mc@cs.stanford.edu
Subject: Re: [CHECKER] question about functions that can fail
Date: Mon, 19 Mar 2001 15:23:54 -0700 (MST)	[thread overview]
Message-ID: <200103192223.f2JMNt717802@webber.adilger.int> (raw)
In-Reply-To: <200103192149.NAA29973@csl.Stanford.EDU> from Dawson Engler at "Mar 19, 2001 01:49:01 pm"

Dawson writes:
> right now we are trying to derive which functions can "reasonably" fail
> by examining all call sites and recording the number of times functions
> are checked vs not checked.

First of all, thanks for this interesting work you are doing.  Pre-emptive
bug squashing is great.  Probably saved many man-years of grief for people
who are having intermittent problems, or have uncommon hardware/configuration.

> I've included the most egregious cases of check/not checked:
> 
>                            parse_options	:	14	:	1:

It appears you are not making a distinction between static functions and
global functions.  The parse_options function is local to ext2, but since
many filesystem writers look at ext2 for guidance, they often have functions
with similar names.  It looks like parse_options is one of the common ones.

That said, I'm guessing the 1 time the return value isn't checked is a bug.
It appears to be in fs/proc/inode.c, and the parse_options() there _does_
return 1 on error (unknown mount option), so we _should_ probably fail
mounting /proc in that case.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

  reply	other threads:[~2001-03-19 22:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-19 21:49 Dawson Engler
2001-03-19 22:23 ` Andreas Dilger [this message]
2001-03-21 22:09 ` Rusty Russell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200103192223.f2JMNt717802@webber.adilger.int \
    --to=adilger@turbolinux.com \
    --cc=engler@csl.stanford.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mc@cs.stanford.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®