ci2 starts bisection 2023-12-12 21:16:47.218066109 +0000 UTC m=+33487.252754925 bisecting fixing commit since ea586874d2f9e501ef84b7e55036fc8965397d5d building syzkaller on 0b6a67ac4b0dc26f43030c5edd01c9175f13b784 ensuring issue is reproducible on original commit ea586874d2f9e501ef84b7e55036fc8965397d5d testing commit ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ee9b2c6824279b80d8771119caea59a036a138422ebadb70c03b85afa5a10a38 all runs: crashed: KASAN: use-after-free Read in consume_skb representative crash: KASAN: use-after-free Read in consume_skb, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5fc22cd48042345f61d35b3ab620f10c4fc873ddc9286e69d40485e4f27b07a8 all runs: crashed: KASAN: use-after-free Read in consume_skb representative crash: KASAN: use-after-free Read in consume_skb, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed kconfig minimization: base=4920 full=6163 leaves diff=241 split chunks (needed=false): <241> split chunk #0 of len 241 into 5 parts testing without sub-chunk 1/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 41fba8d3b7c121fc60c804a6a027eb8d7e72a97385bdc6e95466d3a18ad5ce87 all runs: crashed: KASAN: use-after-free Read in consume_skb representative crash: KASAN: use-after-free Read in consume_skb, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c962aad63edddb5eee6f26a56289b3c8855d0e3dd81b77756b1a19865e56e1d1 run #0: crashed: KASAN: use-after-free Read in consume_skb run #1: crashed: KASAN: use-after-free Read in consume_skb run #2: crashed: KASAN: use-after-free Read in consume_skb run #3: crashed: KASAN: use-after-free Write in skb_release_data run #4: crashed: KASAN: use-after-free Read in consume_skb run #5: crashed: KASAN: use-after-free Read in consume_skb run #6: crashed: KASAN: use-after-free Read in consume_skb run #7: crashed: KASAN: use-after-free Read in consume_skb run #8: crashed: KASAN: use-after-free Read in consume_skb run #9: crashed: KASAN: use-after-free Read in consume_skb representative crash: KASAN: use-after-free Read in consume_skb, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4aa95f133af9ad489f712a2aa00fdbbf0b5e23e610efff1b4c302d298bc70322 all runs: crashed: KASAN: use-after-free Read in consume_skb representative crash: KASAN: use-after-free Read in consume_skb, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2a40d4da6f0ca854ba503e1f2ede333b7cf48e679d6c2bee8e16000bd72985bd all runs: crashed: KASAN: use-after-free Read in consume_skb representative crash: KASAN: use-after-free Read in consume_skb, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit ea586874d2f9e501ef84b7e55036fc8965397d5d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building ea586874d2f9e501ef84b7e55036fc8965397d5d: net/socket.c:1172: undefined reference to `wext_handle_ioctl' net/socket.c:3366: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:343: undefined reference to `wext_proc_exit' net/core/net-procfs.c:327: undefined reference to `wext_proc_init' minimized to 45 configs; suspects: [HID_ZEROPLUS USB_NET_MCS7830 USB_NET_NET1080 USB_NET_PLUSB USB_NET_RNDIS_HOST USB_NET_SMSC75XX USB_NET_SMSC95XX USB_NET_SR9700 USB_NET_SR9800 USB_NET_ZAURUS USB_OHCI_HCD USB_OHCI_HCD_PCI USB_OHCI_HCD_PLATFORM USB_OTG USB_OTG_FSM USB_PRINTER USB_SERIAL USB_SERIAL_FTDI_SIO USB_SERIAL_GENERIC USB_SERIAL_PL2303 USB_STORAGE_ALAUDA USB_STORAGE_CYPRESS_ATACB USB_STORAGE_DATAFAB USB_STORAGE_FREECOM USB_STORAGE_ISD200 USB_STORAGE_JUMPSHOT USB_STORAGE_KARMA USB_STORAGE_ONETOUCH USB_STORAGE_SDDR09 USB_STORAGE_SDDR55 USB_STORAGE_USBAT USB_TRANCEVIBRATOR USB_U_AUDIO USB_U_ETHER USB_U_SERIAL USB_WDM WLAN WLAN_VENDOR_ATH WLAN_VENDOR_ATMEL WLAN_VENDOR_BROADCOM WLAN_VENDOR_INTERSIL WLAN_VENDOR_MARVELL WLAN_VENDOR_MEDIATEK WLAN_VENDOR_MICROCHIP WLAN_VENDOR_RALINK WLAN_VENDOR_REALTEK WLAN_VENDOR_RSI WLAN_VENDOR_ZYDAS X86_X32 ZEROPLUS_FF] disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing current HEAD 05ef4ccb57746f921003b9340fc2f0532c177f41 testing commit 05ef4ccb57746f921003b9340fc2f0532c177f41 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7cd94e6b8d0ca1ea610b2470666d1152a7b0bfa84e75c616a4ddbf035eaa828e all runs: crashed: KASAN: use-after-free Read in consume_skb representative crash: KASAN: use-after-free Read in consume_skb, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 54m40.028304615s (build: 33m15.212739752s, test: 19m38.021046859s) crash still not fixed or there were kernel test errors commit msg: Revert "ipvlan: properly track tx_errors" crash: KASAN: use-after-free Read in consume_skb ================================================================== BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:71 [inline] BUG: KASAN: use-after-free in atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline] BUG: KASAN: use-after-free in refcount_read include/linux/refcount.h:147 [inline] BUG: KASAN: use-after-free in skb_unref include/linux/skbuff.h:1131 [inline] BUG: KASAN: use-after-free in consume_skb+0x28/0x1d0 net/core/skbuff.c:926 Read of size 4 at addr ffff888123354ae4 by task syz-executor.0/350 CPU: 1 PID: 350 Comm: syz-executor.0 Not tainted 5.15.139-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x38/0x49 lib/dump_stack.c:106 print_address_description.constprop.0+0x24/0x160 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report.cold+0x82/0xdb mm/kasan/report.c:444 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x148/0x190 mm/kasan/generic.c:189 __kasan_check_read+0x11/0x20 mm/kasan/shadow.c:31 instrument_atomic_read include/linux/instrumented.h:71 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline] refcount_read include/linux/refcount.h:147 [inline] skb_unref include/linux/skbuff.h:1131 [inline] consume_skb+0x28/0x1d0 net/core/skbuff.c:926 __sk_msg_free+0x267/0x4e0 net/core/skmsg.c:205 sk_msg_free net/core/skmsg.c:218 [inline] __sk_psock_purge_ingress_msg net/core/skmsg.c:768 [inline] __sk_psock_zap_ingress net/core/skmsg.c:786 [inline] sk_psock_stop+0x3e4/0x600 net/core/skmsg.c:804 sock_map_close+0x253/0x310 net/core/sock_map.c:1548 unix_release+0x73/0xe0 net/unix/af_unix.c:949 __sock_release+0xc2/0x270 net/socket.c:649 sock_close+0x10/0x20 net/socket.c:1334 __fput+0x317/0x960 fs/file_table.c:280 ____fput+0x9/0x10 fs/file_table.c:308 task_work_run+0xc2/0x150 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x140/0x150 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x21/0x40 kernel/entry/common.c:301 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f31b5b259da Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24 RSP: 002b:00007ffdbe193520 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f31b5b259da RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007f31b5c47980 R08: 0000001b31460000 R09: 00007ffdbe1d4080 R10: 0000000000000000 R11: 0000000000000293 R12: 000000000000a752 R13: ffffffffffffffff R14: 00007f31b56aa000 R15: 000000000000a411 Allocated by task 351: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] __kasan_slab_alloc+0x94/0xc0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook mm/slab.h:550 [inline] slab_alloc_node mm/slub.c:3240 [inline] slab_alloc mm/slub.c:3248 [inline] kmem_cache_alloc+0x197/0x480 mm/slub.c:3253 skb_clone+0x131/0x310 net/core/skbuff.c:1547 sk_psock_verdict_recv+0x4a/0x9e0 net/core/skmsg.c:1182 unix_read_sock+0xd8/0x200 net/unix/af_unix.c:2433 sk_psock_verdict_data_ready+0x104/0x170 net/core/skmsg.c:1225 unix_dgram_sendmsg+0xc13/0x16d0 net/unix/af_unix.c:1949 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg+0xb5/0xf0 net/socket.c:716 ____sys_sendmsg+0x3f3/0x990 net/socket.c:2429 ___sys_sendmsg+0xfc/0x190 net/socket.c:2483 __sys_sendmmsg+0x160/0x340 net/socket.c:2569 __do_sys_sendmmsg net/socket.c:2598 [inline] __se_sys_sendmmsg net/socket.c:2595 [inline] __x64_sys_sendmmsg+0x98/0xf0 net/socket.c:2595 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+0x61/0xcb Freed by task 25: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track+0x25/0x30 mm/kasan/common.c:45 kasan_set_free_info+0x24/0x40 mm/kasan/generic.c:370 ____kasan_slab_free mm/kasan/common.c:365 [inline] ____kasan_slab_free mm/kasan/common.c:327 [inline] __kasan_slab_free+0x111/0x150 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1723 [inline] slab_free_freelist_hook+0x94/0x1a0 mm/slub.c:1749 slab_free mm/slub.c:3519 [inline] kmem_cache_free+0x105/0x250 mm/slub.c:3535 kfree_skbmem+0x95/0x140 net/core/skbuff.c:701 __kfree_skb net/core/skbuff.c:758 [inline] kfree_skb_reason net/core/skbuff.c:778 [inline] kfree_skb_reason+0xbb/0x2b0 net/core/skbuff.c:771 kfree_skb+0xb/0x10 net/core/skbuff.c:792 sock_drop include/linux/skmsg.h:312 [inline] sk_psock_backlog+0x694/0xd00 net/core/skmsg.c:681 process_one_work+0x62c/0xec0 kernel/workqueue.c:2317 worker_thread+0x48e/0xdb0 kernel/workqueue.c:2464 kthread+0x324/0x3e0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff888123354a00 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 228 bytes inside of 240-byte region [ffff888123354a00, ffff888123354af0) The buggy address belongs to the page: page:ffffea00048cd500 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x123354 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff8881002fb080 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 37, ts 42039982546, free_ts 42021057563 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2604 [inline] prep_new_page+0x1a2/0x310 mm/page_alloc.c:2610 get_page_from_freelist+0x1ce2/0x30a0 mm/page_alloc.c:4484 __alloc_pages+0x23f/0x2400 mm/page_alloc.c:5776 __alloc_pages_node include/linux/gfp.h:591 [inline] alloc_pages_node include/linux/gfp.h:605 [inline] alloc_pages include/linux/gfp.h:618 [inline] alloc_slab_page mm/slub.c:1793 [inline] allocate_slab+0x39d/0x530 mm/slub.c:1932 new_slab mm/slub.c:1995 [inline] ___slab_alloc.constprop.0+0x3ca/0x890 mm/slub.c:3028 __slab_alloc.constprop.0+0x42/0x80 mm/slub.c:3115 slab_alloc_node mm/slub.c:3206 [inline] slab_alloc mm/slub.c:3248 [inline] kmem_cache_alloc+0x440/0x480 mm/slub.c:3253 kmem_cache_alloc_node include/linux/slab.h:474 [inline] __alloc_skb+0x14b/0x250 net/core/skbuff.c:416 alloc_skb include/linux/skbuff.h:1183 [inline] ndisc_alloc_skb+0x135/0x320 net/ipv6/ndisc.c:421 ndisc_send_ns+0x12f/0x7e0 net/ipv6/ndisc.c:627 addrconf_dad_work+0x9e6/0x1100 net/ipv6/addrconf.c:4204 process_one_work+0x62c/0xec0 kernel/workqueue.c:2317 worker_thread+0x48e/0xdb0 kernel/workqueue.c:2464 kthread+0x324/0x3e0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1471 [inline] free_pcp_prepare+0x1b6/0x4c0 mm/page_alloc.c:1543 free_unref_page_prepare mm/page_alloc.c:3533 [inline] free_unref_page+0x84/0x760 mm/page_alloc.c:3615 free_the_page mm/page_alloc.c:804 [inline] __free_pages+0xd7/0xf0 mm/page_alloc.c:5852 __vunmap+0x4b2/0x7b0 mm/vmalloc.c:2652 __vfree+0x21/0x90 mm/vmalloc.c:2700 vfree+0x27/0x40 mm/vmalloc.c:2731 adjust_insn_aux_data kernel/bpf/verifier.c:11970 [inline] bpf_patch_insn_data+0x329/0x640 kernel/bpf/verifier.c:12023 convert_ctx_accesses+0x41a/0x1580 kernel/bpf/verifier.c:12565 bpf_check+0x27f4/0xb620 kernel/bpf/verifier.c:14058 bpf_prog_load+0xbd1/0x1770 kernel/bpf/syscall.c:2327 __sys_bpf+0x14b1/0x46e0 kernel/bpf/syscall.c:4618 __do_sys_bpf kernel/bpf/syscall.c:4722 [inline] __se_sys_bpf kernel/bpf/syscall.c:4720 [inline] __x64_sys_bpf+0x70/0xb0 kernel/bpf/syscall.c:4720 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+0x61/0xcb Memory state around the buggy address: ffff888123354980: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ffff888123354a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888123354a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ^ ffff888123354b00: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ffff888123354b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3519 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0x105/0x250 mm/slub.c:3535 CPU: 1 PID: 350 Comm: syz-executor.0 Tainted: G B 5.15.139-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x38/0x49 lib/dump_stack.c:106 print_address_description.constprop.0+0x24/0x160 mm/kasan/report.c:248 kasan_report_invalid_free+0x75/0xa0 mm/kasan/report.c:370 ____kasan_slab_free mm/kasan/common.c:345 [inline] __kasan_slab_free+0x134/0x150 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1723 [inline] slab_free_freelist_hook+0x94/0x1a0 mm/slub.c:1749 slab_free mm/slub.c:3519 [inline] kmem_cache_free+0x105/0x250 mm/slub.c:3535 kfree_skbmem+0x95/0x140 net/core/skbuff.c:701 __kfree_skb net/core/skbuff.c:758 [inline] consume_skb net/core/skbuff.c:930 [inline] consume_skb+0xab/0x1d0 net/core/skbuff.c:924 __sk_msg_free+0x267/0x4e0 net/core/skmsg.c:205 sk_msg_free net/core/skmsg.c:218 [inline] __sk_psock_purge_ingress_msg net/core/skmsg.c:768 [inline] __sk_psock_zap_ingress net/core/skmsg.c:786 [inline] sk_psock_stop+0x3e4/0x600 net/core/skmsg.c:804 sock_map_close+0x253/0x310 net/core/sock_map.c:1548 unix_release+0x73/0xe0 net/unix/af_unix.c:949 __sock_release+0xc2/0x270 net/socket.c:649 sock_close+0x10/0x20 net/socket.c:1334 __fput+0x317/0x960 fs/file_table.c:280 ____fput+0x9/0x10 fs/file_table.c:308 task_work_run+0xc2/0x150 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x140/0x150 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x21/0x40 kernel/entry/common.c:301 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f31b5b259da Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24 RSP: 002b:00007ffdbe193520 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f31b5b259da RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007f31b5c47980 R08: 0000001b31460000 R09: 00007ffdbe1d4080 R10: 0000000000000000 R11: 0000000000000293 R12: 000000000000a752 R13: ffffffffffffffff R14: 00007f31b56aa000 R15: 000000000000a411 Allocated by task 351: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] __kasan_slab_alloc+0x94/0xc0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook mm/slab.h:550 [inline] slab_alloc_node mm/slub.c:3240 [inline] slab_alloc mm/slub.c:3248 [inline] kmem_cache_alloc+0x197/0x480 mm/slub.c:3253 skb_clone+0x131/0x310 net/core/skbuff.c:1547 sk_psock_verdict_recv+0x4a/0x9e0 net/core/skmsg.c:1182 unix_read_sock+0xd8/0x200 net/unix/af_unix.c:2433 sk_psock_verdict_data_ready+0x104/0x170 net/core/skmsg.c:1225 unix_dgram_sendmsg+0xc13/0x16d0 net/unix/af_unix.c:1949 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg+0xb5/0xf0 net/socket.c:716 ____sys_sendmsg+0x3f3/0x990 net/socket.c:2429 ___sys_sendmsg+0xfc/0x190 net/socket.c:2483 __sys_sendmmsg+0x160/0x340 net/socket.c:2569 __do_sys_sendmmsg net/socket.c:2598 [inline] __se_sys_sendmmsg net/socket.c:2595 [inline] __x64_sys_sendmmsg+0x98/0xf0 net/socket.c:2595 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+0x61/0xcb Freed by task 25: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track+0x25/0x30 mm/kasan/common.c:45 kasan_set_free_info+0x24/0x40 mm/kasan/generic.c:370 ____kasan_slab_free mm/kasan/common.c:365 [inline] ____kasan_slab_free mm/kasan/common.c:327 [inline] __kasan_slab_free+0x111/0x150 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1723 [inline] slab_free_freelist_hook+0x94/0x1a0 mm/slub.c:1749 slab_free mm/slub.c:3519 [inline] kmem_cache_free+0x105/0x250 mm/slub.c:3535 kfree_skbmem+0x95/0x140 net/core/skbuff.c:701 __kfree_skb net/core/skbuff.c:758 [inline] kfree_skb_reason net/core/skbuff.c:778 [inline] kfree_skb_reason+0xbb/0x2b0 net/core/skbuff.c:771 kfree_skb+0xb/0x10 net/core/skbuff.c:792 sock_drop include/linux/skmsg.h:312 [inline] sk_psock_backlog+0x694/0xd00 net/core/skmsg.c:681 process_one_work+0x62c/0xec0 kernel/workqueue.c:2317 worker_thread+0x48e/0xdb0 kernel/workqueue.c:2464 kthread+0x324/0x3e0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff888123354a00 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff888123354a00, ffff888123354af0) The buggy address belongs to the page: page:ffffea00048cd500 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x123354 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff8881002fb080 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 37, ts 42039982546, free_ts 42021057563 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2604 [inline] prep_new_page+0x1a2/0x310 mm/page_alloc.c:2610 get_page_from_freelist+0x1ce2/0x30a0 mm/page_alloc.c:4484 __alloc_pages+0x23f/0x2400 mm/page_alloc.c:5776 __alloc_pages_node include/linux/gfp.h:591 [inline] alloc_pages_node include/linux/gfp.h:605 [inline] alloc_pages include/linux/gfp.h:618 [inline] alloc_slab_page mm/slub.c:1793 [inline] allocate_slab+0x39d/0x530 mm/slub.c:1932 new_slab mm/slub.c:1995 [inline] ___slab_alloc.constprop.0+0x3ca/0x890 mm/slub.c:3028 __slab_alloc.constprop.0+0x42/0x80 mm/slub.c:3115 slab_alloc_node mm/slub.c:3206 [inline] slab_alloc mm/slub.c:3248 [inline] kmem_cache_alloc+0x440/0x480 mm/slub.c:3253 kmem_cache_alloc_node include/linux/slab.h:474 [inline] __alloc_skb+0x14b/0x250 net/core/skbuff.c:416 alloc_skb include/linux/skbuff.h:1183 [inline] ndisc_alloc_skb+0x135/0x320 net/ipv6/ndisc.c:421 ndisc_send_ns+0x12f/0x7e0 net/ipv6/ndisc.c:627 addrconf_dad_work+0x9e6/0x1100 net/ipv6/addrconf.c:4204 process_one_work+0x62c/0xec0 kernel/workqueue.c:2317 worker_thread+0x48e/0xdb0 kernel/workqueue.c:2464 kthread+0x324/0x3e0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1471 [inline] free_pcp_prepare+0x1b6/0x4c0 mm/page_alloc.c:1543 free_unref_page_prepare mm/page_alloc.c:3533 [inline] free_unref_page+0x84/0x760 mm/page_alloc.c:3615 free_the_page mm/page_alloc.c:804 [inline] __free_pages+0xd7/0xf0 mm/page_alloc.c:5852 __vunmap+0x4b2/0x7b0 mm/vmalloc.c:2652 __vfree+0x21/0x90 mm/vmalloc.c:2700 vfree+0x27/0x40 mm/vmalloc.c:2731 adjust_insn_aux_data kernel/bpf/verifier.c:11970 [inline] bpf_patch_insn_data+0x329/0x640 kernel/bpf/verifier.c:12023 convert_ctx_accesses+0x41a/0x1580 kernel/bpf/verifier.c:12565 bpf_check+0x27f4/0xb620 kernel/bpf/verifier.c:14058 bpf_prog_load+0xbd1/0x1770 kernel/bpf/syscall.c:2327 __sys_bpf+0x14b1/0x46e0 kernel/bpf/syscall.c:4618 __do_sys_bpf kernel/bpf/syscall.c:4722 [inline] __se_sys_bpf kernel/bpf/syscall.c:4720 [inline] __x64_sys_bpf+0x70/0xb0 kernel/bpf/syscall.c:4720 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+0x61/0xcb Memory state around the buggy address: ffff888123354900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888123354980: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc >ffff888123354a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888123354a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff888123354b00: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ==================================================================