SONTAYA'P BLOGGER

IT Digital lifestyle

[Troubleshooting] ปัญหาเซิร์ฟเวอร์ overload หลังจากอัพเกรดระบบ (Denial of Service through infinite loop)

bySONTAYA November 8, 2013 Office

(เกิดขึ้นนานแล้วแต่ขอ note ไว้หน่อยก็ดี) เหตุการณ์ที่เกิดขึ้นคือเซิร์ฟเวอร์แฮงค์ช่วงเวลาประมาณบ่าย 2 โมง ทุกวัน หลังจากเปิดเครื่องขึ้นมาใหม่ก็จะสามารถใช้งานได้ตามปกติ แต่เมื่อทำการตรวจสอบกลับไม่พบ error message อ้างอิจจาก reference ทำให้สามารถตรวจสอบและเฝ้ามองระบบได้ดั้งนี้

เมื่อใช้คำสั่ง df สำหรับตรวจสอบพื้นที่ใช้งาน กลับพบว่า output ที่ได้ระหว่างคำสั่ง df -h กับ df -i แตกต่างกัน

[sourcecode]linuxserv2:~ # df -h[/sourcecode]

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        30G  7.4G   21G  27% /
udev            3.0G  132K  3.0G   1% /dev
tmpfs           3.0G  4.0M  3.0G   1% /dev/shm
/dev/sda6        99G   13G   81G  14% /data
/dev/sda5        30G   15G   14G  51% /home
/dev/sda7        69G  6.8G   59G  11% /backup

ระบบมีการเขียนไฟล์ในไดร์เรกทอรี tmp อย่างผิดปกติ จากการใช้คำสั่ง df -h ที่พาร์ติชัน filesystem ผลลัพธ์ที่ได้มีพื้นที่ใช้งานได้ 27% แต่เมื่อ df -i (inode) ผลลัพธ์ 88% ซึ่งถ้าเทียบ ณ เวลาประมาณบ่าย 2 โมง
ก็คงทำให้พื้นที่ filesystem มีขนาดเต็ม 100%

[sourcecode]linuxserv2:~ # df -i /tmp/[/sourcecode]

Filesystem      Inodes   IUsed  IFree IUse% Mounted on
/dev/sda2      1966080 1720540 245540   88% /

[sourcecode]stat /tmp[/sourcecode]

ทำการมอนิเตอร์ซับไดร์เรกทอรีภายใน /tmp ดูว่าไดร์เรกทอรีไหนมีการเขียน temp ไฟล์บ้าง

[sourcecode]watch df -i /tmp/orbit-*[/sourcecode]

Filesystem      Inodes  IUsed   IFree IUse% Mounted on
/dev/sda2      1966080 216424 1749656   12% /
/dev/sda2      1966080 216424 1749656   12% /
/dev/sda2      1966080 216424 1749656   12% /
/dev/sda2      1966080 216424 1749656   12% /
/dev/sda2      1966080 216424 1749656   12% /
/dev/sda2      1966080 216424 1749656   12% /
/dev/sda2      1966080 216424 1749656   12% /
/dev/sda2      1966080 216424 1749656   12% /
/dev/sda2      1966080 216424 1749656   12% /
/dev/sda2      1966080 216424 1749656   12% /

มีการเขียน temp ไฟล์ลงไดร์เรกทอรี tmp เพิ่มขึ้นอย่างรวดเร็ว

[sourcecode]watch df -i /tmp/orbit-*[/sourcecode]

Filesystem      Inodes  IUsed   IFree IUse% Mounted on
/dev/sda2      1966080 502634 1463446   26% /
/dev/sda2      1966080 502634 1463446   26% /
/dev/sda2      1966080 502634 1463446   26% /
/dev/sda2      1966080 502634 1463446   26% /
/dev/sda2      1966080 502634 1463446   26% /
/dev/sda2      1966080 502634 1463446   26% /
/dev/sda2      1966080 502634 1463446   26% /
/dev/sda2      1966080 502634 1463446   26% /
/dev/sda2      1966080 502634 1463446   26% /
/dev/sda2      1966080 502634 1463446   26% /
/dev/sda2      1966080 502634 1463446   26% /
/dev/sda2      1966080 502634 1463446   26% /

orbit2 – High-Performance CORBA Object Request Broker

ORBit is a high-performance CORBA (Common Object Request Broker Architecture) ORB (Object Request Broker). It allows programs to send requests and receive replies from other programs, regardless of the locations of the two programs. CORBA is an architecture that enables communication between program objects, regardless of the programming language they are written in or the operating system they run on. You will need to install this package if you want to run programs that use the CORBA technology ORBit implementation.

ใช้คำสั่ง stat ตรวจสอบที่ละยูสเซอร์

[sourcecode]stat /tmp/orbit-username1[/sourcecode]

