Hacker Team Translates "The Promise of Haruhi Suzumiya"
Yesterday 10:54 PM Posted by: Jomann in PSP News
A team of hackers has been editing the game 涼宮ハルヒの約束 (Suzumiya Haruhi no Yakusoku)
and have release a video of the "proof of concept"
Source: Google Video

They need some people to help them with the project as well, preferably people who know japanese and can translate it well
and people who are good with HACKING HEX VALUES.... that means most of you!
so far they've been using google translator, and IMO are doing great judging from the video.

Link to there blog
  Replies (1)
 25 year old bug fixed - seekdir()
Yesterday 08:04 AM Posted by: xero1 in Tech News
When seekdir() Won't Seek to the Right Position

Quote:
The other day, I got an email from Edd, an OpenBSD user, claiming that Samba would crash when serving files off an MS-DOS filesystem. This was Samba built from sources and not the one from ports. Since I use myself Samba a lot and for a quite large user base, I got interested in the issue and started investigating it.

What I found out in the end is a surprise and was not expected: A bug that has been there in all BSDs for almost all the time, since the 4.2BSD times or for roughly 25 years...
The Samba Directory Cache

Edd CCed his email to Volker and Jeremy, two Samba developers, so I got in contact with the right people quickly. Jeremy told me that Samba indeed uses a workaround, or replacement code, to access directories on the BSDs since the directory reading code in all BSDs was flawed. A claim that I could hardly believe at first and of course my first reaction was to blame Samba.

(Technically, Edd got hit by Samba's replacement code calling abort() when it hits a corner case. A patch in the OpenBSD (and FreeBSD) port removed that abort() call, so the Samba from ports would not stop working, but it would not work correctly either.)

Samba makes use of telldir()/readir(), seekdir()/readdir() to build an internal cache of (large) directories to speed up directory accesses by CIFS clients (Windows machines). To build up the cache, Samba interates over a directory using readdir() and storing the returned values in an internal data structure. The values are later used to seekdir() to the directory position and use readdir() to read in the data. Now, when between the filling of the cache and using the cache later, some files are unlinked from the directory, it can happen sometimes that a cache entry no longer points to the right file in the directory. This means that values returned by telldir() can become, under rare cicumstances, invalid when some files were unlinked. Very strange, indeed.
The Problem With seekdir()

In Samba's replacement code I found the following comment, stating the problem from the Samba point of view:

"This is needed because the existing directory handling in FreeBSD
and OpenBSD (and possibly NetBSD) doesn't correctly handle unlink()
on files in a directory where telldir() has been used. On a block
boundary it will occasionally miss a file when seekdir() is used to
return to a position previously recorded with telldir().

This also fixes a severe performance and memory usage problem with
telldir() on BSD systems. Each call to telldir() in BSD adds an
entry to a linked list, and those entries are cleaned up on
closedir(). This means with a large directory closedir() can take an
arbitrary amount of time, causing network timeouts as millions of
telldir() entries are freed
"

Apparently there are two problems: seekdir() not returning to the position initially retrieved using telldir() and a performance problem.

Before digging to much into source code, I decided to check the documentation of said functions, just to make sure, they were being used like they are meant to be used.

The OpenBSD manual page is clear:

The seekdir() function sets the position of the next readdir() operation on the named directory stream dirp. The new position reverts to the one associated with the directory stream when the telldir() operation was performed. Values returned by telldir() are good only for the lifetime of the DIR pointer, dirp, from which they are derived. If the directory is closed and then reopened, the telldir() value may be invalidated due to undetected directory compaction.

If you don't close the directory stream, seekdir() will take you back to the position previsouly obtained using telldir(). If the system behaves differently, then it's either a bug or the documentation is wrong. If the system indeed does not take you back to the right position, why do we have these functions then in the first place?

A look at the closedir() function in OpenBSD reveals that the statement made by the Samba people about performance in closedir() is wrong: In OpenBSD there is no linked list, but a smarter memory handling scheme implemented by Otto Moerbeek (otto@). FreeBSD, however, uses a linked list indeed, but they can switch to our code at any time. So the performance problem really is a non-issue.
Hunting the seekdir() Bug

As the original author of the *dir() library, you probably fixed
one of my bugs :-) Prior to the *dir() commands, programs just
opened, read, and interpreted directories directly. I had to
update a shocking 22 programs (a large percentage of the
programs available on UNIX at the time) to replace their direct
interpretation of directories with the *dir() library calls.
(Kirk McKusick; private communication)



What I needed is a test program to exercise these functions an eventually trigger the behaviour that prevented the Samba people from enabling a directory cache on BSD systems. I wrote a C program that approximately does the following steps:

   1. Create a directory and populate it with a certain number of files
   2. Iterate over the directory using readdir(), recording the position of the entry using telldir() before readdir(), and storing the obtained values in an array
   3. Delete a random number of files and also mark them as deleted in the in-memory array
   4. Iterate over the in-memory array, skipping the entries marked as deleted, and seekdir()
      to the others, doing a readdir() and compare the returned values with the in-memory copy
   5. Output a message when the in-memory copy and the value returned by readdir() are different

Jeremy told me that the problem occurs with large directories, so I began my tests with really large directories (up to 250'000 entries) and quite quickly I hit the issue. seekdir() won't return me to the recorded position. This kind of confirmed the problem the Samba people were seeing for more than three years.

I tweaked the values of my test program, to see if I can find a pattern. But looking at thousands of directory positions, filenames, inode numbers where more likely to turn me mad than to spot the problem... I started lowering the numbers and to my surprise, I could trigger the problem with as little as 10 or 20 files and deleting just one of them. Suddenly, I had a case that shows the problem on every run, no more randomness: Create 28 files, delete file 25 and seekdir to file 26: You end up at file 27!

Staring at the output of my program I suddenly saw the pattern as clear as can be:

Creating the directory with 28 files had created a directory that spans more than one block on the disk (2 in this case). File 25 was the first entry of the second block. Obviously the problem occured when you delete the first entry in a block of a directory and then return to the recorded position of the second entry in the same block. This would actually get you one entry to far.

By that time I had involved Otto to give me a hand and to confirm my findings. His first reaction: An interesting problem... ;) We investigated further and I began looking at the kernel code that removes a directory entry as well as the library code in libc that implements seekdir() and friends.
How the Kernel Removed Directory Entries

The kernel function to remove a directory entry, ufs_dirremove(), indeed treats entries that are located at the beginning of a block differently than others:

Code:
if (dp->i_count == 0) {
                /*
                 * First entry in block: set d_ino to zero.
                 */
                ep->d_ino = 0;
        } else {
                /*
                 * Collapse new free space into previous entry.
                 */
                ep->d_reclen += dp->i_reclen;
        }


If it is the first entry in a block, the inode number is set to zero, thus invalidating the entry. For all other entries, the record length of the to-be-deleted record is added to the record length of the previous entry.

Since the library uses the record length field of an entry to proceed to the next entry in readdir(), this effectively means that the removed entry, while it is still in the block on disc, will no longer be used.
How the C Library Accesses Directory Entries

The C library implements the opendir(), telldir(), readdir(), seekdir(), and closedir() functions. These functions were written in the 4.2BSD times so that UNIX programs don't need to handle directories by themselves.

Code:
/*
* get next entry in a directory.
*/
int
_readdir_unlocked(DIR *dirp, struct dirent **result)
{
        struct dirent *dp;

        *result = NULL;
        for (;;) {
                if (dirp->dd_loc >= dirp->dd_size)
                        dirp->dd_loc = 0;
                if (dirp->dd_loc == 0) {
                        dirp->dd_size = getdirentries(dirp->dd_fd,
                            dirp->dd_buf, dirp->dd_len, &dirp->dd_seek);
                        if (dirp->dd_size == 0)
                                return (0);
                        if (dirp->dd_size < 0)
                                return (-1);
                }
                dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc);
                if ((long)dp & 03)      /* bogus pointer check */
                        return (-1);
                if (dp->d_reclen <= 0 ||
                    dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc)
                        return (-1);
                dirp->dd_loc += dp->d_reclen;
                 if (dp->d_ino == 0)
                        continue;
                *result = dp;
                return (0);
        }
}


At first sight, this code looks correct. It will skip deleted entries that have their inode number set to zero and it will use the record lenght otherwise. And since a directory traversal using readdir() works just fine, this is code effectively works.

A close look at the seekdir() library implementation finally reveals the problem:

Code:
/*
* seek to an entry in a directory.
* Only values returned by "telldir" should be passed to seekdir.
*/
void
__seekdir(DIR *dirp, long loc)
{
        struct ddloc *lp;
        struct dirent *dp;

        if (loc < 0 || loc >= dirp->dd_td->td_loccnt)
                return;
        lp = &dirp->dd_td->td_locs[loc];
        dirp->dd_td->td_last = loc;
        if (lp->loc_loc == dirp->dd_loc && lp->loc_seek == dirp->dd_seek)
                return;
        (void) lseek(dirp->dd_fd, (off_t)lp->loc_seek, SEEK_SET);
        dirp->dd_seek = lp->loc_seek;
        dirp->dd_loc = 0;
        while (dirp->dd_loc < lp->loc_loc) {
                _readdir_unlocked(dirp, &dp, 0);
                if (dp == NULL)
                        break;
        }
}


