[syzbot] KASAN: out-of-bounds Read in ntfs_are_names_equal

24 views
Skip to first unread message

syzbot

unread,
Jun 30, 2022, 2:11:22 AM6/30/22
to an...@tuxera.com, linux-...@vger.kernel.org, linux-n...@lists.sourceforge.net, syzkall...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 0840a7914caa Merge tag 'char-misc-5.19-rc4' of git://git.k..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=137af970080000
kernel config: https://syzkaller.appspot.com/x/.config?x=e771627480f67502
dashboard link: https://syzkaller.appspot.com/bug?extid=d6c974f22abc4a2d3d1c
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=112fd917f00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1201eae4080000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+d6c974...@syzkaller.appspotmail.com

ntfs: volume version 3.1.
==================================================================
BUG: KASAN: out-of-bounds in ntfs_ucsncmp fs/ntfs/unistr.c:142 [inline]
BUG: KASAN: out-of-bounds in ntfs_are_names_equal+0x196/0x1a0 fs/ntfs/unistr.c:61
Read of size 2 at addr ffff88802a193ee8 by task syz-executor231/3671

CPU: 2 PID: 3671 Comm: syz-executor231 Not tainted 5.19.0-rc3-syzkaller-00336-g0840a7914caa #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
print_address_description.constprop.0.cold+0xeb/0x467 mm/kasan/report.c:313
print_report mm/kasan/report.c:429 [inline]
kasan_report.cold+0xf4/0x1c6 mm/kasan/report.c:491
ntfs_ucsncmp fs/ntfs/unistr.c:142 [inline]
ntfs_are_names_equal+0x196/0x1a0 fs/ntfs/unistr.c:61
ntfs_attr_find+0x3df/0xb20 fs/ntfs/attrib.c:614
ntfs_attr_lookup+0x1051/0x2060 fs/ntfs/attrib.c:1189
ntfs_read_locked_attr_inode fs/ntfs/inode.c:1239 [inline]
ntfs_attr_iget+0x652/0x26f0 fs/ntfs/inode.c:238
ntfs_read_locked_inode+0x2494/0x5ae0 fs/ntfs/inode.c:960
ntfs_iget+0x12d/0x180 fs/ntfs/inode.c:177
load_system_files fs/ntfs/super.c:1974 [inline]
ntfs_fill_super+0x5634/0x9080 fs/ntfs/super.c:2891
mount_bdev+0x34d/0x410 fs/super.c:1367
legacy_get_tree+0x105/0x220 fs/fs_context.c:610
vfs_get_tree+0x89/0x2f0 fs/super.c:1497
do_new_mount fs/namespace.c:3040 [inline]
path_mount+0x1320/0x1fa0 fs/namespace.c:3370
do_mount fs/namespace.c:3383 [inline]
__do_sys_mount fs/namespace.c:3591 [inline]
__se_sys_mount fs/namespace.c:3568 [inline]
__x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f982d4f84aa
Code: 48 c7 c2 c0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 a8 00 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007ffe6c4048f8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffe6c404950 RCX: 00007f982d4f84aa
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffe6c404910
RBP: 00007ffe6c404910 R08: 00007ffe6c404950 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000020001208
R13: 0000000000000003 R14: 0000000000000004 R15: 00000000000000ab
</TASK>

The buggy address belongs to the physical page:
page:ffffea0000a864c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x2a193
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea000093d4c8 ffffea000093c7c8 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 3672, tgid 3672 (dhcpcd), ts 55153784089, free_ts 55158770564
prep_new_page mm/page_alloc.c:2456 [inline]
get_page_from_freelist+0x1290/0x3b70 mm/page_alloc.c:4198
__alloc_pages+0x1c7/0x510 mm/page_alloc.c:5426
__folio_alloc+0x12/0x40 mm/page_alloc.c:5457
vma_alloc_folio+0xf9/0x840 mm/mempolicy.c:2233
alloc_page_vma include/linux/gfp.h:634 [inline]
wp_page_copy+0x1f6/0x1e20 mm/memory.c:3104
do_wp_page+0x389/0x1b60 mm/memory.c:3471
handle_pte_fault mm/memory.c:4921 [inline]
__handle_mm_fault+0x2371/0x3f50 mm/memory.c:5042
handle_mm_fault+0x1c8/0x790 mm/memory.c:5140
do_user_addr_fault+0x489/0x11c0 arch/x86/mm/fault.c:1397
handle_page_fault arch/x86/mm/fault.c:1484 [inline]
exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1540
asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:570
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1371 [inline]
free_pcp_prepare+0x549/0xd20 mm/page_alloc.c:1421
free_unref_page_prepare mm/page_alloc.c:3343 [inline]
free_unref_page_list+0x16f/0xf80 mm/page_alloc.c:3475
release_pages+0xff1/0x2290 mm/swap.c:980
tlb_batch_pages_flush+0xa8/0x1a0 mm/mmu_gather.c:58
tlb_flush_mmu_free mm/mmu_gather.c:255 [inline]
tlb_flush_mmu mm/mmu_gather.c:262 [inline]
tlb_finish_mmu+0x147/0x7e0 mm/mmu_gather.c:353
exit_mmap+0x1de/0x4a0 mm/mmap.c:3164
__mmput+0x122/0x4b0 kernel/fork.c:1187
mmput+0x56/0x60 kernel/fork.c:1208
exit_mm kernel/exit.c:510 [inline]
do_exit+0xa12/0x2a00 kernel/exit.c:782
do_group_exit+0xd2/0x2f0 kernel/exit.c:925
__do_sys_exit_group kernel/exit.c:936 [inline]
__se_sys_exit_group kernel/exit.c:934 [inline]
__x64_sys_exit_group+0x3a/0x50 kernel/exit.c:934
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x46/0xb0

Memory state around the buggy address:
ffff88802a193d80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff88802a193e00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88802a193e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff88802a193f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff88802a193f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Jul 8, 2022, 11:18:10 AM7/8/22
to syzkall...@googlegroups.com, yin3...@gmail.com
Hello,

syzbot tried to test the proposed patch but the build/boot failed:

