All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: "yebin (H)" <yebin10@huawei.com>
To: Jun Nie <jun.nie@linaro.org>, <harshadshirwadkar@gmail.com>,
	<tytso@mit.edu>, <adilger.kernel@dilger.ca>,
	<linux-ext4@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Ye Bin <yebin@huaweicloud.com>
Cc: Lee Jones <joneslee@google.com>
Subject: Re: [BUG REPORT] kernel BUG in ext4_write_inline_data_end or ext4_writepages
Date: Wed, 7 Dec 2022 14:39:29 +0800	[thread overview]
Message-ID: <63903521.5040307@huawei.com> (raw)
In-Reply-To: <CABymUCP32_95eTeEbfWCPEUBCj4XBMU5=2-hRBLw9SoTFt_6XQ@mail.gmail.com>



On 2022/12/5 16:54, Jun Nie wrote:
> Hi,
> syzbot find a new bug[1] in ext4 that's similar with bug[0], that
> leads to reboot.
> While the bug[0] can be fixed with patch[2] from Bin. This new bug is still
> triggered with the patch[2], and log[3] is collected. Both log[1] and
> log[3] are
> collected when testing bug[4] on the mainline.
>
> [0] https://syzkaller.appspot.com/bug?id=5bafe4554067100b70f58a81268aa06ea3f9c345
> [1] https://syzkaller.appspot.com/text?tag=CrashLog&x=16325fc3880000
> [2] https://lore.kernel.org/lkml/CABymUCN+NSzkunRqFs8LgqjT6vXz-gyyZYn0hQWf8V9kmcO0Hw@mail.gmail.com/T/
> [3] https://syzkaller.appspot.com/text?tag=CrashLog&x=155abe7b880000
> [4] https://syzkaller.appspot.com/bug?id=899b37f20ce4072bcdfecfe1647b39602e956e36
>
>
> [   38.932317][  T494] Call Trace:
> [   38.935437][  T494]  <TASK>
> [   38.938393][  T494]  ext4_write_inline_data_end+0xa39/0xdf0
> [   38.943946][  T494]  ? put_page+0xa0/0xa0
> [   38.947936][  T494]  ? ext4_da_write_begin+0x6f0/0x8d0
> [   38.953055][  T494]  ? pipe_zero+0x240/0x240
> [   38.957308][  T494]  ext4_da_write_end+0x1e2/0x950
> [   38.962082][  T494]  ? ext4_da_write_begin+0x8d0/0x8d0
> [   38.967204][  T494]  generic_perform_write+0x401/0x5f0
> [   38.972326][  T494]  ? generic_file_direct_write+0x6c0/0x6c0
> [   38.977994][  T494]  ? generic_write_checks_count+0x4b0/0x4b0
> [   38.983694][  T494]  ext4_buffered_write_iter+0x35f/0x640
> [   38.989074][  T494]  ext4_file_write_iter+0x198/0x1cd0
> [   38.994194][  T494]  ? futex_unqueue+0x156/0x180
> [   38.998795][  T494]  ? futex_wait+0x4c5/0x5c0
> [   39.003307][  T494]  ? futex_wait_setup+0x320/0x320
> [   39.008168][  T494]  ? avc_policy_seqno+0x1b/0x70
> [   39.012862][  T494]  ? ext4_file_read_iter+0x470/0x470
> [   39.017976][  T494]  vfs_write+0x8b5/0xef0
> [   39.022056][  T494]  ? file_end_write+0x1b0/0x1b0
> [   39.026739][  T494]  ? mutex_lock+0xb6/0x130
> [   39.030994][  T494]  ? bit_wait_io_timeout+0x110/0x110
> [   39.036117][  T494]  ? __fget_files+0x2d9/0x330
> [   39.040630][  T494]  ? __fdget_pos+0x268/0x300
> [   39.045054][  T494]  ? ksys_write+0x77/0x2c0
> [   39.049307][  T494]  ksys_write+0x198/0x2c0
> [   39.053472][  T494]  ? save_fpregs_to_fpstate+0x210/0x210
> [   39.058855][  T494]  ? __ia32_sys_read+0x90/0x90
> [   39.063465][  T494]  ? __kasan_check_write+0x14/0x20
> [   39.068403][  T494]  ? switch_fpu_return+0x129/0x270
> [   39.073348][  T494]  __x64_sys_write+0x7b/0x90
> [   39.077783][  T494]  do_syscall_64+0x2f/0x50
> [   39.082030][  T494]  entry_SYSCALL_64_after_hwframe+0x63/0xcd
>
> Regards,
> Jun
> .

I analyze that the above issue should be caused by the concurrency
of inline data conversion and buffer write.
At present, I haven't thought of any good solution.



      reply	other threads:[~2022-12-07  6:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-17  7:55 [BUG REPORT] kernel BUG in ext4_write_inline_data_end Jun Nie
2022-12-05  8:54 ` [BUG REPORT] kernel BUG in ext4_write_inline_data_end or ext4_writepages Jun Nie
2022-12-07  6:39   ` yebin (H) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=63903521.5040307@huawei.com \
    --to=yebin10@huawei.com \
    --cc=adilger.kernel@dilger.ca \
    --cc=harshadshirwadkar@gmail.com \
    --cc=joneslee@google.com \
    --cc=jun.nie@linaro.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tytso@mit.edu \
    --cc=yebin@huaweicloud.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.