This code will not work as expected when seeking to the second entry of a block where the first has been deleted: seekdir() calls readdir() which happily skips the first entry (it has inode set to zero), and advance to the second entry. When the user now calls readdir() to read the directory entry to which he just seekdir()ed, he does not get the second entry but the third.

Much to my surprise I not only found this problem in all other BSDs or BSD derived systems like Mac OS X, but also in very old BSD versions. I first checked 4.4BSD Lite 2, and Otto confirmed it is also in 4.2BSD. The bug has been around for roughly 25 years or more.
The Solution

The fix is surprisingly simple, not to say trivial: _readdir_unlocked() must not skip directory entries with inode set to zero when it is called from __seekdir().

q.e.d.
(and sorry that it took us almost twenty-five years to fix it)



Leigh Lundin Wrote:
I'm impressed!

Marc's report didn't mention it, but I imagine the bug's effect is cumulative. An in-service utility handling a case of 250,000 files hit with a number of deletions must have created a real mess as iterations progressed.

Marc seems nonplussed that the fix was 'surprisingly simple', but it's often like that– a flaw so tiny that it gets overlooked, often only a bit or two.


Source

  Replies (1)
 Hackers Find a New Place to Hide Rootkits
10-05-2008 06:27 PM Posted by: feinicks in Tech News
not sure where this goes!

hackers!!!Security researchers have developed a new type of malicious rootkit software that hides itself in an obscure part of a computer's microprocessor, hidden from current antivirus products.

Called a System Management Mode (SMM) rootkit, the software runs in a protected part of a computer's memory that can be locked and rendered invisible to the operating system, but which can give attackers a picture of what's happening in a computer's memory.

The SMM rootkit comes with keylogging and communications software and could be used to steal sensitive information from a victim's computer. It was built by Shawn Embleton and Sherri Sparks, who run an Oviedo, Florida, security company called Clear Hat Consulting.

The proof-of-concept software will be demonstrated publicly for the first time at the Black Hat security conference in Las Vegas this August.

The rootkits used by cyber crooks today are sneaky programs designed to cover up their tracks while they run in order to avoid detection. Rootkits hit the mainstream in late 2005 when Sony BMG Music used rootkit techniques to hide its copy protection software. The music company was ultimately forced to recall millions of CDs amid the ensuing scandal.

In recent years, however, researchers have been looking at ways to run rootkits outside of the operating system, where they are much harder to detect. For example, two years ago researcher Joanna Rutkowska introduced a rootkit called Blue Pill, which used AMD's chip-level virtualization technology to hide itself. She said the technology could eventually be used to create "100 percent undetectable malware."

"Rootkits are going more and more toward the hardware," said Sparks, who wrote another rootkit three years ago called Shadow Walker. "The deeper into the system you go, the more power you have and the harder it is to detect you."

Blue Pill took advantage of new virtualization technologies that are now being added to microprocessors, but the SMM rootkit uses a feature that has been around for much longer and can be found in many more machines. SMM dates back to Intel's 386 processors, where it was added as a way to help hardware vendors fix bugs in their products using software. The technology is also used to help manage the computer's power management, taking it into sleep mode, for example.

In many ways, an SMM rootkit, running in a locked part of memory, would be more difficult to detect than Blue Pill, said John Heasman, director of research with NGS Software, a security consulting firm. "An SMM rootkit has major ramifications for things like [antivirus software products]," he said. "They will be blind to it."

Researchers have suspected for several years that malicious software could be written to run in SMM. In 2006, researcher Loic Duflot demonstrated how SMM malware would work. "Duflot wrote a small SMM handler that compromised the security model of the OS," Embleton said. "We took the idea further by writing a more complex SMM handler that incorporated rootkit-like techniques."

In addition to a debugger, Sparks and Embleton had to write driver code in hard-to-use assembly language to make their rootkit work. "Debugging it was the hardest thing," Sparks said.

Being divorced from the operating system makes the SMM rootkit stealthy, but it also means that hackers have to write this driver code expressly for the system they are attacking.

"I don't see it as a widespread threat, because it's very hardware-dependent," Sparks said. "You would see this in a targeted attack."

