bisecting cause commit starting from b81b1829e7e39f6cebdf6e4d5484eacbceda8554 building syzkaller on 8b9ca619df135211a89cc19719f2705d0016045d testing commit b81b1829e7e39f6cebdf6e4d5484eacbceda8554 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 4b84e03a512b82b89e2b2249c33149b2e17cd8ce23ec8587ed2665f9fb8aa247 all runs: crashed: general protection fault in sock_setsockopt testing release v5.16 testing commit df0cc57e057f18e44dac8e6c18aba47ab53202f9 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9a62145d11d56479d620b59e4ed976fd3866a0517d4fab5a5346421482d858bc all runs: crashed: general protection fault in sock_setsockopt testing release v5.15 testing commit 8bb7eca972ad531c9b149c0a51ab43a417385813 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f418bf5f8efa2829b46a0d771aade7866b949581c48efcfafabe21b32bb37ac2 all runs: OK # git bisect start df0cc57e057f18e44dac8e6c18aba47ab53202f9 8bb7eca972ad531c9b149c0a51ab43a417385813 Bisecting: 7870 revisions left to test after this (roughly 13 steps) [2219b0ceefe835b92a8a74a73fe964aa052742a2] Merge tag 'soc-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc testing commit 2219b0ceefe835b92a8a74a73fe964aa052742a2 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e544f1f8cef1e5b1d2a990ebe28b430a4632154f5778b03c8be02adb9cc6a9f4 all runs: crashed: general protection fault in sock_setsockopt # git bisect bad 2219b0ceefe835b92a8a74a73fe964aa052742a2 Bisecting: 2946 revisions left to test after this (roughly 12 steps) [fc02cb2b37fe2cbf1d3334b9f0f0eab9431766c4] Merge tag 'net-next-for-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next testing commit fc02cb2b37fe2cbf1d3334b9f0f0eab9431766c4 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 20587a20e3361654823d31bb3642a94cc661fc2e98889e01bebcc4ec6b7f3aa7 all runs: crashed: general protection fault in sock_setsockopt # git bisect bad fc02cb2b37fe2cbf1d3334b9f0f0eab9431766c4 Bisecting: 2251 revisions left to test after this (roughly 11 steps) [b7b98f868987cd3e86c9bd9a6db048614933d7a0] Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next testing commit b7b98f868987cd3e86c9bd9a6db048614933d7a0 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 597ccc7bb388a078eff9b7fc5aad379d454d85ba03c9c3da654ab25499c83bc9 all runs: crashed: general protection fault in sock_setsockopt # git bisect bad b7b98f868987cd3e86c9bd9a6db048614933d7a0 Bisecting: 1156 revisions left to test after this (roughly 10 steps) [9fd3d5dced976640f588e0a866b9611db2d2cb37] net: ethernet: ave: Add compatible string and SoC-dependent data for NX1 SoC testing commit 9fd3d5dced976640f588e0a866b9611db2d2cb37 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f1d1d98183c1610c1acd3764266067a8f5da1dfe18b7fcecb7b094bd476779ee all runs: crashed: general protection fault in sock_setsockopt # git bisect bad 9fd3d5dced976640f588e0a866b9611db2d2cb37 Bisecting: 578 revisions left to test after this (roughly 9 steps) [a96d317fb1a30b9f323548eb2ff05d4e4600ead9] ethernet: use eth_hw_addr_set() testing commit a96d317fb1a30b9f323548eb2ff05d4e4600ead9 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ea32b0671a80ea571c2faefe12f64058936f5123eb7db325c62c209d108d6191 all runs: crashed: general protection fault in sock_setsockopt # git bisect bad a96d317fb1a30b9f323548eb2ff05d4e4600ead9 Bisecting: 288 revisions left to test after this (roughly 8 steps) [6c2509d4463640c4b91d5937b5b2ff5ca07f6567] net/mlx5e: Add error flow for ethtool -X command testing commit 6c2509d4463640c4b91d5937b5b2ff5ca07f6567 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f47420c0b72da85f3b32066e00abac8390ec68925d4382633023ed58b7c8c834 all runs: OK # git bisect good 6c2509d4463640c4b91d5937b5b2ff5ca07f6567 Bisecting: 144 revisions left to test after this (roughly 7 steps) [515ce2ffa62175d5442302a72553a14e5165441e] net/mlx5: DR, init_next_match only if needed testing commit 515ce2ffa62175d5442302a72553a14e5165441e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ecb1645b0b5082f1567f69249a0fb7e56eafbddbe7bb90756d42b8fbbc3377cf all runs: crashed: general protection fault in sock_setsockopt # git bisect bad 515ce2ffa62175d5442302a72553a14e5165441e Bisecting: 71 revisions left to test after this (roughly 6 steps) [f04ed7d277e842af9934b71b529341d1ba31a9c1] net: ipv6: check return value of rhashtable_init testing commit f04ed7d277e842af9934b71b529341d1ba31a9c1 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 176c32de1bf4b2bb999905685c8e99c1c065134c147e1b86e400b0d7221ab9ff all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip f04ed7d277e842af9934b71b529341d1ba31a9c1 Bisecting: 71 revisions left to test after this (roughly 6 steps) [67d78e7f768349bbc7d055d2bd6e080b0c169e84] net: mscc: ocelot: delay devlink registration to the end testing commit 67d78e7f768349bbc7d055d2bd6e080b0c169e84 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: fc74611c7f09d53d971e8bba8d2477b790b09a88d389b03d9d11f62ec6d69ec2 all runs: OK # git bisect good 67d78e7f768349bbc7d055d2bd6e080b0c169e84 Bisecting: 46 revisions left to test after this (roughly 6 steps) [49f01349d15ed5ae0b265e9dc6fc12d269a5a0a4] Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/nex t-queue testing commit 49f01349d15ed5ae0b265e9dc6fc12d269a5a0a4 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6a0500c35d32c5f8540bfb8e08fdc771910d06888f7f362f4aeb408084cfb427 all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip 49f01349d15ed5ae0b265e9dc6fc12d269a5a0a4 Bisecting: 46 revisions left to test after this (roughly 6 steps) [97f09abffcb967144ed01fe9d09d0fba499ffc6f] mctp: Do inits as a subsys_initcall testing commit 97f09abffcb967144ed01fe9d09d0fba499ffc6f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6a0500c35d32c5f8540bfb8e08fdc771910d06888f7f362f4aeb408084cfb427 all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip 97f09abffcb967144ed01fe9d09d0fba499ffc6f Bisecting: 46 revisions left to test after this (roughly 6 steps) [4fe815850bdc8d4cc94e06fe1de069424a895826] ixgbe: let the xdpdrv work with more than 64 cpus testing commit 4fe815850bdc8d4cc94e06fe1de069424a895826 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 459728a4eda7de3fcad1a761a6227056200a47b336692c7d3e06681c5146cfc4 all runs: crashed: general protection fault in sock_setsockopt # git bisect bad 4fe815850bdc8d4cc94e06fe1de069424a895826 Bisecting: 40 revisions left to test after this (roughly 5 steps) [0128cc6e928dffb2db161c97f196b23a4be0b9ba] ice: refactor devlink getter/fallback functions to void testing commit 0128cc6e928dffb2db161c97f196b23a4be0b9ba compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 0117fa6477ab47138873f6d3d44fc2a1bba01b617b0fbadc60eea0a1e6569afb all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip 0128cc6e928dffb2db161c97f196b23a4be0b9ba Bisecting: 40 revisions left to test after this (roughly 5 steps) [096d19f3156dd8843c48677931f9a563afd22143] Merge branch 'octeontx2-ptp-vf' testing commit 096d19f3156dd8843c48677931f9a563afd22143 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6a0500c35d32c5f8540bfb8e08fdc771910d06888f7f362f4aeb408084cfb427 all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip 096d19f3156dd8843c48677931f9a563afd22143 Bisecting: 40 revisions left to test after this (roughly 5 steps) [7b1871af75f30d9d88184fff42698718fa157dcf] mctp: Warn if pointer is set for a wrong dev type testing commit 7b1871af75f30d9d88184fff42698718fa157dcf compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6a0500c35d32c5f8540bfb8e08fdc771910d06888f7f362f4aeb408084cfb427 all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip 7b1871af75f30d9d88184fff42698718fa157dcf Bisecting: 40 revisions left to test after this (roughly 5 steps) [43510ef4ddad39d815f0f9396521a139d69b0baf] octeontx2-nicvf: Add PTP hardware clock support to NIX VF testing commit 43510ef4ddad39d815f0f9396521a139d69b0baf compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6a0500c35d32c5f8540bfb8e08fdc771910d06888f7f362f4aeb408084cfb427 all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip 43510ef4ddad39d815f0f9396521a139d69b0baf Bisecting: 40 revisions left to test after this (roughly 5 steps) [6183569db80eedc648b584a658e6b898d43650cb] mctp: Set route MTU via netlink testing commit 6183569db80eedc648b584a658e6b898d43650cb compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6a0500c35d32c5f8540bfb8e08fdc771910d06888f7f362f4aeb408084cfb427 all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip 6183569db80eedc648b584a658e6b898d43650cb Bisecting: 40 revisions left to test after this (roughly 5 steps) [4fc5fbee5cb7dda1411fcb44e1f3d95a86af53ea] ice: Fix link mode handling testing commit 4fc5fbee5cb7dda1411fcb44e1f3d95a86af53ea compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 0117fa6477ab47138873f6d3d44fc2a1bba01b617b0fbadc60eea0a1e6569afb all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip 4fc5fbee5cb7dda1411fcb44e1f3d95a86af53ea Bisecting: 40 revisions left to test after this (roughly 5 steps) [f43bed7193a36b1b4f73212ee0069f9113816856] net: mac80211: check return value of rhashtable_init testing commit f43bed7193a36b1b4f73212ee0069f9113816856 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 99fbc8bec188305d77f7fba6a24a21017db2b22c75f33d91724376cf8837f8f3 all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip f43bed7193a36b1b4f73212ee0069f9113816856 Bisecting: 40 revisions left to test after this (roughly 5 steps) [a3e4abace5865b535140179b4a86a08349c7fd3c] Merge branch 'SO_RESEVED_MEM' testing commit a3e4abace5865b535140179b4a86a08349c7fd3c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 459728a4eda7de3fcad1a761a6227056200a47b336692c7d3e06681c5146cfc4 all runs: crashed: general protection fault in sock_setsockopt # git bisect bad a3e4abace5865b535140179b4a86a08349c7fd3c Bisecting: 39 revisions left to test after this (roughly 5 steps) [7b14e15ae6f4850392800482efb54d5cf4ae300c] mctp: Implement a timeout for tags testing commit 7b14e15ae6f4850392800482efb54d5cf4ae300c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6a0500c35d32c5f8540bfb8e08fdc771910d06888f7f362f4aeb408084cfb427 all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip 7b14e15ae6f4850392800482efb54d5cf4ae300c Bisecting: 39 revisions left to test after this (roughly 5 steps) [7911c8bd546fa85e408544426646dd1f1a684286] ionic: Move devlink registration to be last devlink command testing commit 7911c8bd546fa85e408544426646dd1f1a684286 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: fc74611c7f09d53d971e8bba8d2477b790b09a88d389b03d9d11f62ec6d69ec2 all runs: OK # git bisect good 7911c8bd546fa85e408544426646dd1f1a684286 Bisecting: 39 revisions left to test after this (roughly 5 steps) [2bb2f5fb21b0486ff69b7b4a1fe03a760527d133] net: add new socket option SO_RESERVE_MEM testing commit 2bb2f5fb21b0486ff69b7b4a1fe03a760527d133 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e13c9fb2f49ea8197d7ebdc5f4ed9c16e9ac43935e5df95b34faf1ab12b9df71 all runs: crashed: general protection fault in sock_setsockopt # git bisect bad 2bb2f5fb21b0486ff69b7b4a1fe03a760527d133 Bisecting: 37 revisions left to test after this (roughly 5 steps) [1817750bdc676bac6d1886799023b03c16e9548f] net: ipv6: use ipv6-y directly instead of ipv6-objs testing commit 1817750bdc676bac6d1886799023b03c16e9548f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 99fbc8bec188305d77f7fba6a24a21017db2b22c75f33d91724376cf8837f8f3 all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip 1817750bdc676bac6d1886799023b03c16e9548f Bisecting: 37 revisions left to test after this (roughly 5 steps) [6f0b1edd9ff15b948ad03661954aebf35dc0bfa7] staging: qlge: Move devlink registration to be last devlink command testing commit 6f0b1edd9ff15b948ad03661954aebf35dc0bfa7 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d57d1c91283ab1d5ebe6e02c0883e4300fbf31460b7e2f90cb5f943e0368388f all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip 6f0b1edd9ff15b948ad03661954aebf35dc0bfa7 Bisecting: 37 revisions left to test after this (roughly 5 steps) [e37e08fffc373206ad4e905c05729ea6bbdcb22c] octeontx2-af: Reset PTP config in FLR handler testing commit e37e08fffc373206ad4e905c05729ea6bbdcb22c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 4f211c1435cda4f5426d3a1552114dcc22a81d70908435319d4442d3c4b2385c all runs: basic kernel testing failed: WARNING in devlink_nl_region_notify # git bisect skip e37e08fffc373206ad4e905c05729ea6bbdcb22c Bisecting: 37 revisions left to test after this (roughly 5 steps) [85212a127e469c5560daf63a9782755ee4b03619] octeontx2-af: Adjust LA pointer for cpt parse header testing commit 85212a127e469c5560daf63a9782755ee4b03619 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f5b65823e6a16a674e0990e4df9f2183196d5bf0246eef3193444f99aa5f24dc all runs: OK # git bisect good 85212a127e469c5560daf63a9782755ee4b03619 Bisecting: 3 revisions left to test after this (roughly 2 steps) [2e861e5e97175dfa7b7bc055c45acdc06d2301d3] dissector: do not set invalid PPP protocol testing commit 2e861e5e97175dfa7b7bc055c45acdc06d2301d3 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e6bcdf5e93377df78f7ac227b23c385e0ddefdf8ad701a069cd186f9a41a7c5d all runs: OK # git bisect good 2e861e5e97175dfa7b7bc055c45acdc06d2301d3 Bisecting: 1 revision left to test after this (roughly 1 step) [75f81afb27c366fa5a85bd2b75d0e9fd00097a50] octeontx2-af: Remove redundant initialization of variable pin testing commit 75f81afb27c366fa5a85bd2b75d0e9fd00097a50 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e6bcdf5e93377df78f7ac227b23c385e0ddefdf8ad701a069cd186f9a41a7c5d all runs: OK # git bisect good 75f81afb27c366fa5a85bd2b75d0e9fd00097a50 Bisecting: 0 revisions left to test after this (roughly 0 steps) [4075a6a047bbb4c67a0670f4ad981cfc5ffb5c76] net: phy: marvell10g: add downshift tunable support testing commit 4075a6a047bbb4c67a0670f4ad981cfc5ffb5c76 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e6bcdf5e93377df78f7ac227b23c385e0ddefdf8ad701a069cd186f9a41a7c5d all runs: OK # git bisect good 4075a6a047bbb4c67a0670f4ad981cfc5ffb5c76 2bb2f5fb21b0486ff69b7b4a1fe03a760527d133 is the first bad commit commit 2bb2f5fb21b0486ff69b7b4a1fe03a760527d133 Author: Wei Wang Date: Wed Sep 29 10:25:11 2021 -0700 net: add new socket option SO_RESERVE_MEM This socket option provides a mechanism for users to reserve a certain amount of memory for the socket to use. When this option is set, kernel charges the user specified amount of memory to memcg, as well as sk_forward_alloc. This amount of memory is not reclaimable and is available in sk_forward_alloc for this socket. With this socket option set, the networking stack spends less cycles doing forward alloc and reclaim, which should lead to better system performance, with the cost of an amount of pre-allocated and unreclaimable memory, even under memory pressure. Note: This socket option is only available when memory cgroup is enabled and we require this reserved memory to be charged to the user's memcg. We hope this could avoid mis-behaving users to abused this feature to reserve a large amount on certain sockets and cause unfairness for others. Signed-off-by: Wei Wang Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller include/net/sock.h | 44 ++++++++++++++++++++++--- include/uapi/asm-generic/socket.h | 2 ++ net/core/sock.c | 69 +++++++++++++++++++++++++++++++++++++++ net/core/stream.c | 2 +- net/ipv4/af_inet.c | 2 +- 5 files changed, 112 insertions(+), 7 deletions(-) culprit signature: e13c9fb2f49ea8197d7ebdc5f4ed9c16e9ac43935e5df95b34faf1ab12b9df71 parent signature: e6bcdf5e93377df78f7ac227b23c385e0ddefdf8ad701a069cd186f9a41a7c5d revisions tested: 33, total time: 6h23m51.763848338s (build: 4h31m21.906080262s, test: 1h50m10.881418739s) first bad commit: 2bb2f5fb21b0486ff69b7b4a1fe03a760527d133 net: add new socket option SO_RESERVE_MEM recipients (to): ["davem@davemloft.net" "edumazet@google.com" "weiwan@google.com"] recipients (cc): [] crash: general protection fault in sock_setsockopt general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 PID: 3999 Comm: syz-executor178 Not tainted 5.15.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:sk_prot_mem_limits include/net/sock.h:1477 [inline] RIP: 0010:sock_reserve_memory net/core/sock.c:985 [inline] RIP: 0010:sock_setsockopt+0x1b91/0x24e0 net/core/sock.c:1430 Code: fa 48 c1 ea 03 80 3c 02 00 0f 85 56 07 00 00 49 8b 86 10 01 00 00 ba ff ff 37 00 48 c1 e2 2a 48 8d 78 08 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 08 07 00 00 48 8b 8d 90 fe ff ff 48 39 48 08 0f RSP: 0018:ffffc90002b4fc78 EFLAGS: 00010202 RAX: 0000000000000000 RBX: 1ffff92000569f94 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: 0000000000000008 RDI: 0000000000000008 RBP: ffffc90002b4fdf0 R08: 0000000000000001 R09: ffffffff8f43a167 R10: fffffbfff1e8742c R11: 000000000007a089 R12: ffff88801d02f460 R13: ffff88801d02f000 R14: ffffffff8b394f40 R15: ffff88801d02f21c FS: 00005555555cf300(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f14ce183130 CR3: 000000006e80c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __sys_setsockopt+0x38c/0x4e0 net/socket.c:2172 __do_sys_setsockopt net/socket.c:2187 [inline] __se_sys_setsockopt net/socket.c:2184 [inline] __x64_sys_setsockopt+0xb5/0x150 net/socket.c:2184 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:0x7f14ce111db9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 15 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffdd44562f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f14ce111db9 RDX: 0000000000000049 RSI: 0000000000000001 RDI: 0000000000000004 RBP: 0000000000000000 R08: 0000000000000004 R09: 00007ffdd4456320 R10: 0000000020000000 R11: 0000000000000246 R12: 00007ffdd445631c R13: 00007ffdd4456330 R14: 00007ffdd4456370 R15: 0000000000000000 Modules linked in: ---[ end trace 78b910292b4d6678 ]--- RIP: 0010:sk_prot_mem_limits include/net/sock.h:1477 [inline] RIP: 0010:sock_reserve_memory net/core/sock.c:985 [inline] RIP: 0010:sock_setsockopt+0x1b91/0x24e0 net/core/sock.c:1430 Code: fa 48 c1 ea 03 80 3c 02 00 0f 85 56 07 00 00 49 8b 86 10 01 00 00 ba ff ff 37 00 48 c1 e2 2a 48 8d 78 08 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 08 07 00 00 48 8b 8d 90 fe ff ff 48 39 48 08 0f RSP: 0018:ffffc90002b4fc78 EFLAGS: 00010202 RAX: 0000000000000000 RBX: 1ffff92000569f94 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: 0000000000000008 RDI: 0000000000000008 RBP: ffffc90002b4fdf0 R08: 0000000000000001 R09: ffffffff8f43a167 R10: fffffbfff1e8742c R11: 000000000007a089 R12: ffff88801d02f460 R13: ffff88801d02f000 R14: ffffffff8b394f40 R15: ffff88801d02f21c FS: 00005555555cf300(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f14ce183130 CR3: 000000006e80c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: fa cli 1: 48 c1 ea 03 shr $0x3,%rdx 5: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 9: 0f 85 56 07 00 00 jne 0x765 f: 49 8b 86 10 01 00 00 mov 0x110(%r14),%rax 16: ba ff ff 37 00 mov $0x37ffff,%edx 1b: 48 c1 e2 2a shl $0x2a,%rdx 1f: 48 8d 78 08 lea 0x8(%rax),%rdi 23: 48 89 f9 mov %rdi,%rcx 26: 48 c1 e9 03 shr $0x3,%rcx * 2a: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1) <-- trapping instruction 2e: 0f 85 08 07 00 00 jne 0x73c 34: 48 8b 8d 90 fe ff ff mov -0x170(%rbp),%rcx 3b: 48 39 48 08 cmp %rcx,0x8(%rax) 3f: 0f .byte 0xf