{"shas":[["13849c165449ed92085304b1ecdb504838c43941","ac0d3d3e73e749031d5829d5b5f20c6f21320f2f@google.com","tracing: Fix panic when lseek() called on \"trace\" opened for writing\n\ncommit 364829b1263b44aa60383824e4c1289d83d78ca7 upstream.\n\nThe file_ops struct for the \"trace\" special file defined llseek as seq_lseek().\nHowever, if the file was opened for writing only, seq_open() was not called,\nand the seek would dereference a null pointer, file->private_data.\n\nThis patch introduces a new wrapper for seq_lseek() which checks if the file\ndescriptor is opened for reading first. If not, it does nothing.\n\nSigned-off-by: Slava Pestov <slavapestov@google.com>\nLKML-Reference: <1290640396-24179-1-git-send-email-slavapestov@google.com>\nSigned-off-by: Steven Rostedt <rostedt@goodmis.org>\nSigned-off-by: Greg Kroah-Hartman <gregkh@suse.de>\n[wt: applied to tracing_lt_fops too /wt]\nSigned-off-by: Willy Tarreau <w@1wt.eu>","Slava Pestov"]],"ref":"refs/heads/2.6.29","size":1,"head":"13849c165449ed92085304b1ecdb504838c43941","push_id":35560838}