But will it be 100 percent undetectable? Sparks says no. "I'm not saying it's undetectable, but I do think it would be difficult to detect." She and Embleton will talk more about detection techniques during their Black Hat session, she said.

Brand new rootkits don't come along every day, Heasman said. "It will be one of the most interesting, if not the most interesting, at Black Hat this year," he said.
  Replies (8)
 Xbox 360 GPU to Change to 65nm In August
10-05-2008 03:04 PM Posted by: feinicks in Tech News
Microsoft began in April farming out production of 65nm graphics chips and north-bridge chips for its latest version of XBox360 game consoles to Taiwanese foundries Taiwan Semiconductor Manufacturing Co. (TSMC), Advanced Semiconductor Engineering Inc. (ASE) and Nanya PCB Corp.

Microsoft will make available its Jasper version of XBox360 game consoles in August this year and has contracted dedicated chipmakers to build chips for the latest machine. Contracts for manufacturing, packaging and testing the 65nm Xenon microprocessors have gone to International Business Machines (IBM).

TSMC is chosen to make the 65nm graphics chips and north-bridge chips for Xenon chips, ASE is contracted to package and test the two chips, and Nanya has won orders to supply flip-chip packaging substrates. The contract has booked a total of foundry capacity for around 10,000 300mm wafers at TSMC, currently the No.1 player of silicon-foundry industry worldwide.

People familiar with the contracts said Microsoft ordered 50% more contract packaging and testing capacity as well as flip-chip substrate in the second quarter than the first one, giving a boost to Nanya and ASE in their revenue growth this quarter.

Industry watchers pointed out that Microsoft decided to install 65nm chips in its latest XBox360 machine on grounds that the company had depleted in the first quarter the inventory of 90nm chips for its Falcon version of XBox360 and sought to bring down costs and heat in the machine by using smaller chips.

Falcon machines are equipped with 90nm processors made by IBM and Chartered Semiconductor Manufacturing as well as packaged and tested by ASE. TSMC was contracted to build 90nm graphics chips for the older machine.

Industry watchers estimated TSMC to win contracts to make chips for next-generation version of XBox360 dubbed as Valhalla, slated to debut in the fall of 2009.


the source

Seems like MS is ready to put up a fight! PS3 has a much potent GPU than XBOX360... hence its gradual success over 360! This may change certain thins.. but how much will remain a speculation!
  Replies (4)
 Niko going to San Andreas?
09-05-2008 02:30 PM Posted by: YoYoBallz in Tech News
After I just beat GTA 4, it's kinda nice to see small rumors like that kinda make you hope that Niko's story will keep going.  A GTAForums member spotted this small picture on the Social Club site.

[image]



A ticket for Niko to go to San Andreas?  Could this be where the next GTA takes place????

Just when you thought that Liberty city couldn't get any better, just think of a re-made San Andreas!  

Discuss
  Replies (11)
 Hackers' posts on epilepsy forum cause migraines, seizures
08-05-2008 11:07 PM Posted by: Slushba132 in Other News

Quote:
Computer attacks typically don't inflict physical pain on their victims.

But in a rare example of an attack apparently motivated by malice rather than money, hackers recently bombarded the Epilepsy Foundation's Web site with hundreds of pictures and links to pages with rapidly flashing images.

The breach triggered severe migraines and near-seizure reactions in some site visitors who viewed the images. People with photosensitive epilepsy can get seizures when they're exposed to flickering images, a response also caused by some video games and cartoons.

The attack happened when hackers exploited a security hole in the foundation's publishing software that allowed them to quickly make numerous posts and overwhelm the site's support forums.

Within the hackers' posts were small flashing pictures and links — masquerading as helpful — to pages that exploded with kaleidoscopic images pulsating with different colors.


http://news.yahoo.com/s/ap/20080507/ap_o...uscrcjtBAF

Seems sick and wrong with a dash of funny.

  Replies (13)
 PSP Filer updated to 5.0
08-05-2008 09:19 PM Posted by: pereeski in PSP News
PSP developer Mediumgauge, has released an update to his beautifly simple, yet powerful file management system for the PSP, PSP Filer. This is only a minor update, however any update is a good update. Listed is the changelog for this release:

Quote:
* added Greek mode.
* fixed a bug that Filer was crashed when it opened some kind of RAR file (probably having a comment).
* fixed a bug that a zipped file made by Mac OS could not be accessed.

Source: Here


Attached File(s)
.zip File  PSPFiler5.0.zip (Size: 1.02 MB / Downloads: 14)
  Replies (5)
 Snes9xTYL 0.4.2mecm | Build date 5-3-08 |
