Re: [PATCH] binder: fix async_free_space accounting for empty parcels
On Mon, Dec 20, 2021 at 11:01:50AM -0800, Todd Kjos wrote: > In 4.13, commit 74310e06be4d ("android: binder: Move buffer out of area > shared with user space") > fixed a kernel structure visibility issue. As part of that patch, > sizeof(void *) was used as the buffer size for 0-length data payloads so > the driver could detect abusive clients sending 0-length asynchronous > transactions to a server by enforcing limits on async_free_size. > > Unfortunately, on the "free" side, the accounting of async_free_space > did not add the sizeof(void *) back. The result was that up to 8-bytes of > async_free_space were leaked on every async transaction of 8-bytes or > less. These small transactions are uncommon, so this accounting issue > has gone undetected for several years. > > The fix is to use "buffer_size" (the allocated buffer size) instead of > "size" (the logical buffer size) when updating the async_free_space > during the free operation. These are the same except for this > corner case of asynchronous transactions with payloads < 8 bytes. > > Fixes: 74310e06be4d ("android: binder: Move buffer out of area shared with > user space") > Signed-off-by: Todd Kjos > --- Looks good. Acked-by: Christian Brauner ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[driver-core:driver-core-testing] BUILD SUCCESS 67e532a42cf4c6c214ed39e33e617bca29508f4e
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-testing branch HEAD: 67e532a42cf4c6c214ed39e33e617bca29508f4e driver core: platform: document registration-failure requirement elapsed time: 1090m configs tested: 150 configs skipped: 3 The following configs have been built successfully. More configs may be tested in the coming days. gcc tested configs: arm defconfig arm64allyesconfig arm64 defconfig arm allyesconfig arm allmodconfig i386 randconfig-c001-20211223 arm moxart_defconfig powerpc mpc834x_itxgp_defconfig sparc sparc64_defconfig powerpc wii_defconfig powerpc64alldefconfig powerpc ppc44x_defconfig mips tb0287_defconfig arm pxa255-idp_defconfig mips ath25_defconfig arcnsimosci_defconfig arm pxa3xx_defconfig sh r7780mp_defconfig shtitan_defconfig arm pcm027_defconfig pariscgeneric-32bit_defconfig riscv defconfig sh kfr2r09-romimage_defconfig powerpc pcm030_defconfig arc nsimosci_hs_defconfig h8300 edosk2674_defconfig arcvdk_hs38_defconfig m68k m5208evb_defconfig powerpc tqm8555_defconfig arm lpc32xx_defconfig mips sb1250_swarm_defconfig arm aspeed_g4_defconfig arm pxa_defconfig sh kfr2r09_defconfig powerpc mpc832x_mds_defconfig ia64 allyesconfig powerpc skiroot_defconfig sh sdk7786_defconfig arm pxa168_defconfig powerpc makalu_defconfig armtrizeps4_defconfig armzeus_defconfig sh se7722_defconfig m68k m5475evb_defconfig xtensasmp_lx200_defconfig armvexpress_defconfig powerpc allmodconfig sh rts7751r2d1_defconfig s390 allyesconfig openriscdefconfig m68k bvme6000_defconfig alpha defconfig riscv nommu_k210_sdcard_defconfig parisc alldefconfig mips bmips_be_defconfig mipsgpr_defconfig sh shx3_defconfig powerpc walnut_defconfig arm h3600_defconfig m68k amiga_defconfig arm aspeed_g5_defconfig riscv allnoconfig arm randconfig-c002-20211222 arm randconfig-c002-20211223 ia64 allmodconfig ia64defconfig m68k allmodconfig m68kdefconfig m68k allyesconfig nios2 defconfig arc allyesconfig nds32 allnoconfig nds32 defconfig nios2allyesconfig cskydefconfig alphaallyesconfig xtensa allyesconfig h8300allyesconfig arc defconfig sh allmodconfig parisc defconfig s390 allmodconfig s390defconfig parisc allyesconfig i386 allyesconfig sparcallyesconfig sparc defconfig i386defconfig i386 debian-10.3-kselftests i386 debian-10.3 mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allnoconfig x86_64 randconfig-a001-20211222 x86_64 randconfig-a003-20211222 x86_64 randconfig-a005-20211222 x86_64 randconfig-a006-20211222 x86_64 randconfig-a004-20211222 x86_64 randconfig
Please i need your urgent help
-- Hello dear beloved, I am Master Solomon, a 22 years old and the only child of late Mr. and Mrs. Aka David. My father was a businessman in the cocoa and gold business here in Abidjan, the economic capital of the Ivory Coast. My father was on a business trip with one of his business partners who poisoned him to death on that business trip. Before my father died in the private hospital where he was treated, he had a sum of five million and five hundred thousand dollars ($ 5,500,000) in one of the leading banks here in Abidjan, where he deposited it and uses my name as the closest relative, since he has no other child, and recommended me to choose a foreign partner who will help me move the money abroad for investment so that my evil relatives don't kill me and take away what he left for me. I want you to transfer this to your investment account there in your country. I would like to ask for your support in the following areas: (1) To provide a bank account to which this money is transferred. (2) Act as my guardian to secure this fund as I am only 22 years old and have little experience. (3) To help me get to your country after the transaction is complete so that I can continue my studies and invest under your care. I am ready to give you 30% of the total amount realized as compensation for your effort after completion. Thank you as I am waiting for your reply. Godd bless you. Koffi Solomon ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Donation From Williams Foundation.
Contact Rev. Fr. Paul Williams Immediately For A Charity Donation Of $6,200,000.00 United States Dollars At E-Mail: revfrpaulwillia...@gmail.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Donation From Williams Foundation.
Contact Rev. Fr. Paul Williams Immediately For A Charity Donation Of $6,200,000.00 United States Dollars At E-Mail: revfrpaulwillia...@gmail.com ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[driver-core:kobject-const] BUILD SUCCESS 3230b957cac5f596b36c7939fe81b4f54c6d1bb3
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const branch HEAD: 3230b957cac5f596b36c7939fe81b4f54c6d1bb3 kobject: mark ktype * const in struct kobject elapsed time: 723m configs tested: 132 configs skipped: 3 The following configs have been built successfully. More configs may be tested in the coming days. gcc tested configs: arm defconfig arm64allyesconfig arm64 defconfig arm allyesconfig arm allmodconfig i386 randconfig-c001-20211223 sh rts7751r2d1_defconfig arm lubbock_defconfig arm milbeaut_m10v_defconfig mips allmodconfig m68kmvme147_defconfig armqcom_defconfig arm iop32x_defconfig arc axs103_defconfig powerpc mgcoge_defconfig powerpcmvme5100_defconfig m68k amcore_defconfig alphaalldefconfig sh se7343_defconfig arm spear13xx_defconfig arm integrator_defconfig mipsvocore2_defconfig arm simpad_defconfig mips tb0219_defconfig powerpc pcm030_defconfig powerpcamigaone_defconfig powerpc arches_defconfig arm sunxi_defconfig shapsh4ad0a_defconfig m68k hp300_defconfig openrisc alldefconfig mips bmips_stb_defconfig um defconfig arm corgi_defconfig powerpc redwood_defconfig powerpc mpc836x_mds_defconfig powerpc powernv_defconfig powerpc mpc832x_rdb_defconfig shedosk7760_defconfig mips cu1000-neo_defconfig arm stm32_defconfig powerpc ppc64_defconfig sh se7724_defconfig mips loongson1b_defconfig powerpc mpc8313_rdb_defconfig sh se7721_defconfig arm eseries_pxa_defconfig powerpc64 defconfig armneponset_defconfig arm lpc18xx_defconfig shecovec24-romimage_defconfig m68kmac_defconfig arm exynos_defconfig sh lboxre2_defconfig arm randconfig-c002-20211223 ia64 allmodconfig ia64defconfig ia64 allyesconfig m68k allmodconfig m68kdefconfig m68k allyesconfig nios2 defconfig arc allyesconfig nds32 allnoconfig nds32 defconfig cskydefconfig alpha defconfig alphaallyesconfig nios2allyesconfig xtensa allyesconfig h8300allyesconfig arc defconfig sh allmodconfig parisc defconfig s390 allyesconfig s390 allmodconfig parisc allyesconfig s390defconfig i386 allyesconfig i386defconfig i386 debian-10.3-kselftests i386 debian-10.3 sparc defconfig sparcallyesconfig mips allyesconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a011-20211223 x86_64 randconfig-a012-20211223 x86_64 randconfig-a014-20211223 x86_64 randconfig-a013-20211223 x86_64 randconfig-a015-20211223 x86_64 randconfig-a016-20211223 i386 randconfig-a012-20211223 i386 randconfig-a011-20211223 i386 randconfig-a013-20211223 i386 randconfig-a015-20211223 i386 randconfig-a014-20211223 i386 randconfig-a016-20211223 arc