1FILE: crypto/af_alg.c 2 3BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1372 4in_atomic(): 0, irqs_disabled(): 1, pid: 22259, name: syz-executor7 52 locks held by syz-executor7/22259: 6 #0: (sk_lock-AF_ALG){+.+.}, at: [<0000000035a74818>] lock_sock include/net/sock.h:1465 [inline] 7 #0: (sk_lock-AF_ALG){+.+.}, at: [<0000000035a74818>] af_alg_wait_for_data+0x2f2/0x650 crypto/af_alg.c:768 8 #1: (&mm->mmap_sem){++++}, at: [<0000000044f840f2>] __do_page_fault+0x32d/0xc90 arch/x86/mm/fault.c:1358 9irq event stamp: 332 10hardirqs last enabled at (331): [<00000000eed64b41>] slab_alloc mm/slab.c:3378 [inline] 11hardirqs last enabled at (331): [<00000000eed64b41>] __do_kmalloc mm/slab.c:3709 [inline] 12hardirqs last enabled at (331): [<00000000eed64b41>] __kmalloc+0x23a/0x760 mm/slab.c:3720 13hardirqs last disabled at (332): [<00000000f3407c2d>] kfree+0x6a/0x250 mm/slab.c:3800 14softirqs last enabled at (318): [<00000000c75b17c3>] lock_sock_nested+0x91/0x110 net/core/sock.c:2765 15softirqs last disabled at (316): [<00000000272f4822>] spin_lock_bh include/linux/spinlock.h:320 [inline] 16softirqs last disabled at (316): [<00000000272f4822>] lock_sock_nested+0x44/0x110 net/core/sock.c:2762 17CPU: 0 PID: 22259 Comm: syz-executor7 Not tainted 4.15.0-rc1+ #131 18Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 19Call Trace: 20 __dump_stack lib/dump_stack.c:17 [inline] 21 dump_stack+0x194/0x257 lib/dump_stack.c:53 22 ___might_sleep+0x2b2/0x470 kernel/sched/core.c:6060 23 __might_sleep+0x95/0x190 kernel/sched/core.c:6013 24 __do_page_fault+0x350/0xc90 arch/x86/mm/fault.c:1372 25 do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1504 26 page_fault+0x22/0x30 arch/x86/entry/entry_64.S:1094 27RIP: 0010:virt_to_cache mm/slab.c:400 [inline] 28RIP: 0010:kfree+0xb2/0x250 mm/slab.c:3802 29RSP: 0018:ffff8801cc82f780 EFLAGS: 00010046 30RAX: 0000000000000000 RBX: ffff8801cc82f948 RCX: ffffffffffffffff 31RDX: ffffea0007320bc0 RSI: 0000000000000000 RDI: ffff8801cc82f948 32RBP: ffff8801cc82f7a0 R08: ffffed003a54e4dc R09: 0000000000000000 33R10: 0000000000000001 R11: ffffed003a54e4db R12: 0000000000000286 34R13: 0000000000000000 R14: ffff8801cc82f948 R15: ffff8801cc82f8b0 35 blkcipher_walk_done+0x72b/0xde0 crypto/blkcipher.c:139 36 encrypt+0x50a/0xaf0 crypto/salsa20_generic.c:208 37