<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in crypto.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>3e0f59f0 - libceph: Remove unused ceph_crypto_key_encode</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#3e0f59f0</link>
        <description>libceph: Remove unused ceph_crypto_key_encodeceph_crypto_key_encode() was added in 2010&apos;s commit8b6e4f2d8b21 (&quot;ceph: aes crypto and base64 encode/decode helpers&quot;)but has remained unused (the decode is used).Remove it.Signed-off-by: Dr. David Alan Gilbert &lt;linux@treblig.org&gt;Reviewed-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;Signed-off-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Sun, 06 Oct 2024 01:19:55 +0000</pubDate>
        <dc:creator>Dr. David Alan Gilbert &lt;linux@treblig.org&gt;</dc:creator>
    </item>
<item>
        <title>a421ef30 - mm: allow !GFP_KERNEL allocations for kvmalloc</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#a421ef30</link>
        <description>mm: allow !GFP_KERNEL allocations for kvmallocSupport for GFP_NO{FS,IO} and __GFP_NOFAIL has been implemented byprevious patches so we can allow the support for kvmalloc.  This willallow some external users to simplify or completely remove theirhelpers.GFP_NOWAIT semantic hasn&apos;t been supported so far but it hasn&apos;t beenexplicitly documented so let&apos;s add a note about that.ceph_kvmalloc is the first helper to be dropped and changed to kvmalloc.Link: https://lkml.kernel.org/r/20211122153233.9924-5-mhocko@kernel.orgSigned-off-by: Michal Hocko &lt;mhocko@suse.com&gt;Reviewed-by: Uladzislau Rezki (Sony) &lt;urezki@gmail.com&gt;Acked-by: Vlastimil Babka &lt;vbabka@suse.cz&gt;Cc: Christoph Hellwig &lt;hch@lst.de&gt;Cc: Dave Chinner &lt;david@fromorbit.com&gt;Cc: Ilya Dryomov &lt;idryomov@gmail.com&gt;Cc: Jeff Layton &lt;jlayton@kernel.org&gt;Cc: Neil Brown &lt;neilb@suse.de&gt;Cc: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Fri, 14 Jan 2022 22:07:07 +0000</pubDate>
        <dc:creator>Michal Hocko &lt;mhocko@suse.com&gt;</dc:creator>
    </item>
