==================================================================
BUG: KASAN: slab-use-after-free in crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
Read of size 1 at addr ffff88804d240000 by task syz-executor.0/12632
CPU: 1 PID: 12632 Comm: syz-executor.0 Not tainted 6.6.0-rc4-syzkaller-00158-gf291209eca5e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
udf_finalize_lvid+0xf2/0x1f0 fs/udf/super.c:1984
udf_close_lvid+0x462/0x5c0 fs/udf/super.c:2052
udf_put_super+0x19c/0x200 fs/udf/super.c:2322
generic_shutdown_super+0x161/0x3c0 fs/super.c:693
kill_block_super+0x3b/0x70 fs/super.c:1646
deactivate_locked_super+0x9a/0x170 fs/super.c:481
deactivate_super+0xde/0x100 fs/super.c:514
cleanup_mnt+0x222/0x3d0 fs/namespace.c:1254
task_work_run+0x14d/0x240 kernel/task_work.c:180
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3d6d8a7ef5
Code: Unable to access opcode bytes at 0x7f3d6d8a7ecb.
RSP: 002b:00007f3d6e64b010 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: fffffffffffffdfc RBX: 00007f3d6d99bf80 RCX: 00007f3d6d8a7ef5
RDX: 00007f3d6e64b050 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f3d6d8c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 000000000000000b R14: 00007f3d6d99bf80 R15: 00007ffe1429dae8
Allocated by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
__kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
kmem_cache_alloc_node+0x180/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Freed by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522
____kasan_slab_free mm/kasan/common.c:236 [inline]
____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200
kasan_slab_free include/linux/kasan.h:164 [inline]
slab_free_hook mm/slub.c:1800 [inline]
slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826
slab_free mm/slub.c:3809 [inline]
kmem_cache_free+0xf0/0x480 mm/slub.c:3831
kfree_skbmem+0x166/0x1b0 net/core/skbuff.c:1031
__kfree_skb net/core/skbuff.c:1068 [inline]
kfree_skb_reason+0x10e/0x210 net/core/skbuff.c:1103
dev_kfree_skb_any_reason+0x72/0x80 net/core/dev.c:3172
dev_consume_skb_any include/linux/netdevice.h:3866 [inline]
napi_consume_skb+0x1e7/0x2b0 net/core/skbuff.c:1343
free_old_xmit_skbs+0xf0/0x3d0 drivers/net/virtio_net.c:761
start_xmit+0xeae/0x15a0 drivers/net/virtio_net.c:2339
__netdev_start_xmit include/linux/netdevice.h:4889 [inline]
netdev_start_xmit include/linux/netdevice.h:4903 [inline]
xmit_one net/core/dev.c:3544 [inline]
dev_hard_start_xmit+0x13d/0x6c0 net/core/dev.c:3560
sch_direct_xmit+0x1ac/0xc20 net/sched/sch_generic.c:342
__dev_xmit_skb net/core/dev.c:3771 [inline]
__dev_queue_xmit+0x126e/0x3d60 net/core/dev.c:4306
dev_queue_xmit include/linux/netdevice.h:3082 [inline]
neigh_hh_output include/net/neighbour.h:526 [inline]
neigh_output include/net/neighbour.h:540 [inline]
ip_finish_output2+0x169f/0x2550 net/ipv4/ip_output.c:233
__ip_finish_output net/ipv4/ip_output.c:311 [inline]
__ip_finish_output+0x38b/0x640 net/ipv4/ip_output.c:293
ip_finish_output+0x31/0x310 net/ipv4/ip_output.c:321
NF_HOOK_COND include/linux/netfilter.h:293 [inline]
ip_output+0x13b/0x290 net/ipv4/ip_output.c:431
dst_output include/net/dst.h:458 [inline]
ip_local_out net/ipv4/ip_output.c:127 [inline]
__ip_queue_xmit+0xa15/0x1df0 net/ipv4/ip_output.c:533
__tcp_transmit_skb+0x1a15/0x3af0 net/ipv4/tcp_output.c:1415
tcp_transmit_skb net/ipv4/tcp_output.c:1433 [inline]
tcp_write_xmit+0xf28/0x72c0 net/ipv4/tcp_output.c:2749
__tcp_push_pending_frames+0xaf/0x390 net/ipv4/tcp_output.c:2933
tcp_push+0x4a1/0x730 net/ipv4/tcp.c:736
tcp_sendmsg_locked+0x276f/0x3440 net/ipv4/tcp.c:1304
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88804d240000
which belongs to the cache skbuff_fclone_cache of size 488
The buggy address is located 0 bytes inside of
freed 488-byte region [ffff88804d240000, ffff88804d2401e8)
The buggy address belongs to the physical page:
page:ffffea0001349000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4d240
head:ffffea0001349000 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017e60640 dead000000000122 0000000000000000
raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5024, tgid 5024 (sshd), ts 3382374158562, free_ts 3382111663273
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
alloc_pages+0x1a9/0x270 mm/mempolicy.c:2297
alloc_slab_page mm/slub.c:1870 [inline]
allocate_slab+0x251/0x380 mm/slub.c:2017
new_slab mm/slub.c:2070 [inline]
___slab_alloc+0x8c7/0x1580 mm/slub.c:3223
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3322
__slab_alloc_node mm/slub.c:3375 [inline]
slab_alloc_node mm/slub.c:3468 [inline]
kmem_cache_alloc_node+0x132/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__unfreeze_partials+0x21d/0x240 mm/slub.c:2655
qlink_free mm/kasan/quarantine.c:166 [inline]
qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185
kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292
__kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
slab_alloc mm/slub.c:3486 [inline]
__kmem_cache_alloc_lru mm/slub.c:3493 [inline]
kmem_cache_alloc+0x16c/0x3b0 mm/slub.c:3502
getname_flags.part.0+0x50/0x4d0 fs/namei.c:140
getname_flags include/linux/audit.h:321 [inline]
getname fs/namei.c:219 [inline]
__do_sys_unlink fs/namei.c:4446 [inline]
__se_sys_unlink fs/namei.c:4444 [inline]
__x64_sys_unlink+0xb3/0x110 fs/namei.c:4444
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Memory state around the buggy address:
ffff88804d23ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88804d23ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88804d240000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88804d240080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88804d240100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: slab-use-after-free in crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
Read of size 1 at addr ffff88804d240001 by task syz-executor.0/12632
CPU: 0 PID: 12632 Comm: syz-executor.0 Tainted: G B 6.6.0-rc4-syzkaller-00158-gf291209eca5e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
udf_finalize_lvid+0xf2/0x1f0 fs/udf/super.c:1984
udf_close_lvid+0x462/0x5c0 fs/udf/super.c:2052
udf_put_super+0x19c/0x200 fs/udf/super.c:2322
generic_shutdown_super+0x161/0x3c0 fs/super.c:693
kill_block_super+0x3b/0x70 fs/super.c:1646
deactivate_locked_super+0x9a/0x170 fs/super.c:481
deactivate_super+0xde/0x100 fs/super.c:514
cleanup_mnt+0x222/0x3d0 fs/namespace.c:1254
task_work_run+0x14d/0x240 kernel/task_work.c:180
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3d6d8a7ef5
Code: Unable to access opcode bytes at 0x7f3d6d8a7ecb.
RSP: 002b:00007f3d6e64b010 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: fffffffffffffdfc RBX: 00007f3d6d99bf80 RCX: 00007f3d6d8a7ef5
RDX: 00007f3d6e64b050 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f3d6d8c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 000000000000000b R14: 00007f3d6d99bf80 R15: 00007ffe1429dae8
Allocated by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
__kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
kmem_cache_alloc_node+0x180/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Freed by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522
____kasan_slab_free mm/kasan/common.c:236 [inline]
____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200
kasan_slab_free include/linux/kasan.h:164 [inline]
slab_free_hook mm/slub.c:1800 [inline]
slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826
slab_free mm/slub.c:3809 [inline]
kmem_cache_free+0xf0/0x480 mm/slub.c:3831
kfree_skbmem+0x166/0x1b0 net/core/skbuff.c:1031
__kfree_skb net/core/skbuff.c:1068 [inline]
kfree_skb_reason+0x10e/0x210 net/core/skbuff.c:1103
dev_kfree_skb_any_reason+0x72/0x80 net/core/dev.c:3172
dev_consume_skb_any include/linux/netdevice.h:3866 [inline]
napi_consume_skb+0x1e7/0x2b0 net/core/skbuff.c:1343
free_old_xmit_skbs+0xf0/0x3d0 drivers/net/virtio_net.c:761
start_xmit+0xeae/0x15a0 drivers/net/virtio_net.c:2339
__netdev_start_xmit include/linux/netdevice.h:4889 [inline]
netdev_start_xmit include/linux/netdevice.h:4903 [inline]
xmit_one net/core/dev.c:3544 [inline]
dev_hard_start_xmit+0x13d/0x6c0 net/core/dev.c:3560
sch_direct_xmit+0x1ac/0xc20 net/sched/sch_generic.c:342
__dev_xmit_skb net/core/dev.c:3771 [inline]
__dev_queue_xmit+0x126e/0x3d60 net/core/dev.c:4306
dev_queue_xmit include/linux/netdevice.h:3082 [inline]
neigh_hh_output include/net/neighbour.h:526 [inline]
neigh_output include/net/neighbour.h:540 [inline]
ip_finish_output2+0x169f/0x2550 net/ipv4/ip_output.c:233
__ip_finish_output net/ipv4/ip_output.c:311 [inline]
__ip_finish_output+0x38b/0x640 net/ipv4/ip_output.c:293
ip_finish_output+0x31/0x310 net/ipv4/ip_output.c:321
NF_HOOK_COND include/linux/netfilter.h:293 [inline]
ip_output+0x13b/0x290 net/ipv4/ip_output.c:431
dst_output include/net/dst.h:458 [inline]
ip_local_out net/ipv4/ip_output.c:127 [inline]
__ip_queue_xmit+0xa15/0x1df0 net/ipv4/ip_output.c:533
__tcp_transmit_skb+0x1a15/0x3af0 net/ipv4/tcp_output.c:1415
tcp_transmit_skb net/ipv4/tcp_output.c:1433 [inline]
tcp_write_xmit+0xf28/0x72c0 net/ipv4/tcp_output.c:2749
__tcp_push_pending_frames+0xaf/0x390 net/ipv4/tcp_output.c:2933
tcp_push+0x4a1/0x730 net/ipv4/tcp.c:736
tcp_sendmsg_locked+0x276f/0x3440 net/ipv4/tcp.c:1304
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88804d240000
which belongs to the cache skbuff_fclone_cache of size 488
The buggy address is located 1 bytes inside of
freed 488-byte region [ffff88804d240000, ffff88804d2401e8)
The buggy address belongs to the physical page:
page:ffffea0001349000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4d240
head:ffffea0001349000 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017e60640 dead000000000122 0000000000000000
raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5024, tgid 5024 (sshd), ts 3382374158562, free_ts 3382111663273
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
alloc_pages+0x1a9/0x270 mm/mempolicy.c:2297
alloc_slab_page mm/slub.c:1870 [inline]
allocate_slab+0x251/0x380 mm/slub.c:2017
new_slab mm/slub.c:2070 [inline]
___slab_alloc+0x8c7/0x1580 mm/slub.c:3223
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3322
__slab_alloc_node mm/slub.c:3375 [inline]
slab_alloc_node mm/slub.c:3468 [inline]
kmem_cache_alloc_node+0x132/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__unfreeze_partials+0x21d/0x240 mm/slub.c:2655
qlink_free mm/kasan/quarantine.c:166 [inline]
qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185
kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292
__kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
slab_alloc mm/slub.c:3486 [inline]
__kmem_cache_alloc_lru mm/slub.c:3493 [inline]
kmem_cache_alloc+0x16c/0x3b0 mm/slub.c:3502
getname_flags.part.0+0x50/0x4d0 fs/namei.c:140
getname_flags include/linux/audit.h:321 [inline]
getname fs/namei.c:219 [inline]
__do_sys_unlink fs/namei.c:4446 [inline]
__se_sys_unlink fs/namei.c:4444 [inline]
__x64_sys_unlink+0xb3/0x110 fs/namei.c:4444
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Memory state around the buggy address:
ffff88804d23ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88804d23ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88804d240000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88804d240080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88804d240100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: slab-use-after-free in crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
Read of size 1 at addr ffff88804d240002 by task syz-executor.0/12632
CPU: 0 PID: 12632 Comm: syz-executor.0 Tainted: G B 6.6.0-rc4-syzkaller-00158-gf291209eca5e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
udf_finalize_lvid+0xf2/0x1f0 fs/udf/super.c:1984
udf_close_lvid+0x462/0x5c0 fs/udf/super.c:2052
udf_put_super+0x19c/0x200 fs/udf/super.c:2322
generic_shutdown_super+0x161/0x3c0 fs/super.c:693
kill_block_super+0x3b/0x70 fs/super.c:1646
deactivate_locked_super+0x9a/0x170 fs/super.c:481
deactivate_super+0xde/0x100 fs/super.c:514
cleanup_mnt+0x222/0x3d0 fs/namespace.c:1254
task_work_run+0x14d/0x240 kernel/task_work.c:180
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3d6d8a7ef5
Code: Unable to access opcode bytes at 0x7f3d6d8a7ecb.
RSP: 002b:00007f3d6e64b010 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: fffffffffffffdfc RBX: 00007f3d6d99bf80 RCX: 00007f3d6d8a7ef5
RDX: 00007f3d6e64b050 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f3d6d8c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 000000000000000b R14: 00007f3d6d99bf80 R15: 00007ffe1429dae8
Allocated by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
__kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
kmem_cache_alloc_node+0x180/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Freed by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522
____kasan_slab_free mm/kasan/common.c:236 [inline]
____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200
kasan_slab_free include/linux/kasan.h:164 [inline]
slab_free_hook mm/slub.c:1800 [inline]
slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826
slab_free mm/slub.c:3809 [inline]
kmem_cache_free+0xf0/0x480 mm/slub.c:3831
kfree_skbmem+0x166/0x1b0 net/core/skbuff.c:1031
__kfree_skb net/core/skbuff.c:1068 [inline]
kfree_skb_reason+0x10e/0x210 net/core/skbuff.c:1103
dev_kfree_skb_any_reason+0x72/0x80 net/core/dev.c:3172
dev_consume_skb_any include/linux/netdevice.h:3866 [inline]
napi_consume_skb+0x1e7/0x2b0 net/core/skbuff.c:1343
free_old_xmit_skbs+0xf0/0x3d0 drivers/net/virtio_net.c:761
start_xmit+0xeae/0x15a0 drivers/net/virtio_net.c:2339
__netdev_start_xmit include/linux/netdevice.h:4889 [inline]
netdev_start_xmit include/linux/netdevice.h:4903 [inline]
xmit_one net/core/dev.c:3544 [inline]
dev_hard_start_xmit+0x13d/0x6c0 net/core/dev.c:3560
sch_direct_xmit+0x1ac/0xc20 net/sched/sch_generic.c:342
__dev_xmit_skb net/core/dev.c:3771 [inline]
__dev_queue_xmit+0x126e/0x3d60 net/core/dev.c:4306
dev_queue_xmit include/linux/netdevice.h:3082 [inline]
neigh_hh_output include/net/neighbour.h:526 [inline]
neigh_output include/net/neighbour.h:540 [inline]
ip_finish_output2+0x169f/0x2550 net/ipv4/ip_output.c:233
__ip_finish_output net/ipv4/ip_output.c:311 [inline]
__ip_finish_output+0x38b/0x640 net/ipv4/ip_output.c:293
ip_finish_output+0x31/0x310 net/ipv4/ip_output.c:321
NF_HOOK_COND include/linux/netfilter.h:293 [inline]
ip_output+0x13b/0x290 net/ipv4/ip_output.c:431
dst_output include/net/dst.h:458 [inline]
ip_local_out net/ipv4/ip_output.c:127 [inline]
__ip_queue_xmit+0xa15/0x1df0 net/ipv4/ip_output.c:533
__tcp_transmit_skb+0x1a15/0x3af0 net/ipv4/tcp_output.c:1415
tcp_transmit_skb net/ipv4/tcp_output.c:1433 [inline]
tcp_write_xmit+0xf28/0x72c0 net/ipv4/tcp_output.c:2749
__tcp_push_pending_frames+0xaf/0x390 net/ipv4/tcp_output.c:2933
tcp_push+0x4a1/0x730 net/ipv4/tcp.c:736
tcp_sendmsg_locked+0x276f/0x3440 net/ipv4/tcp.c:1304
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88804d240000
which belongs to the cache skbuff_fclone_cache of size 488
The buggy address is located 2 bytes inside of
freed 488-byte region [ffff88804d240000, ffff88804d2401e8)
The buggy address belongs to the physical page:
page:ffffea0001349000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4d240
head:ffffea0001349000 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017e60640 dead000000000122 0000000000000000
raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5024, tgid 5024 (sshd), ts 3382374158562, free_ts 3382111663273
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
alloc_pages+0x1a9/0x270 mm/mempolicy.c:2297
alloc_slab_page mm/slub.c:1870 [inline]
allocate_slab+0x251/0x380 mm/slub.c:2017
new_slab mm/slub.c:2070 [inline]
___slab_alloc+0x8c7/0x1580 mm/slub.c:3223
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3322
__slab_alloc_node mm/slub.c:3375 [inline]
slab_alloc_node mm/slub.c:3468 [inline]
kmem_cache_alloc_node+0x132/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__unfreeze_partials+0x21d/0x240 mm/slub.c:2655
qlink_free mm/kasan/quarantine.c:166 [inline]
qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185
kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292
__kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
slab_alloc mm/slub.c:3486 [inline]
__kmem_cache_alloc_lru mm/slub.c:3493 [inline]
kmem_cache_alloc+0x16c/0x3b0 mm/slub.c:3502
getname_flags.part.0+0x50/0x4d0 fs/namei.c:140
getname_flags include/linux/audit.h:321 [inline]
getname fs/namei.c:219 [inline]
__do_sys_unlink fs/namei.c:4446 [inline]
__se_sys_unlink fs/namei.c:4444 [inline]
__x64_sys_unlink+0xb3/0x110 fs/namei.c:4444
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Memory state around the buggy address:
ffff88804d23ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88804d23ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88804d240000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88804d240080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88804d240100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: slab-use-after-free in crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
Read of size 1 at addr ffff88804d240003 by task syz-executor.0/12632
CPU: 1 PID: 12632 Comm: syz-executor.0 Tainted: G B 6.6.0-rc4-syzkaller-00158-gf291209eca5e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
udf_finalize_lvid+0xf2/0x1f0 fs/udf/super.c:1984
udf_close_lvid+0x462/0x5c0 fs/udf/super.c:2052
udf_put_super+0x19c/0x200 fs/udf/super.c:2322
generic_shutdown_super+0x161/0x3c0 fs/super.c:693
kill_block_super+0x3b/0x70 fs/super.c:1646
deactivate_locked_super+0x9a/0x170 fs/super.c:481
deactivate_super+0xde/0x100 fs/super.c:514
cleanup_mnt+0x222/0x3d0 fs/namespace.c:1254
task_work_run+0x14d/0x240 kernel/task_work.c:180
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3d6d8a7ef5
Code: Unable to access opcode bytes at 0x7f3d6d8a7ecb.
RSP: 002b:00007f3d6e64b010 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: fffffffffffffdfc RBX: 00007f3d6d99bf80 RCX: 00007f3d6d8a7ef5
RDX: 00007f3d6e64b050 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f3d6d8c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 000000000000000b R14: 00007f3d6d99bf80 R15: 00007ffe1429dae8
Allocated by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
__kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
kmem_cache_alloc_node+0x180/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Freed by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522
____kasan_slab_free mm/kasan/common.c:236 [inline]
____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200
kasan_slab_free include/linux/kasan.h:164 [inline]
slab_free_hook mm/slub.c:1800 [inline]
slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826
slab_free mm/slub.c:3809 [inline]
kmem_cache_free+0xf0/0x480 mm/slub.c:3831
kfree_skbmem+0x166/0x1b0 net/core/skbuff.c:1031
__kfree_skb net/core/skbuff.c:1068 [inline]
kfree_skb_reason+0x10e/0x210 net/core/skbuff.c:1103
dev_kfree_skb_any_reason+0x72/0x80 net/core/dev.c:3172
dev_consume_skb_any include/linux/netdevice.h:3866 [inline]
napi_consume_skb+0x1e7/0x2b0 net/core/skbuff.c:1343
free_old_xmit_skbs+0xf0/0x3d0 drivers/net/virtio_net.c:761
start_xmit+0xeae/0x15a0 drivers/net/virtio_net.c:2339
__netdev_start_xmit include/linux/netdevice.h:4889 [inline]
netdev_start_xmit include/linux/netdevice.h:4903 [inline]
xmit_one net/core/dev.c:3544 [inline]
dev_hard_start_xmit+0x13d/0x6c0 net/core/dev.c:3560
sch_direct_xmit+0x1ac/0xc20 net/sched/sch_generic.c:342
__dev_xmit_skb net/core/dev.c:3771 [inline]
__dev_queue_xmit+0x126e/0x3d60 net/core/dev.c:4306
dev_queue_xmit include/linux/netdevice.h:3082 [inline]
neigh_hh_output include/net/neighbour.h:526 [inline]
neigh_output include/net/neighbour.h:540 [inline]
ip_finish_output2+0x169f/0x2550 net/ipv4/ip_output.c:233
__ip_finish_output net/ipv4/ip_output.c:311 [inline]
__ip_finish_output+0x38b/0x640 net/ipv4/ip_output.c:293
ip_finish_output+0x31/0x310 net/ipv4/ip_output.c:321
NF_HOOK_COND include/linux/netfilter.h:293 [inline]
ip_output+0x13b/0x290 net/ipv4/ip_output.c:431
dst_output include/net/dst.h:458 [inline]
ip_local_out net/ipv4/ip_output.c:127 [inline]
__ip_queue_xmit+0xa15/0x1df0 net/ipv4/ip_output.c:533
__tcp_transmit_skb+0x1a15/0x3af0 net/ipv4/tcp_output.c:1415
tcp_transmit_skb net/ipv4/tcp_output.c:1433 [inline]
tcp_write_xmit+0xf28/0x72c0 net/ipv4/tcp_output.c:2749
__tcp_push_pending_frames+0xaf/0x390 net/ipv4/tcp_output.c:2933
tcp_push+0x4a1/0x730 net/ipv4/tcp.c:736
tcp_sendmsg_locked+0x276f/0x3440 net/ipv4/tcp.c:1304
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88804d240000
which belongs to the cache skbuff_fclone_cache of size 488
The buggy address is located 3 bytes inside of
freed 488-byte region [ffff88804d240000, ffff88804d2401e8)
The buggy address belongs to the physical page:
page:ffffea0001349000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4d240
head:ffffea0001349000 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017e60640 dead000000000122 0000000000000000
raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5024, tgid 5024 (sshd), ts 3382374158562, free_ts 3382111663273
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
alloc_pages+0x1a9/0x270 mm/mempolicy.c:2297
alloc_slab_page mm/slub.c:1870 [inline]
allocate_slab+0x251/0x380 mm/slub.c:2017
new_slab mm/slub.c:2070 [inline]
___slab_alloc+0x8c7/0x1580 mm/slub.c:3223
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3322
__slab_alloc_node mm/slub.c:3375 [inline]
slab_alloc_node mm/slub.c:3468 [inline]
kmem_cache_alloc_node+0x132/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__unfreeze_partials+0x21d/0x240 mm/slub.c:2655
qlink_free mm/kasan/quarantine.c:166 [inline]
qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185
kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292
__kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
slab_alloc mm/slub.c:3486 [inline]
__kmem_cache_alloc_lru mm/slub.c:3493 [inline]
kmem_cache_alloc+0x16c/0x3b0 mm/slub.c:3502
getname_flags.part.0+0x50/0x4d0 fs/namei.c:140
getname_flags include/linux/audit.h:321 [inline]
getname fs/namei.c:219 [inline]
__do_sys_unlink fs/namei.c:4446 [inline]
__se_sys_unlink fs/namei.c:4444 [inline]
__x64_sys_unlink+0xb3/0x110 fs/namei.c:4444
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Memory state around the buggy address:
ffff88804d23ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88804d23ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88804d240000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88804d240080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88804d240100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: slab-use-after-free in crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
Read of size 1 at addr ffff88804d240004 by task syz-executor.0/12632
CPU: 1 PID: 12632 Comm: syz-executor.0 Tainted: G B 6.6.0-rc4-syzkaller-00158-gf291209eca5e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
udf_finalize_lvid+0xf2/0x1f0 fs/udf/super.c:1984
udf_close_lvid+0x462/0x5c0 fs/udf/super.c:2052
udf_put_super+0x19c/0x200 fs/udf/super.c:2322
generic_shutdown_super+0x161/0x3c0 fs/super.c:693
kill_block_super+0x3b/0x70 fs/super.c:1646
deactivate_locked_super+0x9a/0x170 fs/super.c:481
deactivate_super+0xde/0x100 fs/super.c:514
cleanup_mnt+0x222/0x3d0 fs/namespace.c:1254
task_work_run+0x14d/0x240 kernel/task_work.c:180
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3d6d8a7ef5
Code: Unable to access opcode bytes at 0x7f3d6d8a7ecb.
RSP: 002b:00007f3d6e64b010 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: fffffffffffffdfc RBX: 00007f3d6d99bf80 RCX: 00007f3d6d8a7ef5
RDX: 00007f3d6e64b050 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f3d6d8c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 000000000000000b R14: 00007f3d6d99bf80 R15: 00007ffe1429dae8
Allocated by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
__kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
kmem_cache_alloc_node+0x180/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Freed by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522
____kasan_slab_free mm/kasan/common.c:236 [inline]
____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200
kasan_slab_free include/linux/kasan.h:164 [inline]
slab_free_hook mm/slub.c:1800 [inline]
slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826
slab_free mm/slub.c:3809 [inline]
kmem_cache_free+0xf0/0x480 mm/slub.c:3831
kfree_skbmem+0x166/0x1b0 net/core/skbuff.c:1031
__kfree_skb net/core/skbuff.c:1068 [inline]
kfree_skb_reason+0x10e/0x210 net/core/skbuff.c:1103
dev_kfree_skb_any_reason+0x72/0x80 net/core/dev.c:3172
dev_consume_skb_any include/linux/netdevice.h:3866 [inline]
napi_consume_skb+0x1e7/0x2b0 net/core/skbuff.c:1343
free_old_xmit_skbs+0xf0/0x3d0 drivers/net/virtio_net.c:761
start_xmit+0xeae/0x15a0 drivers/net/virtio_net.c:2339
__netdev_start_xmit include/linux/netdevice.h:4889 [inline]
netdev_start_xmit include/linux/netdevice.h:4903 [inline]
xmit_one net/core/dev.c:3544 [inline]
dev_hard_start_xmit+0x13d/0x6c0 net/core/dev.c:3560
sch_direct_xmit+0x1ac/0xc20 net/sched/sch_generic.c:342
__dev_xmit_skb net/core/dev.c:3771 [inline]
__dev_queue_xmit+0x126e/0x3d60 net/core/dev.c:4306
dev_queue_xmit include/linux/netdevice.h:3082 [inline]
neigh_hh_output include/net/neighbour.h:526 [inline]
neigh_output include/net/neighbour.h:540 [inline]
ip_finish_output2+0x169f/0x2550 net/ipv4/ip_output.c:233
__ip_finish_output net/ipv4/ip_output.c:311 [inline]
__ip_finish_output+0x38b/0x640 net/ipv4/ip_output.c:293
ip_finish_output+0x31/0x310 net/ipv4/ip_output.c:321
NF_HOOK_COND include/linux/netfilter.h:293 [inline]
ip_output+0x13b/0x290 net/ipv4/ip_output.c:431
dst_output include/net/dst.h:458 [inline]
ip_local_out net/ipv4/ip_output.c:127 [inline]
__ip_queue_xmit+0xa15/0x1df0 net/ipv4/ip_output.c:533
__tcp_transmit_skb+0x1a15/0x3af0 net/ipv4/tcp_output.c:1415
tcp_transmit_skb net/ipv4/tcp_output.c:1433 [inline]
tcp_write_xmit+0xf28/0x72c0 net/ipv4/tcp_output.c:2749
__tcp_push_pending_frames+0xaf/0x390 net/ipv4/tcp_output.c:2933
tcp_push+0x4a1/0x730 net/ipv4/tcp.c:736
tcp_sendmsg_locked+0x276f/0x3440 net/ipv4/tcp.c:1304
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88804d240000
which belongs to the cache skbuff_fclone_cache of size 488
The buggy address is located 4 bytes inside of
freed 488-byte region [ffff88804d240000, ffff88804d2401e8)
The buggy address belongs to the physical page:
page:ffffea0001349000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4d240
head:ffffea0001349000 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017e60640 dead000000000122 0000000000000000
raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5024, tgid 5024 (sshd), ts 3382374158562, free_ts 3382111663273
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
alloc_pages+0x1a9/0x270 mm/mempolicy.c:2297
alloc_slab_page mm/slub.c:1870 [inline]
allocate_slab+0x251/0x380 mm/slub.c:2017
new_slab mm/slub.c:2070 [inline]
___slab_alloc+0x8c7/0x1580 mm/slub.c:3223
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3322
__slab_alloc_node mm/slub.c:3375 [inline]
slab_alloc_node mm/slub.c:3468 [inline]
kmem_cache_alloc_node+0x132/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__unfreeze_partials+0x21d/0x240 mm/slub.c:2655
qlink_free mm/kasan/quarantine.c:166 [inline]
qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185
kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292
__kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
slab_alloc mm/slub.c:3486 [inline]
__kmem_cache_alloc_lru mm/slub.c:3493 [inline]
kmem_cache_alloc+0x16c/0x3b0 mm/slub.c:3502
getname_flags.part.0+0x50/0x4d0 fs/namei.c:140
getname_flags include/linux/audit.h:321 [inline]
getname fs/namei.c:219 [inline]
__do_sys_unlink fs/namei.c:4446 [inline]
__se_sys_unlink fs/namei.c:4444 [inline]
__x64_sys_unlink+0xb3/0x110 fs/namei.c:4444
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Memory state around the buggy address:
ffff88804d23ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88804d23ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88804d240000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88804d240080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88804d240100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: slab-use-after-free in crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
Read of size 1 at addr ffff88804d240005 by task syz-executor.0/12632
CPU: 1 PID: 12632 Comm: syz-executor.0 Tainted: G B 6.6.0-rc4-syzkaller-00158-gf291209eca5e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
udf_finalize_lvid+0xf2/0x1f0 fs/udf/super.c:1984
udf_close_lvid+0x462/0x5c0 fs/udf/super.c:2052
udf_put_super+0x19c/0x200 fs/udf/super.c:2322
generic_shutdown_super+0x161/0x3c0 fs/super.c:693
kill_block_super+0x3b/0x70 fs/super.c:1646
deactivate_locked_super+0x9a/0x170 fs/super.c:481
deactivate_super+0xde/0x100 fs/super.c:514
cleanup_mnt+0x222/0x3d0 fs/namespace.c:1254
task_work_run+0x14d/0x240 kernel/task_work.c:180
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3d6d8a7ef5
Code: Unable to access opcode bytes at 0x7f3d6d8a7ecb.
RSP: 002b:00007f3d6e64b010 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: fffffffffffffdfc RBX: 00007f3d6d99bf80 RCX: 00007f3d6d8a7ef5
RDX: 00007f3d6e64b050 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f3d6d8c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 000000000000000b R14: 00007f3d6d99bf80 R15: 00007ffe1429dae8
Allocated by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
__kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
kmem_cache_alloc_node+0x180/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Freed by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522
____kasan_slab_free mm/kasan/common.c:236 [inline]
____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200
kasan_slab_free include/linux/kasan.h:164 [inline]
slab_free_hook mm/slub.c:1800 [inline]
slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826
slab_free mm/slub.c:3809 [inline]
kmem_cache_free+0xf0/0x480 mm/slub.c:3831
kfree_skbmem+0x166/0x1b0 net/core/skbuff.c:1031
__kfree_skb net/core/skbuff.c:1068 [inline]
kfree_skb_reason+0x10e/0x210 net/core/skbuff.c:1103
dev_kfree_skb_any_reason+0x72/0x80 net/core/dev.c:3172
dev_consume_skb_any include/linux/netdevice.h:3866 [inline]
napi_consume_skb+0x1e7/0x2b0 net/core/skbuff.c:1343
free_old_xmit_skbs+0xf0/0x3d0 drivers/net/virtio_net.c:761
start_xmit+0xeae/0x15a0 drivers/net/virtio_net.c:2339
__netdev_start_xmit include/linux/netdevice.h:4889 [inline]
netdev_start_xmit include/linux/netdevice.h:4903 [inline]
xmit_one net/core/dev.c:3544 [inline]
dev_hard_start_xmit+0x13d/0x6c0 net/core/dev.c:3560
sch_direct_xmit+0x1ac/0xc20 net/sched/sch_generic.c:342
__dev_xmit_skb net/core/dev.c:3771 [inline]
__dev_queue_xmit+0x126e/0x3d60 net/core/dev.c:4306
dev_queue_xmit include/linux/netdevice.h:3082 [inline]
neigh_hh_output include/net/neighbour.h:526 [inline]
neigh_output include/net/neighbour.h:540 [inline]
ip_finish_output2+0x169f/0x2550 net/ipv4/ip_output.c:233
__ip_finish_output net/ipv4/ip_output.c:311 [inline]
__ip_finish_output+0x38b/0x640 net/ipv4/ip_output.c:293
ip_finish_output+0x31/0x310 net/ipv4/ip_output.c:321
NF_HOOK_COND include/linux/netfilter.h:293 [inline]
ip_output+0x13b/0x290 net/ipv4/ip_output.c:431
dst_output include/net/dst.h:458 [inline]
ip_local_out net/ipv4/ip_output.c:127 [inline]
__ip_queue_xmit+0xa15/0x1df0 net/ipv4/ip_output.c:533
__tcp_transmit_skb+0x1a15/0x3af0 net/ipv4/tcp_output.c:1415
tcp_transmit_skb net/ipv4/tcp_output.c:1433 [inline]
tcp_write_xmit+0xf28/0x72c0 net/ipv4/tcp_output.c:2749
__tcp_push_pending_frames+0xaf/0x390 net/ipv4/tcp_output.c:2933
tcp_push+0x4a1/0x730 net/ipv4/tcp.c:736
tcp_sendmsg_locked+0x276f/0x3440 net/ipv4/tcp.c:1304
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88804d240000
which belongs to the cache skbuff_fclone_cache of size 488
The buggy address is located 5 bytes inside of
freed 488-byte region [ffff88804d240000, ffff88804d2401e8)
The buggy address belongs to the physical page:
page:ffffea0001349000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4d240
head:ffffea0001349000 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017e60640 dead000000000122 0000000000000000
raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5024, tgid 5024 (sshd), ts 3382374158562, free_ts 3382111663273
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
alloc_pages+0x1a9/0x270 mm/mempolicy.c:2297
alloc_slab_page mm/slub.c:1870 [inline]
allocate_slab+0x251/0x380 mm/slub.c:2017
new_slab mm/slub.c:2070 [inline]
___slab_alloc+0x8c7/0x1580 mm/slub.c:3223
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3322
__slab_alloc_node mm/slub.c:3375 [inline]
slab_alloc_node mm/slub.c:3468 [inline]
kmem_cache_alloc_node+0x132/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__unfreeze_partials+0x21d/0x240 mm/slub.c:2655
qlink_free mm/kasan/quarantine.c:166 [inline]
qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185
kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292
__kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
slab_alloc mm/slub.c:3486 [inline]
__kmem_cache_alloc_lru mm/slub.c:3493 [inline]
kmem_cache_alloc+0x16c/0x3b0 mm/slub.c:3502
getname_flags.part.0+0x50/0x4d0 fs/namei.c:140
getname_flags include/linux/audit.h:321 [inline]
getname fs/namei.c:219 [inline]
__do_sys_unlink fs/namei.c:4446 [inline]
__se_sys_unlink fs/namei.c:4444 [inline]
__x64_sys_unlink+0xb3/0x110 fs/namei.c:4444
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Memory state around the buggy address:
ffff88804d23ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88804d23ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88804d240000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88804d240080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88804d240100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: slab-use-after-free in crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
Read of size 1 at addr ffff88804d240006 by task syz-executor.0/12632
CPU: 0 PID: 12632 Comm: syz-executor.0 Tainted: G B 6.6.0-rc4-syzkaller-00158-gf291209eca5e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
udf_finalize_lvid+0xf2/0x1f0 fs/udf/super.c:1984
udf_close_lvid+0x462/0x5c0 fs/udf/super.c:2052
udf_put_super+0x19c/0x200 fs/udf/super.c:2322
generic_shutdown_super+0x161/0x3c0 fs/super.c:693
kill_block_super+0x3b/0x70 fs/super.c:1646
deactivate_locked_super+0x9a/0x170 fs/super.c:481
deactivate_super+0xde/0x100 fs/super.c:514
cleanup_mnt+0x222/0x3d0 fs/namespace.c:1254
task_work_run+0x14d/0x240 kernel/task_work.c:180
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3d6d8a7ef5
Code: Unable to access opcode bytes at 0x7f3d6d8a7ecb.
RSP: 002b:00007f3d6e64b010 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: fffffffffffffdfc RBX: 00007f3d6d99bf80 RCX: 00007f3d6d8a7ef5
RDX: 00007f3d6e64b050 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f3d6d8c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 000000000000000b R14: 00007f3d6d99bf80 R15: 00007ffe1429dae8
Allocated by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
__kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
kmem_cache_alloc_node+0x180/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Freed by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522
____kasan_slab_free mm/kasan/common.c:236 [inline]
____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200
kasan_slab_free include/linux/kasan.h:164 [inline]
slab_free_hook mm/slub.c:1800 [inline]
slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826
slab_free mm/slub.c:3809 [inline]
kmem_cache_free+0xf0/0x480 mm/slub.c:3831
kfree_skbmem+0x166/0x1b0 net/core/skbuff.c:1031
__kfree_skb net/core/skbuff.c:1068 [inline]
kfree_skb_reason+0x10e/0x210 net/core/skbuff.c:1103
dev_kfree_skb_any_reason+0x72/0x80 net/core/dev.c:3172
dev_consume_skb_any include/linux/netdevice.h:3866 [inline]
napi_consume_skb+0x1e7/0x2b0 net/core/skbuff.c:1343
free_old_xmit_skbs+0xf0/0x3d0 drivers/net/virtio_net.c:761
start_xmit+0xeae/0x15a0 drivers/net/virtio_net.c:2339
__netdev_start_xmit include/linux/netdevice.h:4889 [inline]
netdev_start_xmit include/linux/netdevice.h:4903 [inline]
xmit_one net/core/dev.c:3544 [inline]
dev_hard_start_xmit+0x13d/0x6c0 net/core/dev.c:3560
sch_direct_xmit+0x1ac/0xc20 net/sched/sch_generic.c:342
__dev_xmit_skb net/core/dev.c:3771 [inline]
__dev_queue_xmit+0x126e/0x3d60 net/core/dev.c:4306
dev_queue_xmit include/linux/netdevice.h:3082 [inline]
neigh_hh_output include/net/neighbour.h:526 [inline]
neigh_output include/net/neighbour.h:540 [inline]
ip_finish_output2+0x169f/0x2550 net/ipv4/ip_output.c:233
__ip_finish_output net/ipv4/ip_output.c:311 [inline]
__ip_finish_output+0x38b/0x640 net/ipv4/ip_output.c:293
ip_finish_output+0x31/0x310 net/ipv4/ip_output.c:321
NF_HOOK_COND include/linux/netfilter.h:293 [inline]
ip_output+0x13b/0x290 net/ipv4/ip_output.c:431
dst_output include/net/dst.h:458 [inline]
ip_local_out net/ipv4/ip_output.c:127 [inline]
__ip_queue_xmit+0xa15/0x1df0 net/ipv4/ip_output.c:533
__tcp_transmit_skb+0x1a15/0x3af0 net/ipv4/tcp_output.c:1415
tcp_transmit_skb net/ipv4/tcp_output.c:1433 [inline]
tcp_write_xmit+0xf28/0x72c0 net/ipv4/tcp_output.c:2749
__tcp_push_pending_frames+0xaf/0x390 net/ipv4/tcp_output.c:2933
tcp_push+0x4a1/0x730 net/ipv4/tcp.c:736
tcp_sendmsg_locked+0x276f/0x3440 net/ipv4/tcp.c:1304
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88804d240000
which belongs to the cache skbuff_fclone_cache of size 488
The buggy address is located 6 bytes inside of
freed 488-byte region [ffff88804d240000, ffff88804d2401e8)
The buggy address belongs to the physical page:
page:ffffea0001349000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4d240
head:ffffea0001349000 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017e60640 dead000000000122 0000000000000000
raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5024, tgid 5024 (sshd), ts 3382374158562, free_ts 3382111663273
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
alloc_pages+0x1a9/0x270 mm/mempolicy.c:2297
alloc_slab_page mm/slub.c:1870 [inline]
allocate_slab+0x251/0x380 mm/slub.c:2017
new_slab mm/slub.c:2070 [inline]
___slab_alloc+0x8c7/0x1580 mm/slub.c:3223
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3322
__slab_alloc_node mm/slub.c:3375 [inline]
slab_alloc_node mm/slub.c:3468 [inline]
kmem_cache_alloc_node+0x132/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__unfreeze_partials+0x21d/0x240 mm/slub.c:2655
qlink_free mm/kasan/quarantine.c:166 [inline]
qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185
kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292
__kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
slab_alloc mm/slub.c:3486 [inline]
__kmem_cache_alloc_lru mm/slub.c:3493 [inline]
kmem_cache_alloc+0x16c/0x3b0 mm/slub.c:3502
getname_flags.part.0+0x50/0x4d0 fs/namei.c:140
getname_flags include/linux/audit.h:321 [inline]
getname fs/namei.c:219 [inline]
__do_sys_unlink fs/namei.c:4446 [inline]
__se_sys_unlink fs/namei.c:4444 [inline]
__x64_sys_unlink+0xb3/0x110 fs/namei.c:4444
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Memory state around the buggy address:
ffff88804d23ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88804d23ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88804d240000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88804d240080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88804d240100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: slab-use-after-free in crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
Read of size 1 at addr ffff88804d240007 by task syz-executor.0/12632
CPU: 1 PID: 12632 Comm: syz-executor.0 Tainted: G B 6.6.0-rc4-syzkaller-00158-gf291209eca5e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
udf_finalize_lvid+0xf2/0x1f0 fs/udf/super.c:1984
udf_close_lvid+0x462/0x5c0 fs/udf/super.c:2052
udf_put_super+0x19c/0x200 fs/udf/super.c:2322
generic_shutdown_super+0x161/0x3c0 fs/super.c:693
kill_block_super+0x3b/0x70 fs/super.c:1646
deactivate_locked_super+0x9a/0x170 fs/super.c:481
deactivate_super+0xde/0x100 fs/super.c:514
cleanup_mnt+0x222/0x3d0 fs/namespace.c:1254
task_work_run+0x14d/0x240 kernel/task_work.c:180
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0xa92/0x2a20 kernel/exit.c:874
do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
get_signal+0x23ba/0x2790 kernel/signal.c:2892
arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3d6d8a7ef5
Code: Unable to access opcode bytes at 0x7f3d6d8a7ecb.
RSP: 002b:00007f3d6e64b010 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: fffffffffffffdfc RBX: 00007f3d6d99bf80 RCX: 00007f3d6d8a7ef5
RDX: 00007f3d6e64b050 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f3d6d8c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 000000000000000b R14: 00007f3d6d99bf80 R15: 00007ffe1429dae8
Allocated by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
__kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
kmem_cache_alloc_node+0x180/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Freed by task 5024:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522
____kasan_slab_free mm/kasan/common.c:236 [inline]
____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200
kasan_slab_free include/linux/kasan.h:164 [inline]
slab_free_hook mm/slub.c:1800 [inline]
slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826
slab_free mm/slub.c:3809 [inline]
kmem_cache_free+0xf0/0x480 mm/slub.c:3831
kfree_skbmem+0x166/0x1b0 net/core/skbuff.c:1031
__kfree_skb net/core/skbuff.c:1068 [inline]
kfree_skb_reason+0x10e/0x210 net/core/skbuff.c:1103
dev_kfree_skb_any_reason+0x72/0x80 net/core/dev.c:3172
dev_consume_skb_any include/linux/netdevice.h:3866 [inline]
napi_consume_skb+0x1e7/0x2b0 net/core/skbuff.c:1343
free_old_xmit_skbs+0xf0/0x3d0 drivers/net/virtio_net.c:761
start_xmit+0xeae/0x15a0 drivers/net/virtio_net.c:2339
__netdev_start_xmit include/linux/netdevice.h:4889 [inline]
netdev_start_xmit include/linux/netdevice.h:4903 [inline]
xmit_one net/core/dev.c:3544 [inline]
dev_hard_start_xmit+0x13d/0x6c0 net/core/dev.c:3560
sch_direct_xmit+0x1ac/0xc20 net/sched/sch_generic.c:342
__dev_xmit_skb net/core/dev.c:3771 [inline]
__dev_queue_xmit+0x126e/0x3d60 net/core/dev.c:4306
dev_queue_xmit include/linux/netdevice.h:3082 [inline]
neigh_hh_output include/net/neighbour.h:526 [inline]
neigh_output include/net/neighbour.h:540 [inline]
ip_finish_output2+0x169f/0x2550 net/ipv4/ip_output.c:233
__ip_finish_output net/ipv4/ip_output.c:311 [inline]
__ip_finish_output+0x38b/0x640 net/ipv4/ip_output.c:293
ip_finish_output+0x31/0x310 net/ipv4/ip_output.c:321
NF_HOOK_COND include/linux/netfilter.h:293 [inline]
ip_output+0x13b/0x290 net/ipv4/ip_output.c:431
dst_output include/net/dst.h:458 [inline]
ip_local_out net/ipv4/ip_output.c:127 [inline]
__ip_queue_xmit+0xa15/0x1df0 net/ipv4/ip_output.c:533
__tcp_transmit_skb+0x1a15/0x3af0 net/ipv4/tcp_output.c:1415
tcp_transmit_skb net/ipv4/tcp_output.c:1433 [inline]
tcp_write_xmit+0xf28/0x72c0 net/ipv4/tcp_output.c:2749
__tcp_push_pending_frames+0xaf/0x390 net/ipv4/tcp_output.c:2933
tcp_push+0x4a1/0x730 net/ipv4/tcp.c:736
tcp_sendmsg_locked+0x276f/0x3440 net/ipv4/tcp.c:1304
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x1f0/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88804d240000
which belongs to the cache skbuff_fclone_cache of size 488
The buggy address is located 7 bytes inside of
freed 488-byte region [ffff88804d240000, ffff88804d2401e8)
The buggy address belongs to the physical page:
page:ffffea0001349000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4d240
head:ffffea0001349000 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017e60640 dead000000000122 0000000000000000
raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5024, tgid 5024 (sshd), ts 3382374158562, free_ts 3382111663273
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426
alloc_pages+0x1a9/0x270 mm/mempolicy.c:2297
alloc_slab_page mm/slub.c:1870 [inline]
allocate_slab+0x251/0x380 mm/slub.c:2017
new_slab mm/slub.c:2070 [inline]
___slab_alloc+0x8c7/0x1580 mm/slub.c:3223
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3322
__slab_alloc_node mm/slub.c:3375 [inline]
slab_alloc_node mm/slub.c:3468 [inline]
kmem_cache_alloc_node+0x132/0x3f0 mm/slub.c:3523
__alloc_skb+0x287/0x330 net/core/skbuff.c:640
alloc_skb_fclone include/linux/skbuff.h:1336 [inline]
tcp_stream_alloc_skb+0x34/0x560 net/ipv4/tcp.c:869
tcp_sendmsg_locked+0xeae/0x3440 net/ipv4/tcp.c:1150
tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336
inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg+0xd5/0x180 net/socket.c:745
sock_write_iter+0x29b/0x3d0 net/socket.c:1158
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1136 [inline]
free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312
free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405
__unfreeze_partials+0x21d/0x240 mm/slub.c:2655
qlink_free mm/kasan/quarantine.c:166 [inline]
qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185
kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292
__kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:188 [inline]
slab_post_alloc_hook mm/slab.h:762 [inline]
slab_alloc_node mm/slub.c:3478 [inline]
slab_alloc mm/slub.c:3486 [inline]
__kmem_cache_alloc_lru mm/slub.c:3493 [inline]
kmem_cache_alloc+0x16c/0x3b0 mm/slub.c:3502
getname_flags.part.0+0x50/0x4d0 fs/namei.c:140
getname_flags include/linux/audit.h:321 [inline]
getname fs/namei.c:219 [inline]
__do_sys_unlink fs/namei.c:4446 [inline]
__se_sys_unlink fs/namei.c:4444 [inline]
__x64_sys_unlink+0xb3/0x110 fs/namei.c:4444
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Memory state around the buggy address:
ffff88804d23ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88804d23ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88804d240000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88804d240080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88804d240100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: slab-use-after-free in crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
Read of size 1 at addr ffff88804d240008 by task syz-executor.0/12632
CPU: 0 PID: 12632 Comm: syz-executor.0 Tainted: G B 6.6.0-rc4-syzkaller-00158-gf291209eca5e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60
udf_finalize_lvid+0xf2/0x1f0 fs/udf/super.c:1984
udf_close_lvid+0x462/0x5c0 fs/udf/super.c:2052
udf_put_super+0x19c/0x200 fs/udf/super.c:2322
generic_shutdown_super+0x161/0x3c0 fs/super.c:693
kill_block_super+0x3b/0x70 fs/super.c:1646
deactivate_locked_super+0x9a/0x170 fs/super.c:481
deactivate_super+0xde/0x100 fs/super.c:514
cleanup_mnt+0x222/0x3d0 fs/namespace.c:1254
task_work_run+0x14d/0x240 kernel/task_work.c:180