08-05-2008 05:21 AM Posted by: xero1 in PSP News
[image]

This is the best version of SnesTYL for the 3.XX kernel to date, it does not have the sound glitches that current ports of SnesTYL have, and it runs most games faster.

Note:

This is a repack with a bad translated readme_ENG.txt and the needed folders and ini's files.


README.TXT Wrote:
ソースコードs9xTYLmecmsrc.zip。バグ等が起きても責任は持てません。
Me版が不安定なようならEBOOT.PBP.user使ってください。

更新履歴:
2007/10/21 ホームボタンでメニューが出るようにした。
           versioninfoにロムのCRCを表示するようにした。
2007/10/22 PSP acceleratedでブラックスクリーンになっていた。修正
           DSP1ちょこっと高速化?
2008/04/23 user版 ちょこっと速度アップしたかもしれない
      Me版 初リリース。fm3.xxMe版の150% このuser版の115%速度アップ。とりあえず動くレベル。     1287 1501
         代償としてスリープとクロック変更ができません。
2008/04/24 Me版  サウンドが少しおかしいのを修正したつもり。速度2%アップ                               1347 1534
2008/04/25 Me版  バグが発生する可能性があるため一部ロールバック                                       1293 1524 887
2008/05/01 ハイレゾクオリティアップ,"PSP accelerated"、"PSP accel. + accur. soft.","PSP accel. + approx. soft."のとき。ものによっては見ずらいかも
2008/05/03 速度2%アップ。SA-1多少高速化したかもしれない                                                1438 1542 923


Translated README.TXT Wrote:
Source codes9xTYLmecmsrc.zip?Bug and the like occurring, it cannot have responsibility. Me Way edition is unstable, if EBOOT.PBP.user Please use.

Renewal past record:

2007/10/21 The menu that tried comes out with the foam/home button. Version info ROMCRC It tried to indicate.
2007/10/22 PSP accelerated So it had become the black screen. Correction DSP1Little bit acceleration?
2008/04/23 users Perhaps edition speed it raised little bit, Me Edition first release.fm3.xxMeEdition150% ThisuserEdition115%Speed rise. The level which moves temporarily. 12,871,501 Sleep and clock modification is not possible as a compensation.
2008/04/24 Me Edition  The intention of correcting the fact that sound is strange a little.Speed2%Rise 13,471,534
2008/04/25 Me Edition  Because there is a possibility bug occurring part rollback 12,931,525,632
2008/05/01 [hairezokuoriteiatsupu]“PSP accelerated “PSP accel. + accur. soft. ““PSP accel. + approx. soft. “When being. Depending upon the thing you do not see, whether the leprosy
2008/05/03 Speed2%Rise.SA-1Perhaps it accelerated more or less, 14,381,542,400


source



Attached File(s)
.7z File  Snes9xTYL 0.4.2mecm.7z (Size: 829.5 KB / Downloads: 111)
  Replies (9)
Older Posts »

 
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  


Latest Threads
Why did you join EP?
Last Post by: feinicks
Today 04:01 AM
» Replies: 56
» Views: 574
Stick figures
Last Post by: feinicks
Today 03:54 AM
» Replies: 3
» Views: 15
O____O
Last Post by: boogschd
Today 03:39 AM
» Replies: 23
» Views: 151
new vector/siggy
Last Post by: rockhead
Today 03:38 AM
» Replies: 0
» Views: 0
another new sig
Last Post by: rockhead
Today 03:35 AM
» Replies: 1
» Views: 15
[release] Ironman gameboo...
Last Post by: boogschd
Today 03:35 AM
» Replies: 3
» Views: 33
new siggy
Last Post by: rockhead
Today 03:34 AM
» Replies: 4
» Views: 18
Haruhi Suzumiya in GTA
Last Post by: boogschd
Today 03:33 AM
» Replies: 4
» Views: 38
Corrupt A Wish!
Last Post by: boogschd
Today 03:31 AM
» Replies: 549
» Views: 4598
Hacker Team Translates "T...
Last Post by: Dr_LaTino
Today 03:29 AM
» Replies: 1
» Views: 27

Online Users
There are currently 32 online users.
» 8 Member(s) | 24 Guest(s)
feinicks, Games like a Grrl, Hellgiver, noobletjoe, osnap1584, rockhead, smokepsp32, Syfe

  ZiNgA BuRgA's Programs & Stuff
RCO Editor
Simple Popstation GUI
PSPConv