<item>
        <title>10f42b3e - libceph: zero out session key and connection secret</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#10f42b3e</link>
        <description>libceph: zero out session key and connection secretTry and avoid leaving bits and pieces of session key and connectionsecret (gets split into GCM key and a pair of GCM IVs) around.Signed-off-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;Reviewed-by: Jeff Layton &lt;jlayton@kernel.org&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Tue, 22 Dec 2020 18:00:48 +0000</pubDate>
        <dc:creator>Ilya Dryomov &lt;idryomov@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>e8c99200 - libceph: don&apos;t call crypto_free_sync_skcipher() on a NULL tfm</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#e8c99200</link>
        <description>libceph: don&apos;t call crypto_free_sync_skcipher() on a NULL tfmIn set_secret(), key-&gt;tfm is assigned to NULL on line 55, and thenceph_crypto_key_destroy(key) is executed.ceph_crypto_key_destroy(key)  crypto_free_sync_skcipher(key-&gt;tfm)    crypto_free_skcipher(&amp;tfm-&gt;base);This happens to work because crypto_sync_skcipher is a trivial wrapperaround crypto_skcipher: &amp;tfm-&gt;base is still 0 and crypto_free_skcipher()handles that.  Let&apos;s not rely on the layout of crypto_sync_skcipher.This bug is found by a static analysis tool STCheck written by us.Fixes: 69d6302b65a8 (&quot;libceph: Remove VLA usage of skcipher&quot;).Signed-off-by: Jia-Ju Bai &lt;baijiaju1990@gmail.com&gt;Reviewed-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;Signed-off-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Wed, 24 Jul 2019 09:43:06 +0000</pubDate>
        <dc:creator>Jia-Ju Bai &lt;baijiaju1990@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>69d6302b - libceph: Remove VLA usage of skcipher</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#69d6302b</link>
        <description>libceph: Remove VLA usage of skcipherIn the quest to remove all stack VLA usage from the kernel[1], thisreplaces struct crypto_skcipher and SKCIPHER_REQUEST_ON_STACK() usagewith struct crypto_sync_skcipher and SYNC_SKCIPHER_REQUEST_ON_STACK(),which uses a fixed stack size.[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.comCc: Ilya Dryomov &lt;idryomov@gmail.com&gt;Cc: &quot;Yan, Zheng&quot; &lt;zyan@redhat.com&gt;Cc: Sage Weil &lt;sage@redhat.com&gt;Cc: ceph-devel@vger.kernel.orgSigned-off-by: Kees Cook &lt;keescook@chromium.org&gt;Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Wed, 19 Sep 2018 02:10:45 +0000</pubDate>
        <dc:creator>Kees Cook &lt;keescook@chromium.org&gt;</dc:creator>
    </item>
<item>
        <title>57a35dfb - libceph, ceph: add __init attribution to init funcitons</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#57a35dfb</link>
        <description>libceph, ceph: add __init attribution to init funcitonsAdd __init attribution to the functions which are called only onceduring initiating/registering operations and deleting unnecessarysymbol exports.Signed-off-by: Chengguang Xu &lt;cgxu519@gmx.com&gt;Reviewed-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;Signed-off-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Sat, 10 Mar 2018 12:32:05 +0000</pubDate>
        <dc:creator>Chengguang Xu &lt;cgxu519@gmx.com&gt;</dc:creator>
    </item>
<item>
        <title>b1127085 - libceph: don&apos;t WARN() if user tries to add invalid key</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#b1127085</link>
        <description>libceph: don&apos;t WARN() if user tries to add invalid keyThe WARN_ON(!key-&gt;len) in set_secret() in net/ceph/crypto.c is hit if auser tries to add a key of type &quot;ceph&quot; with an invalid payload asfollows (assuming CONFIG_CEPH_LIB=y):    echo -e -n &apos;\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&apos; \	| keyctl padd ceph desc @sThis can be hit by fuzzers.  As this is merely bad input and not akernel bug, replace the WARN_ON() with return -EINVAL.Fixes: 7af3ea189a9a (&quot;libceph: stop allocating a new cipher on every crypto request&quot;)Cc: &lt;stable@vger.kernel.org&gt; # v4.10+Signed-off-by: Eric Biggers &lt;ebiggers@google.com&gt;Reviewed-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;Signed-off-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Tue, 07 Nov 2017 05:57:26 +0000</pubDate>
        <dc:creator>Eric Biggers &lt;ebiggers@google.com&gt;</dc:creator>
    </item>
<item>
        <title>b2441318 - License cleanup: add SPDX GPL-2.0 license identifier to files with no license</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#b2441318</link>
        <description>License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseMany source files in the tree are missing licensing information, whichmakes it harder for compliance tools to determine the correct license.By default all files without license information are under the defaultlicense of the kernel, which is GPL version 2.Update the files which contain no license information with the &apos;GPL-2.0&apos;SPDX license identifier.  The SPDX identifier is a legally bindingshorthand, which can be used instead of the full boiler plate text.This patch is based on work done by Thomas Gleixner and Kate Stewart andPhilippe Ombredanne.How this work was done:Patches were generated and checked against linux-4.14-rc6 for a subset ofthe use cases: - file had no licensing information it it. - file was a */uapi/* one with no licensing information in it, - file was a */uapi/* one with existing licensing information,Further patches will be generated in subsequent months to fix up caseswhere non-standard license headers were used, and references to licensehad to be inferred by heuristics based on keywords.The analysis to determine which SPDX License Identifier to be applied toa file was done in a spreadsheet of side by side results from of theoutput of two independent scanners (ScanCode &amp; Windriver) producing SPDXtag:value files created by Philippe Ombredanne.  Philippe prepared thebase worksheet, and did an initial spot review of a few 1000 files.The 4.13 kernel was the starting point of the analysis with 60,537 filesassessed.  Kate Stewart did a file by file comparison of the scannerresults in the spreadsheet to determine which SPDX license identifier(s)to be applied to the file. She confirmed any determination that was notimmediately clear with lawyers working with the Linux Foundation.Criteria used to select files for SPDX license identifier tagging was: - Files considered eligible had to be source code files. - Make and config files were included as candidates if they contained &gt;5   lines of source - File already had some variant of a license header in it (even if &lt;5   lines).All documentation files were explicitly excluded.The following heuristics were used to determine which SPDX licenseidentifiers to apply. - when both scanners couldn&apos;t find any license traces, file was   considered to have no license information in it, and the top level   COPYING file license applied.   For non */uapi/* files that summary was:   SPDX license identifier                            # files   ---------------------------------------------------|-------   GPL-2.0                                              11139   and resulted in the first patch in this series.   If that file was a */uapi/* path one, it was &quot;GPL-2.0 WITH   Linux-syscall-note&quot; otherwise it was &quot;GPL-2.0&quot;.  Results of that was:   SPDX license identifier                            # files   ---------------------------------------------------|-------   GPL-2.0 WITH Linux-syscall-note                        930   and resulted in the second patch in this series. - if a file had some form of licensing information in it, and was one   of the */uapi/* ones, it was denoted with the Linux-syscall-note if   any GPL family license was found in the file or had no licensing in   it (per prior point).  Results summary:   SPDX license identifier                            # files   ---------------------------------------------------|------   GPL-2.0 WITH Linux-syscall-note                       270   GPL-2.0+ WITH Linux-syscall-note                      169   ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause)    21   ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)    17   LGPL-2.1+ WITH Linux-syscall-note                      15   GPL-1.0+ WITH Linux-syscall-note                       14   ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause)    5   LGPL-2.0+ WITH Linux-syscall-note                       4   LGPL-2.1 WITH Linux-syscall-note                        3   ((GPL-2.0 WITH Linux-syscall-note) OR MIT)              3   ((GPL-2.0 WITH Linux-syscall-note) AND MIT)             1   and that resulted in the third patch in this series. - when the two scanners agreed on the detected license(s), that became   the concluded license(s). - when there was disagreement between the two scanners (one detected a   license but the other didn&apos;t, or they both detected different   licenses) a manual inspection of the file occurred. - In most cases a manual inspection of the information in the file   resulted in a clear resolution of the license that should apply (and   which scanner probably needed to revisit its heuristics). - When it was not immediately clear, the license identifier was   confirmed with lawyers working with the Linux Foundation. - If there was any question as to the appropriate license identifier,   the file was flagged for further research and to be revisited later   in time.In total, over 70 hours of logged manual review was done on thespreadsheet to determine the SPDX license identifiers to apply to thesource files by Kate, Philippe, Thomas and, in some cases, confirmationby lawyers working with the Linux Foundation.Kate also obtained a third independent scan of the 4.13 code base fromFOSSology, and compared selected files where the other two scannersdisagreed against that SPDX file, to see if there was new insights.  TheWindriver scanner is based on an older version of FOSSology in part, sothey are related.Thomas did random spot checks in about 500 files from the spreadsheetsfor the uapi headers and agreed with SPDX license identifier in thefiles he inspected. For the non-uapi files Thomas did random spot checksin about 15000 files.In initial set of patches against 4.14-rc6, 3 files were found to havecopy/paste license identifier errors, and have been fixed to reflect thecorrect identifier.Additionally Philippe spent 10 hours this week doing a detailed manualinspection and review of the 12,461 patched files from the initial patchversion early this week with: - a full scancode scan run, collecting the matched texts, detected   license ids and scores - reviewing anything where there was a license detected (about 500+   files) to ensure that the applied SPDX license was correct - reviewing anything where there was no detection but the patch license   was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied   SPDX license was correctThis produced a worksheet with 20 files needing minor correction.  Thisworksheet was then exported into 3 different .csv files for thedifferent types of files to be modified.These .csv files were then reviewed by Greg.  Thomas wrote a script toparse the csv files and add the proper SPDX tag to the file, in theformat that the file expected.  This script was further refined by Gregbased on the output to detect more types of files automatically and todistinguish between header and source .c files (which need differentcomment types.)  Finally Greg ran the script using the .csv files togenerate the patches.Reviewed-by: Kate Stewart &lt;kstewart@linuxfoundation.org&gt;Reviewed-by: Philippe Ombredanne &lt;pombredanne@nexb.com&gt;Reviewed-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Wed, 01 Nov 2017 14:07:57 +0000</pubDate>
        <dc:creator>Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;</dc:creator>
    </item>
<item>
        <title>5b3cc15a - sched/headers: Prepare to move the memalloc_noio_*() APIs to &lt;linux/sched/mm.h&gt;</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#5b3cc15a</link>
        <description>sched/headers: Prepare to move the memalloc_noio_*() APIs to &lt;linux/sched/mm.h&gt;Update the .c files that depend on these APIs.Acked-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;Cc: Mike Galbraith &lt;efault@gmx.de&gt;Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;Cc: linux-kernel@vger.kernel.orgSigned-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Thu, 02 Feb 2017 19:43:54 +0000</pubDate>
        <dc:creator>Ingo Molnar &lt;mingo@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>7fea24c6 - libceph: include linux/sched.h into crypto.c directly</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#7fea24c6</link>
        <description>libceph: include linux/sched.h into crypto.c directlyCurrently crypto.c gets linux/sched.h indirectly through linux/slab.hfrom linux/kasan.h.  Include it directly for memalloc_noio_*() inlines.Signed-off-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Mon, 16 Jan 2017 13:35:17 +0000</pubDate>
        <dc:creator>Ilya Dryomov &lt;idryomov@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>124f930b - libceph: make sure ceph_aes_crypt() IV is aligned</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#124f930b</link>
        <description>libceph: make sure ceph_aes_crypt() IV is aligned... otherwise the crypto stack will align it for us with a GFP_ATOMICallocation and a memcpy() -- see skcipher_walk_first().Signed-off-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Mon, 16 Jan 2017 18:16:46 +0000</pubDate>
        <dc:creator>Ilya Dryomov &lt;idryomov@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>7af3ea18 - libceph: stop allocating a new cipher on every crypto request</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#7af3ea18</link>
        <description>libceph: stop allocating a new cipher on every crypto requestThis is useless and more importantly not allowed on the writeback path,because crypto_alloc_skcipher() allocates memory with GFP_KERNEL, whichcan recurse back into the filesystem:    kworker/9:3     D ffff92303f318180     0 20732      2 0x00000080    Workqueue: ceph-msgr ceph_con_workfn [libceph]     ffff923035dd4480 ffff923038f8a0c0 0000000000000001 000000009eb27318     ffff92269eb28000 ffff92269eb27338 ffff923036b145ac ffff923035dd4480     00000000ffffffff ffff923036b145b0 ffffffff951eb4e1 ffff923036b145a8    Call Trace:     [&lt;ffffffff951eb4e1&gt;] ? schedule+0x31/0x80     [&lt;ffffffff951eb77a&gt;] ? schedule_preempt_disabled+0xa/0x10     [&lt;ffffffff951ed1f4&gt;] ? __mutex_lock_slowpath+0xb4/0x130     [&lt;ffffffff951ed28b&gt;] ? mutex_lock+0x1b/0x30     [&lt;ffffffffc0a974b3&gt;] ? xfs_reclaim_inodes_ag+0x233/0x2d0 [xfs]     [&lt;ffffffff94d92ba5&gt;] ? move_active_pages_to_lru+0x125/0x270     [&lt;ffffffff94f2b985&gt;] ? radix_tree_gang_lookup_tag+0xc5/0x1c0     [&lt;ffffffff94dad0f3&gt;] ? __list_lru_walk_one.isra.3+0x33/0x120     [&lt;ffffffffc0a98331&gt;] ? xfs_reclaim_inodes_nr+0x31/0x40 [xfs]     [&lt;ffffffff94e05bfe&gt;] ? super_cache_scan+0x17e/0x190     [&lt;ffffffff94d919f3&gt;] ? shrink_slab.part.38+0x1e3/0x3d0     [&lt;ffffffff94d9616a&gt;] ? shrink_node+0x10a/0x320     [&lt;ffffffff94d96474&gt;] ? do_try_to_free_pages+0xf4/0x350     [&lt;ffffffff94d967ba&gt;] ? try_to_free_pages+0xea/0x1b0     [&lt;ffffffff94d863bd&gt;] ? __alloc_pages_nodemask+0x61d/0xe60     [&lt;ffffffff94ddf42d&gt;] ? cache_grow_begin+0x9d/0x560     [&lt;ffffffff94ddfb88&gt;] ? fallback_alloc+0x148/0x1c0     [&lt;ffffffff94ed84e7&gt;] ? __crypto_alloc_tfm+0x37/0x130     [&lt;ffffffff94de09db&gt;] ? __kmalloc+0x1eb/0x580     [&lt;ffffffffc09fe2db&gt;] ? crush_choose_firstn+0x3eb/0x470 [libceph]     [&lt;ffffffff94ed84e7&gt;] ? __crypto_alloc_tfm+0x37/0x130     [&lt;ffffffff94ed9c19&gt;] ? crypto_spawn_tfm+0x39/0x60     [&lt;ffffffffc08b30a3&gt;] ? crypto_cbc_init_tfm+0x23/0x40 [cbc]     [&lt;ffffffff94ed857c&gt;] ? __crypto_alloc_tfm+0xcc/0x130     [&lt;ffffffff94edcc23&gt;] ? crypto_skcipher_init_tfm+0x113/0x180     [&lt;ffffffff94ed7cc3&gt;] ? crypto_create_tfm+0x43/0xb0     [&lt;ffffffff94ed83b0&gt;] ? crypto_larval_lookup+0x150/0x150     [&lt;ffffffff94ed7da2&gt;] ? crypto_alloc_tfm+0x72/0x120     [&lt;ffffffffc0a01dd7&gt;] ? ceph_aes_encrypt2+0x67/0x400 [libceph]     [&lt;ffffffffc09fd264&gt;] ? ceph_pg_to_up_acting_osds+0x84/0x5b0 [libceph]     [&lt;ffffffff950d40a0&gt;] ? release_sock+0x40/0x90     [&lt;ffffffff95139f94&gt;] ? tcp_recvmsg+0x4b4/0xae0     [&lt;ffffffffc0a02714&gt;] ? ceph_encrypt2+0x54/0xc0 [libceph]     [&lt;ffffffffc0a02b4d&gt;] ? ceph_x_encrypt+0x5d/0x90 [libceph]     [&lt;ffffffffc0a02bdf&gt;] ? calcu_signature+0x5f/0x90 [libceph]     [&lt;ffffffffc0a02ef5&gt;] ? ceph_x_sign_message+0x35/0x50 [libceph]     [&lt;ffffffffc09e948c&gt;] ? prepare_write_message_footer+0x5c/0xa0 [libceph]     [&lt;ffffffffc09ecd18&gt;] ? ceph_con_workfn+0x2258/0x2dd0 [libceph]     [&lt;ffffffffc09e9903&gt;] ? queue_con_delay+0x33/0xd0 [libceph]     [&lt;ffffffffc09f68ed&gt;] ? __submit_request+0x20d/0x2f0 [libceph]     [&lt;ffffffffc09f6ef8&gt;] ? ceph_osdc_start_request+0x28/0x30 [libceph]     [&lt;ffffffffc0b52603&gt;] ? rbd_queue_workfn+0x2f3/0x350 [rbd]     [&lt;ffffffff94c94ec0&gt;] ? process_one_work+0x160/0x410     [&lt;ffffffff94c951bd&gt;] ? worker_thread+0x4d/0x480     [&lt;ffffffff94c95170&gt;] ? process_one_work+0x410/0x410     [&lt;ffffffff94c9af8d&gt;] ? kthread+0xcd/0xf0     [&lt;ffffffff951efb2f&gt;] ? ret_from_fork+0x1f/0x40     [&lt;ffffffff94c9aec0&gt;] ? kthread_create_on_node+0x190/0x190Allocating the cipher along with the key fixes the issue - as long thekey doesn&apos;t change, a single cipher context can be used concurrently inmultiple requests.We still can&apos;t take that GFP_KERNEL allocation though.  Bothceph_crypto_key_clone() and ceph_crypto_key_decode() are called fromGFP_NOFS context, so resort to memalloc_noio_{save,restore}() here.Reported-by: Lucas Stach &lt;l.stach@pengutronix.de&gt;Signed-off-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;Reviewed-by: Sage Weil &lt;sage@redhat.com&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Fri, 02 Dec 2016 15:35:08 +0000</pubDate>
        <dc:creator>Ilya Dryomov &lt;idryomov@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>6db2304a - libceph: uninline ceph_crypto_key_destroy()</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#6db2304a</link>
        <description>libceph: uninline ceph_crypto_key_destroy()Signed-off-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;Reviewed-by: Sage Weil &lt;sage@redhat.com&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Fri, 02 Dec 2016 15:35:08 +0000</pubDate>
        <dc:creator>Ilya Dryomov &lt;idryomov@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>2b1e1a7c - libceph: remove now unused ceph_*{en,de}crypt*() functions</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#2b1e1a7c</link>
        <description>libceph: remove now unused ceph_*{en,de}crypt*() functionsSigned-off-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;Reviewed-by: Sage Weil &lt;sage@redhat.com&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Fri, 02 Dec 2016 15:35:08 +0000</pubDate>
        <dc:creator>Ilya Dryomov &lt;idryomov@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>a45f795c - libceph: introduce ceph_crypt() for in-place en/decryption</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#a45f795c</link>
        <description>libceph: introduce ceph_crypt() for in-place en/decryptionStarting with 4.9, kernel stacks may be vmalloced and therefore notguaranteed to be physically contiguous; the new CONFIG_VMAP_STACKoption is enabled by default on x86.  This makes it invalid to useon-stack buffers with the crypto scatterlist API, as sg_set_buf()expects a logical address and won&apos;t work with vmalloced addresses.There isn&apos;t a different (e.g. kvec-based) crypto API we could switchnet/ceph/crypto.c to and the current scatterlist.h API isn&apos;t gettingupdated to accommodate this use case.  Allocating a new header andpadding for each operation is a non-starter, so do the en/decryptionin-place on a single pre-assembled (header + data + padding) heapbuffer.  This is explicitly supported by the crypto API:    &quot;... the caller may provide the same scatter/gather list for the     plaintext and cipher text. After the completion of the cipher     operation, the plaintext data is replaced with the ciphertext data     in case of an encryption and vice versa for a decryption.&quot;Signed-off-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;Reviewed-by: Sage Weil &lt;sage@redhat.com&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Fri, 02 Dec 2016 15:35:07 +0000</pubDate>
        <dc:creator>Ilya Dryomov &lt;idryomov@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>e9f6452e - libceph: Remove unnecessary ivsize variables</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#e9f6452e</link>
        <description>libceph: Remove unnecessary ivsize variablesThis patch removes the unnecessary ivsize variabls as they alwayshave the value of AES_BLOCK_SIZE.Signed-off-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Tue, 26 Jan 2016 10:54:55 +0000</pubDate>
        <dc:creator>Ilya Dryomov &lt;idryomov@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>e59dd982 - libceph: Use skcipher</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#e59dd982</link>
        <description>libceph: Use skcipherThis patch replaces uses of blkcipher with skcipher.Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Sun, 24 Jan 2016 13:18:40 +0000</pubDate>
        <dc:creator>Herbert Xu &lt;herbert@gondor.apana.org.au&gt;</dc:creator>
    </item>
<item>
        <title>146aa8b1 - KEYS: Merge the type-specific data with the payload data</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#146aa8b1</link>
        <description>KEYS: Merge the type-specific data with the payload dataMerge the type-specific data with the payload data into one four-word chunkas it seems pointless to keep them separate.Use user_key_payload() for accessing the payloads of overloadeduser-defined keys.Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;cc: linux-cifs@vger.kernel.orgcc: ecryptfs@vger.kernel.orgcc: linux-ext4@vger.kernel.orgcc: linux-f2fs-devel@lists.sourceforge.netcc: linux-nfs@vger.kernel.orgcc: ceph-devel@vger.kernel.orgcc: linux-ima-devel@lists.sourceforge.net

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Wed, 21 Oct 2015 13:04:48 +0000</pubDate>
        <dc:creator>David Howells &lt;dhowells@redhat.com&gt;</dc:creator>
    </item>
<item>
        <title>b79b2368 - libceph: remove the unused macro AES_KEY_SIZE</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#b79b2368</link>
        <description>libceph: remove the unused macro AES_KEY_SIZEThis removes the no longer used macro AES_KEY_SIZE as no functions usethis macro anymore and thus this macro can be removed due it no longerbeing required.Signed-off-by: Nicholas Krause &lt;xerofoify@gmail.com&gt;Signed-off-by: Ilya Dryomov &lt;idryomov@gmail.com&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Sun, 05 Jul 2015 06:34:05 +0000</pubDate>
        <dc:creator>Nicholas Krause &lt;xerofoify@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>aaef3170 - libceph: do not crash on large auth tickets</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/net/ceph/crypto.c#aaef3170</link>
        <description>libceph: do not crash on large auth ticketsLarge (greater than 32k, the value of PAGE_ALLOC_COSTLY_ORDER) authtickets will have their buffers vmalloc&apos;ed, which leads to thefollowing crash in crypto:[   28.685082] BUG: unable to handle kernel paging request at ffffeb04000032c0[   28.686032] IP: [&lt;ffffffff81392b42&gt;] scatterwalk_pagedone+0x22/0x80[   28.686032] PGD 0[   28.688088] Oops: 0000 [#1] PREEMPT SMP[   28.688088] Modules linked in:[   28.688088] CPU: 0 PID: 878 Comm: kworker/0:2 Not tainted 3.17.0-vm+ #305[   28.688088] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2007[   28.688088] Workqueue: ceph-msgr con_work[   28.688088] task: ffff88011a7f9030 ti: ffff8800d903c000 task.ti: ffff8800d903c000[   28.688088] RIP: 0010:[&lt;ffffffff81392b42&gt;]  [&lt;ffffffff81392b42&gt;] scatterwalk_pagedone+0x22/0x80[   28.688088] RSP: 0018:ffff8800d903f688  EFLAGS: 00010286[   28.688088] RAX: ffffeb04000032c0 RBX: ffff8800d903f718 RCX: ffffeb04000032c0[   28.688088] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8800d903f750[   28.688088] RBP: ffff8800d903f688 R08: 00000000000007de R09: ffff8800d903f880[   28.688088] R10: 18df467c72d6257b R11: 0000000000000000 R12: 0000000000000010[   28.688088] R13: ffff8800d903f750 R14: ffff8800d903f8a0 R15: 0000000000000000[   28.688088] FS:  00007f50a41c7700(0000) GS:ffff88011fc00000(0000) knlGS:0000000000000000[   28.688088] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b[   28.688088] CR2: ffffeb04000032c0 CR3: 00000000da3f3000 CR4: 00000000000006b0[   28.688088] Stack:[   28.688088]  ffff8800d903f698 ffffffff81392ca8 ffff8800d903f6e8 ffffffff81395d32[   28.688088]  ffff8800dac96000 ffff880000000000 ffff8800d903f980 ffff880119b7e020[   28.688088]  ffff880119b7e010 0000000000000000 0000000000000010 0000000000000010[   28.688088] Call Trace:[   28.688088]  [&lt;ffffffff81392ca8&gt;] scatterwalk_done+0x38/0x40[   28.688088]  [&lt;ffffffff81392ca8&gt;] scatterwalk_done+0x38/0x40[   28.688088]  [&lt;ffffffff81395d32&gt;] blkcipher_walk_done+0x182/0x220[   28.688088]  [&lt;ffffffff813990bf&gt;] crypto_cbc_encrypt+0x15f/0x180[   28.688088]  [&lt;ffffffff81399780&gt;] ? crypto_aes_set_key+0x30/0x30[   28.688088]  [&lt;ffffffff8156c40c&gt;] ceph_aes_encrypt2+0x29c/0x2e0[   28.688088]  [&lt;ffffffff8156d2a3&gt;] ceph_encrypt2+0x93/0xb0[   28.688088]  [&lt;ffffffff8156d7da&gt;] ceph_x_encrypt+0x4a/0x60[   28.688088]  [&lt;ffffffff8155b39d&gt;] ? ceph_buffer_new+0x5d/0xf0[   28.688088]  [&lt;ffffffff8156e837&gt;] ceph_x_build_authorizer.isra.6+0x297/0x360[   28.688088]  [&lt;ffffffff8112089b&gt;] ? kmem_cache_alloc_trace+0x11b/0x1c0[   28.688088]  [&lt;ffffffff8156b496&gt;] ? ceph_auth_create_authorizer+0x36/0x80[   28.688088]  [&lt;ffffffff8156ed83&gt;] ceph_x_create_authorizer+0x63/0xd0[   28.688088]  [&lt;ffffffff8156b4b4&gt;] ceph_auth_create_authorizer+0x54/0x80[   28.688088]  [&lt;ffffffff8155f7c0&gt;] get_authorizer+0x80/0xd0[   28.688088]  [&lt;ffffffff81555a8b&gt;] prepare_write_connect+0x18b/0x2b0[   28.688088]  [&lt;ffffffff81559289&gt;] try_read+0x1e59/0x1f10This is because we set up crypto scatterlists as if all buffers werekmalloc&apos;ed.  Fix it.Cc: stable@vger.kernel.orgSigned-off-by: Ilya Dryomov &lt;idryomov@redhat.com&gt;Reviewed-by: Sage Weil &lt;sage@redhat.com&gt;

            List of files:
            /linux-6.15/net/ceph/crypto.c</description>
        <pubDate>Wed, 22 Oct 2014 20:25:22 +0000</pubDate>
        <dc:creator>Ilya Dryomov &lt;idryomov@redhat.com&gt;</dc:creator>
    </item>
</channel>
</rss>
