Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1605263
| Path | csiph.com!news.redatomik.org!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Peter Teoh <htmldeveloper@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | memcpy without considering the get_zeroed_page() size returned |
| Date | Tue, 21 Mar 2017 03:40:01 +0100 |
| Message-ID | <tnhSh-5lt-3@gated-at.bofh.it> (permalink) |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3uZpvEzpuosqWLabvfxMfsql/+QcEXznm2SzHt8cDx8=; b=l6ZhL8dpy5XYB2TiRxD7zR8WnWAhhjuRixlpcpsdh69SeHBCPFCzsmpilb/PKDdkht CzBKEUYnAeNuOW13+5WAkoEP6yb/B28mGAMYWzSD7GmMWDbVIp1MwhyMEnfPPk8GQnd6 tRJ/KCuM0DfcK6BEtpbjDD6rSFUogz3XVFIVTDCiX1wFbioNT7yv2MYj9tn4e3WoZVvi FvtvYVlCYeAUm1cmKwu8pnCcIgO5hCvwh5b6uPlE8OZplwqa2KTAtnA1STQ7yl/ATxxU l3QTssyPbQ3Uchlxrl8ugrE6Nt1SPHqrl/n9lFd6OU1KZ13dWZTFYYHhYh7L/BWognKW 7uKQ== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3uZpvEzpuosqWLabvfxMfsql/+QcEXznm2SzHt8cDx8=; b=cUK4ULBBYg3qMmGXT4SAuR/Ybv37rdVK238Q7OPh3ecfXxYll/vvma/MHwfciMOqxF UNNWwkTIUNVFSEAtL4EKVICwlKNlsUATGsyrGL1LD/0IKDCeVinRK+Tf+XXoDAd2pVfF CfFWYZRxYOXTEDrIoOelzOIspiQDi1h9FpOJh+SSCndvecxSDp4XdO58RJhjHw/dMc/C jJpZ9cyg2sSU4ts0ZMtpkcVAR1cy7AzXrKcu48qvDxSE6BsRXV8soDqRoPkE9qaJQlet owmEMJKxMz4Os/z9AfPk2yuryb+X5/IL0eRXQ8xYw5WypmtXGpakxKehcgGouCF+fZB1 yL/Q== |
| X-Gm-Message-State | AFeK/H2VPMOAdgPt/fpZzIORykmkAtGoQkA0ejjr3Gf5pxImd9dv2gJ/T4LwXnpX+9UAGQCzOBx9EHiX5pyGbA== |
| X-Received | by 10.157.46.107 with SMTP id c40mr18270928otd.163.1490063730476; Mon, 20 Mar 2017 19:35:30 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 17 |
| Organization | linux.* mail to news gateway |
| X-Original-Date | Tue, 21 Mar 2017 03:35:30 +0100 |
| X-Original-Message-ID | <CAHnt0GXG6BwSei=oPufHfTby5e7D9AjiC4MQYD7J8TuOrNCbQQ@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1605263 |
Show key headers only | View raw
https://github.com/torvalds/linux/blob/master/arch/arm64/kernel/vdso.c /* kuser helpers */ memcpy((void *)vpage + 0x1000 - kuser_sz, __kuser_helper_start, kuser_sz); /* sigreturn code */ memcpy((void *)vpage + AARCH32_KERN_SIGRET_CODE_OFFSET, __aarch32_sigret_code_start, sigret_sz); I am just curious: depending on the configuration, will it ever happened that get_zeroed_page() ever produce less amount of memory for the above memcpy() operation to be successful? Ie, why the offset of 0x1000 is done without ever considering the actual amount of memory allocated? Please email me direct (no on LKML mailing list).
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
memcpy without considering the get_zeroed_page() size returned Peter Teoh <htmldeveloper@gmail.com> - 2017-03-21 03:40 +0100
csiph-web