stered tcp transport module.
[ 9.710320][ T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 9.725193][ T1] NET: Registered PF_XDP protocol family
[ 9.730914][ T1] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window]
[ 9.739563][ T1] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window]
[ 9.750204][ T1] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[ 9.761214][ T1] pci_bus 0000:00: resource 7 [mem 0x80000000-0xafffffff window]
[ 9.771277][ T1] pci_bus 0000:00: resource 8 [mem 0xc0000000-0xfebfffff window]
[ 9.781073][ T1] pci_bus 0000:00: resource 9 [mem 0x580000000-0xd7fffffff window]
[ 9.809671][ T1] ACPI: \_SB_.GSIA: Enabled at IRQ 16
[ 9.839630][ T1] pci 0000:00:1d.0: quirk_usb_early_handoff+0x0/0x1260 took 47906 usecs
[ 9.871404][ T1] ACPI: \_SB_.GSIB: Enabled at IRQ 17
[ 9.904288][ T1] pci 0000:00:1d.1: quirk_usb_early_handoff+0x0/0x1260 took 53549 usecs
[ 9.937536][ T1] ACPI: \_SB_.GSIC: Enabled at IRQ 18
[ 9.969388][ T1] pci 0000:00:1d.2: quirk_usb_early_handoff+0x0/0x1260 took 53306 usecs
[ 10.005947][ T1] ACPI: \_SB_.GSID: Enabled at IRQ 19
[ 10.037123][ T1] pci 0000:00:1d.7: quirk_usb_early_handoff+0x0/0x1260 took 53921 usecs
[ 10.049155][ T1] PCI: CLS 0 bytes, default 64
[ 10.056569][ T1] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 10.066991][ T1] software IO TLB: mapped [mem 0x000000007a200000-0x000000007e200000] (64MB)
[ 10.078692][ T1] ACPI: bus type thunderbolt registered
[ 10.098489][ T75] kworker/u17:4 (75) used greatest stack depth: 27744 bytes left
[ 10.099162][ T1] RAPL PMU: API unit is 2^-32 Joules, 0 fixed counters, 10737418240 ms ovfl timer
[ 10.446865][ T77] kworker/u17:3 (77) used greatest stack depth: 27480 bytes left
[ 10.448263][ T1] kvm: already loaded vendor module 'kvm_intel'
[ 10.463729][ T1] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x212733415c7, max_idle_ns: 440795236380 ns
[ 10.480321][ T1] clocksource: Switched to clocksource tsc
[ 12.249187][ T1] Initialise system trusted keyrings
[ 12.272119][ T1] workingset: timestamp_bits=40 max_order=19 bucket_order=0
[ 12.288156][ T1] zbud: loaded
[ 12.316499][ T1] DLM installed
[ 12.332660][ T1] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 12.365217][ T1] NFS: Registering the id_resolver key type
[ 12.375842][ T1] Key type id_resolver registered
[ 12.383119][ T1] Key type id_legacy registered
[ 12.391520][ T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 12.404130][ T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 12.415291][ T1] Installing knfsd (copyright (C) 1996 ok...@monad.swb.de).
[ 12.454737][ T1] Key type cifs.spnego registered
[ 12.465814][ T1] Key type cifs.idmap registered
[ 12.474980][ T1] ntfs: driver 2.1.32 [Flags: R/W].
[ 12.484559][ T1] ntfs3: Max link count 4000
[ 12.493056][ T1] ntfs3: Enabled Linux POSIX ACLs support
[ 12.502722][ T1] ntfs3: Read-only LZX/Xpress compression included
[ 12.514136][ T1] efs: 1.0a - http://aeschi.ch.eu.org/efs/
[ 12.524994][ T1] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 12.547619][ T1] romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
[ 12.556978][ T1] QNX4 filesystem 0.2.3 registered.
[ 12.566993][ T1] qnx6: QNX6 filesystem 1.0.0 registered.
[ 12.577297][ T1] fuse: init (API version 7.36)
[ 12.597975][ T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[ 12.612311][ T1] orangefs_init: module version upstream loaded
[ 12.627676][ T1] JFS: nTxBlock = 8192, nTxLock = 65536
[ 12.730076][ T1] SGI XFS with ACLs, security attributes, realtime, quota, fatal assert, debug enabled
[ 12.766182][ T1] 9p: Installing v9fs 9p2000 file system support
[ 12.776134][ T1] NILFS version 2 loaded
[ 12.781774][ T1] befs: version: 0.9.3
[ 12.789682][ T1] ocfs2: Registered cluster interface o2cb
[ 12.797848][ T1] ocfs2: Registered cluster interface user
[ 12.805010][ T1] OCFS2 User DLM kernel interface loaded
[ 12.859917][ T1] gfs2: GFS2 installed
[ 12.902603][ T1] ceph: loaded (mds proto 32)
[ 12.961686][ T1] NET: Registered PF_ALG protocol family
[ 12.972306][ T1] xor: automatically using best checksumming function avx
[ 12.984970][ T1] async_tx: api initialized (async)
[ 12.992718][ T1] Key type asymmetric registered
[ 12.999807][ T1] Asymmetric key parser 'x509' registered
[ 13.007697][ T1] Asymmetric key parser 'pkcs8' registered
[ 13.015924][ T1] Key type pkcs7_test registered
[ 13.043720][ T1] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[ 13.053708][ T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 240)
[ 13.069196][ T1] io scheduler mq-deadline registered
[ 13.076715][ T1] io scheduler kyber registered
[ 13.083499][ T1] io scheduler bfq registered
[ 13.151507][ T1] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[ 13.168600][ T1] ACPI: button: Power Button [PWRF]
[ 13.476710][ T1] ACPI: \_SB_.GSIF: Enabled at IRQ 21
[ 13.515002][ T1] ACPI: \_SB_.GSIH: Enabled at IRQ 23
[ 13.548666][ T1] ACPI: \_SB_.GSIE: Enabled at IRQ 20
[ 13.594497][ T262] kworker/u17:2 (262) used greatest stack depth: 27104 bytes left
[ 14.109666][ T672] kworker/u17:0 (672) used greatest stack depth: 26816 bytes left
[ 14.210508][ T1] N_HDLC line discipline registered with maxframe=4096
[ 14.218860][ T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 14.229733][ T1] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 14.292113][ T1] Non-volatile memory driver v1.3
[ 14.306105][ T1] Linux agpgart interface v0.103
[ 14.317270][ T1] ACPI: bus type drm_connector registered
[ 14.336734][ T1] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
[ 14.357542][ T1] [drm] Initialized vkms 1.0.0 20180514 for vkms on minor 1
[ 14.530121][ T1] Console: switching to colour frame buffer device 128x48
[ 14.556920][ T1] platform vkms: [drm] fb0: vkmsdrmfb frame buffer device
[ 14.568222][ T1] usbcore: registered new interface driver udl
[ 14.578154][ T1] [drm] pci: virtio-vga detected at 0000:00:01.0
[ 14.587133][ T1] virtio-pci 0000:00:01.0: vgaarb: deactivate vga console
[ 14.601404][ T1] [drm] features: -virgl +edid -resource_blob -host_visible
[ 14.601434][ T1] [drm] features: -context_init
[ 14.624820][ T1] [drm] number of scanouts: 1
[ 14.631544][ T1] [drm] number of cap sets: 0
[ 14.651631][ T1] [drm] Initialized virtio_gpu 0.1.0 0 for virtio0 on minor 2
[ 14.761183][ T1] virtio_gpu virtio0: [drm] fb1: virtio_gpudrmfb frame buffer device
[ 14.799878][ T73] Floppy drive(s): fd1 is 2.88M AMI BIOS
[ 14.848547][ T73] FDC 0 is a S82078B
[ 14.853483][ T1] brd: module loaded
[ 15.039843][ T1] loop: module loaded
[ 15.282630][ T1] zram: Added device: zram0
[ 15.307941][ T1] null_blk: disk nullb0 created
[ 15.314876][ T1] null_blk: module loaded
[ 15.322030][ T1] Guest personality initialized and is inactive
[ 15.331840][ T1] VMCI host device registered (name=vmci, major=10, minor=119)
[ 15.343554][ T1] Initialized host personality
[ 15.351117][ T1] usbcore: registered new interface driver rtsx_usb
[ 15.364194][ T1] lpc_ich 0000:00:1f.0: I/O space for GPIO uninitialized
[ 15.375221][ T1] usbcore: registered new interface driver viperboard
[ 15.394035][ T1] usbcore: registered new interface driver dln2
[ 15.420766][ T1] usbcore: registered new interface driver pn533_usb
[ 15.435855][ T1] nfcsim 0.2 initialized
[ 15.441507][ T1] usbcore: registered new interface driver port100
[ 15.449424][ T1] usbcore: registered new interface driver nfcmrvl
[ 15.557967][ T1] Loading iSCSI transport class v2.0-870.
[ 15.574255][ T1] st: Version 20160209, fixed bufsize 32768, s/g segs 256
[ 15.655691][ T1] ahci 0000:00:1f.2: AHCI 0001.0000 32 slots 6 ports 1.5 Gbps 0x3f impl SATA mode
[ 15.665635][ T1] ahci 0000:00:1f.2: flags: 64bit ncq only
[ 15.717885][ T1] scsi host0: ahci
[ 15.729137][ T1] scsi host1: ahci
[ 15.738967][ T1] scsi host2: ahci
[ 15.748643][ T1] scsi host3: ahci
[ 15.759337][ T1] scsi host4: ahci
[ 15.769966][ T1] scsi host5: ahci
[ 15.777615][ T1] ata1: SATA max UDMA/133 abar m4096@0xfebf7000 port 0xfebf7100 irq 27
[ 15.790432][ T1] ata2: SATA max UDMA/133 abar m4096@0xfebf7000 port 0xfebf7180 irq 27
[ 15.801963][ T1] ata3: SATA max UDMA/133 abar m4096@0xfebf7000 port 0xfebf7200 irq 27
[ 15.812604][ T1] ata4: SATA max UDMA/133 abar m4096@0xfebf7000 port 0xfebf7280 irq 27
[ 15.823545][ T1] ata5: SATA max UDMA/133 abar m4096@0xfebf7000 port 0xfebf7300 irq 27
[ 15.835663][ T1] ata6: SATA max UDMA/133 abar m4096@0xfebf7000 port 0xfebf7380 irq 27
[ 15.861840][ T1] Rounding down aligned max_sectors from 4294967295 to 4294967288
[ 15.874063][ T1] db_root: cannot open: /etc/target
[ 15.881765][ T1] slram: not enough parameters.
[ 15.893501][ T1] general protection fault, probably for non-canonical address 0xdffffc00000000ac: 0000 [#1] PREEMPT SMP KASAN
[ 15.903285][ T1] KASAN: null-ptr-deref in range [0x0000000000000560-0x0000000000000567]
[ 15.903285][ T1] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 5.19.0-rc5-next-20220708-syzkaller-09136-gf2528c293858-dirty #0
[ 15.903285][ T1] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
[ 15.903285][ T1] RIP: 0010:add_mtd_device+0xbc8/0x1520
[ 15.903285][ T1] Code: 48 81 fd 60 fe ff ff 0f 84 90 fd ff ff e8 40 e2 95 fc 48 8d bd 60 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 da 08 00 00 48 8b ad 60 05 00 00 48 85 ed 0f 84
[ 15.903285][ T1] RSP: 0000:ffffc9000054fc98 EFLAGS: 00010206
[ 15.903285][ T1] RAX: dffffc0000000000 RBX: ffff888042e1c000 RCX: 0000000000000000
[ 15.903285][ T1] RDX: 00000000000000ac RSI: ffffffff84e3fab0 RDI: 0000000000000560
[ 15.903285][ T1] RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000000
[ 15.903285][ T1] R10: ffffffff89c00000 R11: 0000000000000000 R12: ffff888042e1c004
[ 15.903285][ T1] R13: ffff888042e1c028 R14: 0000000000000000 R15: 0000000005a00000
[ 15.903285][ T1] FS: 0000000000000000(0000) GS:ffff88802ca00000(0000) knlGS:0000000000000000
[ 15.903285][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 15.903285][ T1] CR2: 0000000000000000 CR3: 000000000ba8e000 CR4: 0000000000150ee0
[ 15.903285][ T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 15.903285][ T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 15.903285][ T1] Call Trace:
[ 15.903285][ T1] <TASK>
[ 15.903285][ T1] ? del_mtd_partitions+0x50/0x50
[ 15.903285][ T1] ? lockdep_init_map_type+0x21a/0x7f0
[ 15.903285][ T1] ? mtd_erase+0x8e0/0x8e0
[ 15.903285][ T1] ? lockdep_init_map_type+0x21a/0x7f0
[ 15.903285][ T1] ? __raw_spin_lock_init+0x36/0x110
[ 15.903285][ T1] mtd_device_parse_register+0x50c/0x850
[ 15.903285][ T1] mtdram_init_device+0x291/0x350
[ 15.903285][ T1] ? init_phram+0x99/0x99
[ 15.903285][ T1] init_mtdram+0xe5/0x177
[ 15.903285][ T1] ? init_phram+0x99/0x99
[ 15.903285][ T1] do_one_initcall+0xfe/0x650
[ 15.903285][ T1] ? trace_event_raw_event_initcall_level+0x1f0/0x1f0
[ 15.903285][ T1] ? parameq+0xa0/0x170
[ 15.903285][ T1] kernel_init_freeable+0x6b1/0x73a
[ 15.903285][ T1] ? rest_init+0x270/0x270
[ 15.903285][ T1] kernel_init+0x1a/0x1d0
[ 15.903285][ T1] ? rest_init+0x270/0x270
[ 15.903285][ T1] ret_from_fork+0x1f/0x30
[ 15.903285][ T1] </TASK>
[ 15.903285][ T1] Modules linked in:
[ 16.166420][ T1] ---[ end trace 0000000000000000 ]---
[ 16.173230][ T1] RIP: 0010:add_mtd_device+0xbc8/0x1520
[ 16.181613][ T1] Code: 48 81 fd 60 fe ff ff 0f 84 90 fd ff ff e8 40 e2 95 fc 48 8d bd 60 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 da 08 00 00 48 8b ad 60 05 00 00 48 85 ed 0f 84
[ 16.182823][ T1070] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 16.207603][ T1] RSP: 0000:ffffc9000054fc98 EFLAGS: 00010206
[ 16.223848][ T1] RAX: dffffc0000000000 RBX: ffff888042e1c000 RCX: 0000000000000000
[ 16.226878][ T1070] ata3.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[ 16.234581][ T1] RDX: 00000000000000ac RSI: ffffffff84e3fab0 RDI: 0000000000000560
[ 16.242139][ T1070] ata3.00: applying bridge limits
[ 16.251786][ T1] RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000000
[ 16.251808][ T1] R10: ffffffff89c00000 R11: 0000000000000000 R12: ffff888042e1c004
[ 16.251823][ T1] R13: ffff888042e1c028 R14: 0000000000000000 R15: 0000000005a00000
[ 16.251845][ T1] FS: 0000000000000000(0000) GS:ffff88802cb00000(0000) knlGS:0000000000000000
[ 16.251896][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 16.251915][ T1] CR2: 0000000000000000 CR3: 000000000ba8e000 CR4: 0000000000150ee0
[ 16.251957][ T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 16.251970][ T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 16.251986][ T1] Kernel panic - not syncing: Fatal exception
[ 16.258416][ T1] Kernel Offset: disabled
[ 16.261617][ T1] Rebooting in 86400 seconds..


