[Bug 200347] New: nullptr deference in get_empty_nodes() when writing file on a reiserfs filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=200347

            Bug ID: 200347
           Summary: nullptr deference in get_empty_nodes() when writing
                    file on a reiserfs filesystem
           Product: File System
           Version: 2.5
    Kernel Version: 4.18
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: ReiserFS
          Assignee: reiserfs-devel@xxxxxxxxxxxxxxx
          Reporter: wen.xu@xxxxxxxxxx
        Regression: No

Created attachment 277001
  --> https://bugzilla.kernel.org/attachment.cgi?id=277001&action=edit
The (compressed) crafted image which causes crash

- Reproduce
# mkdir mnt
# mount -t reiserfs -o acl,user_xattr 52.img mnt
# gcc -o poc poc.c
# ./poc ./mnt

- POC (poc.c)
[  373.616011] REISERFS (device loop0): found reiserfs format "3.6" with
standard journal
[  373.616122] REISERFS (device loop0): using ordered data mode
[  373.616128] reiserfs: using flush barriers
[  373.617104] REISERFS (device loop0): journal params: device loop0, size
8192, journal first block 18, max trans len 1024, max batch 900, max commit age
30, max trans age 30
[  373.619198] REISERFS (device loop0): checking transaction log (loop0)
[  374.510364] REISERFS (device loop0): Using r5 hash to sort names
[  384.520079] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520121] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520150] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520174] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520196] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520219] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520242] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520264] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520294] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520353] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520377] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520400] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520422] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520445] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520467] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520490] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520512] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520546] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520568] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520626] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520649] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520672] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520694] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520728] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520752] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520780] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520803] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520825] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520848] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520870] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520923] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520947] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.520988] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521017] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521039] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521297] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521352] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521376] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521400] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521423] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521446] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521513] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521537] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521559] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521582] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521604] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521627] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521666] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521690] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521718] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521740] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521763] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521812] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521835] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521858] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521880] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521902] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521930] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521952] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521975] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.521997] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522020] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522052] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522107] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522131] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522158] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522181] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522203] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522225] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522248] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522270] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522303] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522327] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522382] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522405] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522428] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522450] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522478] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522500] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522522] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522544] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522572] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522594] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522617] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522671] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522695] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522717] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522740] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522763] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522795] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522820] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522842] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522870] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522893] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522915] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522973] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.522997] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523025] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523047] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523070] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523092] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523114] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523137] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523159] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523181] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523209] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523262] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523290] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523312] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523335] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523358] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523380] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523402] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523430] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523452] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523474] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523501] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523552] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523575] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523601] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523623] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523664] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523864] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523871] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523877] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523884] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523890] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523896] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523916] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523923] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523929] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523935] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523941] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523948] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523954] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523960] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523969] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523975] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523981] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523987] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523993] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.523999] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.524133] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528181] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528191] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528198] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528204] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528216] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528222] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528228] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528239] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528249] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528255] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528261] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528267] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528273] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528282] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528288] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528297] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528303] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528308] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528317] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528323] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528328] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528334] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528340] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528348] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528354] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528360] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528365] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528375] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528383] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528388] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528394] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528403] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528409] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528415] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528420] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528426] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528435] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528440] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528446] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528458] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528463] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528469] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528475] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528480] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528486] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528492] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528501] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528509] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528515] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528521] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528526] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528535] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528541] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528546] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528560] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528574] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528580] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528585] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528592] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528598] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528603] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528609] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528615] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528626] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528632] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528638] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528643] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528649] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528655] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528664] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528669] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528678] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528684] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528693] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528698] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528704] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528709] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528715] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528723] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528732] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528742] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528750] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528759] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528764] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528770] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528776] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528784] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528793] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528799] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528804] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528810] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528819] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528825] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528830] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528836] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528844] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528850] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528856] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528861] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528870] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528876] REISERFS warning (device loop0): sh-2029: %s: bitmap block (#%u)
reading failed reiserfs_read_bitmap_block: reiserfs_read_bitmap_block
[  384.528925]
==================================================================
[  384.530665] BUG: KASAN: null-ptr-deref in get_empty_nodes+0x2e8/0x3b0
[  384.531991] Read of size 8 at addr 0000000000000000 by task a.out/1367

[  384.533788] CPU: 1 PID: 1367 Comm: a.out Not tainted 4.18.0-rc1+ #8
[  384.533798] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
Ubuntu-1.8.2-1ubuntu1 04/01/2014
[  384.533807] Call Trace:
[  384.533851]  dump_stack+0x7b/0xb5
[  384.533879]  kasan_report+0x10c/0x390
[  384.533888]  ? get_empty_nodes+0x2e8/0x3b0
[  384.533901]  __asan_load8+0x54/0x90
[  384.533906]  get_empty_nodes+0x2e8/0x3b0
[  384.533912]  ? is_left_neighbor_in_cache+0x160/0x160
[  384.533918]  ? set_parameters.part.6+0x110/0x110
[  384.533926]  ? get_neighbors+0x20e/0x450
[  384.533931]  fix_nodes+0x18ad/0x35c0
[  384.533939]  ? create_virtual_node+0x9d0/0x9d0
[  384.533943]  ? memset+0x31/0x40
[  384.533953]  reiserfs_paste_into_item+0x261/0x3b0
[  384.533963]  ? reiserfs_delete_object+0xd0/0xd0
[  384.533979]  ? _raw_spin_lock_irqsave+0x2a/0x60
[  384.533994]  ? __kmalloc+0x11f/0x240
[  384.533998]  ? reiserfs_get_block+0x89d/0x1c40
[  384.534003]  reiserfs_get_block+0x9a6/0x1c40
[  384.534013]  ? reiserfs_commit_write+0x390/0x390
[  384.534027]  ? __mod_node_page_state+0x27/0xa0
[  384.534032]  ? new_slab+0x450/0x660
[  384.534042]  ? kasan_unpoison_shadow+0x36/0x50
[  384.534046]  ? kasan_kmalloc+0xad/0xe0
[  384.534057]  ? memcg_kmem_put_cache+0x1b/0xa0
[  384.534062]  ? kmem_cache_alloc+0x17c/0x1e0
[  384.534072]  ? kasan_check_write+0x14/0x20
[  384.534090]  ? create_empty_buffers+0x17e/0x1d0
[  384.534096]  __block_write_begin_int+0x296/0x940
[  384.534104]  ? reiserfs_commit_write+0x390/0x390
[  384.534108]  ? __block_write_begin_int+0x296/0x940
[  384.534113]  ? reiserfs_commit_write+0x390/0x390
[  384.534117]  ? __breadahead+0xd0/0xd0
[  384.534123]  ? reiserfs_wait_on_write_block+0xa6/0x140
[  384.534130]  ? reiserfs_allow_writes+0x50/0x50
[  384.534152]  ? pagecache_get_page+0xca/0x2f0
[  384.534163]  ? wait_for_stable_page+0x77/0xf0
[  384.534171]  __block_write_begin+0x11/0x20
[  384.534176]  reiserfs_write_begin+0x1a5/0x380
[  384.534188]  ? timespec64_trunc+0x5c/0x90
[  384.534195]  generic_perform_write+0x192/0x320
[  384.534202]  ? __bpf_trace_filemap_set_wb_err+0x10/0x10
[  384.534209]  ? file_update_time+0x1d2/0x270
[  384.534213]  ? current_time+0x110/0x110
[  384.534217]  ? save_stack+0xb5/0xd0
[  384.534222]  __generic_file_write_iter+0x261/0x2e0
[  384.534247]  ? do_syscall_64+0x78/0x170
[  384.534252]  generic_file_write_iter+0x19d/0x2d0
[  384.534268]  __vfs_write+0x286/0x410
[  384.534274]  ? kernel_read+0xa0/0xa0
[  384.534299]  ? common_file_perm+0x11b/0x2e0
[  384.534308]  ? may_open_dev+0x50/0x50
[  384.534313]  ? apparmor_task_setrlimit+0x270/0x270
[  384.534320]  ? fsnotify+0x590/0x7d0
[  384.534326]  ? rw_verify_area+0x78/0x140
[  384.534334]  vfs_write+0xf9/0x260
[  384.534339]  ksys_write+0xb4/0x140
[  384.534344]  ? __ia32_sys_read+0x50/0x50
[  384.534350]  __x64_sys_write+0x43/0x50
[  384.534355]  do_syscall_64+0x78/0x170
[  384.534360]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  384.534378] RIP: 0033:0x7ffa23bd92c0
[  384.534379] Code: 73 01 c3 48 8b 0d d8 cb 2c 00 f7 d8 64 89 01 48 83 c8 ff
c3 66 0f 1f 44 00 00 83 3d 89 24 2d 00 00 75 10 b8 01 00 00 00 0f 05 <48> 3d 01
f0 ff ff 73 31 c3 48 83 ec 08 e8 fe dd 01 00 48 89 04 24
[  384.534441] RSP: 002b:00007ffe40b5db68 EFLAGS: 00000246 ORIG_RAX:
0000000000000001
[  384.534454] RAX: ffffffffffffffda RBX: 0000000000000000 RCX:
00007ffa23bd92c0
[  384.534457] RDX: 0000000000008000 RSI: 00000000006010a0 RDI:
0000000000000003
[  384.534463] RBP: 00007ffe40b5dba0 R08: 0000000001f6c010 R09:
0000000000000000
[  384.534466] R10: 000000000000086f R11: 0000000000000246 R12:
0000000000400600
[  384.534469] R13: 00007ffe40b5dca0 R14: 0000000000000000 R15:
0000000000000000
[  384.534473]
==================================================================
[  384.535960] Disabling lock debugging due to kernel taint
[  384.536079] BUG: unable to handle kernel NULL pointer dereference at
0000000000000000
[  384.537827] PGD 80000001deb2b067 P4D 80000001deb2b067 PUD 1efd3d067 PMD 0
[  384.539229] Oops: 0000 [#1] SMP KASAN PTI
[  384.540077] CPU: 1 PID: 1367 Comm: a.out Tainted: G    B            
4.18.0-rc1+ #8
[  384.541643] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
Ubuntu-1.8.2-1ubuntu1 04/01/2014
[  384.543574] RIP: 0010:get_empty_nodes+0x2e8/0x3b0
[  384.544540] Code: 8b 7d 18 e8 0a 49 eb ff 49 8b bd d0 00 00 00 44 89 fa b9
08 00 00 00 4c 89 f6 e8 b3 ac f5 ff 49 89 c7 48 89 c7 e8 e8 48 eb ff <49> 8b 17
f7 c2 00 00 08 00 75 06 f0 41 80 4f 02 08 48 8b bd f0 fe
[  384.548390] RSP: 0018:ffff8801dea2ee70 EFLAGS: 00010296
[  384.549468] RAX: 0000000000000000 RBX: ffff8801dea2f218 RCX:
0000000000000000
[  384.550916] RDX: 0000000000000000 RSI: 0000000000000297 RDI:
0000000000000297
[  384.552372] RBP: ffff8801dea2efa8 R08: ffffed003ede3ebb R09:
ffffed003ede3ebb
[  384.553848] R10: 0000000000000001 R11: ffffed003ede3eba R12:
ffff8801dea2ef40
[  384.555298] R13: ffff8801f3102200 R14: 00000000000054dc R15:
0000000000000000
[  384.556753] FS:  00007ffa240c7700(0000) GS:ffff8801f6f00000(0000)
knlGS:0000000000000000
[  384.558409] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  384.559587] CR2: 0000000000000000 CR3: 00000001de076000 CR4:
00000000000006e0
[  384.561062] Call Trace:
[  384.561589]  ? is_left_neighbor_in_cache+0x160/0x160
[  384.562614]  ? set_parameters.part.6+0x110/0x110
[  384.563569]  ? get_neighbors+0x20e/0x450
[  384.564387]  fix_nodes+0x18ad/0x35c0
[  384.565152]  ? create_virtual_node+0x9d0/0x9d0
[  384.566070]  ? memset+0x31/0x40
[  384.566729]  reiserfs_paste_into_item+0x261/0x3b0
[  384.567701]  ? reiserfs_delete_object+0xd0/0xd0
[  384.568637]  ? _raw_spin_lock_irqsave+0x2a/0x60
[  384.569590]  ? __kmalloc+0x11f/0x240
[  384.570331]  ? reiserfs_get_block+0x89d/0x1c40
[  384.571246]  reiserfs_get_block+0x9a6/0x1c40
[  384.572129]  ? reiserfs_commit_write+0x390/0x390
[  384.573091]  ? __mod_node_page_state+0x27/0xa0
[  384.574007]  ? new_slab+0x450/0x660
[  384.574736]  ? kasan_unpoison_shadow+0x36/0x50
[  384.575649]  ? kasan_kmalloc+0xad/0xe0
[  384.576425]  ? memcg_kmem_put_cache+0x1b/0xa0
[  384.577333]  ? kmem_cache_alloc+0x17c/0x1e0
[  384.578204]  ? kasan_check_write+0x14/0x20
[  384.579052]  ? create_empty_buffers+0x17e/0x1d0
[  384.579985]  __block_write_begin_int+0x296/0x940
[  384.580935]  ? reiserfs_commit_write+0x390/0x390
[  384.581900]  ? __block_write_begin_int+0x296/0x940
[  384.582885]  ? reiserfs_commit_write+0x390/0x390
[  384.583833]  ? __breadahead+0xd0/0xd0
[  384.584595]  ? reiserfs_wait_on_write_block+0xa6/0x140
[  384.585661]  ? reiserfs_allow_writes+0x50/0x50
[  384.586578]  ? pagecache_get_page+0xca/0x2f0
[  384.587459]  ? wait_for_stable_page+0x77/0xf0
[  384.588357]  __block_write_begin+0x11/0x20
[  384.589211]  reiserfs_write_begin+0x1a5/0x380
[  384.590112]  ? timespec64_trunc+0x5c/0x90
[  384.590945]  generic_perform_write+0x192/0x320
[  384.591865]  ? __bpf_trace_filemap_set_wb_err+0x10/0x10
[  384.592936]  ? file_update_time+0x1d2/0x270
[  384.593809]  ? current_time+0x110/0x110
[  384.594600]  ? save_stack+0xb5/0xd0
[  384.595323]  __generic_file_write_iter+0x261/0x2e0
[  384.596304]  ? do_syscall_64+0x78/0x170
[  384.597108]  generic_file_write_iter+0x19d/0x2d0
[  384.598065]  __vfs_write+0x286/0x410
[  384.598812]  ? kernel_read+0xa0/0xa0
[  384.599556]  ? common_file_perm+0x11b/0x2e0
[  384.600421]  ? may_open_dev+0x50/0x50
[  384.601192]  ? apparmor_task_setrlimit+0x270/0x270
[  384.602179]  ? fsnotify+0x590/0x7d0
[  384.602908]  ? rw_verify_area+0x78/0x140
[  384.603723]  vfs_write+0xf9/0x260
[  384.604418]  ksys_write+0xb4/0x140
[  384.605140]  ? __ia32_sys_read+0x50/0x50
[  384.605958]  __x64_sys_write+0x43/0x50
[  384.606738]  do_syscall_64+0x78/0x170
[  384.607499]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  384.608532] RIP: 0033:0x7ffa23bd92c0
[  384.609277] Code: 73 01 c3 48 8b 0d d8 cb 2c 00 f7 d8 64 89 01 48 83 c8 ff
c3 66 0f 1f 44 00 00 83 3d 89 24 2d 00 00 75 10 b8 01 00 00 00 0f 05 <48> 3d 01
f0 ff ff 73 31 c3 48 83 ec 08 e8 fe dd 01 00 48 89 04 24
[  384.613112] RSP: 002b:00007ffe40b5db68 EFLAGS: 00000246 ORIG_RAX:
0000000000000001
[  384.614650] RAX: ffffffffffffffda RBX: 0000000000000000 RCX:
00007ffa23bd92c0
[  384.616104] RDX: 0000000000008000 RSI: 00000000006010a0 RDI:
0000000000000003
[  384.631918] RBP: 00007ffe40b5dba0 R08: 0000000001f6c010 R09:
0000000000000000
[  384.633400] R10: 000000000000086f R11: 0000000000000246 R12:
0000000000400600
[  384.634864] R13: 00007ffe40b5dca0 R14: 0000000000000000 R15:
0000000000000000
[  384.636336] Modules linked in: snd_hda_codec_generic snd_hda_intel
snd_hda_codec snd_hwdep snd_hda_core snd_pcm snd_timer snd mac_hid i2c_piix4
soundcore ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi
scsi_transport_iscsi raid10 raid456 async_raid6_recov async_memcpy async_pq
async_xor async_tx raid1 raid0 multipath linear 8139too qxl drm_kms_helper
crct10dif_pclmul syscopyarea sysfillrect sysimgblt fb_sys_fops ttm crc32_pclmul
aesni_intel drm aes_x86_64 crypto_simd cryptd glue_helper 8139cp mii pata_acpi
floppy
[  384.646392] CR2: 0000000000000000
[  384.647142] ---[ end trace 2e85051acb5f6dc1 ]---
[  384.648139] RIP: 0010:get_empty_nodes+0x2e8/0x3b0
[  384.649216] Code: 8b 7d 18 e8 0a 49 eb ff 49 8b bd d0 00 00 00 44 89 fa b9
08 00 00 00 4c 89 f6 e8 b3 ac f5 ff 49 89 c7 48 89 c7 e8 e8 48 eb ff <49> 8b 17
f7 c2 00 00 08 00 75 06 f0 41 80 4f 02 08 48 8b bd f0 fe
[  384.653253] RSP: 0018:ffff8801dea2ee70 EFLAGS: 00010296
[  384.654331] RAX: 0000000000000000 RBX: ffff8801dea2f218 RCX:
0000000000000000
[  384.655782] RDX: 0000000000000000 RSI: 0000000000000297 RDI:
0000000000000297
[  384.657279] RBP: ffff8801dea2efa8 R08: ffffed003ede3ebb R09:
ffffed003ede3ebb
[  384.658738] R10: 0000000000000001 R11: ffffed003ede3eba R12:
ffff8801dea2ef40
[  384.660223] R13: ffff8801f3102200 R14: 00000000000054dc R15:
0000000000000000
[  384.661685] FS:  00007ffa240c7700(0000) GS:ffff8801f6f00000(0000)
knlGS:0000000000000000
[  384.663327] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  384.664536] CR2: 0000000000000000 CR3: 00000001de076000 CR4:
00000000000006e0

- Location
https://elixir.bootlin.com/linux/v4.18-rc1/source/fs/reiserfs/fix_node.c#L903
                set_buffer_journal_new(new_bh);

Reported by Wen Xu (wen.xu@xxxxxxxxxx) from SSLab at Gatech.

-- 
You are receiving this mail because:
You are the assignee for the bug.--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux