Skip to contentSkip to conversation

Another potential bug in /arch/mips/kernel/sysirix.c]

[email protected]: Jan-Benedict Glaw 1 participant 1 message May 21, 2004 MIPS

lore
Share & tools
lore
#0 lore raw

Hi!

This just came in by lkml. Forwarded in the hope of catching Ralf's eyes:)

MfG, JBG

Signature · 4 lines
   Jan-Benedict Glaw       [email protected]    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
   ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

We ran our bug detection tool upon Linux 2.6.6, and found some potential errors.
We would sincerely appreciate your help if anyone can confirm whether they are bugs or not.

Linux 2.6.6, /arch/mips/kernel/sysirix.c, Line 1642

1634 asmlinkage int irix_statvfs64(char *fname, struct irix_statvfs64 *buf) 1635 {

1636         struct nameidata nd;
1637         struct kstatfs kbuf;
1638         int error, i;

1639
1640 printk("[%s:%d] Wheee.. irix_statvfs(%s,%p)\n",
1641 current->comm, current->pid, fname, buf);
!1642 error = verify_area(VERIFY_WRITE, buf, sizeof(struct
irix_statvfs));
1643 if(error)
1644 goto out;

May be changed to:
1634 asmlinkage int irix_statvfs64(char *fname, struct irix_statvfs64 *buf) 1635 {

1636         struct nameidata nd;
1637         struct kstatfs kbuf;
1638         int error, i;

1639
1640 printk("[%s:%d] Wheee.. irix_statvfs(%s,%p)\n",
1641 current->comm, current->pid, fname, buf);
!1642 error = verify_area(VERIFY_WRITE, buf, sizeof(struct
irix_statvfs64));
1643 if(error)
1644 goto out;

Thanks a lot,
OPERA Research Group
University of Illinois at Urbana-Champaign

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/