File: `/tmp/orbit-username1′
Size: 1499136       Blocks: 2936       IO Block: 4096   directory
Device: 802h/2050d    Inode: 1933344     Links: 2
Access: (0700/drwx——)  Uid: ( 1002/username1)   Gid: (  100/   users)
Access: 1970-01-01 07:00:00.000000000 +0700
Modify: 1970-01-01 07:00:00.000000000 +0700
Change: 2013-08-30 15:32:00.000000000 +0700

สรุปปัญหาที่เกิดขึ้นกับเซิร์ฟเวอร์คือ overload due to vnc server can’t start

ข้อผิดพลาดที่พบ:
​/vino-server: symbol lookup error: /lib64/libgcrypt.so.11: undefined symbol: gpg_err_set_errno

การแก้ไข:
ให้อัพเกรดแพ็คเกจ libgpg-error0 and libgpg-error0-32bit​

Reference:
//www.novell.com/support/kb/doc.php?id=7013143
//www.ivankuznetsov.com/2010/02/no-space-left-on-device-running-out-of-inodes.html
//manpages.ubuntu.com/manpages/lucid/man1/linc-cleanup-sockets.1.html
//forums.opensuse.org/english/get-technical-help-here/install-boot-login/430200-deleted-everything-tmp-directory-3.html
//www.linuxforums.org/forum/security/167031-question-about-files-tmp-folder.html
//linux.ittoolbox.com/groups/technical-functional/linuxadmin-l/how-to-clean-up-inodes-5018174
//www.cyberciti.biz/faq/linux-bsd-appleosx-unix-find-file-inode/
//www.novell.com/support/kb/doc.php?id=7009075

Bug:
vino has been updated to fix a remote denial of service problem where remote attackers could have caused a infinite loop in vino (CPU consumption). (CVE-2013-5745) Security Issue reference: * CVE-2013-5745

Vulnerability description
=========================

This vulnerability is triggered when the user is required to enter a password.
The server closes the client connection on receiving an unexpected input
sequence from the client.

The unprocessed client data remains in the buffer; the server does not remove
them from buffer since the client connection has been closed.
The result is an infinite loop at the do-while (more_data_pending
(rfb_client->sock)) in vino-server.c:415
The gdm and vino-server processes together take up 100% CPU, causing denial of
service

TaggedServer

Manager.co.th ติดต่อเรา มีไว้ทำไร?

Mikrotik เราท์เตอร์เทพ ปล่อยซอฟต์แวร์เวอร์ชั่น RouterOS v6.6 แล้ว

Leave a Reply Cancel reply

You must be logged in to post a comment.

Tag Cloud

3G Android Backup Blognone Chromecast Cloud Comparison CUPS Dell DNS Facebook Firefox Firewall Google Guitar Hacked HP Joomla LGP500 LibreOffice Linux Mozilla Firefox OpenOffice.org Open Source OpenStack openSUSE openSUSE11.3 openSUSE12.1 Peplink Performance Postfix Printer Samsung Security Storage SUSE SUSE Enterprise Desktop SUSE Enterprise Server SUSE Linux Enterprise Switch Thin client Tips VMware WordPress WordPress/SMF

Comments

  • Narupon Pattapat on การ cleaning the imaging unit หรือ Drum (Imaging Unit)
  • 76Rusty on แอพ aVia Media Player Pro และ Pocket Casts 4 อนาคตอาจรองรับ Chromecast
  • JindaTheme on CloudFlare คืออะไร?
  • viva3388 on CloudFlare คืออะไร?
  • SONTAYA on Linux Foundation T-Shirt มาแล้ว

Categories

  • Android (7)
  • Joomla (9)
  • LibreOffice/OpenOffice.org (16)
  • Linux (159)
  • Music (16)
  • News (55)
  • Office (55)
  • Online Marketing (3)
  • Personal (232)
  • VMware (5)
  • WordPress/SMF (20)

Archives

  • May 2019
  • March 2019
  • January 2019
  • December 2018
  • September 2018
  • August 2018
  • July 2018
  • April 2018
  • March 2018
  • January 2018
  • December 2017
  • June 2017
  • December 2016
  • November 2016
  • April 2016
  • March 2016
  • February 2016
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • February 2015
  • January 2015
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009

Archives

  • May 2019 (1)
  • March 2019 (1)
  • January 2019 (1)
  • December 2018 (1)
  • September 2018 (1)
  • August 2018 (3)
  • July 2018 (1)
  • April 2018 (1)
  • March 2018 (1)
  • January 2018 (2)
  • December 2017 (1)
  • June 2017 (3)
  • December 2016 (1)
  • November 2016 (1)
  • April 2016 (1)
  • March 2016 (2)
  • February 2016 (1)
  • September 2015 (3)
  • August 2015 (2)
  • July 2015 (7)
  • June 2015 (5)
  • May 2015 (1)
  • April 2015 (1)
  • February 2015 (2)
  • January 2015 (1)
  • November 2014 (3)
  • October 2014 (2)
  • September 2014 (2)
  • August 2014 (1)
  • July 2014 (3)
  • June 2014 (3)
  • May 2014 (2)
  • April 2014 (5)
  • March 2014 (2)
  • February 2014 (5)
  • December 2013 (3)
  • November 2013 (15)
  • October 2013 (15)
  • September 2013 (11)
  • August 2013 (9)
  • July 2013 (26)
  • June 2013 (7)
  • May 2013 (15)
  • April 2013 (6)
  • March 2013 (5)
  • February 2013 (4)
  • January 2013 (2)
  • December 2012 (9)
  • November 2012 (2)
  • October 2012 (4)
  • September 2012 (2)
  • August 2012 (4)
  • June 2012 (3)
  • May 2012 (4)
  • April 2012 (6)
  • March 2012 (14)
  • February 2012 (9)
  • December 2011 (8)
  • November 2011 (6)
  • October 2011 (13)
  • September 2011 (7)
  • August 2011 (10)
  • July 2011 (4)
  • June 2011 (12)
  • May 2011 (26)
  • April 2011 (6)
  • March 2011 (3)
  • February 2011 (4)
  • January 2011 (10)
  • December 2010 (6)
  • November 2010 (4)
  • October 2010 (5)
  • September 2010 (10)
  • August 2010 (5)
  • July 2010 (8)
  • June 2010 (6)
  • May 2010 (4)
  • April 2010 (9)
  • March 2010 (10)
  • February 2010 (8)
  • January 2010 (21)
  • December 2009 (28)
Proudly powered by WordPress | Theme: Showme by NEThemes.