Re: Add check when store disk cache

2015-10-13 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 19.09.2015 09:00, Andrei Borzenkov wrote: > 18.09.2015 12:07, Arch Stack пишет: >> I want to use the part of the filesystem codes in GRUB to read different >> filesystems on Windows. I have almost completed it and I will release >> it in >> a few days. >> But it crash sometimes because of the wr

Re: Add check when store disk cache

2015-09-19 Thread Andrei Borzenkov
18.09.2015 12:07, Arch Stack пишет: I want to use the part of the filesystem codes in GRUB to read different filesystems on Windows. I have almost completed it and I will release it in a few days. But it crash sometimes because of the write of zero pointer.I debug it and find why it crashed. Pl

Re: Add check when store disk cache

2015-09-18 Thread Arch Stack
I want to use the part of the filesystem codes in GRUB to read different filesystems on Windows. I have almost completed it and I will release it in a few days. But it crash sometimes because of the write of zero pointer.I debug it and find why it crashed.When I apply this patch, it won't crash bec

Re: Add check when store disk cache

2015-09-17 Thread Andrei Borzenkov
18.09.2015 03:15, Arch Stack пишет: I found that the function *grub_disk_cache_store* didn't check for *cache->lock* before free *cache->data*, and didn't set *cache->lock* before memcpy something to *cache->data*. If multi thread handle with the same cache at the same time, it will cause a fault

Add check when store disk cache

2015-09-17 Thread Arch Stack
I found that the function *grub_disk_cache_store* didn't check for *cache->lock* before free *cache->data*, and didn't set *cache->lock* before memcpy something to *cache->data*. If multi thread handle with the same cache at the same time, it will cause a fault. I have created a patch for it. 000