syzkaller build log:
go env (err=<nil>)
GO111MODULE="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/syzkaller/.cache/go-build"
GOENV="/syzkaller/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/syzkaller/jobs/linux/gopath/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/syzkaller/jobs/linux/gopath"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.17"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/syzkaller/jobs/linux/gopath/src/github.com/google/syzkaller/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2181792515=/tmp/go-build -gno-record-gcc-switches"

git status (err=<nil>)
HEAD detached at a371c43c3
nothing to commit, working tree clean


go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen
make .descriptions
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=a371c43c33b6f901421f93b655442363c072d251 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20220624-125309'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-fuzzer github.com/google/syzkaller/syz-fuzzer
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=a371c43c33b6f901421f93b655442363c072d251 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20220624-125309'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=a371c43c33b6f901421f93b655442363c072d251 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20220624-125309'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-stress github.com/google/syzkaller/tools/syz-stress
mkdir -p ./bin/linux_amd64
gcc -o ./bin/linux_amd64/syz-executor executor/executor.cc \
-m64 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -static-pie -fpermissive -w -DGOOS_linux=1 -DGOARCH_amd64=1 \
-DHOSTGOOS_linux=1 -DGIT_REVISION=\"a371c43c33b6f901421f93b655442363c072d251\"


Error text is too large and was truncated, full error text is at:
https://syzkaller.appspot.com/x/error.txt?x=155d1738080000


