github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/pkg/report/testdata/linux/guilty/28 (about) 1 FILE: net/strparser/strparser.c 2 3 ================================================================== 4 BUG: KASAN: use-after-free in constant_test_bit arch/x86/include/asm/bitops.h:325 [inline] 5 BUG: KASAN: use-after-free in work_is_static_object+0x39/0x40 kernel/workqueue.c:443 6 Read of size 8 at addr ffff8801beca5788 by task syz-executor2/12922 7 8 CPU: 0 PID: 12922 Comm: syz-executor2 Not tainted 4.15.0-rc5+ #178 9 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 10 Call Trace: 11 __dump_stack lib/dump_stack.c:17 [inline] 12 dump_stack+0x194/0x257 lib/dump_stack.c:53 13 print_address_description+0x73/0x250 mm/kasan/report.c:252 14 kasan_report_error mm/kasan/report.c:351 [inline] 15 kasan_report+0x25b/0x340 mm/kasan/report.c:409 16 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430 17 constant_test_bit arch/x86/include/asm/bitops.h:325 [inline] 18 work_is_static_object+0x39/0x40 kernel/workqueue.c:443 19 debug_object_activate+0x36f/0x730 lib/debugobjects.c:470 20 debug_work_activate kernel/workqueue.c:492 [inline] 21 __queue_work+0x163/0x1230 kernel/workqueue.c:1381 22 queue_work_on+0x16a/0x1c0 kernel/workqueue.c:1487 23 queue_work include/linux/workqueue.h:488 [inline] 24 strp_check_rcv+0x25/0x30 net/strparser/strparser.c:552 25 kcm_attach net/kcm/kcmsock.c:1439 [inline] 26 kcm_attach_ioctl net/kcm/kcmsock.c:1460 [inline] 27 kcm_ioctl+0x82f/0x1690 net/kcm/kcmsock.c:1665 28 sock_do_ioctl+0x65/0xb0 net/socket.c:956 29 sock_ioctl+0x2c2/0x440 net/socket.c:1053 30 vfs_ioctl fs/ioctl.c:46 [inline] 31 do_vfs_ioctl+0x1b1/0x1520 fs/ioctl.c:686 32 SYSC_ioctl fs/ioctl.c:701 [inline] 33 SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 34 entry_SYSCALL_64_fastpath+0x23/0x9a 35 RIP: 0033:0x452ac9 36 RSP: 002b:00007f1bbd860c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 37 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452ac9 38 RDX: 0000000020954ff8 RSI: 00000000000089e0 RDI: 0000000000000017 39 RBP: 000000000000057b R08: 0000000000000000 R09: 0000000000000000 40 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f6428 41 R13: 00000000ffffffff R14: 00007f1bbd8616d4 R15: 0000000000000000 42 43 Allocated by task 12922: 44 save_stack+0x43/0xd0 mm/kasan/kasan.c:447 45 set_track mm/kasan/kasan.c:459 [inline] 46 kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:551 47 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:489 48 kmem_cache_alloc+0x12e/0x760 mm/slab.c:3544 49 kmem_cache_zalloc include/linux/slab.h:678 [inline] 50 kcm_attach net/kcm/kcmsock.c:1394 [inline] 51 kcm_attach_ioctl net/kcm/kcmsock.c:1460 [inline] 52 kcm_ioctl+0x2d2/0x1690 net/kcm/kcmsock.c:1665 53 sock_do_ioctl+0x65/0xb0 net/socket.c:956 54 sock_ioctl+0x2c2/0x440 net/socket.c:1053 55 vfs_ioctl fs/ioctl.c:46 [inline] 56 do_vfs_ioctl+0x1b1/0x1520 fs/ioctl.c:686 57 SYSC_ioctl fs/ioctl.c:701 [inline] 58 SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 59 entry_SYSCALL_64_fastpath+0x23/0x9a 60 61 Freed by task 12929: 62 save_stack+0x43/0xd0 mm/kasan/kasan.c:447 63 set_track mm/kasan/kasan.c:459 [inline] 64 kasan_slab_free+0x71/0xc0 mm/kasan/kasan.c:524 65 __cache_free mm/slab.c:3488 [inline] 66 kmem_cache_free+0x83/0x2a0 mm/slab.c:3746 67 kcm_unattach+0xe53/0x1510 net/kcm/kcmsock.c:1563 68 kcm_unattach_ioctl net/kcm/kcmsock.c:1608 [inline] 69 kcm_ioctl+0xe54/0x1690 net/kcm/kcmsock.c:1675 70 sock_do_ioctl+0x65/0xb0 net/socket.c:956 71 sock_ioctl+0x2c2/0x440 net/socket.c:1053 72 vfs_ioctl fs/ioctl.c:46 [inline] 73 do_vfs_ioctl+0x1b1/0x1520 fs/ioctl.c:686 74 SYSC_ioctl fs/ioctl.c:701 [inline] 75 SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 76 entry_SYSCALL_64_fastpath+0x23/0x9a 77 78 The buggy address belongs to the object at ffff8801beca56c0 79 which belongs to the cache kcm_psock_cache of size 544 80 The buggy address is located 200 bytes inside of 81 544-byte region [ffff8801beca56c0, ffff8801beca58e0) 82 The buggy address belongs to the page: 83 page:000000005180a80a count:1 mapcount:0 mapping:0000000058aa9a5c index:0x0 compound_mapcount: 0 84 flags: 0x2fffc0000008100(slab|head) 85 raw: 02fffc0000008100 ffff8801beca40c0 0000000000000000 000000010000000b 86 raw: ffff8801d31e8a48 ffff8801d31e8a48 ffff8801d3f6a380 0000000000000000 87 page dumped because: kasan: bad access detected 88 89 Memory state around the buggy address: 90 ffff8801beca5680: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb 91 ffff8801beca5700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb 92 ffff8801beca5780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb 93 ^ 94 ffff8801beca5800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb 95 ffff8801beca5880: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc 96 ==================================================================