{"push_id":2812790378,"size":2,"distinct_size":1,"ref":"refs/heads/usb_bootable","head":"4cff157f0c21d762770bc1c24288abbb4ad91196","before":"f59c6f83acdcc770cdae9c289473c83533667baa","commits":[{"sha":"d5181e44dd10615fe6c3515e38ac11ff01b51ec6","author":{"name":"Timo Kreuzer","email":"8f7625908845c8c58833d55877edfebac051f480@reactos.org"},"message":"[NTOS] Fix MiFindInitializationCode (#751)\n\nShort: The code was suffering from an off-by-one bug (inconsistency between inclusive end exclusive end address), which could lead to freeing one page above the initialization code. This led to freeing part of the kernel import section on x64. Now it is consistently using the aligned/exclusive end address.\r\n\r\nLong:\r\n* Initialization sections are freed both for the boot loaded images as well as for drivers that are loaded later. Obviously the second mechanism needs to be able to run at any time, so it is not initialization code itself. For some reason someone decided though, it would be a smart idea to implement the code twice, once for the boot loaded images, once for drivers and concluding that the former was initialization code itself and had to be freed.\r\n* Since freeing the code that frees the initialization sections, while it is doing that is not possible, it uses a \"smart trick\", initially skipping that range, returning its start and end to the caller and have the caller free it afterwards.\r\n* The code was using the end address in an inconsistent way, partly aligning it to the start of the following section, sometimes pointing to the last byte that should be freed. The function that freed each chunk was assuming the latter (i.e. that the end was included in the range) and thus freed the page that contained the end address. The end address for the range that was returned to the caller was aligned to the start of the next section, and the caller used it to free the range including the following page. On x64 this was the start of the import section of ntoskrnl. How that worked on x86 I don't even want to know.","distinct":false,"url":"https://api.github.com/repos/nkrapivin/reactos/commits/d5181e44dd10615fe6c3515e38ac11ff01b51ec6"},{"sha":"4cff157f0c21d762770bc1c24288abbb4ad91196","author":{"name":"Nikita Krapivin","email":"ab004ff5f36fccddb13ed63420090cebcfbe4d74@yandex.ru"},"message":"Merge branch 'master' into usb_bootable","distinct":true,"url":"https://api.github.com/repos/nkrapivin/reactos/commits/4cff157f0c21d762770bc1c24288abbb4ad91196"}]}
{"actor":{"display_login":"nkrapivin"}}