bisecting cause commit starting from a9c9a6f741cdaa2fa9ba24a790db8d07295761e3 building syzkaller on f62a58290e2f1200a2b21f2707a9ff0394a2a724 testing commit a9c9a6f741cdaa2fa9ba24a790db8d07295761e3 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: b09044881bc018e89969e71baeab2135d4b50a88a316fa52505ef93bfab21244 run #0: crashed: WARNING: kmalloc bug in hash_ipmac_create run #1: crashed: WARNING: kmalloc bug in hash_ipmac_create run #2: crashed: WARNING: kmalloc bug in hash_ipmac_create run #3: crashed: WARNING: kmalloc bug in hash_ipmac_create run #4: crashed: WARNING: kmalloc bug in hash_ipmac_create run #5: crashed: WARNING: kmalloc bug in hash_ipmac_create run #6: crashed: WARNING: kmalloc bug in hash_ipmac_create run #7: crashed: WARNING: kmalloc bug in hash_ipmac_create run #8: crashed: WARNING: kmalloc bug in hash_ipmac_create run #9: crashed: WARNING: kmalloc bug in hash_ipmac_create run #10: crashed: WARNING: kmalloc bug in hash_ipmac_create run #11: crashed: WARNING: kmalloc bug in hash_ipmac_create run #12: crashed: WARNING: kmalloc bug in hash_ipmac_create run #13: crashed: WARNING: kmalloc bug in hash_ipmac_create run #14: crashed: WARNING: kmalloc bug in hash_ipmac_create run #15: crashed: WARNING: kmalloc bug in hash_ipmac_create run #16: crashed: WARNING: kmalloc bug in hash_ipmac_create run #17: crashed: WARNING: kmalloc bug in hash_ipmac_create run #18: crashed: WARNING: kmalloc bug in hash_ipmac_create run #19: boot failed: possible deadlock in blktrans_open testing release v5.14 testing commit 7d2a07b769330c34b4deabeed939325c77a7ec2f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 42ab57fc9434604be7336d8d442f9783c66c96a21b1e995b8854978c9dcd9fa5 all runs: OK # git bisect start a9c9a6f741cdaa2fa9ba24a790db8d07295761e3 7d2a07b769330c34b4deabeed939325c77a7ec2f Bisecting: 4220 revisions left to test after this (roughly 12 steps) [ebf435d3b51b22340ef047aad0c2936ec4833ab2] Merge tag 'staging-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging testing commit ebf435d3b51b22340ef047aad0c2936ec4833ab2 arch/x86/kernel/setup.c:916:6: error: implicit declaration of function 'acpi_mps_check' [-Werror=implicit-function-declaration] arch/x86/kernel/setup.c:1110:2: error: implicit declaration of function 'acpi_table_upgrade' [-Werror=implicit-function-declaration] arch/x86/kernel/setup.c:1112:2: error: implicit declaration of function 'acpi_boot_table_init' [-Werror=implicit-function-declaration] arch/x86/kernel/setup.c:1120:2: error: implicit declaration of function 'early_acpi_boot_init'; did you mean 'early_cpu_init'? [-Werror=implicit-function-declaration] arch/x86/kernel/setup.c:1162:2: error: implicit declaration of function 'acpi_boot_init' [-Werror=implicit-function-declaration] # git bisect skip ebf435d3b51b22340ef047aad0c2936ec4833ab2 Bisecting: 4220 revisions left to test after this (roughly 12 steps) [afb08b7e220ef7278ffceb4f9e201c2a904e18a9] net: ipa: move IPA flags field testing commit afb08b7e220ef7278ffceb4f9e201c2a904e18a9 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: fb7b63ffccea52a919295efe09137bbda1dd02b3a50e026ae9da6ce2a45aa51c run #0: crashed: BUG: sleeping function called from invalid context in lock_sock_nested run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK reproducer seems to be flaky # git bisect bad afb08b7e220ef7278ffceb4f9e201c2a904e18a9 Bisecting: 369 revisions left to test after this (roughly 9 steps) [2fba2eae30d3401716d56467007d6938c0d580ed] Merge branch 'tcp-rack' testing commit 2fba2eae30d3401716d56467007d6938c0d580ed compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: d507057dd47dc4c4260d8b59f97ff92f023cfa4af1b3823cb88e8a341e71246c all runs: OK # git bisect good 2fba2eae30d3401716d56467007d6938c0d580ed Bisecting: 216 revisions left to test after this (roughly 8 steps) [d2e11fd2b7fcd10b7bcef418c55490c934aa94e8] Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit d2e11fd2b7fcd10b7bcef418c55490c934aa94e8 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 2816f323327007a57c29324ce57fa6b464542601d1b416b28abdf07e39c8927a all runs: boot failed: WARNING: refcount bug in fib_create_info # git bisect skip d2e11fd2b7fcd10b7bcef418c55490c934aa94e8 Bisecting: 216 revisions left to test after this (roughly 8 steps) [510b4d4c5d4cbfdeaf35e4bc6483e8afa16b0e9e] tools: bpftool: Slightly ease bash completion updates testing commit 510b4d4c5d4cbfdeaf35e4bc6483e8afa16b0e9e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 9925679bb940977f9052552fec1bf0e47c1e975f4ff2e5c62b04285b322289ce run #0: basic kernel testing failed: possible deadlock in fs_reclaim_acquire run #1: basic kernel testing failed: possible deadlock in fs_reclaim_acquire run #2: basic kernel testing failed: BUG: sleeping function called from invalid context in stack_depot_save run #3: crashed: BUG: sleeping function called from invalid context in lock_sock_nested run #4: crashed: BUG: sleeping function called from invalid context in lock_sock_nested run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect bad 510b4d4c5d4cbfdeaf35e4bc6483e8afa16b0e9e Bisecting: 31 revisions left to test after this (roughly 5 steps) [05c0b35709c58b83d4dc515d2ac52e9c0f197d03] tcp: seq_file: Replace listening_hash with lhash2 testing commit 05c0b35709c58b83d4dc515d2ac52e9c0f197d03 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 4ff6d0411620b797d6ea4a9098466618d87ed18f4bb732a1fd19bdd2732852fb run #0: crashed: possible deadlock in fs_reclaim_acquire run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect bad 05c0b35709c58b83d4dc515d2ac52e9c0f197d03 Bisecting: 16 revisions left to test after this (roughly 4 steps) [08f71a1e39a1f07a464ac782d9b612d6a74c7015] selftests/bpf: Check inner map deletion testing commit 08f71a1e39a1f07a464ac782d9b612d6a74c7015 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 6575d87f110cb84257fdad9362f6c567b26a82ced35630d22fbcdada4bde5146 all runs: OK # git bisect good 08f71a1e39a1f07a464ac782d9b612d6a74c7015 Bisecting: 8 revisions left to test after this (roughly 3 steps) [724f17b7d45d62c71e92471666647a823cb9baa9] bpf: Remove redundant intiialization of variable stype testing commit 724f17b7d45d62c71e92471666647a823cb9baa9 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 4754510cef5874c34ba93b56e611962df9e3cbe64baf7e3c257695e8ff5e153a run #0: basic kernel testing failed: possible deadlock in fs_reclaim_acquire run #1: basic kernel testing failed: BUG: sleeping function called from invalid context in stack_depot_save run #2: basic kernel testing failed: BUG: sleeping function called from invalid context in stack_depot_save run #3: basic kernel testing failed: BUG: sleeping function called from invalid context in stack_depot_save run #4: crashed: BUG: sleeping function called from invalid context in stack_depot_save run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect bad 724f17b7d45d62c71e92471666647a823cb9baa9 Bisecting: 3 revisions left to test after this (roughly 2 steps) [a17553dde294289c5f45dd79b6cfd532df610b5f] selftests/bpf: Add __int128-specific tests for typed data dump testing commit a17553dde294289c5f45dd79b6cfd532df610b5f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: d623e758da96513d395554ada9bdc3f14ba3bf831ebebc031ba427571ccc3090 run #0: basic kernel testing failed: BUG: sleeping function called from invalid context in stack_depot_save run #1: basic kernel testing failed: possible deadlock in fs_reclaim_acquire run #2: crashed: possible deadlock in fs_reclaim_acquire run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect bad a17553dde294289c5f45dd79b6cfd532df610b5f Bisecting: 1 revision left to test after this (roughly 1 step) [875fc315dbc3cdd3a5cab57b2bb7c1976ec8df44] selftests, bpf: test_tc_tunnel.sh nc: Cannot use -p and -l testing commit 875fc315dbc3cdd3a5cab57b2bb7c1976ec8df44 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 6575d87f110cb84257fdad9362f6c567b26a82ced35630d22fbcdada4bde5146 all runs: OK # git bisect good 875fc315dbc3cdd3a5cab57b2bb7c1976ec8df44 Bisecting: 0 revisions left to test after this (roughly 0 steps) [a1d3cc3c5eca598cfabee3a35f30f34fbe2f709b] libbpf: Avoid use of __int128 in typed dump display testing commit a1d3cc3c5eca598cfabee3a35f30f34fbe2f709b compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: d623e758da96513d395554ada9bdc3f14ba3bf831ebebc031ba427571ccc3090 all runs: OK # git bisect good a1d3cc3c5eca598cfabee3a35f30f34fbe2f709b a17553dde294289c5f45dd79b6cfd532df610b5f is the first bad commit commit a17553dde294289c5f45dd79b6cfd532df610b5f Author: Alan Maguire Date: Tue Jul 20 09:49:52 2021 +0100 selftests/bpf: Add __int128-specific tests for typed data dump Add tests for __int128 display for platforms that support it. __int128s are dumped as hex values. Signed-off-by: Alan Maguire Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/1626770993-11073-3-git-send-email-alan.maguire@oracle.com tools/testing/selftests/bpf/prog_tests/btf_dump.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) culprit signature: d623e758da96513d395554ada9bdc3f14ba3bf831ebebc031ba427571ccc3090 parent signature: d623e758da96513d395554ada9bdc3f14ba3bf831ebebc031ba427571ccc3090 Reproducer flagged being flaky revisions tested: 12, total time: 3h35m21.474303116s (build: 1h38m42.552162897s, test: 1h55m13.718945764s) first bad commit: a17553dde294289c5f45dd79b6cfd532df610b5f selftests/bpf: Add __int128-specific tests for typed data dump recipients (to): ["alan.maguire@oracle.com" "andrii@kernel.org" "linux-kselftest@vger.kernel.org" "shuah@kernel.org"] recipients (cc): ["andrii@kernel.org" "ast@kernel.org" "bpf@vger.kernel.org" "daniel@iogearbox.net" "john.fastabend@gmail.com" "kafai@fb.com" "kpsingh@kernel.org" "linux-kernel@vger.kernel.org" "lmb@cloudflare.com" "netdev@vger.kernel.org" "songliubraving@fb.com" "toke@redhat.com" "yhs@fb.com"] crash: possible deadlock in fs_reclaim_acquire ====================================================== WARNING: possible circular locking dependency detected 5.14.0-rc1-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.2/8839 is trying to acquire lock: ffffffff8ac86c80 (fs_reclaim){+.+.}-{0:0}, at: fs_reclaim_acquire+0xf7/0x160 mm/page_alloc.c:4574 but task is already holding lock: ffff8880b9e4d540 (lock#2){-.-.}-{2:2}, at: __alloc_pages_bulk+0x4ad/0x1870 mm/page_alloc.c:5279 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (lock#2){-.-.}-{2:2}: local_lock_acquire include/linux/local_lock_internal.h:42 [inline] free_unref_page+0x1bf/0x690 mm/page_alloc.c:3427 mm_free_pgd kernel/fork.c:636 [inline] __mmdrop+0xb9/0x350 kernel/fork.c:687 mmdrop include/linux/sched/mm.h:49 [inline] finish_task_switch.isra.0+0x69f/0xa10 kernel/sched/core.c:4582 context_switch kernel/sched/core.c:4686 [inline] __schedule+0x90f/0x26b0 kernel/sched/core.c:5940 preempt_schedule_notrace+0x5b/0xd0 kernel/sched/core.c:6179 preempt_schedule_notrace_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:36 rcu_read_unlock_sched_notrace include/linux/rcupdate.h:809 [inline] trace_lock_release include/trace/events/lock.h:58 [inline] lock_release+0x538/0x720 kernel/locking/lockdep.c:5636 might_alloc include/linux/sched/mm.h:198 [inline] slab_pre_alloc_hook mm/slab.h:485 [inline] slab_alloc mm/slab.c:3306 [inline] __do_kmalloc mm/slab.c:3700 [inline] __kmalloc+0x5a/0x4d0 mm/slab.c:3711 lsm_cred_alloc security/security.c:536 [inline] security_prepare_creds+0xb9/0x130 security/security.c:1690 prepare_creds+0x3d0/0x610 kernel/cred.c:289 access_override_creds fs/open.c:355 [inline] do_faccessat+0x273/0x660 fs/open.c:419 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae -> #1 (mmu_notifier_invalidate_range_start){+.+.}-{0:0}: fs_reclaim_acquire mm/page_alloc.c:4569 [inline] fs_reclaim_acquire+0xd2/0x160 mm/page_alloc.c:4560 might_alloc include/linux/sched/mm.h:198 [inline] slab_pre_alloc_hook mm/slab.h:485 [inline] slab_alloc mm/slab.c:3306 [inline] kmem_cache_alloc_trace+0x39/0x480 mm/slab.c:3573 kmalloc include/linux/slab.h:591 [inline] kzalloc include/linux/slab.h:721 [inline] alloc_workqueue_attrs+0x33/0x70 kernel/workqueue.c:3365 wq_numa_init kernel/workqueue.c:5899 [inline] workqueue_init+0x67/0x7d6 kernel/workqueue.c:6031 kernel_init_freeable+0x337/0x60c init/main.c:1577 kernel_init+0x14/0x120 init/main.c:1485 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 -> #0 (fs_reclaim){+.+.}-{0:0}: check_prev_add kernel/locking/lockdep.c:3051 [inline] check_prevs_add kernel/locking/lockdep.c:3174 [inline] validate_chain kernel/locking/lockdep.c:3789 [inline] __lock_acquire+0x2985/0x5410 kernel/locking/lockdep.c:5015 lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __fs_reclaim_acquire mm/page_alloc.c:4552 [inline] fs_reclaim_acquire+0x117/0x160 mm/page_alloc.c:4566 prepare_alloc_pages+0x15c/0x580 mm/page_alloc.c:5164 __alloc_pages+0x12f/0x500 mm/page_alloc.c:5363 stack_depot_save+0x39d/0x4e0 lib/stackdepot.c:303 save_stack+0x131/0x1a0 mm/page_owner.c:120 __set_page_owner+0x2e/0x250 mm/page_owner.c:181 prep_new_page mm/page_alloc.c:2433 [inline] __alloc_pages_bulk+0x8b9/0x1870 mm/page_alloc.c:5301 alloc_pages_bulk_array_node include/linux/gfp.h:557 [inline] vm_area_alloc_pages mm/vmalloc.c:2793 [inline] __vmalloc_area_node mm/vmalloc.c:2863 [inline] __vmalloc_node_range+0x2f6/0x7e0 mm/vmalloc.c:2966 __vmalloc_node mm/vmalloc.c:3015 [inline] __vmalloc+0x63/0x90 mm/vmalloc.c:3029 pcpu_alloc_chunk mm/percpu.c:1455 [inline] pcpu_create_chunk+0xc6/0x6b0 mm/percpu-vm.c:338 pcpu_alloc+0xb75/0xe30 mm/percpu.c:1838 xt_percpu_counter_alloc+0xee/0x170 net/netfilter/x_tables.c:1869 find_check_entry.constprop.0+0xa3/0x920 net/ipv4/netfilter/ip_tables.c:527 translate_table+0xba8/0x1700 net/ipv4/netfilter/ip_tables.c:717 ipt_register_table+0x10b/0x320 net/ipv4/netfilter/ip_tables.c:1736 iptable_nat_table_init+0x3d/0x360 net/ipv4/netfilter/iptable_nat.c:125 xt_find_table_lock+0x34e/0x7f0 net/netfilter/x_tables.c:1244 xt_request_find_table_lock+0x17/0xa0 net/netfilter/x_tables.c:1275 get_info+0x128/0x5f0 net/ipv6/netfilter/ip6_tables.c:980 do_ipt_get_ctl+0x122/0x7c0 net/ipv4/netfilter/ip_tables.c:1653 nf_getsockopt+0x57/0xb0 net/netfilter/nf_sockopt.c:116 ip_getsockopt net/ipv4/ip_sockglue.c:1777 [inline] ip_getsockopt+0xec/0x130 net/ipv4/ip_sockglue.c:1756 __sys_getsockopt+0x1a8/0x550 net/socket.c:2203 __do_sys_getsockopt net/socket.c:2218 [inline] __se_sys_getsockopt net/socket.c:2215 [inline] __x64_sys_getsockopt+0xb5/0x150 net/socket.c:2215 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae other info that might help us debug this: Chain exists of: fs_reclaim --> mmu_notifier_invalidate_range_start --> lock#2 Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(lock#2); lock(mmu_notifier_invalidate_range_start); lock(lock#2); lock(fs_reclaim); *** DEADLOCK *** 2 locks held by syz-executor.2/8839: #0: ffffffff8ac67808 (pcpu_alloc_mutex){+.+.}-{3:3}, at: pcpu_alloc+0x7f7/0xe30 mm/percpu.c:1778 #1: ffff8880b9e4d540 (lock#2){-.-.}-{2:2}, at: __alloc_pages_bulk+0x4ad/0x1870 mm/page_alloc.c:5279 stack backtrace: CPU: 0 PID: 8839 Comm: syz-executor.2 Not tainted 5.14.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:105 check_noncircular+0x25f/0x2e0 kernel/locking/lockdep.c:2131 check_prev_add kernel/locking/lockdep.c:3051 [inline] check_prevs_add kernel/locking/lockdep.c:3174 [inline] validate_chain kernel/locking/lockdep.c:3789 [inline] __lock_acquire+0x2985/0x5410 kernel/locking/lockdep.c:5015 lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __fs_reclaim_acquire mm/page_alloc.c:4552 [inline] fs_reclaim_acquire+0x117/0x160 mm/page_alloc.c:4566 prepare_alloc_pages+0x15c/0x580 mm/page_alloc.c:5164 __alloc_pages+0x12f/0x500 mm/page_alloc.c:5363 stack_depot_save+0x39d/0x4e0 lib/stackdepot.c:303 save_stack+0x131/0x1a0 mm/page_owner.c:120 __set_page_owner+0x2e/0x250 mm/page_owner.c:181 prep_new_page mm/page_alloc.c:2433 [inline] __alloc_pages_bulk+0x8b9/0x1870 mm/page_alloc.c:5301 alloc_pages_bulk_array_node include/linux/gfp.h:557 [inline] vm_area_alloc_pages mm/vmalloc.c:2793 [inline] __vmalloc_area_node mm/vmalloc.c:2863 [inline] __vmalloc_node_range+0x2f6/0x7e0 mm/vmalloc.c:2966 __vmalloc_node mm/vmalloc.c:3015 [inline] __vmalloc+0x63/0x90 mm/vmalloc.c:3029 pcpu_alloc_chunk mm/percpu.c:1455 [inline] pcpu_create_chunk+0xc6/0x6b0 mm/percpu-vm.c:338 pcpu_alloc+0xb75/0xe30 mm/percpu.c:1838 xt_percpu_counter_alloc+0xee/0x170 net/netfilter/x_tables.c:1869 find_check_entry.constprop.0+0xa3/0x920 net/ipv4/netfilter/ip_tables.c:527 translate_table+0xba8/0x1700 net/ipv4/netfilter/ip_tables.c:717 ipt_register_table+0x10b/0x320 net/ipv4/netfilter/ip_tables.c:1736 iptable_nat_table_init+0x3d/0x360 net/ipv4/netfilter/iptable_nat.c:125 xt_find_table_lock+0x34e/0x7f0 net/netfilter/x_tables.c:1244 xt_request_find_table_lock+0x17/0xa0 net/netfilter/x_tables.c:1275 get_info+0x128/0x5f0 net/ipv6/netfilter/ip6_tables.c:980 do_ipt_get_ctl+0x122/0x7c0 net/ipv4/netfilter/ip_tables.c:1653 nf_getsockopt+0x57/0xb0 net/netfilter/nf_sockopt.c:116 ip_getsockopt net/ipv4/ip_sockglue.c:1777 [inline] ip_getsockopt+0xec/0x130 net/ipv4/ip_sockglue.c:1756 __sys_getsockopt+0x1a8/0x550 net/socket.c:2203 __do_sys_getsockopt net/socket.c:2218 [inline] __se_sys_getsockopt net/socket.c:2215 [inline] __x64_sys_getsockopt+0xb5/0x150 net/socket.c:2215 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x467c0a Code: 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 37 00 00 00 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:00007ffec46c3758 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000467c0a RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000003 R08: 00007ffec46c378c R09: 0000000000000278 R10: 00000000005443c8 R11: 0000000000000246 R12: 00007ffec46c378c R13: 00000000004c8cf7 R14: 00000000005443c8 R15: 00000000005443c0 BUG: sleeping function called from invalid context at mm/page_alloc.c:5167 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 8839, name: syz-executor.2 INFO: lockdep is turned off. irq event stamp: 175760 hardirqs last enabled at (175759): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (175759): [] _raw_spin_unlock_irqrestore+0x50/0x70 kernel/locking/spinlock.c:191 hardirqs last disabled at (175760): [] __alloc_pages_bulk+0x1017/0x1870 mm/page_alloc.c:5279 softirqs last enabled at (175722): [] do_ip_getsockopt+0x39e/0x1420 net/ipv4/ip_sockglue.c:1728 softirqs last disabled at (175720): [] spin_lock_bh include/linux/spinlock.h:359 [inline] softirqs last disabled at (175720): [] release_sock+0x16/0x170 net/core/sock.c:3177 CPU: 0 PID: 8839 Comm: syz-executor.2 Not tainted 5.14.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:105 ___might_sleep.cold+0x1f1/0x237 kernel/sched/core.c:9154 prepare_alloc_pages+0x3da/0x580 mm/page_alloc.c:5167 __alloc_pages+0x12f/0x500 mm/page_alloc.c:5363 stack_depot_save+0x39d/0x4e0 lib/stackdepot.c:303 save_stack+0x131/0x1a0 mm/page_owner.c:120 __set_page_owner+0x2e/0x250 mm/page_owner.c:181 prep_new_page mm/page_alloc.c:2433 [inline] __alloc_pages_bulk+0x8b9/0x1870 mm/page_alloc.c:5301 alloc_pages_bulk_array_node include/linux/gfp.h:557 [inline] vm_area_alloc_pages mm/vmalloc.c:2793 [inline] __vmalloc_area_node mm/vmalloc.c:2863 [inline] __vmalloc_node_range+0x2f6/0x7e0 mm/vmalloc.c:2966 __vmalloc_node mm/vmalloc.c:3015 [inline] __vmalloc+0x63/0x90 mm/vmalloc.c:3029 pcpu_alloc_chunk mm/percpu.c:1455 [inline] pcpu_create_chunk+0xc6/0x6b0 mm/percpu-vm.c:338 pcpu_alloc+0xb75/0xe30 mm/percpu.c:1838 xt_percpu_counter_alloc+0xee/0x170 net/netfilter/x_tables.c:1869 find_check_entry.constprop.0+0xa3/0x920 net/ipv4/netfilter/ip_tables.c:527 translate_table+0xba8/0x1700 net/ipv4/netfilter/ip_tables.c:717 ipt_register_table+0x10b/0x320 net/ipv4/netfilter/ip_tables.c:1736 iptable_nat_table_init+0x3d/0x360 net/ipv4/netfilter/iptable_nat.c:125 xt_find_table_lock+0x34e/0x7f0 net/netfilter/x_tables.c:1244 xt_request_find_table_lock+0x17/0xa0 net/netfilter/x_tables.c:1275 get_info+0x128/0x5f0 net/ipv6/netfilter/ip6_tables.c:980 do_ipt_get_ctl+0x122/0x7c0 net/ipv4/netfilter/ip_tables.c:1653 nf_getsockopt+0x57/0xb0 net/netfilter/nf_sockopt.c:116 ip_getsockopt net/ipv4/ip_sockglue.c:1777 [inline] ip_getsockopt+0xec/0x130 net/ipv4/ip_sockglue.c:1756 __sys_getsockopt+0x1a8/0x550 net/socket.c:2203 __do_sys_getsockopt net/socket.c:2218 [inline] __se_sys_getsockopt net/socket.c:2215 [inline] __x64_sys_getsockopt+0xb5/0x150 net/socket.c:2215 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x467c0a Code: 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 37 00 00 00 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:00007ffec46c3758 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000467c0a RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000003 R08: 00007ffec46c378c R09: 0000000000000278 R10: 00000000005443c8 R11: 0000000000000246 R12: 00007ffec46c378c R13: 00000000004c8cf7 R14: 00000000005443c8 R15: 00000000005443c0