Git Product home page Git Product logo

darlingserver's People

Contributors

curioustommy avatar facekapow avatar rdrpenguin04 avatar scamdotnet avatar t0rr3sp3dr0 avatar trungnt2910 avatar zhaofengli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

darlingserver's Issues

xnu-7195.141.2 [darlingserver]

Source

actually, it's already based on the updated XNU kernel (XNU-7195.141.2); back when i said i would use the same version, i was assuming that i could port the existing LKM code with a few modifications, which turned out not to be the case (some of the code can be, but a lot of it depends on Linux kernel APIs).

Thanks facekapow!

Out of bounds array write

This loop goes over processor_count and writes into processor_array, assuming MAX_SCHED_CPUS is less or equal to get_nprocs_conf(). However, on my system get_nprocs_conf() returns 128, while MAX_SCHED_CPUS is 64, leading to memory corruption and finally process termination.

for (size_t i = 0; i < processor_count; ++i) {
processor_t processor = NULL;
processor = kalloc(sizeof(*processor));
processor_array[i] = processor;

I'm not entirely sure if it is safe to just limit the iteration to MAX_SCHED_CPUS or if adjusting the macro makes more sense.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.