================================================================== BUG: KASAN: slab-out-of-bounds in do_csum+0x44/0x254 arch/arm64/lib/csum.c:39 Read of size 4294967236 at addr ffff00012cb8a83c by task syz-executor.0/14028 CPU: 0 PID: 14028 Comm: syz-executor.0 Not tainted 6.3.0-rc7-syzkaller-g14f8db1c0f9a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:319 [inline] print_report+0x174/0x514 mm/kasan/report.c:430 kasan_report+0xd4/0x130 mm/kasan/report.c:536 kasan_check_range+0x264/0x2a4 mm/kasan/generic.c:187 __kasan_check_read+0x20/0x30 mm/kasan/shadow.c:31 do_csum+0x44/0x254 arch/arm64/lib/csum.c:39 csum_partial+0x30/0x58 lib/checksum.c:128 gso_make_checksum include/linux/skbuff.h:4901 [inline] __udp_gso_segment+0xaf4/0x1bcc net/ipv4/udp_offload.c:332 udp4_ufo_fragment+0x3f8/0x6d4 net/ipv4/udp_offload.c:392 inet_gso_segment+0x4e4/0x1114 net/ipv4/af_inet.c:1396 skb_mac_gso_segment+0x2b4/0x5b0 net/core/gro.c:141 __skb_gso_segment+0x254/0x3d8 net/core/dev.c:3404 skb_gso_segment include/linux/netdevice.h:4828 [inline] netem_segment net/sched/sch_netem.c:418 [inline] netem_enqueue+0x8c0/0x2c88 net/sched/sch_netem.c:496 dev_qdisc_enqueue+0x60/0x35c net/core/dev.c:3776 __dev_xmit_skb net/core/dev.c:3865 [inline] __dev_queue_xmit+0xc88/0x37dc net/core/dev.c:4213 dev_queue_xmit+0x24/0x34 include/linux/netdevice.h:3054 packet_snd net/packet/af_packet.c:3073 [inline] packet_sendmsg+0x3694/0x4cc4 net/packet/af_packet.c:3104 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] __sys_sendto+0x3b4/0x538 net/socket.c:2142 __do_sys_sendto net/socket.c:2154 [inline] __se_sys_sendto net/socket.c:2150 [inline] __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2150 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Allocated by task 14028: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x7c mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:510 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:967 [inline] __kmalloc_node_track_caller+0xd0/0x1c0 mm/slab_common.c:987 kmalloc_reserve+0x120/0x240 net/core/skbuff.c:537 __alloc_skb+0x1c8/0x3d8 net/core/skbuff.c:606 skb_segment+0xa80/0x32fc net/core/skbuff.c:4455 __udp_gso_segment+0x5d0/0x1bcc net/ipv4/udp_offload.c:290 udp4_ufo_fragment+0x3f8/0x6d4 net/ipv4/udp_offload.c:392 inet_gso_segment+0x4e4/0x1114 net/ipv4/af_inet.c:1396 skb_mac_gso_segment+0x2b4/0x5b0 net/core/gro.c:141 __skb_gso_segment+0x254/0x3d8 net/core/dev.c:3404 skb_gso_segment include/linux/netdevice.h:4828 [inline] netem_segment net/sched/sch_netem.c:418 [inline] netem_enqueue+0x8c0/0x2c88 net/sched/sch_netem.c:496 dev_qdisc_enqueue+0x60/0x35c net/core/dev.c:3776 __dev_xmit_skb net/core/dev.c:3865 [inline] __dev_queue_xmit+0xc88/0x37dc net/core/dev.c:4213 dev_queue_xmit+0x24/0x34 include/linux/netdevice.h:3054 packet_snd net/packet/af_packet.c:3073 [inline] packet_sendmsg+0x3694/0x4cc4 net/packet/af_packet.c:3104 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] __sys_sendto+0x3b4/0x538 net/socket.c:2142 __do_sys_sendto net/socket.c:2154 [inline] __se_sys_sendto net/socket.c:2150 [inline] __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2150 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 The buggy address belongs to the object at ffff00012cb8a800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 60 bytes inside of allocated 1024-byte region [ffff00012cb8a800, ffff00012cb8ac00) The buggy address belongs to the physical page: page:00000000ac43a93d refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x16cb88 head:00000000ac43a93d order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 ffff0000c0002780 fffffc000348a000 dead000000000002 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff00012cb8ab00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff00012cb8ab80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff00012cb8ac00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff00012cb8ac80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff00012cb8ad00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================================ UBSAN: shift-out-of-bounds in arch/arm64/lib/csum.c:116:15 shift exponent 512 is too large for 64-bit type 'u64' (aka 'unsigned long long') CPU: 0 PID: 14028 Comm: syz-executor.0 Tainted: G B 6.3.0-rc7-syzkaller-g14f8db1c0f9a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_shift_out_of_bounds+0x2f4/0x36c lib/ubsan.c:387 do_csum+0x238/0x254 arch/arm64/lib/csum.c:116 csum_partial+0x30/0x58 lib/checksum.c:128 gso_make_checksum include/linux/skbuff.h:4901 [inline] __udp_gso_segment+0xaf4/0x1bcc net/ipv4/udp_offload.c:332 udp4_ufo_fragment+0x3f8/0x6d4 net/ipv4/udp_offload.c:392 inet_gso_segment+0x4e4/0x1114 net/ipv4/af_inet.c:1396 skb_mac_gso_segment+0x2b4/0x5b0 net/core/gro.c:141 __skb_gso_segment+0x254/0x3d8 net/core/dev.c:3404 skb_gso_segment include/linux/netdevice.h:4828 [inline] netem_segment net/sched/sch_netem.c:418 [inline] netem_enqueue+0x8c0/0x2c88 net/sched/sch_netem.c:496 dev_qdisc_enqueue+0x60/0x35c net/core/dev.c:3776 __dev_xmit_skb net/core/dev.c:3865 [inline] __dev_queue_xmit+0xc88/0x37dc net/core/dev.c:4213 dev_queue_xmit+0x24/0x34 include/linux/netdevice.h:3054 packet_snd net/packet/af_packet.c:3073 [inline] packet_sendmsg+0x3694/0x4cc4 net/packet/af_packet.c:3104 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] __sys_sendto+0x3b4/0x538 net/socket.c:2142 __do_sys_sendto net/socket.c:2154 [inline] __se_sys_sendto net/socket.c:2150 [inline] __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2150 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 ================================================================================ ================================================================================ UBSAN: shift-out-of-bounds in arch/arm64/lib/csum.c:116:25 shift exponent 512 is too large for 64-bit type 'u64' (aka 'unsigned long long') CPU: 0 PID: 14028 Comm: syz-executor.0 Tainted: G B 6.3.0-rc7-syzkaller-g14f8db1c0f9a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_shift_out_of_bounds+0x2f4/0x36c lib/ubsan.c:387 do_csum+0x250/0x254 arch/arm64/lib/csum.c:116 csum_partial+0x30/0x58 lib/checksum.c:128 gso_make_checksum include/linux/skbuff.h:4901 [inline] __udp_gso_segment+0xaf4/0x1bcc net/ipv4/udp_offload.c:332 udp4_ufo_fragment+0x3f8/0x6d4 net/ipv4/udp_offload.c:392 inet_gso_segment+0x4e4/0x1114 net/ipv4/af_inet.c:1396 skb_mac_gso_segment+0x2b4/0x5b0 net/core/gro.c:141 __skb_gso_segment+0x254/0x3d8 net/core/dev.c:3404 skb_gso_segment include/linux/netdevice.h:4828 [inline] netem_segment net/sched/sch_netem.c:418 [inline] netem_enqueue+0x8c0/0x2c88 net/sched/sch_netem.c:496 dev_qdisc_enqueue+0x60/0x35c net/core/dev.c:3776 __dev_xmit_skb net/core/dev.c:3865 [inline] __dev_queue_xmit+0xc88/0x37dc net/core/dev.c:4213 dev_queue_xmit+0x24/0x34 include/linux/netdevice.h:3054 packet_snd net/packet/af_packet.c:3073 [inline] packet_sendmsg+0x3694/0x4cc4 net/packet/af_packet.c:3104 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] __sys_sendto+0x3b4/0x538 net/socket.c:2142 __do_sys_sendto net/socket.c:2154 [inline] __se_sys_sendto net/socket.c:2150 [inline] __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2150 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 ================================================================================ skb len=64521 headroom=2 headlen=848 tailroom=0 mac=(2,14) net=(16,44) trans=60 shinfo(txflags=0 nr_frags=16 gso(size=344 type=131074 segs=0)) csum(0x0 ip_summed=0 complete_sw=0 valid=0 level=0) hash(0x0 sw=0 l4=0) proto=0x0800 pkttype=0 iif=0 dev name=bridge149 feat=0x00002007ffff78e9 sk family=17 type=3 proto=0 skb linear: 00000000: 02 00 c5 2c f7 c2 59 75 e0 0d b0 2f 08 00 eb 2b skb linear: 00000010: 2f f0 da c8 89 7c 6b 11 87 77 fa ff ff ff 30 66 skb linear: 00000020: 10 0c b6 10 c5 47 1d 13 14 0a 32 1a 54 e7 df 30 skb linear: 00000030: 5f 80 a8 81 61 b6 fd 8f 24 28 6a 57 c3 fe ff ff skb linear: 00000040: 2c 7c 98 eb c8 52 2e ca 54 ce 3b 08 e0 7f 48 f2 skb linear: 00000050: 10 3a 99 14 86 83 8d b8 0f 5f 75 a1 0a 74 58 26 skb linear: 00000060: 0e 52 96 7d cd b4 38 87 12 07 fc 8e a1 8a 94 72 skb linear: 00000070: 01 f0 67 b1 2c 23 c4 6f 03 76 37 b1 59 93 04 9a skb linear: 00000080: 5b b6 0c 9a 71 54 d0 40 24 c7 ce ec 7d 77 32 41 skb linear: 00000090: c5 63 60 d0 5c a4 53 40 76 72 47 3d 9e 90 b3 5e skb linear: 000000a0: ed dd f1 45 76 b5 7d b0 cc d8 11 bf ff dc bd c6 skb linear: 000000b0: ce 40 c6 40 04 3f 18 60 ea f5 6b bd eb 0d 94 a8 skb linear: 000000c0: 7d 78 ff 2a 10 7e 77 39 aa c1 00 24 67 69 b2 90 skb linear: 000000d0: 8c 60 ae ab c1 75 9b 06 6e 01 0d 32 e6 29 35 ff skb linear: 000000e0: 7f c1 54 64 84 ef 06 50 f1 60 63 0b 81 50 d6 93 skb linear: 000000f0: d3 1f 9f 60 c7 9a 19 70 d9 23 91 b2 8b dd a7 3a skb linear: 00000100: e1 7d eb e1 48 78 44 91 fc 01 39 9a 23 ca 60 e3 skb linear: 00000110: 4f 35 52 c7 76 09 a4 05 e6 de f6 14 5f 43 a9 69 skb linear: 00000120: d4 81 3b 8d 43 0a a3 be e2 9f 80 86 da 97 a2 0a ------------[ cut here ]------------ bridge149: caps=(0x00002007ffff78e9, 0x0000000000000000) WARNING: CPU: 0 PID: 14028 at net/core/dev.c:3232 skb_warn_bad_offload+0x160/0x194 net/core/dev.c:3230 Modules linked in: CPU: 0 PID: 14028 Comm: syz-executor.0 Tainted: G B 6.3.0-rc7-syzkaller-g14f8db1c0f9a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : skb_warn_bad_offload+0x160/0x194 net/core/dev.c:3230 lr : skb_warn_bad_offload+0x160/0x194 net/core/dev.c:3230 sp : ffff8000227472c0 x29: ffff8000227472c0 x28: ffff0000c97ab640 x27: dfff800000000000 x26: 0000000000000020 x25: 1fffe000192f56d8 x24: ffff8000145da600 x23: dfff800000000000 x22: ffff0000c97ab658 x21: ffff0001342c8000 x20: ffff0001342c8000 x19: ffff0001342c80f0 x18: 0000000000000000 x17: 0000000000000000 x16: ffff80001236e294 x15: 0000000000000203 x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000040000 x10: 000000000003ffff x9 : e17e232e75d2eb00 x8 : e17e232e75d2eb00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800022746bb8 x4 : ffff800015e4ccc0 x3 : ffff800008584230 x2 : 0000000000000001 x1 : 0000000000000201 x0 : 0000000000000000 Call trace: skb_warn_bad_offload+0x160/0x194 net/core/dev.c:3230 __skb_gso_segment+0x2fc/0x3d8 net/core/dev.c:3407 skb_gso_segment include/linux/netdevice.h:4828 [inline] netem_segment net/sched/sch_netem.c:418 [inline] netem_enqueue+0x8c0/0x2c88 net/sched/sch_netem.c:496 dev_qdisc_enqueue+0x60/0x35c net/core/dev.c:3776 __dev_xmit_skb net/core/dev.c:3865 [inline] __dev_queue_xmit+0xc88/0x37dc net/core/dev.c:4213 dev_queue_xmit+0x24/0x34 include/linux/netdevice.h:3054 packet_snd net/packet/af_packet.c:3073 [inline] packet_sendmsg+0x3694/0x4cc4 net/packet/af_packet.c:3104 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] __sys_sendto+0x3b4/0x538 net/socket.c:2142 __do_sys_sendto net/socket.c:2154 [inline] __se_sys_sendto net/socket.c:2150 [inline] __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2150 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 2332 hardirqs last enabled at (2332): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:84 [inline] hardirqs last enabled at (2332): [] exit_to_kernel_mode+0xdc/0x10c arch/arm64/kernel/entry-common.c:94 hardirqs last disabled at (2331): [] __el1_irq arch/arm64/kernel/entry-common.c:468 [inline] hardirqs last disabled at (2331): [] el1_interrupt+0x24/0x68 arch/arm64/kernel/entry-common.c:486 softirqs last enabled at (1798): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (1928): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---