syzbot


KASAN: slab-out-of-bounds Write in udf_write_aext

Status: upstream: reported C repro on 2021/10/31 06:20
Reported-by: syzbot+3b27c24cd871399e250f@syzkaller.appspotmail.com
First crash: 461d, last: 3d23h

Fix bisection: failed (bisect log)
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 KASAN: slab-out-of-bounds Write in udf_write_aext udf f2fs tmpfs C 15 1d04h 132d 0/1 upstream: reported C repro on 2022/09/25 01:59
upstream KASAN: slab-out-of-bounds Write in udf_write_aext udf tmpfs erofs C error 548 8h10m 130d 0/24 upstream: reported C repro on 2022/09/26 17:49

Sample crash report:
UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)
==================================================================
BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x780/0x860 fs/udf/inode.c:2065
Write of size 4 at addr ffff8880a0603830 by task syz-executor201/8108

CPU: 0 PID: 8108 Comm: syz-executor201 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256
 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354
 kasan_report mm/kasan/report.c:412 [inline]
 __asan_report_store_n_noabort+0x8b/0xa0 mm/kasan/report.c:449
 udf_write_aext+0x780/0x860 fs/udf/inode.c:2065
 udf_add_entry+0xdab/0x2a20 fs/udf/namei.c:496
 udf_mkdir+0x145/0x650 fs/udf/namei.c:693
 vfs_mkdir+0x508/0x7a0 fs/namei.c:3819
 do_mkdirat+0x262/0x2d0 fs/namei.c:3842
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f6108feab59
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc47de85c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6108feab59
RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000004
RBP: 00007f6108faa160 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6108faa1f0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Allocated by task 8094:
 __do_kmalloc_node mm/slab.c:3689 [inline]
 __kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3703
 __kmalloc_reserve net/core/skbuff.c:137 [inline]
 __alloc_skb+0xae/0x560 net/core/skbuff.c:205
 __napi_alloc_skb+0x74/0x300 net/core/skbuff.c:478
 napi_alloc_skb include/linux/skbuff.h:2724 [inline]
 page_to_skb+0x76/0xa70 drivers/net/virtio_net.c:396
 receive_mergeable drivers/net/virtio_net.c:951 [inline]
 receive_buf+0x2ab4/0x6780 drivers/net/virtio_net.c:1061
 virtnet_receive drivers/net/virtio_net.c:1352 [inline]
 virtnet_poll+0x568/0xe00 drivers/net/virtio_net.c:1457
 napi_poll net/core/dev.c:6280 [inline]
 net_rx_action+0x4ac/0xfb0 net/core/dev.c:6346
 __do_softirq+0x265/0x980 kernel/softirq.c:292

Freed by task 8094:
 __cache_free mm/slab.c:3503 [inline]
 kfree+0xcc/0x210 mm/slab.c:3822
 skb_free_head net/core/skbuff.c:563 [inline]
 skb_release_data+0x6de/0x920 net/core/skbuff.c:583
 skb_release_all net/core/skbuff.c:640 [inline]
 __kfree_skb net/core/skbuff.c:654 [inline]
 kfree_skb_partial+0x7e/0xa0 net/core/skbuff.c:4857
 tcp_rcv_established+0x1b89/0x1ef0 net/ipv4/tcp_input.c:5649
 tcp_v4_do_rcv+0x5d6/0x870 net/ipv4/tcp_ipv4.c:1547
 tcp_v4_rcv+0x2c03/0x3b80 net/ipv4/tcp_ipv4.c:1832
 ip_local_deliver_finish+0x495/0xc00 net/ipv4/ip_input.c:215
 NF_HOOK include/linux/netfilter.h:289 [inline]
 ip_local_deliver+0x188/0x500 net/ipv4/ip_input.c:256
 dst_input include/net/dst.h:461 [inline]
 ip_rcv_finish+0x1ca/0x2e0 net/ipv4/ip_input.c:414
 NF_HOOK include/linux/netfilter.h:289 [inline]
 ip_rcv+0xca/0x3c0 net/ipv4/ip_input.c:524
 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:4954
 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5066
 netif_receive_skb_internal+0xf0/0x3f0 net/core/dev.c:5156
 napi_skb_finish net/core/dev.c:5601 [inline]
 napi_gro_receive+0x2e6/0x450 net/core/dev.c:5632
 receive_buf+0xc2c/0x6780 drivers/net/virtio_net.c:1088
 virtnet_receive drivers/net/virtio_net.c:1352 [inline]
 virtnet_poll+0x568/0xe00 drivers/net/virtio_net.c:1457
 napi_poll net/core/dev.c:6280 [inline]
 net_rx_action+0x4ac/0xfb0 net/core/dev.c:6346
 __do_softirq+0x265/0x980 kernel/softirq.c:292

The buggy address belongs to the object at ffff8880a06035c0
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 112 bytes to the right of
 512-byte region [ffff8880a06035c0, ffff8880a06037c0)
The buggy address belongs to the page:
page:ffffea00028180c0 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0
flags: 0xfff00000000100(slab)
raw: 00fff00000000100 ffffea00028638c8 ffffea000285f808 ffff88813bff0940
raw: 0000000000000000 ffff8880a06030c0 0000000100000006 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8880a0603700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8880a0603780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff8880a0603800: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00
                                     ^
 ffff8880a0603880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8880a0603900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (55):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-linux-4-19 2023/01/02 19:00 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report syz C [disk image] [vmlinux] [mounted in repro] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/01 21:55 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report syz C [disk image] [vmlinux] [mounted in repro] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/01 05:53 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report syz C [disk image] [vmlinux] [mounted in repro] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/29 15:52 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report syz C [disk image] [vmlinux] [mounted in repro] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/29 13:20 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report syz C [disk image] [vmlinux] [mounted in repro] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/27 06:38 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [mounted in repro] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/26 09:17 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [mounted in repro] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/15 06:40 linux-4.19.y 3f8a27f9e27b b18f0a64 .config console log report syz C [disk image] [vmlinux] [mounted in repro] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/02 07:33 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report syz C [disk image] [vmlinux] [mounted in repro] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/10/09 13:29 linux-4.19.y 3f8a27f9e27b aea5da89 .config console log report syz C [disk image] [vmlinux] [mounted in repro] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/10/01 03:08 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report syz C [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2021/10/31 06:20 linux-4.19.y 3f8a27f9e27b 098b5d53 .config console log report syz KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/31 10:30 linux-4.19.y 3f8a27f9e27b b68fb8d6 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/29 16:57 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/27 05:05 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/26 03:54 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/25 16:37 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/25 05:10 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/19 22:01 linux-4.19.y 3f8a27f9e27b 71197f3a .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/19 17:43 linux-4.19.y 3f8a27f9e27b 66fca3ae .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/19 15:16 linux-4.19.y 3f8a27f9e27b 66fca3ae .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/13 07:14 linux-4.19.y 3f8a27f9e27b 96166539 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/08 21:20 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/08 19:11 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/08 12:10 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/08 05:51 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2023/01/02 19:19 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/31 22:01 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/30 15:51 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/24 15:34 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/24 13:47 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/23 08:30 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/20 00:03 linux-4.19.y 3f8a27f9e27b c52b2efb .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/19 07:55 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/18 12:32 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/18 02:12 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/17 21:11 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/15 23:53 linux-4.19.y 3f8a27f9e27b 6f9c033e .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/12 11:10 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/12/02 18:16 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/11/18 18:14 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/11/17 08:37 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/11/15 20:48 linux-4.19.y 3f8a27f9e27b 97de9cfc .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/11/12 23:50 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/11/10 12:29 linux-4.19.y 3f8a27f9e27b b2488a87 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/11/05 00:01 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/11/04 03:51 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/10/28 02:52 linux-4.19.y 3f8a27f9e27b 5c716ff6 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/10/25 17:22 linux-4.19.y 3f8a27f9e27b 45645420 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/10/20 07:39 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/10/14 14:53 linux-4.19.y 3f8a27f9e27b 4954e4b2 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/10/09 23:38 linux-4.19.y 3f8a27f9e27b aea5da89 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/10/09 11:28 linux-4.19.y 3f8a27f9e27b aea5da89 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/10/09 07:17 linux-4.19.y 3f8a27f9e27b aea5da89 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
ci2-linux-4-19 2022/10/01 02:58 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report info [disk image] [vmlinux] KASAN: slab-out-of-bounds Write in udf_write_aext
* Struck through repros no longer work on HEAD.