Tested on:

commit: f2528c29 Add linux-next specific files for 20220708
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
kernel config: https://syzkaller.appspot.com/x/.config?x=19c1fb69f718425a
dashboard link: https://syzkaller.appspot.com/bug?extid=d6c974f22abc4a2d3d1c
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
patch: https://syzkaller.appspot.com/x/patch.diff?x=125510a4080000

syzbot

unread,
Jul 8, 2022, 12:13:09 PM7/8/22
to syzkall...@googlegroups.com, yin3...@gmail.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+d6c974...@syzkaller.appspotmail.com

Tested on:

commit: e8a4e1c1 Merge tag 'loongarch-fixes-5.19-4' of git://g..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=108ed02c080000
kernel config: https://syzkaller.appspot.com/x/.config?x=6b2632af90cfbfdc
dashboard link: https://syzkaller.appspot.com/bug?extid=d6c974f22abc4a2d3d1c
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
patch: https://syzkaller.appspot.com/x/patch.diff?x=10158f58080000

Note: testing is done by a robot and is best-effort only.

syzbot

unread,
Jan 12, 2023, 3:04:31 AM1/12/23
to syzkall...@googlegroups.com
Auto-closing this bug as obsolete.
No recent activity, existing reproducers are no longer triggering the issue.
Reply all
Reply to author
Forward
0 new messages