04 November 2007

sololis

Man, I wish I wasn't so tired as I'd like to explain this. This is positively the funniest thing I've come across all week. I'm starting to study the Solaris heap, not only because I want to learn it but because it's starting to look like I have a fairly large vulnerability in Solaris that of course deals with the heap, this is what I came across.

/* i may have missed a line here or there but atm this is what i think happens
* (aka i havent actually gotten a sun box running well enough yet to test this)
* WAY TO GO SUN!
* -jf
*/

src/lib/libc/inc/mtlib.h:

[...]
#if defined(THREAD_DEBUG)
extern void assert_no_libc_locks_held(void);

#else
#define assert_no_libc_locks_held()
#endif

src/lib/libc/port/threads/sync.c:

[...]
#pragma weak _private_mutex_lock = __mutex_lock
[...]
int

__mutex_lock(mutex_t *mp)
{
ASSERT(!curthread->ul_critical || curthread->ul_bindflags);

return (mutex_lock_impl(mp, NULL));
}
[...]

static int
mutex_lock_impl(mutex_t *mp, timespec_t *tsp)
{

ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;

uberflags_t *gflags;
int mtype;

/*
* Optimize the case of USYNC_THREAD, including
* the LOCK_RECURSIVE and LOCK_ERRORCHECK cases,
* no error detection, no lock statistics,
* and the process has only a single thread.
* (Most likely a traditional single-threaded application.)
*/
if ((((mtype = mp->mutex_type) & ~(LOCK_RECURSIVE|LOCK_ERRORCHECK)) |

udp->uberflags.uf_all) == 0) {
/*
* Only one thread exists so we don't need an atomic operation.
*/

if (mp->mutex_lockw == 0) {
mp->mutex_lockw = LOCKSET;

mp->mutex_owner = (uintptr_t)self;
DTRACE_PROBE3(plockstat, mutex__acquire, mp, 0, 0);

return (0);
}
if (mtype && MUTEX_OWNER(mp) == self)

return (mutex_recursion(mp, mtype, MUTEX_LOCK));

/*
* We have reached a deadlock, probably because the
* process is executing non-async-signal-safe code in
* a signal handler and is attempting to acquire a lock
* that it already owns. This is not surprising, given
* bad programming practices over the years that has
* resulted in applications calling printf() and such
* in their signal handlers. Unless the user has told
* us that the signal handlers are safe by setting:
* export _THREAD_ASYNC_SAFE=1
* we return EDEADLK rather than actually deadlocking.
*/
if (tsp == NULL &&
MUTEX_OWNER(mp) == self && !self->ul_async_safe) {

DTRACE_PROBE2(plockstat, mutex__error, mp, EDEADLK);
return (EDEADLK);

[...]

src/lib/libc/port/gen/malloc.c:

[...]
void *
malloc(size_t size)
{
void *ret;

if (!primary_link_map) {
errno = ENOTSUP;

return (NULL);
}
assert_no_libc_locks_held();

(void) _private_mutex_lock(&libc_malloc_lock);
ret = _malloc_unlocked(size);

(void) _private_mutex_unlock(&libc_malloc_lock);
return (ret);

}

14 comments:

products said...

China Wholesale has been described as the world’s factory. This phenomenom is typified by the rise ofbusiness. Incredible range of products available with China Wholesalers “Low Price and High Quality” not only reaches directly to their target clients worldwide but also ensures that wholesale from china from China means margins you cannot find elsewhere and buy products wholesaleChina Wholesale will skyroket your profits.wedding dressescheap naruto cosplayanime cosplaycheap Gemstone Jewelry

products said...

Women’s nike tn Shox Rivalry est le modèle féminin le plus tendance de baskets pour le sport. tn chaussuresConcernant la semelle :spyder jacketsCheap Brand Jeans Shop - True Religion Jeans cheap nike shox & Puma Shoes Online- tn nike,Diesel Jeans le caoutchouc extérieur, l’EVA intermédiaire Levis Jeanset le textile intérieur s’associent pour attribuer à la.ed hardy shirts pretty fitCharlestoncheap columbia jackets. turned a pair of double plays to do the trick.Lacoste Polo Shirts, puma basket, Burberry Polo Shirts.wholesale Lacoste polo shirts and cheap polo shirtswith great price.Thank you so much!!cheap polo shirts men'ssweate,gillette mach3 razor bladesfor men.As for Cheap Evisu JeansCheap Armani Jeanspolo shirtsPuma shoes

uwanna said...

gucci replica handbags
men gucci shoes
Gucci men sneakers
Gucci men moccasins
gucci women sneakers
gucci women boots
Gucci men boots
Gucci
Gucci shop
Gucci bags
Gucci shoes
Replica GUCCI SHOES
wholesale gucci shoes
cheap Gucci handbags
Gucci ON sale
Gucci Belts
Gucci small accessories
Gucci hats & scarves
Gucci wallets
Gucci Handbags
Women Gucci shoes
Men Gucci shoes
discount gucci shoes
cheap Gucci shoes

polo shirts said...

History of polo ralph lauren. Polo fashions had its humble beginnings in 1968 when tie salesman Ralph Lauren gave it a kick start. By 1969 he had a boutique polo ralph lauren factory stores within the Manhattan department store Bloomingdale's. ... Brands and luxury standard. Since Ralph Lauren's first brand, Polo Ralph Lauren, was launched, the company has expanded to include a variety of luxury brands such as Polo Golf, Polo Denim, Polo Sport. You can buy cheap Ralph Lauren Clothing at Ralph Lauren outlet.Also We provide polo shirts
Ralph Lauren polo shirt, 50% OFF! polo ralph lauren outlet online is your best choice!In 2006, polo ralph lauren outlet became the first designer in Wimbledon's 133-year history to create official uniforms for the tournament. As part of this year's event, which starts next week, polo ralph lauren sale will introduces the first ... determination to maintain and enhance the values for which our two brands are famous throughout the world. The rugby ralph lauren brand brings to Wimbledon the look of timeless elegance, drawing on our rich history and traditions

Herve Leger said...

Max Azria Herve Leger of Herve Leger from France, was founded in 1985, Paris is the famous fashion herve leger design house. Herve Leger dress to shaping the modern women, women have shown that line feels soft and the silhouette. Herve Leger clothing each place of body, to cut out the Christian Louboutin Pumps perfect bodily form female carved image and get the name "the bandage dress". Whether on the red carpet in Christian Louboutin attendance or Leger Herve party town of clothing for you to create unforgettable image.
In 1999, Paris dress GHD Styler design house by the Los Angeles fashion giant Herve Leger BCBG Azria Group owns, Max. This is the first time in history of French fashion brand by American herve leger bandage dress designer at the helm. Herve Leger in design and production of high-grade luxury and ready-to-wear uniforms. She and the perfect combination of Azria Max undoubtedly makes the Christian Louboutin Boots brand development in a new step. Max Azria Group determined BCBG Herve expand Leger of retail sales in New York, soon will appear on Madison avenue Herve four Hermes Leger boutiques. Soon, Beverly villa, the legendary Rue Paris Cambon, Las Vegas also have a shop.
In the summer of 2007, in order to meet the market demand growth, Leger released by Max Herve Azria cocktail dress design. Soon, the world and the garment Moncler wholesalers, will cooperate with Herve Leger garment around the world.
Since its establishment, from Herve Leger marked and sexy design style attracted numerous international customers worldwide, which is the most beautiful and the most ghd hair straighteners fashionable women. Hollywood star like Lindsay Lohan, article required, new Charlize Theron Zeta - a flop, and Beyonce, Christina Aguilera, Eva Mendes, Jackson, cernet operated language examiner "- Nicole Richie, Jessica Simpson, herve leger dresses Eva Longoria and Jessica Biel, Leger Herve became the most loyal fans. Herve Leger name forever and Hollywood's glittering and charm.

Herve Leger said...

Max Azria Herve Leger of Herve Leger from France, was founded in 1985, Paris is the famous fashion herve leger design house. Herve Leger dress to shaping the modern women, women have shown that line feels soft and the silhouette. Herve Leger clothing each place of body, to cut out the Christian Louboutin Pumps perfect bodily form female carved image and get the name "the bandage dress". Whether on the red carpet in Christian Louboutin attendance or Leger Herve party town of clothing for you to create unforgettable image.
In 1999, Paris dress GHD Styler design house by the Los Angeles fashion giant Herve Leger BCBG Azria Group owns, Max. This is the first time in history of French fashion brand by American herve leger bandage dress designer at the helm. Herve Leger in design and production of high-grade luxury and ready-to-wear uniforms. She and the perfect combination of Azria Max undoubtedly makes the Christian Louboutin Boots brand development in a new step. Max Azria Group determined BCBG Herve expand Leger of retail sales in New York, soon will appear on Madison avenue Herve four Hermes Leger boutiques. Soon, Beverly villa, the legendary Rue Paris Cambon, Las Vegas also have a shop.
In the summer of 2007, in order to meet the market demand growth, Leger released by Max Herve Azria cocktail dress design. Soon, the world and the garment Moncler wholesalers, will cooperate with Herve Leger garment around the world.
Since its establishment, from Herve Leger marked and sexy design style attracted numerous international customers worldwide, which is the most beautiful and the most ghd hair straighteners fashionable women. Hollywood star like Lindsay Lohan, article required, new Charlize Theron Zeta - a flop, and Beyonce, Christina Aguilera, Eva Mendes, Jackson, cernet operated language examiner "- Nicole Richie, Jessica Simpson, herve leger dresses Eva Longoria and Jessica Biel, Leger Herve became the most loyal fans. Herve Leger name forever and Hollywood's glittering and charm.

boshi said...

2010 your best choice for christmas gift. First, Power Balance silicone Bracelets. They are are sweeping the whole world.
power balance bracelets were first released in January of 2007 and now they become the most popular health bracelets among people of all ages and all walks of life, including some of the super athletes.

Second, Silly bandz. A very famous brand of silicon rubber bands. bakugan toys
silly bandz come in different shapes like objects, animals and letters and this is why these are loved by kids of all ages. The bands are very popular because they come in many colors, shapes and themes. There is no doubt that you will fall in love with them the minute you see them. These bands can wither be used as bracelets or as regular rubber bands. The choice is entirely of the user.

Third, Far away on the mysterious Isle of Zoobles reside hundreds of adorable, little creatures with a magnificent ability, they can magically transform into tiny balls hiding from the unknown, rolling to colorful destinations, sleeping after a long day But beware, you never know when these mischievous Zoobles are going to pop open and surprise you.

Fourth, EFX’s holographic technology contains algorithms and frequencies that interact positively with this energy field in both humans and animals at the cellular level. When placed near the body, especially at key energy centers such as the hands and feet, EFX bracelet’s products will harmonize with the body’s naturally occurring bioelectric frequencies.

weddingdresses said...

The Power Balance bracelet is made of pure surgical grade silicone that is extremely durable. Its stretch feature optimizes users' comfort level. It comes equipped with two, visible power balance holograms and this sporty and stylish bracelet goes with everything.

Specification:

Silicone Power Balance Wristband Bracelet
The band made of 100% silicone rubber
With 2 visible hologram disks for balance power,waterproof.


Except for this product,customers are eager to shop for:

Silly Bandz
Moncler Jackets
Reebok Easytone

aiya said...

Office 2010
Microsoft Office 2010
Microsoft word
Office 2007
Microsoft Office
Microsoft Office 2007
Office 2007 key
Office 2007 download
Office 2007 Professional
Outlook 2010
Microsoft outlook
Microsoft outlook 2010
Windows 7

pandorasell said...

Silver pandora jewelry store comprises replacement atomic number 79 equally the metal by choice in that pandora jewelry website flavors manners. .925 alright superlative Ag Jewelry checks 92.5% complete silver pandora jewelry online and comprises assorted with extra debases to beef up them and abbreviate maculating pandora style jewelry coming through a hard-nosed alloy as pandora bracelet beads . The rise in metal prices, especially gold, have begun to alter pandora leather bracelet dashes. Designers are applying sterling pandora style bracelet a lot of today because of its gold pandora bracelet appeal and affordability. Designers care Jacques Louis pandora charm necklace David Yurman and those from pandora’s cause changed their focus and are making A-list assembles by .925 Fine Sterling pandora necklace charms Although Silver is affordable its price has quietly risen 300% inch the last 5 years and is astir across 50% pandora silver beads these class entirely. Many investment advisers* recommend a portion of your wealth be inward Ag and amber. Trend setters who comprised the first to begin wearing pandora necklace leather metal to match tatto last word and additional electric current styles as well do good along accepting pandora bracelet charms worth more than they paid for it.

2011bagnews said...

After going through several online stores, cheap sunglasses select sdfkj0fdscxy one product of your choice and which will fit your budget. Now compare the price offered by wholesale sunglasses that online store with other stores. This will ensure you that you are discount sunglasses being fairly charged for the pair of sunglasses that you have chosen. After you are adidas sunglasses convinced about the price, move ahead with your purchasing decision.
Wearing low quality sunglasses not only makes cebe sunglasses you look cheap but also it has some harmful effects on your eyes. Cocoons Sunglasses Lot of discomforts like rashes and infections could make you feel uncomfortable. So before you purchase carrera sunglasses make sure that you are buying a genuine quality.

Very few maui jim sunglasses have the permission to sell designer sunglasses. So choose the dealer who is offering branded quality and ensures cheap oakley sunglasses you about the safety and protection of your eyes. Today everyone wants to look smarter and better than others. So buying stylish and protective sunglasses at affordable prices discount oakley sunglasses from wholesale market could be your best choice.

asdwe said...

Online Wholesale oakley Sunglasses store where you can buy high fashion but oakleys sunglasses at low price and ship to you all fake Oakley sunglasses, cheapest Oakley sunglasses, replica
ray ban sunglasses
wholesale in our fake Oakley sunglasses store, all fake Oakleys for sale Shop for maui jim sunglasses
at the best prices on the web and get free shipping on all orders over 10 items! Cheap sunglasses for men Discount Sale : - Active Sunglasses Lifestyle nmkgasdfwqwe sunglasses Sport Sunglasses Polarized Sunglasses New Oakley Sunglasses New LV

qinbincai123 said...

Some giant trees have bloom so yutrew88 small.They might as well have none at all.
Cheap Hats

Cheap New Era Hats

Wholesale New Era Hats

Cheap NBA Hats

Cheap MLB Hats

Fox Racing Hats

Red Bull Hats

Last Kings Snapback Hats

YMCMB Snapback Hats

Polo Hats

Jerry Gene said...

I really like your writing style. Nice Post keep it up.

Asus - K53E-DS31 15.6" LED Notebook - Intel Core i3 i3-2350M 2.30 GHz - Mocha

Asus - 14" Notebook 4 GB Memory - 500 GB Hard Drive - Black (P43E-XH31)