kmem_cache_node 51KB 51KB kmem_cache 78KB 78KB oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=syz5,mems_allowed=0,global_oom,task_memcg=/syz5,task=syz-executor.5,pid=7560,uid=0 BUG: sleeping function called from invalid context at kernel/locking/mutex.c:577 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 7560, name: syz-executor.5 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor.5/7560: #0: ffff88803ec9e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1668 [inline] #0: ffff88803ec9e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_setsockopt+0x156/0x3c40 net/packet/af_packet.c:3761 #1: ffffffff85278968 (oom_lock){+.+.}-{3:3}, at: __alloc_pages_may_oom mm/page_alloc.c:4281 [inline] #1: ffffffff85278968 (oom_lock){+.+.}-{3:3}, at: __alloc_pages_slowpath.constprop.0+0xcc9/0x1f10 mm/page_alloc.c:5063 #2: ffff888019e188a0 (&p->alloc_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #2: ffff888019e188a0 (&p->alloc_lock){+.+.}-{2:2}, at: task_lock include/linux/sched/task.h:170 [inline] #2: ffff888019e188a0 (&p->alloc_lock){+.+.}-{2:2}, at: find_lock_task_mm+0xe3/0x2b0 mm/oom_kill.c:144 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 7560 Comm: syz-executor.5 Not tainted 5.16.0-next-20220113 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x8b/0xb3 lib/dump_stack.c:106 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9583 __mutex_lock_common kernel/locking/mutex.c:577 [inline] __mutex_lock+0x9e/0x1480 kernel/locking/mutex.c:733 futex_cleanup_begin kernel/futex/core.c:1058 [inline] futex_exit_release+0x2d/0x220 kernel/futex/core.c:1110 __oom_kill_process+0x373/0xf90 mm/oom_kill.c:893 oom_kill_process+0xd7/0x5c0 mm/oom_kill.c:1003 out_of_memory+0x1198/0x1460 mm/oom_kill.c:1114 __alloc_pages_may_oom mm/page_alloc.c:4332 [inline] __alloc_pages_slowpath.constprop.0+0x1972/0x1f10 mm/page_alloc.c:5063 __alloc_pages+0x403/0x4e0 mm/page_alloc.c:5394 alloc_pages+0x1a0/0x2f0 mm/mempolicy.c:2271 vm_area_alloc_pages mm/vmalloc.c:2904 [inline] __vmalloc_area_node mm/vmalloc.c:2967 [inline] __vmalloc_node_range+0xb2a/0xfd0 mm/vmalloc.c:3106 __vmalloc_node+0xb5/0x100 mm/vmalloc.c:3156 alloc_one_pg_vec_page net/packet/af_packet.c:4291 [inline] alloc_pg_vec net/packet/af_packet.c:4316 [inline] packet_set_ring+0xb60/0x1b20 net/packet/af_packet.c:4401 packet_setsockopt+0x1b4f/0x3c40 net/packet/af_packet.c:3778 __sys_setsockopt+0x180/0x2a0 net/socket.c:2180 __do_sys_setsockopt net/socket.c:2191 [inline] __se_sys_setsockopt net/socket.c:2188 [inline] __x64_sys_setsockopt+0xba/0x150 net/socket.c:2188 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f1e56cddb19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1e54253188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f1e56df0f60 RCX: 00007f1e56cddb19 RDX: 0000000000000005 RSI: 0000000000000107 RDI: 0000000000000003 RBP: 00007f1e56d37f6d R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020000100 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd6945ca1f R14: 00007f1e54253300 R15: 0000000000022000 ============================= [ BUG: Invalid wait context ] 5.16.0-next-20220113 #1 Tainted: G W ----------------------------- syz-executor.5/7560 is trying to lock: ffff888019e192b0 (&tsk->futex_exit_mutex){+.+.}-{3:3}, at: futex_cleanup_begin kernel/futex/core.c:1058 [inline] ffff888019e192b0 (&tsk->futex_exit_mutex){+.+.}-{3:3}, at: futex_exit_release+0x2d/0x220 kernel/futex/core.c:1110 other info that might help us debug this: context-{4:4} 3 locks held by syz-executor.5/7560: #0: ffff88803ec9e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1668 [inline] #0: ffff88803ec9e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_setsockopt+0x156/0x3c40 net/packet/af_packet.c:3761 #1: ffffffff85278968 (oom_lock){+.+.}-{3:3}, at: __alloc_pages_may_oom mm/page_alloc.c:4281 [inline] #1: ffffffff85278968 (oom_lock){+.+.}-{3:3}, at: __alloc_pages_slowpath.constprop.0+0xcc9/0x1f10 mm/page_alloc.c:5063 #2: ffff888019e188a0 (&p->alloc_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #2: ffff888019e188a0 (&p->alloc_lock){+.+.}-{2:2}, at: task_lock include/linux/sched/task.h:170 [inline] #2: ffff888019e188a0 (&p->alloc_lock){+.+.}-{2:2}, at: find_lock_task_mm+0xe3/0x2b0 mm/oom_kill.c:144 stack backtrace: CPU: 1 PID: 7560 Comm: syz-executor.5 Tainted: G W 5.16.0-next-20220113 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x8b/0xb3 lib/dump_stack.c:106 print_lock_invalid_wait_context kernel/locking/lockdep.c:4678 [inline] check_wait_context kernel/locking/lockdep.c:4739 [inline] __lock_acquire.cold+0xc8/0x3b4 kernel/locking/lockdep.c:4977 lock_acquire kernel/locking/lockdep.c:5639 [inline] lock_acquire+0x1a2/0x4d0 kernel/locking/lockdep.c:5604 __mutex_lock_common kernel/locking/mutex.c:600 [inline] __mutex_lock+0x136/0x1480 kernel/locking/mutex.c:733 futex_cleanup_begin kernel/futex/core.c:1058 [inline] futex_exit_release+0x2d/0x220 kernel/futex/core.c:1110 __oom_kill_process+0x373/0xf90 mm/oom_kill.c:893 oom_kill_process+0xd7/0x5c0 mm/oom_kill.c:1003 out_of_memory+0x1198/0x1460 mm/oom_kill.c:1114 __alloc_pages_may_oom mm/page_alloc.c:4332 [inline] __alloc_pages_slowpath.constprop.0+0x1972/0x1f10 mm/page_alloc.c:5063 __alloc_pages+0x403/0x4e0 mm/page_alloc.c:5394 alloc_pages+0x1a0/0x2f0 mm/mempolicy.c:2271 vm_area_alloc_pages mm/vmalloc.c:2904 [inline] __vmalloc_area_node mm/vmalloc.c:2967 [inline] __vmalloc_node_range+0xb2a/0xfd0 mm/vmalloc.c:3106 __vmalloc_node+0xb5/0x100 mm/vmalloc.c:3156 alloc_one_pg_vec_page net/packet/af_packet.c:4291 [inline] alloc_pg_vec net/packet/af_packet.c:4316 [inline] packet_set_ring+0xb60/0x1b20 net/packet/af_packet.c:4401 packet_setsockopt+0x1b4f/0x3c40 net/packet/af_packet.c:3778 __sys_setsockopt+0x180/0x2a0 net/socket.c:2180 __do_sys_setsockopt net/socket.c:2191 [inline] __se_sys_setsockopt net/socket.c:2188 [inline] __x64_sys_setsockopt+0xba/0x150 net/socket.c:2188 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f1e56cddb19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1e54253188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f1e56df0f60 RCX: 00007f1e56cddb19 RDX: 0000000000000005 RSI: 0000000000000107 RDI: 0000000000000003 RBP: 00007f1e56d37f6d R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020000100 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd6945ca1f R14: 00007f1e54253300 R15: 0000000000022000 Out of memory (oom_kill_allocating_task): Killed process 7559 (syz-executor.5) total-vm:93412kB, anon-rss:384kB, file-rss:34724kB, shmem-rss:0kB, UID:0 pgtables:136kB oom_score_adj:1000 oom_reaper: reaped process 7559 (syz-executor.5), now anon-rss:0kB, file-rss:34828kB, shmem-rss:0kB mmap: syz-executor.6 (7577) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.rst. syz-executor.5 invoked oom-killer: gfp_mask=0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), order=0, oom_score_adj=1000 CPU: 1 PID: 7572 Comm: syz-executor.5 Tainted: G W 5.16.0-next-20220113 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x8b/0xb3 lib/dump_stack.c:106 dump_header+0x106/0x60f mm/oom_kill.c:464 oom_kill_process.cold+0x10/0x15 mm/oom_kill.c:994 out_of_memory+0x1198/0x1460 mm/oom_kill.c:1114 __alloc_pages_may_oom mm/page_alloc.c:4332 [inline] __alloc_pages_slowpath.constprop.0+0x1972/0x1f10 mm/page_alloc.c:5063 __alloc_pages+0x403/0x4e0 mm/page_alloc.c:5394 alloc_pages+0x1a0/0x2f0 mm/mempolicy.c:2271 vm_area_alloc_pages mm/vmalloc.c:2904 [inline] __vmalloc_area_node mm/vmalloc.c:2967 [inline] __vmalloc_node_range+0xb2a/0xfd0 mm/vmalloc.c:3106 __vmalloc_node+0xb5/0x100 mm/vmalloc.c:3156 alloc_one_pg_vec_page net/packet/af_packet.c:4291 [inline] alloc_pg_vec net/packet/af_packet.c:4316 [inline] packet_set_ring+0xb60/0x1b20 net/packet/af_packet.c:4401 packet_setsockopt+0x1b4f/0x3c40 net/packet/af_packet.c:3778 __sys_setsockopt+0x180/0x2a0 net/socket.c:2180 __do_sys_setsockopt net/socket.c:2191 [inline] __se_sys_setsockopt net/socket.c:2188 [inline] __x64_sys_setsockopt+0xba/0x150 net/socket.c:2188 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f1e56cddb19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1e54253188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f1e56df0f60 RCX: 00007f1e56cddb19 RDX: 0000000000000005 RSI: 0000000000000107 RDI: 0000000000000003 RBP: 00007f1e56d37f6d R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020000100 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd6945ca1f R14: 00007f1e54253300 R15: 0000000000022000 Mem-Info: active_anon:6696 inactive_anon:26525 isolated_anon:0 active_file:246 inactive_file:92 isolated_file:0 unevictable:0 dirty:0 writeback:0 slab_reclaimable:7630 slab_unreclaimable:62857 mapped:69877 shmem:111 pagetables:1898 bounce:0 kernel_misc_reclaimable:0 free:3472 free_pcp:0 free_cma:0 Node 0 active_anon:26784kB inactive_anon:106100kB active_file:984kB inactive_file:620kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:279508kB dirty:0kB writeback:0kB shmem:444kB writeback_tmp:0kB kernel_stack:5408kB pagetables:7592kB all_unreclaimable? no Node 0 DMA free:6508kB boost:0kB min:44kB low:56kB high:68kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 1617 1617 1617 Node 0 DMA32 free:7380kB boost:0kB min:5120kB low:6776kB high:8432kB reserved_highatomic:2048KB active_anon:26784kB inactive_anon:106100kB active_file:1444kB inactive_file:584kB unevictable:0kB writepending:0kB present:2080640kB managed:1660796kB mlocked:0kB bounce:0kB free_pcp:116kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 Node 0 DMA: 1*4kB (U) 1*8kB (U) 0*16kB 1*32kB (U) 1*64kB (U) 0*128kB 1*256kB (U) 0*512kB 0*1024kB 1*2048kB (M) 1*4096kB (M) = 6508kB Node 0 DMA32: 512*4kB (UMEH) 182*8kB (UMEH) 91*16kB (UMEH) 49*32kB (UMEH) 4*64kB (H) 2*128kB (H) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 7040kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 525 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 524158 pages RAM 0 pages HighMem/MovableOnly 105119 pages reserved Unreclaimable slab info: Name Used Total pid_2 59KB 78KB IEEE-802.15.4-MAC 31KB 31KB IEEE-802.15.4-RAW 63KB 63KB fib6_nodes 28KB 28KB ip6_dst_cache 26KB 26KB PINGv6 31KB 31KB RAWv6 157KB 157KB UDPLITEv6 62KB 62KB UDPv6 62KB 62KB TCPv6 62KB 62KB scsi_sense_cache 8KB 8KB sd_ext_cdb 3KB 3KB virtio_scsi_cmd 16KB 16KB bio-96 7KB 7KB sgpool-128 157KB 327KB sgpool-64 63KB 63KB sgpool-32 189KB 189KB sgpool-16 71KB 71KB sgpool-8 75KB 75KB bio-224 3KB 3KB mqueue_inode_cache 60KB 60KB nfs_commit_data 15KB 15KB nfs_write_data 47KB 47KB jbd2_inode 15KB 15KB ext4_system_zone 7KB 7KB ext4_io_end_vec 11KB 11KB ext4_bio_post_read_ctx 15KB 15KB io_kiocb 41KB 41KB kioctx 79KB 79KB dnotify_mark 7KB 7KB dnotify_struct 7KB 7KB pid_namespace 7KB 7KB posix_timers_cache 15KB 15KB rpc_buffers 31KB 31KB rpc_tasks 3KB 3KB UNIX-STREAM 168KB 310KB UNIX 189KB 310KB UDP-Lite 31KB 31KB tcp_bind_bucket 8KB 8KB ip_fib_trie 8KB 8KB ip_fib_alias 15KB 15KB ip_dst_cache 8KB 8KB PING 31KB 31KB RAW 93KB 93KB UDP 189KB 189KB request_sock_TCP 7KB 7KB TCP 58KB 58KB hugetlbfs_inode_cache 31KB 31KB bio-216 11KB 11KB ep_head 8KB 8KB eventpoll_pwq 23KB 23KB eventpoll_epi 39KB 39KB inotify_inode_mark 58KB 58KB request_queue 62KB 62KB blkdev_ioc 8KB 8KB bio-160 40KB 40KB biovec-max 569KB 569KB biovec-64 378KB 378KB biovec-16 45KB 45KB uid_cache 7KB 7KB dmaengine-unmap-2 4KB 4KB audit_buffer 7KB 7KB skbuff_fclone_cache 168KB 195KB skbuff_head_cache 483KB 615KB configfs_dir_cache 8KB 8KB file_lock_cache 66KB 82KB file_lock_ctx 7KB 7KB fsnotify_mark_connector 40KB 40KB net_namespace 93KB 93KB taskstats 78KB 83KB proc_dir_entry 322KB 322KB pde_opener 27KB 27KB seq_file 52KB 52KB sigqueue 23KB 39KB shmem_inode_cache 1374KB 1623KB kernfs_iattrs_cache 227KB 227KB kernfs_node_cache 5256KB 5292KB mnt_cache 141KB 141KB filp 3065KB 3138KB names_cache 22860KB 22860KB hashtab_node 274KB 274KB ebitmap_node 1149KB 1149KB avtab_node 4976KB 4976KB avc_node 35KB 35KB lsm_inode_cache 2684KB 3079KB lsm_file_cache 157KB 164KB key_jar 39KB 39KB uts_namespace 15KB 15KB nsproxy 15KB 15KB vm_area_struct 1407KB 1788KB mm_struct 262KB 378KB fs_cache 60KB 64KB files_cache 162KB 255KB signal_cache 344KB 486KB sighand_cache 420KB 420KB task_struct 1598KB 1792KB cred_jar 188KB 188KB anon_vma_chain 323KB 401KB anon_vma 404KB 404KB pid 72KB 101KB Acpi-Operand 91KB 150KB Acpi-ParseExt 31KB 31KB Acpi-Parse 43KB 59KB Acpi-State 31KB 47KB Acpi-Namespace 28KB 28KB numa_policy 3KB 3KB perf_event 63KB 63KB trace_event_file 175KB 175KB ftrace_event_field 296KB 296KB pool_workqueue 48KB 48KB task_group 16KB 16KB vmap_area 59KB 59KB page->ptl 270KB 346KB kmemleak_scan_area 33KB 43KB kmemleak_object 137309KB 148807KB kmalloc-cg-8k 64KB 64KB kmalloc-cg-4k 800KB 832KB kmalloc-cg-2k 900KB 1024KB kmalloc-cg-1k 196KB 288KB kmalloc-cg-512 235KB 288KB kmalloc-cg-256 16KB 16KB kmalloc-cg-192 24KB 24KB kmalloc-cg-128 12KB 12KB kmalloc-cg-96 26KB 44KB kmalloc-cg-64 44KB 44KB kmalloc-cg-32 63KB 76KB kmalloc-cg-16 8KB 8KB kmalloc-cg-8 11KB 11KB kmalloc-8k 4768KB 4960KB kmalloc-4k 6536KB 6592KB kmalloc-2k 3924KB 4288KB kmalloc-1k 3796KB 4544KB kmalloc-512 2689KB 2880KB kmalloc-256 1026KB 1056KB kmalloc-192 517KB 668KB kmalloc-128 488KB 568KB kmalloc-96 348KB 376KB kmalloc-64 1040KB 1112KB kmalloc-32 676KB 760KB kmalloc-16 322KB 336KB kmalloc-8 269KB 278KB kmem_cache_node 51KB 51KB kmem_cache 78KB 78KB oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=syz5,mems_allowed=0,global_oom,task_memcg=/syz5,task=syz-executor.5,pid=7572,uid=0 BUG: sleeping function called from invalid context at kernel/locking/mutex.c:577 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 7572, name: syz-executor.5 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 7572 Comm: syz-executor.5 Tainted: G W 5.16.0-next-20220113 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x8b/0xb3 lib/dump_stack.c:106 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9583 __mutex_lock_common kernel/locking/mutex.c:577 [inline] __mutex_lock+0x9e/0x1480 kernel/locking/mutex.c:733 futex_cleanup_begin kernel/futex/core.c:1058 [inline] futex_exit_release+0x2d/0x220 kernel/futex/core.c:1110 __oom_kill_process+0x373/0xf90 mm/oom_kill.c:893 oom_kill_process+0xd7/0x5c0 mm/oom_kill.c:1003 out_of_memory+0x1198/0x1460 mm/oom_kill.c:1114 __alloc_pages_may_oom mm/page_alloc.c:4332 [inline] __alloc_pages_slowpath.constprop.0+0x1972/0x1f10 mm/page_alloc.c:5063 __alloc_pages+0x403/0x4e0 mm/page_alloc.c:5394 alloc_pages+0x1a0/0x2f0 mm/mempolicy.c:2271 vm_area_alloc_pages mm/vmalloc.c:2904 [inline] __vmalloc_area_node mm/vmalloc.c:2967 [inline] __vmalloc_node_range+0xb2a/0xfd0 mm/vmalloc.c:3106 __vmalloc_node+0xb5/0x100 mm/vmalloc.c:3156 alloc_one_pg_vec_page net/packet/af_packet.c:4291 [inline] alloc_pg_vec net/packet/af_packet.c:4316 [inline] packet_set_ring+0xb60/0x1b20 net/packet/af_packet.c:4401 packet_setsockopt+0x1b4f/0x3c40 net/packet/af_packet.c:3778 __sys_setsockopt+0x180/0x2a0 net/socket.c:2180 __do_sys_setsockopt net/socket.c:2191 [inline] __se_sys_setsockopt net/socket.c:2188 [inline] __x64_sys_setsockopt+0xba/0x150 net/socket.c:2188 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f1e56cddb19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1e54253188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f1e56df0f60 RCX: 00007f1e56cddb19 RDX: 0000000000000005 RSI: 0000000000000107 RDI: 0000000000000003 RBP: 00007f1e56d37f6d R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020000100 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd6945ca1f R14: 00007f1e54253300 R15: 0000000000022000 Out of memory (oom_kill_allocating_task): Killed process 7571 (syz-executor.5) total-vm:93412kB, anon-rss:384kB, file-rss:34772kB, shmem-rss:0kB, UID:0 pgtables:136kB oom_score_adj:1000 oom_reaper: reaped process 7571 (syz-executor.5), now anon-rss:0kB, file-rss:34824kB, shmem-rss:0kB loop4: detected capacity change from 0 to 512 rfkill: input handler disabled rfkill: input handler enabled loop1: detected capacity change from 0 to 36 rfkill: input handler disabled rfkill: input handler enabled EXT4-fs (loop4): mounted filesystem without journal. Quota mode: writeback. ext4 filesystem being mounted at /syzkaller-testdir809299356/syzkaller.oE12dB/174/file0 supports timestamps until 2038 (0x7fffffff) rfkill: input handler disabled rfkill: input handler enabled rfkill: input handler disabled rfkill: input handler enabled rfkill: input handler disabled rfkill: input handler enabled loop1: detected capacity change from 0 to 36 rfkill: input handler disabled loop1: detected capacity change from 0 to 36 loop0: detected capacity change from 0 to 36 loop4: detected capacity change from 0 to 512 rfkill: input handler enabled rfkill: input handler disabled EXT4-fs (loop4): mounted filesystem without journal. Quota mode: writeback. ext4 filesystem being mounted at /syzkaller-testdir809299356/syzkaller.oE12dB/175/file0 supports timestamps until 2038 (0x7fffffff) rfkill: input handler enabled rfkill: input handler disabled rfkill: input handler enabled rfkill: input handler disabled loop1: detected capacity change from 0 to 36 rfkill: input handler enabled loop0: detected capacity change from 0 to 36 loop4: detected capacity change from 0 to 512 EXT4-fs (loop4): mounted filesystem without journal. Quota mode: writeback. ext4 filesystem being mounted at /syzkaller-testdir809299356/syzkaller.oE12dB/176/file0 supports timestamps until 2038 (0x7fffffff) loop4: detected capacity change from 0 to 512 loop0: detected capacity change from 0 to 36 EXT4-fs (loop4): mounted filesystem without journal. Quota mode: writeback. ext4 filesystem being mounted at /syzkaller-testdir809299356/syzkaller.oE12dB/177/file0 supports timestamps until 2038 (0x7fffffff) loop7: detected capacity change from 0 to 36 rfkill: input handler disabled rfkill: input handler enabled loop7: detected capacity change from 0 to 36 rfkill: input handler disabled rfkill: input handler enabled loop7: detected capacity change from 0 to 36 rfkill: input handler disabled rfkill: input handler enabled